/* Custom CSS for Optix - Premium Edition */

/* ==========================================================================
   BRANDCRAFTERS DESIGN TOKENS
   Teal · White · Deep Teal
   --------------------------------------------------------------------------
   Every colour on the site resolves from this block. Change a token here and
   the whole site — including every per-page <style> block — follows.

    Red appears ONLY in the logo mark (images/optix-logo.svg). It is
   deliberately not a UI colour and must not be used for interface elements.
   ========================================================================== */
:root {
    color-scheme: only light;

    /* ---- Brand: teal ------------------------------------------------ */
    --teal:         #27B8A6;
    --teal-hover:   #1E9082;
    --teal-deep:    #0F4C46;
    --teal-tint:    #F0FDFB;
    --teal-tint-2:  #CFF1EC;
    --teal-light:   #6FE3D3;   /* for teal that must read on deep teal */

    /* ---- Neutrals ---------------------------------------------------- */
    --ink-900: #0F172A;
    --ink-700: #334155;
    --ink-500: #475569;
    --ink-400: #7B8794;
    --ink-200: #CBD5E1;
    --ink-100: #E2E8F0;
    --ink-50:  #F8FAFC;

    /* ---- Brand: red -------------------------------------------------
        Both values are lifted straight out of images/optix-logo.svg,
       so the action colour is genuinely the brand's own red rather than an
       invented one. Unlike --teal, red is dark enough to carry WHITE type:
       white on --red is 5.9:1 and on --red-deep 7.8:1, both clearing AA.
       Teal remains the brand surface; red carries action. ---------------- */
    --red:        #C8102E;
    --red-deep:   #A50D26;   /* hover / pressed, and red that must read on red */
    --red-tint:   #FEF2F3;   /* tinted surfaces */
    --red-tint-2: #F6D2D8;   /* borders on tinted surfaces */

    /* Coral is retired: it was a second, near-identical warm hue with no job
       the logo red does not do better. Aliased so every existing sale-badge
       and cart-count rule re-themes to the brand red automatically. */
    --coral: var(--red);

    /* ======================================================================
       SEMANTIC TOKENS
       Legacy names are kept as aliases so the existing stylesheet and every
       per-page <style> block re-theme automatically.
       ====================================================================== */

    --primary-color:  var(--teal);
    --primary-hover:  var(--teal-hover);
    --primary-bright: var(--teal);
    --royal-blue:     var(--teal);

    /* Dark surfaces + dark type (footer, page heroes, category bar) */
    --deep-navy:    var(--teal-deep);
    --deep-emerald: var(--teal-deep);
    --dark-green:   var(--teal-deep);
    --bg-dark:      var(--teal-deep);

    /* Accent */
    --secondary-color: var(--teal-hover);
    --secondary-hover: var(--teal-deep);
    --accent-color:    var(--teal-hover);
    --accent-hover:    var(--teal-hover);
    --accent-orange:   var(--coral);
    --orange-accent:   var(--coral);
    --bright-orange:   var(--coral);

    /* Surfaces */
    --white:          #FFFFFF;
    --card-bg:        #FFFFFF;
    --soft-bg:        var(--ink-50);
    --muted-surface:  var(--ink-50);
    --bg-light:       var(--teal-tint);
    --light-blue-bg:  var(--teal-tint);
    --bright-lime:    var(--teal-tint);
    --green-soft:     var(--teal-tint);
    --surface-green:  var(--teal-tint);
    --surface-lime:   var(--teal-tint);

    /* Text */
    --text-dark:  var(--ink-900);
    --text-light: var(--ink-500);
    /* Type colour that sits on a teal fill. Teal is a light mid-tone, so
       white on it fails contrast — dark ink is the accessible choice. */
    --dark-color: var(--ink-900);

    /* Borders */
    --soft-border:  var(--ink-100);
    --border-green: var(--ink-100);
    --muted-border: var(--ink-100);
    --silver:       var(--ink-200);

    /* Status */
    --sale-text:            var(--red);
    --action:               var(--red);
    --action-hover:         var(--red-deep);
    --danger-color:         #EF4444;
    --success-color:        #10B981;
    --whatsapp-green:       #25D366;
    --whatsapp-green-dark:  #128C7E;

    /* ---- RGB helpers (for rgba() usage) ----------------------------- */
    --primary-rgb:        39, 184, 166;
    --primary-bright-rgb: 39, 184, 166;
    --secondary-rgb:      30, 144, 130;
    --dark-green-rgb:     15, 76, 70;
    --accent-rgb:         30, 144, 130;
    --accent-orange-rgb:  232, 93, 79;
    --ink-rgb:            15, 23, 42;

    /* ======================================================================
       ELEVATION · MOTION · FOCUS
       These were referenced throughout the stylesheet but never declared, so
       every rule using them silently dropped. Defining them restores the
       intended depth and focus treatment.
       ====================================================================== */
    --shadow:            0 4px 16px rgba(var(--dark-green-rgb), 0.08);
    --shadow-card:       0 2px 4px rgba(var(--dark-green-rgb), 0.05), 0 8px 24px rgba(var(--dark-green-rgb), 0.07);
    --shadow-card-hover: 0 8px 16px rgba(var(--dark-green-rgb), 0.09), 0 20px 44px rgba(var(--dark-green-rgb), 0.14);
    --shadow-lg:         0 12px 28px rgba(var(--dark-green-rgb), 0.12), 0 28px 64px rgba(var(--dark-green-rgb), 0.14);

    --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --focus-ring:        0 0 0 3px rgba(var(--primary-rgb), 0.32);

    /* ---- Radii ------------------------------------------------------ */
    --radius-sm:   8px;
    --radius:      12px;
    --radius-lg:   18px;
    --radius-pill: 999px;

    /* ---- Type ------------------------------------------------------- */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.btn-success {
    background: var(--bg-dark);
    border-color: transparent;
    color: var(--white);
}

.btn-success:hover {
    background: var(--bg-dark);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.28);
}

.btn-info,
.btn-outline-info:hover {
    background: var(--secondary-color);
    border-color: transparent;
    color: var(--white);
}

.btn-info:hover {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.22);
}

.bg-info,
.bg-lime {
    background-color: var(--bright-lime) !important;
    color: var(--text-dark) !important;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-warning {
    background: var(--danger-color) !important;
    color: var(--white) !important;
}

.alert-info {
    color: var(--deep-emerald);
    background-color: rgba(var(--primary-rgb), 0.08);
    border-color: var(--soft-border);
}

/* Navigation - Premium Navbar */
.premium-navbar {
    padding: 1.2rem 0 !important;
    background-color: var(--white) !important;
    box-shadow: 0 2px 18px rgba(var(--dark-green-rgb), 0.08);
    border-bottom: 1px solid var(--border-green);
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
}

/* Logo image */
.brand-logo-img {
    width: 45px;
    height: 45px;
    display: inline-block;
}

.brand-text {
    color: var(--dark-green);
    letter-spacing: 0.5px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 0.8rem;
    padding: 0.5rem 0 !important;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
    border-bottom-color: var(--accent-color);
    text-shadow: 0 0 18px rgba(var(--primary-rgb), 0.22);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 14px 34px rgba(var(--dark-green-rgb), 0.14);
    border-radius: 12px;
    padding: 0.8rem 0;
    margin-top: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--accent-color);
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.9rem 1.5rem;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 500;
    position: relative;
    margin: 0.25rem 0.5rem;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-color);
    border-radius: 3px;
    transition: height 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--dark-green);
    padding-left: 2rem;
    transform: translateX(4px);
}

.dropdown-item:hover::before {
    height: 24px;
}

/* Cart Icon */
.cart-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.cart-icon:hover {
    background-color: var(--green-soft);
    color: var(--dark-green);
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.16);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--text-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid var(--white);
    box-shadow: 0 2px 10px rgba(var(--accent-orange-rgb), 0.35);
}

.cart-badge:not(:empty) {
    display: flex;
}

/* Hero Carousel Section */
.hero-carousel-section {
    min-height: 85vh;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.hero-carousel-section::before,
.hero-carousel-section::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    z-index: 0;
}

.hero-carousel-section::before {
    width: 430px;
    height: 430px;
    right: -120px;
    top: 16%;
    background: var(--primary-color);
}

.hero-carousel-section::after {
    width: 360px;
    height: 360px;
    left: -110px;
    bottom: 7%;
    background: var(--accent-color);
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 85vh;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: all;
}

.hero-slide-content {
    background: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text-content {
    padding: 3rem 0;
    animation: slideInLeft 0.8s ease;
}

.hero-image-content {
    padding: 3rem 0;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-number {
    font-size: 6rem;
    font-weight: 700;
    color: rgba(var(--primary-rgb), 0.15);
    font-family: 'Playfair Display', serif;
    margin-bottom: -1rem;
    line-height: 1;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0;
}

.text-accent {
    color: var(--primary-color);
    text-shadow: 0 0 24px rgba(var(--primary-rgb), 0.28);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.2);
}

.hero-image-wrapper {
    position: relative;
    padding: 2rem;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(var(--dark-green-rgb), 0.18);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-slide.active .hero-image {
    transform: scale(1);
}

/* Hero Navigation Dots */
.hero-nav-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(var(--dark-green-rgb), 0.18);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.32);
}

.hero-dot:hover {
    background-color: var(--accent-color);
}

/* Hero Navigation Arrows */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(var(--dark-green-rgb), 0.88);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-prev {
    left: 2rem;
}

.hero-nav-next {
    right: 2rem;
}

.hero-nav-arrow:hover {
    background: var(--primary-color);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.28);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .slide-number {
        font-size: 3.5rem;
        margin-bottom: -0.5rem;
    }

    /* Home page mobile-first: go straight to products */
    .main-content {
        padding-top: 0.75rem !important;
    }

    /* Hide non-essential sections on mobile homepage */
    .why-choose-us,
    .newsletter-section {
        display: none !important;
    }

    /* Keep products full-width and clean */
    .main-content .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Hide extra product header content on mobile */
    .products-header p,
    .view-options {
        display: none !important;
    }

    .products-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Homepage products grid - 2 columns on mobile */
    #main-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-top: 0.75rem !important;
    }

    /* Mobile product card compact style */
    #main-products-grid .product-card {
        border-radius: 10px !important;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    }

    #main-products-grid .product-image {
        height: 160px !important;
    }

    #main-products-grid .product-body {
        padding: 0.75rem !important;
    }

    #main-products-grid .product-description,
    #main-products-grid .product-category {
        display: none !important;
    }

    #main-products-grid .product-title {
        font-size: 0.9rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.45rem !important;
        height: auto !important;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    #main-products-grid .current-price {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }

    #main-products-grid .btn-add-cart {
        font-size: 0.82rem !important;
        padding: 0.55rem 0.6rem !important;
        border-radius: 8px !important;
    }

    #main-products-grid .btn-quick-view {
        width: 40px;
        height: 40px;
    }

    .more-categories-section {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .category-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .category-pill-card {
        padding: 0.7rem 0.65rem;
        border-radius: 12px;
        gap: 0.5rem;
    }

    .category-icon-wrap {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 0.9rem;
    }

    .category-text {
        font-size: 0.82rem;
        font-weight: 600;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-nav-prev {
        left: 1rem;
    }
    
    .hero-nav-next {
        right: 1rem;
    }
}

/* Quick Stats */
.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

/* Flash Sale Banner */
.flash-sale-banner {
    background: var(--bg-dark);
    padding: 1.75rem 2rem;
    border-radius: 15px;
    box-shadow: 0 18px 40px rgba(var(--dark-green-rgb), 0.28);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--secondary-rgb), 0.22);
    border-top: 3px solid var(--accent-color);
    animation: slideInUp 0.6s ease 0.1s backwards;
}

.flash-sale-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.flash-sale-banner h4 {
    position: relative;
    z-index: 1;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
}

.flash-sale-banner p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
}

.countdown-timer {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.timer-display {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.timer-display span {
    background: rgba(var(--accent-rgb), 0.22);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0 0.125rem;
    color: var(--accent-color);
}

/* Special Offers */
.special-offers {
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.offer-banner {
    background: var(--deep-navy);
    padding: 1.75rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 16px 38px rgba(var(--dark-green-rgb), 0.28);
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.offer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(var(--accent-orange-rgb), 0.08);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.offer-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(var(--primary-rgb), 0.34);
}

.offer-banner h6 {
    position: relative;
    z-index: 1;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.offer-banner p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.offer-banner .btn {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.offer-banner .btn:hover {
    transform: scale(1.05);
}

/* Enhanced Sidebar */
.categories-sidebar {
    position: sticky;
    top: 100px;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 500;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.4s ease;
    z-index: 0;
}

.category-link:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--dark-green);
    transform: translateX(6px);
    border-left-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.category-link:hover::before {
    left: 100%;
}

.category-link i {
    color: var(--primary-color);
    width: 22px;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.category-link:hover i {
    transform: scale(1.15) rotate(8deg);
    color: var(--accent-hover);
}

/* View Options */
.view-options .btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2);
}

.view-options .btn {
    position: relative;
}

/* Tooltip styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--text-dark);
    z-index: 1000;
}

/* Sections */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-green);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Sidebar Categories */
.categories-sidebar {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-green);
    position: sticky;
    top: 100px;
}

.category-title {
    background: var(--deep-navy);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-radius: 12px 12px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(var(--dark-green-rgb), 0.22);
    letter-spacing: 0.5px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--dark-green);
    transform: translateX(5px);
}

.featured-title {
    color: var(--dark-green);
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--accent-color);
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-item {
    display: flex;
    align-items: center;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.featured-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.featured-content h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.featured-content .text-muted {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Main Content */
.main-content {
    min-height: 80vh;
}

.products-header {
    border-bottom: 1px solid var(--soft-border);
    padding-bottom: 1rem;
}

.products-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.view-options .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--soft-border);
    transition: all 0.2s ease;
}

/* Enhanced Product Cards */
.product-card {
    background: var(--white);
    border: 1px solid var(--soft-border);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1), border-color 0.3s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

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

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-body {
    padding: 1.5rem;
}

.product-category {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

.btn-quick-view {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-quick-view:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Promise Section */
.why-choose-us {
    background: var(--bg-light);
    padding: 6rem 0;
    border-top: 2px solid rgba(var(--primary-rgb), 0.1);
}

.promise-item {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 2rem;
    border-radius: 14px;
    background: var(--white);
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    animation: fadeInUp 0.6s ease;
}

.promise-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.25);
}

.promise-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    display: inline-block;
}

.promise-item:hover .promise-icon {
    color: var(--accent-color);
    transform: scale(1.25) rotate(15deg);
    filter: drop-shadow(0 8px 16px rgba(var(--accent-orange-rgb), 0.3));
}

.promise-item h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.promise-item p {
    position: relative;
    z-index: 1;
}

/* Featured Products */
.featured-products {
    padding: 5rem 0;
}

.product-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-body {
    padding: 1.5rem;
}

.product-category {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.85rem;
    line-height: 1.45;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-price .original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Categories */
.categories {
    padding: 5rem 0;
    background-color: var(--accent-color);
}

.category-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.category-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* About Preview */
.about-preview {
    padding: 6rem 0;
    background: var(--white);
}

.shop-today {
    background: var(--bg-light);
    border-top: 2px solid rgba(var(--primary-rgb), 0.1);
    padding: 5rem 0;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* More Categories Section */
.more-categories-section {
    background: var(--bg-light);
    padding: 4.5rem 0;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.08);
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.category-card-link {
    text-decoration: none;
}

.category-pill-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--white);
    border: 2px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-pill-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.35);
    background: rgba(var(--primary-rgb), 0.02);
}

.category-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.category-pill-card:hover .category-icon-wrap {
    background: var(--primary-color);
    color: white;
    transform: rotate(12deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.3);
}

.category-text {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.2;
}

/* Subtle mobile swipe for categories section only */
@media (max-width: 576px) {
    .more-categories-section .section-subtitle {
        display: none;
    }

    .more-categories-section .category-cards-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        gap: 0.55rem;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .more-categories-section .category-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .more-categories-section .category-card-link {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-dark) !important;
    padding: 3rem 0 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    margin-right: 0.5rem;
}

.footer .brand-text {
    color: var(--secondary-color);
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .category-card {
        margin-bottom: 2rem;
    }
}

/* Mobile Search Section Styling */
.mobile-search-section {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mobile-search-section .input-group {
    max-width: 100%;
}

.mobile-search-section .form-control {
    border: 2px solid var(--primary-color);
    color: var(--text-dark);
    font-weight: 500;
}

.mobile-search-section .form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.mobile-search-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.1);
}

.mobile-search-section .btn-primary {
    background: var(--primary-color);
    border-color: transparent;
    padding: 0.6rem 1rem;
    font-weight: 700;
}

@media (max-width: 576px) {
    /* Ultra Mobile Design Enhancements */
    body {
        overflow-x: hidden;
    }
    
    .hero-section {
        padding: 2rem 0;
        background: var(--bg-light);
    }
    
    .hero-title {
        font-size: 1.8rem;
        font-weight: 900;
        line-height: 1.1;
        margin-bottom: 1rem;
        color: var(--primary-color);
        animation: titlePulse 3s ease-in-out infinite;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 25px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .hero-buttons .btn-primary {
        background: var(--primary-color);
        box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
        border: none;
    }
    
    .hero-buttons .btn-primary:active {
        transform: translateY(1px) scale(0.98);
    }
    
    .hero-image {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }
    
    .hero-image img {
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    
    /* Ultra Compact Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .brand-logo {
        font-size: 1.1rem;
        font-weight: 800;
    }
    
    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.375rem;
        border-radius: 8px;
        background: var(--primary-color);
        color: var(--white);
    }
    
    /* Ultra Compact Cards */
    .main-content {
        padding: 2rem 0;
    }
    
    .categories-sidebar {
        margin-bottom: 1.5rem;
        padding: 1rem;
        border-radius: 15px;
    }
    
    .category-title {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        margin: -1rem -1rem 1rem -1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .product-card {
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    }
    
    .product-image {
        height: 220px;
        border-radius: 15px 15px 0 0;
    }
    
    .product-body {
        padding: 1.25rem;
    }
    
    .product-title {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .current-price {
        font-size: 1.25rem;
        font-weight: 800;
    }
    
    .btn-add-cart {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        font-weight: 700;
        border-radius: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Ultra Compact Sections */
    .section-title {
        font-size: 1.8rem;
        font-weight: 900;
        text-align: center;
        margin-bottom: 0.75rem;
        color: var(--primary-color);
        font-weight: 700;
    }
    
    .section-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .promise-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        border-radius: 15px;
        text-align: center;
    }
    
    .promise-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .promise-item h5 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }
    
    .promise-item p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0;
    }
    
    /* Ultra Compact Footer */
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer p,
    .footer li {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        margin: 0 0.25rem;
        font-size: 0.9rem;
    }
    
    /* Ultra Compact WhatsApp Widget */
    .whatsapp-chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-button {
        width: 55px;
        height: 55px;
        box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    }
    
    .chat-button i {
        font-size: 1.5rem;
    }
    
    /* Ultra Compact Blog */
    .blog-hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .blog-search .input-group {
        max-width: 100%;
        margin: 0;
        border-radius: 20px;
    }
    
    .blog-search .form-control,
    .blog-search .btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    .filter-tabs {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .filter-btn {
        max-width: 100%;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    .blog-post-card {
        border-radius: 15px;
        margin-bottom: 1.5rem;
    }
    
    .blog-post-card .post-image {
        height: 200px;
        border-radius: 15px 15px 0 0;
    }
    
    .blog-post-card .post-content {
        padding: 1.25rem;
    }
    
    .blog-post-card .post-title {
        font-size: 1.1rem;
        line-height: 1.3;
        height: auto;
        margin-bottom: 0.75rem;
    }
    
    .blog-post-card .post-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .blog-post-card .post-excerpt {
        font-size: 0.85rem;
        height: auto;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    /* Performance Optimizations for Ultra Mobile */
    .cart-item {
        padding: 0.875rem;
        border-radius: 12px;
    }
    
    .quick-action-card {
        margin-bottom: 0.75rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    /* Ultra Mobile Animations */
    @keyframes titlePulse {
        0%, 100% { 
            transform: scale(1);
            text-shadow: 0 0 5px rgba(var(--primary-rgb), 0.2);
        }
        50% { 
            transform: scale(1.02);
            text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4), 0 0 25px rgba(var(--dark-green-rgb), 0.3);
        }
    }
    
    /* Touch Optimization */
    .btn, .nav-link, .product-card, .category-link {
        -webkit-tap-highlight-color: rgba(var(--primary-rgb), 0.2);
        touch-action: manipulation;
    }
    
    /* Reduce Motion for Performance */
    @media (prefers-reduced-motion: reduce) {
        *, ::before, ::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--accent-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optix Logo Animation */
.brand-icon {
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.brand-logo:hover .brand-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}



/* Cart Badge */
.cart-count-badge {
    font-size: 0.75rem;
    min-width: 1.25rem;
    height: 1.25rem;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.bg-accent-custom {
    background-color: var(--accent-color) !important;
}

/* Enhanced Branding Styles */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Team Photos */
.team-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Enhanced Product Cards for Products Page */
.product-description {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Contact Page Enhancements */
.contact-icon {
    width: 40px;
    text-align: center;
}

.quick-action-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.action-icon {
    transition: transform 0.3s ease;
}

.quick-action-card:hover .action-icon {
    transform: scale(1.1);
}

/* FAQ Page Enhancements */
.accordion-button {
    font-weight: 500;
    background-color: transparent;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

/* Enhanced Value Cards */
.value-card {
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Mission/Vision Cards */
.mission-card, .vision-card {
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.vision-card {
    border-left-color: var(--secondary-color);
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Feature Items */
.feature-item {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.02);
    border-left: 4px solid transparent;
}

.feature-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateX(12px);
    border-left-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.12);
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

/* Enhanced Cart Styles */
.cart-item {
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: var(--white);
}

.cart-item:hover {
    background-color: rgba(var(--primary-rgb), 0.02);
    transform: translateX(5px);
}

.quantity-controls .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    border-left: none;
    border-right: none;
}

/* Product Page Enhancements */
.product-image-container .main-image {
    overflow: hidden;
    border-radius: 16px;
}

.thumbnail-images img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-images img:hover,
.thumbnail-images img.border-primary {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Stats styling */
.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Enhanced buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.3), 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

/* WhatsApp Chat Widget */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.36), 0 0 0 5px rgba(var(--secondary-rgb), 0.08);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-weight: 600;
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.34), 0 0 0 0 rgba(var(--secondary-rgb), 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 10px 34px rgba(var(--primary-rgb), 0.44), 0 0 0 10px rgba(var(--secondary-rgb), 0.12);
        transform: scale(1.04);
    }
}

.chat-button:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.42);
    animation: none;
}

.chat-button i {
    font-size: 1.5rem;
}

.chat-text {
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .chat-text {
        display: none;
    }
    
    .chat-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
}

/* Blog Hero */
.blog-hero {
    background: var(--bg-light);
    position: relative;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-search .input-group {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.blog-search .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.blog-search .btn {
    border: none;
    padding: 1rem 2rem;
}

/* Featured Article */
.featured-article {
    background: var(--bg-light);
}

.featured-post {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.featured-post .post-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .post-image img {
    transform: scale(1.05);
}

.post-category-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.featured-post .post-content {
    padding: 2rem;
}

.featured-post .post-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Blog Filter Tabs */
.blog-filters {
    border-bottom: 1px solid #e9ecef;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e9ecef;
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

/* Blog Post Cards */
.blog-post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.blog-post-card .post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.1);
}

.blog-post-card .post-category-badge {
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.blog-post-card .post-content {
    padding: 1.5rem;
}

.blog-post-card .post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-post-card .post-meta {
    font-size: 0.8rem;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.blog-post-card .post-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    height: 3.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-share {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.share-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Newsletter Signup */
.newsletter-signup {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.newsletter-signup .container {
    position: relative;
    z-index: 2;
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 16px 36px rgba(var(--dark-green-rgb), 0.28);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: var(--white);
}

.newsletter-form .btn {
    border: none;
    padding: 1rem 2rem;
    background: var(--accent-color);
    font-weight: 600;
    color: var(--text-dark);
}

.newsletter-form .btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

/* Clean Product Cards (Rio Gift Shop Style) */
.product-card {
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(var(--dark-green-rgb), 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(var(--primary-rgb), 0.18), 0 8px 18px rgba(var(--dark-green-rgb), 0.14);
    border-color: rgba(var(--primary-rgb), 0.34);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover::after {
    transform: scaleX(1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(var(--accent-orange-rgb), 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(var(--accent-orange-rgb), 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(var(--accent-orange-rgb), 0.6);
    }
}

.product-badge.new {
    background: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(var(--dark-green-rgb), 0.4);
    animation: none;
}

.product-badge.featured {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
    animation: none;
}

.product-body {
    padding: 1.25rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--dark-green);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.9;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.product-card:hover .product-category {
    background: rgba(var(--primary-rgb), 0.15);
    opacity: 1;
    transform: translateY(-2px);
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-shrink: 0;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-shrink: 0;
}

.current-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-green);
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
}

.btn-add-cart {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--primary-color);
    border: none;
    color: var(--dark-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn-add-cart:hover::before {
    left: 0;
}

.btn-add-cart span {
    position: relative;
    z-index: 2;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.34), 0 0 0 4px rgba(var(--accent-rgb), 0.12);
    color: var(--dark-color);
}

.btn-add-cart:hover span {
    text-shadow: none;
    font-weight: 700;
}

.btn-quick-view {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    color: var(--dark-green);
    background: transparent;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-quick-view:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.24);
}



/* Clean Grid Layout - 4 Columns Desktop, 2 Mobile */
.products-grid,
#products-container,
#main-products-grid,
#featured-products-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

/* Ensure proper grid layout */
.products-grid > .product-card,
#products-container > .product-card,
#main-products-grid > .product-card {
    width: 100%;
    height: 100%;
}

/* Large Desktop - 4 columns */
@media (min-width: 1201px) {
    .products-grid,
    #products-container,
    #main-products-grid,
    #featured-products-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop/Laptop - 3 columns */
@media (max-width: 1200px) and (min-width: 769px) {
    .products-grid,
    #products-container,
    #main-products-grid,
    #featured-products-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Tablet - 2 columns as requested */
@media (max-width: 768px) and (min-width: 577px) {
    .products-grid,
    #products-container,
    #main-products-grid,
    #featured-products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Mobile - 2 Columns for better product visibility */
@media (max-width: 576px) {
    .products-grid,
    #products-container,
    #main-products-grid,
    #featured-products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 100%;
        margin: 1rem 0 0 0;
    }
    
    /* Hide sidebar filters on mobile */
    .col-lg-3 {
        display: none !important;
    }
    
    /* Make products section full width */
    .col-lg-9 {
        max-width: 100% !important;
        padding: 0 0.75rem !important;
    }
    
    /* Hide page header and breadcrumb on mobile */
    .page-header {
        padding: 1.5rem 0 !important;
        display: none !important;
    }
    
    /* Simplify products header on mobile */
    .products-header {
        padding: 1rem !important;
        background: transparent !important;
        border-radius: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .products-header .row {
        flex-direction: column;
    }
    
    .products-header h2 {
        margin-bottom: 0.5rem !important;
        font-size: 1.2rem !important;
    }
    
    .products-header p {
        display: none !important;
    }
    
    .products-header .col-md-6:last-child {
        margin-top: 1rem !important;
        order: -1;
    }
    
    /* Style mobile search bar prominently */
    #product-search {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border: 2px solid var(--primary-color);
        border-radius: 25px;
        background: var(--white);
    }
    
    /* Hide results info and sort on mobile */
    .results-info {
        display: none !important;
    }
    
    .d-flex.align-items-center.gap-2 {
        width: 100%;
    }
    
    .form-label {
        display: none !important;
    }
    
    #sort-products {
        width: 100% !important;
    }
    
    /* Optimize product cards for mobile */
    .product-card {
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
    }
    
    .product-image {
        height: 180px !important;
    }
    
    .product-image img {
        height: 100%;
        object-fit: cover;
    }
    
    .product-body {
        padding: 0.875rem !important;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-title {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
    }
    
    .product-description {
        display: none !important;
    }
    
    .product-rating {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .product-price {
        margin-bottom: 0.75rem !important;
        flex-grow: 1;
    }
    
    .current-price {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }
    
    .btn-add-cart {
        width: 100%;
        padding: 0.65rem 0.75rem !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
    }
    
    /* Hide excessive product info on mobile */
    .product-category {
        display: none !important;
    }
}

/* Modern Card Hover Effects */
.modern-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    animation: fadeInUp 0.6s ease;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: left;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 70px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.modern-card:hover::before {
    transform: scaleX(1);
}

/* Featured Product Rotation */
.featured-item {
    display: flex;
    align-items: center;
    background: rgba(var(--primary-rgb), 0.05);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.featured-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.25);
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.25);
}

.featured-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 1.25rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.featured-item:hover .featured-image {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.featured-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.featured-content h6 {
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.featured-item:hover .featured-content h6 {
    color: var(--primary-color);
}

.featured-content .text-muted {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.featured-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.featured-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.featured-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.featured-dot:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Enhanced Typography */
.accent-text {
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Page Header Styles */
.page-header {
    background: var(--bg-light);
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Products Section Styles */
.products-section {
    min-height: 70vh;
}

.filters-card {
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}

.filters-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
    padding-bottom: 0.75rem;
}

.filters-card .category-filter {
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filters-card .category-filter:hover,
.filters-card .category-filter.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.results-info {
    color: var(--text-light);
    font-weight: 500;
}

#sort-products {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 500;
}

#sort-products:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* ENHANCED RESPONSIVE DESIGN FOR ALL PAGES */

/* Large screens (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Desktop and Large Tablets (992px - 1199px) */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-content {
        padding-right: 1rem;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        margin: 0.5rem;
        min-width: 160px;
    }
    
    .categories-sidebar {
        position: static;
        margin-bottom: 2rem;
        border-radius: 16px;
        padding: 1.5rem;
    }
    
    .flash-sale-banner {
        text-align: center;
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .timer-display {
        margin-top: 1rem;
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        padding-top: 1rem;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 8px;
    }
    
    .promise-item {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
    }
    
    .featured-section {
        padding: 1rem;
        border-radius: 12px;
        background: rgba(var(--primary-rgb), 0.02);
    }
}

/* Mobile Devices (up to 767px) */
@media (max-width: 767px) {
    /* Enhanced Mobile Layout */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    /* Sidebar becomes full-width on mobile */
    .categories-sidebar {
        position: static;
        margin-bottom: 2rem;
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    
    .category-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .category-link {
        font-size: 0.875rem;
        padding: 0.75rem;
        text-align: center;
        border-radius: 8px;
        background: rgba(var(--primary-rgb), 0.05);
        border: 1px solid rgba(var(--primary-rgb), 0.1);
    }
    
    .category-link i {
        display: block;
        margin-bottom: 0.25rem;
        font-size: 1.2rem;
    }
    
    /* Products Grid - Single Column */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .product-card {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 16px;
        overflow: hidden;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-body {
        padding: 1.25rem;
    }
    
    /* Flash Sale Banner */
    .flash-sale-banner {
        text-align: center;
        padding: 1.5rem;
        border-radius: 16px;
        margin-bottom: 2rem;
    }
    
    .timer-display {
        margin-top: 1rem;
        font-size: 1.1rem;
    }
    
    /* Featured Section */
    .featured-section {
        padding: 1.25rem;
        border-radius: 16px;
        background: var(--bg-light);
    }
    
    .featured-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .featured-image {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Blog Enhancements */
    .blog-hero {
        padding: 2rem 0;
    }
    
    .blog-search .input-group {
        max-width: 100%;
        border-radius: 25px;
    }
    
    .filter-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
        padding: 1rem 1.5rem;
        border-radius: 25px;
        font-weight: 600;
    }
    
    .blog-post-card .post-title {
        font-size: 1.125rem;
        height: auto;
        line-height: 1.4;
    }
    
    .blog-post-card .post-excerpt {
        height: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .featured-post .post-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .featured-post .post-image {
        height: 220px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 20px;
        overflow: hidden;
    }
    
    .newsletter-form .form-control {
        border-radius: 20px;
        margin-bottom: 0.75rem;
        padding: 1rem 1.5rem;
    }
    
    .newsletter-form .btn {
        border-radius: 20px;
        padding: 1rem 2rem;
    }
    
    /* Navigation Enhancements */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
        background: rgba(var(--primary-rgb), 0.02);
        border-radius: 12px;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.875rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 10px;
        font-weight: 600;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.875rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Promise Cards */
    .promise-item {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
        border-radius: 16px;
        background: var(--white);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    
    .promise-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* View Options */
    .view-options {
        text-align: center !important;
        margin-top: 1.5rem;
    }
    
    .products-header .row {
        text-align: center;
    }
    
    .products-header .col-md-8,
    .products-header .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer Enhancements */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* WhatsApp Widget */
    .whatsapp-chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
    }
    
    .chat-text {
        display: none;
    }
    
    .chat-button i {
        font-size: 1.75rem;
    }
}

/* Extra Small Mobile Devices (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Hero Section - Ultra Mobile Optimized */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 10px;
        font-weight: 600;
    }
    
    /* Navigation - Compact */
    .brand-logo {
        font-size: 1.125rem;
    }
    
    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    /* Sidebar Categories - Stacked */
    .categories-sidebar {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .category-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .category-link {
        padding: 1rem;
        text-align: left;
        display: flex;
        align-items: center;
        font-size: 0.9rem;
    }
    
    .category-link i {
        display: inline-block;
        margin-right: 0.75rem;
        margin-bottom: 0;
        font-size: 1.1rem;
        width: 24px;
        text-align: center;
    }
    
    /* Products - Full Width Cards */
    .products-grid {
        gap: 1.25rem;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-body {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 0.95rem;
        line-height: 1.4;
        height: auto;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
    
    .original-price {
        font-size: 0.85rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-add-cart {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .btn-quick-view {
        width: 100%;
        height: 40px;
        border-radius: 8px;
    }
    
    /* Flash Sale - Compact */
    .flash-sale-banner {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .flash-sale-banner h4 {
        font-size: 1.25rem;
    }
    
    .timer-display {
        font-size: 0.95rem;
        margin-top: 0.75rem;
    }
    
    .timer-display span {
        padding: 0.2rem 0.4rem;
        font-size: 0.85rem;
    }
    
    /* Featured Product - Vertical Layout */
    .featured-section {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .featured-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .featured-image {
        width: 70px;
        height: 70px;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .featured-content h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .featured-dots {
        margin-top: 1rem;
        gap: 0.4rem;
    }
    
    .featured-dot {
        width: 6px;
        height: 6px;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.625rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Promise Items - Card Style */
    .promise-item {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    
    .promise-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .promise-item h5 {
        font-size: 1.1rem;
    }
    
    .promise-item p {
        font-size: 0.9rem;
    }
    
    /* Blog - Mobile Optimized */
    .blog-hero {
        padding: 1.5rem 0;
    }
    
    .blog-search .form-control {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .filter-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        max-width: 200px;
    }
    
    .blog-post-card {
        border-radius: 12px;
    }
    
    .blog-post-card .post-image {
        height: 160px;
    }
    
    .blog-post-card .post-content {
        padding: 1rem;
    }
    
    .blog-post-card .post-title {
        font-size: 1rem;
    }
    
    .featured-post .post-title {
        font-size: 1.375rem;
    }
    
    .featured-post .post-image {
        height: 180px;
    }
    
    .featured-post .post-content {
        padding: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-form .form-control {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    .newsletter-form .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    /* Footer - Compact */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    .footer h5 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .footer ul li {
        margin-bottom: 0.4rem;
    }
    
    .footer a {
        font-size: 0.9rem;
    }
    
    /* WhatsApp Widget - Smaller */
    .whatsapp-chat-widget {
        bottom: 12px;
        right: 12px;
    }
    
    .chat-button {
        width: 52px;
        height: 52px;
        box-shadow: 0 3px 15px rgba(var(--primary-rgb), 0.4);
    }
    
    .chat-button i {
        font-size: 1.5rem;
    }
}

/* Products List View */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-list .product-card {
    display: flex;
    flex-direction: row;
    max-width: none;
    height: auto;
}

.products-list .product-image {
    width: 200px;
    min-width: 200px;
    height: 150px;
}

.products-list .product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-list .product-title {
    height: auto;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.products-list .product-actions {
    margin-top: auto;
    width: fit-content;
}

@media (max-width: 768px) {
    .products-list .product-card {
        flex-direction: column;
    }
    
    .products-list .product-image {
        width: 100%;
        height: 200px;
    }
    
    .products-list .product-actions {
        width: 100%;
    }
}

/* Loading Animations */
.skeleton {
    background: #f0f0f0;
    animation: none;
}

.skeleton-card {
    height: 400px;
    border-radius: 20px;
}

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 80%;
}

/* Enhanced Interactions */
.interactive-element {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.interactive-element:active {
    transform: scale(0.98);
}

/* Modern Tooltips */
.tooltip-modern {
    position: relative;
}

.tooltip-modern::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip-modern::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip-modern:hover::before,
.tooltip-modern:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Mobile Responsive Design - Rio Gift Shop Style */

/* Clean Navigation - Mobile First */
.navbar {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(var(--dark-green-rgb), 0.08);
    border-bottom: 1px solid var(--border-green);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
}

/* Cart Icon - Always Visible & Mobile Optimized */
#cart-btn {
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

#cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.navbar-toggler {
    padding: 0.375rem 0.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* ===================================
   MOBILE HEADER REDESIGN
   =================================== */

/* Mobile Header Wrapper */
.mobile-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
}

/* Hamburger Menu */
.mobile-hamburger {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 40px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-hamburger:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 8px;
}

.mobile-hamburger:focus {
    outline: none;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

/* Hamburger Animation when menu is open */
.mobile-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.mobile-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Logo */
.mobile-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 1;
    justify-content: center;
    margin: 0 1rem;
}

.mobile-logo-img {
    width: 38px;
    height: 38px;
    margin-right: 8px;
}

.mobile-brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark-green);
    letter-spacing: 0.3px;
}

/* Mobile Actions Container */
.mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Desktop Account Dropdown */
.desktop-account-dropdown {
    position: relative;
}

.desktop-account-btn {
    background: rgba(var(--primary-rgb), 0.08);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    color: var(--dark-green);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.desktop-account-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.desktop-account-btn:hover::before {
    width: 100%;
    height: 100%;
}

.desktop-account-btn:hover {
    transform: scale(1.08);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2);
}

.desktop-account-btn i {
    position: relative;
    z-index: 1;
}

.desktop-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(var(--dark-green-rgb), 0.16);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1002;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    overflow: hidden;
}

.desktop-account-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: var(--white);
    transform: rotate(45deg);
    border-left: 1px solid rgba(var(--primary-rgb), 0.1);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.desktop-account-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Account Dropdown */
.mobile-account-dropdown {
    position: relative;
}

.mobile-account-btn {
    background: rgba(var(--primary-rgb), 0.08);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    color: var(--dark-green);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.mobile-account-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.mobile-account-btn:hover::before {
    width: 100%;
    height: 100%;
}

.mobile-account-btn:hover {
    transform: scale(1.08);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2);
}

.mobile-account-btn i {
    position: relative;
    z-index: 1;
}

/* Account Dropdown Menu */
.mobile-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(var(--dark-green-rgb), 0.16);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1002;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    overflow: hidden;
}

.mobile-account-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: var(--white);
    transform: rotate(45deg);
    border-left: 1px solid rgba(var(--primary-rgb), 0.1);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.mobile-account-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu-item {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    gap: 12px;
    position: relative;
}

.account-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.account-menu-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--dark-green);
    padding-left: 1.5rem;
}

.account-menu-item:hover::before {
    transform: scaleY(1);
}

.account-menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.account-menu-item + .account-menu-item {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mobile Cart Button */
.mobile-cart-btn {
    background: var(--primary-color);
    color: var(--white);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    overflow: hidden;
}

.mobile-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.mobile-cart-btn:hover::before {
    width: 100%;
    height: 100%;
}

.mobile-cart-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    background: var(--bg-dark);
}

.mobile-cart-btn i {
    position: relative;
    z-index: 1;
}

/* Mobile Cart Badge */
.mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-color);
    color: var(--text-dark);
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 5px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(var(--accent-orange-rgb), 0.4);
    animation: cartBadgePulse 2s ease-in-out infinite;
}

.mobile-cart-badge:not(:empty) {
    display: flex;
}

/* Cart Badge Pulse Animation */
@keyframes cartBadgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Cart notification animation */
@keyframes cartAddAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.mobile-cart-btn.cart-added {
    animation: cartAddAnimation 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(var(--primary-rgb), 0.1);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1.5rem !important;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        overflow: hidden;
    }
    
    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--primary-color);
        transition: left 0.3s ease;
        z-index: -1;
    }
    
    .navbar-nav .nav-link:hover::before,
    .navbar-nav .nav-link.active::before {
        left: 0;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--white) !important;
        transform: translateX(5px);
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(var(--primary-rgb), 0.1);
        margin-top: 0.5rem;
    }
}

/* Mobile Hero Section Spectacular Design */
@media (max-width: 768px) {
    .hero-section {
        background: var(--bg-light);
        padding: 3rem 0;
        position: relative;
        overflow: hidden;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: transparent;
        animation: heroFloat 6s ease-in-out infinite;
    }
    
    .hero-content {
        text-align: center;
        padding: 2rem 0;
        position: relative;
        z-index: 2;
    }
    
    .hero-title {
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        color: var(--primary-color);
        animation: titleGlow 2s ease-in-out infinite alternate;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
        color: var(--text-light);
        margin-bottom: 2rem;
        animation: fadeInUp 1s ease 0.3s both;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        animation: fadeInUp 1s ease 0.6s both;
    }
    
    .hero-buttons .btn {
        width: 280px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 50px;
        position: relative;
        overflow: hidden;
        transform: translateY(0);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .hero-buttons .btn-primary {
        background: var(--primary-color);
        border: none;
        box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
    }
    
    .hero-buttons .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.4);
    }
    
    .hero-buttons .btn-outline-primary {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid var(--primary-color);
        backdrop-filter: blur(10px);
    }
    
    .hero-image {
        margin-top: 2rem;
        position: relative;
        animation: fadeInUp 1s ease 0.9s both;
    }
    
    .hero-image::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        background: var(--primary-color);
        border-radius: 25px;
        z-index: -1;
        opacity: 0.3;
        animation: imageGlow 3s ease-in-out infinite alternate;
    }
    
    .hero-image img {
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        width: 100%;
        height: auto;
        transform: scale(1);
        transition: all 0.4s ease;
    }
    
    .hero-image:hover img {
        transform: scale(1.02);
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    }
}

/* Mobile Product Cards Spectacular Design */
@media (max-width: 768px) {
    .main-content {
        padding: 3rem 0;
    }
    
    .categories-sidebar {
        position: static;
        margin-bottom: 2rem;
        transform: translateY(0);
        animation: slideInLeft 0.8s ease;
    }
    
    .modern-card {
        background: var(--bg-light);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(var(--primary-rgb), 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        animation: fadeInStagger 1.2s ease;
    }
    
    .product-card {
        max-width: 100%;
        margin: 0 auto;
        background: var(--bg-light);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(var(--primary-rgb), 0.08);
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        overflow: hidden;
    }
    
    .product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--primary-color);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }
    
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        border-color: rgba(var(--primary-rgb), 0.2);
    }
    
    .product-card:hover::before {
        transform: scaleX(1);
    }
    
    .product-image {
        height: 250px;
        position: relative;
        overflow: hidden;
        border-radius: 20px 20px 0 0;
    }
    
    .product-image img {
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .product-card:hover .product-image img {
        transform: scale(1.08) rotate(1deg);
    }
    
    .product-body {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.1rem;
        font-weight: 700;
        height: auto;
        margin-bottom: 0.75rem;
        color: var(--text-dark);
        line-height: 1.4;
    }
    
    .current-price {
        font-size: 1.4rem;
        font-weight: 800;
        background: var(--primary-color);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .btn-add-cart {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 15px;
        background: var(--primary-color);
        border: none;
        position: relative;
        overflow: hidden;
        transition: all 0.4s ease;
    }
    
    .btn-add-cart::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--bg-dark);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1;
    }

    .btn-add-cart:hover::before {
        left: 0;
    }

    .btn-add-cart span {
        position: relative;
        z-index: 2;
    }

    .btn-add-cart:hover span {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        font-weight: 700;
    }
}

/* Mobile Footer Enhancements */
@media (max-width: 768px) {
    .footer {
        background: var(--bg-dark);
        position: relative;
        overflow: hidden;
    }
    
    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--primary-color);
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .social-links a {
        margin: 0 0.5rem;
        transform: scale(1);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .social-links a:hover {
        transform: scale(1.2) translateY(-5px);
        background: var(--primary-color);
    }
}

/* Mobile WhatsApp Widget Enhancement */
@media (max-width: 768px) {
    .whatsapp-chat-widget {
        bottom: 16px;
        right: 14px;
    }
    
    .chat-button {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
        animation: whatsappPulse 2s ease-in-out infinite;
    }
    
    .chat-button i {
        font-size: 1.8rem;
    }
    
    .chat-text {
        display: none;
    }
}

/* Spectacular Animations */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3); }
    100% { text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6), 0 0 30px rgba(var(--dark-green-rgb), 0.3); }
}

@keyframes imageGlow {
    0% { opacity: 0.2; transform: scale(0.98); }
    100% { opacity: 0.4; transform: scale(1.02); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInStagger {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.6), 0 0 0 10px rgba(var(--primary-rgb), 0.2);
    }
    100% {
        box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
    }
}

/* Mobile Utility Classes */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        font-weight: 800;
        text-align: center;
        background: var(--primary-color);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        text-align: center;
        color: var(--text-light);
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .promise-item {
        background: var(--bg-light);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(var(--primary-rgb), 0.1);
        border-radius: 20px;
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
        transition: all 0.4s ease;
    }
    
    .promise-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    }
    
    .promise-icon {
        font-size: 3rem;
        background: var(--primary-color);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 1rem;
    }
}

/* Enhanced Mobile Blog Design */
@media (max-width: 768px) {
    .blog-hero {
        background: var(--bg-light);
        padding: 3rem 0;
        position: relative;
        overflow: hidden;
    }
    
    .blog-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2327B8A6" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.3;
    }
    
    .blog-search .input-group {
        border-radius: 25px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .blog-post-card {
        border-radius: 20px;
        background: var(--bg-light);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(var(--primary-rgb), 0.08);
        margin-bottom: 2rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.875rem 1.5rem;
        border-radius: 25px;
        font-weight: 600;
        background: var(--bg-light);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(var(--primary-rgb), 0.1);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .filter-btn:hover,
    .filter-btn.active {
        background: var(--primary-color);
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-blue-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Related Products Section Styling */
.related-products {
    background: var(--bg-light);
}

.related-products .section-title {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.related-products .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-products .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.related-products .product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-products .product-card:hover .product-image img {
    transform: scale(1.05);
}

.related-products .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.related-products .product-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-products .product-category {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.related-products .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex: 1;
}

.related-products .product-price {
    margin-bottom: 1rem;
}

.related-products .current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.related-products .original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.related-products .product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.related-products .btn-add-cart {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-products .btn-quick-view {
    padding: 0.625rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-products .btn-quick-view:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments for related products */
@media (max-width: 768px) {
    .related-products .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .related-products .product-image {
        height: 180px;
    }
    
    .related-products .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .related-products .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-products .product-image {
        height: 200px;
    }
}

/* Final Mobile Cart & Navigation Optimizations */
@media (max-width: 576px) {
    #cart-btn {
        padding: 0.45rem 0.6rem;
        font-size: 0.95rem;
        min-width: 40px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .brand-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .navbar-toggler {
        padding: 0.3rem 0.4rem;
        font-size: 0.85rem;
    }
}

/* Performance & Accessibility Improvements */
.btn, .nav-link, .product-card, .category-link {
    -webkit-tap-highlight-color: rgba(var(--primary-rgb), 0.2);
    touch-action: manipulation;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure proper contrast */
.text-muted {
    color: #6c757d !important;
}

/* Mobile-first loading states */
@media (max-width: 768px) {
    .loading, .skeleton {
        animation: pulse 1.5s ease-in-out infinite alternate;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* ==========================================================
   Desktop Homepage Section â€” Layout & Search Fixes
   ========================================================== */

/* Products header desktop polish */
@media (min-width: 992px) {
    .products-header {
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        padding: 1rem 1.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border-bottom: none;
    }
}

/* Desktop search bar embedded in products header */
.home-desktop-search {
    min-width: 210px;
    max-width: 250px;
}

.home-desktop-search .form-control {
    border-radius: 8px 0 0 8px;
    border-right: 0;
    font-size: 0.9rem;
}

.home-desktop-search .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.home-desktop-search .btn {
    border-radius: 0 8px 8px 0;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

/* Homepage main products grid: 3 columns when sidebar is present (col-lg-9) */
@media (min-width: 992px) {
    #main-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.25rem !important;
    }
}

/* Large desktop: still 3 columns (4 is too cramped with the sidebar) */
@media (min-width: 1201px) {
    #main-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* ==========================================================
   Search Autocomplete Dropdown
   ========================================================== */

/* Both input-group wrappers that contain our search inputs */
.mobile-search-section .input-group,
.home-desktop-search {
    position: relative; /* Bootstrap sets this already; belt-and-suspenders */
}

.search-autocomplete {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(var(--dark-green-rgb), 0.14);
    border: 1px solid var(--soft-border);
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}

.search-autocomplete.active {
    display: block;
    animation: acFadeIn 0.15s ease;
}

@keyframes acFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Individual product row */
.search-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-dark, #17202A);
    border-bottom: 1px solid var(--soft-border);
    transition: background 0.12s;
    outline: none;
}

.search-autocomplete-item:last-of-type {
    border-bottom: none;
}

.search-autocomplete-item:hover,
.search-autocomplete-item:focus {
    background: rgba(var(--primary-rgb), 0.06);
    color: var(--text-dark, #17202A);
}

/* Product thumbnail */
.search-autocomplete-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    padding: 0.25rem;
    background: var(--white);
    border-radius: 9px;
    flex-shrink: 0;
    border: 1px solid var(--soft-border);
}

/* Text area */
.search-autocomplete-item .ac-info {
    flex: 1;
    min-width: 0;
}

.search-autocomplete-item .ac-name {
    border-radius: 9px;
    flex-shrink: 0;
    border: 1px solid var(--soft-border);
}

/* Text area */
.search-autocomplete-item .ac-info {
    flex: 1;
    min-width: 0;
}

.search-autocomplete-item .ac-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Highlighted match text */
.search-autocomplete-item mark {
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0;
}

/* Chevron arrow */
.search-autocomplete-item .ac-arrow {
    font-size: 0.7rem;
    color: var(--soft-border);
    flex-shrink: 0;
    transition: color 0.12s;
}

.search-autocomplete-item:hover .ac-arrow,
.search-autocomplete-item:focus .ac-arrow {
    color: var(--primary-color);
}

/* "View all X results" footer row */
.search-autocomplete-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--soft-bg);
    border-top: 1px solid var(--soft-border);
    cursor: pointer;
    transition: background 0.15s;
}

.search-autocomplete-footer:hover {
    background: rgba(var(--primary-rgb), 0.07);
}

/* No-results state */
.search-autocomplete-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 14px;
    color: var(--text-light);
    font-size: 0.88rem;
    text-align: center;
}

.search-autocomplete-empty i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.search-autocomplete-empty strong {
    color: var(--text-dark);
}


/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

/* Touch-Friendly Tap Targets (minimum 44x44px) */
@media (hover: none) and (pointer: coarse) {
    .btn-add-cart,
    .btn-quick-view,
    .cart-icon,
    .mobile-account-btn,
    .mobile-cart-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Disable hover animations on touch devices */
    .product-card:hover::after {
        transform: scaleX(0);
    }

    /* Remove hover-dependent animations on mobile */
    .promise-icon,
    .category-pill-card,
    .product-badge {
        animation: none !important;
    }

    /* Make taps feel more responsive */
    .btn-primary:active,
    .btn-add-cart:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

/* Prevent text selection on interactive elements */
.btn-add-cart,
.btn-quick-view,
.product-badge,
.category-pill-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Improved Mobile Card Spacing */
@media (max-width: 768px) {
    .product-card {
        animation-delay: 0s !important;
    }

    /* Reduce animation on mobile for performance */
    .product-badge {
        animation: none;
    }

    /* Better touch targets for mobile */
    .btn-add-cart {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}




/* ============================================
   ENHANCED ANIMATIONS & UX IMPROVEMENTS
   ============================================ */

/* Smooth Focus States for Better Accessibility */
*:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Fade-in Animation for Product Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply staggered animations without conflicting with existing rules */
.products-grid .product-card:nth-child(1),
#products-container .product-card:nth-child(1),
#main-products-grid .product-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.products-grid .product-card:nth-child(2),
#products-container .product-card:nth-child(2),
#main-products-grid .product-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.products-grid .product-card:nth-child(3),
#products-container .product-card:nth-child(3),
#main-products-grid .product-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.products-grid .product-card:nth-child(4),
#products-container .product-card:nth-child(4),
#main-products-grid .product-card:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.products-grid .product-card:nth-child(5),
#products-container .product-card:nth-child(5),
#main-products-grid .product-card:nth-child(5) {
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.products-grid .product-card:nth-child(6),
#products-container .product-card:nth-child(6),
#main-products-grid .product-card:nth-child(6) {
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.products-grid .product-card:nth-child(7),
#products-container .product-card:nth-child(7),
#main-products-grid .product-card:nth-child(7) {
    animation: fadeInUp 0.6s ease-out 0.7s backwards;
}

.products-grid .product-card:nth-child(8),
#products-container .product-card:nth-child(8),
#main-products-grid .product-card:nth-child(8) {
    animation: fadeInUp 0.6s ease-out 0.8s backwards;
}

/* Mobile-specific improvements for homepage sections and about page */
@media (max-width: 768px) {
    /* Hide story image on about page on mobile */
    .story-image {
        display: none;
    }

    /* Improve mobile styling for homepage sections */
    .more-categories-section {
        padding: 3rem 0;
        background: var(--bg-light);
    }

    .more-categories-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .why-choose-us {
        padding: 3rem 0;
        background: var(--bg-light);
    }

    .why-choose-us .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .promise-item {
        padding: 1.5rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .about-preview {
        padding: 3rem 0;
        background: var(--white);
    }

    .about-preview .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .shop-today {
        padding: 3rem 0;
        background: var(--bg-light);
    }

    .shop-today .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .feature-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
}

/* Extra-small mobile devices (phones) */
@media (max-width: 576px) {
    /* Hide story image on about page on very small screens */
    .story-image {
        display: none;
    }

    /* Compact homepage sections for small phones */
    .more-categories-section {
        padding: 2rem 0;
    }

    .more-categories-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .why-choose-us {
        padding: 2rem 0;
    }

    .why-choose-us .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .promise-item {
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 0.75rem;
    }

    .promise-item h5 {
        font-size: 1rem;
    }

    .about-preview {
        padding: 2rem 0;
    }

    .about-preview .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .shop-today {
        padding: 2rem 0;
    }

    .shop-today .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .category-pill-card {
        padding: 0.75rem 1rem;
        gap: 0.6rem;
    }
}

/* ==========================================================
   Optix Colour Refresh - final shared theme layer
   ========================================================== */
.premium-navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom-color: var(--soft-border);
    box-shadow: 0 2px 22px rgba(var(--dark-green-rgb), 0.1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--deep-emerald) !important;
    border-bottom-color: var(--bright-lime);
    text-shadow: 0 0 18px rgba(var(--primary-rgb), 0.2);
}

.desktop-account-btn,
.mobile-account-btn {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: var(--soft-border);
    color: var(--deep-emerald);
}

.desktop-account-btn:hover,
.mobile-account-btn:hover,
.cart-icon:hover,
.mobile-cart-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.22), 0 0 0 4px rgba(var(--secondary-rgb), 0.1);
}

.hero-carousel-section {
    background: var(--bg-light);
}

.hero-nav-arrow {
    background: rgba(var(--dark-green-rgb), 0.9);
}

.hero-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.34), 0 0 0 4px rgba(var(--secondary-rgb), 0.12);
}

.categories-sidebar,
.modern-card,
.products-header,
.cart-items-card,
.order-summary-card,
.contact-form,
.auth-card,
.search-autocomplete {
    border-color: var(--soft-border) !important;
}

.category-title {
    background: var(--bg-dark);
    box-shadow: 0 10px 24px rgba(var(--dark-green-rgb), 0.24);
}

.category-link:hover,
.category-link.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--deep-emerald);
    border-left-color: var(--bright-lime);
}

.category-link i,
.category-pill-card i {
    color: var(--primary-color);
}

.featured-item,
.category-pill-card,
.promise-item,
.blog-post-card,
.featured-post {
    background: var(--card-bg);
    border-color: var(--soft-border);
}

.product-card,
.related-products .product-card {
    background: var(--card-bg);
    border-color: rgba(var(--primary-rgb), 0.16);
    box-shadow: 0 8px 22px rgba(var(--dark-green-rgb), 0.09);
}

.product-card:hover,
.related-products .product-card:hover {
    border-color: rgba(var(--primary-rgb), 0.36);
    box-shadow: 0 18px 42px rgba(var(--primary-rgb), 0.18), 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.product-category,
.related-products .product-category {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    color: var(--deep-emerald);
}

.current-price,
.related-products .current-price {
    color: var(--deep-emerald);
}

.product-badge,
.related-products .product-badge,
.cart-badge,
.mobile-cart-badge {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-add-cart,
.btn-primary,
.form-submit,
.auth-btn {
    background: var(--primary-color);
    border-color: transparent;
    color: var(--dark-color);
}

.btn-add-cart:hover,
.btn-primary:hover,
.form-submit:hover,
.auth-btn:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    box-shadow: 0 14px 34px rgba(var(--primary-rgb), 0.32), 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.btn-outline-primary,
.btn-quick-view {
    border-color: var(--primary-color);
    color: var(--deep-emerald);
}

.btn-outline-primary:hover,
.btn-quick-view:hover {
    background: var(--primary-color);
    border-color: transparent;
    color: var(--white);
}

.flash-sale-banner {
    background: var(--bg-dark);
    border-color: rgba(var(--secondary-rgb), 0.24);
    border-top-color: var(--danger-color);
}

.timer-display span {
    background: rgba(var(--accent-rgb), 0.22);
    color: var(--danger-color);
}

.form-control:focus,
.form-select:focus,
.search-input:focus,
.sort-select:focus,
#sort-products:focus,
.quantity-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.22rem rgba(var(--primary-rgb), 0.18) !important;
    outline: none;
}

.view-options .btn:hover,
.view-options .btn.active,
.view-toggle-btn:hover,
.view-toggle-btn.active,
.category-btn:hover,
.category-btn.active,
.category-tab:hover,
.category-tab.active,
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color) !important;
    border-color: transparent !important;
    color: var(--white) !important;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.26);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2327B8A6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

.newsletter-signup,
.footer {
    background: var(--bg-dark);
}

.footer a:hover,
.social-links a:hover {
    color: var(--bright-lime) !important;
}

.chat-button {
    background: var(--bg-dark);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.36), 0 0 0 5px rgba(var(--secondary-rgb), 0.08);
}

.chat-button:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* ==========================================================
   Optix Colour Refresh - premium polish layer
   ========================================================== */
::selection {
    background: rgba(var(--primary-rgb), 0.22);
    color: var(--text-dark);
}

a {
    color: var(--deep-emerald);
}

a:hover {
    color: var(--primary-color);
}

.text-primary {
    color: var(--deep-emerald) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.bg-primary,
.badge.bg-primary {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.bg-success,
.badge.bg-success {
    background: var(--bg-dark);
    color: var(--white) !important;
}

.bg-warning,
.badge.bg-warning {
    background: var(--danger-color) !important;
    color: var(--text-dark) !important;
}

.bg-secondary,
.badge.bg-secondary {
    background: var(--bg-dark);
    color: var(--white) !important;
}

.btn,
.nav-link,
.dropdown-item,
.product-card,
.category-link,
.category-btn,
.category-tab,
.filter-btn,
.view-toggle-btn,
.form-control,
.form-select,
.desktop-account-btn,
.mobile-account-btn,
.cart-icon,
.mobile-cart-btn,
.chat-button {
    transition: var(--transition-smooth);
}

.btn-primary,
.btn-success,
.btn-add-cart,
.form-submit,
.auth-btn,
.blog-search .btn,
.home-desktop-search .btn,
#home-search-btn {
    background: var(--primary-color) !important;
    border-color: transparent !important;
    color: var(--white) !important;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.22);
}

.btn-primary:hover,
.btn-success:hover,
.btn-add-cart:hover,
.form-submit:hover,
.auth-btn:hover,
.blog-search .btn:hover,
.home-desktop-search .btn:hover,
#home-search-btn:hover {
    background: var(--bg-dark);
    color: var(--white) !important;
    box-shadow: 0 14px 34px rgba(var(--primary-rgb), 0.32), 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.btn-outline-primary,
.btn-quick-view,
.btn-outline-secondary,
.quantity-decrease,
.quantity-increase {
    background: var(--card-bg);
    border-color: var(--soft-border) !important;
    color: var(--deep-emerald) !important;
}

.btn-outline-primary:hover,
.btn-quick-view:hover,
.btn-outline-secondary:hover,
.quantity-decrease:hover,
.quantity-increase:hover {
    background: var(--surface-green) !important;
    border-color: var(--primary-color) !important;
    color: var(--deep-emerald) !important;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.18);
}

.btn-secondary {
    background: var(--text-dark) !important;
    border-color: var(--text-dark) !important;
    color: var(--white) !important;
}

.btn-secondary:hover {
    background: var(--deep-emerald) !important;
    border-color: var(--deep-emerald) !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active,
.breadcrumb-item a:hover,
.product-category a:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--deep-emerald) !important;
}

.products-hero,
.about-hero,
.blog-hero,
.contact-hero,
.faq-hero,
.jobs-hero {
    background: var(--deep-navy) !important;
}

.hero-carousel-section {
    background: var(--bg-light);
}

.hero-badge {
    background: var(--danger-color) !important;
    color: var(--text-dark) !important;
    box-shadow: 0 10px 26px rgba(var(--accent-orange-rgb), 0.22);
}

.hero-title .text-accent,
.text-accent {
    color: var(--primary-color);
    text-shadow: 0 0 24px rgba(var(--primary-rgb), 0.28);
}

.hero-buttons .btn-primary {
    box-shadow: 0 14px 34px rgba(var(--primary-rgb), 0.24), 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.hero-nav-arrow {
    background: rgba(var(--dark-green-rgb), 0.92);
    border: 1px solid rgba(var(--secondary-rgb), 0.18);
}

.hero-nav-arrow:hover {
    background: var(--primary-color);
    box-shadow: 0 14px 32px rgba(var(--primary-rgb), 0.32), 0 0 0 5px rgba(var(--secondary-rgb), 0.1);
}

.hero-dot {
    background-color: rgba(var(--dark-green-rgb), 0.18);
}

.hero-dot:hover {
    background: var(--danger-color);
}

.hero-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.34), 0 0 0 4px rgba(var(--secondary-rgb), 0.12);
}

.categories-sidebar,
.modern-card,
.filters-card,
.cart-items-card,
.order-summary-card,
.contact-form,
.auth-card,
.featured-post,
.blog-post-card,
.job-card,
.stats-card,
.mv-card,
.value-card,
.contact-info-card,
.search-autocomplete {
    background: var(--card-bg) !important;
    border-color: var(--soft-border) !important;
    box-shadow: var(--shadow-card);
}

.category-title,
.filters-card h5 {
    background: var(--bg-dark);
    color: var(--white) !important;
    border-bottom: 0;
    box-shadow: 0 10px 24px rgba(var(--dark-green-rgb), 0.24);
}

.filters-card h5 {
    margin: -1rem -1rem 1rem;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
}

.category-link:hover,
.category-link.active,
.account-menu-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--deep-emerald) !important;
    border-left-color: var(--bright-lime);
}

.category-link i,
.category-pill-card i,
.contact-info-link,
.promise-icon,
.filter-title i {
    color: var(--primary-color) !important;
}

.product-card,
.related-products .product-card,
.products-list .product-card {
    background: var(--card-bg);
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    box-shadow: var(--shadow-card);
}

.product-card:hover,
.related-products .product-card:hover,
.products-list .product-card:hover,
.featured-post:hover,
.blog-post-card:hover,
.job-card:hover,
.contact-info-card:hover,
.stats-card:hover,
.mv-card:hover,
.value-card:hover {
    border-color: rgba(var(--primary-rgb), 0.36) !important;
    box-shadow: var(--shadow-card-hover);
}

.product-image,
.search-autocomplete-item img {
    background: var(--bg-light);
}

.product-category,
.related-products .product-category,
.search-autocomplete-item .ac-category {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    color: var(--deep-emerald);
}

.product-category,
.related-products .product-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.current-price,
.related-products .current-price,
.product-price .current-price,
.item-subtotal,
#cart-total {
    color: var(--deep-emerald) !important;
}

.product-badge,
.related-products .product-badge,
.cart-badge,
.mobile-cart-badge,
.post-category-badge {
    background: var(--danger-color) !important;
    color: var(--white) !important;
}

.flash-sale-banner,
.offer-banner {
    background: var(--bg-dark);
    border-color: rgba(var(--secondary-rgb), 0.24);
    border-top: 3px solid var(--danger-color);
}

.timer-display span {
    background: rgba(var(--accent-rgb), 0.2);
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    color: var(--danger-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.filter-section,
.faq-categories,
.contact-form-section,
.related-products,
.page-header,
.featured-article,
.products-section,
.cart-section {
    background: var(--bg-light);
}

.products-cta,
.story-image::before,
.value-card:hover .value-icon {
    background: var(--danger-color) !important;
}

.form-control,
.form-select,
.sort-select,
#sort-products,
.quantity-input {
    border-color: var(--soft-border);
}

.form-control:focus,
.form-select:focus,
.search-input:focus,
.sort-select:focus,
#sort-products:focus,
.quantity-input:focus,
.newsletter-form .form-control:focus,
.blog-search .form-control:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color) !important;
    box-shadow: var(--focus-ring) !important;
    outline: none;
}

.form-check-input:checked,
.form-check-input:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.view-options .btn:hover,
.view-options .btn.active,
.view-toggle-btn:hover,
.view-toggle-btn.active,
.category-btn:hover,
.category-btn.active,
.category-tab:hover,
.category-tab.active,
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color) !important;
    border-color: transparent !important;
    color: var(--white) !important;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.26);
}

.search-autocomplete {
    border-color: var(--soft-border);
    box-shadow: 0 18px 42px rgba(var(--dark-green-rgb), 0.14);
}

.search-autocomplete-item {
    border-bottom-color: var(--muted-border);
}

.search-autocomplete-item:hover,
.search-autocomplete-item:focus,
.search-autocomplete-footer:hover {
    background: rgba(var(--primary-rgb), 0.07);
}

.search-autocomplete-footer {
    background: var(--soft-bg);
    border-top-color: var(--soft-border);
    color: var(--deep-emerald);
}

.accordion-item,
.accordion-body {
    border-color: var(--soft-border);
}

.accordion-button:not(.collapsed) {
    background: var(--accent-color);
    color: var(--deep-emerald);
}

.desktop-account-menu,
.mobile-account-menu {
    border-color: var(--soft-border);
    box-shadow: 0 14px 34px rgba(var(--dark-green-rgb), 0.14);
}

.desktop-account-btn,
.mobile-account-btn {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.2);
    color: var(--deep-emerald);
}

.cart-icon,
.mobile-cart-btn {
    background: var(--primary-color);
    color: var(--white);
}

.desktop-account-btn:hover,
.mobile-account-btn:hover,
.cart-icon:hover,
.mobile-cart-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.22), 0 0 0 4px rgba(var(--secondary-rgb), 0.1);
}

.newsletter-signup,
.testimonial-section,
.why-section,
.cta-section,
.footer {
    background: var(--bg-dark);
}

.footer a:hover,
.social-links a:hover,
.testimonial-role {
    color: var(--bright-lime) !important;
}

.chat-button {
    background: var(--bg-dark);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.36), 0 0 0 5px rgba(var(--secondary-rgb), 0.08);
}

.chat-button:hover {
    background: var(--primary-color);
    color: var(--text-dark) !important;
}

@media (max-width: 768px) {
    .whatsapp-chat-widget {
        right: 16px;
        bottom: 16px;
    }

    .chat-button {
        width: 56px;
        height: 56px;
    }

    .products-cta,
    .faq-cta {
        border-radius: 18px;
    }
}

/* ==========================================================
   Optix Solid Corporate Palette - final visible layer
   ========================================================== */
body {
    background-color: var(--soft-bg);
    color: var(--text-dark);
}

::selection {
    background: rgba(var(--primary-rgb), 0.18);
    color: var(--text-dark);
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-hover);
}

.premium-navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--soft-border) !important;
    box-shadow: 0 2px 18px rgba(var(--dark-green-rgb), 0.08) !important;
}

.brand-text,
.mobile-brand-text {
    color: var(--deep-navy) !important;
}

.navbar-nav .nav-link {
    color: var(--deep-navy) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
    text-shadow: none !important;
}

.dropdown-menu,
.desktop-account-menu,
.mobile-account-menu,
.search-autocomplete {
    background: var(--white) !important;
    border-color: var(--soft-border) !important;
    border-top-color: var(--primary-color) !important;
    box-shadow: 0 14px 34px rgba(var(--dark-green-rgb), 0.12) !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.account-menu-item:hover,
.search-autocomplete-item:hover,
.search-autocomplete-item:focus,
.search-autocomplete-footer:hover {
    background: var(--light-blue-bg) !important;
    color: var(--primary-color) !important;
}

.desktop-account-btn,
.mobile-account-btn {
    background: var(--light-blue-bg) !important;
    border-color: var(--soft-border) !important;
    color: var(--primary-color) !important;
}

.cart-icon,
.mobile-cart-btn {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.cart-icon:hover,
.mobile-cart-btn:hover,
.desktop-account-btn:hover,
.mobile-account-btn:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--white) !important;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.22) !important;
}

.cart-badge,
.mobile-cart-badge {
    background: var(--primary-hover) !important;
    color: var(--white) !important;
}

.product-badge,
.related-products .product-badge,
.badge.bg-warning,
.bg-warning {
    background: var(--danger-color) !important;
    color: var(--white) !important;
}

.post-category-badge,
.hero-badge {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.badge.bg-primary,
.bg-primary {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.badge.bg-success,
.bg-success,
.badge.bg-info,
.bg-info,
.bg-lime {
    background-color: var(--light-blue-bg) !important;
    color: var(--primary-color) !important;
}

.badge.bg-secondary,
.bg-secondary {
    background-color: var(--deep-navy) !important;
    color: var(--white) !important;
}

.btn-primary,
.btn-success,
.btn-add-cart,
.form-submit,
.auth-btn,
.blog-search .btn,
.home-desktop-search .btn,
#home-search-btn,
#home-search-btn-desktop,
#search-btn,
#search-btn-mobile {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.2) !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-add-cart:hover,
.form-submit:hover,
.auth-btn:hover,
.blog-search .btn:hover,
.home-desktop-search .btn:hover,
#home-search-btn:hover,
#home-search-btn-desktop:hover,
#search-btn:hover,
#search-btn-mobile:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--white) !important;
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.24) !important;
}

.btn-add-cart::before {
    background: var(--accent-color) !important;
}

.btn-outline-primary,
.btn-quick-view,
.btn-outline-secondary,
.quantity-decrease,
.quantity-increase {
    background: var(--white) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-quick-view:hover,
.btn-outline-secondary:hover,
.quantity-decrease:hover,
.quantity-increase:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.btn-secondary,
.btn-outline-dark:hover {
    background: var(--deep-navy) !important;
    border-color: var(--deep-navy) !important;
    color: var(--white) !important;
}

.hero-carousel-section,
.hero-section {
    background: var(--bg-light) !important;
}

.hero-carousel-section::before,
.hero-carousel-section::after,
.hero-image::before {
    background: rgba(var(--primary-rgb), 0.08) !important;
}

.hero-title,
.section-title,
.products-title {
    color: var(--text-dark) !important;
}

.text-accent,
.hero-title .text-accent,
.text-primary,
.current-price,
.related-products .current-price,
.product-price .current-price,
.item-subtotal,
#cart-total,
.contact-info-link,
.promise-icon,
.filter-title i,
.category-link i,
.category-pill-card i {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

.hero-subtitle,
.section-subtitle,
.text-muted {
    color: var(--text-light) !important;
}

.hero-buttons .btn {
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.18) !important;
}

.hero-nav-arrow {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--white) !important;
}

.hero-nav-arrow:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--white) !important;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.24) !important;
}

.hero-dot {
    background-color: var(--soft-border) !important;
}

.hero-dot:hover {
    background: var(--primary-hover) !important;
}

.hero-dot.active,
.featured-dot.active {
    background: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14) !important;
}

.products-hero,
.about-hero,
.blog-hero,
.contact-hero,
.faq-hero,
.jobs-hero,
.newsletter-signup,
.testimonial-section,
.why-section,
.cta-section,
.footer,
.offer-banner,
.flash-sale-banner {
    background: var(--deep-navy) !important;
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.products-hero h1,
.about-hero h1,
.blog-hero h1,
.contact-hero h1,
.faq-hero h1,
.jobs-hero h1,
.products-hero p,
.about-hero p,
.blog-hero p,
.contact-hero p,
.faq-hero p,
.jobs-hero p,
.footer,
.footer p,
.footer .brand-text,
.newsletter-signup,
.newsletter-signup p,
.offer-banner h6,
.offer-banner p,
.flash-sale-banner h4,
.flash-sale-banner p,
.countdown-timer {
    color: var(--white) !important;
}

.footer a,
.footer .text-light {
    color: rgba(255, 255, 255, 0.78) !important;
}

.footer a:hover,
.social-links a:hover {
    color: var(--bright-lime) !important;
}

.flash-sale-banner {
    border-top: 4px solid var(--danger-color) !important;
    box-shadow: 0 18px 40px rgba(var(--dark-green-rgb), 0.24) !important;
}

.timer-display span {
    background: var(--white) !important;
    border: 1px solid rgba(var(--accent-orange-rgb), 0.5) !important;
    color: var(--deep-navy) !important;
    box-shadow: none !important;
}

.categories-sidebar,
.modern-card,
.filters-card,
.cart-items-card,
.order-summary-card,
.contact-form,
.auth-card,
.featured-post,
.blog-post-card,
.job-card,
.stats-card,
.mv-card,
.value-card,
.contact-info-card,
.featured-item,
.category-pill-card,
.promise-item,
.search-autocomplete {
    background: var(--white) !important;
    border-color: var(--soft-border) !important;
    box-shadow: var(--shadow-card) !important;
}

.category-title,
.filters-card h5 {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-bottom: 0 !important;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.2) !important;
}

.category-link:hover,
.category-link.active,
.category-btn:hover,
.category-btn.active,
.category-tab:hover,
.category-tab.active,
.filter-btn:hover,
.filter-btn.active,
.view-options .btn:hover,
.view-options .btn.active,
.view-toggle-btn:hover,
.view-toggle-btn.active {
    background: var(--light-blue-bg) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.12) !important;
}

.category-link.active,
.category-tab.active,
.category-btn.active {
    border-left-color: var(--primary-hover) !important;
}

.filter-btn::before {
    background: var(--primary-color) !important;
}

.product-card,
.related-products .product-card,
.products-list .product-card {
    background: var(--white) !important;
    border: 1px solid var(--soft-border) !important;
    box-shadow: 0 8px 22px rgba(var(--dark-green-rgb), 0.08) !important;
}

.product-card:hover,
.related-products .product-card:hover,
.products-list .product-card:hover,
.featured-post:hover,
.blog-post-card:hover,
.job-card:hover,
.contact-info-card:hover,
.stats-card:hover,
.mv-card:hover,
.value-card:hover {
    border-color: rgba(var(--primary-rgb), 0.36) !important;
    box-shadow: var(--shadow-card-hover) !important;
}

.product-card::after {
    background: var(--primary-color) !important;
}

.product-image,
.search-autocomplete-item img {
    background: var(--light-blue-bg) !important;
}

.product-category,
.related-products .product-category,
.search-autocomplete-item .ac-category {
    background: var(--light-blue-bg) !important;
    border: 1px solid var(--soft-border) !important;
    color: var(--primary-color) !important;
}

.product-badge.new,
.products-cta,
.story-image::before,
.value-card:hover .value-icon {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.filter-section,
.faq-categories,
.contact-form-section,
.related-products,
.page-header,
.featured-article,
.products-section,
.cart-section,
.about-preview,
.shop-today,
.more-categories-section,
.why-choose-us {
    background: var(--soft-bg) !important;
}

.form-control,
.form-select,
.sort-select,
#sort-products,
.quantity-input {
    background-color: var(--white) !important;
    border-color: var(--soft-border) !important;
    color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus,
.search-input:focus,
.sort-select:focus,
#sort-products:focus,
.quantity-input:focus,
.newsletter-form .form-control:focus,
.blog-search .form-control:focus {
    background-color: var(--white) !important;
    border-color: var(--primary-color) !important;
    box-shadow: var(--focus-ring) !important;
    outline: none !important;
}

.form-check-input:checked,
.form-check-input:focus {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: var(--focus-ring) !important;
}

.accordion-button:not(.collapsed) {
    background: var(--light-blue-bg) !important;
    color: var(--primary-color) !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2327B8A6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

.search-autocomplete-footer {
    background: var(--soft-bg) !important;
    border-top-color: var(--soft-border) !important;
    color: var(--primary-color) !important;
}

.chat-button,
#whatsapp-inquiry,
#whatsapp-checkout,
.share-buttons .btn-success {
    background: var(--whatsapp-green) !important;
    border-color: var(--whatsapp-green) !important;
    color: var(--white) !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.26) !important;
}

.chat-button:hover,
#whatsapp-inquiry:hover,
#whatsapp-checkout:hover,
.share-buttons .btn-success:hover {
    background: var(--whatsapp-green-dark) !important;
    border-color: var(--whatsapp-green-dark) !important;
    color: var(--white) !important;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 8px 22px rgba(37, 211, 102, 0.26), 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 10px 26px rgba(37, 211, 102, 0.34), 0 0 0 10px rgba(37, 211, 102, 0.12);
        transform: scale(1.035);
    }
}

@media (max-width: 768px) {
    .whatsapp-chat-widget {
        right: 14px !important;
        bottom: 14px !important;
    }

    .chat-button {
        width: 54px !important;
        height: 54px !important;
    }
}

/* ==========================================================
   Mobile-First Polish (Teal/Turquoise)
   ========================================================== */
@media (max-width: 991px) {
    .premium-navbar {
        padding: 0.65rem 0 !important;
    }

    .navbar-collapse {
        background: var(--white);
        border: 1px solid var(--soft-border);
        border-radius: 14px;
        padding: 0.75rem 1rem;
        margin-top: 0.75rem;
        box-shadow: 0 12px 24px rgba(var(--dark-green-rgb), 0.08);
    }

    .navbar-nav .nav-link {
        padding: 0.65rem 0 !important;
        margin: 0;
        font-size: 0.95rem;
        letter-spacing: 0.2px;
    }

    .navbar-nav .nav-link::before {
        background: var(--primary-color);
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
        text-shadow: none !important;
    }

    .dropdown-menu {
        box-shadow: 0 12px 24px rgba(var(--dark-green-rgb), 0.08);
        border-top: 1px solid var(--soft-border);
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .mobile-header-wrapper {
        padding: 0.35rem 0 0.5rem;
        gap: 0.5rem;
    }

    .mobile-hamburger {
        width: 40px;
        height: 36px;
        padding: 0.35rem;
        border-radius: 10px;
        border: 1px solid var(--soft-border);
        background: var(--white);
    }

    .hamburger-line {
        width: 22px;
        height: 2px;
    }

    .mobile-brand-logo {
        margin: 0 0.5rem;
        justify-content: flex-start;
    }

    .mobile-logo-img {
        width: 32px;
        height: 32px;
        margin-right: 6px;
    }

    .mobile-brand-text {
        font-size: 1.05rem;
        letter-spacing: 0.2px;
    }

    .mobile-actions {
        gap: 6px;
    }

    .mobile-account-btn,
    .mobile-cart-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .mobile-cart-btn {
        background: var(--primary-color);
        color: var(--white);
        border: 1px solid var(--primary-color);
    }

    .mobile-cart-btn:hover {
        background: var(--primary-hover);
    }

    .mobile-cart-badge {
        min-width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .mobile-search-section {
        box-shadow: none;
        padding: 0.25rem 0 0.6rem;
    }

    .mobile-search-section .input-group {
        border: 1px solid var(--soft-border);
        border-radius: 12px;
        overflow: hidden;
        background: var(--white);
    }

    .mobile-search-section .form-control {
        border: none;
        background: var(--white);
        padding: 0.85rem 1rem;
        font-weight: 500;
    }

    .mobile-search-section .form-control:focus {
        box-shadow: none;
    }

    .mobile-search-section .btn-primary {
        background: var(--primary-color);
        color: var(--white);
        padding: 0.75rem 1rem;
        min-width: 52px;
        border: none;
    }

    .hero-text-content {
        padding: 1.5rem 0 0;
    }

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 0.85rem;
        color: var(--text-dark);
        animation: none;
        text-shadow: none;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        padding: 0 0.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 360px;
        padding: 0.9rem 1.25rem;
        border-radius: 12px;
        text-transform: none;
        letter-spacing: 0.2px;
    }

    .hero-image-wrapper {
        padding: 1rem 0 0;
    }

    .hero-image {
        max-width: 100%;
        box-shadow: 0 12px 30px rgba(var(--dark-green-rgb), 0.12);
    }

    .hero-nav-arrow {
        width: 36px;
        height: 36px;
        top: auto;
        bottom: 1.25rem;
        background: var(--primary-color);
    }

    .hero-nav-prev {
        left: 1rem;
    }

    .hero-nav-next {
        right: 1rem;
    }

    .hero-nav-dots {
        bottom: 0.6rem;
        gap: 0.6rem;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .main-content {
        padding: 1.5rem 0;
    }

    .products-grid,
    #products-container,
    #main-products-grid {
        gap: 1rem;
        padding: 0;
    }

    .product-card {
        border: 1px solid var(--soft-border);
        box-shadow: 0 8px 18px rgba(var(--dark-green-rgb), 0.06);
        border-radius: 14px;
    }

    .product-image {
        height: 200px;
        background: var(--soft-bg);
    }

    .product-body {
        padding: 1rem 1.1rem 1.1rem;
    }

    .product-title {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .product-actions {
        gap: 0.5rem;
    }

    .btn-add-cart {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
        text-transform: none;
    }

    .btn-quick-view {
        width: 40px;
        height: 40px;
    }

    .categories-sidebar {
        padding: 0.75rem;
        border-radius: 14px;
    }

    .category-list {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .category-list::-webkit-scrollbar {
        display: none;
    }

    .category-list li {
        flex: 0 0 auto;
    }

    .category-link {
        white-space: nowrap;
        padding: 0.6rem 0.85rem;
        border: 1px solid var(--soft-border);
        border-radius: 999px;
        background: var(--white);
    }

    .category-link.active,
    .category-link:hover {
        background: var(--primary-color);
        color: var(--white) !important;
        border-color: var(--primary-color);
    }

    .category-link i {
        margin-right: 0.35rem;
    }

    .flash-sale-banner {
        padding: 1rem;
        border-radius: 12px;
        text-align: center;
    }

    .countdown-timer,
    .timer-display {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .timer-display span {
        min-width: 52px;
    }

    .footer {
        padding: 2.5rem 0 2rem;
    }

    .footer .row > div {
        margin-bottom: 1.5rem;
    }

    .footer-brand {
        gap: 0.5rem;
    }

    .footer .brand-text {
        font-size: 1.1rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-form .form-control,
    .newsletter-form .btn {
        width: 100%;
        border-radius: 10px !important;
    }
}

/* ==========================================================
   Final Teal Mobile-First Refinements
   ========================================================== */
.newsletter-form .btn {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.newsletter-form .btn:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: var(--white) !important;
}

.product-image img,
.related-products .product-image img,
.products-list .product-image img {
    object-fit: contain !important;
    padding: 0.7rem;
    background: var(--white);
}

.search-autocomplete-item img {
    object-fit: contain !important;
    padding: 0.25rem !important;
    background: var(--white);
}

.premium-navbar,
.navbar-collapse,
.dropdown-menu,
.desktop-account-menu,
.mobile-account-menu,
.search-autocomplete,
.product-card,
.modern-card,
.filters-card,
.cart-items-card,
.order-summary-card,
.contact-form,
.auth-card,
.featured-post,
.blog-post-card,
.job-card,
.stats-card,
.mv-card,
.value-card,
.contact-info-card,
.featured-item,
.category-pill-card,
.promise-item {
    box-shadow: var(--shadow-card) !important;
}

.hero-image,
#main-product-image {
    box-shadow: 0 18px 44px rgba(var(--dark-green-rgb), 0.14) !important;
}

.product-card:hover,
.modern-card:hover,
.featured-post:hover,
.blog-post-card:hover,
.job-card:hover,
.stats-card:hover,
.mv-card:hover,
.value-card:hover,
.contact-info-card:hover {
    box-shadow: var(--shadow-card-hover) !important;
}

.page-header {
    border-bottom-color: var(--soft-border) !important;
}

#main-product-image,
#thumb-1,
#thumb-2,
#thumb-3 {
    object-fit: contain !important;
    background: var(--bg-light);
}

@media (max-width: 576px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero-carousel-section,
    .hero-slide {
        min-height: auto !important;
    }

    .hero-slide-content {
        padding-top: 1rem !important;
        padding-bottom: 2.75rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-image {
        max-height: 310px;
        object-fit: contain;
    }

    .mobile-search-section .input-group,
    .home-mobile-search .input-group {
        min-height: 48px;
    }

    .mobile-search-section .btn-primary,
    .home-mobile-search .btn,
    .btn-add-cart,
    .btn-primary,
    .btn-outline-primary,
    .form-submit,
    .auth-btn {
        min-height: 46px;
    }

    .category-list {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-image,
    .related-products .product-image {
        height: 190px !important;
    }

    .product-body {
        padding: 1rem !important;
    }

    .flash-sale-banner {
        display: block !important;
        margin-left: 0;
        margin-right: 0;
        padding: 0.9rem 1rem !important;
        border-radius: 12px !important;
    }

    #main-product-image {
        height: 320px !important;
    }

    .whatsapp-chat-widget {
        right: 14px !important;
        bottom: 18px !important;
        z-index: 1050;
    }

    .col-lg-3 {
        display: block !important;
    }

    .main-content .row > .col-lg-3,
    .products-grid-section .row > .col-lg-3 {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }

    .product-category,
    #main-products-grid .product-category,
    .related-products .product-category {
        display: inline-flex !important;
        align-items: center;
        width: fit-content;
        max-width: 100%;
        white-space: nowrap;
        font-size: 0.68rem !important;
        padding: 0.2rem 0.55rem !important;
        margin-bottom: 0.45rem !important;
    }

}

/* ==========================================================
   Final QA Fixes: Hover Contrast, Search, Featured Today
   ========================================================== */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
    background: var(--primary-color) !important;
    border-bottom-color: var(--primary-hover) !important;
    text-shadow: none !important;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link:focus::before,
.navbar-nav .nav-link.active::before {
    left: 0;
}

@media (min-width: 992px) {
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link.active {
        border-radius: 8px;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }
}

.btn-add-cart {
    color: var(--white) !important;
    isolation: isolate;
    z-index: 0;
}

.btn-add-cart::before {
    z-index: -1 !important;
}

.btn-add-cart:hover,
.btn-add-cart:focus,
.btn-add-cart:hover span,
.btn-add-cart:focus span,
.btn-add-cart:hover i,
.btn-add-cart:focus i {
    color: var(--white) !important;
}

.mobile-search-section .input-group,
.home-mobile-search .input-group,
.home-desktop-search {
    overflow: visible !important;
}

.search-autocomplete {
    z-index: 1100;
}

.featured-title {
    font-size: 1.25rem;
}

.featured-item {
    padding: 1.25rem !important;
    gap: 1rem;
    border-radius: 14px !important;
    align-items: center;
}

.featured-image {
    width: 104px !important;
    height: 104px !important;
    min-width: 104px;
    object-fit: contain !important;
    padding: 0.35rem;
    margin-right: 0 !important;
    background: var(--white);
    border: 1px solid var(--soft-border);
}

/* Enhanced Product Cards */
.product-card {
    background: var(--white);
    border: 1px solid var(--soft-border);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1), border-color 0.3s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

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

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-body {
    padding: 1.5rem;
}

.featured-content h6 {
    font-size: 1rem !important;
    line-height: 1.25;
}

@media (max-width: 430px) {
    .featured-item {
        padding: 1rem !important;
    }

    .featured-image {
        width: 96px !important;
        height: 96px !important;
        min-width: 96px;
    }
}

/* Custom print and packaging product pages */
#custom-order-section[hidden],
#custom-bundle-contents[hidden],
#custom-artwork-preview[hidden],
#custom-artwork-image[hidden],
#custom-artwork-error[hidden] {
    display: none !important;
}

.custom-order-section {
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.055), #fff 58%);
}

.custom-order-heading {
    margin-bottom: 1.25rem;
}

.custom-order-heading h2 {
    margin: 0.55rem 0 0.35rem;
    color: var(--dark-green);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 800;
}

.custom-order-heading p,
.custom-field small {
    color: var(--text-light);
}

.custom-order-kicker {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.custom-configurator-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.custom-field {
    min-width: 0;
}

.custom-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--dark-green);
    font-size: 0.9rem;
    font-weight: 700;
}

.custom-field small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.76rem;
    line-height: 1.45;
}

.custom-artwork-field,
.custom-notes-field {
    grid-column: 1 / -1;
}

.custom-artwork-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.6rem;
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    background: #fff;
    overflow-wrap: anywhere;
}

.custom-artwork-preview img {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 7px;
    object-fit: cover;
}

.custom-artwork-error {
    margin: 0.5rem 0 0;
    color: #b42318;
    font-size: 0.85rem;
}

.custom-bundle-contents {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.045);
}

.custom-bundle-contents strong {
    color: var(--dark-green);
}

.custom-bundle-contents ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0.65rem 0 0;
    padding-left: 1.2rem;
}

.custom-proofing-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1.25rem 0;
}

.custom-proofing-steps > div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.55rem;
    align-content: start;
    padding: 0.75rem;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
}

.custom-proofing-steps > div > span {
    grid-row: span 2;
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.custom-proofing-steps strong {
    color: var(--dark-green);
    font-size: 0.82rem;
}

.custom-proofing-steps small {
    color: var(--text-light);
    font-size: 0.72rem;
    line-height: 1.4;
}

.product-quote-meta {
    display: grid;
    gap: 0.35rem;
    margin: 0.75rem 0 1rem;
    color: var(--text-light);
    font-size: 0.76rem;
    line-height: 1.35;
}

.product-quote-meta span {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.product-quote-meta i {
    flex: 0 0 0.9rem;
    margin-top: 0.1rem;
    color: var(--primary-color);
}

.product-card-quote .product-actions > a {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-badge-occasion {
    top: auto;
    right: 0.75rem;
    bottom: 0.75rem;
    left: auto;
    background: var(--dark-green);
    text-transform: none;
}

@media (max-width: 767.98px) {
    .product-details {
        display: block !important;
        padding-top: 1.25rem !important;
    }

    .product-details .container {
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }

    .product-details .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.78rem;
    }

    #product-title {
        font-size: clamp(1.6rem, 7vw, 2.15rem);
        line-height: 1.12;
        font-weight: 800;
    }

    .product-image-container .main-image img {
        height: min(86vw, 410px) !important;
        object-fit: contain !important;
        background: #f7f8f6;
    }

    .thumbnail-images {
        justify-content: center;
    }

    .thumbnail-images img {
        width: 64px !important;
        height: 64px !important;
    }

    .custom-configurator-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.85rem;
    }

    .custom-artwork-field,
    .custom-notes-field {
        grid-column: auto;
    }

    .custom-proofing-steps {
        gap: 0.35rem;
    }

    .custom-proofing-steps > div {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 0.35rem;
        padding: 0.6rem 0.5rem;
    }

    .custom-proofing-steps > div > span {
        grid-row: auto;
    }
}

