﻿/* === THEME TOGGLE BUTTON (Added) === */
/* === THEME TOGGLE BUTTON (Redesigned) === */
.theme-toggle-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    width: 180px;
    height: 56px;
    border-radius: 30px;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.6s ease, border-color 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
    overflow: hidden;
    will-change: transform, background-color;
    transform: translateZ(0);
}

/* Hide theme toggle when mobile menu/modal is open for a cleaner look */
body.no-scroll .theme-toggle-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.8) translateZ(0);
}

/* Toggle Circle (The Icon Container) */
.toggle-circle {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6), background-color 0.6s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 7px;
    z-index: 2;
    color: #1a1a1a;
    will-change: transform;
}

/* Text Labels */
.toggle-text {
    font-family: 'Cairo', 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: absolute;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    text-transform: uppercase;
}

.text-night {
    right: 20px;
    color: #fff;
    opacity: 1;
    transform: translateX(0);
}

.text-day {
    left: 20px;
    color: #333;
    opacity: 0;
    transform: translateX(-10px);
}

/* === LIGHT MODE STATE === */
body.light-mode .theme-toggle-btn {
    background: #f0f0f0;
    /* Light Grey Background */
    border-color: #ddd;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light-mode .toggle-circle {
    transform: translate3d(124px, 0, 0) rotate(360deg);
    /* (180 - 42 - 14) */
    background: #fff;
    color: #f39c12;
}

body.light-mode .text-night {
    opacity: 0;
    transform: translateX(10px);
}

body.light-mode .text-day {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .theme-toggle-btn {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition-duration: 0.4s;
    }

    .toggle-circle {
        transition-duration: 0.4s;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    }

    .theme-toggle-btn svg,
    .toggle-text {
        transition-duration: 0.3s;
    }
}

.theme-toggle-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    position: absolute;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Default (Dark Mode): Show Moon, Hide Sun */
.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Light Mode: Show Sun, Hide Moon */
body.light-mode .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

body.light-mode .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* === LIGHT MODE STYLES === */
body.light-mode {
    background-color: #fdfbf7;
    /* Premium Cream/White */
    color: #1a1a1a;
}

body.light-mode h1:not([lang="ar"]),
body.light-mode h2:not([lang="ar"]),
body.light-mode h3:not([lang="ar"]),
body.light-mode h4:not([lang="ar"]),
body.light-mode .hero-welcome-content p,
body.light-mode .stat-text,
body.light-mode .feature-number,
body.light-mode .hero-welcome-content .tagline,
body.light-mode .hero-welcome-content .description {
    color: #222 !important;
    /* Force dark text for non-Arabic headings */
    text-shadow: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Ensure Arabic Gold Headings remain Gold in Light Mode */
html[lang="ar"] body.light-mode h1,
html[lang="ar"] body.light-mode h2,
html[lang="ar"] body.light-mode h3 {
    -webkit-text-fill-color: initial !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    background: none !important;
    color: #a88542 !important;
    text-shadow: none !important;
}


body.light-mode .hero-welcome-content .title-subline {
    color: #dbb458 !important;
    /* Darker gold for visibility on white */
}

/* Light Mode Hero Overlay - Make it light/transparent so dark text shows */
body.light-mode .hero-featured-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 251, 247, 0.98) 100%) !important;
}

/* Ensure Logo text is visible in light mode */
body.light-mode .logo,
body.light-mode .preloader-logo-final {
    /* Make the gold gradient slightly darker/richer for white bg */
    text-shadow: 0 2px 10px rgba(197, 160, 89, 0.2);
}

/* Light Mode Hero - Fix dark background persistence */
/* Light Mode Hero - Allow Background & Particles */
body.light-mode .hero-featured {
    /* Allow original background image to show, but blend it light */
    background-color: rgba(253, 251, 247, 0.85) !important;
    background-blend-mode: overlay !important;
}

/* =========================================
   STAR PARTICLES TRANSFORM (NOJOME) - FINAL FIX
   ========================================= */
/* 1. Ensure Container Covers the Hero Area - Strong Global Definition */
.gold-particles {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    /* Force Full Viewport Width */
    height: 120vh !important;
    /* Extra height to prevent cutoff on mobile */
    z-index: 1 !important;
    /* Lowered to sit BEHIND cards */
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Ensure Content sits ABOVE the stars */
.hero-product-grid,
.hero-welcome-content,
.hero-grid-card {
    position: relative !important;
    z-index: 10 !important;
}

/* 2. Style the Stars - Dual Direction Animation */
.gold-particles span {
    position: absolute !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background: #ffd700 !important;
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0% 50%, 39% 35%) !important;
    opacity: 0;
}

/* Group 1: Rising Up (Odd Numbers) */
.gold-particles span:nth-child(odd) {
    top: 105% !important;
    animation: riseUp 12s infinite linear !important;
}

/* Group 2: Falling Down (Even Numbers) */
.gold-particles span:nth-child(even) {
    top: -10% !important;
    animation: fallDown 12s infinite linear !important;
}

/* 3. Chaos Theory Positioning - DE-CLUSTERED (No Synchronization) */

/* LEFT CLUSTER BREAKER */
/* STAR 1 (Left 5%) */
.gold-particles span:nth-child(1) {
    left: 5%;
    animation-duration: 20s !important;
    animation-delay: 0s;
    transform: scale(0.7);
}

/* STAR 11 (Left 10%) */
.gold-particles span:nth-child(11) {
    left: 10%;
    animation-duration: 9s !important;
    animation-delay: 5s;
    transform: scale(1.2);
    top: 110% !important;
}

/* STAR 7 (Left 15%) */
.gold-particles span:nth-child(7) {
    left: 15%;
    animation-duration: 14s !important;
    animation-delay: -3s;
    transform: scale(1.0);
}

/* STAR 15 (Left 20%) */
.gold-particles span:nth-child(15) {
    left: 20%;
    animation-duration: 11s !important;
    animation-delay: 8s;
    transform: scale(1.1);
}

/* CENTER-LEFT CLUSTER BREAKER */
/* STAR 3 (Left 25%) */
.gold-particles span:nth-child(3) {
    left: 25%;
    animation-duration: 16s !important;
    animation-delay: 2s;
    transform: scale(0.9);
}

/* STAR 18 (Left 30%) */
.gold-particles span:nth-child(18) {
    left: 30%;
    animation-duration: 10s !important;
    animation-delay: 6s;
    transform: scale(1.3);
    top: -18% !important;
}

/* STAR 10 (Left 35%) */
.gold-particles span:nth-child(10) {
    left: 35%;
    animation-duration: 13s !important;
    animation-delay: -5s;
    transform: scale(0.8);
    top: -25% !important;
}

/* CENTER CLUSTER BREAKER */
/* STAR 14 (Left 40%) */
.gold-particles span:nth-child(14) {
    left: 40%;
    animation-duration: 8s !important;
    animation-delay: 4s;
    transform: scale(1.2);
    top: -35% !important;
}

/* STAR 5 (Left 45%) */
.gold-particles span:nth-child(5) {
    left: 45%;
    animation-duration: 19s !important;
    animation-delay: 1s;
    transform: scale(0.8);
}

/* STAR 19 (Left 50%) */
.gold-particles span:nth-child(19) {
    left: 50%;
    animation-duration: 12s !important;
    animation-delay: 7.5s;
    transform: scale(0.9);
}

/* STAR 2 (Left 55%) */
.gold-particles span:nth-child(2) {
    left: 55%;
    animation-duration: 9.5s !important;
    animation-delay: -2s;
    transform: scale(1.1);
    top: -20% !important;
}

/* CENTER-RIGHT CLUSTER BREAKER */
/* STAR 12 (Left 60%) */
.gold-particles span:nth-child(12) {
    left: 60%;
    animation-duration: 15s !important;
    animation-delay: 3.5s;
    transform: scale(1.0);
    top: -5% !important;
}

/* STAR 8 (Left 65%) */
.gold-particles span:nth-child(8) {
    left: 65%;
    animation-duration: 8.5s !important;
    animation-delay: -7s;
    transform: scale(0.9);
    top: -15% !important;
}

/* STAR 16 (Left 70%) */
.gold-particles span:nth-child(16) {
    left: 70%;
    animation-duration: 17s !important;
    animation-delay: 6.5s;
    transform: scale(1.0);
    top: -12% !important;
}

/* RIGHT CLUSTER BREAKER */
/* STAR 4 (Left 75%) */
.gold-particles span:nth-child(4) {
    left: 75%;
    animation-duration: 11.5s !important;
    animation-delay: 1.5s;
    transform: scale(1.3);
    top: -10% !important;
}

/* STAR 17 (Left 80%) */
.gold-particles span:nth-child(17) {
    left: 80%;
    animation-duration: 18s !important;
    animation-delay: -4s;
    transform: scale(0.8);
}

/* STAR 9 (Left 85%) */
.gold-particles span:nth-child(9) {
    left: 85%;
    animation-duration: 10.5s !important;
    animation-delay: 5.5s;
    transform: scale(1.1);
}

/* STAR 13 (Left 90%) */
.gold-particles span:nth-child(13) {
    left: 90%;
    animation-duration: 14.5s !important;
    animation-delay: 0.5s;
    transform: scale(0.9);
}

/* STAR 6 (Left 95%) */
.gold-particles span:nth-child(6) {
    left: 95%;
    animation-duration: 12.5s !important;
    animation-delay: 9s;
    transform: scale(1.2);
    top: -30% !important;
}

/* STAR 20 (Left 98%) */
.gold-particles span:nth-child(20) {
    left: 98%;
    animation-duration: 9s !important;
    animation-delay: -6s;
    transform: scale(1.1);
    top: -22% !important;
}

/* 4. Animations Definitions */
/* 4. Animations Definitions - EXTENDED RANGE */
@keyframes riseUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-150vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

@keyframes fallDown {
    0% {
        transform: translateY(0) rotate(0deg) scale(1.2);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(150vh) rotate(-360deg) scale(0.5);
        opacity: 0;
    }
}

/* Light Mode Stars: Strong Yellow Gold */
body.light-mode .gold-particles span {
    background: #d6a605 !important;
    box-shadow: none !important;
    /* Shadow doesn't work well with clip-path sometimes, relying on color */
    opacity: 1 !important;
    z-index: 10 !important;
}

/* Ensure on top of aurora background */


/* Ensure Text Gradient doesn't hide text in Light Mode */
/* Hero title master rule moved to bottom for consistency */

/* Light Mode Card adjustments */
body.light-mode .product-card,
body.light-mode .delivery-card,
body.light-mode .premium-feature-card,
body.light-mode .stat-box {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    border: 1px solid rgba(197, 160, 89, 0.2);
}

body.light-mode .card-title {
    color: #fff;
    /* Keep white on images */
}

body.light-mode .shop-search-bar input {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

/* Improve contrast for text in light mode */
body.light-mode p {
    color: #444;
}

/* Hero CTA Hover Enhancements for Light Mode */
body.light-mode .btn-google-play:hover {
    background: rgba(61, 220, 132, 0.08) !important;
    border-color: #3DDC84 !important;
    box-shadow: 0 10px 30px rgba(61, 220, 132, 0.2) !important;
}

body.light-mode .btn-google-play:hover .play-big,
body.light-mode .btn-google-play:hover .play-small,
body.light-mode .btn-google-play:hover svg {
    color: #3DDC84 !important;
}

body.light-mode .navbar {
    background-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(168, 133, 66, 0.1) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .navbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .nav-links a:not(.nav-track-btn) {
    color: #333;
    /* Darker nav links */
}

body.light-mode .nav-links a:not(.nav-track-btn):hover {
    color: #c5a059;
}

/* Ensure Logo remains visible/Gold - Styles handled via text-shadow where needed */

/* Announcement Bar in Light Mode - Simplified for Mobile performance */
body.light-mode .announcement-bar {
    background: #f7f3e6;
    border-bottom: 1px solid #d4c5a0;
}

body.light-mode .announcement-content {
    color: #333;
}

/* Footer in Light Mode */
body.light-mode footer {
    background: #f4f1e8;
    color: #222;
    border-top: 1px solid #e6dec5;
}

body.light-mode .footer-newsletter {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border: 1px solid #e0e0e0;
}

body.light-mode .newsletter-content h3 {
    color: #a88542;
}

body.light-mode .footer-brand-section .brand-desc {
    color: #555;
}

body.light-mode .link-group h4 {
    color: #222;
}

body.light-mode .link-group ul li a {
    color: #555;
}

/* === Auto-Hide Navbar Blur Effect === */
/* Transition properties for smooth hiding */
.navbar {
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease, opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease !important;
    will-change: opacity, filter, transform;
}

/* The hidden state */
.navbar.nav-blurred-hidden {
    opacity: 0 !important;
    filter: blur(8px) !important;
    transform: translateY(-20px) !important;
    pointer-events: none !important;
}

body.light-mode .link-group ul li a:hover {
    color: #a88542;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .theme-toggle-btn {
        width: 150px !important;
        /* Scaled down from 180px */
        height: 50px;
        bottom: 20px;
        left: 20px;
        border-radius: 25px;
        padding: 5px;
        display: flex;
        /* Back to flex/horizontal */
        align-items: center;
    }

    /* Show text again */
    .theme-toggle-btn .toggle-text {
        display: block !important;
        font-size: 0.7rem;
        /* Smaller font */
        letter-spacing: 0.5px;
    }

    .text-night {
        right: 15px;
    }

    .text-day {
        left: 15px;
    }

    /* Adjust Circle Size & Position */
    .theme-toggle-btn .toggle-circle {
        position: absolute !important;
        width: 38px;
        height: 38px;
        top: 6px !important;
        /* Centered vertically */
        bottom: auto !important;
        left: 6px !important;
        /* Dark Mode Position */
        right: auto !important;
        margin: 0;
        transform: none;
        /* Reset vertical rotation/movement if any */
        transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
    }

    /* Light Mode Adjustments */
    body.light-mode .theme-toggle-btn .toggle-circle {
        transform: translate3d(100px, 0, 0) rotate(360deg) !important;
        /* (150 - 38 - 12) */
        top: 6px !important;
    }

    .theme-toggle-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Contact Section & Tracking Section Text */
body.light-mode .contact-info p,
body.light-mode .contact-info .label,
body.light-mode .contact-info .value,
body.light-mode .tracking-text p,
body.light-mode .story-text,
body.light-mode .story-badge,
body.light-mode .signature-text,
body.light-mode .why-us-header h2,
body.light-mode .section-header h2,
body.light-mode .section-header p {
    color: #222 !important;
}

body.light-mode .contact-info h3,
body.light-mode .tracking-text h3 {
    color: #a88542 !important;
}

/* Contact Icons in Light Mode */
body.light-mode .contact-info .icon svg {
    fill: #222 !important;
    /* Dark icon to contrast with Gold background */
}

/* Form Inputs in Light Mode (Contact & Tracking) */
body.light-mode input,
body.light-mode textarea,
body.light-mode select {
    background-color: #ffffff !important;
    color: #222 !important;
    border: 1px solid #ddd !important;
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: #777 !important;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: #a88542 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(168, 133, 66, 0.1) !important;
}

/* About Section Fixes */
body.light-mode .story-content h2 {
    color: #a88542 !important;
    /* Gold Title requested */
}

body.light-mode .gold-text {
    /* Keep gold text gold, but ensuring it has enough contrast or maybe slightly darker gold if needed */
    color: #bfa36c !important;
    text-shadow: none !important;
}

body.light-mode .signature-line {
    background-color: #a88542 !important;
}

/* Footer & Other links */
body.light-mode a.value {
    color: #111 !important;
    font-weight: 500;
}

/* === ABOUT SECTION & MISC FIXES === */

/* Ensure About Section has Light Background */
body.light-mode .about-premium,
body.light-mode .about-premium-container,
body.light-mode .brand-story,
body.light-mode .story-overlay {
    background-color: transparent !important;
    background: transparent !important;
}

/* Fix Visual Frame in Light Mode (The box around the logo) */
body.light-mode .visual-frame {
    border-color: rgba(168, 133, 66, 0.3) !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

body.light-mode .frame-corner {
    border-color: #a88542 !important;
}

/* Stats Bar Fixes */
body.light-mode .about-stats-bar {
    background: #ffffff !important;
    border: 1px solid rgba(168, 133, 66, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
}

/* Remove individual boxes background/shadows in light mode */
body.light-mode .stat-box {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

body.light-mode .stat-value {
    color: #c5a059 !important;
    /* Premium Gold numbers */
    text-shadow: none !important;
}

body.light-mode .stat-text {
    color: #555 !important;
    font-weight: 500 !important;
}

body.light-mode .stat-divider {
    background: rgba(197, 160, 89, 0.2) !important;
    height: 60% !important;
    /* Make dividers look cleaner */
}

/* Fix "Why Choose Us" dark background if it exists */
body.light-mode .why-us-header {
    background: transparent !important;
}

/* Ensure Logo in About Section is visible */
body.light-mode .about-logo {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* Specific fix for contact details labels */
body.light-mode .detail-text .label {
    color: #666 !important;
}

body.light-mode .detail-text .value {
    color: #111 !important;
}

/* === SECTIONS BACKGROUND FIXES (Shipping, Tracking & Contact) === */

/* Fix Shipping/Delivery Section Background */
body.light-mode .delivery-details,
body.light-mode #shipping {
    background-color: #f7f3e6 !important;
    /* Creamy light background */
    color: #222 !important;
}

body.light-mode .delivery-details .section-header h2,
body.light-mode .delivery-details .section-header p {
    color: #222 !important;
    text-shadow: none !important;
}

/* Delivery Cards in Light Mode */
body.light-mode .delivery-card {
    background: #ffffff !important;
    border: 1px solid rgba(168, 133, 66, 0.15) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .delivery-card h3 {
    color: #a88542 !important;
}

body.light-mode .delivery-card p {
    color: #555 !important;
}

body.light-mode .delivery-icon svg {
    fill: #a88542 !important;
    /* Ensure icons are gold */
}

/* Fix Order Tracking Section Background */
body.light-mode .order-tracking-mini,
body.light-mode #track {
    background: #ffffff !important;
    /* Use 'background' to override gradient */
    border-top: 1px solid rgba(168, 133, 66, 0.1) !important;
    border-bottom: 1px solid rgba(168, 133, 66, 0.1) !important;
}

body.light-mode .tracking-text h3 {
    color: #a88542 !important;
}

body.light-mode .tracking-text p {
    color: #444 !important;
}

body.light-mode .tracking-form input {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #ddd !important;
}

body.light-mode .tracking-form button {
    background: #a88542 !important;
    color: #fff !important;
    border: none !important;
}

body.light-mode .tracking-form button:hover {
    background: #8e6d33 !important;
}

/* Fix Contact Us Section Background */
body.light-mode .contact-section {
    background-color: #f7f3e6 !important;
}

/* Ensure Contact Section Header is Visible */
body.light-mode .contact-section .section-header h2,
body.light-mode #contact .section-header h2 {
    color: #222 !important;
    /* Force Dark Grey for visibility */
    -webkit-text-fill-color: #222 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

body.light-mode .contact-section .contact-info h3 {
    color: #a88542 !important;
    /* Gold Title inside card is fine */
}

body.light-mode .contact-section .contact-intro {
    color: #555 !important;
    /* Dark Grey Intro Text */
}

body.light-mode .contact-container,
body.light-mode .contact-info {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: #222 !important;
}

/* Ensure individual contact detail cards are white and visible */
body.light-mode .detail-item {
    background: #ffffff !important;
    border: 1px solid rgba(168, 133, 66, 0.15) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    border-radius: 10px !important;
}

/* Ensure contact form itself is visible/clean */
body.light-mode .contact-form {
    background: transparent !important;
}

/* Ensure order tracking input text is visible */
body.light-mode .tracking-form input {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #ddd !important;
}

/* Footer Contact List Visibility Fix */
body.light-mode .contact-list li {
    color: #444 !important;
    font-weight: 500;
}

body.light-mode .contact-list li svg {
    color: #a88542 !important;
    /* Gold Icons */
}

body.light-mode .contact-form textarea {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
    border-color: #a88542 !important;
    box-shadow: 0 0 0 3px rgba(168, 133, 66, 0.1) !important;
}

/* Fix Header Underline in Light Mode */
body.light-mode .header-underline {
    background-color: #a88542 !important;
}

/* Fix Social Icons in Light Mode */
body.light-mode .social-icon {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #555 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Instagram Specific Fix for Light Mode */
body.light-mode .social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    color: #fff !important;
    border: none !important;
    /* Clean up any double-border artifacts */
}

body.light-mode .social-icon.whatsapp:hover {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
}

body.light-mode .social-icon.facebook:hover {
    background: #1877F2 !important;
    color: #fff !important;
    border: none !important;
}

/* Fix Collection Modal in Light Mode */
body.light-mode .modal-content,
body.light-mode .collection-modal-content {
    background-color: #fdfbf7 !important;
    /* Creamy White Background */
    color: #222 !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode #collection-title,
body.light-mode #story-title,
body.light-mode .modal-header h2 {
    color: #ffffff !important;
    /* Force Title to be Dark */
    text-shadow: none !important;
}

body.light-mode .story-close-btn {
    color: #222 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .close-modal,
body.light-mode .close-product-modal {
    color: #222 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Fix Collection Card Text in Light Mode */
body.light-mode .collection-card h3,
body.light-mode .collection-card .category-name {
    color: #222 !important;
    text-shadow: none !important;
}

/* === MOBILE SAFEGUARDS (Enforce Light Mode on Phones) === */
@media (max-width: 768px) {

    /* Force Light Backgrounds on Mobile */
    body.light-mode .order-tracking-mini,
    body.light-mode #track {
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
    }

    body.light-mode .delivery-details,
    body.light-mode #shipping,
    body.light-mode .contact-section {
        background: #f7f3e6 !important;
        background-image: none !important;
    }

    body.light-mode h1,
    body.light-mode h2,
    body.light-mode h3,
    body.light-mode p,
    body.light-mode .contact-list li,
    body.light-mode a,
    body.light-mode input,
    body.light-mode textarea {
        text-shadow: none !important;
        -webkit-text-fill-color: initial !important;
        /* Reset gradient text */
    }

    /* Mobile hero title master rule consolidated */

    /* Specific Mobile Contact Fixes */
    body.light-mode .detail-item {
        background: #ffffff !important;
        border: 1px solid rgba(168, 133, 66, 0.2) !important;
    }

    body.light-mode .contact-info {
        background: transparent !important;
        padding: 0 !important;
    }
}

/* =========================================
   MOBILE MENU - LIGHT MODE FIXES (ROBUST)
   ========================================= */
@media (max-width: 1024px) {

    /* Menu Container Background */
    body.light-mode .nav-links {
        background-color: #fdfbf7 !important;
        /* Light Cream Background */
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1) !important;
    }

    /* General Links Text Color */
    /* Remove ugly hover background, MATCH DARK MODE UNDERLINE */
    body.light-mode .nav-links li a:hover,
    body.light-mode .nav-links li a.active {
        color: #c5a059 !important;
        /* Gold text */
        background: transparent !important;
        background-image: linear-gradient(90deg, #c5a059, #c5a059) !important;
        /* Gold Underline */
        background-size: 100% 2px !important;
        background-repeat: no-repeat !important;
        background-position: center bottom 5px !important;
        border-bottom: none !important;
        /* Remove border */
        text-decoration: none !important;
        padding-right: 0 !important;
        /* Remove shift */
        padding-left: 0 !important;
        text-shadow: none !important;
    }

    /* CRITICAL FIX: Hide the default ::after underline to prevent double lines */
    /* CRITICAL FIX: Hide the default ::after underline ONLY for normal links */
    /* We EXPLICITLY exclude .nav-track-btn so our new style works */
    body.light-mode .nav-links li a:not(.nav-track-btn)::after {
        display: none !important;
        content: none !important;
        width: 0 !important;
    }

    /* Ensure normal state has no border/underline setup */
    body.light-mode .nav-links li a {
        border-bottom: none !important;
        background-image: linear-gradient(90deg, #c5a059, #c5a059) !important;
        background-size: 0% 2px !important;
        /* Start hidden */
        background-repeat: no-repeat !important;
        background-position: center bottom 5px !important;
        transition: background-size 0.3s ease, color 0.3s ease !important;
    }

    /* Track Order Button - EXACT COPY OF DARK MODE BUTTON */
    body.light-mode .nav-links .nav-track-btn {
        font-size: 1.5rem !important;
        padding: 0.8rem 2rem !important;
        background-color: transparent !important;

        /* Disable background-image underline */
        background-image: none !important;

        border: 2px solid #c5a059 !important;
        /* Gold Border */
        border-radius: 8px !important;
        box-shadow: none !important;
        font-weight: 800 !important;
        letter-spacing: 1px !important;
        margin: 1.5rem 0 !important;
        color: #c5a059 !important;
        /* Gold Text */
        width: auto !important;
        display: inline-block !important;
        margin-top: 1.5rem !important;
        transform: none !important;
        position: relative !important;
        /* Needed for ::after positioning */
        text-align: center !important;
        /* Ensure text is centered */
    }

    /* Track Order Button Hover - Static Shape */
    body.light-mode .nav-links .nav-track-btn:hover {
        background-color: transparent !important;
        background-image: none !important;
        color: #c5a059 !important;
        border: 2px solid #c5a059 !important;
        border-radius: 8px !important;
        transform: none !important;
        box-shadow: none !important;
        outline: none !important;

        /* Force layout properties */
        font-weight: 800 !important;
        letter-spacing: 1px !important;
        padding: 0.8rem 2rem !important;
        margin: 1.5rem 0 !important;
        margin-top: 1.5rem !important;
        text-decoration: none !important;
        text-shadow: none !important;
    }

    /* RE-ENABLE ::after ONLY for Track Button to do the Perfect Center Scale */
    body.light-mode .nav-links .nav-track-btn::after {
        display: block !important;
        content: '' !important;
        position: absolute !important;

        /* CENTER THE LINE PERFECTLY */
        left: 50% !important;
        width: 60% !important;
        /* Adjust width to match text length closely */
        bottom: 0.9rem !important;
        /* Move down a bit (was 1.4rem) */
        height: 2px !important;
        background-color: #c5a059 !important;

        /* Start Hidden (scaled to 0), Centered via Translate */
        transform: translateX(-50%) scaleX(0) !important;
        transform-origin: center !important;
        transition: transform 0.3s ease !important;
    }

    /* Trigger animation on hover */
    body.light-mode .nav-links .nav-track-btn:hover::after {
        /* Expand to full set width (60% of button), keeping centered */
        transform: translateX(-50%) scaleX(1) !important;
    }

    /* Update Store Link (Mobile Only) - Gold Clean Style */
    /* Update Store Link (Mobile Only) - Gold Clean Style */
    body.light-mode .mobile-only a {
        color: #c5a059 !important;
        /* Gold text */
        border: none !important;
        /* No border */
        margin-top: 10px;
        background: transparent !important;

        /* Inherits background-image line from general links, let's adjust its position */
        padding-bottom: 8px !important;
        /* Add space between text and line */
        background-position: center bottom 2px !important;
        /* Push line to bottom */

        /* Ensure no other interference */
        display: inline-block !important;
        text-decoration: none !important;
    }

    body.light-mode .mobile-only a:hover {
        background: transparent !important;
        color: #a88542 !important;
        /* Darker gold on hover */
    }

    /* FINAL CLEAN HAMBURGER STYLES (Replaces all previous button codes) */
    .hamburger .line {
        background-color: transparent !important;
        /* Metallic Gold Gradient matches the 3D logo */
        background-image: linear-gradient(135deg, #b88a44 0%, #fadd9e 50%, #b88a44 100%) !important;
        height: 3px !important;
        border-radius: 4px !important;
        /* Soft edges like the logo curves */
        box-shadow: 0 1px 2px rgba(197, 160, 89, 0.3) !important;
        /* Subtle golden shadow */
        opacity: 1 !important;

        /* New Width Logic for Hamburger Look */
        width: 30px !important;
        /* Top and Bottom Buns width */
        margin-left: auto !important;
        /* Centering hack if flex alignment fails */
        margin-right: auto !important;
        transition: all 0.3s ease !important;
    }

    /* Make the Middle Line (Patty) Shorter */
    .hamburger .line:nth-child(2) {
        width: 20px !important;
        /* Shorter Middle Line */
    }

    /* SPECIFICALLY Target the lines when active (The X Icon) */
    .hamburger.active .line {
        background-image: linear-gradient(135deg, #c5a059, #eacda3, #c5a059) !important;
        box-shadow: none !important;
        /* Clean look for X */
        width: 30px !important;
        /* Restore full width for X shape */
    }

    /* Ensure the middle line remains hidden in Active state */
    .hamburger.active .line:nth-child(2) {
        background: transparent !important;
        background-image: none !important;
        opacity: 0 !important;
        transform: scale(0) !important;
        /* Ensure it shrinks away */
    }

    /* Perfect X Alignment Logic */
    /* Rotate Top Line 45deg and move down to center */
    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    /* Rotate Bottom Line -45deg and move up to center */
    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* Ensure Icon is Topmost */
    .hamburger {
        z-index: 200000 !important;
    }
}

/* === CART SIDEBAR THEME === */
.cart-sidebar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
    color: #fff !important;
}

.cart-sidebar h3 {
    color: var(--accent);
    font-family: var(--font-serif);
}

.cart-sidebar .close-btn {
    color: rgba(255, 255, 255, 0.6);
}

.cart-sidebar .close-btn:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.cart-footer {
    border-top: 1px solid rgba(197, 160, 89, 0.2) !important;
}

.cart-item {
    border-bottom: 1px solid rgba(197, 160, 89, 0.1) !important;
}

.cart-item-info h4 {
    color: #fff !important;
}

.cart-qty-controls .qty-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(197, 160, 89, 0.2) !important;
    color: #fff !important;
}

.cart-qty-controls .qty-btn:hover {
    background: rgba(197, 160, 89, 0.2) !important;
    border-color: var(--accent) !important;
}

/* Light Mode Overrides for Cart */
body.light-mode .cart-sidebar {
    background: #fdfbf7 !important;
    backdrop-filter: none;
    border-right: 1px solid rgba(197, 160, 89, 0.1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    color: #1a1a1a !important;
}

body.light-mode .cart-item-info h4 {
    color: #1a1a1a !important;
}

body.light-mode .cart-sidebar .close-btn {
    color: #666;
}

body.light-mode .cart-qty-controls .qty-btn {
    background: #fff !important;
    border-color: #ddd !important;
    color: #1a1a1a !important;
}

/* === MODAL & CHECKOUT THEME === */
.modal-content {
    background-color: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    color: #fff !important;
}

#checkout-form label {
    color: rgba(255, 255, 255, 0.9) !important;
}

#checkout-form input {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(197, 160, 89, 0.2) !important;
    color: #fff !important;
}

#checkout-form input:focus {
    background: rgba(197, 160, 89, 0.1) !important;
    border-color: var(--accent) !important;
}

.order-summary-mini {
    background: rgba(197, 160, 89, 0.08) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    color: #fff !important;
}

/* Light Mode Overrides for Checkout */
body.light-mode .modal-content {
    background-color: #fdfbf7 !important;
    backdrop-filter: none;
    border: 1px solid rgba(197, 160, 89, 0.2) !important;
    color: #1a1a1a !important;
}

body.light-mode #checkout-form label {
    color: #333 !important;
}

body.light-mode #checkout-form input {
    background: #fff !important;
    border-color: #ddd !important;
    color: #1a1a1a !important;
}

body.light-mode .order-summary-mini {
    background: #fdf7e7 !important;
    border: 1px solid rgba(197, 160, 89, 0.4) !important;
    color: #1a1a1a !important;
}

/* FIX: Change Hero Title "ESPOIR" color to match "Ø§Ù„Ù…ØªØ¬Ø± Ø§Ù„Ø°Ù‡Ø¨ÙŠ" (#dbb458) GLOBAL (PC & Mobile) in Light Mode */
body.light-mode .hero-welcome-content h1 {
    font-family: var(--font-ui) !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    color: #dbb458 !important;
    -webkit-text-fill-color: #dbb458 !important;
    background: none !important;
    animation: premiumTitleReveal 2s cubic-bezier(0.16, 1, 0.3, 1) both,
        goldShimmerText 5s linear infinite !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    opacity: 1 !important;
    visibility: visible !important;
}


@media (max-width: 768px) {

    /* Hero Overlay visibility */
    .hero-featured-overlay {
        display: block !important;
    }

    /* Force background visibility & scroll behavior for mobile */
    .hero-featured {
        background-attachment: scroll !important;
        background-size: cover !important;
    }
}

/* =========================================
   NEW HERO BACKGROUND: GOLDEN SILK AURORA
   ========================================= */

@keyframes luxuryFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Dark Mode: Deep Black with flowing Rivers of Gold */
.hero-featured {
    background: linear-gradient(-45deg, #000000, #1c1405, #3a2a0d, #000000) !important;
    background-size: 400% 400% !important;
    animation: luxuryFlow 15s ease infinite !important;
    /* Slower = More Classy */
    position: relative;
    z-index: 0;
}

/* Light Mode: Pearlescent Cream with Soft Gold threads */
body.light-mode .hero-featured {
    background: linear-gradient(-45deg, #fdfbf7, #fdf1d6, #faeac2, #ffffff) !important;
    background-size: 400% 400% !important;
    animation: luxuryFlow 15s ease infinite !important;
    /* Ensure blend is good if we kept particles */
    background-blend-mode: normal !important;
}

/* Enable for Mobile specifically - Restored Gradients Optimized for Helio G25 */
@media (max-width: 768px) {
    .hero-featured {
        background: linear-gradient(-45deg, #000000, #1c1405, #3a2a0d, #000000) !important;
        background-size: 200% 200% !important;
        /* Smaller size = less memory pressure */
        animation: luxuryFlow 20s ease infinite !important;
        /* Slower = less CPU spike */
        will-change: background-position;
    }

    body.light-mode .hero-featured {
        background: linear-gradient(-45deg, #fdfbf7, #fdf1d6, #faeac2, #ffffff) !important;
        background-size: 200% 200% !important;
        animation: luxuryFlow 20s ease infinite !important;
    }
}

/* =========================================
   LIGHT MODE RESTORATION (SHOP & PRODUCTS)
   ========================================= */

body.light-mode .collections-container,
body.light-mode .shop-main-header,
body.light-mode .shop-controls-wrapper {
    background: #fff !important;
}

body.light-mode .shop-controls-wrapper {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .clear-search {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #333 !important;
}

body.light-mode .shop-sub-nav {
    border-top-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .shop-sub-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03) !important;
}



body.light-mode .shop-main-header h2 {
    color: var(--accent) !important;
    background: linear-gradient(135deg, #a88542 0%, #c5a059 50%, #a88542 100%) !important;
    background-size: 100% auto !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    font-weight: 800 !important;
}

body.light-mode .gold-separator {
    background: #c5a059 !important;
    height: 5px !important;
    width: 120px !important;
    margin: 1.5rem auto 0 !important;
    border-radius: 50px !important;
    opacity: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

body.light-mode .gold-separator::after {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -150%;
    width: 150% !important;
    height: 100% !important;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.8) 45%,
            rgba(255, 245, 180, 1) 50%,
            rgba(255, 255, 255, 0.8) 55%,
            rgba(255, 255, 255, 0) 70%,
            transparent 100%) !important;
    animation: separatorShimmer 3s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    z-index: 2 !important;
}




body.light-mode .collection-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .collection-row::before {
    color: rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .smart-watches-collection {
    background: linear-gradient(135deg, #fdfbf7 0%, #ffffff 100%) !important;
}

body.light-mode .watches-collection {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%) !important;
}

body.light-mode .perfumes-collection {
    background: linear-gradient(135deg, #faf7f2 0%, #ffffff 100%) !important;
}

body.light-mode .electronics-collection {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

body.light-mode .bakhoor-collection {
    background: linear-gradient(135deg, #fdfbf7 0%, #faf7f2 100%) !important;
}

body.light-mode .toys-collection {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%) !important;
}

body.light-mode .kids-collection {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%) !important;
}

body.light-mode .collection-banner h3 {
    color: #000 !important;
}

body.light-mode .collection-banner p {
    color: #666 !important;
}

body.light-mode .product-card {
    background: #fff !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .product-img-wrapper {
    background-color: #f9f9f9 !important;
}

body.light-mode .product-info {
    background: #fff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .product-info h3 {
    color: #1a1a1a !important;
}

body.light-mode .view-more-btn {
    color: #000 !important;
}

body.light-mode .shipping-info-tag {
    background: rgba(76, 175, 80, 0.1) !important;
}

/* === LIGHT MODE PRODUCT MODAL RESTORATION === */
body.light-mode .product-modal-content {
    background: #fff !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}

body.light-mode .product-modal-body {
    background: #fff !important;
}

body.light-mode .product-modal-image {
    background: #ffffff !important;
}

body.light-mode .product-modal-info h2 {
    color: #1a1a1a !important;
}

body.light-mode .modal-desc {
    color: #666 !important;
}

body.light-mode .product-specs {
    background: #f7f3e6 !important;
    color: #1a1a1a !important;
}

body.light-mode .modal-actions {
    background: #ffffff !important;
    border-top: 1px solid #e6e1cd !important;
    position: relative !important;
    z-index: 100 !important;
    opacity: 1 !important;
    /* Convert margin to padding */
    margin-top: 0 !important;
    padding-top: 2.5rem !important;
    box-shadow: 0 -10px 30px rgba(255, 255, 255, 0.95);
    width: 100% !important;
}

body.light-mode .solid-bg-fix {
    background: #ffffff !important;
    opacity: 1 !important;
}

/* Update ESPOIR brand text in Arabic language version to use the premium Outfit font and gold style */
html[lang="ar"] .hero-welcome-content h1 {
    font-family: var(--font-ui) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

/* Force gold color for ESPOIR in Light Mode Arabic to match subline */
body.light-mode html[lang="ar"] .hero-welcome-content h1,
body.light-mode .hero-welcome-content h1 {
    color: #dbb458 !important;
    -webkit-text-fill-color: #dbb458 !important;
    background: none !important;
    text-shadow: none !important;
}

html[lang="ar"] .preloader-logo-final {
    font-family: var(--font-ui) !important;
    font-weight: 800 !important;
    letter-spacing: 4px !important;
}

html[lang="ar"] .footer-brand-section .logo {
    font-family: var(--font-ui) !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
}

/* Force gold color for Footer Logo in Light Mode */
body.light-mode .footer-brand-section .logo {
    color: #dbb458 !important;
    -webkit-text-fill-color: #dbb458 !important;
}

/* Premium Styling for ESPOIR in About Section */
.brand-name-about {
    font-family: var(--font-ui) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #dbb458;
}

/* Light mode specifics for About section brand */

/* Light mode specifics for About section brand */
body.light-mode .brand-name-about {
    color: #dbb458 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.light-mode .gold-separator {
    opacity: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

body.light-mode .gold-separator::after {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -150%;
    width: 150% !important;
    height: 100% !important;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.8) 45%,
            rgba(255, 245, 180, 1) 50%,
            rgba(255, 255, 255, 0.8) 55%,
            rgba(255, 255, 255, 0) 70%,
            transparent 100%) !important;
    animation: separatorShimmer 3s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    z-index: 2 !important;
}

body.light-mode .collection-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .collection-row::before {
    color: rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .smart-watches-collection {
    background: linear-gradient(135deg, #fdfbf7 0%, #ffffff 100%) !important;
}

body.light-mode .watches-collection {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%) !important;
}

body.light-mode .perfumes-collection {
    background: linear-gradient(135deg, #faf7f2 0%, #ffffff 100%) !important;
}

body.light-mode .electronics-collection {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

body.light-mode .bakhoor-collection {
    background: linear-gradient(135deg, #fdfbf7 0%, #faf7f2 100%) !important;
}

body.light-mode .toys-collection {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%) !important;
}

body.light-mode .kids-collection {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%) !important;
}

body.light-mode .collection-banner h3 {
    color: #000 !important;
}

body.light-mode .collection-banner p {
    color: #666 !important;
}

body.light-mode .product-card {
    background: #fff !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .product-img-wrapper {
    background-color: #f9f9f9 !important;
}

body.light-mode .product-info {
    background: #fff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .product-info h3 {
    color: #1a1a1a !important;
}

body.light-mode .view-more-btn {
    color: #000 !important;
}

body.light-mode .shipping-info-tag {
    background: rgba(76, 175, 80, 0.1) !important;
}

/* === LIGHT MODE PRODUCT MODAL RESTORATION === */
body.light-mode .product-modal-content {
    background: #fff !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}

body.light-mode .product-modal-body {
    background: #fff !important;
}

body.light-mode .product-modal-image {
    background: #ffffff !important;
}

body.light-mode .product-modal-info h2 {
    color: #1a1a1a !important;
}

body.light-mode .modal-desc {
    color: #666 !important;
}

body.light-mode .product-specs {
    background: #f7f3e6 !important;
    color: #1a1a1a !important;
}

body.light-mode .modal-actions {
    background: #ffffff !important;
    border-top: 1px solid #e6e1cd !important;
    position: relative !important;
    z-index: 100 !important;
    opacity: 1 !important;
    margin-top: 0 !important;
    padding-top: 2.5rem !important;
    box-shadow: 0 -10px 30px rgba(255, 255, 255, 0.95);
    width: 100% !important;
}

body.light-mode .solid-bg-fix {
    background: #ffffff !important;
    opacity: 1 !important;
}

/* Update ESPOIR brand text in Arabic language version */
html[lang="ar"] .hero-welcome-content h1 {
    font-family: var(--font-ui) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

body.light-mode html[lang="ar"] .hero-welcome-content h1,
body.light-mode .hero-welcome-content h1 {
    color: #dbb458 !important;
    -webkit-text-fill-color: #dbb458 !important;
    background: none !important;
    text-shadow: none !important;
}

html[lang="ar"] .preloader-logo-final {
    font-family: var(--font-ui) !important;
    font-weight: 800 !important;
    letter-spacing: 4px !important;
}

html[lang="ar"] .footer-brand-section .logo {
    font-family: var(--font-ui) !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
}

body.light-mode .footer-brand-section .logo {
    color: #dbb458 !important;
    -webkit-text-fill-color: #dbb458 !important;
}

.brand-name-about {
    font-family: var(--font-ui) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #dbb458;
}

body.light-mode .brand-name-about {
    color: #dbb458 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.signature-text .brand-name-about {
    font-size: 1.1em;
    letter-spacing: 1px !important;
}

/* =========================================
   AUTH MODAL - LIGHT MODE OVERRIDES
   ========================================= */
body.light-mode .auth-modal-content.auth-split-design {
    background: #ffffff !important;
    border-color: rgba(197, 160, 89, 0.2) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15) !important;
}

body.light-mode .auth-form-side,
body.light-mode .auth-image-side {
    background: #ffffff !important;
}

body.light-mode .auth-form h3,
body.light-mode .modal h3 {
    color: #000 !important;
    text-shadow: none !important;
}

body.light-mode .auth-tabs {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .auth-tab {
    color: #666 !important;
}

body.light-mode .auth-tab.active {
    color: #c5a059 !important;
}

body.light-mode .auth-tab:hover:not(.active) {
    color: #333 !important;
}

body.light-mode .auth-field input,
body.light-mode .auth-form input[type="email"],
body.light-mode .auth-form input[type="password"],
body.light-mode .auth-form input[type="text"] {
    background: #f8f8f8 !important;
    border-color: #ddd !important;
    color: #333 !important;
}

body.light-mode .auth-field input:focus,
body.light-mode .auth-form input:focus {
    background: #fff !important;
    border-color: #c5a059 !important;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1) !important;
}

body.light-mode .auth-field label {
    background: #ffffff !important;
    color: #666 !important;
}

body.light-mode .auth-field input:focus+label {
    color: #c5a059 !important;
}

body.light-mode .close-auth-modal {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
}

body.light-mode .close-auth-modal:hover {
    background: #c5a059 !important;
    color: #fff !important;
    border-color: #c5a059 !important;
}

body.light-mode .toggle-password {
    color: #888 !important;
}

body.light-mode .toggle-password:hover {
    color: #c5a059 !important;
}

body.light-mode .auth-divider::before,
body.light-mode .auth-divider::after {
    background: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .auth-divider span {
    color: #666 !important;
}

body.light-mode .auth-helper a {
    color: #c5a059 !important;
}

body.light-mode .auth-helper a:hover {
    color: #a08040 !important;
}

body.light-mode .benefit-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)) !important;
    border-color: rgba(197, 160, 89, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .benefit-text h4 {
    color: #c5a059 !important;
    text-shadow: none !important;
}

body.light-mode .benefit-text p {
    color: #444 !important;
    text-shadow: none !important;
}

body.light-mode .benefit-icon {
    filter: drop-shadow(0 2px 4px rgba(197, 160, 89, 0.3)) !important;
    color: #c5a059 !important;
}

body.light-mode #reset-password-form p {
    color: #666 !important;
}

/* =========================================
   DARK MODE SCROLLED NAVBAR PREMIUM
   ========================================= */
html:not(.light-mode) .navbar.scrolled,
body:not(.light-mode) .navbar.scrolled {
    background: rgba(8, 8, 8, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

html:not(.light-mode) .navbar.scrolled .nav-links li a,
body:not(.light-mode) .navbar.scrolled .nav-links li a {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 1024px) {

    html:not(.light-mode) .navbar.scrolled .nav-links,
    body:not(.light-mode) .navbar.scrolled .nav-links {
        background: rgba(12, 12, 12, 0.98) !important;
        border-left: 1px solid rgba(197, 160, 89, 0.2) !important;
    }
}

/* =========================================
   LIGHT MODE SCROLLED NAVBAR PREMIUM
   ========================================= */
body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15) !important;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.08) !important;
}

body.light-mode .navbar.scrolled .nav-links li a {
    color: #1a1a1a !important;
    font-weight: 600 !important;
}


/* Ensure mobile menu matches in light mode */
@media (max-width: 1024px) {
    body.light-mode .navbar.scrolled .nav-links {
        background: rgba(255, 255, 255, 0.98) !important;
        border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05) !important;
    }
}

/* =========================================
   PAPER PLANE ANIMATION
   ========================================= */
.send-icon {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    display: inline-block !important;
    /* Required for transform animation */
    animation: paperPlaneFly 2s infinite ease-in-out !important;
    /* ALWAYS ANIMATING */
}


@keyframes paperPlaneFly {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2px, -2px) rotate(-5deg);
    }

    50% {
        transform: translate(0, 0) rotate(0deg);
    }

    75% {
        transform: translate(-2px, 2px) rotate(5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Extra effect on click */
.btn[type="submit"]:active .send-icon {
    transform: translate(30px, -30px) scale(0) !important;
    opacity: 0 !important;
    transition: 0.3s ease-in !important;
}

/* =========================================
   TRUST BADGES ANIMATION
   ========================================= */
.trust-icon {
    transition: transform 0.6s ease-in-out;
    transform-origin: center;
    display: inline-block !important;
    /* Required for transform animation */
    animation: iconPulseFloat 3s infinite ease-in-out !important;
}

@keyframes iconPulseFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

/* =========================================
   DARK MODE PRODUCT MODAL FIXES (FINAL)
   ========================================= */
body:not(.light-mode) .product-modal-content {
    background: #0f0f0f !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Quantity Wrapper Text */
body:not(.light-mode) .modal-quantity-wrapper span {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Quantity Controls Container */
body:not(.light-mode) .quantity-controls {
    border: 1px solid rgba(197, 160, 89, 0.4) !important;
    background: #1a1a1a !important;
}

/* Quantity Buttons */
body:not(.light-mode) .quantity-controls .qty-btn {
    background: transparent !important;
    color: #c5a059 !important;
    font-size: 1.2rem !important;
    border: none !important;
}

body:not(.light-mode) .quantity-controls .qty-btn:hover {
    background: rgba(197, 160, 89, 0.1) !important;
}

/* THE INPUT BOX - FIXING THE WHITE LINES */
body:not(.light-mode) .quantity-controls input,
body:not(.light-mode) #modal-qty {
    background: #121212 !important;
    color: #ffffff !important;
    border: none !important;
    border-left: 1px solid rgba(197, 160, 89, 0.3) !important;
    border-right: 1px solid rgba(197, 160, 89, 0.3) !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    height: 40px !important;
}

/* Fix for Button */
body:not(.light-mode) .modal-actions {
    background: transparent !important;
    padding-top: 1rem !important;
}

body:not(.light-mode) #modal-add-to-cart {
    background: #c5a059 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.4) !important;
}

/* Details Text */
body:not(.light-mode) .modal-desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

body:not(.light-mode) .product-specs h3 {
    color: #ffffff !important;
}

body:not(.light-mode) .product-specs ul li {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Stock Status Fix */
body:not(.light-mode) .stock-status {
    font-weight: 600 !important;

}


/* =========================================
   SCROLL-BASED VISIBILITY FOR FLOATING BUTTONS (BLUR EFFECT)
   ========================================= */
.whatsapp-float,
.theme-toggle-btn {
    transition: opacity 0.5s ease, filter 0.5s ease, visibility 0.5s ease, transform 0.5s ease !important;
    filter: blur(0px);
}

.floating-controls-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    filter: blur(15px) !important;
    transform: scale(0.9) !important;
    /* Slight shrink for depth */
}

.star-spin {
    animation: starRotate360 4s infinite linear !important;
}

@keyframes starRotate360 {
    from {
        transform: translateY(-5px) scale(1.1) rotate(0deg);
    }

    to {
        transform: translateY(-5px) scale(1.1) rotate(360deg);
    }
}

/* === SMART MOBILE OPTIMIZATION (TKHFIF DAKIY) === */
@media (max-width: 768px) {

    /* 1. Optimize Toggle Button - HELIO G25 SPECIAL OPS */
    .theme-toggle-btn {
        box-shadow: none !important;
        transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6), background-color 0.2s linear !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        will-change: transform;
        contain: content;
        /* Isolate from layout tree */
        transform: translate3d(0, 0, 0);
    }

    .toggle-circle {
        box-shadow: none !important;
        transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6) !important;
        will-change: transform;
        transform: translate3d(0, 0, 0);
    }

    .theme-toggle-btn svg,
    .toggle-text {
        transition: opacity 0.15s ease !important;
        animation: none !important;
        /* Kill any sub-animations */
    }

    /* 2. Global Transition - ABSOLUTE INSTANT SWITCH */
    /* Kill EVERYTHING during transition to save Helio G25 CPU */
    body.theme-switching *:not(.theme-toggle-btn):not(.toggle-circle):not(.toggle-text):not(svg) {
        transition: none !important;
        animation-play-state: paused !important;
    }

    /* Force body background to be instant too */
    body.theme-switching {
        transition: none !important;
    }

    body,
    .navbar,
    .footer,
    .product-card,
    .sidebar,
    .modal,
    section,
    div {
        transition-property: background-color, color !important;
        /* Only animate properties that don't trigger reflow */
        transition-duration: 0.1s !important;
        box-shadow: none !important;
    }

    /* 3. PARTICLES ON MOBILE */
    /* Completely hide in Light Mode on mobile - CPU is too weak for hidden layers */
    body.light-mode .gold-particles,
    body.light-mode .footer-particles {
        display: none !important;
    }

    /* Hide all particles DURING theme switch */
    body.theme-switching .gold-particles,
    body.theme-switching .footer-particles {
        display: none !important;
    }

    .gold-particles span {
        will-change: transform !important;
    }

    .gold-particles span:nth-child(even) {
        display: none !important;
        /* Keep it light */
    }

    /* 4. Disable expensive graphical effects */
    .navbar,
    .cart-sidebar,
    .modal-content,
    .hero-featured-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-attachment: scroll !important;
    }

    /* Kill clip-path and complex shapes on mobile */
    .frame-corner,
    .visual-frame {
        border-width: 1px !important;
        box-shadow: none !important;
    }
}