:root {
    --primary-color: #060138;      /* Blue */
    --secondary-color: #b06500;    /* Yellow (not used in this case) */
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --heading-color: #212529;
    --footer-bg: #343a40;
    --footer-text: #f8f9fa;
   --button-hover-bg: #CC6600;    /* Brighter blue for hover */
    --highlight-color: #CC6600;
}
body.dark-theme {
   --primary-color: #CC6600;      /* Yellow/Orange for dark mode */
    --secondary-color: #CC6600;         /* Orange for dark mode */
    --text-color: #E0E0E0;
    --background-color: #1a1a1a;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --heading-color: #FFFFFF;
    --footer-bg: #000000;
    --footer-text: #B0BEC5;
   --button-hover-bg: #060138;    /* Brighter yellow/orange for hover */
    --highlight-color: #CC6600;
}
main {
    flex: 1;
    padding-bottom: 50px; /* Add space above footer */
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Add this to your existing CSS */
/* Scrollable description */
.product-info p {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 15px;
    color: var(--text-color);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-color);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Custom scrollbar for product description */
.product-info p::-webkit-scrollbar {
    width: 6px;
}
.product-info p::-webkit-scrollbar-track {
    background: var(--background-color);
}
.product-info p::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Thumbnail container styling */
/* Product Gallery Styles */
.product-gallery {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-gallery .main-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: border-color 0.3s ease;
}

.product-gallery .thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
}

.product-gallery .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.product-gallery .thumbnail:hover {
    transform: scale(1.08);
    border-color: var(--secondary-color);
}

.product-gallery .thumbnail.active {
    border-color: var(--primary-color);
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--button-hover-bg);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0.5em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--background-color);
}
::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
    border: 3px solid var(--background-color);
}


/* Header */
.header {
    background-color: var(--card-bg);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.logo {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}
.logo a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.logo a:hover {
    color: var(--primary-color);
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}


.theme-toggle, .cart-icon {
    background: none;
    border: none;
    font-size: 1.5em; /* Slightly larger icons */
    cursor: pointer;
    color: var(--text-color);
    margin-left: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 5px; /* Increase clickable area */
}

.theme-toggle:hover, .cart-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1); /* Subtle zoom on hover */
}

.cart-icon {
    position: relative;
    display: flex; /* Align icon and count */
    align-items: center;
}

.cart-icon .fa-shopping-cart { /* For Font Awesome icon */
    font-size: 1.2em;
}

.cart-icon #cart-count {
    background-color: var(--primary-color); /* Matches theme color */
    color: white;
    font-size: 0.7em;
    border-radius: 50%;
    padding: 3px 6px;
    position: absolute;
    top: -8px;
    right: -10px;
    line-height: 1;
    min-width: 20px; /* Ensure circular shape */
    text-align: center;
    animation: bounceIn 0.3s ease-out; /* Animation for count update */
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    margin-left: 20px;
    z-index: 1001; /* Ensure it's above the sliding nav */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
  /* Reset and Base Styles */
        body, html {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow-x: hidden;
        }
        
        /* Hero Section */

.hero-section {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: #0b1d3a; /* Beautiful navy blue base */
  background-image: url('logo.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 300px auto; /* Adjust size if needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 20px;
}

/* Optional overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInUpSmooth 1.8s ease-out both;
}

/* Heading */
.hero-heading {
  font-size: 3rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 32px;
  color: #e0e0e0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Button container */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.cta-button {
  padding: 12px 28px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.4s ease, transform 0.4s ease;
  animation: fadeInUpSmooth 2s ease-out both;
}

.cta-button.secondary {
  background-color: #ffae00;
  color: #000;
}

.cta-button:hover {
  transform: translateY(-3px);
  background-color: #f0f0f0;
}

/* Fade + Slide Up Animation */
@keyframes fadeInUpSmooth {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  60% {
    opacity: 0.6;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

        
        /* Animated Button */
        .cta-button {
            display: inline-block;
            padding: 15px 40px;
            background: linear-gradient(45deg, #4CAF50, #2E8B57);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            font-size: 1.2rem;
            transition: all 0.4s ease;
            animation: 
                fadeInUp 0.8s ease-out 0.6s both,
                pulse 2s infinite 2s;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .cta-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.4);
            background: linear-gradient(45deg, #2E8B57, #4CAF50);
        }
        
        .cta-button::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s ease;
        }
        
        .cta-button:hover::after {
            transform: translateX(100%);
        }
        
        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 0.2;
            }
            50% {
                transform: scale(1.05);
                opacity: 0.25;
            }
            100% {
                transform: scale(1);
                opacity: 0.2;
            }
        }
        
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            .hero-subtitle {
                font-size: 1.2rem;
            }
            .cta-button {
                padding: 12px 30px;
                font-size: 1.1rem;
            }
        }
        
        /* Animated Button */
        .cta-button {
            display: inline-block;
            padding: 15px 40px;
            background: linear-gradient(45deg, #4CAF50, #2E8B57);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            font-size: 1.2rem;
            transition: all 0.4s ease;
            animation: 
                fadeInUp 0.8s ease-out 0.6s both,
                pulse 2s infinite 2s;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .cta-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.4);
            background: linear-gradient(45deg, #2E8B57, #4CAF50);
        }
        
        .cta-button::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s ease;
        }
        
        .cta-button:hover::after {
            transform: translateX(100%);
        }
        
        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 0.2;
            }
            50% {
                transform: scale(1.05);
                opacity: 0.25;
            }
            100% {
                transform: scale(1);
                opacity: 0.2;
            }
        }
        
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            .hero-subtitle {
                font-size: 1.2rem;
            }
            .cta-button {
                padding: 12px 30px;
                font-size: 1.1rem;
            }
        }

/* Button style */
.cta-button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1rem;
    background-color: white;
    color: black;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    animation: fadeIn 1.2s ease-out 0.2s both;
}

.cta-button:hover {
    background-color: #f0f0f0;
}

/* Simple fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Headings & paragraph */
.hero-content h1,
.hero-content p {
    margin: 0.5em 0;
    text-align: center;
}

/* Call-to-action button */
.cta-button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    animation: fadeInUpSmooth 1s ease-out 0.3s both;
}

.cta-button:hover {
    background-color: #f0f0f0;
}

/* Smooth slide-up + fade-in */
@keyframes fadeInUpSmooth {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    60% {
        opacity: 0.6;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Button */
.cta-button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1rem;
    background-color: white;
    color: black;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button:hover {
    background-color: #f0f0f0;
}

/* Slide-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Optional background overlay */
.hero-section {
    position: relative;
    width: 100%;
    height: 480px;
    background-image: url('https://huzi.pk/logo');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Optional dark overlay for better text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Adjust if needed */
    z-index: 0;
}

/* Centered content with animation */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

/* Text styles */
.hero-content h1,
.hero-content p {
    margin: 0.5em 0;
    text-align: center;
}

/* CTA Button */
.cta-button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1rem;
    background-color: white;
    color: black;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button:hover {
    background-color: #f0f0f0;
}

/* Slide-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button - absolutely centered */
.cta-button {
    display: block;
    margin: 20px auto 0 !important;
    width: fit-content;
    padding: 10px 30px;
    animation: fadeInUp 1s ease-out 0.6s;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for better text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px; /* Wider content area */
}

.hero-content h2 {
    font-size: 3.5em; /* Larger heading */
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.4em; /* Larger paragraph */
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Button Styling */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:hover {
    background-color: var(--button-hover-bg);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Category Grid & Product Cards */
/* Update the product-grid section in style.css */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    gap: 30px;
    padding: 20px;
}

/* Update responsive breakpoints */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .product-card {
    width: 100%; /* Ensure it fills the grid column, not breaks it */
  }
}

@media (max-width: 450px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}


.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px); /* More dramatic lift */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* More pronounced shadow */
}

.product-card img {
    width: 100%;
    height: 220px; /* Slightly taller images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.product-card-content {
    padding: 18px; /* More padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Allow content to grow */
    min-height: 130px; /* Ensure consistent content area */
}

.product-card-content h3 {
    font-size: 1.25em; /* Slightly larger title */
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-card-content h3 a {
    color: var(--heading-color);
}

.product-card-content .price {
    font-size: 1.3em; /* Larger price font */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Product Detail Page Specifics */
.product-detail-page { /* A wrapper for the entire detail content, used in HTML */
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.product-image-viewer { /* This is the full-screen modal */
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above all other content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if image is too large */
    background-color: rgba(0,0,0,0.9); /* Black background with opacity */
    justify-content: center;
    align-items: center;
    cursor: zoom-out; /* Indicate it's clickable to close */
}

.product-image-viewer.active {
    display: flex; /* Show when active */
}

.product-image-viewer img {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    animation: zoomInImage 0.3s ease-out;
}

@keyframes zoomInImage {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.product-gallery { /* Renamed from product-image-gallery for clarity */
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-gallery .main-image {
    width: 100%;
    height: 350px; /* Fixed height for consistency */
    object-fit: contain; /* Contain to show full image without cropping */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: zoom-in; /* Indicate clickable for full view */
    transition: border-color 0.3s ease;
}

.product-gallery .thumbnails {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 10px;
    justify-content: center; /* Center thumbnails */
    max-width: 100%; /* Ensure it fits container */
    overflow-x: auto; /* Scroll if too many images */
    padding-bottom: 5px; /* Space for scrollbar on overflow */
}

.product-gallery .thumbnail {
    width: 80px; /* Slightly larger thumbnails */
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.product-gallery .thumbnail:hover {
    transform: scale(1.08);
    border-color: var(--secondary-color);
}

.product-gallery .thumbnail.active {
    border-color: var(--primary-color);
}


.product-info { /* Renamed from product-details for consistency */
    flex: 2;
    min-width: 350px;
}

.product-info h2 {
    font-size: 2.5em;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-info p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-info h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.4em;
    color: var(--heading-color);
}

.product-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.product-info ul li {
    background-color: var(--background-color);
    border-left: 3px solid var(--primary-color);
    padding: 8px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: var(--text-color);
}

.product-info .stock-info {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.product-info .stock-info.in-stock {
    color: green;
}

.product-info .stock-info.out-of-stock {
    color: red;
}


/* Cart Page Specifics */
.cart-items-container { /* Wrapper for cart items, delivery, and total */
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-top: 30px;
    overflow: hidden;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

.cart-item:last-of-type { /* Use last-of-type to target the actual last cart item before totals */
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: var(--heading-color);
}

.cart-item-details .price {
    font-size: 1em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.cart-item-quantity button:hover {
    background-color: #5a6268;
}

.cart-item-quantity span { /* For quantity display */
    min-width: 25px;
    text-align: center;
    font-weight: bold;
    color: var(--text-color);
}


.remove-item-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-item-btn:hover {
    background-color: #c82333;
}

.cart-summary {
    background-color: var(--card-bg); /* Use card background for consistency */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-top: 30px; /* Space from cart items */
    padding: 20px;
    text-align: right;
    border: 1px solid var(--border-color); /* Add border for summary */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cart-summary .subtotal,
.cart-summary .delivery-charge,
.cart-summary .total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-color);
}

.cart-summary .total-amount {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

/* Info Sections (How to Order, About Us) - Now inline styles for removed sections */
.info-section {
    background-color: var(--card-bg);
    padding: 40px 20px;
    margin-top: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.info-section h2 {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--heading-color);
}

.info-grid { /* For How To Order steps */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-item {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.info-item h3 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}


/* Messages (No Products, Loading, Error) */
.message-box {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--text-color);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.message-box.loading-message {
    color: var(--primary-color);
}

.message-box.error-message {
    color: #dc3545;
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-bottom: 40px;
    flex-wrap: wrap; /* Allow pagination buttons to wrap */
}

.pagination button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pagination button:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.pagination button:not(:disabled):hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
}

.pagination .page-number-btn {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.pagination .page-number-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.pagination .page-number-btn:not(.active):hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
/* Update the footer section in style.css */
.site-footer {
  background-color: #0b1d3a;
  color: #dcdcdc;
  font-size: 13px;
  padding: 16px 12px; /* Slimmed height */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.footer-left,
.footer-links,
.footer-social {
  flex: 1 1 220px;
}

.footer-left h2,
.footer-links h3,
.footer-social h3 {
  color: #fff;
  margin-bottom: 6px;
  font-size: 15px;
}

.footer-left p {
  margin: 4px 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 4px;
}

.footer-links a,
.footer-left a {
  color: #dcdcdc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-left a:hover {
  color: var(--footer-hover-color);
}

/* Social icons */
.footer-social .social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.footer-social .social-icons a img {
  width: 20px;
  height: 20px;
  filter: invert(85%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icons a:hover img {
  filter: invert(100%);
  transform: scale(1.12);
}

/* Bottom note */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  font-size: 12px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 640px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }
}

/* 🌙 Dark/Light Mode Color Animation Support */
:root {
  --footer-hover-color: orange; /* Light mode default */
}

.dark-mode {
  --footer-hover-color: yellow; /* Dark mode override */
}


/* ========================================= */
/* Animations (already defined in previous response, keeping for reference) */
/* ========================================= */

/* Hero Section Animations */
@keyframes slideInFromLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-slide-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out forwards 0.5s;
    opacity: 0;
}

/* Category Card Entrance Animation */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}

/* Staggered animation delays for category cards */



/* Responsive Design */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
    .logo {
        margin-right: auto;
        order: 0;
    }
    .theme-toggle, .cart-icon {
        order: 1;
        margin-left: 10px;
    }
    .menu-toggle {
        display: flex;
        order: 2;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100%;
        background-color: var(--card-bg);
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        border-left: 1px solid var(--border-color);
    }

    .nav.nav-open {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
        padding: 0;
    }

    .nav ul li {
        width: 100%;
        text-align: center;
    }

    .nav ul li a {
        padding: 15px 0;
        display: block;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-color);
    }

    .nav ul li:last-child a {
        border-bottom: none;
    }

    .nav ul li a:hover {
        background-color: var(--background-color);
        transform: none;
    }

    .hero-section {
        height: 350px;
    }
    .hero-content h2 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .hero-content .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .product-detail-page {
        padding: 20px;
    }
    .product-detail-container {
        flex-direction: column;
        gap: 30px;
    }
    .product-gallery, .product-info {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }
    .product-gallery .main-image {
        height: 250px;
    }
    .product-gallery .thumbnails {
        flex-wrap: wrap;
    }
    .product-gallery .thumbnail {
        width: 60px;
        height: 60px;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
    }
    .cart-item img {
        margin-bottom: 10px;
    }
    .cart-item-details, .cart-item-quantity, .remove-item-btn {
        width: 100%;
        justify-content: center;
    }
    .cart-item-details, .cart-item-quantity, .remove-item-btn {
        text-align: center; /* Ensure internal text is centered for stacked items */
    }

    .cart-summary .subtotal,
    .cart-summary .delivery-charge,
    .cart-summary .total-amount {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 5px;
    }
    .cart-summary .total-amount {
        padding-top: 10px;
        margin-top: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }
    .hero-content h2 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .product-card-content h3 {
        font-size: 1.1em;
    }
    .product-card-content .price {
        font-size: 1.1em;
    }
    .product-card img {
        height: 180px;
    }



.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.full-width-product-page {
    max-width: 100% !important;
    padding: 0 !important;
}
.full-width-product-page {
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
}



/* --- Zoom Modal Styles --- */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.zoom-modal img {
  max-width: 90%;
  max-height: 80%;
  transition: transform 0.3s ease;
}

.zoom-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.zoom-controls button {
  background: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.zoom-controls button:hover {
  background: #ffce00;
}

/* --- Hover Zoom (PC Only) --- */
@media (hover: hover) and (pointer: fine) {
  .product-image:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
    z-index: 2;
  }
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: scale(1.02);
}




}
.image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fully fills the card but may crop */



.product-card a {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}

.product-card a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.product-card a img:hover {
  transform: scale(1.05);
}

}

/* CSS for Category Cards Grid */
#category-cards.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 30px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.category-card a.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color, #222);
  text-align: center;
}

.card-description {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
}

.card-button {
  background: var(--button-bg, #0066cc); /* fallback blue if variable fails */
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
  font-size: 1rem;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.card-button:hover {
  background: var(--button-hover-bg, #004c99); /* fallback hover color */
}

@media (max-width: 480px) {
  .card-button {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
  }
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
  #category-cards.category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #category-cards.category-grid {
    grid-template-columns: repeat(2, 1fr); /* Show 2 per line on small screens */
    padding: 20px 12px;
  }
  .card-image {
    aspect-ratio: 1 / 1;
  }
  .card-title {
    font-size: 1.1rem;
  }
  .card-description {
    font-size: 0.9rem;
  }
  .card-button {
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
  }
}
