/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background-color: #f5f5f5; /* Light background for contrast */
}

/* Header */
header {
    background: #000000;
    color: #fff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 2rem;
}

.logo img {
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease; /* Smooth hover effect */
}

.nav-links li a:hover {
    color: #0018f0ba; /* Blue hover color */
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-icons a:hover {
    color: #0018f0ca;
}

.navbar input[type="text"] {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    margin-left: 1rem;
    width: 200px;
}
/*.nav-links .active {
    font-weight: bold;
    color: blue;
  }*/
/* Main Product Section */
.product-main {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 30px 0;
}

.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center the gallery vertically */
    margin-bottom: 20px; /* Space below the gallery */
}

.product-gallery img {
    width: 40%; /* Ensure the main image stretches fully within its container */
    max-width: 500px; /* Max width for the main product image */
    height: auto;
    object-fit: cover; /* Ensures the image scales properly */
    margin-bottom: 20px; /* Space between the main image and thumbnails */
}
.main-image-container {
    position: relative;
    display: inline-block;
    width: 400px;
    height: 343px;
    overflow: hidden;
  }
  
  .main-image-container img {
    width: 85%;
    height: auto;
    object-fit: cover;
    margin-left: 30px;
  }
  
  .zoom-lens {
    position: absolute;
    border: 2px solid #000;
    width: 100px;
    height: 100px;
    visibility: hidden;
    pointer-events: none;
    opacity: 0.5;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: crosshair;
  }
  
  .zoom-result {
    position: absolute;
    top: 100px;
    left: 762px; /* Adjust based on layout */
    width: 50%;
    height: 600px;
    border: 1px solid #ddd;
    background-repeat: no-repeat;
    background-size: 150%;
    display: none;
  }
  
.thumbnails {
    display: flex;
    justify-content: center; /* Center the thumbnails horizontally */
    gap: 10px; /* Space between the thumbnails */
}

.thumbnails img {
    width: 60px; /* Thumbnail size */
    height: 60px;
    object-fit: cover; /* Ensure thumbnails are not distorted */
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out; /* Smooth hover effect */
}

.thumbnails img:hover {
    transform: scale(1.1); /* Slightly enlarge thumbnails on hover */
    border: 2px solid #007aff; /* Add border on hover */
}


/* Product Information */
.product-info {
    margin-bottom: 20px; /* Add some space below */
}


.product-info h1 {
    font-size: 20px; 
    font-weight: bold; 
    line-height: 1.5; 
    color: #000; 
    margin-bottom: 10px;
}


.product-info p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.discount {
    text-decoration: line-through;
    color: #999;
}

.offer {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}
.add-to-cart-form {
    display: contents;
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Ensure even spacing */
    gap: 15px; /* Space between button and quantity container */
}

.btn-cart {
    flex: 0 0 auto; /* Prevent button from stretching */
}

.quantity-container {
    display: flex;
    align-items: center; /* Align label and input vertically */
    gap: 8px; /* Space between label and input field */
}

.quantity-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.quantity-input:focus {
    border-color: #666;
    outline: none;
}


/* Add hover effect */
.quantity-input:hover {
    border-color: #888; /* Slightly darker border on hover */
}

/* Disable arrow buttons styling for modern browsers */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none; /* Remove arrows in WebKit browsers */
    margin: 0; /* Remove default margins */
}

/* Adjust arrow button visibility for Firefox */
.quantity-input[type="number"] {
    -moz-appearance: textfield; /* Remove arrows in Firefox */
}
.quantity-input:invalid {
    border-color: red;
}

.btn-buy {
    width: 55%;
    padding: 12px;
    background-color: #000000;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 7px;
    margin-left: 0px;
    margin-top: 10px;
}
.btn-cart {
    width: 55%;
    padding: 12px;
    background-color: #f3a808;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 5px;
}
.btn-buy:hover {
    background-color: #000000d6;
}
.btn-cart:hover {
    background-color: #f3a908c4;
}
/* Wishlist Button Styles */
.btn-wishlist {
    padding: 12px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-wishlist:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

.btn-wishlist i {
    transition: color 0.3s ease;
}

.text-danger {
    color: #dc3545;
}

.text-secondary {
    color: #6c757d;
}

/* Adjust button container for the new button */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-description {
    margin-top: 20px; 
    padding: 15px; 
    border-top: 1px solid #ccc; 
    margin-left: 10px;
}
  
  .product-description h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
  }
  
  .product-description p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    text-align: justify;
  }

/* Product Highlights */
.highlights {
    background-color: #fff;
    padding: 40px 0;
}

.highlights h2 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.highlight-row {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    gap: 20px; /* Add spacing between items */
}

.highlight {
    text-align: center; /* Center text below the images */
}

.highlight img {
    width: 70%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Features Section */
.features {
    background-color: #f5f5f5;
    padding: 40px 0;
}

.features h2 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.feature-item {
    text-align: center;
    margin-bottom: 30px;
}

.feature-item img {
    width: 89%;
    height: auto;
    margin-bottom: 15px;
}
/* Container for the variants section */
.product-variants {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.product-variants h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #333;
  font-weight: 600;
}

/* Flex row for variant items */
.variant-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* spacing between items */
}

/* Individual variant item */
.variant-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  width: 200px; /* fixed width for desktop */
  text-align: center;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.variant-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Variant image */
.variant-item img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Variant name */
.variant-item h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Variant price */
.variant-item p {
  font-size: 14px;
  color: #e53935;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .variant-item {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .variant-row {
    justify-content: space-around;
  }
  .variant-item {
    width: 45%;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .variant-item {
    width: 90%;
  }
}

/* Related Products */
.related-products {
    padding: 40px 0;
}

.related-products h2 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.product-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.product-item {
    width: 89%;
    text-align: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-item p {
    font-size: 16px;
    color: #333;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 1px 10px;
    margin: -1px 0;
    background-color: #00000066; /* Clean white background */
    border-radius: 8px; /* Softer edges */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    font-size: 14px;
    list-style: none;
}

.breadcrumb-item {
    margin-right: 5px;
    color: #007bff;
    font-weight: 500;
    display: flex;
    align-items: center; /* Align items vertically */
}

.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s, text-decoration 0.3s; /* Smooth transitions */
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline; /* Add underline on hover */
}

.breadcrumb-item.active {
    color: #ffffff; /* Gray for active/current item */
    pointer-events: none; /* Disable clicks for active */
    font-weight: bold;
}

.breadcrumb-item::after {
    content: '>'; /* Separator symbol */
    margin: 0 8px; /* Space around the separator */
    color: #6c757d; /* Subtle gray separator */
}

.breadcrumb-item:last-child::after {
    content: ''; /* Remove separator for the last item */
}


/* Footer */
footer {
    background-color: #2c3e50;
    padding: 20px 0;
    text-align: center;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-main {
        flex-direction: column;
    }

    .product-gallery {
        flex: none;
    }

    .product-info {
        flex: none;
        width: 100%;
    }

    .product-info h1 {
        font-size: 20px;
    }

    .btn-buy, .btn-cart {
        padding: 10px;
    }

    .highlight-row {
        flex-direction: column;
        align-items: center;
    }

    .highlight {
        width: 100%;
        margin-bottom: 20px;
    }

    .feature-item {
        width: 100%;
        margin-bottom: 30px;
    }

    .product-row {
        flex-direction: column;
    }

    .product-item {
        width: 100%;
    }
}
.wishlist-icon .wishlist-added {
  color: red; /* Change heart color */
}

.btn-quantity {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
}

.btn-quantity:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.quantity-input {
    text-align: center;
    width: 50px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
/* Related Products Section */
.related-products {
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #eee;
}

.related-products .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.related-products h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.product-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-item {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-item p {
    font-weight: bold;
    color: #333;
}

.product-item a {
    text-decoration: none;
    color: inherit;
}

   /* Add these new styles */
        .price-container {
            margin: 15px 0;
        }
        
        .current-price {
            font-size: 1.8rem;
            font-weight: bold;
            color: #e63946;
        }
        
        .original-price {
            text-decoration: line-through;
            color: #6c757d;
            margin-left: 10px;
            font-size: 1.2rem;
        }
        
        .discount-percentage {
            display: inline-block;
            background-color: #e63946;
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.9rem;
            margin-left: 10px;
            font-weight: bold;
        }
        
        .offer-badge {
            background-color: #f8f9fa;
            color: #e63946;
            padding: 8px 12px;
            border-radius: 4px;
            display: inline-block;
            margin: 10px 0;
            font-weight: bold;
            border: 1px solid #e63946;
            font-size: 0.9rem;
        }
        
        .offer-badge i {
            margin-right: 5px;
        }
        
        .offer-timer {
            background-color: #fff3cd;
            color: #856404;
            padding: 8px 12px;
            border-radius: 4px;
            margin: 10px 0;
            font-size: 0.9rem;
        }
        
        .offer-timer i {
            margin-right: 5px;
        }
        
        .offer-tag {
            display: inline-block;
            background-color: #28a745;
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-right: 5px;
            margin-bottom: 5px;
        }
.cart-icon-wrapper {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: bold;
  display: none;
}
/* ===========================
   Responsive Adjustments
   =========================== */

/* Tablets and below (≤1024px) */
@media (max-width: 1024px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .product-main {
    flex-direction: column;
    align-items: center;
  }

  .main-image-container {
    width: 100%;
    height: auto;
  }

  .zoom-result {
    display: none !important; /* Hide zoom on tablets/mobiles */
  }

  .variant-row {
    justify-content: center;
  }

  .highlight img,
  .feature-item img {
    width: 90%;
  }
}

/* Mobiles (≤768px) */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    text-align: center;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-icons {
    gap: 0.5rem;
  }

  .navbar input[type="text"] {
    width: 120px;
  }

  /* Product page */
  .product-gallery img {
    width: 80%;
  }

  .thumbnails img {
    width: 50px;
    height: 50px;
  }

  .product-info h1 {
    font-size: 18px;
  }

  .btn-buy,
  .btn-cart,
  .btn-wishlist {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  .highlight-row {
    flex-direction: column;
  }

  .variant-item {
    width: 45%;
  }

  .related-products .product-row {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Small Mobiles (≤480px) */
@media (max-width: 480px) {
  .logo img {
    height: 45px;
  }

  .product-gallery img {
    width: 100%;
  }

  .variant-item {
    width: 100%;
  }

  .product-item img {
    height: 150px;
  }

  .current-price {
    font-size: 1.3rem;
  }

  .original-price {
    font-size: 1rem;
  }

  .discount-percentage {
    font-size: 0.8rem;
  }

  .offer-timer {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}
 .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
  }

  @media (max-width: 992px) {
    .menu-toggle {
      display: block;
    }

    .nav-links {
      position: absolute;
      top: 60px;
      left: 0;
      flex-direction: column;
      background: #111;
      width: 100%;
      display: none;
      padding: 20px 0;
        z-index: 9999;
    }

    .nav-links.show {
      display: flex;
      animation: fadeInDown 0.3s ease;
    }
  }