/**
 * Hair Aura - Main Stylesheet
 * Premium Wigs & Hair Extensions E-Commerce
 * 
 * @author Hair Aura Team
 * @version 1.0.0
 */

/* ==================== VARIABLES ==================== */
:root {
    /* Brand Colors - Gold/Orange Accents for Debesties */
    --primary: #D4A574;
    --primary-dark: #B8935F;
    --primary-light: #E8C9A0;
    --secondary: #2C2C2C;
    --accent: #FF6B35;
    --accent-dark: #E55A2B;
    
    /* Neutral Colors - Light Theme Defaults */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black: #000000;

    /* Theme Tokens */
    --bg-body: var(--white);
    --bg-surface: var(--gray-50);
    --bg-card: var(--white);
    --text-main: var(--gray-800);
    --text-heading: var(--gray-900);
    --text-muted: var(--gray-500);
    --border-color: var(--gray-200);
    
    /* Semantic Colors */
    --success: #10B981;
    --info: #c9a96e;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacer: 1rem;
    --section-padding: 5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables Override - Premium Luxe Edition */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --white: #121212;
        --gray-50: #0A0A0A;
        --gray-100: #1A1A1A;
        --gray-200: #2A2A2A;
        --gray-300: #3A3A3A;
        --gray-400: #505050;
        --gray-500: #808080;
        --gray-600: #A0A0A0;
        --gray-700: #C0C0C0;
        --gray-800: #E0E0E0;
        --gray-900: #FFFFFF;
        --black: #000000;

        --bg-body: #050505;
        --bg-surface: #0C0C0C;
        --bg-card: #151515;
        --text-main: #E5E7EB;
        --text-heading: #FFFFFF;
        --text-muted: #9CA3AF;
        --border-color: rgba(255, 255, 255, 0.1);

        --shadow-sm: 0 4px 6px rgba(0,0,0,0.6);
        --shadow: 0 10px 30px rgba(0,0,0,0.7);
        --shadow-lg: 0 20px 50px rgba(0,0,0,0.8);
    }
}

[data-theme='dark'] {
    --white: #121212;
    --gray-50: #0A0A0A;
    --gray-100: #1A1A1A;
    --gray-200: #2A2A2A;
    --gray-300: #3A3A3A;
    --gray-400: #505050;
    --gray-500: #808080;
    --gray-600: #A0A0A0; /* Boosted for base */
    --gray-700: #C0C0C0;
    --gray-800: #E0E0E0;
    --gray-900: #FFFFFF;
    --black: #000000;

    --bg-body: #050505;
    --bg-surface: #0C0C0C;
    --bg-card: #151515;
    --text-main: #E5E7EB;
    --text-heading: #FFFFFF;
    --text-muted: #d0c5b5; /* Significantly brighter warm grey */
    --border-color: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 4px 6px rgba(0,0,0,0.6);
    --shadow: 0 10px 30px rgba(0,0,0,0.7);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.8);
}

[data-theme='dark'] .text-muted,
[data-theme='dark'] .section-subtitle,
[data-theme='dark'] .feature-box p,
[data-theme='dark'] .category-card-subtitle,
[data-theme='dark'] .hero-description,
[data-theme='dark'] .accordion-body.text-muted {
    color: #d0c5b5 !important;
    opacity: 1 !important;
}

[data-theme='dark'] .section-title {
    color: #e5ddd0 !important;
}

[data-theme='dark'] .category-card-new,
[data-theme='dark'] .feature-box {
    background: #111 !important;
    border: 1px solid #2e2820 !important;
}

[data-theme='dark'] .category-card-title {
    color: #e5ddd0 !important;
}

[data-theme='dark'] .category-card-media {
    background: #181513 !important;
}


/* Theme Toggle Button Styling */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surface);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: var(--gray-200);
    color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }

[data-theme='dark'] .theme-toggle-btn .sun-icon { display: block; }
[data-theme='dark'] .theme-toggle-btn .moon-icon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .theme-toggle-btn .sun-icon { display: block; }
    :root:not([data-theme='light']) .theme-toggle-btn .moon-icon { display: none; }
}

[data-theme='light'] .theme-toggle-btn .sun-icon { display: none; }
[data-theme='light'] .theme-toggle-btn .moon-icon { display: block; }

/* ==================== BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 0.75rem + 1vw, 1rem);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-heading);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: clamp(0.76rem, 0.712rem + 1vw, 0.95rem);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid #FFFFFF !important; /* Force literal white */
    color: #FFFFFF !important;
    background: transparent;
}

.btn-outline-light:hover {
    background: #FFFFFF !important;
    color: #222 !important;
}

/* ── Bootstrap Button Overrides (No Blue) ── */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #FFFFFF !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #FFFFFF !important;
}

.btn-outline-secondary {
    color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary) !important;
    color: #FFFFFF !important;
}

[data-theme='dark'] .btn-outline-secondary {
    color: var(--text-muted) !important;
    border-color: var(--border-color) !important;
}

[data-theme='dark'] .btn-outline-secondary:hover {
    background-color: var(--border-color) !important;
    color: #fff !important;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: clamp(0.88rem, 0.825rem + 1vw, 1.1rem);
}

.btn-gold {
    background: linear-gradient(135deg, #E2B04E 0%, #B8935F 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(184, 147, 95, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #B8935F 0%, #E2B04E 100%);
    color: var(--white);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(184, 147, 95, 0.5);
}

/* Typography Utility */
.font-serif {
    font-family: var(--font-heading);
}

/* Payment Banner Utility */
.payment-banner {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.footer-payment-banner {
    height: 35px;
    opacity: 0.9;
    filter: brightness(0.9);
}

.checkout-payment-banner {
    height: 60px;
    margin: 10px 0;
}

.cart-payment-banner {
    height: 45px;
    margin-top: 10px;
}

.product-buybox-banner {
    height: 45px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* ==================== HERO COMPONENT ==================== */
#mainHero { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.hero-component {
    position: relative;
    height: 85vh; /* Slightly tighter for better content flow */
    min-height: 500px;
    background: #000;
    overflow: hidden;
}

/* Ensure no gap before features */
.features-section { margin-top: 0 !important; }

/* Instagram Feed */
.instagram-section {
    position: relative;
    padding: 80px 0;
}

.reel-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    cursor: pointer;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.reel-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.reel-card blockquote {
    width: 100% !important;
    margin: 0 !important;
    max-width: none !important;
}

/* Ensure Instagram iframe spans full width */
.reel-card iframe {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
}

.hero-slide {
    position: relative;
    height: 100%;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Removed the negative top to avoid gaps, using 100vh for the section instead */
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0,0,0,0.5) 100%
    );
    z-index: 2;
}

@media (max-width: 991px) {
    .hero-gradient-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.95) 100%
        );
    }
}


.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-content-clean {
    max-width: 800px;
    color: var(--white);
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-explore {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.explore-line {
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.btn-explore:hover {
    color: var(--primary);
}

.btn-explore:hover .explore-line {
    width: 50px;
}

.hero-label {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: clamp(0.6rem, 0.562rem + 1vw, 0.75rem);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 50px;
}

.hero-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--primary);
}

.hero-display-title {
    font-size: clamp(4.4rem, 4.125rem + 1vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(0.96rem, 0.9rem + 1vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 90%;
}

@media (max-width: 991px) {
    .hero-component {
        height: auto !important;
        min-height: 100vh !important;
    }
    .hero-slide {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh;
    }
    .hero-bg-wrapper {
        position: relative !important;
        height: 55vh !important;
        width: 100% !important;
        flex-shrink: 0;
    }
    .hero-bg-img {
        height: 100% !important;
        object-position: center top !important;
    }
    .hero-inner {
        padding: 40px 0 80px 0 !important;
        height: auto !important;
        flex-grow: 1;
        background: #000;
        display: block !important;
        margin-top: -1px; /* Avoid seams */
    }
    .hero-content-clean {
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 15px;
    }
    .hero-label {
        padding-left: 0 !important;
        margin-bottom: 1rem !important;
    }
    .hero-label::before {
        display: none !important;
    }
    .hero-display-title {
        font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem) !important;
    }
    .hero-description {
        margin-bottom: 2rem !important;
        max-width: 100% !important;
    }
    .btn-explore {
        justify-content: center !important;
    }
    .hero-pagination {
        bottom: 2rem !important;
    }
    .hero-scroll-anchor {
        display: none !important;
    }
}

/* Hero Pagination Dots — centered above scroll anchor */
.hero-pagination {
    position: absolute !important;
    bottom: 7.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.4;
    width: 8px;
    height: 8px;
    margin: 0 !important;
    transition: var(--transition);
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* Scroll Anchor — restored */
.hero-scroll-anchor {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.hero-scroll-anchor:hover {
    opacity: 1;
    color: var(--primary);
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
    margin-bottom: 8px;
}

.scroll-wheel {
    width: 2px;
    height: 6px;
    background: currentColor;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    animation: scroll-wheel 1.5s ease-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.hero-scroll-anchor i {
    font-size: clamp(0.64rem, 0.6rem + 1vw, 0.8rem);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}


/* Hero Swiper Fix */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-wrapper {
    height: 100%;
}


/* Scroll Anchor */
.hero-scroll-anchor {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.hero-scroll-anchor:hover {
    opacity: 1;
    color: var(--primary);
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 2px;
    height: 6px;
    background: currentColor;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    animation: scroll-wheel 1.5s ease-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.hero-scroll-anchor i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-8px);}
    60% {transform: translateY(-4px);}
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-display-title {
        font-size: clamp(2.4rem, 2.25rem + 1vw, 3rem);
    }
    .hero-content-glass {
        padding: 2rem;
        margin: 0 1rem;
    }
}

/* ==================== ANNOUNCEMENT BANNER ==================== */
/* ==================== FLASH SALE BANNER ==================== */
.flash-sale-banner {
    background: #000;
    color: #fff;
    border-bottom: 2px solid #EF4444;
    position: relative;
    z-index: 1050;
    overflow: hidden;
}

.flash-sale-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.pulse-fade {
    animation: pulse-fade 2s infinite;
}

@keyframes pulse-fade {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.countdown-container {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}

.countdown-item {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.count-num {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 1.2ch;
    color: #EF4444; 
}

.count-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 500;
}

.count-sep {
    opacity: 0.5;
    font-weight: 700;
}

.flash-sale-btn {
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    transition: all 0.25s ease;
}

.flash-sale-btn:hover {
    background: #EF4444;
    border-color: #EF4444;
    color: #fff;
    transform: scale(1.05);
}

/* ==================== RELATED PRODUCTS ==================== */
.related-product-card {
    transition: all 0.2s ease-in-out;
    background: var(--bg-card);
}
.related-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary) !important;
}
.related-product-card img {
    transition: transform 0.5s ease;
}
.related-product-card:hover img {
    transform: scale(1.05);
}

.announcement-banner {
    background: var(--primary);
    color: var(--white);
    padding: 4px 0;
    overflow: hidden;
    position: relative;
    font-size: clamp(0.68rem, 0.637rem + 1vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.banner-content {
    display: flex;
    white-space: nowrap;
}

.banner-text {
    display: flex;
    gap: 3rem;
    animation: scroll-banner 30s linear infinite;
    padding-left: 100%;
}

.banner-text span {
    display: inline-flex;
    align-items: center;
}

@keyframes scroll-banner {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background: var(--secondary);
    color: var(--gray-300);
    padding: 0.25rem 0;
    font-size: clamp(0.7rem, 0.656rem + 1vw, 0.875rem);
}

.top-bar-text i {
    color: var(--primary);
    margin-right: 0.25rem;
}

.top-bar-text a {
    color: var(--gray-300);
}

.top-bar-text a:hover {
    color: var(--white);
}

/* WhatsApp specific green override */
.top-bar-text .fa-whatsapp,
.top-bar-text a[href*="wa.me"] {
    color: #25D366 !important;
}
.top-bar-text a[href*="wa.me"]:hover {
    color: #1ebe5d !important;
}

.top-bar .divider {
    margin: 0 1rem;
    opacity: 0.3;
}

/* ==================== HEADER ==================== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 2000; /* Increased to be above sticky-top elements (1020) */
}

.main-header .navbar {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1.312rem + 1vw, 1.75rem);
    font-weight: 700;
    color: var(--secondary);
}

.navbar-brand i {
    color: var(--primary);
    font-size: clamp(1.2rem, 1.125rem + 1vw, 1.5rem);
}

.navbar-brand .brand-logo-img {
    width: 120px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.navbar-nav .nav-link.dropdown-toggle::after {
    display: none !important;
}

.navbar-nav .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.625rem 1.25rem;
    color: var(--gray-700);
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--gray-100);
    color: var(--primary);
}

/* Hover Dropdown logic for Desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Shop Dropdown Premium Styling */
.shop-dropdown-menu {
    width: 750px;
    padding: 1.5rem;
    border-top: 3px solid var(--primary);
    margin-top: 0;
    animation: dropdownFade 0.3s ease forwards;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.shop-dropdown-all {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-800);
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.shop-dropdown-all:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.shop-dropdown-all-icon {
    width: 45px;
    height: 45px;
    background: var(--white);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.96rem, 0.9rem + 1vw, 1.2rem);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.shop-dropdown-all:hover .shop-dropdown-all-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.shop-dropdown-all strong {
    display: block;
    font-size: clamp(0.8rem, 0.75rem + 1vw, 1rem);
    font-family: var(--font-heading);
}

.shop-dropdown-all small {
    display: block;
    font-size: clamp(0.64rem, 0.6rem + 1vw, 0.8rem);
    opacity: 0.8;
}

.shop-dropdown-arrow {
    margin-left: auto;
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
    opacity: 0.5;
}

.shop-dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 1rem 0;
}

.shop-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.shop-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition);
    border: 1px solid transparent;
}

.shop-dropdown-item:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
    transform: translateX(5px);
}

.shop-dropdown-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 8px;
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
    transition: var(--transition);
}

.shop-dropdown-item:hover .shop-dropdown-icon {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.shop-dropdown-text strong {
    display: block;
    font-size: clamp(0.68rem, 0.637rem + 1vw, 0.85rem);
    font-weight: 600;
}

.shop-dropdown-text small {
    display: block;
    font-size: clamp(0.6rem, 0.562rem + 1vw, 0.75rem);
    color: var(--gray-500);
}

.shop-dropdown-item:hover .shop-dropdown-text small {
    color: var(--primary-dark);
}

@media (max-width: 991px) {
    .shop-dropdown-menu {
        width: 100%;
        padding: 1rem 0;
        box-shadow: none;
        border: none;
        animation: none;
    }
    .shop-dropdown-grid {
        grid-template-columns: 1fr;
    }
}

/* User Dropdown Premium Styling */
.user-dropdown-menu {
    min-width: 260px;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 0.5rem;
}

.user-dropdown-header {
    padding: 1.25rem;
    background: var(--gray-100);
}

.user-dropdown-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.user-dropdown-meta strong {
    display: block;
    font-size: clamp(0.76rem, 0.712rem + 1vw, 0.95rem);
    color: var(--secondary);
    line-height: 1.2;
}

.user-dropdown-meta small {
    display: block;
    font-size: clamp(0.64rem, 0.6rem + 1vw, 0.8rem);
    color: var(--gray-600);
}

.user-dropdown-menu .dropdown-item {
    padding: 0.85rem 1.25rem;
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
    font-weight: 500;
    transition: var(--transition);
}

.user-dropdown-menu .dropdown-item i {
    width: 20px;
    color: var(--gray-500);
    transition: var(--transition);
}

.user-dropdown-menu .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 1.5rem;
}

.user-dropdown-menu .dropdown-item:hover i {
    color: var(--primary);
}

.user-dropdown-menu .logout-item {
    color: var(--danger);
}

.user-dropdown-menu .logout-item:hover {
    background: #fff5f5;
    color: #af233a;
}

.user-dropdown-menu .logout-item i {
    color: var(--danger);
    opacity: 0.7;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

.header-search {
    position: relative;
}

.header-search .form-control {
    width: 150px;
    padding-right: 2.5rem;
    border-radius: 2rem;
    border: 1px solid var(--gray-300);
}

.header-search .btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
}

.header-actions > a,
.header-user > a {
    color: var(--gray-700);
    font-size: clamp(1rem, 0.938rem + 1vw, 1.25rem);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-actions > a:hover,
.header-user > a:hover {
    color: var(--primary);
}

.header-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 165, 116, 0.4);
}

.header-cart .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: var(--white);
    font-size: clamp(0.6rem, 0.562rem + 1vw, 0.75rem);
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== SHOP SIDEBAR ==================== */
.shop-sidebar {
    position: sticky;
    top: 100px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.sidebar-widget + .sidebar-widget {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--gray-200);
}

.sidebar-widget h4 {
    font-size: clamp(0.92rem, 0.862rem + 1vw, 1.15rem);
    margin-bottom: 0.8rem;
}

.shop-sidebar .search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-sidebar .search-form .form-control {
    border-radius: var(--radius-sm);
    height: 44px;
}

.shop-sidebar .search-form .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    background: var(--white);
}

.shop-sidebar .search-form .btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    background: var(--bg-surface);
}

[data-theme='dark'] .category-list a {
    background: #151515;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .category-list a {
        background: #151515;
    }
}

.category-list a:hover,
.category-list a.active {
    color: var(--white);
    background: var(--primary);
}

.category-list .count {
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
    opacity: 0.85;
}

.shop-filter-form .input-group .form-control,
.shop-filter-form .input-group .input-group-text {
    height: 42px;
}

.shop-filter-form .input-group .input-group-text {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.filter-options {
    display: grid;
    gap: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: clamp(0.784rem, 0.735rem + 1vw, 0.98rem);
    color: var(--gray-800);
}

.filter-checkbox input[type='radio'],
.filter-checkbox input[type='checkbox'] {
    margin-top: 0;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.results-info {
    color: var(--gray-600);
    font-size: clamp(0.76rem, 0.712rem + 1vw, 0.95rem);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.view-modes {
    display: flex;
    gap: 0.4rem;
}

.view-modes .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    background: var(--white);
}

.view-modes .btn.active,
.view-modes .btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ==================== HERO SECTION (LEGACY - DEPRECATED) ==================== */
/* Keeping only non-conflicting statuses that might be used elsewhere */
.status-cancelled { background-color: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.status-refunded { background-color: #F3F4F6; color: #374151; border: 1px solid #D1D5DB; }
.status-returned { background-color: #F3F4F6; color: #374151; border: 1px solid #D1D5DB; }

/* Swiper Customization (Applied to Hero Swiper) */
.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: var(--white);
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.hero-swiper .swiper-button-prev:after,
.hero-swiper .swiper-button-next:after {
    font-size: clamp(1rem, 0.938rem + 1vw, 1.25rem);
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    background: var(--gray-100);
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
}

.feature-box i {
    font-size: clamp(2rem, 1.875rem + 1vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-size: clamp(0.88rem, 0.825rem + 1vw, 1.1rem);
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: var(--gray-600);
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
    margin: 0;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 1.875rem + 1vw, 2.5rem);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-subtitle {
    color: var(--gray-600);
    font-size: clamp(0.88rem, 0.825rem + 1vw, 1.1rem);
}

/* ==================== CATEGORY CARDS REDESIGN ==================== */
.category-card-new {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 240px;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.category-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
    color: inherit;
}

.category-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 165, 116, 0.12);
    border-color: rgba(212, 165, 116, 0.15);
}

.category-card-inner {
    display: flex;
    flex-direction: row-reverse; /* Keeps text left, image right with media first in HTML */
    height: 100%;
    align-items: stretch;
}

.category-card-action {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: auto;
}

.shop-now-text {
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    transition: var(--transition);
    white-space: nowrap;
}

.category-card-new:hover .shop-now-text {
    transform: translateX(3px);
    color: var(--secondary);
}

.category-card-info {
    flex: 1.2;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.category-card-title {
    font-size: clamp(1.48rem, 1.388rem + 1vw, 1.85rem);
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.category-card-subtitle {
    color: var(--gray-600);
    font-size: clamp(0.76rem, 0.712rem + 1vw, 0.95rem);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    opacity: 0.9;
    MAX-WIDTH: 90%;
}

.arrow-circle {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.category-card-new:hover .arrow-circle {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.category-card-media {
    flex: 1;
    position: relative;
    background-color: var(--card-bg, #FDFBFA);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    margin: 0; /* Override figure defaults */
}

.category-card-media img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.08));
    transform-origin: bottom center;
}

.category-card-new:hover .category-card-media img {
    transform: scale(1.1) translateY(-5px);
}

@media (max-width: 991px) {
    .category-card-new {
        height: 220px;
    }
    .category-card-title {
        font-size: clamp(1.2rem, 1.125rem + 1vw, 1.5rem);
    }
}

@media (max-width: 576px) {
    .category-card-new {
        height: auto;
        border-radius: 20px;
    }
    .category-card-inner {
        flex-direction: column; /* Image top, text bottom */
    }
    .category-card-info {
        padding: 1rem;
        order: 2;
        align-items: center;
        text-align: center;
        flex: none;
    }
    .category-card-subtitle {
        display: none;
    }
    .category-card-media {
        height: 220px;
        order: 1;
        padding: 1.5rem 1.5rem 0.5rem;
        background: transparent;
        flex: none;
    }
    .category-card-media img {
        height: 100%;
    }
    .category-card-action {
        justify-content: center;
    }
    .arrow-circle {
        width: 36px;
        height: 36px;
    }
}

/* ==================== PREMIUM PRODUCT CARDS ==================== */
.product-card.premium-card {
    background: transparent;
    border: none;
    height: 100%;
    perspective: 1000px;
    margin-bottom: 2rem;
}

.premium-card .card-inner {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.premium-card:hover .card-inner {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 165, 116, 0.15);
    border-color: rgba(212, 165, 116, 0.2);
}

.product-image-wrapper {
    position: relative;
    padding-top: 110%; /* Specialized portrait-like aspect ratio */
    overflow: hidden;
    background: #fdfaf7;
    margin: 0;
}

.product-image-wrapper img.main-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-card:hover .main-image {
    transform: translate(-50%, -55%) scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 60%, rgba(212, 165, 116, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.discount-pill {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: clamp(0.6rem, 0.562rem + 1vw, 0.75rem);
    font-weight: 700;
    z-index: 10;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.pill-label {
    opacity: 0.8;
    font-weight: 500;
}

.quick-actions {
    position: absolute;
    right: 1rem;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-card:hover .quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.action-btn.wishlist-btn.active {
    color: #e74c3c;
}

.product-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.category-tag {
    font-size: clamp(0.56rem, 0.525rem + 1vw, 0.7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

.color-indicator {
    padding: 3px;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
}

.product-name {
    font-size: clamp(0.92rem, 0.862rem + 1vw, 1.15rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.product-name a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--primary);
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
    flex-wrap: wrap;
}

.price-regular, .price-sale {
    font-size: clamp(0.92rem, 0.862rem + 1vw, 1.15rem);
    font-weight: 800;
    color: var(--secondary);
}

.price-original {
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
    color: var(--gray-400);
    text-decoration: line-through;
}

.card-footer-actions {
    margin-top: auto;
}

.btn-premium-add {
    width: 100%;
    height: 50px;
    background: #0a0a0a;
    color: #fff;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: clamp(0.68rem, 0.637rem + 1vw, 0.85rem);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 10px;
}

.btn-premium-add::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.premium-card:hover .btn-premium-add {
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.premium-card:hover .btn-premium-add::before {
    left: 100%;
}

.btn-premium-add i {
    font-size: clamp(0.68rem, 0.637rem + 1vw, 0.85rem);
    transition: transform 0.3s ease;
}

.btn-premium-add:hover i {
    transform: rotate(90deg) scale(1.1);
}



/* ==================== TESTIMONIALS ==================== */
.testimonials-section {
    background: var(--bg-surface);
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.testimonial-rating {
    color: #FFB800;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-size: clamp(0.95rem, 0.9rem + 1vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-main);
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.2);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--text-heading);
    font-family: var(--font-body);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== UGC REVIEWS SECTION ==================== */
.ugc-reviews-section { background: var(--bg-surface); }

.ugc-eyebrow {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 20px;
}

.ugc-review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.ugc-review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.ugc-stars { color: #FFB800; font-size: .9rem; letter-spacing: 1px; }

.ugc-review-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.4;
}

.ugc-review-body {
    font-size: .88rem;
    color: var(--text-main);
    line-height: 1.65;
    flex: 1;
    opacity: .9;
}

.ugc-review-footer {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-top: 1px solid var(--border-color);
}

.ugc-avatar {
    width: 38px; height: 38px;
    min-width: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

.ugc-author {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ugc-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ugc-product-link {
    font-size: .72rem;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.ugc-product-link:hover { text-decoration: underline; }

.ugc-badge {
    font-size: .68rem;
    font-weight: 600;
    color: #16a34a;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Dark mode */
[data-theme='dark'] .ugc-review-card { background: var(--bg-card); border-color: var(--border-color); }
[data-theme='dark'] .ugc-review-title { color: var(--text-heading); }
[data-theme='dark'] .ugc-review-body  { color: var(--text-main); }
[data-theme='dark'] .ugc-badge { color: #4ade80; }

/* ==================== FOOTER ==================== */
.main-footer {
    background: var(--secondary);
    color: var(--gray-300);
}

.footer-top {
    padding: 4rem 0 2rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1.312rem + 1vw, 1.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-logo i {
    color: var(--primary);
}

.footer-logo .brand-logo-img {
    width: 150px;
    height: 75px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.footer-tagline {
    color: var(--primary);
    font-style: italic;
    margin-bottom: 1rem;
}

.footer-about {
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-title {
    color: var(--white);
    font-size: clamp(0.88rem, 0.825rem + 1vw, 1.1rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter .input-group {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.footer-newsletter .form-control {
    border: none;
    padding: 0.75rem 1rem;
}

.footer-newsletter .btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
}

.footer-contact {
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 0.5rem;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.copyright {
    margin: 0;
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--gray-400);
    font-size: clamp(0.68rem, 0.637rem + 1vw, 0.85rem);
}

.payment-methods {
    color: var(--gray-500);
    font-size: clamp(1.2rem, 1.125rem + 1vw, 1.5rem);
}

.payment-methods i {
    margin-left: 0.5rem;
}

/* Payment Banners Visibility */
.payment-banner {
    display: block;
    height: auto;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.payment-banner:hover {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

/* Footer Banner - Larger and prominent */
.footer-payment-banner {
    width: 220px !important;
    max-height: 80px;
    object-fit: contain;
}

/* Product Detail Page Banner - Fits the buy box nicely but larger */
.product-buybox-banner {
    width: 100% !important;
    max-width: 280px;
    margin: 1.5rem 0;
    border-radius: 8px;
}

/* Cart Page Banner - Medium sized and centered */
.cart-payment-banner {
    width: 200px !important;
    margin-top: 1rem;
}

/* Checkout Page Banner - Streamlined sizes */
.checkout-payment-banner {
    width: auto !important;
    max-width: 130px;
    height: 38px !important;
    margin: 0 !important;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .footer-payment-banner {
        width: 180px !important;
        margin: 0 auto;
    }
    .checkout-payment-banner {
        width: 200px !important;
    }
}

/* Custom Payment Banners Toggle */
.payment-black { display: inline-block !important; }
.payment-white { display: none !important; }

@media (prefers-color-scheme: dark) {
    .payment-black { display: none !important; }
    .payment-white { display: inline-block !important; }
}

.momo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.8rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    margin-left: 0.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: clamp(0.6rem, 0.562rem + 1vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1200;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== LIVE SEARCH ==================== */
.search-form {
    position: relative;
}

.live-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1600;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.live-search-dropdown.show {
    display: block;
}

.live-search-section-title {
    padding: 0.5rem 0.75rem;
    font-size: clamp(0.6rem, 0.562rem + 1vw, 0.75rem);
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-search-item {
    display: block;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.live-search-item:last-child {
    border-bottom: 0;
}

.live-search-item:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

/* Payment Option Grid */
.payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-left: 0 !important;
}

.payment-option:hover {
    border-color: var(--primary);
    background-color: #fffaf5;
}

.payment-option input:checked + label {
    font-weight: 500;
}

.payment-option .form-check-input {
    float: left;
    margin-top: 0.3em;
}

.payment-option label {
    padding-left: 10px;
    cursor: pointer;
}

.live-search-item-meta {
    font-size: clamp(0.64rem, 0.6rem + 1vw, 0.8rem);
    color: var(--gray-600);
}

.live-search-empty {
    padding: 0.75rem;
    color: var(--gray-600);
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
}

/* ==================== BLOG ==================== */
.blog-card-image,
.blog-related-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-detail-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.blog-category-list li + li {
    margin-top: 0.45rem;
}

.blog-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    background: var(--gray-100);
}

.blog-category-list a.active,
.blog-category-list a:hover {
    color: var(--white);
    background: var(--primary);
}

/* ==================== BLOG SHARE BUTTONS ==================== */
.blog-reading-time {
    color: var(--primary);
    font-weight: 600;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    text-decoration: none;
    transition: opacity .2s, transform .1s;
}
.blog-share-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}
.blog-share-wa {
    background: #25D366;
    color: #fff;
    border: none;
}
.blog-share-wa:hover { background: #1da851; color: #fff; }
.blog-share-fb {
    background: #1877F2;
    color: #fff;
    border: none;
}
.blog-share-fb:hover { background: #0b5fcc; color: #fff; }

[data-theme='dark'] .blog-share-label { color: var(--gray-400); }

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 1.875rem + 1vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.breadcrumb {
    justify-content: center;
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--gray-600);
}

.breadcrumb-item.active {
    color: var(--primary);
}

/* ==================== FLASH MESSAGES ==================== */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: clamp(2rem, 1.875rem + 1vw, 2.5rem);
    }
    
    .section-title {
        font-size: clamp(1.6rem, 1.5rem + 1vw, 2rem);
    }
    
    .header-search .form-control {
        width: 130px;
    }

    .header-actions {
        gap: 0.6rem;
    }

    .shop-sidebar {
        position: static;
        margin-bottom: 1rem;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-right {
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .hero-component {
        height: 70vh; /* Tighter hero for mobile */
        min-height: 450px;
    }
    
    .hero-display-title {
        font-size: clamp(2.2rem, 2.1rem + 1vw, 2.8rem) !important;
    }
    
    .hero-text {
        font-size: clamp(0.8rem, 0.75rem + 1vw, 1rem);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: clamp(1.4rem, 1.312rem + 1vw, 1.75rem);
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .payment-methods {
        text-align: center;
    }

    .toolbar-right {
        flex-direction: column;
        align-items: stretch;
    }

    .header-avatar {
        width: 26px;
        height: 26px;
    }
}

/* ==================== PREMIUM DARK MODE ENHANCEMENTS ==================== */
@media (prefers-color-scheme: dark) {
    .main-header {
        background: rgba(15, 15, 15, 0.9) !important;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .top-bar {
        background: #000000 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .announcement-banner {
        background: var(--primary-dark) !important;
        color: #ffffff !important;
    }

    /* Background Overrides */
    .bg-light, 
    .bg-white,
    .bg-adaptive,
    .cart-section, 
    .page-header, 
    .products-section, 
    .home-faq-section,
    .testimonials-section,
    .payment-trust-white {
        background: var(--bg-body) !important;
    }

    .testimonial-card,
    .category-card-new,
    .premium-card .card-inner,
    .cart-item-modern,
    .card,
    .reel-card,
    .accordion-item,
    .user-dropdown-menu,
    .shop-dropdown-menu {
        background: var(--bg-card) !important;
        backdrop-filter: blur(15px);
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow) !important;
    }

    .testimonial-card {
        padding: 2.5rem !important;
    }

    .instagram-media {
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
    }

    .accordion-button {
        background: transparent !important;
        color: var(--text-main) !important;
    }

    .accordion-button:not(.collapsed) {
        color: var(--primary) !important;
    }

    .form-control,
    .form-select {
        background: var(--gray-100) !important;
        border-color: var(--gray-300) !important;
        color: var(--text-main) !important;
    }

    .form-control:focus {
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
    }

    /* Product & Category Card Fine-tuning */
    .product-card-new, .category-card-new {
        background: var(--bg-card) !important;
    }

    .product-card-info {
        background: transparent !important;
    }

    /* Typography fixes */
    .section-subtitle, .text-muted {
        color: var(--text-muted) !important;
    }

    .testimonial-text {
        color: var(--text-main);
    }

    /* Shop toolbar & Sidebar */
    .shop-toolbar, .shop-sidebar {
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
    }

    /* Footer Cohesion */
    .main-footer, .site-footer {
        background: #050505 !important;
        border-top: 1px solid var(--border-color);
    }
}

/* Duplicating for [data-theme='dark'] to ensure toggle works perfectly */
[data-theme='dark'] .main-header {
    background: rgba(15, 15, 15, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme='dark'] .top-bar {
    background: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme='dark'] .announcement-banner {
    background: var(--primary-dark) !important;
    color: #ffffff !important;
}

[data-theme='dark'] .bg-light, 
[data-theme='dark'] .bg-white, 
[data-theme='dark'] .bg-adaptive,
[data-theme='dark'] .cart-section, 
[data-theme='dark'] .page-header, 
[data-theme='dark'] .products-section, 
[data-theme='dark'] .home-faq-section,
[data-theme='dark'] .testimonials-section,
[data-theme='dark'] .payment-trust-white {
    background: var(--bg-body) !important;
}

[data-theme='dark'] .testimonial-card,
[data-theme='dark'] .category-card-new,
[data-theme='dark'] .premium-card .card-inner,
[data-theme='dark'] .cart-item-modern,
[data-theme='dark'] .card,
[data-theme='dark'] .reel-card,
[data-theme='dark'] .accordion-item,
[data-theme='dark'] .user-dropdown-menu,
[data-theme='dark'] .shop-dropdown-menu {
background: var(--bg-card) !important;
backdrop-filter: blur(15px);
border: 1px solid var(--border-color) !important;
box-shadow: var(--shadow) !important;
}

[data-theme='dark'] .testimonial-card {
padding: 2.5rem !important;
}
[data-theme='dark'] .instagram-media {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme='dark'] .accordion-button {
    background: transparent !important;
    color: var(--text-main) !important;
}

[data-theme='dark'] .accordion-button:not(.collapsed) {
    color: var(--primary) !important;
}

[data-theme='dark'] .form-control,
[data-theme='dark'] .form-select,
[data-theme='dark'] .form-check-input {
    background-color: #1a1a1a !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

[data-theme='dark'] .form-select {
    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='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

[data-theme='dark'] .main-footer, [data-theme='dark'] .site-footer {
    background: #050505 !important;
    border-top: 1px solid var(--border-color);
}

/* Ensure payment logos toggle correctly with [data-theme='dark'] */
[data-theme='dark'] .payment-black { display: none !important; }
[data-theme='dark'] .payment-white { display: inline-block !important; }

/* Custom Product Rating Bars */
.rating-progress-wrapper {
    height: 20px !important;
    background: #f0f2f2 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.rating-bar-fill {
    background: #c9a96e !important;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.15) !important;
}

.rating-count {
    color: #c9a96e !important;
    font-weight: 500;
}

[data-theme='dark'] .rating-progress-wrapper {
    background: #1a1814 !important;
    border-color: #3a2e22 !important;
}

[data-theme='dark'] .rating-bar-fill {
    background: var(--primary) !important;
}

[data-theme='dark'] .rating-count {
    color: var(--primary) !important;
}

/* ==================== AMAZON STYLE PRODUCT PAGE ==================== */
.amazon-product-layout {
    margin-top: 1.5rem;
}

.amazon-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: clamp(0.656rem, 0.615rem + 1vw, 0.82rem);
    margin-bottom: 1.5rem;
}

.amazon-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: clamp(0.56rem, 0.525rem + 1vw, 0.7rem);
    color: var(--gray-500);
}

/* Left Image Column */
.product-image-grid {
    display: flex;
    gap: 15px;
}

.vertical-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50px;
    flex-shrink: 0;
}

.vertical-thumb {
    width: 48px;
    height: 48px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.vertical-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vertical-thumb.active {
    border-color: #e77600;
    box-shadow: 0 0 3px 2px rgba(228, 121, 17, 0.5);
}

.vertical-thumb:hover {
    border-color: #e77600;
}

.main-image-display {
    flex: 1;
    position: relative;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.main-image-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Central Info Column */
.amazon-info-col h1 {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 1.125rem + 1vw, 1.5rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.amazon-brand-link {
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
    color: var(--primary);
}

.amazon-brand-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.amazon-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
}

.amazon-rating .stars {
    color: #ffa41c;
}

.amazon-rating .rating-text {
    color: var(--primary);
}

.amazon-rating .rating-text:hover {
    color: #c45500;
    text-decoration: underline;
}

.amazon-divider {
    height: 1px;
    background: #e7e7e7;
    margin: 1rem 0;
}

/* ==================== PRODUCT VIDEO EMBED ==================== */
.product-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding-bottom: min(56.25%, 450px); /* 16:9 capped at 450px tall */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    background: #000;
}
.product-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
    border-radius: 12px;
}
.product-video-section h4 { font-size: 1.1rem; }

@media (max-width: 575px) {
    .product-video-wrapper { border-radius: 8px; padding-bottom: 56.25%; }
}

[data-theme='dark'] .product-video-wrapper { box-shadow: 0 4px 24px rgba(0,0,0,.4); }

.amazon-price-row {
    margin-bottom: 1rem;
}

.amazon-price-row .price-symbol {
    font-size: clamp(0.6rem, 0.562rem + 1vw, 0.75rem);
    vertical-align: super;
}

.amazon-price-row .price-large {
    font-size: clamp(1.4rem, 1.312rem + 1vw, 1.75rem);
    font-weight: 500;
}

.amazon-price-row .price-decimal {
    font-size: clamp(0.6rem, 0.562rem + 1vw, 0.75rem);
    vertical-align: super;
}

.amazon-price-row .old-price {
    color: var(--gray-600);
    text-decoration: line-through;
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
    margin-left: 5px;
}

.amazon-variant-section {
    margin-bottom: 1.5rem;
}

.amazon-variant-section label {
    display: block;
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.amazon-variant-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amazon-swatch {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
    cursor: pointer;
    background: #fff;
    transition: var(--transition);
    min-width: 120px;
    flex: 0 0 calc(33.33% - 12px);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.amazon-swatch .swatch-label {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
    font-size: clamp(0.76rem, 0.712rem + 1vw, 0.95rem);
}

.amazon-swatch .swatch-price {
    display: block;
    font-size: clamp(0.656rem, 0.615rem + 1vw, 0.82rem);
    color: #565959;
}

.amazon-swatch.active {
    border-color: #e77600;
    background-color: #fffaf5;
    box-shadow: 0 0 0 1px #e77600;
    position: relative;
}

.amazon-swatch.active .swatch-price {
    color: #b12704;
}

.amazon-swatch:hover:not(.active) {
    background-color: #f7fafa;
    border-color: #adb1b8;
}

.amazon-bullet-points {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.amazon-bullet-points li {
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Buy Box Column */
.amazon-buy-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    background: #fff;
}

.amazon-buy-box .price-large {
    display: inline-block;
    font-size: clamp(1.4rem, 1.312rem + 1vw, 1.75rem);
    margin-bottom: 10px;
}

.amazon-delivery-info {
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
    margin-bottom: 15px;
    line-height: 1.3;
}

.amazon-delivery-info strong {
    color: #333;
}

.amazon-stock-status {
    font-size: clamp(0.88rem, 0.825rem + 1vw, 1.1rem);
    font-weight: 500;
    margin-bottom: 15px;
}

.amazon-stock-status.in-stock {
    color: #007600;
}

.amazon-stock-status.out-of-stock {
    color: #b12704;
}

.amazon-qty-select {
    width: 100%;
    margin-bottom: 15px;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(15,17,17,.15);
    background: #f0f2f2;
    font-size: clamp(0.656rem, 0.615rem + 1vw, 0.82rem);
}

.btn-amazon-cart {
    width: 100%;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 20px;
    color: #0f1111;
    padding: 8px;
    margin-bottom: 10px;
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
    font-weight: 500;
}

.btn-amazon-cart:hover {
    background: #f7ca00;
    border-color: #f2c200;
}

.btn-amazon-buy {
    width: 100%;
    background: #ffa41c;
    border: 1px solid #ff8f00;
    border-radius: 20px;
    color: #0f1111;
    padding: 8px;
    margin-bottom: 15px;
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
    font-weight: 500;
}

.btn-amazon-buy:hover {
    background: #fa8900;
    border-color: #f57e00;
}

.amazon-secure-transaction {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.656rem, 0.615rem + 1vw, 0.82rem);
    color: var(--primary);
    cursor: pointer;
    margin-bottom: 15px;
}

.amazon-meta-table {
    width: 100%;
    font-size: clamp(0.6rem, 0.562rem + 1vw, 0.75rem);
    color: #565959;
}

.amazon-meta-table td {
    padding-bottom: 4px;
    vertical-align: top;
}

.amazon-meta-table td:first-child {
    width: 35%;
    color: #565959;
}

.amazon-meta-table td:last-child {
    color: #0f1111;
}

@media (max-width: 991px) {
    .amazon-buy-box {
        position: static;
        margin-top: 2rem;
    }
}

/* Buy box at lg (1024px range): tighter padding, compact meta table */
@media (min-width: 992px) and (max-width: 1199px) {
    .amazon-buy-box {
        padding: 0.875rem;
        overflow: hidden;
    }
    .amazon-buy-box .amazon-meta-table td {
        font-size: 0.78rem;
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }
}

/* Modern Cart Styles */
.cart-section {
    background: #fcfcfc;
}

.cart-item-modern {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.cart-item-modern:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.cart-item-body {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cart-item-left {
    width: 110px;
    flex-shrink: 0;
}

.cart-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
}

.cart-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-qty-pill {
    display: flex;
    align-items: center;
    border: 1.5px solid #eee;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    height: 38px;
    margin-top: 10px;
}

.qty-btn {
    border: none;
    background: transparent;
    color: #333;
    width: 34px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.qty-btn:hover:not(:disabled) {
    background: var(--gray-100);
    color: var(--primary);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-value {
    width: 25px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-center {
    flex: 1;
}

.cart-item-title {
    font-size: 1.05rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.cart-item-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.cart-item-title a:hover {
    color: var(--primary);
}

.cart-item-meta p {
    margin-bottom: 2px !important;
}

.cart-item-price {
    font-size: 1.15rem;
    color: var(--primary);
}

.stock-badge.in-stock {
    color: #28a745;
    font-weight: 600;
}

.cart-item-right {
    text-align: right;
    width: 160px;
}

.item-total-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1a1a;
}

.remove-item-btn {
    color: #dc3545;
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 10px;
    padding: 0;
    transition: opacity 0.2s;
}

.remove-item-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.cart-summary-modern {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    position: sticky;
    top: 100px;
}

/* Checkout Item Enhancements */
.checkout-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.checkout-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #f9f9f9;
    padding: 2px;
}

.checkout-qty-selector button {
    border: none;
    background: transparent;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-qty-selector span {
    width: 20px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-item-body {
        display: grid;
        grid-template-columns: 90px 1fr;
        grid-template-areas: 
            "img info"
            "foot foot";
        gap: 1rem;
        align-items: start;
    }
    
    .cart-item-left {
        grid-area: img;
        width: 100%;
        display: block !important;
    }
    
    .cart-image-container {
        width: 90px;
        height: 90px;
        border-radius: 10px;
    }
    
    .cart-qty-pill {
        display: none !important; /* Hide the big pill on mobile in this area */
    }

    .cart-item-center {
        grid-area: info;
    }

    .cart-item-right {
        grid-area: foot;
        width: 100%;
        text-align: left;
        border-top: 1px dashed #eee;
        padding-top: 10px;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
    }

    /* Mobile specific quantity selector inside info */
    .mobile-qty-row {
        display: flex !important;
        align-items: center;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .remove-item-btn {
        margin-top: 0;
    }
}
/* ==================== CHECKOUT REDESIGN ==================== */
.checkout-summary-item {
    transition: var(--transition);
}

.item-img-wrapper .item-img {
    background-color: var(--gray-100);
}

.item-quantity-badge {
    padding: 0.4em 0.6em;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 5;
}

.item-name {
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.summary-totals {
    background-color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.summary-totals .text-muted {
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
}

.checkout-delivery-note {
    font-size: 0.75rem;
    color: #7c6f5e;
    background: #fff8ec;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
    line-height: 1.4;
}
[data-theme='dark'] .checkout-delivery-note {
    background: #2a2210;
    color: #d4b87a;
    border-left-color: #c9a96e;
}

.checkout-section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1rem, 0.938rem + 1vw, 1.25rem);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.checkout-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

@media (max-width: 991.98px) {
    .summary-totals {
        margin-top: 1.5rem;
    }
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-400);
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    transform: translateX(2px);
    display: inline-block;
}

/* ==================== REVIEW SIGN IN BUTTON ==================== */
.review-signin-btn {
    display: inline-block;
    width: 100%;
    padding: 0.6rem 1rem;
    border: 2px solid #c9a96e !important;
    color: #c9a96e !important;
    background: transparent !important;
    font-weight: 600 !important;
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.review-signin-btn:hover {
    background: #c9a96e !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.2);
}

[data-theme='dark'] .review-signin-btn {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

[data-theme='dark'] .review-signin-btn:hover {
    background: var(--primary) !important;
    color: #000000 !important;
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* ==================== INSTAGRAM FEED ==================== */
.instagram-section {
    background: var(--white);
}

.section-header .section-title {
    font-size: clamp(1.8rem, 1.688rem + 1vw, 2.25rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-header .section-subtitle {
    font-size: clamp(0.88rem, 0.825rem + 1vw, 1.1rem);
    color: var(--primary);
    font-weight: 600;
}

.reel-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    background: #000;
}

.reel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.reel-iframe {
    width: 100%;
    height: 100%;
}

.instagram-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 165, 116, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: clamp(1.2rem, 1.125rem + 1vw, 1.5rem);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .reel-card {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==================== TOAST NOTIFICATIONS ==================== */
#toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    width: 100%;
    max-width: 400px;
}

.toast-item {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 1.15rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.toast-item.show {
    transform: translateX(0);
}

.toast-item.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-success .toast-icon { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.toast-danger .toast-icon { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.toast-warning .toast-icon { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.toast-info .toast-icon { background: rgba(201, 169, 110, 0.12); color: #c9a96e; }

.toast-content {
    flex-grow: 1;
    font-size: 0.98rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
}

.toast-close:hover {
    color: #333;
    transform: scale(1.1);
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
}

.toast-progress-inner {
    height: 100%;
    width: 0;
    animation: toastProgress linear forwards;
}

.toast-success .toast-progress-inner { background: #28a745; }
.toast-danger .toast-progress-inner { background: #dc3545; }
.toast-warning .toast-progress-inner { background: #ffc107; }
.toast-info .toast-progress-inner { background: #c9a96e; }

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 576px) {
    #toast-container {
        top: auto;
        bottom: 30px;
        right: 15px;
        left: 15px;
        max-width: calc(100% - 30px);
    }
    .toast-item {
        transform: translateY(120%);
    }
    .toast-item.show {
        transform: translateY(0);
    }
    .toast-item.hide {
        transform: translateY(120%);
    }
}

/* ==================== MOBILE MENU SIDEBAR ==================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-side {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: var(--white);
    z-index: 2600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
}

.mobile-menu-side.active {
    left: 0;
}

.mobile-menu-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-logo img {
    height: 45px;
    width: auto;
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.mobile-nav-link, 
.mobile-nav-toggle {
    display: block;
    padding: 0.85rem 0;
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active,
.mobile-nav-toggle:hover {
    color: var(--primary);
}

.mobile-nav-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mobile-nav-group.open .mobile-nav-toggle i {
    transform: rotate(180deg);
}

.mobile-sub-nav {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
    padding-left: 1rem;
    border-left: 2px solid var(--gray-100);
}

.mobile-nav-group.open .mobile-sub-nav {
    max-height: 500px;
    margin-bottom: 1rem;
}

.mobile-sub-nav li a {
    display: block;
    padding: 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Custom Hamburger Icon */
.navbar-toggler-custom {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar-toggler-custom .bar {
    width: 100%;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler.active .top-bar {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler.active .mid-bar {
    opacity: 0;
}

.navbar-toggler.active .bot-bar {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
    .navbar-brand .brand-logo-img {
        width: 85px;
        height: 43px;
    }
}

@media (max-width: 480px) {
    .navbar-brand .brand-logo-img {
        width: 68px;
        height: 34px;
    }
}

/* Blog Card Mobile Button Fix */
@media (max-width: 576px) {
    .blog-card .btn {
        padding: 0.5rem 0.4rem !important;
        font-size: 0.72rem !important;
        white-space: nowrap;
        gap: 0.2rem !important;
        letter-spacing: -0.2px;
    }
    .blog-card .btn i {
        font-size: 0.65rem;
        margin-left: 0.15rem !important;
    }
    .blog-card .card-title {
        font-size: 0.95rem !important;
        line-height: 1.3;
    }
}

/* ============================================================
   DARK THEME — COMPREHENSIVE AUDIT FIXES (v2)
   Covers all 19 issues from the dark theme audit report.
   ============================================================ */

/* ── 1. Product Page Buy Box (Critical) ── */
[data-theme='dark'] .amazon-buy-box {
    background: #1a1814 !important;
    border-color: #2e2820 !important;
    color: #f5f0e8 !important;
}
[data-theme='dark'] .amazon-divider { background: #2e2820 !important; }
[data-theme='dark'] .amazon-delivery-info { color: #c8bfb0 !important; }
[data-theme='dark'] .amazon-delivery-info strong { color: #e5e0d8 !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .amazon-buy-box {
        background: #1a1814 !important; border-color: #2e2820 !important; color: #f5f0e8 !important;
    }
    :root:not([data-theme='light']) .amazon-divider { background: #2e2820 !important; }
    :root:not([data-theme='light']) .amazon-delivery-info { color: #c8bfb0 !important; }
}

/* ── 2. Product Page — Specs / Meta Table ── */
[data-theme='dark'] .amazon-meta-table td { color: #c8bfb0 !important; border-color: #2e2820 !important; }
[data-theme='dark'] .amazon-meta-table td:first-child { color: #9a8a7a !important; }
[data-theme='dark'] .amazon-meta-table td:last-child { color: #e5ddd0 !important; }
[data-theme='dark'] .main-image-display { background: #111 !important; border-color: #2e2820 !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .amazon-meta-table td { color: #c8bfb0 !important; border-color: #2e2820 !important; }
    :root:not([data-theme='light']) .main-image-display { background: #111 !important; border-color: #2e2820 !important; }
}

/* ── 3. Product Page — Variant Swatches ── */
[data-theme='dark'] .amazon-swatch { background: #1c1a17 !important; border-color: #3a2e22 !important; color: #e5ddd0 !important; }
[data-theme='dark'] .amazon-swatch .swatch-label { color: #f0ebe0 !important; }
[data-theme='dark'] .amazon-swatch .swatch-price { color: #9a8a7a !important; }
[data-theme='dark'] .amazon-swatch.active { border-color: #c9a96e !important; background: #2a1f12 !important; box-shadow: 0 0 0 1px #c9a96e !important; }
[data-theme='dark'] .amazon-swatch:hover:not(.active) { background: #221e18 !important; border-color: #6a5030 !important; }
[data-theme='dark'] .amazon-qty-select { background: #1a1814 !important; border-color: #3a2e22 !important; color: #e5ddd0 !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .amazon-swatch { background: #1c1a17 !important; border-color: #3a2e22 !important; color: #e5ddd0 !important; }
    :root:not([data-theme='light']) .amazon-swatch.active { border-color: #c9a96e !important; background: #2a1f12 !important; }
    :root:not([data-theme='light']) .amazon-qty-select { background: #1a1814 !important; border-color: #3a2e22 !important; color: #e5ddd0 !important; }
}

/* ── 4. Cart — Items ── */
[data-theme='dark'] .cart-item-modern { background: #1a1814 !important; border-color: #2e2820 !important; }
[data-theme='dark'] .cart-item-title a { color: #ffffff !important; }
[data-theme='dark'] .item-total-price { color: #ffffff !important; font-weight: 800 !important; }
[data-theme='dark'] .cart-qty-pill { background: #252015 !important; border-color: #3a2e22 !important; }
[data-theme='dark'] .qty-btn { color: #c8bfb0 !important; }
[data-theme='dark'] .qty-btn:hover:not(:disabled) { background: #2a1f12 !important; color: var(--primary) !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .cart-item-modern { background: #1a1814 !important; border-color: #2e2820 !important; }
    :root:not([data-theme='light']) .cart-item-title a { color: #ffffff !important; }
    :root:not([data-theme='light']) .item-total-price { color: #ffffff !important; font-weight: 800 !important; }
    :root:not([data-theme='light']) .cart-qty-pill { background: #252015 !important; border-color: #3a2e22 !important; }
}

/* ── 5. Cart — Summary Box ── */
[data-theme='dark'] .cart-summary-modern { background: #1a1814 !important; border-color: #2e2820 !important; }
[data-theme='dark'] .cart-summary-modern .fs-4.fw-bold { color: #ffffff !important; font-weight: 800 !important; font-size: 1.3rem !important; }
[data-theme='dark'] .cart-summary-modern .summary-label { color: #c8bfb0 !important; }
[data-theme='dark'] .cart-section { background: #080806 !important; }

/* Cart Page Specific Polish */
.cart-page-header { padding-bottom: 20px !important; }

.coupon-input {
    background: #1a1714 !important;
    border: 1px solid #3a2e22 !important;
    color: #f0ece4 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
}
.coupon-input::placeholder { color: #6a5a48 !important; }

.secure-transaction-text { color: #9a8872 !important; }
.secure-transaction-text svg, .secure-transaction-text i { color: #c9a96e !important; }

.cart-item-price { color: #c9a96e !important; }

.cart-item-meta { color: #9a8872 !important; font-size: 0.85rem !important; }

.continue-shopping-btn {
    border: 1.5px solid #c9a96e !important;
    color: #c9a96e !important;
    background: transparent !important;
    border-radius: 50px !important;
}
.continue-shopping-btn:hover {
    background: rgba(201, 169, 110, 0.1) !important;
    color: #c9a96e !important;
}

.item-total-price { color: #c9a96e !important; font-weight: 600 !important; }

[data-theme='dark'] .cart-item-modern .text-heading { color: #f0ebe0 !important; }
[data-theme='dark'] .cart-item-modern .text-muted { color: #9a8872 !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .cart-summary-modern { background: #1a1814 !important; border-color: #2e2820 !important; }
    :root:not([data-theme='light']) .cart-summary-modern .fs-4.fw-bold { color: #ffffff !important; font-weight: 800 !important; }
}

/* ── 6. Cart — "Continue Shopping" Button (gold outline style) ── */
[data-theme='dark'] .cart-actions .btn-outline-primary { border-color: #c9a96e !important; color: #c9a96e !important; background: transparent !important; }
[data-theme='dark'] .cart-actions .btn-outline-primary:hover { background: #c9a96e !important; color: #000 !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .cart-actions .btn-outline-primary { border-color: #c9a96e !important; color: #c9a96e !important; background: transparent !important; }
    :root:not([data-theme='light']) .cart-actions .btn-outline-primary:hover { background: #c9a96e !important; color: #000 !important; }
}

/* ── 7. Feature Strip — Sub-descriptions ── */
[data-theme='dark'] .feature-box p { color: #c8bfb0 !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .feature-box p { color: #c8bfb0 !important; }
}

/* ── 8. Hero Slider — no gap / background mismatch ── */
.hero-component, .hero-section, .hero-swiper { background: #000; }

/* ── 9. Shop — Product Cards dark backgrounds + hover glow ── */
[data-theme='dark'] .premium-card .card-inner { background: #1c1a17 !important; border: 1px solid #2e2820 !important; }
[data-theme='dark'] .premium-card:hover .card-inner { box-shadow: 0 0 0 2px rgba(201,169,110,0.25), 0 16px 40px rgba(0,0,0,0.5) !important; border-color: rgba(201,169,110,0.3) !important; }
[data-theme='dark'] .product-name a { color: #f0ebe0 !important; }
[data-theme='dark'] .price-regular, [data-theme='dark'] .price-sale { color: #f0ebe0 !important; }
[data-theme='dark'] .product-image-wrapper { background: #111 !important; }
[data-theme='dark'] .action-btn { background: #252015 !important; color: #e5ddd0 !important; }
[data-theme='dark'] .action-btn:hover { background: var(--primary) !important; color: #000 !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .premium-card .card-inner { background: #1c1a17 !important; border: 1px solid #2e2820 !important; }
    :root:not([data-theme='light']) .product-image-wrapper { background: #111 !important; }
    :root:not([data-theme='light']) .action-btn { background: #252015 !important; color: #e5ddd0 !important; }
}

/* ── 10. Shop Sidebar — Search Input ── */
[data-theme='dark'] .shop-sidebar .search-form .form-control { background: #1a1610 !important; border: 1px solid #3a2e22 !important; color: #e5ddd0 !important; }
[data-theme='dark'] .shop-sidebar .search-form .form-control:focus { outline: 2px solid #c9a96e !important; border-color: #c9a96e !important; }
[data-theme='dark'] .shop-sidebar .search-form .btn { background: #1a1610 !important; border-color: #3a2e22 !important; color: #c8bfb0 !important; }
[data-theme='dark'] .shop-sidebar .search-form .btn:hover { border-color: #c9a96e !important; color: #c9a96e !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .shop-sidebar .search-form .form-control { background: #1a1610 !important; border: 1px solid #3a2e22 !important; color: #e5ddd0 !important; }
    :root:not([data-theme='light']) .shop-sidebar .search-form .form-control:focus { outline: 2px solid #c9a96e !important; }
}

/* ── 11. Category Sidebar — Hover State ── */
[data-theme='dark'] .category-list a:hover { background: #2a1f12 !important; color: #c9a96e !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .category-list a:hover { background: #2a1f12 !important; color: #c9a96e !important; }
}

/* ── 12. Footer — Social Icons ── */
[data-theme='dark'] .footer-social a { background: #2a1f12 !important; color: #c9a96e !important; }
[data-theme='dark'] .footer-social a:hover { background: #c9a96e !important; color: #000 !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .footer-social a { background: #2a1f12 !important; color: #c9a96e !important; }
    :root:not([data-theme='light']) .footer-social a:hover { background: #c9a96e !important; color: #000 !important; }
}

/* ── 13. Breadcrumb Separators & Inactive ── */
[data-theme='dark'] .breadcrumb-item + .breadcrumb-item::before { color: #5a4a3a !important; }
[data-theme='dark'] .breadcrumb-item.active { color: #8a7a6a !important; }
[data-theme='dark'] .amazon-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #5a4a3a !important; }
[data-theme='dark'] .amazon-breadcrumb .breadcrumb-item.active { color: #8a7a6a !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .breadcrumb-item + .breadcrumb-item::before { color: #5a4a3a !important; }
    :root:not([data-theme='light']) .breadcrumb-item.active { color: #8a7a6a !important; }
}

/* ── 14 & 15. Contact Page — Info Labels, Values & Form Labels ── */
[data-theme='dark'] .contact-info-list li strong { color: #c9a96e !important; }
[data-theme='dark'] .contact-info-list a,
[data-theme='dark'] .contact-info-list .text-heading { color: #e5e5e5 !important; }
[data-theme='dark'] .adaptive-label { color: #e0d5c5 !important; font-weight: 600; }
[data-theme='dark'] .adaptive-input { background: #1a1610 !important; border-color: #5a4a3a !important; color: #f0ebe0 !important; }
[data-theme='dark'] .adaptive-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 4px rgba(201,169,110,0.12) !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .contact-info-list li strong { color: #c9a96e !important; }
    :root:not([data-theme='light']) .contact-info-list a { color: #e5e5e5 !important; }
    :root:not([data-theme='light']) .adaptive-label { color: #e0d5c5 !important; }
    :root:not([data-theme='light']) .adaptive-input { background: #1a1610 !important; border-color: #5a4a3a !important; color: #f0ebe0 !important; }
}

/* ── 16. Login Panel ── */
[data-theme='dark'] .auth-form-panel { background: #0e0e0e !important; box-shadow: 4px 0 40px rgba(0,0,0,0.6) !important; }
[data-theme='dark'] .auth-title { color: #f0ebe0 !important; }
[data-theme='dark'] .auth-subtitle { color: #8a7a6a !important; }
[data-theme='dark'] .auth-label { color: #c8bfb0 !important; }
[data-theme='dark'] .auth-input { background: #1a1610 !important; border-color: #3a2e22 !important; color: #f0ebe0 !important; }
[data-theme='dark'] .auth-input::placeholder { color: #5a4a3a !important; }
[data-theme='dark'] .auth-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(201,169,110,0.18) !important; }
[data-theme='dark'] .auth-input-icon { color: #5a4a3a !important; }
[data-theme='dark'] .auth-checkbox-label, [data-theme='dark'] .auth-create-account { color: #8a7a6a !important; }
[data-theme='dark'] .auth-panel-footer { border-color: #2e2820 !important; }
[data-theme='dark'] .auth-back-link { color: #6a5a4a !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .auth-form-panel { background: #0e0e0e !important; }
    :root:not([data-theme='light']) .auth-title { color: #f0ebe0 !important; }
    :root:not([data-theme='light']) .auth-label { color: #c8bfb0 !important; }
    :root:not([data-theme='light']) .auth-input { background: #1a1610 !important; border-color: #3a2e22 !important; color: #f0ebe0 !important; }
    :root:not([data-theme='light']) .auth-input:focus { border-color: var(--primary) !important; }
}

/* ── 17. Section Background Rhythm ── */
[data-theme='dark'] .features-section { background: #0f0f0f !important; }
[data-theme='dark'] .instagram-section { background: #000 !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .features-section { background: #0f0f0f !important; }
    :root:not([data-theme='light']) .instagram-section { background: #000 !important; }
}

/* ── 18. Payment banner separator in buy box ── */
[data-theme='dark'] .product-buybox-banner { border-top-color: #2e2820 !important; }

/* ── End of Dark Theme Audit Fixes v2 ── */

/* ============================================================
   ZERO-BLUE POLICY — Eliminate ALL Bootstrap default blues
   from every page. Only gold, warm tones, and on-brand
   colours are permitted. Exceptions: external logos/banners.
   ============================================================ */

/* btn-info → gold/amber */
.btn-info {
    background: linear-gradient(135deg, #c9a96e 0%, #b8965a 100%) !important;
    border-color: #c9a96e !important;
    color: #000 !important;
    font-weight: 600 !important;
}
.btn-info:hover, .btn-info:focus, .btn-info:active {
    background: linear-gradient(135deg, #b8965a 0%, #a07840 100%) !important;
    border-color: #b8965a !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(201,169,110,0.3) !important;
}
.btn-outline-info {
    color: #c9a96e !important;
    border-color: #c9a96e !important;
    background: transparent !important;
}
.btn-outline-info:hover, .btn-outline-info:focus {
    background: #c9a96e !important;
    color: #000 !important;
}

/* btn-success → WhatsApp green is acceptable, but generic btn-success → brand */
/* We keep btn-success as green ONLY for WhatsApp buttons since it's industry convention */
/* Override pure blue link buttons that Bootstrap makes for .btn-link */
.btn-link {
    color: var(--primary) !important;
}
.btn-link:hover {
    color: var(--primary-dark) !important;
}

/* text-info, bg-info → gold */
.text-info { color: #c9a96e !important; }
.bg-info    { background-color: rgba(201, 169, 110, 0.1) !important; }

/* alert-info → warm amber tone (no blue) */
.alert-info {
    background-color: rgba(201, 169, 110, 0.08) !important;
    border-color: rgba(201, 169, 110, 0.25) !important;
    color: #8b6914 !important;
}
[data-theme='dark'] .alert-info {
    background-color: rgba(201, 169, 110, 0.08) !important;
    border-color: rgba(201, 169, 110, 0.2) !important;
    color: #c9a96e !important;
}

/* Bootstrap focus ring → brand gold instead of blue */
*:focus-visible {
    outline-color: var(--primary) !important;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25) !important;
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25) !important;
    border-color: var(--primary) !important;
}
.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Bootstrap spinner → gold */
.spinner-border.text-primary { color: var(--primary) !important; }

/* Pagination → gold */
.page-link { color: var(--primary) !important; }
.page-link:hover { color: var(--primary-dark) !important; }
.page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* Bootstrap dropdown links → no blue */
.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(212, 165, 116, 0.1) !important;
    color: var(--primary) !important;
}
.dropdown-item.active, .dropdown-item:active {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* Nav tabs/pills → gold active */
.nav-link { color: var(--primary); }
.nav-link:hover { color: var(--primary-dark); }
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--primary) !important;
    color: #fff !important;
}
.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* Badge bg-primary → brand (Bootstrap uses --bs-primary which is blue) */
.badge.bg-primary { background-color: var(--primary) !important; color: #fff !important; }
.badge.bg-info    { background-color: rgba(201, 169, 110, 0.15) !important; color: #8b6914 !important; }

/* ── End of Zero-Blue Policy ── */

/* "Added!" confirmation flash on product page Add-to-Cart (kept as success-green) */
.btn-added-state {
    background: linear-gradient(135deg, #5cb85c 0%, #4aa640 100%) !important;
    border-color: #4aa640 !important;
    color: #fff !important;
}

/* ── Final Header Polish (Dark Mode) ── */
/* 1. Announcement Banner */
[data-theme='dark'] .announcement-banner {
    background: #141210 !important;
    color: #c9a96e !important;
    border-bottom: 1px solid #000 !important;
}

/* 2. Top Bar Details */
[data-theme='dark'] .top-bar {
    background: #000000 !important;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1) !important;
    color: #9a8878 !important;
}
[data-theme='dark'] .top-bar a {
    color: #c9a96e !important;
}
[data-theme='dark'] .top-bar a:hover {
    color: #fff !important;
}
[data-theme='dark'] .top-bar i {
    color: #c9a96e !important;
}
/* WhatsApp specific brand green override */
[data-theme='dark'] .top-bar .fa-whatsapp,
[data-theme='dark'] .top-bar a[href*="wa.me"] {
    color: #25D366 !important;
}
[data-theme='dark'] .top-bar a[href*="wa.me"]:hover {
    color: #1ebe5d !important;
}

/* 3. Main Header & Logo Blending */
[data-theme='dark'] .main-header {
    background: #000000 !important; /* Solid black to invisibly blend the black-bg logo */
    border-bottom: 1px solid rgba(201, 169, 110, 0.15) !important;
}

/* 4. Nav Links Contrast */
[data-theme='dark'] .navbar-nav .nav-link {
    color: #e5ddd0 !important;
    font-weight: 500;
}
[data-theme='dark'] .navbar-nav .nav-link:hover,
[data-theme='dark'] .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* 5. Search Bar Input */
[data-theme='dark'] .header-search .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
[data-theme='dark'] .header-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}
[data-theme='dark'] .header-search .form-control:focus {
    border-color: var(--primary) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.15) !important;
}
[data-theme='dark'] .header-search .btn i {
    color: rgba(255, 255, 255, 0.5) !important;
}
[data-theme='dark'] .header-search .btn:hover i {
    color: var(--primary) !important;
}

/* 6. Utility Icons (Cart, User, Theme Toggle) */
[data-theme='dark'] .header-user,
[data-theme='dark'] .header-cart,
[data-theme='dark'] .theme-toggle-btn {
    color: #e5ddd0 !important;
}
[data-theme='dark'] .header-user:hover,
[data-theme='dark'] .header-cart:hover,
[data-theme='dark'] .theme-toggle-btn:hover {
    color: var(--primary) !important;
}
[data-theme='dark'] .cart-count {
    background: var(--primary) !important;
    color: #fff !important;
    border: 2px solid #000 !important;
}

/* 7. Dropdown adjustments */
[data-theme='dark'] .dropdown-menu {
    background: #1c1a17 !important;
    border: 1px solid #2e2820 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
}
[data-theme='dark'] .dropdown-item {
    color: #d0c5b5 !important;
}
[data-theme='dark'] .dropdown-item:hover,
[data-theme='dark'] .dropdown-item.active {
    background: rgba(201, 169, 110, 0.1) !important;
    color: var(--primary) !important;
}

/* ── Mobile Menu Dark Mode Fixes ── */
[data-theme='dark'] .mobile-menu-side {
    background: #000000 !important; /* Seamless logo blending */
    border-right: 1px solid #1a1512;
}
[data-theme='dark'] .mobile-menu-header {
    border-bottom: 1px solid #1a1512 !important;
}
[data-theme='dark'] .mobile-menu-close,
[data-theme='dark'] .mobile-menu-close i {
    color: #e5ddd0 !important;
}
[data-theme='dark'] .mobile-menu-close:hover i {
    color: var(--primary) !important;
}

/* Mobile Search Layout */
.mobile-search-form {
    position: relative;
    width: 100%;
}
.mobile-search-form .form-control {
    width: 100%;
    padding-right: 2.5rem;
    border-radius: 2rem;
    height: 45px;
}
.mobile-search-form .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
}

/* Mobile Search Dark Mode */
[data-theme='dark'] .mobile-search-form .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
[data-theme='dark'] .mobile-search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}
[data-theme='dark'] .mobile-search-form .btn i {
    color: #c9a96e !important;
}

/* Nav Links */
[data-theme='dark'] .mobile-nav-link,
[data-theme='dark'] .mobile-nav-toggle {
    color: #e5ddd0 !important;
}
[data-theme='dark'] .mobile-nav-link.active,
[data-theme='dark'] .mobile-nav-toggle.active,
[data-theme='dark'] .mobile-nav-link:hover,
[data-theme='dark'] .mobile-nav-toggle:hover {
    color: var(--primary) !important;
}
[data-theme='dark'] .mobile-sub-nav {
    border-left-color: #2e2820 !important;
}
[data-theme='dark'] .mobile-sub-nav li a {
    color: #9a8a7a !important;
}
[data-theme='dark'] .mobile-sub-nav li a:hover {
    color: var(--primary) !important;
}
[data-theme='dark'] .mobile-menu-footer {
    border-top-color: #1a1512 !important;
}
[data-theme='dark'] .mobile-menu-footer .text-muted {
    color: #9a8878 !important;
}
[data-theme='dark'] .mobile-menu-footer .fw-bold {
    color: #e5ddd0 !important;
}

/* Header Hamburger Toggle Button */
[data-theme='dark'] .navbar-toggler-custom .bar {
    background: #e5ddd0 !important;
}
@media (max-width: 991px) {
    [data-theme='dark'] .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 8px !important;
        padding: 0.4rem 0.5rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ── Shop Page Dark Mode Overrides ── */
/* 1. Shop Sidebar */
[data-theme='dark'] .shop-sidebar {
    background: #181513 !important;
    border: 1px solid #2e2820 !important;
}
[data-theme='dark'] .sidebar-widget + .sidebar-widget {
    border-top: 1px solid #2e2820 !important;
}
[data-theme='dark'] .sidebar-widget h4 {
    color: #e5ddd0 !important;
}
[data-theme='dark'] .shop-sidebar .category-list a {
    color: #d0c5b5 !important;
}
[data-theme='dark'] .shop-sidebar .category-list a:hover {
    color: var(--primary) !important;
}
[data-theme='dark'] .shop-sidebar .category-list a.active {
    background: var(--primary) !important;
    color: #000000 !important;
    font-weight: 700;
}
[data-theme='dark'] .shop-sidebar .filter-checkbox span {
    color: #d0c5b5 !important;
}
[data-theme='dark'] .shop-sidebar input[type="radio"],
[data-theme='dark'] .shop-sidebar input[type="checkbox"] {
    accent-color: var(--primary) !important;
}

/* 2. Shop Toolbar */
[data-theme='dark'] .shop-toolbar .results-info,
[data-theme='dark'] .shop-toolbar {
    color: #c8bfb0 !important;
}
[data-theme='dark'] .shop-toolbar {
    background: #181513 !important;
    border: 1px solid #2e2820 !important;
}
[data-theme='dark'] .shop-sidebar .form-control,
[data-theme='dark'] .shop-toolbar .form-select {
    background: #111 !important;
    border: 1px solid #2e2820 !important;
    color: #e5ddd0 !important;
}
[data-theme='dark'] .shop-sidebar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}
[data-theme='dark'] .shop-sidebar .search-form .btn {
    color: var(--primary) !important;
}
[data-theme='dark'] .view-modes .btn {
    border-color: #2e2820 !important;
    color: #8c7e6c !important;
}
[data-theme='dark'] .view-modes .btn:hover {
    color: #e5ddd0 !important;
    background: #2e2820 !important;
}
[data-theme='dark'] .view-modes .btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #000 !important;
}

/* 3. Product Cards */
[data-theme='dark'] .product-card .category-tag {
    color: #9a8a7a !important;
}
[data-theme='dark'] .product-card .product-name a {
    color: #e5ddd0 !important;
}
[data-theme='dark'] .product-card .product-name a:hover {
    color: var(--primary) !important;
}
[data-theme='dark'] .product-card .price-original,
[data-theme='dark'] .product-card .no-rating {
    color: #7b6d61 !important;
}
[data-theme='dark'] .product-card .price-regular,
[data-theme='dark'] .product-card .price-sale {
    color: #ffffff !important;
}
/* Premium Add To Cart Button Visibility */
[data-theme='dark'] .btn-premium-add {
    background: transparent !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
}
[data-theme='dark'] .btn-premium-add:hover {
    background: var(--primary) !important;
    color: #000 !important;
}

/* ── Blog Pages Dark Mode Overrides ── */
/* Sidebar & General Cards */
[data-theme='dark'] .col-lg-3 .card,
[data-theme='dark'] .col-lg-4 .card,
[data-theme='dark'] .blog-card,
[data-theme='dark'] .related-posts .card {
    background: #181513 !important;
    border: 1px solid #2e2820 !important;
}
[data-theme='dark'] .blog-card .card-title,
[data-theme='dark'] .related-posts h6 {
    color: #e5ddd0 !important;
}
[data-theme='dark'] .blog-card .text-muted,
[data-theme='dark'] .related-posts .text-muted {
    color: #9a8878 !important;
}

/* Filter Forms & Sidebar Text */
[data-theme='dark'] .blog-filter-form .form-control,
[data-theme='dark'] .blog-filter-form .form-select {
    background: #111 !important;
    border: 1px solid #2e2820 !important;
    color: #e5ddd0 !important;
}
[data-theme='dark'] .blog-filter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}
[data-theme='dark'] .blog-filter-form .form-label,
[data-theme='dark'] .col-lg-3 .card-body h5,
[data-theme='dark'] .col-lg-4 .card-body h5 {
    color: #d0c5b5 !important;
}

/* Category List */
[data-theme='dark'] .blog-category-list a {
    color: #d0c5b5 !important;
}
[data-theme='dark'] .blog-category-list a:hover {
    color: var(--primary) !important;
}
[data-theme='dark'] .blog-category-list a.active {
    background: var(--primary) !important;
    color: #000000 !important;
    font-weight: 700;
}

/* Pagination */
[data-theme='dark'] .aura-page-btn {
    background: #111 !important;
    border-color: #2e2820 !important;
    color: var(--primary) !important;
}
[data-theme='dark'] .aura-page-btn.active {
    background: var(--primary) !important;
    color: #000 !important;
    border-color: var(--primary) !important;
}
[data-theme='dark'] .aura-page-btn:hover:not(.disabled):not(.active) {
    background: #2e2820 !important;
    color: #fff !important;
}

/* Blog Content Detail Page */
[data-theme='dark'] .blog-detail-page h1,
[data-theme='dark'] .related-posts h3 {
    color: #e5ddd0 !important;
}
[data-theme='dark'] .blog-detail-page .text-muted {
    color: #9a8878 !important;
}
[data-theme='dark'] .blog-content {
    color: #d0c5b5 !important;
}
[data-theme='dark'] .blog-content h2,
[data-theme='dark'] .blog-content h3,
[data-theme='dark'] .blog-content h4,
[data-theme='dark'] .blog-content h5 {
    color: #e5ddd0 !important;
}
[data-theme='dark'] .related-posts .btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
[data-theme='dark'] .related-posts .btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #000 !important;
}

/* ── Checkout Page Dark Mode Overrides ── */
/* Form Labels Base Contrast */
[data-theme='dark'] .form-label {
    color: #c8bfb0 !important;
}

/* Payment Option Radio Box */
[data-theme='dark'] .payment-option {
    border: 1px solid var(--primary) !important;
    background: #181513 !important;
}
[data-theme='dark'] .payment-option .form-check-label span {
    color: #e5ddd0 !important;
}

/* Checkout Summary Sidebar */
[data-theme='dark'] .col-lg-5 aside.card {
    background: #1c1a17 !important;
    border: 1px solid #2e2820 !important;
}
[data-theme='dark'] .checkout-section-title,
[data-theme='dark'] .checkout-items .item-name {
    color: #e5ddd0 !important;
}
[data-theme='dark'] .summary-totals hr {
    border-color: #2e2820 !important;
}
/* Force Total Text to Brand Gold instead of Bootstrap Blue */
[data-theme='dark'] .summary-totals .text-primary {
    color: var(--primary) !important;
}

/* "Your personal data" info box */
[data-theme='dark'] .col-lg-5 aside.card .bg-light {
    background: #111 !important;
    border: 1px solid #2e2820 !important;
}

/* Cart & Checkout Summary Visiblity Fixes */
[data-theme='dark'] .summary-label,
[data-theme='dark'] .summary-totals .text-muted,
[data-theme='dark'] .summary-details .text-muted,
[data-theme='dark'] .secure-transaction-text,
[data-theme='dark'] .summary-totals .fw-bold:not(.text-primary):not(.text-success),
[data-theme='dark'] .summary-details .fw-medium:not(.text-primary):not(.text-success) {
    color: #e5ddd0 !important;
}
[data-theme='dark'] .text-success { color: #4ade80 !important; }

/* ── Form Inputs & Select Focus Ring Base Override ── */
[data-theme='dark'] .form-control:focus,
[data-theme='dark'] .form-select:focus,
[data-theme='dark'] .form-check-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(201, 169, 110, 0.25) !important;
}

/* ── Checkout & Cart Specific Misc Text ── */
[data-theme='dark'] .payment-option small.text-muted {
    color: #9a8878 !important;
}
[data-theme='dark'] .need-help .text-muted {
    color: #c8bfb0 !important;
}
[data-theme='dark'] .need-help .btn-outline-secondary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
[data-theme='dark'] .need-help .btn-outline-secondary:hover {
    background: var(--primary) !important;
    color: #000 !important;
}

/* Custom Shipping Region Select Styling */
.custom-select-wrapper { position: relative; }
.custom-region-select { appearance: none !important; -webkit-appearance: none !important; -moz-appearance: none !important; padding-right: 30px !important; cursor: pointer; }
.custom-region-select:focus, .custom-region-select:active { border-color: var(--primary) !important; box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25) !important; outline: none !important; }
.custom-region-select:hover { border-color: var(--primary) !important; }
.select-icon { position: absolute; right: 10px; bottom: 10px; pointer-events: none; color: var(--primary); font-size: 0.8rem; }

/* Ensure no blue on dropdown options hover */
.custom-region-select option:hover, .custom-region-select option:focus, .custom-region-select option:active, .custom-region-select option:checked { background-color: var(--primary) !important; color: white !important; }

/* Global Text Primary Override for Dark Mode (Fixes Blue Icons) */
[data-theme='dark'] .text-primary { 
    color: var(--primary) !important; 
}


/* ── Home Page CTA Section ── */
.cta-section {
    background: #000;
    margin-bottom: 0 !important;
}
.cta-box {
    padding: 3.5rem 2.5rem;
    border-radius: 28px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
}
.cta-box h2 {
    color: #fff;
    font-size: clamp(2rem, 1.875rem + 1vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.cta-box p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
}

/* ── Trust Section (Base/Light Mode) ── */
.payment-trust-white {
    background: #FFFFFF;
    color: #1a1a1a;
}
.payment-trust-white .section-title {
    color: #111;
}
.payment-trust-white .text-muted {
    color: #555 !important;
    opacity: 0.9 !important;
}
.icon-circle {
    background: #fbf5ed;
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.trust-feature .fw-bold {
    color: #111;
    font-size: 1.05rem;
}
.trust-feature .smaller {
    color: #777;
    font-size: 0.85rem;
}
.payment-trust-white .position-relative.bg-adaptive {
     background: #FDFBFA;
     border: 1px solid #eee;
     padding: 24px;
     border-radius: 20px;
     box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}


/* Global Theme Fix: Ensure No Blue */
.text-primary, [class*="text-primary"] {
    color: var(--primary) !important;
}

/* ── Unified CTA & Trust Redesign ── */
.unified-cta-trust {
    overflow: hidden;
    /* Subtle 15% top gradient for depth in light mode */
    background: linear-gradient(to bottom, #f8f7f5 0%, #ffffff 15%, #ffffff 100%);
}

[data-theme='dark'] .unified-cta-trust {
    background: linear-gradient(to bottom, #111 0%, #000 15%, #000 100%);
}

.unified-cta-trust .text-primary {
    color: var(--primary) !important;
}

.unified-cta-trust h2 {
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #fff;
}

[data-theme='light'] .unified-cta-trust h2 {
    color: #111;
}

.trust-promo-card {
    border-radius: 40px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: none;
    min-height: 480px;
}

.primary-card {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 20px 50px rgba(212, 165, 116, 0.2);
}

.secondary-card {
    background: #f4f1ed;
    color: #1a1a1a;
    border: none;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    position: relative;
    padding: 0 !important;
}

.logo-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trust-promo-card:hover .logo-fill {
    transform: scale(1.08);
}

.unified-cta-trust h2.display-3 {
    font-size: clamp(2.2rem, 1.8rem + 4vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.trust-promo-card h3 {
    line-height: 1.2;
    font-size: clamp(1.4rem, 1.2rem + 2vw, 2.2rem);
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .trust-promo-card {
        min-height: auto !important;
        padding-bottom: 2rem;
    }
}

.trust-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.05);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.primary-card .trust-mini-badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-action-pill {
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-action-pill:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Dark Mode Overrides */
[data-theme='dark'] .secondary-card {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #222 !important;
}

[data-theme='dark'] .secondary-card .logo-fill {
    filter: brightness(1.2);
}

[data-theme='dark'] .primary-card .btn-action-pill.bg-white {
    background: #fff !important;
    color: #000 !important;
}

[data-theme='dark'] .trust-mini-badge {
    background: rgba(255,255,255,0.1);
}

/* ── Account Dashboard Styles ── */
.account-stat-card {
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.account-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.account-stat-card .card-body {
    padding: 1.5rem;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #777;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0;
    color: #111;
}

[data-theme='dark'] .account-stat-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
}

[data-theme='dark'] .stat-label {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme='dark'] .stat-value:not(.text-primary) {
    color: #fff;
}

[data-theme='dark'] .account-stat-card .text-primary {
    color: var(--primary) !important;
}

/* ── FAQ & Accordion System ── */
.home-faq-section .accordion-item {
    background: transparent;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

[data-theme='dark'] .home-faq-section .accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.home-faq-section .accordion-button {
    background: transparent !important;
    color: var(--text-heading) !important;
    font-weight: 600;
    padding: 1.5rem 0.5rem;
    box-shadow: none !important;
}

.home-faq-section .accordion-button:not(.collapsed) {
    color: var(--primary) !important;
}

.home-faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23B8935F'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

[data-theme='dark'] .home-faq-section .accordion-button::after {
    filter: brightness(1.2);
}

.home-faq-section .accordion-body {
    padding-left: 0.5rem;
    padding-top: 0;
    padding-bottom: 1.5rem;
}

/* ── Modal Overrides ── */
.modal-content {
    background: #fff;
    color: #111;
    border: none;
    border-radius: 24px;
}

[data-theme='dark'] .modal-content {
    background: #111;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme='dark'] .modal-content .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.quick-view-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
}

.original-price {
    text-decoration: line-through;
    color: #999;
}

[data-theme='dark'] .original-price {
    color: rgba(255, 255, 255, 0.4);
}

.quick-view-info p {
    color: #555;
    line-height: 1.6;
}

[data-theme='dark'] .quick-view-info p {
    color: rgba(255, 255, 255, 0.7);
}

.quick-view-image {
    max-height: 480px;
    background: #f8f8f8;
}

[data-theme='dark'] .quick-view-image {
    background: #1a1a1a;
}

/* ── Testimonials Section ── */
.testimonial-swiper {
    padding-bottom: 50px !important;
}

.testimonial-swiper .swiper-slide {
    height: auto;
}

.testimonial-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

[data-theme='dark'] .testimonial-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.testimonial-rating {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.testimonial-text {
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-heading);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Swiper Pagination Global Override (No Blue) */
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.5;
}

[data-theme='dark'] .swiper-pagination-bullet {
    background: rgba(255,255,255,0.3);
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    opacity: 1;
}

/* ── Modern Save Toast System ── */
#toast-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.toast-save-pill {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 6px 0 16px;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-width: 250px;
}

[data-theme='dark'] .toast-save-pill {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-save-pill.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-save-pill.hide {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
}

.toast-save-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.toast-save-text {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-main);
}

.toast-save-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.btn-toast-reset, .btn-toast-save {
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toast-reset {
    background: transparent;
    color: var(--text-muted);
}

.btn-toast-reset:hover {
    background: rgba(0,0,0,0.05);
}

.btn-toast-save {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.3);
}

.btn-toast-save:hover {
    transform: translateY(-1px);
}

.toast-save-icon { color: var(--primary); }
.toast-save-spinner { color: var(--primary); }
.toast-save-icon-check { color: var(--success); }

/* ── Final Hero Visibility Fix (Theme-Independent) ── */
.hero-content-clean, 
.hero-display-title, 
.hero-description, 
.btn-explore {
    color: #FFFFFF !important;
}

.hero-pagination .swiper-pagination-bullet {
    background: #FFFFFF !important;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* ── Dark Mode User Menu Fix ── */
[data-theme='dark'] .user-dropdown-menu {
    background: #111 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
[data-theme='dark'] .user-dropdown-header {
    background: #1a1a1a !important;
}
[data-theme='dark'] .user-dropdown-meta strong {
    color: #FFFFFF !important;
}
[data-theme='dark'] .user-dropdown-meta small {
    color: rgba(255,255,255,0.6) !important;
}
[data-theme='dark'] .user-dropdown-menu .dropdown-item {
    color: rgba(255,255,255,0.8) !important;
}
[data-theme='dark'] .user-dropdown-menu .dropdown-item:hover {
    background: rgba(255,255,255,0.05) !important;
    color: var(--primary) !important;
}

/* ── Account Tables & Order Styles ── */
.account-orders-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color) !important;
}

.account-table thead th {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.account-table tbody td {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

.order-link {
    color: var(--primary) !important;
    transition: var(--transition);
}

.order-link:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline !important;
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pending { background: #fff7ed; color: #9a3412; }
.status-paid { background: #f0fdf4; color: #166534; }
.status-processing { background: #eff6ff; color: #1e40af; }
.status-shipped { background: #fdf4ff; color: #86198f; }
.status-delivered { background: #f0fdf4; color: #166534; border: 1px solid #bcf0da; }
.status-cancelled { background: #fef2f2; color: #991b1b; }

[data-theme='dark'] .status-pending { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
[data-theme='dark'] .status-paid { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
[data-theme='dark'] .status-delivered { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
[data-theme='dark'] .status-processing { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
[data-theme='dark'] .status-cancelled { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* ── Theme-Aware Input & Card Fixes ── */
.bg-card-adaptive {
    background: #FFFFFF !important;
    border: 1px solid #eeeeee !important;
}

[data-theme='dark'] .bg-card-adaptive {
    background: #111111 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

.bg-adaptive-input, .coupon-input {
    background-color: #fcfcfc !important;
    color: var(--secondary) !important;
    border: 1px solid var(--gray-200) !important;
}

[data-theme='dark'] .bg-adaptive-input,
[data-theme='dark'] .coupon-input {
    background-color: #1a1a1a !important;
    color: #FFFFFF !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.coupon-input::placeholder {
    color: var(--gray-400);
}

[data-theme='dark'] .coupon-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.border-adaptive {
    border-color: var(--gray-200) !important;
}

[data-theme='dark'] .border-adaptive {
    border-color: rgba(255,255,255,0.1) !important;
}

/* ══════════════════════════════════════════════════
   MOBILE HEADER — Sign-in icon & user dropdown
   ══════════════════════════════════════════════════ */
.mobile-signin-btn {
    color: var(--gray-700);
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    padding: 2px;
}
.mobile-signin-btn:hover { color: var(--primary); }

[data-theme='dark'] .mobile-signin-btn { color: #e5ddd0; }
[data-theme='dark'] .mobile-signin-btn:hover { color: var(--primary); }

/* Keep mobile user dropdown aligned to the right edge */
.mobile-action-bar .header-user .user-dropdown-menu {
    min-width: 220px;
    right: 0;
    left: auto;
}

/* ══════════════════════════════════════════════════
   ORDERS TABLE — Mobile stacked card layout
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .account-orders-card .table-responsive { overflow-x: unset; }
    .account-table { min-width: unset !important; }

    .account-table thead { display: none; }

    .account-table tbody tr {
        display: block;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        margin-bottom: 1rem;
        overflow: hidden;
        background: var(--bg-card);
    }

    .account-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1.1rem !important;
        border-bottom: 1px solid var(--border-color);
        text-align: right !important;
    }

    .account-table tbody td:last-child { border-bottom: none; }

    /* Label on left from data-label attribute */
    .account-table tbody td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-muted);
        flex-shrink: 0;
        margin-right: auto;
        padding-right: 0.75rem;
        text-align: left;
    }

    /* Action cell (empty label) — right-align only, no label */
    .account-table tbody td[data-label=""]::before { display: none; }
    .account-table tbody td[data-label=""] { justify-content: flex-end; }

    /* Highlight unpaid rows with amber left border */
    .account-table tbody tr.order-row-unpaid { border-color: #ffc107; border-width: 1px 1px 1px 4px; }
}

/* Order number + badge — always stacked, number never wraps */
.order-num-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.order-link {
    white-space: nowrap;
}

.order-awaiting-badge {
    background: #fff3cd;
    color: #856404;
    font-size: .62rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

/* On mobile, right-align the stack to match the data-label layout */
@media (max-width: 767px) {
    .order-num-stack {
        align-items: flex-end;
    }
}

