/* CSS Reset & General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --primary-green: #2e8b2e;
    --dark-green: #1d6b1d;
    --light-green-bg: #eef7ee;
    --beige-bg: #f5f0e8;
    --white: #ffffff;
    --dark-navy: #0d1b2a;
    --teal-accent: #17a2a2;
    --teal-hover: #127f7f;
    --sale-badge: #e74c3c;
    --body-text: #333333;
    --gray-light: #ececec;
    --gray-dark: #666666;
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #c8e6c9 0%, #e8f5e9 100%);
    --dosage-gradient: radial-gradient(circle at center, rgba(26,92,26,0.92) 0%, rgba(13,43,13,0.98) 100%);
    --mission-gradient: radial-gradient(circle at center, rgba(245,240,232,0.9) 0%, rgba(222,213,199,0.95) 100%);
    --glass-bg: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-all: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--body-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px; /* prevent hero overlap behind fixed header */
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-navy);
    font-weight: 700;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-all);
    border: none;
    text-align: center;
}

.btn-hero {
    background-color: var(--dark-green);
    color: var(--white);
}

.btn-hero:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 139, 46, 0.3);
}

.btn-outline-black {
    background-color: transparent;
    color: var(--dark-navy);
    border: 2px solid var(--dark-navy);
}

.btn-outline-black:hover {
    background-color: var(--dark-navy);
    color: var(--white);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--dark-green);
    border: 2px solid var(--dark-green);
}

.btn-outline-dark:hover {
    background-color: var(--dark-green);
    color: var(--white);
}

.btn-add-to-cart {
    order: 5;
    background-color: var(--white);
    color: var(--dark-navy);
    padding: 0.65rem;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-radius: 8px;
    border: 1.5px solid var(--dark-navy);
    width: 100%;
    font-weight: 600;
    box-shadow: none;
    transition: var(--transition-all);
}

.btn-add-to-cart:hover {
    background-color: var(--dark-navy);
    color: var(--white);
    transform: none;
    box-shadow: none;
}

.btn-subscribe {
    background-color: var(--dark-green);
    color: var(--white);
    border-radius: 0 50px 50px 0;
    padding: 0.8rem 1.8rem;
}

.btn-subscribe:hover {
    background-color: var(--primary-green);
}

.btn-map {
    background-color: var(--white);
    color: var(--dark-green);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.btn-map:hover {
    background-color: var(--light-green-bg);
}

/* ==========================================================================
   CART DRAWER SYSTEM
   ========================================================================== */

/* Dark overlay behind the drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* The slide-out drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.cart-drawer.show {
    transform: translateX(0);
}

/* Drawer header */
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-drawer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-drawer-header h3 .cart-count-badge {
    background-color: var(--primary-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.cart-close-btn:hover {
    background-color: #f5f5f5;
    color: #0f172a;
}

/* Drawer body */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Items state (when cart has items) */
.cart-items-state {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}

/* Individual cart item */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.15s ease;
}

.cart-item:hover {
    background-color: #fafafa;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.cart-item-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: #e74c3c;
    background-color: #fef2f2;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.cart-item-category {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 0.6rem;
}

.cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.cart-item-subtotal {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

/* Quantity stepper in cart */
.cart-qty-stepper {
    display: inline-flex;
    align-items: center;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.cart-qty-btn {
    width: 30px;
    height: 32px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.cart-qty-btn:hover {
    background-color: #f5f5f5;
    color: var(--primary-green);
}

.cart-qty-btn:active {
    background-color: #eee;
}

.cart-qty-input {
    width: 36px;
    height: 32px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    background: #fff;
    outline: none;
}

/* Cart summary section */
.cart-summary {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
    flex-shrink: 0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.cart-summary-row.discount-row {
    color: var(--primary-green);
    font-weight: 600;
}

.cart-summary-row.shipping-row .cart-summary-value {
    color: var(--primary-green);
    font-weight: 600;
}

.cart-summary-label {
    color: #666;
}

.cart-summary-value {
    font-weight: 600;
    color: #0f172a;
}

.cart-summary-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0.75rem 0;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.cart-savings-text {
    font-size: 0.8rem;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Cart action buttons */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-family);
    text-decoration: none;
}

.cart-btn-primary {
    background-color: var(--primary-green);
    color: #fff;
}

.cart-btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(46, 139, 46, 0.3);
}

.cart-btn-secondary {
    background-color: transparent;
    color: #666;
    border: 1.5px solid #ddd;
}

.cart-btn-secondary:hover {
    border-color: #999;
    color: #333;
    background-color: #f5f5f5;
}

.cart-btn-outline {
    background-color: transparent;
    color: #e74c3c;
    border: 1.5px solid #fecaca;
    font-size: 0.85rem;
    padding: 0.65rem;
}

.cart-btn-outline:hover {
    background-color: #fef2f2;
    border-color: #e74c3c;
}

/* Empty cart state */
.cart-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 3rem 2rem;
    text-align: center;
}

.cart-empty-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.cart-empty-icon svg {
    width: 100%;
    height: 100%;
}

.cart-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.cart-empty-text {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Free shipping progress bar */
.cart-shipping-progress {
    padding: 0.75rem 1.5rem;
    background-color: #f0fdf4;
    border-bottom: 1px solid #dcfce7;
    flex-shrink: 0;
}

.cart-shipping-progress-text {
    font-size: 0.82rem;
    color: #166534;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cart-shipping-progress-text .highlight {
    font-weight: 700;
    color: var(--primary-green);
}

.cart-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #dcfce7;
    border-radius: 3px;
    overflow: hidden;
}

.cart-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, var(--primary-green));
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Responsive cart */
@media (max-width: 576px) {
    .cart-drawer {
        width: 100%;
    }
    
    .cart-drawer-header {
        padding: 1rem;
    }
    
    .cart-item {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .cart-item-image {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }
    
    .cart-item-name {
        font-size: 0.88rem;
    }
    
    .cart-summary {
        padding: 1rem;
    }
    
    .cart-shipping-progress {
        padding: 0.6rem 1rem;
    }
}

/* ==========================================================================
   END CART DRAWER SYSTEM
   ========================================================================== */


/* SECTION 1: HEADER & NAV */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, #4da44d 0%, #328732 100%);
    transition: var(--transition-all);
    padding: 0.8rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#main-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

/* Logo Image Styling */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;        /* Prevents logo from squishing on smaller screens */
}

.logo-img {
    height: 80px;
    width: auto;           /* Equal width & height = perfect circle */
    object-fit: contain;   /* Keeps the logo from stretching */
    background-color: #fff; /* White fill behind the circular logo */
    padding: none;          /* Small breathing room inside the circle */
}

#main-header.scrolled .logo-img {
    height: 70px;
}

/* Desktop Nav links */
.desktop-nav {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    transition: var(--transition-all);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition-all);
}

.nav-item:hover::after {
    width: calc(100% - 16px);
}

/* Dropdown styling */
.dropdown {
    position: relative;
}

.arrow-down {
    font-size: 0.7rem;
    margin-left: 2px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    list-style: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-all);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--dark-navy);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-all);
}

.dropdown-menu li a:hover {
    background-color: var(--light-green-bg);
    color: var(--dark-green);
}

/* Header Actions: Search & Cart */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #f2f2f2; /* Light gray inner background */
    border: 3px solid var(--white); /* Thick white outer border */
    border-radius: 50px; /* Pill shape */
    padding: 0.3rem 0.8rem;
    position: relative;
}

.search-input {
    width: 160px; /* Slightly wider */
    padding: 0.2rem 0; 
    border: none;
    outline: none;
    background-color: transparent; /* Lets the container's gray show through */
    font-size: 0.9rem;
    font-family: var(--font-family);
    transition: var(--transition-all);
}

.search-input:focus {
    width: 220px; /* Expand on click */
}

.search-icon {
    color: var(--dark-navy);
    font-size: 1rem;
    margin-right: 8px; /* Space between icon and text */
    cursor: pointer;
}

/* Search Autocomplete Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    min-width: 260px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(13, 27, 42, 0.16);
    border: 1px solid #eef0ec;
    overflow: hidden;
    z-index: 200;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.search-suggestion-item:not(:last-child) {
    border-bottom: 1px solid #f4f4f0;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background-color: var(--light-green-bg);
}

.search-suggestion-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-category {
    font-size: 0.72rem;
    color: var(--primary-green);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-container {
    position: relative;
    cursor: pointer;
    background-color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 12px; /* Rounded square instead of circle */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition-all);
}

.cart-container:hover {
    transform: scale(1.05);
}

.cart-icon {
    font-size: 1.2rem;
    color: var(--dark-navy);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--sale-badge);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
    z-index: 1200;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 4px;
    transition: var(--transition-all);
    pointer-events: none;
}

/* Mobile Nav Drawer (slides in from the right) */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--dark-green);
    border-top: none;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1150;
}

.mobile-nav.open {
    display: block;
    transform: translateX(0);
}

/* Dimmed backdrop behind the drawer */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1140;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

/* Lock page scroll while the drawer is open */
body.mobile-nav-locked {
    overflow: hidden;
}

.mobile-nav-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-links {
    list-style: none;
    padding: 5rem 2rem 2rem 2rem;
}

.mobile-nav-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-all);
}

.mobile-nav-link:hover {
    padding-left: 8px;
    color: var(--light-green-bg);
}

/* Highlights the link matching the current page */
.mobile-nav-link.active-page {
    color: var(--light-green-bg);
    font-weight: 700;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.mobile-dropdown-menu {
    list-style: none;
    padding-left: 1.5rem;
    display: none;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.mobile-dropdown-menu.show {
    display: block;
}

.mobile-dropdown-menu li a {
    font-size: 1rem;
}

/* Search + Cart shortcuts inside the mobile hamburger menu, mirroring the
   desktop header's search bar and cart icon */
.mobile-nav-search-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    margin-bottom: 0.4rem;
}

.mobile-nav-search {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0.6rem 1rem;
    position: relative;
}

.mobile-nav-search .search-icon {
    color: var(--white);
    font-size: 1rem;
    margin-right: 8px;
}

.mobile-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--white);
    font-size: 0.95rem;
    font-family: var(--font-family);
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-nav-cart-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-cart-badge {
    background-color: var(--sale-badge);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SECTION 2: HERO BANNER */
.hero-section {
    position: relative;
    width: 100%;
    background-color: var(--light-green-bg);
    overflow: hidden;
    display: block; 
}

.hero-banner-container {
    width: 100%; 
    position: relative;
    aspect-ratio: 1024 / 576; 
    margin: 0 auto;
    display: block;
    /* Background properties kept from your original code */
    background-image: url('hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* Hero slides (stacked backgrounds that fade) */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Ensures no empty space */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}   

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-shop-link {
    position: absolute;
    left: 26.66%;
    top: 31.94%;
    width: 13.77%;
    height: 7.12%;
    border-radius: 50px;
    z-index: 10;
    cursor: pointer;
    background: transparent;
}


/* SECTION 3: INTRO TEXT */
.intro-top-bar {
    background-color: #f6fdf6;
    text-align: center;
    padding: 1.2rem 2rem;
    border-bottom: 2px solid #d4f4d4;
}

.intro-top-text {
    font-family: 'Playfair Display', serif; /* Upgraded to exact premium font */    
    font-size: 1.35rem;
    color: #3b4b3b;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.4s ease-in-out;
}
/* This class will be toggled by JS to hide the text */
.intro-top-text.fade-out {
    opacity: 0;
}
.intro-section {
    padding: 4.5rem 2rem 5rem 2rem;
    background-color: var(--white);
    text-align: center;
    border-bottom: 4px solid #fde047;
}

.intro-container {
    max-width: 950px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    color: #111827; /* A very dark, rich slate-navy to match the image */
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.5px; /* Pulls the letters slightly closer together like the image */
}

.intro-section p {
    font-size: 1.05rem;
    color: #4b5563; /* A medium cool-gray for perfect readability */
    line-height: 1.8;
    font-weight: 400;
    max-width: 900px; /* Constrains the width so it breaks exactly like the image */
    margin: 0 auto;
}

/* SECTION 4: SHOP BY HEALTH CONCERN */
.categories-section {
    padding: 0;
    background-color: var(--white);
}

.categories-header-banner {
    background-image: url('category_bg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem 5rem 2rem; 
    
    /* THE FIX: Forces everything inside to stack perfectly in the dead center */
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    
    /* The yellow border at the top of the banner */
    border-top: none; 
}
.categories-header-banner .section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem; /* Space between the label and the big heading */
    width: 100%; /* Ensures it doesn't float to the side */
}

.section-label {
    font-size: 0.8rem;
    color: var(--dark-navy); /* Darkened to match the image */
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.leaf-icon {
    font-size: 0.9rem;
    /* This clever filter turns a standard emoji into a sleek, dark silhouette icon */
    filter: grayscale(100%) brightness(20%); 
}

.categories-header-banner h2 {
    font-size: 2.6rem;
    color: var(--dark-navy);
    font-weight: 700;
    letter-spacing: -0.5px; /* Pulls the letters slightly tighter */
    margin: 0;
}

.categories-container {
    max-width: 100%;
    margin: 2rem auto 1.5rem auto;
    padding: 0 4rem;
    position: relative;
    z-index: 10;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
    row-gap: 4rem;
}

.category-card {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-all);
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-circle-img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: -45px;
    z-index: 2;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.category-img {
    width: 100%;
    height: 100%;
    /* CRITICAL FIX: Forces the image to fill the circle and focuses on the top illustration */
    object-fit: cover;
    object-position: top center;
    /* Zooms in slightly to push the baked-in text outside of the circular mask */
    transform: scale(1.15); 
}

/* The New White Text Box */
.category-text-box {
    background-color: var(--white);
    width: 100%;
    padding: 3.5rem 0.75rem 1.5rem 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    z-index: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}
.category-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-navy);
    line-height: 1.3;
}

.explore-more-btn-container {
    text-align: center;
    /* This negative margin acts like a magnet, pulling the button UP */
    margin-top: 1rem; 
    
    /* These properties ensure the button stays clickable and on top */
    position: relative; 
    z-index: 20; 
    
    /* Adds a little breathing room below the button before the next section */
    margin-bottom: 3rem; 
}

/* SECTION 5: CLASSICAL DOSAGE TYPES COVERFLOW slider */
.dosage-section {
    position: relative;
    padding: 0 0 3rem 0; /* Removed top padding so the beige band touches the section above */
    background-image: url('category_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Blurred foliage background overlays */
.foliage-blob, .sunbeam-light {
    display: none;
}

/* The new full-width beige band */
/* The slimmer, full-width cream band */
.dosage-header {
    background-color: #f8f6f0; /* Slightly brightened cream to match image */
    text-align: center;
    padding: 1.2rem 2rem; /* CRITICAL FIX: Halved the top/bottom padding to make the band thinner */
    margin-bottom: 4rem; 
    width: 100%;
    position: relative;
    z-index: 5;
    border-top: 1px solid #f0f0f0; 
    border-bottom: 1px solid #e8e5dc; 
}

/* The exactly matched typography */
.dosage-header h2 {
    color: #111827; /* Rich, dark slate-navy */
    font-family: var(--font-family); /* Inherits Inter */
    font-size: 2.2rem; /* Scaled down slightly to fit the thinner band */
    font-weight: 700; /* Maximum bold weight */
    letter-spacing: -0.5px; /* Tightly spaces the letters for that premium modern look */
    text-transform: uppercase;
    margin: 0;
}

.dosage-divider {
    width: 60px;
    height: 4px;
    background-color: var(--white);
    margin: 1rem auto 0 auto;
    border-radius: 2px;
}

.coverflow-outer-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 4rem;
    z-index: 5;
}

.coverflow-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: hidden;
}

/* Coverflow Card styling with image-rendered cards */
.coverflow-card {
    position: absolute;
    width: 240px;
    height: 320px;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 40px;
    user-select: none;
}

.coverflow-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 40px;
}

/* 3D coverflow states matching 5th image */
.coverflow-card.far-prev {
    transform: translateX(-220px) translateZ(-250px) rotateY(40deg) scale(0.75);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.coverflow-card.prev {
    transform: translateX(-120px) translateZ(-120px) rotateY(30deg) scale(0.85);
    opacity: 0.7;
    z-index: 2;
}

.coverflow-card.active {
    transform: translateX(0) translateZ(80px) rotateY(0deg) scale(1.05);
    opacity: 1;
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.coverflow-card.next {
    transform: translateX(120px) translateZ(-120px) rotateY(-30deg) scale(0.85);
    opacity: 0.7;
    z-index: 2;
}

.coverflow-card.far-next {
    transform: translateX(220px) translateZ(-250px) rotateY(-40deg) scale(0.75);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.coverflow-card.hidden {
    transform: translateX(0) translateZ(-400px) scale(0.5);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* Square, bright green arrows matching the design */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4ade80; /* A much brighter, vibrant green */
    color: var(--white);
    width: 32px; /* Smaller width */
    height: 32px; /* Smaller height */
    border-radius: 2px; /* Very sharp corners instead of heavily rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-all);
    font-size: 0.9rem;
    font-weight: 800;
}

.carousel-arrow:hover {
    background-color: #22c55e; /* Slightly darker green on hover */
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 0.5rem;
}

.right-arrow {
    right: 0.5rem;
}


/* SECTION 6: FEATURED MEDICINES */
.featured-section {
    padding: 0 0 6rem 0; /* Removed top and side padding so the band touches the edges */
    background-color: var(--white);
}

/* Duplicated the exact cream band styles here */
.featured-header {
    background-color: #f8f6f0; 
    text-align: center;
    padding: 1.2rem 2rem;
    margin-bottom: 0.5rem; 
    width: 100%;
    border-top: 1px solid #f0f0f0; 
    border-bottom: 1px solid #e8e5dc; 
}

.featured-header h2 {
    color: #111827; 
    font-family: 'Inter', sans-serif; 
    font-size: 2.2rem; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
    text-transform: uppercase;
    margin: 0;
}

/* Adds the side padding back to the grid so your products don't touch the screen edges */
/* --- HORIZONTAL SLIDER FOR FEATURED MEDICINES --- */
.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.2rem 2rem 2rem 2rem; 
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    
    /* REMOVED: scroll-snap and scroll-behavior */
    
    /* Hides the ugly native scrollbars for a clean, premium look */
    scrollbar-width: none; 
    -ms-overflow-style: none;  
}

.products-grid::-webkit-scrollbar {
    display: none; 
}

/* Force the cards to stay in a single line */
.products-grid .product-card {
    /* Calculates the exact width to show exactly 4 cards at a time on desktop */
    flex: 0 0 calc((100% - 6rem) / 4); 
    
    /* REMOVED: scroll-snap-align */
}

.product-card {
    background-color: var(--white);
    border-radius: 14px;
    padding: 0;
    position: relative;
    box-shadow: 0 1px 3px rgba(13, 27, 42, 0.06);
    border: 1px solid #eef0ec;
    transition: var(--transition-all);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(13, 27, 42, 0.1);
    border-color: #e2ece2;
}

/* Refined Sale Badge */
.sale-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--dark-navy);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.32rem 0.65rem;
    border-radius: 100px;
    text-shadow: none;
    z-index: 10;
}

/* Image Container */
.product-box-illustration {
    width: 100%;
    aspect-ratio: 4 / 5; /* Creates the tall rectangular shape from your image */
    background-color: #f8f9f6;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #f0f2ec;
    overflow: hidden;
    margin-bottom: 0;
    display: flex;
}

.product-image {
    width: 100%;
    height: 100%;
    /* Important: 'cover' ensures a full photograph fills the box completely */
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-box-illustration:hover .product-image {
    transform: scale(1.06);
}

/* Quick View Overlay */
.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
    padding-bottom: 2rem;
}

.product-card:hover .quick-view-overlay {
    opacity: 1;
    visibility: visible;
}

.quick-view-btn {
    background-color: #70bce4;
    color: var(--white);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.quick-view-btn:hover {
    background-color: #5aaad2;
}

.box-top {
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    padding: 0.4rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.box-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(240,248,240,1) 100%);
    text-align: center;
}

.box-hindi {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 0.2rem;
}

.box-eng {
    font-size: 0.8rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers all text */
    text-align: center;
    padding: 1.1rem 1.2rem 1.4rem 1.2rem;
    flex: 1;
}

.product-category {
    order: 2;
    font-size: 0.72rem;
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.product-card:hover .product-category {
    color: var(--dark-green);
}

.product-title {
    order: 1;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 0.35rem;
    letter-spacing: -0.2px;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--primary-green);
}
.rating {
    order: 3;
    color: #f0b429; /* Warm gold for filled-star feel */
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
    letter-spacing: 2px;
}

.product-price {
    order: 4;
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    justify-content: center; /* Centers the prices */
    gap: 0.55rem;
    width: 100%;
}

.original-price {
    text-decoration: line-through;
    color: #b8bcb4; /* Very light grey */
    font-size: 0.82rem;
}

.sale-price {
    font-size: 1.15rem;
    color: var(--dark-navy);
    font-weight: 700;
    letter-spacing: -0.2px;
}


/* ==========================================================================
   SECTION 7: ABOUT US
   ========================================================================== */
.about-section {
    padding: 1.5rem 2rem 6rem 2rem;
    background-color: var(--white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates the perfect 50/50 split */
    gap: 4rem;
    align-items: center; 
}

/* --- Left Column: Image Overlap --- */
.about-images {
    position: relative;
    width: 100%;
    /* These paddings create the 'empty space' at the bottom and right 
       so the small image has room to stick out without getting cut off */
    padding-right: 2rem; 
    padding-bottom: 9rem; 
}

.img-large {
    /* Takes up most of the left side, leaving space on the right */
    width: 85%; 
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

.img-large img, .img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-small {
    position: absolute;
    /* Anchors the image to the absolute bottom-right corner of the padded container */
    bottom: 0; 
    right: 0; 
    
    /* Perfect proportional size to match your screenshot */
    width: 55%; 
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    
    /* CRITICAL: The thick white border that visually "cuts into" the large image */
    border: 7px solid var(--white); 
    box-shadow: -5px 15px 30px rgba(0,0,0,0.12); 
    z-index: 2; /* Forces it to sit on top of the large image */
}

/* --- Right Column: Text & Typography --- */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #0f172a; /* Deep slate */
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.leaf-icon {
    width: 16px;
    height: 16px;
}

.about-content h2 {
    font-size: 3.5rem; /* Larger to match the image */
    color: #0f172a; 
    font-weight: 800; /* Extra bold */
    line-height: 1.15; /* Very tight line spacing */
    letter-spacing: -1.5px; /* Pulls letters close together for premium look */
    margin-bottom: 1.5rem;
}

.about-content p {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 500; /* 'Medium' weight makes the text look strong */
    margin-bottom: 1rem;
    max-width: 95%;
}

/* Bullet Points */
.about-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2.5rem 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #0f172a;
    font-weight: 500; /* Matches paragraph weight */
    font-size: 1.05rem;
    letter-spacing: -0.2px;
}

.check-icon {
    background-color: #22c55e; 
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon svg {
    width: 12px;
    height: 12px;
}

/* Pill Button - Green on Hover Only */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background-color: transparent; /* Transparent by default */
    border: 1.5px solid #0f172a; /* Dark slate outline */
    border-radius: 50px; 
    color: #0f172a; /* Dark text */
    text-decoration: none;
    font-weight: 700; 
    font-size: 1rem;
    transition: all 0.3s ease; /* Ensures a smooth color fade */
}

.btn-outline:hover {
    background-color: #3b8e36; /* Fills with green on hover */
    border-color: #3b8e36; /* Changes the border to green seamlessly */
    color: #ffffff; /* Changes text and arrow to white */
    transform: translateY(-2px); /* Slight lift effect */
}


/* ==========================================================================
   SECTION 8: BEST SELLERS
   ========================================================================== */
.best-sellers-section {
    padding: 0 0 4rem 0; /* CRITICAL: Removed top padding so it sits flush */
    background-color: var(--white);
}

/* 1. The Cream Band Header */
.best-sellers-header {
    background-color: #f6f4ea; /* Matched the exact warm, earthy cream from the image */
    text-align: center;
    padding: 0.5rem 2rem; /* Increased padding to make the band taller and more substantial */
    margin-bottom: 0; 
    width: 100%;
    /* Removed the borders to give it that completely seamless, flat look */
    border-top: none; 
    border-bottom: none; 
}

/* Typography matching the screenshot */
.best-sellers-header h2 {
    color: #0f172a; /* Deep, rich navy-slate black */
    font-family: 'Inter', sans-serif; /* Clean geometric font */
    font-size: 3.2rem; /* Significantly larger to match the commanding size in the image */
    font-weight: 800; /* Extra bold */
    letter-spacing: -1px; /* Tightly packed letters for a modern, high-end feel */
    text-transform: uppercase;
    margin: 0;
}

/* Hide the divider inside the header so the band looks perfectly clean */
.best-sellers-header .intro-divider {
    display: none; 
}

/* 2. The Carousel Wrapper */
.carousel-outer-wrapper {
    max-width: 1300px; /* Slightly wider to let the images stretch nicely */
    margin: 0 auto;
    position: relative;
    padding: 0 4rem; /* Leaves room for your left/right arrows */
}

/* 3. The Carousel Container (Adding the gaps and top space) */
.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    
    /* Increased gap to create the prominent white vertical borders between images */
    gap: 0.5rem; 
    
    /* Added 2rem to the top so the images don't touch the cream header anymore */
    padding: 0.5rem 0; 
    
    scrollbar-width: none; 
    -ms-overflow-style: none;  
}

.carousel-container::-webkit-scrollbar {
    display: none; 
}

/* 4. The Cards (Adjusting the math) */
.carousel-product-card {
    /* Because we used a 1.5rem gap, two gaps equal 3rem. 
       This math ensures exactly 3 cards fit perfectly on the screen! */
    flex: 0 0 calc((100% - 3rem) / 3); 
    border-radius: 0; 
    box-shadow: none;
}

/* Ensure the image container also has square corners */
.best-sellers-section .product-box-illustration {
    border-radius: 0; 
}


/* ==========================================================================
   SECTION 9: WHY CHOOSE US
   ========================================================================== */
.why-choose-section {
    background-color: var(--white);
    padding-top: 0rem;
    padding-bottom: 0;
}

/* --- The 5 Dot Buttons --- */
.section-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    
    /* CRITICAL SPACING: These two lines perfectly center the dots in the white gap */
    padding-top: 2.5rem;    /* Creates the space below the "Add to cart" buttons */
    padding-bottom: 2.5rem; /* Creates the space above the cream header */
    
    background-color: var(--white);
    width: 100%;
}

.section-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #2c3e50;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.section-dots .dot:hover {
    transform: scale(1.3);
    background-color: #3b8e36;
}

/* --- The Cream Banner --- */
.why-choose-header {
    background-color: #f6f4ea; /* Premium cream background */
    text-align: center;
    padding: 1.5rem 2rem;
    width: 100%;
    margin: 0; /* Overrides your previous margins */
    max-width: 100%; /* Allows it to stretch edge-to-edge */
}

.why-choose-header h2 {
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-top: 0;
    margin-bottom: 1rem;
}

.why-choose-subtitle {
    color: #4b5563;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0;
}

/* --- Comparison Background --- */
.comparison-bg-section {
    /* Removed the white gradient so your nature background image shows clearly! */
    background-image: url('category_bg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem 2rem;
    width: 100%;
}

/* --- Comparison Container --- */
.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex; 
    gap: 3rem;
}

/* --- True Frosted Glass Cards --- */
.comparison-card {
    flex: 1;
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center; /* This helps center the title perfectly */
}

/* Left Card: Darker Glass Tint */
.premium-card {
    background: rgba(20, 30, 20, 0.45); /* Dark, earthy green/black tint */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Right Card: Milky White Glass Tint */
.others-card {
    background: rgba(255, 255, 255, 0.65); /* Heavy, bright white tint */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- True Frosted Glass Cards (Identical Design) --- */
.comparison-card {
    flex: 1;
    display: flex;
    flex-direction: column; /* Allows us to push content to align */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(12px); 
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* --- Force the content to be white on the left card --- */
.premium-card h3, 
.premium-card .comparison-rows li {
    color: #ffffff !important; /* Forces white color */
    border-bottom-color: #ffffff !important;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

/* Remove any distinct background tints from the individual cards */
.premium-card {
    background: transparent;
}

.others-card {
    background: transparent;
}

/* --- The Titles & Underlines --- */
/* --- The Titles & Tight Underlines --- */
.comparison-card h3 {
    /* Uses a classic, elegant serif font to match the image */
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif; 
    font-size: 2.2rem;
    font-weight: 500;
    margin-top: 0;
    
    /* Reduced margin below the title to bring the list items closer */
    margin-bottom: 1.5rem; 
    
    display: inline-block; 
    
    /* Matches the exact underline style from your screenshot */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px; /* Pulls the line up tight against the text */
}

/* --- Keep the Lists Left-Aligned & Packed --- */
/* --- Flexbox Alignment for the Lists --- */
.comparison-rows {
    list-style: none;
    padding: 0;
    text-align: left; 
    margin: 0 auto;
    
    /* Make the list a flexible column */
    display: flex; 
    flex-direction: column;
    
    /* Set a fixed height so both boxes share the exact same vertical space */
    height: 100%;
    min-height: 280px; /* You can increase/decrease this number to adjust overall spacing */
}

/* --- The List Items --- */
.comparison-rows li {
    /* THE MAGIC TRICK: This forces every single list item to take up the exact same amount of space, aligning them perfectly across both boxes! */
    flex: 1; 
    
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    font-family: 'Inter', sans-serif; 
    
    /* Removed margin-bottom because Flexbox handles the spacing automatically now */
    margin-bottom: 0; 
}

/* --- The Icons --- */
.checkmark-icon {
    color: #4ade80; /* Bright, vibrant green */
    font-size: 1.4rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4); /* Gives the checkmark a little pop */
}


/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .comparison-container {
        flex-direction: column; 
        gap: 2rem;
    }
}


/* ==========================================================================
   SECTION 10: TESTIMONIALS
   ========================================================================== */

.testimonials-section {
    background-color: var(--white);
    padding: 6rem 2rem 4rem 2rem; 
    text-align: center;
}

/* --- 1. The Premium Header (Keeps the massive font) --- */
.testimonials-header {
    max-width: 900px;
    margin: 0 auto 4rem auto; /* 4rem space before the cards start */
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.testimonials-header .section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #0f172a; 
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.testimonials-header .leaf-icon {
    width: 18px;
    height: 18px;
}

.testimonials-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem; /* The massive size from the screenshot */
    font-weight: 800; 
    color: #0f172a; 
    line-height: 1.2; 
    letter-spacing: -1.5px; 
    margin: 0;
}

/* --- 2. The Carousel & Cards (Your existing code) --- */
.testimonials-carousel-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 3rem;
}

.testimonials-container {
    min-height: 250px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-card {
    background-color: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 3rem 2rem 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: none; /* Hidden by default for JS slider */
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.testimonial-card.active {
    display: flex; /* Shown when JS adds 'active' class */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. Avatars & Review Content --- */
.avatar-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.avatar-orange { background: linear-gradient(135deg, #ff922b 0%, #fd7e14 100%); }
.avatar-teal { background: linear-gradient(135deg, #15aabf 0%, #11998e 100%); }
.avatar-pink { background: linear-gradient(135deg, #f06595 0%, #e64980 100%); }

.stars {
    color: #f1c40f; /* Golden yellow */
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.reviewer-name {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 700;
}

/* --- 4. The Navigation Dots --- */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #cbd5e1; /* Replaced CSS variable with clean hex code */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #3b8e36; /* Replaced with your brand green */
    width: 24px;
    border-radius: 10px;
}

/* SECTION 11: MISSION BANNER copy of design in 2nd image */
/* ==========================================================================
   SECTION 11: CALL TO ACTION BANNER
   ========================================================================== */
.cta-banner-section {
    position: relative;
    /* The linear-gradient acts as a frosted cream overlay on top of your image */
    /* Make sure to replace 'banner-bg.jpg' with your actual image file name! */
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.02) 85%), url('Ayurveda.png');   
    background-size: cover;
    background-position: center;
    padding: 5rem 2rem; /* Creates the tall, expansive feel */
    display: flex;
    justify-content: center;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers everything perfectly */
}

/* --- The Small Eyebrow Label --- */
.cta-content .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #0f172a;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.cta-content .leaf-icon {
    width: 16px;
    height: 16px;
}

/* --- The Main Headline --- */
.cta-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    color: #0f172a; /* Deep slate */
    letter-spacing: -1.2px; /* Tight, premium letter spacing */
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* --- The Subtitle Paragraph --- */
.cta-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #334155;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 2.5rem;
    max-width: 850px; /* Keeps the text from stretching too wide on big screens */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .cta-banner-section {
        padding: 5rem 1.5rem;
    }
    .cta-content h2 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }
    .cta-content p {
        font-size: 1.05rem;
    }
}

/* SECTION 12: FOOTER */
/* ==========================================================================
   SECTION 12: NEWSLETTER SUBSCRIPTION BAR
   ========================================================================== */
.newsletter-bar {
    background-color: #ebf4e6; 
    width: 100%;
    position: relative;
    padding-top: 2rem;
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem 2rem 2rem;
}

.newsletter-logo img {
    height: 80px; 
    width: auto;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    border-radius: 4px;
}

.newsletter-form-wrapper {
    flex: 1; 
    display: flex;
    justify-content: center;
    padding: 0 3rem; 
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 50px; 
    overflow: hidden; 
    border: 1px solid rgba(0,0,0,0.05); 
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #333;
    outline: none;
}

.newsletter-form button {
    background-color: #3b8e36; 
    color: #ffffff;
    border: none;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0 50px 50px 0; 
}

.newsletter-form button:hover {
    background-color: #2e702a; 
}

.newsletter-socials {
    display: flex;
    gap: 0.8rem; 
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: #ffffff; 
    border-radius: 4px; 
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon.facebook { background-color: #3b5998; }
.social-icon.twitter { background-color: #1da1f2; }
.social-icon.instagram { background-color: #e1306c; }


@media (max-width: 900px) {
    .newsletter-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .newsletter-form-wrapper {
        padding: 0;
        width: 100%;
    }
    .newsletter-form {
        max-width: 100%;
    }
}

/* ==========================================================================
   SECTION 13: MAIN FOOTER
   ========================================================================== */
.main-footer {
    /* Exact vibrant green from the screenshot */
    background: linear-gradient(to right, #44ad3a, #389d2e);
    color: #ffffff;
    /* 'Poppins' or 'Inter' will give you that clean, round look */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* The first column (About Us) is slightly wider in your image */
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; 
    gap: 4rem;
    padding: 5rem 2rem; /* Lots of breathing room on top and bottom */
}

/* --- Column Headings (Exact Match) --- */
.footer-col h4 {
    color: #1a1a1a; /* Sleek dark charcoal, exactly like the image */
    font-size: 1.25rem;
    font-weight: 500; /* Medium weight, not too thick */
    margin-top: 0;
    margin-bottom: 1.8rem;
    letter-spacing: -0.5px;
}

/* --- Text & Spacing --- */
.footer-col p {
    font-size: 0.95rem; /* Increased slightly for better reading */
    font-weight: 400;
    line-height: 1.7; 
    margin-bottom: 0.8rem;
    color: #ffffff;
    opacity: 0.9; /* Slightly softened */
}

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

/* Contact Info Spacing */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 0.95rem; /* Matched to paragraph size */
    font-weight: 400;
    color: #ffffff;
    opacity: 0.9;
}

/* Quick Links Spacing */
.footer-contact li svg {
    margin-top: 1px; 
}
/* Quick Links Spacing */
.footer-links li {
    margin-bottom: 0.8rem; /* This adds the airy space between your links! */
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem; /* Matched to paragraph size */
    font-weight: 400;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    opacity: 1; /* Brightens up when you hover */
    transform: translateX(3px); 
}

/* --- Map Container --- */
.footer-map {
    background-color: #ffffff;
    padding: 4px; 
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Copyright Bottom Bar (Exact Colors) --- */
.footer-bottom {
    background-color: #f2f9ed; 
    color: #1a1a1a;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-bottom p {
    margin: 0;
}

/* --- Floating Action Buttons (Exact Match) --- */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.float-btn:hover {
    transform: translateY(-3px);
}

.phone-btn {
    background-color: #12c2e9; /* Teal */
}

.top-btn {
    background-color: #4db041; /* Green */
    border: 1px solid #4db041;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr; 
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr; 
        gap: 2.5rem;
    }
}

/* RESPONSIVE STYLES */

/* Tablet Breakpoint (768px) */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets */
    }
    .hero-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-logo-container {
        flex: 0 0 150px;
        width: 150px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-right {
        width: 100%;
        height: 350px;
    }
    
    .products-grid .product-card {
        flex: 0 0 calc((100% - 2rem) / 2); /* Shows 2 cards at a time on tablets */
    }
    
    .about-container {
        grid-template-columns: 1fr; /* Stacks the text under the images */
        gap: 3rem;
    }
    
    .about-images {
        max-width: 600px; /* Prevents the images from getting too massive on an iPad */
        margin: 0 auto;
    }
    
    .comparison-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-top-strip {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .dosage-card {
        flex: 0 0 calc((100% - 2rem) / 2);
    }
    
    .carousel-product-card {
        flex: 0 0 calc((100% - 2rem) / 2);
    }
    
    .coverflow-card {
        width: 220px;
        height: 300px;
        border-radius: 30px;
    }
    
    .coverflow-card img {
        border-radius: 30px;
    }
    
    .coverflow-wrapper {
        height: 340px;
    }
    
    .coverflow-card.far-prev {
        transform: translateX(-160px) translateZ(-180px) rotateY(40deg) scale(0.75);
    }
    
    .coverflow-card.prev {
        transform: translateX(-90px) translateZ(-100px) rotateY(30deg) scale(0.85);
    }
    
    .coverflow-card.next {
        transform: translateX(90px) translateZ(-100px) rotateY(-30deg) scale(0.85);
    }
    
    .coverflow-card.far-next {
        transform: translateX(160px) translateZ(-180px) rotateY(-40deg) scale(0.75);
    }
}

@media (max-width: 768px) {
    /* Mobile nav adjustments */
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .search-input:focus {
        width: 160px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coverflow-card {
        width: 160px;
        height: 220px;
        border-radius: 20px;
    }
    
    .coverflow-card img {
        border-radius: 20px;
    }
    
    .coverflow-wrapper {
        height: 260px;
    }
    
    .coverflow-card.far-prev {
        transform: translateX(-110px) translateZ(-140px) rotateY(35deg) scale(0.7);
    }
    
    .coverflow-card.prev {
        transform: translateX(-60px) translateZ(-80px) rotateY(25deg) scale(0.85);
    }
    
    .coverflow-card.next {
        transform: translateX(60px) translateZ(-80px) rotateY(-25deg) scale(0.85);
    }
    
    .coverflow-card.far-next {
        transform: translateX(110px) translateZ(-140px) rotateY(-35deg) scale(0.7);
    }
}

/* Mobile Breakpoint (480px) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .products-grid .product-card {
        flex: 0 0 100%; /* Shows 1 card at a time on mobile phones */
    }
    
    .footer-bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-product-card {
        flex: 0 0 100%;
    }
    
    .carousel-outer-wrapper {
        padding: 0 2rem;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 1.5rem;
    }
    
    .comparison-card {
        padding: 2rem 1.5rem;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .avatar-circle {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }
}


/* INTERSECTION OBSERVER ANIMATIONS */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 1. Remove the bottom margin from the very last link in ALL columns 
      so they share the exact same invisible bottom boundary */
.footer-links li:last-child {
    margin-bottom: 0 !important;
}

/* 2. Target the Quick Links (2nd column) and set its normal gap */
.footer-col:nth-child(2) .footer-links li {
    margin-bottom: 1.5rem;
}

/* 3. Target the Customer Support (3rd column) and stretch its gap 
      to make up for having one less link */
.footer-col:nth-child(3) .footer-links li {
    margin-bottom: 2.6rem; /* Increased to stretch the 4 items perfectly */
}

/* ========================================================================== */
/* QUICK VIEW MODAL STYLES */
/* ========================================================================== */

.quick-view-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.quick-view-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quick-view-modal-content {
    background-color: var(--white);
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #000;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-product-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.modal-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-product-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
}

.modal-rating {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ff9800;
}

.modal-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.modal-sale-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
}

.modal-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--body-text);
    margin-bottom: 1.5rem;
}

.modal-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-quantity label {
    font-weight: 600;
    color: var(--dark-navy);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.qty-btn:hover {
    background-color: #e0e0e0;
}

.qty-input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    border: none;
    font-size: 1rem;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.qty-input:focus {
    outline: none;
}

.modal-add-to-cart {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-category {
    font-size: 0.9rem;
    color: #666;
    padding: 0.8rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.modal-category span {
    font-weight: 600;
    color: var(--primary-green);
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .quick-view-modal-content {
        width: 95%;
    }
    
    .modal-product-name {
        font-size: 1.5rem;
    }
    
    .modal-sale-price {
        font-size: 1.3rem;
    }
}
/* ==========================================================================
   PRODUCT CARD: IMAGE & QUICK VIEW HOVER
   ========================================================================== */

/* 1. The Image Container MUST be relative to hold the sliding bar */
.product-box-illustration {
    position: relative;
    width: 100%;
    overflow: hidden; /* Hides the quick view bar when you aren't hovering */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* 2. The Sleek Dark Quick View Bar */
.quick-view-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Dark semi-transparent background */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    
    /* Hide it below the image by default */
    opacity: 1;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
}

/* 3. THE HOVER EFFECT: Slide the bar up! */
.product-box-illustration:hover .quick-view-bar {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Keep your sale badge positioned nicely over the image */
.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #ffffff;
    z-index: 5;
    /* Add background/padding here if your badge needs it */
}
/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */
.single-product-main {
    background-color: var(--white);
    padding: 6rem 2rem; /* Spacing below the fixed header */
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split screen 50/50 */
    gap: 4rem;
    align-items: start;
}

/* --- Left Side: Gallery --- */
.product-gallery {
    position: relative;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-gallery-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Gallery Buttons (Zoom & Arrows) */
.gallery-icon-btn {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.gallery-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.zoom-btn { top: 15px; right: 15px; }
.left-arrow { top: 50%; left: 15px; transform: translateY(-50%); }
.right-arrow { top: 50%; right: 15px; transform: translateY(-50%); }

/* --- Right Side: Details --- */
.product-info-detail {
    display: flex;
    flex-direction: column;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.breadcrumbs a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover { color: #3b8e36; }

.detail-category {
    color: #5cb85c;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.detail-title {
    font-size: 2.2rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.detail-pricing {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.detail-old-price {
    font-size: 1.2rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.detail-new-price {
    font-size: 1.8rem;
    color: #333333;
    font-weight: 600;
}

.detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 2rem;
}

/* Cart Action Row */
.detail-cart-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-qty-input {
    width: 60px;
    height: 45px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    outline: none;
}

.btn-detail-add {
    background-color: #5cb85c; /* Matched exactly to the screenshot's green */
    color: white;
    border: none;
    height: 45px;
    padding: 0 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px; /* Pill shape from screenshot */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-detail-add:hover {
    background-color: #4cae4c;
}

.detail-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.detail-meta {
    font-size: 0.9rem;
    color: #666;
}

.detail-meta a {
    color: #5cb85c;
    text-decoration: none;
    font-weight: 500;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .product-detail-container {
        grid-template-columns: 1fr; /* Stacks the image on top of text */
        gap: 2rem;
    }
}

/* ==========================================================================
   CATEGORY PAGE STYLES (merged from category.css)
   ========================================================================== */

/* ==========================================================================
   CATEGORY PAGE STYLES
   ========================================================================== */

/* --- CATEGORY HERO --- */
.category-hero {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    overflow: hidden;
    margin-top: 60px;
}

.category-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    z-index: 1;
}

.category-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('category_bg.png') center/cover;
    opacity: 0.15;
    mix-blend-mode: multiply;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: #4a6b4a;
    flex-wrap: wrap;
}

.category-breadcrumb a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.category-breadcrumb a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #81c784;
    font-weight: 300;
}

.breadcrumb-current {
    color: #1b5e20;
    font-weight: 600;
}

.category-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #0d1b2a;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.category-hero-desc {
    font-size: 1.1rem;
    color: #37474f;
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.category-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-product-count {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2e7d32;
    border: 1px solid rgba(46,125,50,0.15);
}

.count-number {
    font-weight: 700;
    color: #1b5e20;
}

.category-hero-divider {
    color: #81c784;
    font-weight: 300;
}

.category-hero-badge {
    font-size: 0.85rem;
    color: #4a6b4a;
    font-weight: 500;
}

/* --- MAIN LAYOUT --- */
.category-main {
    padding: 3rem 2rem 5rem;
    background: #fafaf8;
}

.category-container {
    max-width: 1800px;
    margin: 0 40px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

/* --- MOBILE FILTER TOGGLE --- */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    background: var(--white);
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-navy);
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.mobile-filter-toggle:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.filter-badge {
    background: var(--primary-green);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- SIDEBAR --- */
.category-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8e6c9 transparent;
}

.category-sidebar::-webkit-scrollbar {
    width: 6px;
}

.category-sidebar::-webkit-scrollbar-thumb {
    background: #c8e6c9;
    border-radius: 3px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0;
}

.clear-all-filters {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.clear-all-filters:hover {
    background: #fef2f2;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0.3rem;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 1.8rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price Range */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-input-wrap {
    position: relative;
    flex: 1;
}

.price-currency {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.price-input {
    width: 100%;
    padding: 0.6rem 0.6rem 0.6rem 1.8rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-family);
    color: var(--dark-navy);
    outline: none;
    transition: border-color 0.2s;
}

.price-input:focus {
    border-color: var(--primary-green);
}

.price-separator {
    color: #999;
    font-weight: 500;
}

.price-range-slider {
    padding: 0 0.2rem;
}

.price-track {
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    position: relative;
    margin-bottom: 0.5rem;
}

.price-fill {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--primary-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999;
}

/* Checkbox Filters */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: #555;
    transition: color 0.2s;
}

.filter-checkbox:hover {
    color: var(--dark-navy);
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-box {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox input:checked + .check-box {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.filter-checkbox input:checked + .check-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.filter-label {
    font-weight: 500;
}

/* Select Filter */
.filter-select, .sort-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-family);
    color: var(--dark-navy);
    background: var(--white);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2rem;
    transition: border-color 0.2s;
}

.filter-select:focus, .sort-select:focus {
    border-color: var(--primary-green);
}

.mobile-sort-group {
    display: none;
}

/* --- SIDEBAR OVERLAY --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* --- CONTENT AREA --- */
.category-content {
    min-width: 0;
}

/* Top Bar */
.category-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.category-sort {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.category-sort label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    min-height: 0;
}

.active-filters:empty {
    display: none;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #c8e6c9;
}

.filter-tag button {
    background: none;
    border: none;
    cursor: pointer;
    color: #2e7d32;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
}

.filter-tag button:hover {
    color: #1b5e20;
}

/* --- SKELETON LOADER --- */
.products-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skeleton-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    margin: 1rem 1rem 0.5rem;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
    margin-bottom: 1rem;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- PRODUCT GRID --- */
.category-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Premium Category Product Card */
.cat-product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.cat-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(46,139,46,0.06);
    border-color: rgba(46,139,46,0.15);
}

/* Card Image Area */
.cat-product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #f9f9f9 0%, #f5f5f5 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-product-image-wrap img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cat-product-card:hover .cat-product-image-wrap img {
    transform: scale(1.08);
}

/* Badges */
.cat-product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.cat-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-badge-sale {
    background: #e74c3c;
    color: #fff;
}

.cat-badge-new {
    background: #3498db;
    color: #fff;
}

.cat-badge-bestseller {
    background: #f39c12;
    color: #fff;
}

/* Discount Badge */
.cat-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(46,139,46,0.9);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(46,139,46,0.3);
}

/* Wishlist Button */
.cat-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 62px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cat-wishlist-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.cat-wishlist-btn svg {
    width: 16px;
    height: 16px;
    stroke: #e74c3c;
    fill: none;
    transition: fill 0.2s;
}

.cat-wishlist-btn.active svg {
    fill: #e74c3c;
}

/* Quick View Overlay */
.cat-quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 6;
}

.cat-product-card:hover .cat-quick-view {
    transform: translateY(0);
}

.cat-quick-view-btn {
    background: #70bce4;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-family);
}

.cat-quick-view-btn:hover {
    background: #5aaad2;
}

/* Card Info */
.cat-product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cat-product-category {
    font-size: 0.78rem;
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.4rem;
}

.cat-product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.cat-product-card:hover .cat-product-name {
    color: var(--primary-green);
}

.cat-product-desc {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating */
.cat-product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.cat-stars {
    color: #f5a623;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cat-rating-count {
    font-size: 0.78rem;
    color: #999;
}

/* Price */
.cat-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1rem;
    margin-top: auto;
}

.cat-price-sale {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2e7d32;
}

.cat-price-original {
    font-size: 0.9rem;
    color: #bbb;
    text-decoration: line-through;
}

/* Add to Cart Button */
.cat-add-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.cat-add-cart-btn:hover {
    background: var(--dark-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46,139,46,0.25);
}

.cat-add-cart-btn:active {
    transform: translateY(0);
}

/* --- EMPTY STATE --- */
.category-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px dashed #e0e0e0;
}

.empty-icon {
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.category-empty-state h3 {
    font-size: 1.4rem;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
}

.category-empty-state p {
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* --- RECOMMENDED SECTION --- */
.category-recommended {
    padding: 4rem 2rem 6rem;
    background: var(--white);
    border-top: 1px solid #f0f0f0;
}

.recommended-container {
    max-width: 1300px;
    margin: 0 auto;
}

.category-recommended .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-recommended .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--dark-navy);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.category-recommended h2 {
    font-size: 2.4rem;
    color: var(--dark-navy);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Recommended uses same card styles as category grid */
.recommended-grid .cat-product-card {
    border-radius: 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .category-products-grid,
    .products-skeleton,
    .recommended-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .category-hero {
        min-height: 300px;
        padding: 6rem 1.5rem 2rem;
    }
    .category-hero-title {
        font-size: 2.4rem;
    }
    .category-container {
        grid-template-columns: 1fr;
        margin: 0;
    }
    .category-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        max-height: 100vh;
        z-index: 2000;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .category-sidebar.show {
        transform: translateX(0);
    }
    .sidebar-close {
        display: flex;
    }
    .mobile-filter-toggle {
        display: flex;
    }
    .mobile-sort-group {
        display: block;
    }
    .category-sort {
        display: none;
    }
    .category-products-grid,
    .products-skeleton,
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-hero {
        min-height: 260px;
        padding: 5rem 1rem 1.5rem;
    }
    .category-hero-title {
        font-size: 1.8rem;
    }
    .category-hero-desc {
        font-size: 0.95rem;
    }
    .category-main {
        padding: 1.5rem 1rem 3rem;
    }
    .category-products-grid,
    .products-skeleton,
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .cat-product-info {
        padding: 0.9rem;
    }
    .cat-product-name {
        font-size: 0.9rem;
    }
    .cat-price-sale {
        font-size: 1rem;
    }
    .category-recommended {
        padding: 2rem 1rem 4rem;
    }
    .category-recommended h2 {
        font-size: 1.6rem;
    }
}

/* Note: grid stays at 2 columns down to the smallest widths (see mobile
   overrides later in this file) so category product cards remain large
   enough to be fully visible and usable instead of shrinking to 1 column. */

/* ==========================================================================
   PRODUCT PAGE STYLES (merged from product.html inline styles)
   ========================================================================== */

.product-page-wrapper {
            max-width: 1100px;
            margin: 40px auto 60px;
            padding: 0 24px;
        }
        .page-product {
            background: linear-gradient(180deg, #ffffff 0%, #f6fdf6 50%, #ffffff 100%);
        }
        .breadcrumb {
            font-size: 0.88rem;
            color: #999;
            margin-bottom: 28px;
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            align-items: center;
        }
        .breadcrumb a { color: #999; text-decoration: none; }
        .breadcrumb a:hover { color: var(--primary-green); }
        .breadcrumb span { color: #999; }
        .product-top {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 56px;
            margin-bottom: 60px;
            align-items: start;
        }
        @media (max-width: 768px) { .product-top { grid-template-columns: 1fr; gap: 32px; } }
        .product-gallery { display: flex; flex-direction: column; gap: 14px; }
        .main-image-box {
            position: relative;
            background: #f9f9f9;
            border: 1px solid #e8e8e8;
            border-radius: 4px;
            aspect-ratio: 1 / 1;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .main-image-box img { max-width: 88%; max-height: 88%; object-fit: contain; }
        .sale-badge-pill {
            position: absolute;
            top: 16px; left: 16px;
            background: #fff;
            color: #333;
            border: 1px solid #ccc;
            border-radius: 30px;
            padding: 5px 14px;
            font-size: 0.82rem;
            font-weight: 600;
            z-index: 5;
        }
        .zoom-btn {
            position: absolute;
            top: 14px; right: 14px;
            width: 36px; height: 36px;
            background: rgba(255,255,255,0.92);
            border: 1px solid #ddd;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            font-size: 0.95rem; color: #555;
            z-index: 5;
            transition: box-shadow 0.2s;
        }
        .zoom-btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
        .img-arrow {
            position: absolute;
            top: 50%; transform: translateY(-50%);
            width: 34px; height: 34px;
            background: rgba(0,0,0,0.55);
            color: #fff; border: none; border-radius: 4px;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 1rem; z-index: 5;
            transition: background 0.2s;
        }
        .img-arrow:hover { background: rgba(0,0,0,0.78); }
        .img-arrow.left { left: 12px; }
        .img-arrow.right { right: 12px; }
        .thumbnail-row { display: flex; gap: 10px; }
        .thumb {
            width: 90px; height: 90px;
            border: 2px solid #e0e0e0;
            border-radius: 4px; overflow: hidden;
            cursor: pointer; background: #f9f9f9;
            display: flex; align-items: center; justify-content: center;
            transition: border-color 0.2s;
        }
        .thumb img { width: 92%; height: 92%; object-fit: contain; }
        .thumb.active, .thumb:hover { border-color: var(--primary-green); }
        .lightbox-overlay {
            display: none;
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.85);
            z-index: 9999;
            align-items: center; justify-content: center;
        }
        .lightbox-overlay.show { display: flex; }
        .lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
        .lightbox-close {
            position: fixed; top: 20px; right: 28px;
            color: #fff; font-size: 2rem;
            cursor: pointer; background: none; border: none; line-height: 1;
        }
        .product-info-col { display: flex; flex-direction: column; }
        .product-category-link {
            color: var(--primary-green);
            font-size: 0.88rem; font-weight: 500;
            text-decoration: none;
            margin-bottom: 6px; display: block;
        }
        .product-category-link:hover { text-decoration: underline; }
        .product-title-main {
            font-size: 1.85rem; font-weight: 700;
            color: #1a1a1a; margin: 0 0 12px; line-height: 1.25;
        }
        .star-rating-display { display: flex; gap: 3px; margin-bottom: 14px; }
        .star-rating-display span { font-size: 1.1rem; color: #f5a623; }
        .pricing-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
        .old-price { font-size: 1rem; color: #999; text-decoration: line-through; }
        .new-price { font-size: 1.6rem; font-weight: 700; color: #1a1a1a; }
        .product-desc { font-size: 0.95rem; line-height: 1.75; color: #555; margin-bottom: 22px; }
        .product-desc strong { color: #1a1a1a; }
        .cart-action-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
        .qty-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.qty-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-left: 0.5rem;
}
.quantity-stepper {
    display: inline-flex;
    align-items: center;
    height: 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
}
.qty-btn {
    width: 42px;
    height: 48px;
    border: none;
    background: transparent;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover {
    background: #f9fafb;
    color: var(--primary-green);
}
.qty-box {
    width: 46px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
}
.qty-box::-webkit-outer-spin-button,
.qty-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-stepper:focus-within { border-color: var(--primary-green); }

        .btn-add-main {
            background-color: var(--primary-green);
            color: #fff; border: none; height: 44px;
            padding: 0 2.2rem; font-size: 0.95rem; font-weight: 600;
            border-radius: 50px; cursor: pointer;
            transition: background 0.2s, transform 0.15s;
        }
        .btn-add-main:hover { background-color: var(--dark-green); transform: translateY(-1px); }
        .info-divider { border: none; border-top: 1px solid #e8e8e8; margin: 4px 0 14px; }
        .category-meta { font-size: 0.9rem; color: #666; }
        .category-meta a { color: var(--primary-green); text-decoration: none; font-weight: 500; }
        .category-meta a:hover { text-decoration: underline; }

        /* REVIEWS */
        .reviews-section { margin-bottom: 56px; border-top: 3px solid var(--primary-green); }
        .reviews-tab {
            display: inline-block; padding: 10px 18px;
            font-size: 0.9rem; font-weight: 600; color: #333;
            border-bottom: 3px solid var(--primary-green);
            margin-bottom: 24px; margin-top: -3px;
        }
        .no-reviews-text { color: var(--primary-green); font-size: 0.9rem; margin-bottom: 28px; }
        .review-form-box { border: 1px solid #e0e0e0; border-radius: 4px; padding: 28px 28px 24px; }
        .review-form-box h4 { font-size: 1rem; font-weight: 600; color: #1a1a1a; margin-bottom: 18px; }
        .review-form-label { font-size: 0.88rem; font-weight: 600; color: #333; display: block; margin-bottom: 8px; }
        .review-form-label .required { color: #e74c3c; }
        .star-input { display: flex; gap: 4px; margin-bottom: 18px; }
        .star-input span { font-size: 1.4rem; color: #e2b76c; cursor: pointer; transition: color 0.15s; user-select: none; }
        .star-input span.filled { color: #f5a623; }
        .review-textarea {
            width: 100%; min-height: 120px;
            border: 1px solid #ccc; border-radius: 4px;
            padding: 10px 12px; font-size: 0.92rem;
            font-family: var(--font-family); resize: vertical;
            outline: none; margin-bottom: 18px; color: #333; box-sizing: border-box;
        }
        .review-textarea:focus { border-color: var(--primary-green); }
        .btn-submit-review {
            background-color: var(--primary-green); color: #fff; border: none;
            padding: 10px 28px; border-radius: 50px;
            font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
        }
        .btn-submit-review:hover { background-color: var(--dark-green); }

        /* RELATED PRODUCTS */
        .related-section { margin-bottom: 40px; }
        .related-section h2 { font-size: 1.9rem; font-weight: 700; color: #1a1a1a; margin-bottom: 28px; }
        .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
        @media (max-width: 768px) { .related-grid { grid-template-columns: 1fr 1fr; } }
        @media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }
        .related-card { display: flex; flex-direction: column; }
        .related-img-box {
            position: relative; background: #f5f5f5; border-radius: 4px;
            aspect-ratio: 1 / 1;
            display: flex; align-items: center; justify-content: center;
            overflow: hidden; margin-bottom: 12px; cursor: pointer;
        }
        .related-img-box img { max-width: 85%; max-height: 85%; object-fit: contain; }
        .related-sale-badge {
            position: absolute; top: 12px; left: 12px;
            background: #fff; color: #333; border: 1px solid #ccc;
            border-radius: 30px; padding: 4px 12px; font-size: 0.78rem; font-weight: 600;
        }
        .related-category { font-size: 0.8rem; color: #999; margin-bottom: 4px; }
        .related-name { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; cursor: pointer; }
        .related-name:hover { color: var(--primary-green); }
        .related-stars { display: flex; gap: 2px; margin-bottom: 8px; }
        .related-stars span { font-size: 0.9rem; color: #f5a623; }
        .related-pricing { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
        .related-old { font-size: 0.85rem; color: #999; text-decoration: line-through; }
        .related-new { font-size: 1rem; font-weight: 700; color: #1a1a1a; }
        .btn-related-cart {
            background-color: var(--primary-green); color: #fff; border: none;
            padding: 10px 0; border-radius: 50px;
            font-size: 0.88rem; font-weight: 600; cursor: pointer; width: 100%;
            transition: background 0.2s;
        }
        .btn-related-cart:hover { background-color: var(--dark-green); }

        /* PACKING OPTIONS */
        .packing-section { margin-bottom: 20px; }
        .packing-label {
            font-size: 0.88rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
            display: block;
        }
        .packing-label span {
            font-weight: 400;
            color: var(--primary-green);
            margin-left: 6px;
        }
        .packing-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .packing-btn {
            padding: 8px 18px;
            border: 1.5px solid #ccc;
            border-radius: 4px;
            background: #fff;
            font-size: 0.88rem;
            font-weight: 500;
            color: #444;
            cursor: pointer;
            transition: border-color 0.18s, color 0.18s, background 0.18s;
        }
        .packing-btn:hover {
            border-color: var(--primary-green);
            color: var(--primary-green);
        }
        .packing-btn.selected {
            border-color: var(--primary-green);
            background: var(--primary-green);
            color: #fff;
        }

        /* TOAST */
        .toast {
            position: fixed; bottom: 30px; left: 50%;
            transform: translateX(-50%) translateY(20px);
            background-color: #1a1a1a; color: #fff;
            padding: 13px 28px; border-radius: 50px;
            font-size: 0.92rem; font-weight: 500;
            opacity: 0; transition: all 0.35s ease;
            z-index: 9000; white-space: nowrap; pointer-events: none;
        }
        .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   PREMIUM PRODUCT PAGE REDESIGN
   ========================================================================== */

/* Sticky Purchase Bar */
.sticky-purchase-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 0.75rem 2rem;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.sticky-purchase-bar.show {
    transform: translateY(0);
}
.sticky-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sticky-bar-inner img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
}
.sticky-bar-meta {
    flex: 1;
    min-width: 0;
}
.sticky-bar-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-bar-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-green);
}
.btn-add-premium.small {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb-premium {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.breadcrumb-premium a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-premium a:hover {
    color: var(--primary-green);
}

/* Hero Layout */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
    align-items: start;
}
@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Gallery */
.product-gallery-col {
    position: sticky;
    top: 110px;
}
.gallery-main {
    position: relative;
    background: #fafafa;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid #f0f0f0;
}
.gallery-img-wrap {
    width: 95%;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}
.gallery-main:hover .gallery-img-wrap {
    transform: scale(1.03);
}
.gallery-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.sale-badge-pill {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #fff;
    color: #e74c3c;
    border: 1px solid #fee2e2;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 5;
    letter-spacing: 0.5px;
}
.zoom-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    z-index: 5;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.zoom-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.img-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #eee;
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 5;
    transition: all 0.2s ease;
}
.img-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.img-arrow.left { left: 14px; }
.img-arrow.right { right: 14px; }

.thumbnail-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.thumb {
    width: 80px;
    height: 80px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    opacity: 0.7;
}
.thumb img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}
.thumb.active, .thumb:hover {
    border-color: var(--primary-green);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(46,139,46,0.12);
}

/* Product Info */
.product-info-col {
    display: flex;
    flex-direction: column;
}
.product-header {
    margin-bottom: 1.5rem;
}
.product-category-link {
    display: inline-block;
    background: rgba(46, 139, 46, 0.08);
    color: var(--primary-green);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(46, 139, 46, 0.15);
}
.product-title-main {
    font-family: 'Inter', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin: 0 0 0.8rem;
    letter-spacing: -1px;
    font-style: normal;
}
@media (max-width: 576px) {
    .product-title-main { font-size: 1.9rem; }
}



.star-rating-display {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
}
.stars-fill {
    color: #f5a623;
    letter-spacing: 2px;
}
.rating-count {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Pricing */
.pricing-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.75rem;
    border: 1px solid #bbf7d0;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}
.sale-price-large {
    font-size: 1.3rem;
    font-weight: 800;
    color: #14532d;
    letter-spacing: -0.5px;
}
.original-price-large {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}
.discount-pill {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}
.savings-text {
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 600;
    margin-top: 0.15rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #374151;
    background: #ffffff;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ticon {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Benefits Mini */


/* Product Description Box (after pricing) */
.product-desc-box {
    background: linear-gradient(135deg, #fefce8 0%, #ffffff 100%);
    border: 1px solid #fde047;
    border-left: 4px solid #eab308;
    border-radius: 0 12px 12px 0;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.2rem;
    width: 100%;
}
.product-desc-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin: 0;
}
.product-desc-box p strong {
    color: #1a1a1a;
}

/* Packing Options */
.packing-section {
    margin-bottom: 1.5rem;
}
.packing-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.7rem;
}
.packing-label span {
    color: var(--primary-green);
    font-weight: 700;
    margin-left: 0.4rem;
}
.packing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.packing-btn {
    padding: 0.7rem 1.4rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}
.packing-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: #f0fdf4;
}
.packing-btn.selected {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(46,139,46,0.25);
}

/* Description */
.product-desc-premium {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* Cart Action */
.cart-action-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.quantity-stepper {
    display: inline-flex;
    align-items: center;
    height: 52px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.qty-btn {
    width: 44px;
    height: 52px;
    border: none;
    background: #fff;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.qty-btn:hover {
    background: #f9fafb;
}
.qty-box {
    width: 50px;
    height: 52px;
    border: none;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    outline: none;
    -moz-appearance: textfield;
}
.qty-box::-webkit-outer-spin-button,
.qty-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.btn-add-premium {
    flex: 1;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(46,139,46,0.3);
    font-family: var(--font-family);
}
.btn-add-premium:hover {
    background: linear-gradient(135deg, var(--dark-green) 0%, #1d6b1d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,139,46,0.4);
}
.atc-icon {
    font-size: 1.1rem;
}

/* Buy Now Button */
.btn-buy-now {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(31,41,55,0.25);
    font-family: var(--font-family);
    margin-top: 0.75rem;
}
.btn-buy-now:hover {
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31,41,55,0.35);
}
.btn-buy-now.small {
    height: 40px;
    padding: 0 1.4rem;
    font-size: 0.85rem;
    width: auto;
    margin-top: 0;
}

.delivery-note {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-divider-premium {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 0 0 1.2rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9ca3af;
    font-weight: 600;
}
.meta-item a, .meta-item .in-stock {
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

/* Tabs */
.product-tabs-section {
    margin-bottom: 4rem;
}
.tab-nav {
    display: flex;
    gap: 0.2rem;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar {
    display: none;
}
.tab-link {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    font-family: var(--font-family);
    transition: color 0.2s;
}
.tab-link.active {
    color: #1a1a1a;
}
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-green);
    border-radius: 2px;
}
.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tab-panel.active {
    display: block;
}
.content-block {
    font-size: 1rem;
    line-height: 1.9;
    color: #4b5563;
    max-width: 800px;
}
.content-block strong {
    color: #1a1a1a;
}

/* Benefit Cards */
.benefit-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}
.benefit-card {
    background: #fafafa;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #f3f4f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}
.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--light-green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}
.benefit-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}
.benefit-card p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Ingredient Grid */
.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.ingredient-item {
    text-align: center;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
}
.ingredient-item .ing-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}
.ingredient-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}
.ingredient-item p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* Reviews Premium */
.reviews-section-premium {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: #fafafa;
    border-radius: 20px;
    border: 1px solid #f3f4f6;
}
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}
.reviews-title-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}
.reviews-big-rating {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.big-rating {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}
.big-stars {
    color: #f5a623;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.rating-count-large {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Related Premium */
.related-section-premium {
    margin-bottom: 4rem;
}
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.section-header-row h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}
.view-all-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.view-all-link:hover {
    color: var(--dark-green);
}

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

/* Mobile */
@media (max-width: 900px) {
    .product-gallery-col { position: relative; top: 0; }
    .benefit-cards { grid-template-columns: 1fr; }
    .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-section-premium { padding: 1.5rem; }
    .sticky-purchase-bar { padding: 0.75rem 1rem; }
}
@media (max-width: 480px) {
    .ingredient-grid { grid-template-columns: 1fr; }
    .sale-price-large { font-size: 1.8rem; }
    .btn-add-premium { font-size: 0.9rem; }
}

/* ==========================================================================
   CHECKOUT PAGE
   Reuses: .product-hero (2-col grid), .review-form-box (card), .review-form-label,
   .review-textarea (input look), .packing-btn/.packing-btn.selected (selector pills),
   .cart-item* (line items), .cart-summary* (totals), .btn-add-premium (CTA)
   ========================================================================== */
.checkout-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
    align-items: start;
}
@media (max-width: 900px) {
    .checkout-hero { grid-template-columns: 1fr; gap: 2rem; }
}
.checkout-form-col { display: flex; flex-direction: column; gap: 1.5rem; }
.checkout-section-title {
    font-size: 1rem; font-weight: 600; color: #1a1a1a;
    margin-bottom: 18px; display: flex; align-items: center; gap: 0.5rem;
}
.checkout-section-title .step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary-green); color: #fff;
    font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.checkout-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.checkout-field-row.three-col { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 600px) {
    .checkout-field-row, .checkout-field-row.three-col { grid-template-columns: 1fr; }
}
.checkout-field { margin-bottom: 18px; }
.checkout-field:last-child { margin-bottom: 0; }
.checkout-input {
    width: 100%; height: 44px;
    border: 1px solid #ccc; border-radius: 4px;
    padding: 0 12px; font-size: 0.92rem;
    font-family: var(--font-family);
    outline: none; color: #333; box-sizing: border-box;
}
.checkout-input:focus { border-color: var(--primary-green); }
.checkout-input.field-error { border-color: #e74c3c; }
.checkout-error-msg {
    color: #e74c3c; font-size: 0.78rem; margin-top: 4px;
    display: none;
}
.checkout-field.has-error .checkout-error-msg { display: block; }
.payment-method-options {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.payment-method-options .packing-btn {
    flex: 1; min-width: 160px;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.checkout-summary-col { position: sticky; top: 110px; }
.checkout-order-list { max-height: 320px; overflow-y: auto; border-bottom: 1px solid #f0f0f0; }
.checkout-empty-note {
    text-align: center; padding: 3rem 1.5rem; color: #666;
}
.checkout-empty-note a { color: var(--primary-green); font-weight: 600; text-decoration: none; }
.checkout-empty-note a:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .checkout-summary-col { position: relative; top: 0; }
}

/* ---- Sign-in gate ---- */
.checkout-signin-gate { margin-bottom: 4rem; }
.checkout-signin-box {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
}
.btn-google-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    height: 48px;
    background: #fff;
    color: #1f2937;
    border: 1.5px solid #dadce0;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition-all);
}
.btn-google-signin:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}
.btn-google-signin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.checkout-signin-error {
    color: #e74c3c;
    font-size: 0.82rem;
    margin-top: 0.9rem;
}

/* ---- Signed-in account status (inside checkout form) ---- */
.checkout-account-status {
    font-size: 0.85rem;
    color: #555;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1.25rem;
}
.checkout-account-status a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}
.checkout-account-status a:hover { text-decoration: underline; }
/* ==========================================================================
   MOBILE RESPONSIVE FIXES — Premium mobile experience
   Target: fix horizontal overflow, improve spacing/typography/layout
   on all mobile viewports. Desktop styles preserved.
   ========================================================================== */

/* ---- 1. HEADER ---- */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        gap: 0.6rem;
        flex-wrap: nowrap;
    }
    .logo-img {
        height: 52px;
    }
    /* Hide search bar on mobile — keep icon only */
    .search-container {
        display: none;
    }
    .header-actions {
        gap: 0.7rem;
        flex-shrink: 0;
    }
    /* Enlarge the tappable area of the hamburger without changing its visual size */
    .hamburger {
        width: 28px;
        height: 20px;
        padding: 10px;
        margin: -10px;
        box-sizing: content-box;
    }
}

@media (max-width: 420px) {
    .header-container {
        padding: 0 0.75rem;
    }
}

/* ---- 2. MOBILE NAV ---- */
@media (max-width: 768px) {
    .mobile-nav-links {
        padding: 5rem 1.25rem 1.5rem 1.25rem;
    }
    .mobile-nav-link {
        font-size: 1rem;
        padding: 0.7rem 0;
    }
}

/* ---- 3. HERO SECTION ---- */
@media (max-width: 768px) {
    .hero-banner-container {
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 576px) {
    .hero-banner-container {
        aspect-ratio: unset;
        height: 46vw;
        min-height: 170px;
        max-height: 210px;
    }
}
@media (max-width: 420px) {
    .hero-banner-container {
        height: 42vw;
        min-height: 150px;
        max-height: 190px;
    }
}

/* ---- 4. INTRO / SECTION TEXT BLOCKS ---- */
@media (max-width: 768px) {
    .intro-section {
        padding: 2.25rem 1.25rem 2.5rem 1.25rem;
    }
    .intro-top-text {
        font-size: 1.05rem;
        padding: 0 0.5rem;
    }
    .intro-top-bar {
        padding: 0.85rem 1rem;
    }
    .intro-section h2 {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }
    .intro-section p {
        font-size: 0.92rem;
        line-height: 1.6;
    }
}
@media (max-width: 480px) {
    .intro-section h2 {
        font-size: 1.4rem;
    }
    .intro-section p {
        font-size: 0.88rem;
    }
}

/* ---- 5. FEATURED MEDICINES HEADER + GRID ---- */
@media (max-width: 768px) {
    .featured-header h2 {
        font-size: 1.5rem;
    }
    .featured-header {
        padding: 1rem 1.25rem;
    }
    .featured-section {
        padding-bottom: 2.5rem;
    }
    /* Stays a horizontal swipeable strip like desktop, just with bigger
       cards (2 visible at a time) instead of tiny/cramped ones */
    .products-grid {
        padding: 0.5rem 1rem 1.5rem 1rem;
        gap: 1rem;
    }
    .products-grid .product-card {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
}
@media (max-width: 480px) {
    /* One larger card visible at a time on small phones, still swipeable */
    .products-grid {
        padding: 0.5rem 1.25rem 1.5rem 1.25rem;
        gap: 1rem;
    }
    .products-grid .product-card {
        flex: 0 0 82%;
    }
}

/* Larger, more readable product cards on mobile (Featured Medicines strip) */
@media (max-width: 768px) {
    .product-box-illustration {
        margin-bottom: 0.9rem;
    }
    .product-title {
        font-size: 1rem;
        line-height: 1.35;
    }
    .product-category {
        font-size: 0.8rem;
    }
    .sale-price {
        font-size: 1rem;
    }
    .original-price {
        font-size: 0.85rem;
    }
    .btn-add-to-cart {
        width: 90%;
        padding: 0.7rem;
        font-size: 0.92rem;
    }
}

/* ---- 6. BEST SELLERS CAROUSEL ---- */
@media (max-width: 768px) {
    .best-sellers-header h2 {
        font-size: 1.6rem;
        letter-spacing: -0.3px;
    }
    .carousel-outer-wrapper {
        padding: 0 2.5rem;
    }
    /* Show 2 cards on tablets */
    .carousel-product-card {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
}
@media (max-width: 480px) {
    .carousel-outer-wrapper {
        padding: 0 2rem;
    }
    .carousel-product-card {
        flex: 0 0 75%;
    }
}

/* ---- 7. COVERFLOW / DOSAGE SECTION ---- */
@media (max-width: 768px) {
    .coverflow-outer-wrapper {
        padding: 0 2.5rem;
    }
    .dosage-header h2 {
        font-size: 1.4rem;
        letter-spacing: 0;
    }
}
@media (max-width: 480px) {
    .coverflow-outer-wrapper {
        padding: 0 2rem;
    }
}

/* ---- 8. ABOUT SECTION ---- */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    /* The overlapping large/small photo layout doesn't scale well on
       narrow screens, so we show the brand logo instead for a clean,
       professional look on mobile. */
    .about-images {
        padding-right: 0;
        padding-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 0;
    }
    .about-images .img-large,
    .about-images .img-small {
        display: none;
    }
    .about-images::before {
        content: "";
        display: block;
        width: 140px;
        height: 140px;
        margin: 0 auto 0.5rem auto;
        background-image: url('logo.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .about-content h2 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    .about-section {
        padding: 3rem 1.25rem;
    }
}
@media (max-width: 480px) {
    .about-content h2 {
        font-size: 1.7rem;
    }
    .about-content p {
        font-size: 0.97rem;
    }
}

/* ---- 9. CATEGORIES SECTION ---- */
@media (max-width: 768px) {
    .categories-section {
        padding: 0;
        overflow: hidden;
    }
    .categories-header-banner {
        padding: 2rem 1.25rem 2.5rem 1.25rem;
    }
    .categories-header-banner h2 {
        font-size: 1.7rem;
        letter-spacing: -0.3px;
    }
    /* Remove desktop side padding so cards don't clip on the right */
    .categories-container {
        padding: 0 1rem;
        margin: 1.5rem auto 1rem auto;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        row-gap: 3rem;
    }
    /* Scale down the circle so it fits inside a 2-col cell */
    .category-circle-img {
        width: 110px;
        height: 110px;
        margin-bottom: -32px;
    }
    .category-text-box {
        padding: 2.5rem 0.5rem 1rem 0.5rem;
        min-height: 90px;
    }
    .category-name {
        font-size: 0.78rem;
    }
    .section-title,
    .categories-section h2 {
        font-size: 1.7rem;
        letter-spacing: -0.3px;
    }
    .explore-more-btn-container {
        margin-bottom: 2rem;
    }
}
@media (max-width: 480px) {
    .categories-container {
        padding: 0 0.75rem;
    }
    .categories-grid {
        gap: 0.75rem;
        row-gap: 2.5rem;
    }
    .category-circle-img {
        width: 90px;
        height: 90px;
        margin-bottom: -26px;
    }
    .category-text-box {
        padding: 2rem 0.4rem 0.75rem 0.4rem;
        min-height: 80px;
        border-radius: 8px;
    }
    .category-name {
        font-size: 0.72rem;
    }
}
@media (max-width: 380px) {
    .categories-grid {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }
    .category-circle-img {
        width: 120px;
        height: 120px;
        margin-bottom: -36px;
    }
}

/* ---- 10. WHY CHOOSE US ---- */
@media (max-width: 768px) {
    .why-choose-header {
        padding: 1.5rem 1.25rem;
    }
    .why-choose-header h2 {
        font-size: 1.9rem;
        letter-spacing: -0.5px;
        margin-bottom: 0.6rem;
    }
    .why-choose-subtitle {
        font-size: 0.95rem;
    }
    .comparison-bg-section {
        padding: 2rem 1.25rem;
        overflow: hidden;
    }
    /* Stack the two cards vertically and close the gap */
    .comparison-container {
        flex-direction: column;
        gap: 1.25rem;
    }
    .comparison-card {
        padding: 1.5rem 1.25rem;
        width: 100%;
    }
    .comparison-rows {
        min-height: auto;
        height: auto;
    }
    .comparison-rows li {
        font-size: 0.95rem;
        padding: 0.4rem 0;
        flex: unset;
    }
    .comparison-card h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
}
@media (max-width: 576px) {
    .why-choose-header {
        padding: 1.25rem 1rem;
    }
    .why-choose-header h2 {
        font-size: 1.5rem;
        letter-spacing: -0.3px;
    }
    .why-choose-subtitle {
        font-size: 0.9rem;
    }
    .comparison-bg-section {
        padding: 1.5rem 1rem;
    }
    .comparison-card {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }
    .comparison-card h3 {
        font-size: 1.4rem;
    }
    .comparison-rows li {
        font-size: 0.88rem;
        gap: 0.6rem;
    }
}

/* ---- 11. TESTIMONIALS ---- */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 3.5rem 1.25rem 2.5rem 1.25rem;
    }
    .testimonials-header h2 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    .testimonials-header {
        margin-bottom: 2.5rem;
    }
    .testimonials-carousel-wrapper {
        padding: 0 2rem;
    }
    .testimonial-card {
        padding: 2rem 1.25rem 1.75rem 1.25rem;
    }
}
@media (max-width: 480px) {
    .testimonials-header h2 {
        font-size: 1.7rem;
    }
}

/* ---- 12. CTA BANNER ---- */
@media (max-width: 768px) {
    .cta-banner-section {
        padding: 2.5rem 1.25rem;
    }
    .cta-content .section-label {
        margin-bottom: 0.9rem;
    }
    .cta-content h2 {
        margin-bottom: 0.9rem;
    }
    .cta-content p {
        margin-bottom: 1.5rem;
    }
}
@media (max-width: 480px) {
    .cta-banner-section {
        padding: 2rem 1.25rem;
    }
    .cta-content h2 {
        font-size: 1.7rem;
        letter-spacing: -0.3px;
        margin-bottom: 0.7rem;
    }
    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    .cta-content .section-label {
        font-size: 0.75rem;
        margin-bottom: 0.7rem;
    }
}

/* ---- 13. NEWSLETTER + FOOTER (compact on mobile) ---- */
@media (max-width: 768px) {
    .newsletter-bar {
        padding-top: 1.25rem;
    }
    .newsletter-container {
        padding: 0 1.25rem 1.5rem 1.25rem;
        gap: 1.25rem;
    }
    .newsletter-logo img {
        height: 56px;
    }
    .newsletter-form input {
        padding: 0.8rem 1.2rem;
    }
    .newsletter-form button {
        padding: 0 1.5rem;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        padding: 2rem 1.25rem;
        gap: 1.5rem 1.25rem;
    }
    .footer-col h4 {
        margin-bottom: 0.8rem;
        font-size: 1.05rem;
    }
    .footer-col p {
        margin-bottom: 0.5rem;
        font-size: 0.88rem;
        line-height: 1.5;
    }
    .footer-contact li {
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
    }
    /* Quick Links + Customer Support become compact 2-column lists */
    .footer-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.4rem 1rem;
    }
    .footer-links li {
        margin-bottom: 0;
    }
    .footer-links a {
        font-size: 0.88rem;
    }
    /* About Us and Location spans full width; Quick Links / Customer Support
       sit side by side to save vertical space */
    .footer-col:nth-child(1) {
        grid-column: 1 / -1;
    }
    .footer-col:nth-child(4) {
        grid-column: 1 / -1;
    }
    .footer-map iframe {
        height: 160px;
    }
    .footer-bottom {
        padding: 0.9rem;
        font-size: 0.78rem;
    }
}
@media (max-width: 480px) {
    .newsletter-bar {
        padding-top: 1rem;
    }
    .newsletter-container {
        padding: 0 1.25rem 1.25rem 1.25rem;
        gap: 1rem;
    }
    .newsletter-logo img {
        height: 44px;
    }
    .newsletter-form input {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    .newsletter-form button {
        padding: 0 1.25rem;
        font-size: 0.9rem;
    }
    .social-icon {
        width: 38px;
        height: 38px;
    }
    .footer-container {
        padding: 1.75rem 1.25rem;
        gap: 1.25rem 1rem;
    }
    .footer-col h4 {
        margin-bottom: 0.7rem;
        font-size: 1rem;
    }
    .footer-map iframe,
    .footer-map img {
        max-height: 140px;
    }
}

/* ---- 14. PRODUCT PAGE (product.html) ---- */
@media (max-width: 768px) {
    .product-page-wrapper {
        padding: 1.5rem 1rem 3rem 1rem;
    }
    .product-title-main {
        font-size: 1.5rem;
    }
    .sale-price-large {
        font-size: 1.7rem;
    }
    .tab-nav {
        gap: 0.1rem;
    }
    .tab-link {
        padding: 0.6rem 0.9rem;
        font-size: 0.82rem;
    }
    .sticky-purchase-bar {
        padding: 0.65rem 1rem;
    }
    .sticky-bar-left {
        gap: 0.5rem;
    }
    .sticky-bar-product-name {
        font-size: 0.82rem;
    }
    .sticky-bar-price {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .product-page-wrapper {
        padding: 1rem 0.75rem 2.5rem 0.75rem;
    }
    .packing-options {
        gap: 0.4rem;
    }
    .packing-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    .reviews-section-premium {
        padding: 1.25rem;
    }
}

/* ---- 15. CATEGORY PAGE ---- */
@media (max-width: 768px) {
    .category-hero-title {
        font-size: 2rem;
    }
    .category-hero {
        min-height: 200px;
        padding: 2rem 1.25rem 1.25rem 1.25rem;
    }
    /* Fix: actual grid class is .category-products-grid, not .cat-product-grid */
    .category-products-grid,
    .products-skeleton,
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        align-items: stretch;
    }
    .category-layout {
        overflow: hidden;
    }
    .cat-product-info {
        padding: 1rem;
    }
    .cat-product-card {
        height: 100%;
    }
    .cat-product-image-wrap {
        aspect-ratio: 1 / 1;
    }
}
@media (max-width: 576px) {
    .category-products-grid,
    .products-skeleton,
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .category-main {
        padding: 1rem 0.6rem 3rem;
    }
    .cat-product-name {
        font-size: 0.85rem;
    }
    .cat-price-sale {
        font-size: 0.95rem;
    }
    .cat-add-cart-btn {
        font-size: 0.82rem;
        padding: 0.65rem;
    }
    .cat-discount-badge {
        width: 32px;
        height: 32px;
        font-size: 0.62rem;
        top: 8px;
        right: 8px;
    }
    .cat-wishlist-btn {
        right: 46px;
        top: 8px;
        width: 28px;
        height: 28px;
    }
    .cat-wishlist-btn svg {
        width: 13px;
        height: 13px;
    }
    .cat-product-badges {
        top: 8px;
        left: 8px;
    }
    .cat-badge {
        padding: 0.22rem 0.55rem;
        font-size: 0.62rem;
    }
    .cat-product-price-row {
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
}
@media (max-width: 480px) {
    .category-hero-title {
        font-size: 1.6rem;
    }
    .category-layout {
        padding: 0;
    }
    .category-main {
        padding: 0.75rem 0.5rem 2.5rem;
    }
    .category-products-grid,
    .products-skeleton,
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .cat-product-info {
        padding: 0.7rem 0.65rem;
    }
    .cat-product-name {
        font-size: 0.82rem;
        margin-bottom: 0.3rem;
    }
    .cat-product-category {
        font-size: 0.68rem;
    }
    .cat-product-desc {
        display: none;
    }
    .cat-product-rating {
        margin-bottom: 0.5rem;
    }
    .cat-add-cart-btn {
        font-size: 0.78rem;
        padding: 0.6rem 0.4rem;
        border-radius: 6px;
        gap: 0.25rem;
    }
}
@media (max-width: 360px) {
    /* Keep 2 columns even on very narrow phones, but tighten spacing
       so cards stay fully visible instead of collapsing to 1 column */
    .category-products-grid,
    .products-skeleton,
    .recommended-grid {
        gap: 0.5rem;
    }
    .cat-product-info {
        padding: 0.6rem 0.5rem;
    }
    .cat-product-name {
        font-size: 0.78rem;
    }
    .cat-price-sale {
        font-size: 0.88rem;
    }
    .cat-price-original {
        font-size: 0.78rem;
    }
    .cat-add-cart-btn {
        font-size: 0.72rem;
        padding: 0.55rem 0.3rem;
    }
}

/* ---- 16. CHECKOUT PAGE ---- */
@media (max-width: 600px) {
    .checkout-signin-box {
        padding: 1.75rem 1.25rem;
    }
    .product-page-wrapper {
        padding: 1.25rem 1rem 3rem 1rem;
    }
}

/* ---- 17. QUICK VIEW MODAL ---- */
@media (max-width: 480px) {
    .quick-view-modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        margin: 0;
    }
    .quick-view-modal.show {
        align-items: flex-end;
    }
}

/* ---- 18. REVIEW FORM / TAB CONTENT ---- */
@media (max-width: 480px) {
    .review-form-box {
        padding: 1.25rem;
    }
    .benefit-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .benefit-card {
        padding: 1.25rem 1rem;
    }
}

/* ---- 19. FLOATING ACTIONS ---- */
@media (max-width: 480px) {
    .floating-actions {
        bottom: 1.25rem;
        right: 1rem;
        gap: 0.6rem;
    }
    .float-btn {
        width: 44px;
        height: 44px;
    }
}

/* ---- 20. GENERAL SECTION PADDING REDUCTION on small phones ---- */
@media (max-width: 480px) {
    section,
    .section-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    h2 {
        word-break: break-word;
    }
}

/* =============================================================================
   21. ACCOUNT MENU (site-wide) — mirrors .cart-container exactly
   ============================================================================= */
.account-container {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    font-size: 1.25rem;
}
.account-container:hover,
.account-container.active {
    background: var(--light-green-bg);
}
.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    min-width: 220px;
    padding: 0.5rem;
    z-index: 500;
    display: none;
    border: 1px solid #eee;
}
.account-dropdown.open {
    display: block;
    animation: fadeIn 0.2s ease;
}
.account-dropdown-header {
    padding: 0.6rem 0.75rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.4rem;
}
.account-dropdown-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-dropdown-email {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-dropdown a,
.account-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    font-size: 0.88rem;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}
.account-dropdown a:hover,
.account-dropdown button:hover {
    background: var(--light-green-bg);
    color: var(--primary-green);
}
.account-dropdown .signout-link {
    color: #e74c3c;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.3rem;
    padding-top: 0.65rem;
}
.account-dropdown .signout-link:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* =============================================================================
   22. ORDER STATUS TRACKER (order-details.html)
   ============================================================================= */
#order-status-tracker {
    padding: 1rem 0.5rem 0.25rem;
}
.tracker-line {
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #eee;
    border-radius: 2px;
    z-index: 0;
}
.tracker-line-fill {
    height: 100%;
    background: var(--primary-green);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}
.tracker-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}
.tracker-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e0e0e0;
    transition: border-color 0.3s, background 0.3s;
}
.tracker-step.done .tracker-dot {
    border-color: var(--primary-green);
    background: var(--primary-green);
}
.tracker-step.current .tracker-dot {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 4px var(--light-green-bg);
}
.tracker-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
}
.tracker-step.done .tracker-label,
.tracker-step.current .tracker-label {
    color: #1a1a1a;
}
.tracker-step.cancelled .tracker-dot {
    border-color: #e74c3c;
    background: #e74c3c;
}
@media (max-width: 576px) {
    .tracker-label { font-size: 0.68rem; }
    .tracker-dot { width: 26px; height: 26px; }
    .tracker-line { left: 32px; right: 32px; top: 12px; }
    .account-dropdown {
        min-width: 200px;
        right: -0.5rem;
    }
}
/* ==========================================================================
   PRODUCTS PAGE (products.html) — Responsive Vertical Grid Override
   Scoped to #all-products-grid only, so the homepage's horizontal
   "Featured Medicines" scroller (.products-grid) is unaffected.
   Product card styling, spacing, and hover effects are inherited as-is.
   ========================================================================== */
#all-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    overflow: visible;
    gap: 2.2rem 1.75rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 2rem 0 2rem;
}

#all-products-grid .product-card {
    flex: initial; /* Undo the horizontal-scroll flex-basis sizing */
    width: 100%;
}

@media (max-width: 900px) {
    #all-products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 576px) {
    #all-products-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* ==========================================================================
   CONTACT PAGE (contact.html) — Premium Logo Panel + Info Cards
   Scoped entirely to contact-page-specific classes; does not alter
   .about-section/.about-images/.about-features/.check-icon used on
   about.html or elsewhere.
   ========================================================================== */

/* --- Contact hero layout --- */
.contact-page-section {
    padding: 1rem 2rem 3rem;
}

.contact-layout {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem 2rem;
    align-items: stretch;
}

.contact-intro-panel,
.contact-details-panel {
    display: flex;
}

.contact-logo-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f8f6f0;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    height: 100%;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.contact-logo-panel-inner {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.contact-logo-panel-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.contact-logo-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.2px;
    line-height: 1.5;
    max-width: 320px;
    margin-bottom: 1.15rem;
}

.contact-cta-group {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition-all);
}

.contact-cta:hover {
    transform: translateY(-1px);
}

.contact-cta-primary {
    background-color: var(--primary-green);
    color: #fff;
}

.contact-cta-secondary {
    background-color: #fff;
    color: #0f172a;
    border: 1px solid #d9e6d9;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    width: 100%;
    margin-top: 0;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    background-color: var(--white);
    border: 1px solid #edece6;
    border-radius: 12px;
    transition: var(--transition-all);
}

.contact-info-card:hover {
    border-color: #d9e6d9;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 16px;
    height: 16px;
}

.contact-info-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
    margin-bottom: 0.2rem;
}

.contact-info-text p {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #334155;
    font-weight: 500;
    max-width: 100%;
    margin-bottom: 0;
}

.contact-info-text p a {
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-all);
    white-space: nowrap;
}

.contact-info-text p a:hover {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.contact-map-section {
    max-width: 1200px;
    margin: 1.25rem auto 0;
    padding: 0 0.25rem;
}

.contact-map-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e7e7e0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.contact-map-frame iframe {
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
}

@media (max-width: 900px) {
    .contact-page-section {
        padding: 1rem 1.5rem 3rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-logo-panel {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .contact-page-section {
        padding: 1rem 1rem 2.5rem;
    }

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

    .contact-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .contact-cta {
        width: 100%;
    }

    .contact-map-section {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .contact-logo-panel {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .contact-logo-panel-inner {
        max-width: 180px;
    }

    .contact-info-card {
        padding: 0.9rem;
    }
}