/**
 * Shop Header & Footer Styles
 * Common styles for all store pages
 */

/* ========================================================
   فرض الأرقام الإنجليزية ومنع تحويلها لأرقام عربية من المتصفح
   Force Western Arabic / English Numerals (0-9) & Disable OpenType 'locl'
   ======================================================== */
:root, html, body, *, *::before, *::after {
    font-variant-numeric: normal;
    -webkit-font-feature-settings: "lnum" 1, "tnum" 1, "locl" 0, "numr" 0;
    -moz-font-feature-settings: "lnum" 1, "tnum" 1, "locl" 0, "numr" 0;
    font-feature-settings: "lnum" 1, "tnum" 1, "locl" 0, "numr" 0;
}

/* shop-unified.css يتم تحميله كـ <link> منفصل في كل صفحة لضمان تحديث الكاش */

/* ===== FLASH DEALS ANNOUNCEMENT BAR ===== */
.flash-deals-bar {
    background: linear-gradient(90deg, #0f3460 0%, #16213e 40%, #1a1a2e 60%, #16213e 100%);
    position: fixed;
    top: 128px;
    left: 0;
    right: 0;
    z-index: 997;
    padding: 12px 0 10px;
    height: auto;
    border-top: 1px solid rgba(255, 165, 0, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

/* Adjust position when header collapses on scroll */
.header-collapsed .flash-deals-bar {
    top: 113px;
}

.flash-deals-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.flash-deals-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flash-deals-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 0 15px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
    margin: 0 auto;
    max-width: fit-content;
}

.flash-deals-inner:hover {
    opacity: 0.85;
}

.flash-deals-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.flash-bolt {
    font-size: 1rem;
    animation: boltPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(255, 165, 0, 0.5));
}

.flash-deals-timer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.timer-label i {
    font-size: 0.8rem;
    color: #ffa500;
    animation: clockPulse 2s ease-in-out infinite;
}

.timer-countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr;
}

.timer-unit {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 42px;
    text-align: center;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.timer-lbl {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.timer-num {
    font-size: 1rem;
    font-weight: 800;
    color: #ffa500;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
    line-height: 1.1;
    height: 22px;
    min-width: 32px;
    overflow: hidden;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    perspective: 120px;
    transform-style: preserve-3d;
    background: #18181b;
    border: 1px solid rgba(255, 165, 0, 0.25);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 4px rgba(0,0,0,0.3);
    text-shadow: 0 0 4px rgba(255, 165, 0, 0.5);
}

.timer-num::after {
    display: none;
}

.timer-sep {
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(255, 165, 0, 0.5);
    animation: sepBlink 1s step-end infinite;
    line-height: 1;
}

.flash-deals-close {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 2;
}

.flash-deals-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Flash bar adjustments for body spacing */
body.has-flash-bar {
    padding-top: 195px;
    transition: padding-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Auto-hide: collapsed state for flash deals */
.flash-deals-bar.navbar-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Auto-hide: collapsed state for categories navbar */
.categories-navbar.navbar-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Adjust body padding when header is collapsed */
.header-collapsed.has-flash-bar {
    padding-top: 110px;
}

body.header-collapsed {
    padding-top: 100px;
}

/* Animations */
@keyframes tickFlipOut {
    0% { transform: rotateX(0deg); opacity: 1; }
    50% { transform: rotateX(-90deg); opacity: 0; }
    100% { transform: rotateX(-90deg); opacity: 0; }
}
@keyframes tickFlipIn {
    0% { transform: rotateX(90deg); opacity: 0; }
    50% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}
@keyframes flashBarGlow {
    0%, 100% { box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 2px 20px rgba(255, 165, 0, 0.15); }
}

@keyframes boltPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes clockPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes sepBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

/* Flash Deals Responsive */
@media (max-width: 992px) {
    body.has-flash-bar {
        padding-top: 190px;
    }
    body.header-collapsed.has-flash-bar {
        padding-top: 95px;
    }
}

@media (max-width: 768px) {
    .flash-deals-bar {
        top: 100px;
        height: auto;
        padding: 4px 0;
    }
    
    /* Keep mobile position constant when header collapsed */
    .header-collapsed .flash-deals-bar {
        top: 100px;
    }
    
    .flash-deals-bar .container {
        height: auto;
    }
    
    .flash-deals-inner {
        flex-direction: column;
        gap: 4px;
        padding: 4px 10px;
        transform: translateY(2.5px);
    }
    
    .flash-deals-text {
        font-size: 0.85rem;
        font-weight: 800;
        gap: 3px;
        white-space: normal;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .flash-bolt {
        font-size: 0.85rem;
    }
    
    .timer-label {
        display: none;
    }
    
    .timer-unit {
        padding: 3px 6px;
        min-width: 32px;
        border-radius: 5px;
    }
    
    .timer-num {
        font-size: 0.78rem;
        height: 18px;
        min-width: 26px;
        font-family: 'Cairo', sans-serif;
        letter-spacing: 0;
    }
    
    .timer-lbl {
        font-size: 0.48rem;
    }
    
    .timer-sep {
        font-size: 0.75rem;
    }
    
    body.has-flash-bar {
        padding-top: 170px;
    }
    body.header-collapsed.has-flash-bar {
        padding-top: 55px;
    }
}

@media (max-width: 480px) {
    .flash-deals-inner {
        gap: 3px;
        padding: 3px 8px;
    }
    
    .flash-deals-text {
        font-size: 0.78rem;
        font-weight: 800;
        gap: 2px;
        white-space: normal;
        text-align: center;
    }
    
    .flash-bolt {
        font-size: 0.75rem;
    }
    
    .timer-unit {
        min-width: 28px;
        padding: 2px 5px;
    }
    
    .timer-num {
        font-size: 0.7rem;
        letter-spacing: 0;
        height: 16px;
        min-width: 22px;
        font-family: 'Cairo', sans-serif;
    }
    
    .timer-lbl {
        font-size: 0.45rem;
    }
    
    .timer-sep {
        font-size: 0.65rem;
    }
    
    body.has-flash-bar {
        padding-top: 165px;
    }
    body.header-collapsed.has-flash-bar {
        padding-top: 50px;
    }
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #00d4ff;
    --primary-rgb: 0, 212, 255;
    --primary-dark: #00a8cc;
    --secondary: #6366f1;
    --secondary-rgb: 99, 102, 241;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-tertiary: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #94a3b8;
    --border-color: #2a2a3a;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
}

/* ===== BASE STYLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: clip; }

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    padding-top: 120px; /* Space for fixed header + categories bar */
    transition: padding-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

input, button, select, textarea {
    font-family: inherit;
}

a { text-decoration: none; color: inherit; }

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

.shop-header .container,
.categories-navbar .container,
.flash-deals-bar .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== BANNER CENTERING ===== */
.shop-banners-section {
    padding: 20px 0;
    width: 100%;
}
.shop-banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.shop-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.shop-banner a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}
.shop-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.shop-banner-full {
    grid-column: span 2;
    margin: 0 auto;
    width: 100%;
}
@media (max-width: 768px) {
    .shop-banners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .shop-banner-full {
        grid-column: span 1;
        margin: 0 auto;
    }
}

/* ===== HEADER ===== */
.shop-header {
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-top {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compact header when scrolled */
.header-collapsed .header-top {
    padding: 10px 0;
}

.header-collapsed .shop-logo img {
    height: 35px;
}

.header-collapsed .shop-nav-links > a {
    padding: 6px 16px;
    font-size: 0.82rem;
    outline-offset: 2px;
}

.header-collapsed .header-icon {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
}

.header-collapsed .search-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
}

.header-collapsed .currency-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
    outline-offset: 2px;
}

.shop-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.shop-logo img { 
    height: 45px;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Search Button */
.search-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* ===== LUXURY SEARCH OVERLAY MODAL ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 24, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 20px 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    overflow-y: auto;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-modal-container {
    width: 100%;
    max-width: 720px;
    background: linear-gradient(145deg, rgba(22, 27, 46, 0.96) 0%, rgba(14, 18, 34, 0.98) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 212, 255, 0.12);
    padding: 22px;
    transform: translateY(-25px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.search-overlay.active .search-modal-container {
    transform: translateY(0) scale(1);
}

/* Modal Header & Input Wrapper */
.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(10, 14, 28, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 5px 8px 5px 16px;
    transition: all 0.3s ease;
    gap: 10px;
}

.search-input-wrapper:focus-within {
    border-color: #00d4ff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.25), 0 0 0 2px rgba(0, 212, 255, 0.15);
}

.search-icon-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.search-modal-form {
    flex: 1;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 4px;
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    font-weight: 400;
}

.search-clear-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    transform: scale(1.1);
}

.search-submit-action-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #0077ff 100%);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.35);
}

.search-submit-action-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.search-close-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.search-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Trending / Popular Quick Searches */
.search-trending-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trending-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 10px;
}

.trending-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 6px 14px;
    color: var(--text-primary, #ffffff);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.trending-chip:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

/* Results Container */
.live-search-results {
    display: none;
    max-height: 58vh;
    overflow-y: auto;
    margin-top: 16px;
    background: rgba(12, 16, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: #00d4ff transparent;
}

.live-search-results.active {
    display: block;
}

.live-search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
}

.live-search-results-count {
    color: #00d4ff;
    font-weight: 700;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-primary, #ffffff);
    transition: all 0.2s ease;
    border-radius: 12px;
    margin-bottom: 4px;
    position: relative;
    border: 1px solid transparent;
}

.live-search-item:hover,
.live-search-item.selected {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
    transform: translateX(-3px);
}

.live-search-img {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

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

.live-search-item:hover .live-search-img img {
    transform: scale(1.08);
}

.live-search-info {
    flex: 1;
    min-width: 0;
}

.live-search-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.live-search-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 8px;
    border-radius: 12px;
}

.live-search-discount-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1px 6px;
    border-radius: 10px;
}

.live-search-featured-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 1px 6px;
    border-radius: 10px;
}

.live-search-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.live-search-name mark {
    background: rgba(0, 212, 255, 0.28);
    color: #00d4ff;
    border-radius: 3px;
    padding: 0 3px;
    font-weight: 700;
}

.live-search-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.live-search-current-price {
    font-weight: 800;
    color: #00d4ff;
}

.live-search-old-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
}

.live-search-out {
    background: #ff4757;
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.live-search-price .sar-symbol {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

.live-search-action-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.live-search-item:hover .live-search-action-arrow {
    background: #00d4ff;
    color: #000;
    transform: translateX(-4px);
}

/* View All Bar */
.live-search-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    margin-top: 6px;
    text-align: center;
    color: #000000;
    background: linear-gradient(90deg, #00d4ff 0%, #7c3aed 100%);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.live-search-all:hover {
    box-shadow: 0 6px 22px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Loading & Empty States */
.live-search-loading {
    padding: 35px 20px;
    text-align: center;
    color: #00d4ff;
    font-size: 0.95rem;
    font-weight: 600;
}

.live-search-empty {
    padding: 35px 20px;
    text-align: center;
}

.live-search-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 12px;
}

.live-search-empty-text {
    font-size: 0.95rem;
    color: var(--text-primary, #ffffff);
    margin-bottom: 6px;
    font-weight: 600;
}

.live-search-empty-subtext {
    font-size: 0.82rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 14px;
}

/* Light Theme Overrides */
[data-theme="light"] .search-overlay {
    background: rgba(240, 244, 250, 0.85);
}

[data-theme="light"] .search-modal-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12), 0 0 30px rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .search-input-wrapper {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .search-input-wrapper input {
    color: #0f172a;
}

[data-theme="light"] .search-input-wrapper input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .search-close-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #334155;
}

[data-theme="light"] .trending-chip {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #334155;
}

[data-theme="light"] .trending-chip:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #4f46e5;
}

[data-theme="light"] .live-search-results {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .live-search-name {
    color: #0f172a;
}

[data-theme="light"] .live-search-item:hover,
[data-theme="light"] .live-search-item.selected {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .live-search-current-price {
    color: #4f46e5;
}

[data-theme="light"] .live-search-action-arrow {
    background: rgba(0, 0, 0, 0.04);
    color: #64748b;
}

[data-theme="light"] .live-search-empty-text {
    color: #0f172a;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .search-overlay {
        padding: 40px 12px 20px;
    }
    .search-modal-container {
        padding: 16px 12px;
        border-radius: 20px;
    }
    .search-icon-badge {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.85rem;
    }
    .search-input-wrapper {
        padding: 4px 6px 4px 12px;
    }
    .search-input-wrapper input {
        font-size: 16px !important; /* iOS zoom prevention */
    }
    .search-input-wrapper input::placeholder {
        font-size: 0.82rem;
    }
    .search-submit-action-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.9rem;
    }
    .search-close-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 0.95rem;
    }
    .trending-chip {
        padding: 4px 10px;
        font-size: 0.76rem;
    }
    .live-search-img {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    .live-search-name {
        font-size: 0.88rem;
    }
    .live-search-results {
        max-height: 65vh;
    }
}

/* Nav Links */
.shop-nav-links { 
    display: flex; 
    gap: 14px; 
    align-items: center;
    flex-wrap: nowrap;
}

.shop-nav-links > a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s;
    position: relative;
    padding: 9px 16px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 7px;
    outline: 1px solid var(--border-color);
    outline-offset: 2px;
    white-space: nowrap !important;
    flex-shrink: 0;
    line-height: 1.2;
}

.shop-nav-links > a:hover,
.shop-nav-links > a.active {
    color: #fff;
    background: var(--bg-secondary);
    border-color: rgba(255,255,255,0.2);
    outline-color: var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}

.shop-nav-links > a i {
    color: var(--primary);
    font-size: 1.05rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.shop-nav-links > a:hover i,
.shop-nav-links > a.active i {
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--primary);
}

/* Exit Link Style */
.shop-nav-links > a.exit-link {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.shop-nav-links > a.exit-link:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: var(--danger);
    outline-color: var(--danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* Responsive Navigation for Tablets / Smaller Desktops (993px - 1350px) */
@media (max-width: 1350px) and (min-width: 993px) {
    .shop-nav {
        gap: 15px;
    }
    .shop-nav-links {
        gap: 10px;
    }
    .shop-nav-links > a {
        padding: 8px 12px;
        font-size: 0.82rem;
        gap: 6px;
        outline-offset: 2px;
    }
    .shop-nav-links > a i {
        font-size: 0.95rem;
    }
    .currency-btn {
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
        gap: 6px !important;
        outline-offset: 2px !important;
    }
}

@media (max-width: 1150px) and (min-width: 993px) {
    .shop-nav {
        gap: 10px;
    }
    .shop-nav-links {
        gap: 8px;
    }
    .shop-nav-links > a {
        padding: 7px 10px;
        font-size: 0.78rem;
        gap: 5px;
    }
    .shop-nav-links > a i {
        font-size: 0.9rem;
    }
    .currency-btn {
        padding: 7px 10px !important;
        font-size: 0.78rem !important;
        gap: 5px !important;
    }
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-icon:hover,
.header-icon.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.header-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--danger);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* ===== CATEGORIES NAVBAR - loaded from shop-unified.css ===== */

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 18px 16px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active { right: 0; }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-nav-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border-color: var(--danger);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mobile-nav-links a {
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.mobile-nav-links a i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-nav-links a.exit-link {
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-top: auto;
}

.mobile-nav-links a.exit-link:hover {
    background: var(--danger);
    color: #fff;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
}

.mobile-nav-overlay.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    /* Footer handled by shop-unified.css */
}

@media (max-width: 992px) {
    body { padding-top: 120px; }
    
    /* الـ padding بيفضل ثابت لما الهيدر يتقفل وقت السكرول: تغييره كان بيحرّك كل الصفحة 25px = CLS في جوجل */
    
    .shop-nav-links { display: none; }
    
    .mobile-menu-btn { display: flex; }
    
    /* Categories navbar handled by shop-unified.css */
    
    .header-icons { gap: 10px; }
    
    .header-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 12px; }
    
    body { 
        padding-top: 105px !important; 
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    body.has-flash-bar { padding-top: 170px !important; }
    /* كان: body.header-collapsed { padding-top: 55px } — بيحرّك الصفحة 50px (و115px مع شريط العروض) مع كل سكرول = CLS */
    
    /* Prevent iOS Safari automatic zoom on focus */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    .shop-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--bg-primary) !important;
    }
    
    .header-top {
        padding: 8px 0;
    }
    
    .shop-nav { 
        flex-wrap: nowrap; 
        gap: 8px; 
        padding: 0;
        justify-content: space-between;
        align-items: center;
    }
    
    .shop-logo {
        flex-shrink: 0;
        order: 1;
    }
    
    .shop-logo img { height: 30px; }
    
    .header-icons {
        gap: 5px;
        flex-shrink: 1;
        min-width: 0;
        order: 2;
        flex-wrap: nowrap;
    }
    
    .header-icons .header-icon { 
        width: 36px; 
        height: 36px; 
        font-size: 0.9rem;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }
    
    .header-icons .header-icon .badge {
        top: -3px;
        right: -3px;
        min-width: 17px;
        height: 17px;
        font-size: 0.65rem;
    }
    
    .search-btn { 
        width: 36px; 
        height: 36px; 
        font-size: 0.9rem;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-menu-btn {
        order: 3;
        width: 36px;
        height: 36px;
        padding: 4px;
        font-size: 1.15rem;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Collapsed state on mobile */
    .header-collapsed .header-top {
        padding: 6px 0;
    }
    
    .header-collapsed .shop-logo img {
        height: 28px;
    }
    
    .header-collapsed .header-icons .header-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    
    .header-collapsed .search-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    
    .header-collapsed .mobile-menu-btn {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    
    .currency-btn {
        padding: 5px 10px !important;
        font-size: 0.78rem !important;
        gap: 6px !important;
        outline-offset: 1px !important;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
    
    .header-icons { gap: 4px; }
    
    .currency-btn {
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
        gap: 4px !important;
    }
    
    .header-icons .header-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    
    .search-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    
    .mobile-menu-btn {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }
    
    .shop-logo img { height: 26px; }
    
    /* Collapsed on very small screens */
    .header-collapsed .header-icons .header-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .header-collapsed .search-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .header-collapsed .mobile-menu-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .header-collapsed .shop-logo img { height: 25px; }
}

/* ===== CURRENCY DROPDOWN ===== */
.currency-dropdown {
    position: relative;
    display: inline-block;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    outline: 1px solid var(--border-color);
    outline-offset: 2px;
    white-space: nowrap !important;
    flex-shrink: 0;
    line-height: 1.2;
}

.currency-btn:hover {
    color: #fff;
    background: var(--bg-secondary);
    border-color: rgba(255,255,255,0.2);
    outline-color: var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}

.currency-btn .fi {
    font-size: 1.1rem;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.currency-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.currency-code {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.currency-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    color: var(--text-muted);
    margin-right: -4px;
}

.currency-dropdown.open .currency-arrow {
    transform: rotate(180deg);
}

.currency-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 130px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 5px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 1001;
}

/* Custom scrollbar for menu */
.currency-menu::-webkit-scrollbar {
    width: 3px;
}
.currency-menu::-webkit-scrollbar-track {
    background: transparent;
}
.currency-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

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

.currency-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    font-size: 0.7rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    white-space: nowrap;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.currency-option.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}

.currency-option .currency-flag {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.currency-option .fi {
    font-size: 0.85rem;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.currency-option .currency-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.68rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currency-option .currency-symbol {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.currency-option .currency-symbol {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Saudi Riyal Symbol (SVG with mask - inherits color) */
.sar-symbol,
.sar-symbol-btn,
.sar-symbol-menu {
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1124.14 1256.39'%3E%3Cpath d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/%3E%3Cpath d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1124.14 1256.39'%3E%3Cpath d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/%3E%3Cpath d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.sar-symbol {
    width: 1em;
    height: 1.1em;
    vertical-align: -0.15em;
    margin-right: 2px;
}

/* SAR symbol in currency button */
.sar-symbol-btn {
    width: 18px;
    height: 20px;
    vertical-align: middle;
}

/* SAR symbol in currency menu */
.sar-symbol-menu {
    width: 14px;
    height: 16px;
    vertical-align: middle;
}

/* Primary/Cyan color for SAR symbol in prices */
.price .sar-symbol,
.product-price .sar-symbol,
.total-price .sar-symbol,
.cart-total .sar-symbol {
    filter: invert(74%) sepia(98%) saturate(1642%) hue-rotate(152deg) brightness(101%) contrast(104%);
}

/* Prevent coloring and adjust size of SAR symbol in old/slashed prices */
.old-price .sar-symbol,
.attr-old-price .sar-symbol,
.price-box .old-price .sar-symbol,
.related-product-price .old .sar-symbol,
.variation-price .old .sar-symbol,
span.old-price .sar-symbol {
    filter: none !important;
    width: 0.63em !important;
    height: 0.7em !important;
    vertical-align: -0.03em !important;
}

/* Currency dropdown responsive */
@media (max-width: 992px) {
    /* Hide from nav-links on tablet/mobile */
    .shop-nav-links .currency-dropdown {
        display: none;
    }
}

/* Mobile Currency Button - in header icons area */
/* Hidden - currency is moved to mobile menu (burger) */
.header-icons .currency-dropdown {
    display: none !important;
}

/* Mobile Currency in Mobile Nav */
.mobile-currency-selector {
    padding: 12px 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.mobile-currency-selector .currency-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mobile-currency-selector .currency-label i {
    font-size: 0.8rem;
    color: var(--primary);
}

.mobile-currency-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mobile-currency-options a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.mobile-currency-options a .fi {
    font-size: 0.9rem;
    border-radius: 2px;
}

.mobile-currency-options a:hover,
.mobile-currency-options a.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Currency Dropdown in Mobile Nav */
.mobile-currency-dropdown {
    position: relative;
}

.mobile-currency-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    text-align: right;
    transition: all 0.3s;
}

.mobile-currency-toggle:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}

.mobile-currency-toggle i:first-child {
    width: 24px;
    text-align: center;
    color: var(--text-muted);
}

.mobile-currency-toggle:hover i:first-child {
    color: var(--primary);
}

.mobile-currency-toggle .current-currency {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary);
}

.mobile-currency-toggle .current-currency .fi {
    font-size: 1rem;
}

.mobile-currency-toggle .mobile-currency-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.mobile-currency-dropdown.open .mobile-currency-arrow {
    transform: rotate(180deg);
}

.mobile-currency-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 5px 10px 10px;
    overflow: hidden;
}

.mobile-currency-dropdown.open .mobile-currency-submenu {
    display: block;
}

.mobile-currency-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.mobile-currency-submenu a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}

.mobile-currency-submenu a.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
}

.mobile-currency-submenu a .fi {
    font-size: 1.1rem;
}

.mobile-currency-submenu a .currency-name {
    flex: 1;
}

.mobile-currency-submenu a .currency-code {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== LIGHT THEME VARIABLES & OVERRIDES ===== */
[data-theme="light"] {
    --primary: #7c3aed; /* Rich Purple */
    --primary-rgb: 124, 58, 237;
    --secondary: #4f46e5; /* Indigo */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.06);
}

/* Light Theme Header Overrides */
[data-theme="light"] .shop-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .header-top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* Light Theme Mobile Nav Overrides */
[data-theme="light"] .mobile-nav {
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-currency-submenu {
    background: rgba(0, 0, 0, 0.04);
}

/* Light Theme Search Overlay Overrides */
[data-theme="light"] .search-overlay {
    background: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .search-close {
    color: var(--text-primary);
}

/* Light Theme Currency Dropdown Overrides */
[data-theme="light"] .currency-menu {
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .currency-option {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .currency-option:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Light Theme Giveaway Card Overrides */
[data-theme="light"] .giveaway-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

[data-theme="light"] .giveaway-card > div:first-child {
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="light"] #giveaway-locked-state {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px dashed rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] #giveaway-locked-state > div[style*="border-top"] {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] #email-unlock-form-container {
    border-top: 1px dashed rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] #giveaway-unlocked-state {
    background: rgba(16, 185, 129, 0.03) !important;
}

/* Light Theme FAQ Accordion Overrides */
[data-theme="light"] .faq-answer {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* Light Theme Flash Deals Bar Overrides */
[data-theme="light"] .flash-deals-bar {
    background: linear-gradient(90deg, #f5f3ff 0%, #ede9fe 40%, #faf5ff 60%, #ede9fe 100%);
    border-top: 1px solid rgba(124, 58, 237, 0.25);
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.04);
}

[data-theme="light"] .flash-deals-inner,
[data-theme="light"] .flash-deals-text {
    color: #4c1d95;
}

[data-theme="light"] .timer-label {
    color: rgba(91, 33, 182, 0.85);
}

[data-theme="light"] .timer-unit {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .timer-lbl {
    color: rgba(91, 33, 182, 0.65);
}

[data-theme="light"] .timer-num {
    color: #ea580c;
    background: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.18);
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

[data-theme="light"] .theme-toggle-btn:hover {
    color: #000;
}

.theme-icon-light {
    display: none;
}
.theme-icon-dark {
    display: block;
}

[data-theme="light"] .theme-icon-light {
    display: block;
    color: #f59e0b; /* Warm sun color */
}
[data-theme="light"] .theme-icon-dark {
    display: none;
}

/* Collapsed Header state for Theme Toggle Button */
.header-collapsed .theme-toggle-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
}

/* Responsive sizes for Theme Toggle Button */
@media (max-width: 768px) {
    .theme-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    .header-collapsed .header-icons .theme-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .theme-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .header-collapsed .header-icons .theme-toggle-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}

/* Mobile Theme Toggle Styles */
.mobile-theme-toggle-wrapper {
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: right;
    font-family: inherit;
    font-weight: 600;
}

.mobile-theme-toggle span {
    font-size: 0.95rem;
}

[data-theme="light"] .mobile-theme-toggle {
    color: var(--text-primary);
}

/* Light Theme Advanced Accessibility Overrides */
[data-theme="light"] .shop-nav-links > a:hover,
[data-theme="light"] .shop-nav-links > a.active {
    color: var(--text-primary) !important;
    background: var(--bg-primary) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .product-category-tag {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #4f46e5 !important;
}

[data-theme="light"] .live-search-all {
    color: var(--secondary) !important;
    background: var(--bg-tertiary) !important;
}

[data-theme="light"] .live-search-all:hover {
    background: rgba(99, 102, 241, 0.08) !important;
}

[data-theme="light"] .product-title a:hover {
    color: var(--secondary) !important;
}

[data-theme="light"] .stock-badge.out-of-stock {
    color: #b91c1c !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

[data-theme="light"] .stock-badge.in-stock-unlimited {
    color: #047857 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

[data-theme="light"] .stock-badge.limited-stock {
    color: #b45309 !important;
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

[data-theme="light"] .share-btn-round.twitter:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .form-input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .form-input:hover:not(:focus) {
    border-color: #94a3b8 !important;
}

[data-theme="light"] .form-input:focus {
    border-color: var(--primary) !important;
    background: #ffffff !important;
}

[data-theme="light"] .alert-error {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: #b91c1c !important;
}

[data-theme="light"] .alert-error a {
    color: #b91c1c !important;
}

[data-theme="light"] .alert-success {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
    color: #047857 !important;
}

[data-theme="light"] .btn-logout {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

[data-theme="light"] .btn-logout:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

[data-theme="light"] .od-delivery h4 {
    color: #047857 !important;
}

[data-theme="light"] .od-instructions h4 {
    color: #b45309 !important;
}

[data-theme="light"] .wishlist-category {
    color: var(--secondary) !important;
}

[data-theme="light"] .btn-view:hover {
    border-color: var(--secondary) !important;
    color: var(--secondary) !important;
}

[data-theme="light"] .search-result-count strong,
[data-theme="light"] .search-result-count i {
    color: var(--secondary) !important;
}

[data-theme="light"] .toast-info i {
    color: var(--secondary) !important;
}

[data-theme="light"] .cart-modal-product-info span,
[data-theme="light"] .wishlist-modal-product-info span {
    color: var(--secondary) !important;
}

[data-theme="light"] .wishlist-modal-product-info .sar-symbol {
    background-color: var(--secondary) !important;
}

[data-theme="light"] .cart-modal-btn.secondary:hover,
[data-theme="light"] .wishlist-modal-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: var(--secondary) !important;
    color: var(--secondary) !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15) !important;
}

[data-theme="light"] .live-search-item:hover,
[data-theme="light"] .live-search-item.selected {
    background: rgba(124, 58, 237, 0.08) !important;
}

[data-theme="light"] .currency-option.active {
    background: rgba(124, 58, 237, 0.1) !important;
    color: var(--primary) !important;
}

[data-theme="light"] .header-icon:hover,
[data-theme="light"] .header-icon.active,
[data-theme="light"] .search-btn:hover,
[data-theme="light"] .theme-toggle-btn:hover {
    color: #fff !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3) !important;
}

[data-theme="light"] .product-card:hover {
    border-color: rgba(124, 58, 237, 0.4) !important;
    box-shadow: var(--shadow-glow), 0 25px 50px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .btn-view:hover {
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3) !important;
}

[data-theme="light"] .btn-order.primary:hover {
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.3) !important;
}

[data-theme="light"] .product-info .product-category-tag {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(79, 70, 229, 0.08)) !important;
    border-color: rgba(124, 58, 237, 0.25) !important;
    color: var(--primary) !important;
}

[data-theme="light"] .product-title {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(79, 70, 229, 0.03) 100%) !important;
    border: 1px solid rgba(124, 58, 237, 0.12) !important;
    border-top: 1px solid rgba(124, 58, 237, 0.18) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(124, 58, 237, 0.04) !important;
}

[data-theme="light"] .product-card:hover .product-title {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(79, 70, 229, 0.06) 100%) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

/* ==========================================================================
   Single Product Details Cards & Warranty/Terms Divider
   ========================================================================== */
.product-features-showcase.single-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-warranty-section.single-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.warranty-section-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warranty-terms-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.4) 20%, rgba(124, 58, 237, 0.6) 50%, rgba(0, 212, 255, 0.4) 80%, transparent 100%);
    margin: 22px 0;
}

.warranty-terms-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 3px 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

[data-theme="light"] .warranty-terms-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(124, 58, 237, 0.25) 20%, rgba(124, 58, 237, 0.5) 50%, rgba(124, 58, 237, 0.25) 80%, transparent 100%);
}

[data-theme="light"] .warranty-terms-divider span {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

/* ===== زراير الهيدر (حسابي / المتجر / التقييمات / ...): متجاوبة وبتتظبط لوحدها =====
   - على الشاشات الكبيرة بتكبر مع عرض الشاشة (clamp)
   - لو اتضاف زرار جديد بتصغر لوحدها (--nav-k حسب عدد الزراير) علشان تفضل في سطر واحد */
@media (min-width: 1351px) {
    .shop-nav-links { --nav-k: 1; gap: calc(clamp(10px, .75vw, 16px) * var(--nav-k)); }
    .shop-nav-links:has(> :nth-child(7)) { --nav-k: .9; }
    .shop-nav-links:has(> :nth-child(8)) { --nav-k: .82; }
    .shop-nav-links:has(> :nth-child(9)) { --nav-k: .74; }
    .shop-nav-links:has(> :nth-child(10)) { --nav-k: .66; }
    .shop-nav-links > a,
    .shop-nav-links .currency-btn {
        font-size: calc(clamp(.9rem, .55rem + .38vw, 1.05rem) * var(--nav-k));
        padding: calc(clamp(9px, .6vw, 12px) * var(--nav-k)) calc(clamp(16px, 1.15vw, 22px) * var(--nav-k));
        gap: calc(8px * var(--nav-k));
    }
    .shop-nav-links > a i { font-size: calc(clamp(1.05rem, .7rem + .35vw, 1.2rem) * var(--nav-k)); }
    /* لما الهيدر يصغر مع السكرول: نفس الفكرة بس أصغر */
    .header-collapsed .shop-nav-links > a,
    .header-collapsed .shop-nav-links .currency-btn {
        font-size: calc(clamp(.84rem, .55rem + .28vw, .95rem) * var(--nav-k));
        padding: calc(7px * var(--nav-k)) calc(clamp(14px, 1vw, 18px) * var(--nav-k));
    }
}

/* =====================================================================
   الوضع الفاتح — ضبط الألوان اللي كانت معمولة للخلفية الغامقة
   (فحص تباين آلي لكل صفحات المتجر 2026-10-10: أي نص تباينه أقل من 3 على خلفيته)
   ===================================================================== */
/* رمادي فاتح جداً → رمادي مقروء */
html[data-theme="light"] .old-price,
html[data-theme="light"] .bundle-orig-price,
html[data-theme="light"] .bundle-item-old-price,
html[data-theme="light"] .bundle-checkout-orig-val,
html[data-theme="light"] .category-circle-count,
html[data-theme="light"] .sort-label,
html[data-theme="light"] .rating-count,
html[data-theme="light"] .seo-keywords,
html[data-theme="light"] .seo-keywords a,
html[data-theme="light"] .auth-header p,
html[data-theme="light"] .auth-footer,
html[data-theme="light"] .pm-sub,
html[data-theme="light"] .pmp-how small,
html[data-theme="light"] .secure-notice,
html[data-theme="light"] .secure-notice span,
html[data-theme="light"] .rev-date-box time,
html[data-theme="light"] .rev-reply-date,
html[data-theme="light"] .rev-product-label,
html[data-theme="light"] .bundle-deal-total-label,
html[data-theme="light"] .bundle-item-name-link i { color: #64748b !important; }

/* سماوي فاتح → تركواز غامق */
html[data-theme="light"] .products-count strong,
html[data-theme="light"] .auth-footer a { color: #0e7490 !important; }

/* برتقالي/دهبي فاتح → كهرماني غامق */
html[data-theme="light"] .cat-nav-link.offers-link,
html[data-theme="light"] .category-circle-item.featured-category .category-circle-name,
html[data-theme="light"] .bundle-product-card .stat-badge.views,
html[data-theme="light"] .bundle-badge-pill:not(.success),
html[data-theme="light"] .badge-item-addon,
html[data-theme="light"] .bundle-deal-tag,
html[data-theme="light"] .bundle-deal-cta-header,
html[data-theme="light"] .bundle-savings-badge,
html[data-theme="light"] .bundle-checkout-title span,
html[data-theme="light"] .bundle-deal-equal-divider,
html[data-theme="light"] .rating-digit,
html[data-theme="light"] .rev-rating-num,
html[data-theme="light"] .rev-hero-badge { color: #b45309 !important; }

/* أخضر فاتح → زمردي غامق */
html[data-theme="light"] .bundle-item-price,
html[data-theme="light"] .bundle-final-price,
html[data-theme="light"] .verified-buyer-badge,
html[data-theme="light"] .rev-badge-verified,
html[data-theme="light"] .rev-score-badge,
html[data-theme="light"] .checkout-step.done .cs-txt em,
html[data-theme="light"] .checkout-step.done .cs-txt small,
html[data-theme="light"] .summary-row .value.item-total,
html[data-theme="light"] .summary-row.total-row .value,
html[data-theme="light"] .cart-summary .summary-row.total .value,
html[data-theme="light"] .order-card .product-info .price,
html[data-theme="light"] .order-card .order-header .order-status,
html[data-theme="light"] .pmp-cta p { color: #047857 !important; }

/* أحمر فاتح → أحمر مقروء */
html[data-theme="light"] .clear-cart-btn,
html[data-theme="light"] .remove-item-btn { color: #dc2626 !important; }

/* بنفسجي فاتح → بنفسجي غامق (متوافق فقط مع ...) */
html[data-theme="light"] .requirements-title span { color: #6d28d9 !important; }

/* أزرار نصها أبيض على لون فاتح → نفس اللون أغمق درجة */
html[data-theme="light"] .btn-add-cart.btn-options,
html[data-theme="light"] .badge.badge-custom,
html[data-theme="light"] .bundle-badge-main,
html[data-theme="light"] .order-card .order-actions .action-btn:not(.btn-whatsapp):not(.btn-telegram) { background: linear-gradient(135deg, #d97706, #b45309) !important; }
html[data-theme="light"] .btn-order.cart,
html[data-theme="light"] #submit-btn.submit-btn:not(:disabled) { background: linear-gradient(135deg, #059669 0%, #047857 100%) !important; }
html[data-theme="light"] .shop-horizontal-search-submit { background: linear-gradient(135deg, #0891b2, #4f46e5) !important; }

/* إطارات صور العروض (كروت الباقات): بيضا بظل خفيف بدل الكحلي */
html[data-theme="light"] .bundle-product-image { background: radial-gradient(circle at center, rgba(245, 158, 11, .14) 0%, #f8fafc 75%); }
html[data-theme="light"] .bundle-card-glass-frame { background: #fff !important; border-color: rgba(15, 23, 42, .08) !important; box-shadow: 0 10px 24px rgba(15, 23, 42, .12) !important; }

/* صندوق "اشتري المجموعة ووفر" في صفحة المنتج: تصميم فاتح متكامل (كان غامق ونصوصه فاتحة) */
html[data-theme="light"] .bundle-deal-box { background: linear-gradient(145deg, #fffbeb 0%, #ffffff 60%); border-color: rgba(217, 119, 6, .35); box-shadow: 0 14px 34px rgba(15, 23, 42, .08); }
html[data-theme="light"] .bundle-deal-header { border-bottom-color: rgba(15, 23, 42, .08); }
html[data-theme="light"] .bundle-deal-title { color: #0f172a; }
html[data-theme="light"] .bundle-deal-desc { color: #475569; }
html[data-theme="light"] .bundle-deal-box .bundle-item-card { background: #fff; border-color: rgba(15, 23, 42, .1); box-shadow: 0 6px 16px rgba(15, 23, 42, .06); }
html[data-theme="light"] .bundle-deal-box .bundle-item-card.is-current { background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%); border-color: rgba(14, 116, 144, .45); }
html[data-theme="light"] .bundle-deal-box .bundle-item-card:hover { border-color: #d97706; }
html[data-theme="light"] .badge-item-current { color: #0e7490; background: rgba(14, 116, 144, .1); border-color: rgba(14, 116, 144, .35); }
html[data-theme="light"] .bundle-item-img-wrap { background: #f1f5f9; border-color: rgba(15, 23, 42, .08); }
html[data-theme="light"] .bundle-item-name-link { color: #0f172a; }
html[data-theme="light"] .bundle-item-name-link:hover { color: #b45309; }
html[data-theme="light"] .bundle-item-checkbox-label { background: #f8fafc; border-color: rgba(15, 23, 42, .1); }
html[data-theme="light"] .bundle-item-checkbox-label:hover { background: #fffbeb; border-color: rgba(217, 119, 6, .35); }
html[data-theme="light"] .bundle-check-text { color: #334155; }
html[data-theme="light"] .bundle-deal-cta { background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%); border-color: rgba(217, 119, 6, .4); box-shadow: 0 10px 24px rgba(15, 23, 42, .06); }
html[data-theme="light"] .bundle-savings-badge { background: rgba(217, 119, 6, .1); border-color: rgba(217, 119, 6, .35); }
html[data-theme="light"] .btn-bundle-buy { background: linear-gradient(135deg, #d97706, #dc2626) !important; }

/* صندوق "محتاج مساعدة" في طرق الدفع */
html[data-theme="light"] .pmp-cta { background: linear-gradient(135deg, #ecfdf5, #ffffff); border-color: rgba(4, 120, 87, .3); }

/* الوضع الفاتح: ألوان الأساس نفسها (النص الخافت كان #94a3b8 = تباين 2.5 على الأبيض) */
[data-theme="light"] { --text-muted: #64748b; --success: #059669; --warning: #d97706; }
html[data-theme="light"] .category-circle-item.offers-category .category-circle-name,
html[data-theme="light"] .terms-sub-header span { color: #b45309 !important; }
html[data-theme="light"] .checkout-step.current .cs-txt small { color: #0369a1 !important; }
html[data-theme="light"] .btn-add-bundle-cart { background: linear-gradient(135deg, #d97706, #dc2626) !important; }
html[data-theme="light"] .bundle-btn-primary { background: linear-gradient(135deg, #0891b2, #4f46e5) !important; }

/* ===== أيقونات الهيدر: كل أيقونة بلونها (خلفية خفيفة من نفس اللون، وعند الوقوف/الصفحة الحالية تتملي باللون) =====
   الغامق: القمر بنفسجي — البحث سماوي — المفضلة وردي — السلة أخضر — الحساب أزرق — القائمة كهرماني
   الفاتح: الشمس برتقالي — البحث سماوي — المفضلة وردي — السلة أخضر — الحساب أزرق — القائمة بنفسجي */
html .header-icons .theme-toggle-btn { --ic: #c4b5fd; --ic-rgb: 167, 139, 250; }
html .header-icons .search-btn { --ic: #22d3ee; --ic-rgb: 34, 211, 238; }
html .header-icons .header-icon[href="wishlist"] { --ic: #fb7185; --ic-rgb: 251, 113, 133; }
html .header-icons .header-icon[href="cart"] { --ic: #34d399; --ic-rgb: 52, 211, 153; }
html .header-icons .header-icon[href="my-account"] { --ic: #60a5fa; --ic-rgb: 96, 165, 250; }
html .mobile-menu-btn { --ic: #fbbf24; --ic-rgb: 251, 191, 36; }
html[data-theme="light"] .header-icons .theme-toggle-btn { --ic: #ea580c; --ic-rgb: 234, 88, 12; }
html[data-theme="light"] .header-icons .search-btn { --ic: #0891b2; --ic-rgb: 8, 145, 178; }
html[data-theme="light"] .header-icons .header-icon[href="wishlist"] { --ic: #e11d48; --ic-rgb: 225, 29, 72; }
html[data-theme="light"] .header-icons .header-icon[href="cart"] { --ic: #059669; --ic-rgb: 5, 150, 105; }
html[data-theme="light"] .header-icons .header-icon[href="my-account"] { --ic: #2563eb; --ic-rgb: 37, 99, 235; }
html[data-theme="light"] .mobile-menu-btn { --ic: #7c3aed; --ic-rgb: 124, 58, 237; }

html .header-icons .theme-toggle-btn,
html .header-icons .search-btn,
html .header-icons .header-icon,
html .mobile-menu-btn {
    color: var(--ic, var(--text-secondary)) !important;
    background: rgba(var(--ic-rgb, 148, 163, 184), .1) !important;
    border-color: rgba(var(--ic-rgb, 148, 163, 184), .3) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
html .header-icons .theme-icon-light { color: inherit; }
html .header-icons .theme-toggle-btn:hover,
html .header-icons .search-btn:hover,
html .header-icons .header-icon:hover,
html .header-icons .header-icon.active,
html .mobile-menu-btn:hover {
    color: #06101f !important;
    background: var(--ic) !important;
    border-color: var(--ic) !important;
    box-shadow: 0 10px 24px rgba(var(--ic-rgb), .35) !important;
}
html[data-theme="light"] .header-icons .theme-toggle-btn,
html[data-theme="light"] .header-icons .search-btn,
html[data-theme="light"] .header-icons .header-icon,
html[data-theme="light"] .mobile-menu-btn {
    background: rgba(var(--ic-rgb), .08) !important;
    border-color: rgba(var(--ic-rgb), .22) !important;
    box-shadow: none;
}
html[data-theme="light"] .header-icons .theme-toggle-btn:hover,
html[data-theme="light"] .header-icons .search-btn:hover,
html[data-theme="light"] .header-icons .header-icon:hover,
html[data-theme="light"] .header-icons .header-icon.active,
html[data-theme="light"] .mobile-menu-btn:hover {
    color: #fff !important;
    background: var(--ic) !important;
    border-color: var(--ic) !important;
    box-shadow: 0 10px 24px rgba(var(--ic-rgb), .3) !important;
}
