:root {
    /* ══════ Al-Badr Royal Gold Palette ══════ */
    --header-height: 78px;
    --primary: #C6A55C;
    --primary-glow: #C6A55C44;
    --primary-alt: #e8c873;
    --primary-dark: #a88b44;
    --white: #ffffff;
    --bg-dark: #020617;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent: #C6A55C;
    --success: hsl(142, 71%, 45%);
    --error: hsl(0, 84%, 60%);
    
    /* Loader Tokens */
    --loader-bg: rgba(2, 6, 23, 0.98);
    --loader-accent: #C6A55C;

    --bg-dark-alt: hsl(222, 47%, 7%);
    --text-white: hsl(0, 0%, 100%);
    
    /* Glassmorphism Tokens */
    --glass-bg-thick: hsla(0, 0%, 100%, 0.08);
    --glass-border-bright: hsla(0, 0%, 100%, 0.2);
    --glass-background: rgba(15, 23, 42, 0.7);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-blur: 25px;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px hsla(0, 0%, 0%, 0.4);
    --shadow-glow: 0 0 25px var(--primary-glow);
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.32);
    --shadow-xl: 0 28px 70px rgba(0, 0, 0, 0.45);
    
    /* Toast Colors */
    --toast-success: #10b981;
    --toast-error: #ef4444;
    --toast-info: #3b82f6;
    
    /* Legacy tokens still referenced across merged pages */
    --secondary: #0b1220;
    --primary-light: #e8c873;
    --gray-100: rgba(255, 255, 255, 0.06);
    --text-light: rgba(255, 255, 255, 0.75);
    
    /* Border Radii */
    --rounded-sm: 8px;
    --rounded-md: 12px;
    --rounded-lg: 20px;
    --rounded-xl: 25px;
    --rounded-full: 100px;
}

/* ===== Toast Animations ===== */
@keyframes slide-in-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 25px;
    border-radius: var(--rounded-lg);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slide-in-right 0.3s ease forwards;
    position: relative;
    overflow: hidden;
}

.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 100%;
    animation: toast-progress 3s linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast.success::after { background: var(--toast-success); }
.toast.error::after { background: var(--toast-error); }
.toast.info::after { background: var(--toast-info); }

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.product-card.skeleton-card {
    height: 400px;
    pointer-events: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Almarai', sans-serif;
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ===== Glassmorphism Background System ===== */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}
.bg-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.06;
}
.bg-orbs .orb-1 {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -200px; right: -150px;
    animation: float 20s ease-in-out infinite;
}
.bg-orbs .orb-2 {
    width: 500px; height: 500px;
    background: #1e3a5f;
    bottom: -100px; left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}
.bg-orbs .orb-3 {
    width: 350px; height: 350px;
    background: var(--primary-alt);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: float 18s ease-in-out infinite;
}

.video-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(198,165,92,0.1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ===== Background System ===== */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.6;
}

/* Static Background - Only for Admin */
.admin-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(8, 145, 133, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(8, 145, 133, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(13, 44, 41, 0.2) 0%, transparent 50%),
        linear-gradient(160deg, #0a1f1d 0%, #0d2c29 30%, #0f3632 50%, #0d2c29 70%, #081a18 100%);
    z-index: -2;
    pointer-events: none;
}

.admin-page #bg-video { display: none !important; }

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(8, 145, 133, 0.2) 100%);
    z-index: -1;
    pointer-events: none;
}


/* Al-Badr Premium Design System — Duplicate :root removed */

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}
.badge-pending { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-approved { background: rgba(16, 185, 129, 0.16); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.28); }
.badge-rejected { background: rgba(239, 68, 68, 0.16); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.28); }
.badge-archived { background: rgba(148, 163, 184, 0.12); color: rgba(226, 232, 240, 0.8); border: 1px solid rgba(148, 163, 184, 0.20); }
.badge-processing { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-shipped { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-delivered { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-cancelled { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Merchant guided-list pills */
.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    font-weight: 900;
    font-size: 12px;
}
.choice-pill:hover { transform: translateY(-1px); border-color: rgba(198,165,92,0.30); background: rgba(198,165,92,0.08); }
.choice-pill.active { border-color: rgba(198,165,92,0.45); background: rgba(198,165,92,0.14); color: var(--white); }
.choice-pill .mini { width: 10px; height: 10px; border-radius: 999px; background: var(--pill, var(--primary)); opacity: 0.9; box-shadow: 0 0 18px rgba(198,165,92,0.15); }
.choice-help { margin-top: 10px; font-size: 11px; opacity: 0.65; line-height: 1.7; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes cartPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(198, 165, 92, 0.1); }
    50% { transform: scale(1.03); box-shadow: 0 0 40px 10px rgba(198, 165, 92, 0.05); }
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Premium Polishing */
.glass-card, .product-card, .btn, .admin-table-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.glass-card:hover, .product-card:hover {
    transform: translateY(-10px) scale(1.01);
    background: var(--glass-bg-thick);
    border-color: var(--glass-border-bright);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.btn:active {
    transform: scale(0.95);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 5px var(--primary-glow); }
    50% { box-shadow: 0 0 25px var(--primary-glow); }
}

.glow-btn {
    animation: glow-pulse 3s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer-text {
    background: linear-gradient(90deg, #fff, var(--primary), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

li { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Badge ===== */
.badge {
    background: var(--accent);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 12px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════ HEADER ═══════ */
.header {
    background: hsla(222, 47%, 11%, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Card buttons & pricing */
.product-detailed-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 12px;
    direction: rtl;
}

.product-detailed-buybar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-detailed-buybar .btn-add-cart-gold {
    flex: 1.2;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
}

.btn-details-outline {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    color: #F8FAFC;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 10px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
}

.btn-details-outline:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

/* ============================================================
   Product Details Full Modal (نافذة الشرح والتفاصيل الكاملة)
   ============================================================ */
.product-details-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 10, 22, 0.85);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.product-details-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.product-details-modal-card {
    width: min(920px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 28px;
    background: linear-gradient(180deg, #0d223d 0%, #061528 100%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(212, 175, 55, 0.2);
    position: relative;
    padding: 30px;
    direction: rtl;
    color: #F8FAFC;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-details-modal-overlay.is-open .product-details-modal-card {
    transform: translateY(0) scale(1);
}

.product-details-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #F8FAFC;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}

.product-details-modal-close:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #EF4444;
    color: #FF6B6B;
    transform: rotate(90deg) scale(1.1);
}

/* Modal Grid */
.pdm-grid {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

/* Gallery inside modal */
.pdm-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdm-main-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(25, 182, 255, 0.08), transparent 75%), rgba(7, 22, 42, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pdm-main-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.pdm-main-image-wrap:hover .pdm-main-image {
    transform: scale(1.06);
}

.pdm-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.pdm-thumb {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(7, 22, 42, 0.8);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s ease;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdm-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdm-thumb:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.pdm-thumb.active {
    border-color: #D4AF37;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
}

/* Modal Info */
.pdm-info {
    display: flex;
    flex-direction: column;
}

.pdm-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pdm-category-badge {
    background: rgba(212, 175, 55, 0.15);
    color: #FFD700;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.pdm-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #10B981;
}

.pdm-stock-badge.out {
    color: #EF4444;
}

.pdm-title {
    font-size: 24px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.pdm-merchant-line {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdm-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pdm-price-current {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pdm-price-num {
    font-size: 28px;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

.pdm-price-curr {
    font-size: 16px;
    color: #FFD700;
    font-weight: 800;
}

.pdm-price-old {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
}

/* Description Box (الشرح الكامل) */
.pdm-description-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
}

.pdm-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdm-description-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    word-break: break-word;
}

/* Options (sizes / colors) */
.pdm-options-box {
    margin-bottom: 18px;
}

.pdm-sizes-chips,
.pdm-colors-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdm-size-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdm-size-chip:hover,
.pdm-size-chip.active {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
    color: #FFD700;
}

.pdm-color-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pdm-color-chip:hover,
.pdm-color-chip.active {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
}

.pdm-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Modal Actions */
.pdm-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.pdm-btn-cart {
    flex: 1.4;
    padding: 12px 24px;
    font-size: 15px;
}

.pdm-btn-link {
    flex: 1;
    padding: 12px 18px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .pdm-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-details-modal-card {
        padding: 20px;
    }
    .pdm-title {
        font-size: 20px;
    }
    .pdm-actions {
        flex-direction: column;
    }
}
.container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
.logo h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
}
.logo .dot { color: var(--accent); }
.logo span {
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-top: -4px;
}

.search-bar {
    flex: 1;
    max-width: 550px;
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}
.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 15px;
    color: var(--white);
}
.search-bar input::placeholder { color: rgba(255,255,255,0.5); }
.search-btn {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition);
}
.search-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.nav-icons { display: flex; align-items: center; gap: 8px; }
.mobile-search-trigger {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-search-trigger:hover {
    color: var(--accent);
    background: var(--glass-bg-thick);
    border-color: rgba(255,255,255,0.08);
}
.nav-link {
    position: relative;
    color: var(--white);
    transition: var(--transition);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
}
.nav-link:hover {
    color: var(--accent);
    background: var(--glass-bg-thick);
}
.nav-link.cart-link {
    background: rgba(198, 165, 92, 0.1);
    color: var(--primary);
}
.nav-link.cart-link:hover {
    background: rgba(198, 165, 92, 0.2);
    transform: scale(1.05);
}
.icon-badge {
    position: absolute;
    top: -2px;
    left: -2px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ═══════ NAV MENU (GLASS) ═══════ */
.nav-menu {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: var(--header-height);
    z-index: 999;
}
.nav-menu-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-menu-link {
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}
.nav-menu-link:hover {
    color: var(--primary);
    background: rgba(198, 165, 92, 0.05);
}
.nav-menu-link.active {
    color: var(--primary);
}
.nav-menu-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

/* ===== Home Trust Bar ===== */
body.page-home.has-home-trust-bar {
    --home-trust-bar-height: 52px;
    padding-top: var(--home-trust-bar-height);
}

body.page-home.has-home-trust-bar .header {
    top: var(--home-trust-bar-height);
}

body.page-home.has-home-trust-bar .nav-menu {
    top: calc(var(--header-height) + var(--home-trust-bar-height));
}

.home-trust-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1205;
    height: var(--home-trust-bar-height, 40px);
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.92) 50%, rgba(2, 6, 23, 0.98) 100%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(198, 165, 92, 0.2);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.home-trust-bar::before,
.home-trust-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 96px;
    z-index: 2;
    pointer-events: none;
}

.home-trust-bar::before {
    right: 0;
    background: linear-gradient(to left, rgba(2, 6, 23, 0.98), transparent);
}

.home-trust-bar::after {
    left: 0;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.98), transparent);
}

.home-trust-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    height: 100%;
    min-width: 0;
    direction: ltr;
    transform: translate3d(0, 0, 0);
    animation: home-trust-scroll 24s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.home-trust-bar:hover .home-trust-track {
    animation-play-state: paused;
}

.home-trust-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    height: 100%;
    padding-inline: 20px;
}

.home-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    flex-shrink: 0;
    height: 100%;
    padding-inline: 18px;
    direction: rtl;
}

.home-trust-item-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(198, 165, 92, 0.12);
    border: 1px solid rgba(198, 165, 92, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
    flex-shrink: 0;
}

.home-trust-item-icon i {
    width: 16px;
    height: 16px;
}

.home-trust-item-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1.1;
    white-space: nowrap;
}

.home-trust-item-copy strong {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.01em;
}

.home-trust-item-copy span {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
}

.home-trust-divider {
    width: 1px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(198, 165, 92, 0.06), rgba(198, 165, 92, 0.42), rgba(198, 165, 92, 0.06));
    flex-shrink: 0;
}

@keyframes home-trust-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-trust-track {
        width: 100%;
        justify-content: center;
        animation: none;
    }

    .home-trust-bar:hover .home-trust-track {
        animation-play-state: running;
    }

    .home-trust-group[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 768px) {
    body.page-home.has-home-trust-bar {
        --home-trust-bar-height: 46px;
    }

    body.page-home.has-home-trust-bar .nav-menu {
        top: calc(var(--header-height) + var(--home-trust-bar-height));
    }

    .home-trust-bar::before,
    .home-trust-bar::after {
        width: 56px;
    }

    .home-trust-group {
        padding-inline: 12px;
    }

    .home-trust-item {
        gap: 10px;
        padding-inline: 14px;
    }

    .home-trust-item-icon {
        width: 26px;
        height: 26px;
    }

    .home-trust-item-icon i {
        width: 14px;
        height: 14px;
    }

    .home-trust-item-copy strong {
        font-size: 0.74rem;
    }

    .home-trust-item-copy span {
        font-size: 0.65rem;
    }
}

@media (max-width: 560px) {
    .home-trust-item-copy span {
        display: none;
    }

    .home-trust-divider {
        height: 18px;
    }
}

@media (max-width: 520px) {
    .home-trust-group {
        gap: 14px;
        padding-inline: 14px;
    }

    .home-trust-item-copy {
        gap: 0;
    }

    .home-trust-item-copy span {
        display: none;
    }

    .home-trust-divider {
        width: 3px;
        height: 3px;
    }
}
.nav-menu-link .dropdown-arrow {
    margin-right: 5px;
    font-size: 10px;
    transition: var(--transition);
}
.nav-menu-link:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--glass-background);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--rounded-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-premium);
    z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: var(--rounded-sm);
    transition: var(--transition);
}
.dropdown-menu a:hover {
    color: var(--primary);
    background: rgba(198, 165, 92, 0.08);
}
.dropdown-menu a svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}
.dropdown-menu a:hover svg { opacity: 1; }

.nav-list {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-list a {
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

.nav-list a.active,
.nav-list a:hover { color: var(--accent); }

.nav-list a.active::after,
.nav-list a:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    color: var(--white);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
}

.offer-badge {
    background: var(--accent);
    color: var(--secondary);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.6); }
}

.hero h2 {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-weight: 900;
    transition: all 0.5s ease;
}

.highlight { color: var(--accent); }

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Mini Offers */
.hero-mini-offers {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.mini-offer-card {
    padding: 22px;
    border-radius: var(--rounded-xl);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(15px);
}

.mini-offer-card i {
    width: 48px;
    height: 48px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
    border-radius: var(--rounded-lg);
    flex-shrink: 0;
}

.mini-offer-card h4 {
    font-size: 17px;
    margin-bottom: 4px;
    color: var(--white);
}

.mini-offer-card p {
    font-size: 13px;
    color: var(--accent);
    margin: 0;
    font-weight: 700;
}

.mini-offer-card:hover, .mini-offer-card.active {
    background: rgba(8, 145, 133, 0.2);
    border-color: var(--primary);
    transform: scale(1.04) translateX(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 14px 36px;
    border-radius: var(--rounded-lg);
    font-weight: 800;
    border: none;
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    padding: 14px 36px;
    border-radius: var(--rounded-lg);
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Mobile Bottom Nav Premium */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: hsla(222, 47%, 7%, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--glass-border);
    display: none;
    justify-content: space-around;
    padding: 12px 0 25px;
    z-index: 2000;
    border-radius: 25px 25px 0 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item i {
    width: 24px;
    height: 24px;
    transition: var(--transition-smooth);
}

.bottom-nav-item.active i {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* ===== Features ===== */
.features {
    padding: 50px 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 25px;
    border-radius: var(--rounded-lg);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-5px);
}

.feature-item i {
    color: var(--accent);
    width: 36px;
    height: 36px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--white);
}

.feature-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ===== Section Title ===== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}

.section-title a {
    color: var(--accent);
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

.section-title a:hover { opacity: 0.8; }

/* ===== Categories ===== */
.categories { padding: 80px 0; }

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.category-card {
    height: 300px;
    border-radius: var(--rounded-xl);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    transition: var(--transition);
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(8,145,133,0.6), transparent 70%);
}

.category-content {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: var(--white);
}

.category-content h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.category-content p { font-size: 14px; color: rgba(255,255,255,0.8); }

.accessory { background-image: url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?auto=format&fit=crop&q=80&w=800'); }
.electronic { background-image: url('https://images.unsplash.com/photo-1496181133206-80ce9b88a853?auto=format&fit=crop&q=80&w=800'); }

/* ===== Products Grid ===== */
.products { padding: 0 0 80px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    border-radius: var(--rounded-xl);
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: var(--primary);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    margin-bottom: 15px;
    transition: var(--transition);
}

.product-card:hover .product-img { transform: scale(1.03); }

.product-info h3 {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--white);
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--accent);
    font-weight: 900;
    font-size: 18px;
}

.add-cart {
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-cart:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: rotate(90deg) scale(1.1);
}

/* ===== Catalog Detailed Grid ===== */
.catalog-page {
    padding: 36px 20px 84px;
}

.catalog-shell {
    display: block;
    width: 100%;
}

.catalog-sidebar {
    position: sticky;
    top: 132px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.catalog-sidebar-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.catalog-sidebar-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #08111f;
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    box-shadow: 0 18px 35px rgba(198, 165, 92, 0.24);
}

.catalog-sidebar-head h2 {
    font-size: 20px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 4px;
}

.catalog-sidebar-head p {
    color: rgba(255,255,255,0.58);
    font-size: 13px;
}

.catalog-filters {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.catalog-filter-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalog-filter-title {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255,255,255,0.52);
    letter-spacing: 0.08em;
}

.catalog-choice-list,
.catalog-toggle-list {
    display: grid;
    gap: 10px;
}

.catalog-choice,
.catalog-toggle {
    position: relative;
    display: block;
}

.catalog-choice input,
.catalog-toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.catalog-choice span,
.catalog-toggle span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    color: rgba(255,255,255,0.74);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 700;
}

.catalog-choice input:checked + span,
.catalog-toggle input:checked + span {
    color: #08111f;
    background: linear-gradient(135deg, rgba(198, 165, 92, 0.96), rgba(232, 200, 115, 0.96));
    border-color: rgba(232, 200, 115, 0.8);
    box-shadow: 0 18px 32px rgba(198, 165, 92, 0.2);
}

.catalog-reset-btn {
    width: 100%;
    padding: 12px 18px;
    margin-top: 4px;
}

.catalog-content {
    min-width: 0;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 24px 26px;
    margin-bottom: 24px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.catalog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    color: #08111f;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    margin-bottom: 10px;
}

.catalog-toolbar-copy h1 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.05;
    margin-bottom: 8px;
}

.catalog-toolbar-copy p {
    max-width: 760px;
    color: rgba(255,255,255,0.62);
    font-size: 14px;
    line-height: 1.8;
}

.catalog-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(200px, 240px);
    gap: 14px;
    align-items: center;
}

.catalog-search {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding-inline: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.catalog-search i {
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,0.48);
}

.catalog-search input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--white);
    font: inherit;
    padding-inline: 10px 2px;
}

.catalog-search input::placeholder {
    color: rgba(255,255,255,0.42);
}

.catalog-count-card {
    min-width: 120px;
    min-height: 54px;
    padding: 10px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.catalog-count-card strong {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.catalog-count-card span {
    font-size: 12px;
    color: rgba(255,255,255,0.52);
}

.catalog-sort-select {
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font: inherit;
    padding: 0 16px;
    outline: none;
}

.catalog-view-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.catalog-view-btn {
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: rgba(255,255,255,0.62);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    padding: 0 14px;
    cursor: pointer;
    transition: var(--transition);
}

.catalog-view-btn.is-active {
    color: #08111f;
    background: linear-gradient(135deg, rgba(198, 165, 92, 0.94), rgba(232, 200, 115, 0.94));
    box-shadow: 0 14px 30px rgba(198, 165, 92, 0.18);
}

.catalog-view-note {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    line-height: 1.8;
}

.catalog-recent-strip {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
}

.catalog-recent-strip-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.catalog-recent-strip-head strong {
    color: var(--white);
    font-size: 15px;
    font-weight: 900;
}

.catalog-recent-strip-head span {
    color: rgba(255,255,255,0.56);
    font-size: 12px;
}

.catalog-recent-strip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-recent-chip {
    min-width: 0;
    max-width: 100%;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    border-radius: 18px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
}

.catalog-recent-chip:hover {
    border-color: rgba(198, 165, 92, 0.34);
    transform: translateY(-2px);
}

.catalog-recent-chip-media {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.catalog-recent-chip-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-recent-chip-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
    text-align: right;
}

.catalog-recent-chip-copy strong,
.catalog-recent-chip-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-recent-chip-copy strong {
    font-size: 13px;
    font-weight: 900;
}

.catalog-recent-chip-copy small {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}

.catalog-page .product-pinterest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.pinterest-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.pinterest-media {
    position: relative;
    width: 100%;
    aspect-ratio: var(--ratio, 4 / 5);
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}

.pinterest-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.15s linear infinite;
}

.pinterest-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.24s ease;
}

.pinterest-media.is-loaded .pinterest-img {
    opacity: 1;
}

.pinterest-media.is-loaded .pinterest-skeleton,
.pinterest-media.is-error .pinterest-skeleton {
    opacity: 0;
    visibility: hidden;
}

.pinterest-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 18px;
    color: rgba(255,255,255,0.84);
    background: linear-gradient(180deg, rgba(7, 11, 22, 0.36), rgba(7, 11, 22, 0.7));
}

.pinterest-media.is-error .pinterest-fallback {
    display: flex;
}

.pinterest-overlay-top {
    position: absolute;
    inset: 14px 14px auto 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 2;
}

.pinterest-badge,
.pinterest-sale-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.08);
}

.pinterest-badge {
    color: var(--white);
    background: rgba(2, 6, 23, 0.74);
}

.pinterest-badge.in { color: #bbf7d0; }
.pinterest-badge.low { color: #fde68a; }
.pinterest-badge.out { color: #fecaca; }

.pinterest-sale-chip {
    color: #08111f;
    background: linear-gradient(135deg, rgba(198, 165, 92, 0.94), rgba(232, 200, 115, 0.94));
}

.pinterest-favorite,
.pinterest-open-chip {
    border: 0;
    cursor: pointer;
}

.pinterest-favorite {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.94);
    color: #08111f;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.pinterest-favorite.is-active {
    background: #ef4444;
    color: #fff;
}

.pinterest-open-chip {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.pinterest-body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.pinterest-body-top,
.pinterest-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pinterest-kicker {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.pinterest-title {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 900;
    color: var(--white);
}

.pinterest-desc {
    color: rgba(255,255,255,0.62);
    font-size: 14px;
    line-height: 1.85;
}

.pinterest-price-row strong {
    color: var(--primary);
    font-size: 19px;
    font-weight: 900;
}

.pinterest-price-row span {
    color: rgba(255,255,255,0.48);
    font-size: 12px;
    text-decoration: line-through;
}

.pinterest-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pinterest-meta-grid div {
    padding: 12px 13px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.pinterest-meta-grid span,
.pinterest-modal-spec-card span {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 4px;
}

.pinterest-meta-grid strong,
.pinterest-modal-spec-card strong {
    display: block;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.pinterest-tags,
.pinterest-modal-feature-list,
.pinterest-related-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pinterest-tags span,
.pinterest-modal-feature-list span,
.pinterest-related-reasons span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.84);
    font-size: 12px;
    font-weight: 800;
}

.pinterest-actions,
.pinterest-modal-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pinterest-action,
.pinterest-modal-action {
    min-height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--white);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    padding: 0 12px;
}

.pinterest-modal-action.primary {
    color: #08111f;
    background: linear-gradient(135deg, rgba(198, 165, 92, 0.94), rgba(232, 200, 115, 0.94));
}

.pinterest-modal {
    position: fixed;
    inset: 0;
    z-index: 2800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(12px);
}

.pinterest-modal.is-open {
    display: flex;
}

.pinterest-modal-dialog {
    position: relative;
    width: min(1240px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 18px;
    border-radius: 28px;
    background: rgba(10, 15, 28, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.pinterest-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.pinterest-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 18px;
}

.pinterest-modal-stage-media {
    position: relative;
    min-height: 360px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pinterest-modal-stage-image {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
}

.pinterest-modal-stage-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    min-height: 360px;
    padding: 24px;
    color: rgba(255,255,255,0.78);
    text-align: center;
}

.pinterest-modal-stage-media.is-error .pinterest-modal-stage-fallback {
    display: flex;
}

.pinterest-modal-stage-media.is-error .pinterest-modal-stage-image {
    display: none;
}

.pinterest-modal-stage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.pinterest-modal-stage-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.84);
    font-size: 12px;
    font-weight: 800;
}

.pinterest-modal-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.pinterest-modal-kicker {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.pinterest-modal-side h3 {
    font-size: 26px;
    line-height: 1.3;
    color: var(--white);
}

.pinterest-modal-side p {
    color: rgba(255,255,255,0.62);
    line-height: 1.85;
}

.pinterest-modal-spec-grid,
.pinterest-related-grid {
    display: grid;
    gap: 10px;
}

.pinterest-modal-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pinterest-modal-spec-card {
    padding: 12px 13px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.pinterest-related-head {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.pinterest-related-head strong {
    color: var(--white);
    font-size: 16px;
    font-weight: 900;
}

.pinterest-related-head span,
.pinterest-related-score,
.pinterest-related-empty {
    color: rgba(255,255,255,0.56);
    font-size: 12px;
}

.pinterest-related-card {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    text-align: right;
}

.pinterest-related-media {
    aspect-ratio: var(--ratio, 4 / 5);
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pinterest-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pinterest-related-body {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.pinterest-related-body strong {
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
}

.catalog-page .product-detailed-grid,
.catalog-page .product-pinterest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-detailed-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0a213e 0%, #061528 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.12);
    padding: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-detailed-card:hover {
    transform: translateY(-8px);
    border-color: #D4AF37;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(212, 175, 55, 0.35);
}

/* Corner cut accent lines */
.product-detailed-card::before,
.product-detailed-card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.product-detailed-card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid #D4AF37;
    border-left: 2px solid #D4AF37;
    border-top-left-radius: 8px;
}

.product-detailed-card::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid #D4AF37;
    border-right: 2px solid #D4AF37;
    border-bottom-right-radius: 8px;
}

/* Wishlist Button */
.product-detailed-card .wishlist-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(4, 16, 32, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F8FAFC;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.product-detailed-card .wishlist-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: #D4AF37;
    color: #FFD700;
    transform: scale(1.12);
}

.product-detailed-card .wishlist-btn.active {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
}

/* Media Frame */
.product-detailed-media {
    position: relative;
    width: 100%;
    display: block;
    text-decoration: none;
    margin-bottom: 14px;
}

.product-detailed-image-frame {
    position: relative;
    width: 100%;
    height: 240px;
    min-height: 220px;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    transition: all 0.35s ease;
}

.product-detailed-image-frame:hover {
    border-color: rgba(212, 175, 55, 0.75);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

.product-detailed-image-frame img,
.product-carousel-img,
.burooj-floating-img {
    width: 100%;
    height: 100%;
    max-width: 98%;
    max-height: 98%;
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    display: block;
    margin: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
    animation: buroojFloatingLevitate 4.5s ease-in-out infinite;
}

@keyframes buroojFloatingLevitate {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.2));
    }
    50% {
        transform: translateY(-8px) scale(1.02);
        filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 24px rgba(212, 175, 55, 0.45));
    }
}

.product-detailed-card:hover .burooj-floating-img {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 28px rgba(212, 175, 55, 0.6));
}

.product-detailed-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-detailed-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.product-detailed-category {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 12px;
}

.product-detailed-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10B981;
    font-weight: 700;
    font-size: 12px;
}

.stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    display: inline-block;
}

.product-detailed-stock.out {
    color: #EF4444;
}
.product-detailed-stock.out .stock-dot {
    background: #EF4444;
    box-shadow: 0 0 8px #EF4444;
}

.product-detailed-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0 5px 0;
}
.product-detailed-rating .product-stars {
    color: #fbbf24;
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 1;
}
.product-detailed-rating .product-rating-score {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

.product-detailed-title {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-detailed-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-detailed-title a:hover {
    color: #D4AF37;
}

.product-detailed-merchant {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 14px;
    font-weight: 600;
}

.product-detailed-buybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-detailed-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    direction: rtl;
}

.product-price-val {
    font-size: 20px;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.product-currency {
    font-size: 13px;
    color: #FFD700;
    font-weight: 700;
}

.btn-add-cart-gold {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #061528;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-add-cart-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.55);
    background: linear-gradient(135deg, #FFE480, #E6C045);
}

.btn-add-cart-gold:active {
    transform: translateY(0);
}

.product-detailed-badges {
    position: absolute;
    inset: 14px 14px auto 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.product-detailed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    background: rgba(2, 6, 23, 0.74);
    border: 1px solid rgba(255,255,255,0.08);
}

.product-detailed-badge.sale {
    color: #08111f;
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    border-color: rgba(232, 200, 115, 0.75);
}

.product-detailed-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 22px 20px;
    min-width: 0;
}

.product-detailed-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.product-detailed-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.product-detailed-category::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(198, 165, 92, 0.14);
}

.product-detailed-stock {
    font-size: 12px;
    font-weight: 800;
}

.product-detailed-stock.in {
    color: #10b981;
}

.product-detailed-stock.low {
    color: #f59e0b;
}

.product-detailed-stock.out {
    color: #ef4444;
}

.product-detailed-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0 5px 0;
}
.product-detailed-rating .product-stars {
    color: #fbbf24;
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 1;
}
.product-detailed-rating .product-rating-score {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

.product-detailed-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
    color: var(--white);
}

.product-detailed-description {
    color: rgba(255,255,255,0.66);
    font-size: 14px;
    line-height: 1.85;
}

.product-detailed-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    font-weight: 700;
}

.product-detailed-meta-line a {
    color: var(--primary);
    text-decoration: none;
}

.product-detailed-meta-line a:hover {
    text-decoration: underline;
}

.product-detailed-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.product-detailed-info-card {
    padding: 12px 13px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 0;
}

.product-detailed-info-card strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    margin-bottom: 5px;
}

.product-detailed-info-card span {
    display: block;
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.product-detailed-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-detailed-section-title {
    color: rgba(255,255,255,0.54);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.product-detailed-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-detailed-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,0.84);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 800;
}

.product-detailed-color {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: inset 0 0 0 2px rgba(2, 6, 23, 0.28);
}

.product-detailed-buybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.product-detailed-buybar .deal-price-stack {
    min-width: 0;
}

.product-detailed-primary-action {
    min-width: 148px;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    color: #08111f;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    padding: 0 18px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.product-detailed-primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(198, 165, 92, 0.24);
}

.product-detailed-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.product-detailed-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 16px;
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.product-detailed-action:hover {
    border-color: rgba(198, 165, 92, 0.34);
    background: rgba(198, 165, 92, 0.08);
}

.product-detailed-action.primary {
    color: #08111f;
    background: linear-gradient(135deg, rgba(198, 165, 92, 0.94), rgba(232, 200, 115, 0.94));
    border-color: rgba(232, 200, 115, 0.8);
}

.product-detailed-empty {
    grid-column: 1 / -1;
    padding: 42px 26px;
    border-radius: 30px;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.product-detailed-empty i {
    width: 54px;
    height: 54px;
    color: rgba(255,255,255,0.2);
    margin-bottom: 14px;
}

.product-detailed-empty h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.product-detailed-empty p {
    color: rgba(255,255,255,0.58);
    line-height: 1.8;
}

.product-detailed-skeleton {
    min-height: 360px;
    border-radius: 30px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
}

.product-detailed-skeleton-media,
.product-detailed-skeleton-body {
    padding: 18px;
}

.product-detailed-skeleton-media .skeleton {
    width: 100%;
    height: 100%;
    min-height: 310px;
    border-radius: 22px;
}

.product-detailed-skeleton-body {
    display: grid;
    gap: 12px;
    align-content: start;
}

.product-detailed-skeleton-body .skeleton {
    border-radius: 14px;
}

.product-media-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
}

.product-media-modal.is-open {
    display: flex;
}

.product-media-modal-card {
    width: min(1020px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 18px;
    border-radius: 28px;
    background: rgba(10, 15, 28, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.product-media-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.product-media-modal-head h3 {
    font-size: 18px;
    font-weight: 900;
}

.product-media-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
}

.product-media-modal-image {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.product-media-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 1200px) {
    .catalog-toolbar-actions {
        grid-template-columns: 1fr;
    }

    .catalog-count-card {
        min-width: 0;
    }
}

@media (max-width: 1100px) {
    .catalog-shell {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }

    .catalog-page .product-detailed-grid {
        grid-template-columns: 1fr;
    }

    .pinterest-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .product-detailed-card,
    .product-detailed-skeleton {
        grid-template-columns: 1fr;
    }

    .product-detailed-image-frame,
    .product-detailed-skeleton-media .skeleton {
        aspect-ratio: 1 / 1;
        min-height: 0;
        height: auto;
    }
}

@media (max-width: 640px) {
    .catalog-page {
        padding: 16px 8px 80px;
    }

    .catalog-sidebar,
    .catalog-toolbar {
        border-radius: 24px;
    }

    .product-detailed-body {
        padding: 18px;
    }

    .product-detailed-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0 5px 0;
}
.product-detailed-rating .product-stars {
    color: #fbbf24;
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 1;
}
.product-detailed-rating .product-rating-score {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

.product-detailed-title {
        font-size: 21px;
    }

    .product-detailed-buybar {
        flex-direction: column;
        align-items: stretch;
    }

    .product-detailed-primary-action {
        width: 100%;
    }

    .product-detailed-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-media-modal {
        padding: 12px;
    }

    .product-media-modal-card {
        padding: 14px;
        border-radius: 22px;
    }

    .catalog-recent-strip {
        padding: 16px;
    }

    .catalog-page .product-pinterest-grid {
        columns: 1;
    }

    .pinterest-meta-grid,
    .pinterest-modal-spec-grid,
    .pinterest-actions,
    .pinterest-modal-actions,
    .chat-wa-menu-grid {
        grid-template-columns: 1fr;
    }

    .pinterest-modal {
        padding: 12px;
    }

    .pinterest-modal-dialog {
        padding: 14px;
        border-radius: 22px;
    }
}

/* ===== Footer ===== */
.footer {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    color: var(--white);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.grid-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.footer-brand h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-brand .dot { color: var(--accent); }

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 25px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    background: rgba(255,255,255,0.08);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-links ul li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 8px;
}

.footer-newsletter p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}

.newsletter-form {
    display: flex;
    background: rgba(255,255,255,0.08);
    border-radius: var(--rounded-lg);
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-form input {
    background: transparent;
    border: none;
    padding: 14px;
    color: var(--white);
    flex: 1;
    outline: none;
    font-family: inherit;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 25px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.newsletter-form button:hover { background: var(--primary-dark); }

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

/* ===== Side Cart Drawer ===== */
.cart-drawer {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    height: 100%;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.cart-drawer.open { left: 0; }

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(3px);
}

.cart-overlay.show { display: block; }

.cart-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
}

.close-cart {
    background: transparent;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.close-cart:hover { color: #ef4444; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 20px;
    color: var(--white);
}

/* ===== Shop Layout ===== */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-group {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--rounded-lg);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.filter-group h4 {
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--accent);
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.filter-list label:hover { color: var(--white); }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--rounded-md);
    font-family: inherit;
    transition: var(--transition);
    background: rgba(255,255,255,0.06);
    color: var(--white);
    font-size: 15px;
}

.form-control::placeholder { color: rgba(255,255,255,0.4); }

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: rgba(255,255,255,0.08);
}

/* ===== Page Banner ===== */
.page-banner {
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 10px;
}

.page-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 25px;
}

.breadcrumbs a {
    color: var(--accent);
}

.breadcrumbs a:hover { text-decoration: underline; }

/* ===== Quantity Buttons ===== */
.btn-qty {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: var(--white);
    border-radius: var(--rounded-md);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-qty:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== Stats Grid (About Page) ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    padding: 40px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: var(--rounded-xl);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(8,145,133,0.1);
}

.stat-card h3 {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-card p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

/* ===== Contact Info ===== */
.contact-info-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 50px;
    border-radius: var(--rounded-xl);
    box-shadow: var(--shadow-lg);
}

.contact-info-box h3 {
    margin-bottom: 30px;
    font-size: 28px;
}

.contact-item {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 16px;
}

.contact-item i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    /* Luxury look (avoid the default WhatsApp green). */
    background: linear-gradient(135deg, var(--primary), #e8c873);
    color: #0b0b0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 10px 35px rgba(198, 165, 92, 0.25), 0 8px 18px rgba(0,0,0,0.35);
    transition: var(--transition);
    cursor: pointer;
    animation: whatsapp-pulse 3.2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 45px rgba(198, 165, 92, 0.30), 0 10px 22px rgba(0,0,0,0.40);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 10px 35px rgba(198, 165, 92, 0.25), 0 8px 18px rgba(0,0,0,0.35); }
    50% { box-shadow: 0 14px 50px rgba(198, 165, 92, 0.35), 0 10px 22px rgba(0,0,0,0.45); }
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Admin pages don't run the storefront scroll observer that toggles `.visible`.
   Ensure any `.fade-in` elements are still readable/visible in the dashboard. */
body.admin-page .fade-in {
    opacity: 1;
    transform: none;
}

/* Admin pages do not load the storefront scroll observer (main.js). Ensure content is visible. */
body.admin-page .fade-in {
    opacity: 1;
    transform: none;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { max-width: 100%; }
    .hero-btns { justify-content: center; }
    .hero-mini-offers {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .mini-offer-card:hover { transform: scale(1.04); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-footer { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .hero h2 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .categories-grid { grid-template-columns: 1fr; }
    .category-card { height: 200px; }
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .grid-footer { grid-template-columns: 1fr; gap: 30px; }
    .container-header { flex-wrap: wrap; }
    .search-bar { order: 3; max-width: 100%; width: 100%; flex: unset; }
    .nav-list { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .cart-drawer { width: 100%; left: -100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr !important; }
    .product-detail-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .hero h2 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; }
    .product-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 15px; 
    }
    .product-card { border-radius: 18px; }
    .product-img { height: 180px; }
    .product-info { padding: 12px; }
    .product-info h3 { font-size: 13px; line-height: 1.4; }
    .price { font-size: 14px; }
    
    .container { padding: 0 15px; }
    .page-banner { padding: 40px 0; }
    .page-banner h1 { font-size: 26px; }
}

/* ===== Hamburger Menu ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}

.hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== Mobile Menu Overlay ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    z-index: 2100;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 100px 30px 40px;
    border-left: 1px solid rgba(255,255,255,0.1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}

.mobile-menu.open { right: 0; }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 2099;
    display: none;
}

.mobile-menu-overlay.show { display: block; }

.mobile-menu .close-mobile-menu {
    position: absolute;
    top: 25px;
    left: 25px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu .close-mobile-menu:hover { color: #ef4444; }

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-links a {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    padding: 14px 15px;
    border-radius: var(--rounded-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-links a i { width: 22px; height: 22px; color: var(--accent); }

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: rgba(8, 145, 133, 0.2);
    color: var(--accent);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 15px 0;
}

.mobile-menu-user {
    margin-top: auto;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--rounded-lg);
    text-align: center;
}

.mobile-menu-user a {
    display: block;
    color: var(--white);
    font-weight: 700;
    margin-top: 8px;
}

/* ===== Mobile Bottom Navigation (Floating Premium) ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 25px;
    left: 20px;
    right: 20px;
    height: 75px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    z-index: 2000;
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 0 10px;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
    min-width: 60px;
}

.mobile-bottom-nav a i { width: 22px; height: 22px; transition: var(--transition); }

.mobile-bottom-nav a span { font-size: 10px; font-weight: 700; opacity: 0.8; }

.mobile-bottom-nav a.active {
    color: var(--primary);
}

.mobile-bottom-nav a.active i {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.mobile-bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 20px;
    box-shadow: 0 0 10px var(--primary);
}

@media (max-width: 768px) {
    :root {
        --header-height: 66px;
    }
    .nav-menu { display: none !important; }
    .hamburger-btn { display: flex; }
    .main-nav, .desktop-only { display: none !important; }
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 120px; }
    .whatsapp-float { bottom: 125px; left: 25px; }
    .footer { padding-bottom: 120px; }
    
    .header { padding: 15px 0; }
    .logo img { height: 40px !important; }
}

/* ===== Star Ratings ===== */
.stars-display { display: inline-flex; gap: 2px; align-items: center; }
.stars-display i { width: 16px; height: 16px; color: var(--accent); }
.stars-display .star-empty { color: rgba(255,255,255,0.2); }
.rating-text { font-size: 13px; color: rgba(255,255,255,0.5); margin-right: 8px; }

.star-picker { display: flex; gap: 4px; direction: ltr; }
.star-picker i {
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: color 0.2s ease;
}
.star-picker i.active,
.star-picker i:hover { color: var(--accent); }

/* ===== Reviews Section ===== */
.reviews-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.reviews-header h2 { font-size: 26px; color: var(--white); font-weight: 800; }

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: var(--rounded-lg);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.reviews-summary .avg-rating {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.reviews-summary .rating-details { flex: 1; }
.reviews-summary .total-reviews { color: rgba(255,255,255,0.5); font-size: 14px; margin-top: 5px; }

.review-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--rounded-lg);
    padding: 25px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.review-card:hover {
    border-color: rgba(8, 145, 133, 0.3);
    background: rgba(255,255,255,0.07);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: var(--white);
}

.review-user-info h5 { color: var(--white); font-size: 15px; margin-bottom: 2px; }
.review-date { color: rgba(255,255,255,0.4); font-size: 12px; }

.review-comment { color: rgba(255,255,255,0.75); line-height: 1.8; font-size: 15px; }

.review-form {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: var(--rounded-xl);
    padding: 30px;
    margin-top: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.review-form h3 { color: var(--white); margin-bottom: 20px; font-size: 20px; }

.review-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--rounded-md);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    outline: none;
    transition: var(--transition);
}

.review-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.review-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ===== Product Card Rating ===== */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.product-rating i { width: 14px; height: 14px; color: var(--accent); }
.product-rating .star-empty { color: rgba(255,255,255,0.15); }
.product-rating span { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ===== Wishlist ===== */
.wishlist-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
}

.wishlist-btn i { width: 18px; height: 18px; color: rgba(255,255,255,0.7); }

.wishlist-btn:hover,
.wishlist-btn.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.wishlist-btn.active i { color: #ef4444; fill: #ef4444; }

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.wishlist-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255,255,255,0.5);
}

.wishlist-empty i { width: 70px; height: 70px; margin-bottom: 20px; color: rgba(255,255,255,0.2); }
.wishlist-empty h3 { color: var(--white); margin-bottom: 10px; font-size: 22px; }
.wishlist-empty p { margin-bottom: 25px; }

/* ===== Auth Pages ===== */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(25px);
    border-radius: var(--rounded-xl);
    padding: 45px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.auth-card h1 {
    text-align: center;
    color: var(--white);
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.5);
    margin-bottom: 35px;
    font-size: 15px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--rounded-md);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
    border: none;
    background: none;
    font-family: inherit;
    font-size: 15px;
}

.auth-tab.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-form .form-group { margin-bottom: 20px; }

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--rounded-md);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.auth-message {
    padding: 12px 18px;
    border-radius: var(--rounded-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.auth-message.success { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); display: block; }
.auth-message.error { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); display: block; }

.auth-divider {
    text-align: center;
    color: rgba(255,255,255,0.3);
    margin: 25px 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.auth-divider::before { right: 0; }
.auth-divider::after { left: 0; }

/* ===== Account Page ===== */
.account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.account-sidebar {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(15px);
    border-radius: var(--rounded-xl);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: var(--white);
    margin: 0 auto 15px;
}

.account-name { text-align: center; color: var(--white); font-size: 20px; font-weight: 800; margin-bottom: 5px; }
.account-email { text-align: center; color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 25px; }

.account-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--rounded-md);
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 5px;
}

.account-menu a i { width: 20px; height: 20px; }

.account-menu a:hover,
.account-menu a.active {
    background: rgba(8, 145, 133, 0.2);
    color: var(--accent);
}

.account-content {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(15px);
    border-radius: var(--rounded-xl);
    padding: 35px;
    border: 1px solid rgba(255,255,255,0.1);
}

.account-content h2 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.order-card {
    background: rgba(255,255,255,0.04);
    border-radius: var(--rounded-lg);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.order-card:hover { border-color: rgba(8, 145, 133, 0.3); }

.order-status {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.order-status.delivered { background: rgba(34,197,94,0.15); color: #22c55e; }
.order-status.processing { background: rgba(245,158,11,0.15); color: #f59e0b; }
.order-status.shipped { background: rgba(59,130,246,0.15); color: #3b82f6; }

.logout-btn {
    width: 100%;
    padding: 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: var(--rounded-md);
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.logout-btn:hover { background: rgba(239, 68, 68, 0.25); }

@media (max-width: 768px) {
    .account-grid { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .auth-card { padding: 30px 25px; }
    .reviews-summary { flex-direction: column; text-align: center; }
    .wishlist-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 480px) {
    .wishlist-grid { grid-template-columns: 1fr; }
}
/* ===== Admin Dashboard ===== */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
}

.admin-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-nav-item {
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.admin-nav-item i { width: 20px; height: 20px; }
.admin-nav-item:hover, .admin-nav-item.active {
    background: var(--glass-bg);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.admin-main {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
}

.stat-card h3 { font-size: 32px; color: var(--primary); margin-bottom: 5px; }
.stat-card p { color: var(--text-light); font-size: 14px; }

/* Product Table */
.admin-table-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    text-align: right;
    color: var(--primary);
    font-weight: 600;
}

.admin-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--white);
}

.admin-table tr:last-child td { border-bottom: none; }

.action-btns { display: flex; gap: 10px; }
.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}
.btn-edit { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.btn-delete { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.action-btn:hover { transform: scale(1.1); }

/* Chat Management */
.chat-mgmt-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: 600px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.chat-list {
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
}

.chat-list-item {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: 0.3s;
}

.chat-list-item:hover, .chat-list-item.active { background: rgba(255,255,255,0.05); }

.chat-view {
    display: flex;
    flex-direction: column;
}

.chat-messages-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-message-input {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

/* User Chat Widget */
.chat-widget {
    position: fixed;
    /* Keep it above the WhatsApp floating button to avoid overlap. */
    bottom: 110px;
    left: 30px;
    z-index: 1000;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    transition: 0.3s;
    position: relative;
}

.chat-bubble:hover { transform: scale(1.1); background: var(--primary-light); }

.chat-unread-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(15, 17, 23, 0.9);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
    pointer-events: none;
}

.chat-unread-badge--wa {
    top: -8px;
    right: -8px;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.chat-window.open { display: flex; animation: slideUp 0.3s ease-out; }

.chat-wa-menu {
    padding: 14px 14px 0;
    display: grid;
    gap: 10px;
}

.chat-wa-menu-copy {
    color: rgba(255,255,255,0.68);
    font-size: 12px;
    line-height: 1.8;
}

.chat-wa-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.chat-wa-menu-item {
    min-width: 0;
    border-radius: 14px;
    padding: 12px;
    text-decoration: none;
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    gap: 5px;
    transition: var(--transition);
}

.chat-wa-menu-item:hover {
    transform: translateY(-2px);
    border-color: rgba(198, 165, 92, 0.34);
    background: rgba(198, 165, 92, 0.08);
}

.chat-wa-menu-item strong {
    font-size: 12px;
    font-weight: 900;
}

.chat-wa-menu-item span {
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    line-height: 1.6;
}

.chat-window-header {
    background: var(--primary);
    padding: 20px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-msg-meta {
    font-size: 10px;
    opacity: 0.75;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    /* 2. Compact Mobile Header */
    .header {
        padding: 12px 0;
        background: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        position: sticky;
        top: 0;
        z-index: 1100;
    }
    
    .desktop-search, .desktop-only, .main-nav, .search-bar {
        display: none !important;
    }
    
    .mobile-search-trigger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--white);
        cursor: pointer;
        padding: 8px;
    }

    .mobile-search-trigger i { width: 24px; height: 24px; }

    .logo img { height: 38px !important; }

    .hamburger-btn { order: 1; }
    .logo { order: 2; margin-left: auto; margin-right: 15px; }
    .mobile-search-trigger { order: 3; }
    .nav-icons { order: 4; }

    /* 3. Search Overlay */
    .search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(25px);
        z-index: 2500;
        display: none;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: env(safe-area-inset-top);
    }

    .search-overlay.active {
        display: block;
        opacity: 1;
    }

    .search-overlay-content {
        padding: 40px 25px;
    }

    .search-overlay-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 35px;
        color: var(--white);
    }

    .search-overlay-header h3 { font-weight: 800; font-size: 22px; }

    .search-overlay-input {
        position: relative;
        background: rgba(255,255,255,0.06);
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.15);
        padding: 18px 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .search-overlay-input input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        color: var(--white);
        font-size: 17px;
        font-family: inherit;
    }

    .search-overlay-input i { color: var(--primary); width: 22px; height: 22px; }

    /* 4. Bottom Navigation */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 15px;
        left: 12px;
        right: 12px;
        background: rgba(15, 23, 42, 0.85);
        backdrop-filter: blur(25px);
        border-radius: 24px;
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 15px 45px rgba(0,0,0,0.5);
        padding: 12px 5px;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        color: rgba(255,255,255,0.4);
        text-decoration: none;
        font-size: 11px;
        font-weight: 700;
        transition: all 0.3s ease;
        padding: 5px 10px;
        border-radius: 15px;
    }

    .bottom-nav-item i { width: 22px; height: 22px; transition: transform 0.3s ease; }

    .bottom-nav-item.active {
        color: var(--primary);
        background: rgba(56, 189, 248, 0.08);
    }

    .bottom-nav-item.active i {
        transform: translateY(-2px);
        fill: rgba(56, 189, 248, 0.1);
    }

    .nav-icon-wrapper { position: relative; }

    .nav-icon-wrapper .icon-badge {
        top: -12px;
        right: -12px;
        width: 18px;
        height: 18px;
        font-size: 10px;
        border: 2px solid rgba(15, 23, 42, 0.8);
    }

    /* 5. Hero & Content Optimization */
    .hero { padding: 40px 0; min-height: 70vh; }
    .hero h2 { font-size: 2.3rem !important; line-height: 1.2; margin-bottom: 20px; }
    .hero p { font-size: 1rem; margin-bottom: 30px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-btns { justify-content: center; width: 100%; flex-direction: column; }
    .hero-btns .btn { width: 100%; margin: 0; }
    .hero-mini-offers { display: none; }

    /* 6. Product Grid Optimization (Strict 2-Column) */
    .product-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }

    .product-card {
        padding: 12px;
        border-radius: 18px;
        background: rgba(255,255,255,0.05);
    }

    .product-img {
        height: 160px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .product-info h3 {
        font-size: 14px;
        height: 38px;
        margin-bottom: 8px;
    }

    .price { font-size: 16px; }
    .add-cart { width: 34px; height: 34px; }

    /* 7. Category & Features */
    .features-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .categories-grid { grid-template-columns: 1fr; }
    .category-card { height: 220px; }

    /* 8. Admin Sidebar Hide */
    .admin-sidebar { display: none; }
    .chat-widget { left: 20px; bottom: 85px; z-index: 999; }
    .chat-window { 
        position: fixed !important; 
        left: 15px !important; 
        right: 15px !important; 
        width: auto !important; 
        max-width: calc(100vw - 30px) !important; 
        bottom: 150px !important; 
        max-height: calc(100vh - 170px) !important; 
    }
}

/* === Admin Panel Premium Upgrades === */
.admin-tab-content {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: 0.3s;
}

/* Admin Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 4999;
}

.modal {
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Toast Notification Premium */
.admin-toast {
    min-width: 320px;
    pointer-events: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

@keyframes slideUp {
    from { transform: translate(-50%, 50px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translate(-50%, 0); opacity: 1; }
    to { transform: translate(-50%, 50px); opacity: 0; }
}

/* Input & Select Box Polishing */
.btn-outline {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    outline: none;
    transition: 0.3s;
}

.btn-outline:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08); /* Re-applied after error */
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Make native <select> dropdowns readable (fix white-on-white option lists on some browsers/OSes).
   Applies across current/future admin/account forms that reuse the `.btn-outline` "square" input style. */
select.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid var(--glass-border);
    outline: none;
    /* Hint to browsers to render a dark dropdown menu when possible. */
    color-scheme: dark;
}

/* Dropdown list items */
select.btn-outline option,
select.btn-outline optgroup {
    background-color: #0f1117;
    color: #e4e6f0;
}

/* Some admin pages use plain <select> without `.btn-outline` */
body.admin-page select {
    color-scheme: dark;
}
body.admin-page select option,
body.admin-page select optgroup {
    background-color: #0f1117;
    color: #e4e6f0;
}

.admin-table-container::-webkit-scrollbar {
    height: 8px;
}
.admin-table-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ===== New Layouts Responsiveness ===== */
@media (max-width: 992px) {
    .shop-layout, .account-dashboard-wrapper, .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .account-sidebar, .sidebar {
        position: static !important;
        margin-bottom: 20px;
        width: 100% !important;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-btns {
        justify-content: center;
    }
    .account-dashboard-wrapper {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .auth-card {
        padding: 30px !important;
    }
    .contact-wrapper {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Admin pages don't run the storefront scroll observer that toggles `.visible`.
   Keep dashboard UI visible without requiring JS to add `.visible`. */
body.admin-page .fade-in {
    opacity: 1;
    transform: none;
}

/* Glass Tabs for Account */
.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.account-tab-btn {
    padding: 12px 25px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}
.account-tab-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px var(--primary-glow);
}
.account-tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* Skeleton Loading Animation */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 2s infinite linear;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Admin Dashboard Specific Enhancements */
.admin-tab-content {
    animation: fadeIn 0.5s ease-out;
}
.stat-card {
    background: var(--glass-background) !important;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stat-card:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.05) !important;
    border-color: var(--primary);
    box-shadow: 0 15px 35px var(--primary-glow);
}
.admin-sidebar {
    background: rgba(10, 25, 25, 0.6) !important;
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
}
.admin-nav-item.active {
    background: var(--primary-glow) !important;
    color: var(--primary) !important;
    border-right: 4px solid var(--primary);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════ */
/* ═══════ AL-BADR SUPER GLOBAL ADDITIONS ═══════ */
/* ═══════════════════════════════════════════════ */

/* ===== Page Loader / Splash Screen ===== */

/* FORCE REMOVE ALL LOADERS */
.page-loader, #page-loader, .preloader, #preloader, .loader-content, .loader-bar, .loader-progress {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -99999 !important;
}


.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 52px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 25px;
    text-shadow: 0 0 40px var(--primary-glow);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-logo .dot {
    color: #ef4444;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-alt));
    border-radius: 10px;
    animation: loaderFill 1.5s ease-in-out forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== Animated Particles Background ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}

/* ===== Pulse Dot (Hero Badge) ===== */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* ===== Daily Deal Countdown ===== */
.daily-deal-section {
    padding: 80px 0;
}

.deal-banner {
    padding: 50px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    border: 1px solid var(--primary-glow) !important;
    background: linear-gradient(135deg, rgba(198,165,92,0.05), rgba(0,0,0,0.3)) !important;
}

.countdown-timer {
    display: flex;
    gap: 15px;
    direction: ltr;
}

.time-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 80px;
}

.time-box span {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.time-box small {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 600;
}

/* ===== Deal Price UI ===== */
.deal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.deal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--rounded-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0b1220;
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    box-shadow: 0 10px 24px rgba(198, 165, 92, 0.18);
}

.deal-chip--subtle {
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}

.deal-price-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.deal-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.deal-price-current {
    color: var(--accent);
    font-weight: 900;
    font-size: 18px;
    line-height: 1.1;
}

.deal-price-current.large {
    font-size: 34px;
}

.deal-price-compare {
    color: rgba(255,255,255,0.45);
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 700;
}

.deal-price-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.product-price .deal-price-stack,
.price-row .deal-price-stack {
    margin-left: auto;
}

.product-detail-deal-meta {
    margin-top: -2px;
    margin-bottom: 14px;
}

/* ===== Deals Board ===== */
.deals-board-section {
    padding: 88px 0 60px;
}

.deals-board-shell,
.deals-page-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 34px;
    padding: 28px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.deals-board-shell::before,
.deals-page-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(198,165,92,0.12), transparent 32%),
        radial-gradient(circle at 88% 100%, rgba(198,165,92,0.08), transparent 26%);
    pointer-events: none;
}

.deals-board-shell > *,
.deals-page-shell > * {
    position: relative;
    z-index: 1;
}

.deals-board-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
    gap: 24px;
    margin-bottom: 24px;
}

.deals-board-main {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(198,165,92,0.12), rgba(255,255,255,0.03)),
        var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(calc(var(--glass-blur) * 1.1));
}

.deals-board-copy {
    max-width: 640px;
}

.deals-board-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.24);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.deals-board-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulseDot 1.5s ease-in-out infinite;
}

.deals-board-title {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 14px;
    color: var(--white);
}

.deals-board-title span {
    color: var(--primary);
}

.deals-board-desc {
    max-width: 620px;
    color: rgba(255,255,255,0.68);
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 24px;
}

.deals-board-countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.deals-board-countdown-box {
    min-width: 84px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.deals-board-countdown-box strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    color: var(--primary);
}

.deals-board-countdown-box span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 700;
}

.deals-board-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.deals-board-rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow: auto;
    padding-left: 4px;
}

.deals-board-rail-card {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    transition: var(--transition);
    text-decoration: none;
}

.deals-board-rail-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198,165,92,0.32);
    box-shadow: var(--shadow-lg);
}

.deals-board-rail-media {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.deals-board-rail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deals-board-rail-placeholder {
    font-size: 26px;
    font-weight: 900;
    color: rgba(255,255,255,0.45);
}

.deals-board-rail-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1.55;
}

.deals-board-rail-meta {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    margin-bottom: 8px;
}

.deals-board-rail-arrow {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.deals-board-nav,
.deals-page-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 22px;
    scrollbar-width: none;
}

.deals-board-nav::-webkit-scrollbar,
.deals-page-nav::-webkit-scrollbar,
.deals-board-track::-webkit-scrollbar,
.deals-board-rail::-webkit-scrollbar,
.deals-page-track::-webkit-scrollbar {
    display: none;
}

.deals-board-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    color: rgba(255,255,255,0.68);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: var(--transition);
}

.deals-board-tab:hover,
.deals-board-tab.is-active {
    color: #0b1220;
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    border-color: transparent;
}

.deals-board-grid {
    display: grid;
    gap: 20px;
}

.deals-board-panel {
    padding: 22px;
    border-radius: 26px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.deals-board-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.deals-board-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.deals-board-panel-title h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
}

.deals-board-panel-title i {
    color: var(--primary);
}

.deals-board-panel-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.deals-board-track,
.deals-page-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.deal-tile {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: var(--transition);
}

.deal-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(198,165,92,0.3);
    box-shadow: var(--shadow-lg);
}

.deal-tile-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.deal-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-tile-placeholder {
    font-size: 26px;
    color: rgba(255,255,255,0.4);
    font-weight: 900;
}

.deal-tile-category {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.deal-tile-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.7;
    color: var(--white);
    margin-bottom: 10px;
    min-height: 52px;
}

.deal-tile-merchant {
    color: rgba(255,255,255,0.52);
    font-size: 11px;
    margin-top: auto;
}

.deal-tile-time {
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    margin-top: 8px;
}

.deals-page-shell {
    margin-top: 110px;
    padding: 30px;
}

.deals-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.deals-page-header h1 {
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 900;
    color: var(--white);
}

.deals-page-header p {
    color: rgba(255,255,255,0.65);
    max-width: 720px;
    line-height: 1.9;
}

@media (max-width: 992px) {
    .deals-board-hero {
        grid-template-columns: 1fr;
    }

    .deals-board-main {
        min-height: auto;
    }

    .deals-board-rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 1fr);
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

/* ===== Responsive Additions ===== */
@media (max-width: 768px) {
    .deal-banner {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 30px !important;
    }
    .deal-image { display: none; }
    .countdown-timer { justify-content: center; }
    .time-box { min-width: 60px; padding: 10px 12px; }
    .time-box span { font-size: 24px; }

    .deal-price-current.large {
        font-size: 28px;
    }

    .deals-board-section {
        padding: 72px 0 40px;
    }

    .deals-board-shell,
    .deals-page-shell {
        padding: 18px;
        border-radius: 24px;
    }

    .deals-board-main {
        padding: 22px;
        border-radius: 22px;
    }

    .deals-board-title {
        font-size: 30px;
    }

    .deals-board-countdown-box {
        min-width: 72px;
        padding: 12px 14px;
    }

    .deals-board-countdown-box strong {
        font-size: 24px;
    }

    .deals-board-track,
    .deals-page-track {
        grid-auto-columns: minmax(200px, 78vw);
    }

    .deals-board-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .deals-board-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }
    
    .sourcing-cta .glass-card {
        grid-template-columns: 1fr !important;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    
    .categories-grid {
        grid-template-columns: 1fr !important;
    }
    
    .page-loader .loader-logo {
        font-size: 36px;
    }
}

/* ===== Premium Global Loader ===== */

/* FORCE REMOVE ALL LOADERS */
.page-loader, #page-loader, .preloader, #preloader, .loader-content, .loader-bar, .loader-progress {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -99999 !important;
}


.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    animation: loader-bounce 2s infinite ease-in-out;
}

.loader-logo {
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.loader-logo .dot {
    color: var(--loader-accent);
    text-shadow: 0 0 20px var(--loader-accent);
}

.loader-bar {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--loader-accent);
    box-shadow: 0 0 15px var(--loader-accent);
    animation: loader-progress-anim 2s infinite ease-in-out;
}

@keyframes loader-progress-anim {
    0% { left: -100%; width: 50%; }
    50% { left: 25%; width: 50%; }
    100% { left: 100%; width: 50%; }
}

@keyframes loader-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Page Transition Animation */
.page-transition-out {
    opacity: 0;
    transform: scale(0.98);
    transition: var(--transition-smooth);
}

/* ═══════ FOOTER (ALL GLASS) ═══════ */
.footer {
    position: relative;
    z-index: 1;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 30px;
}

/* Glass Footer Container */
.footer-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--rounded-xl);
    padding: 45px 40px;
    transition: var(--transition-smooth);
}
.footer-glass:hover {
    border-color: var(--glass-border-bright);
    box-shadow: var(--shadow-premium);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-brand-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--rounded-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--bg-dark);
    font-weight: 900;
}
.footer-logo-text { font-size: 18px; font-weight: 800; color: var(--white); }
.footer-logo-text .dot { color: var(--primary); }
.footer-brand-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Social Icons - Glass Style */
.footer-social { display: flex; gap: 10px; }
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--rounded-md);
    background: var(--glass-bg-thick);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}
.social-icon:hover {
    background: rgba(198, 165, 92, 0.12);
    border-color: rgba(198, 165, 92, 0.35);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Glass List Columns */
.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Glass Menu List */
.glass-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.glass-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: var(--rounded-sm);
    transition: var(--transition);
    cursor: pointer;
}
.glass-menu-item:hover {
    color: var(--primary);
    background: rgba(198, 165, 92, 0.06);
    border-color: rgba(198, 165, 92, 0.15);
    padding-right: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.glass-menu-item .menu-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
    flex-shrink: 0;
}
.glass-menu-item:hover .menu-dot { opacity: 1; }
.glass-menu-item .menu-icon {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    transition: var(--transition);
    flex-shrink: 0;
}
.glass-menu-item:hover .menu-icon { opacity: 1; color: var(--primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
}
.footer-copyright { font-size: 12px; color: rgba(255, 255, 255, 0.3); }
.footer-copyright strong { color: var(--primary); }
.footer-credit { font-size: 12px; color: rgba(255, 255, 255, 0.3); }
.footer-credit a { color: var(--primary); }

/* Safety: legacy admin charts were causing layout thrash/freezes on some setups. */
#revenueChart,
#categoryChart {
    display: none !important;
}

/* ===== Newsletter Section (Glass) ===== */
.newsletter-section {
    padding: 18px 0 0;
}
.newsletter-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--rounded-xl);
    padding: 22px 22px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}
.newsletter-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--white);
}
.newsletter-text p {
    margin: 6px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}
.newsletter-msg {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
}

/* ===== Payment Methods (Glass Pills) ===== */
.payment-methods-bar { padding: 12px 0 0; }
.payment-methods-glass {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--rounded-xl);
    padding: 14px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}
.payment-method-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--rounded-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.85);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    user-select: none;
}
.payment-method-pill i { width: 16px; height: 16px; opacity: 0.9; color: var(--primary); }
.payment-method-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(198,165,92,0.22);
    background: rgba(198,165,92,0.08);
    color: var(--white);
}

/* ===== Scroll To Top (Glass) ===== */
.scroll-to-top {
    position: fixed;
    left: 30px;
    bottom: calc(105px + var(--mobile-bottom-nav-height, 0px));
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
    z-index: 2300;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: var(--transition);
}
.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-to-top:hover {
    color: var(--primary);
    border-color: rgba(198,165,92,0.18);
    background: rgba(198,165,92,0.10);
}
.scroll-to-top svg { width: 22px; height: 22px; }

/* ===== Cookie Banner (Glass) ===== */
.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(18px + var(--mobile-bottom-nav-height, 0px));
    background: rgba(15, 23, 42, 0.90);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 14px 16px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    z-index: 2600;
    box-shadow: 0 18px 60px rgba(0,0,0,0.5);
    display: none;
}
.cookie-banner.show { display: block; animation: cookie-in 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cookie-text strong {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 4px;
}
.cookie-text span { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-cookie-accept {
    background: linear-gradient(135deg, var(--primary), #e8c873);
    color: #0b0b0b;
    border-color: rgba(198,165,92,0.25);
}
.btn-cookie:hover { transform: translateY(-1px); }
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.20); }

@keyframes cookie-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Free Shipping Progress (Cart/Checkout) ===== */
.free-shipping-bar {
    margin: 14px 0 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 14px 14px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}
.free-shipping-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.free-shipping-top strong { font-size: 12px; color: rgba(255,255,255,0.85); }
.free-shipping-top span { font-size: 12px; color: rgba(255,255,255,0.55); }
.free-shipping-track {
    margin-top: 12px;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    overflow: hidden;
}
.free-shipping-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #e8c873);
    box-shadow: 0 0 20px rgba(198,165,92,0.25);
    transition: width 0.5s ease;
}
.free-shipping-msg { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.6); }

/* ===== Cart Page (Premium) ===== */
.main-content { padding: 40px 20px 90px; max-width: 1200px; margin: 0 auto; }
.page-header { margin-bottom: 26px; }
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    margin-bottom: 10px;
}
.page-breadcrumb a { color: var(--primary); font-weight: 800; }
.page-breadcrumb .sep { opacity: 0.35; }
.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 950;
    margin: 0;
}
.page-title .title-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.page-subtitle { margin-top: 10px; color: rgba(255,255,255,0.55); font-size: 14px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}
.cart-items-section { min-width: 0; }
.order-summary {
    position: sticky;
    top: 110px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--rounded-xl);
    padding: 24px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.summary-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--white);
    font-weight: 950;
    font-size: 16px;
}
.summary-title svg { width: 18px; height: 18px; color: var(--primary); }
.summary-row { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; font-size: 13px; }
.summary-label { color: rgba(255,255,255,0.55); }
.summary-value { color: var(--white); font-weight: 900; }
.summary-value.discount { color: #10b981; }
.divider { height: 1px; background: rgba(255,255,255,0.10); margin: 16px 0; }
.summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 6px;
}
.summary-total .label { color: rgba(255,255,255,0.55); font-weight: 800; }
.summary-total .value { color: var(--primary); font-weight: 950; font-size: 22px; }
.currency { opacity: 0.7; font-weight: 800; font-size: 12px; margin-right: 4px; }

.coupon-section { display: flex; gap: 10px; margin: 14px 0 4px; }
.coupon-input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: var(--white);
    outline: none;
    font-family: inherit;
}
.coupon-input::placeholder { color: rgba(255,255,255,0.4); }
.coupon-btn {
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(198,165,92,0.20);
    background: rgba(198,165,92,0.12);
    color: var(--primary);
    font-weight: 950;
    cursor: pointer;
    transition: var(--transition);
}
.coupon-btn:hover { transform: translateY(-1px); background: rgba(198,165,92,0.18); }

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), #e8c873);
    color: #0b0b0b;
    font-weight: 950;
    text-decoration: none;
    border: 1px solid rgba(198,165,92,0.25);
    transition: var(--transition);
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(198,165,92,0.25); }

.trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.75);
    font-weight: 900;
    font-size: 12px;
}
.trust-badge svg { width: 16px; height: 16px; color: var(--primary); }

.cart-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    margin-bottom: 14px;
    transition: var(--transition);
}
.cart-item:hover { border-color: rgba(198,165,92,0.18); background: rgba(198,165,92,0.04); }
.cart-item .item-img { width: 110px; height: 110px; object-fit: cover; border-radius: 18px; border: 1px solid rgba(255,255,255,0.10); }
.cart-item .item-details { flex: 1; min-width: 0; }
.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
}
.btn-qty-mini {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-weight: 950;
    cursor: pointer;
    transition: var(--transition);
}
.btn-qty-mini:hover { background: var(--primary); border-color: var(--primary); color: #0b0b0b; }
.cart-item.removing { animation: cart-remove 0.35s ease forwards; }
@keyframes cart-remove {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    30% { transform: translateX(6px); }
    60% { transform: translateX(-6px); }
    100% { transform: translateX(0) scale(0.96); opacity: 0; height: 0; margin: 0; padding: 0; }
}

@media (max-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}
@media (max-width: 768px) {
    .newsletter-glass { flex-direction: column; align-items: stretch; }
    .trust-badges { grid-template-columns: 1fr; }
    .cart-item { padding: 14px; }
    .cart-item .item-img { width: 92px; height: 92px; }
}



/* ===== Admin Products Table Polish ===== */
.admin-products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-products-heading {
    display: grid;
    gap: 8px;
}

.admin-products-heading h2 {
    margin: 0;
    color: var(--white);
    font-size: 30px;
    font-weight: 900;
}

.admin-products-heading p {
    margin: 0;
    max-width: 760px;
    color: var(--text-light);
    line-height: 1.8;
}

.admin-products-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.admin-products-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.admin-products-search {
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    min-height: 52px;
}

.admin-products-search i {
    color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-products-search input,
.admin-products-select {
    font-family: inherit;
    font-size: 14px;
    color: var(--white);
}

.admin-products-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 14px 0;
}

.admin-products-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.admin-products-select {
    min-width: 180px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    outline: 0;
}

.admin-products-select option {
    background: #0f172a;
    color: var(--white);
}

.admin-products-board {
    display: grid;
    gap: 14px;
}

.admin-products-head {
    display: grid;
    grid-template-columns: minmax(320px, 2.5fr) minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(170px, 1fr);
    gap: 14px;
    padding: 0 18px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.admin-product-list {
    display: grid;
    gap: 14px;
}

.admin-product-card {
    display: grid;
    grid-template-columns: minmax(320px, 2.5fr) minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(170px, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.admin-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(198, 165, 92, 0.45);
    background: linear-gradient(180deg, rgba(198, 165, 92, 0.09), rgba(255, 255, 255, 0.03));
}

.admin-product-card.status-pending {
    border-color: rgba(245, 158, 11, 0.26);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.08);
}

.admin-product-card.status-approved,
.admin-product-card.status-active {
    border-color: rgba(16, 185, 129, 0.16);
}

.admin-product-slot {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-product-slot-label {
    display: inline-flex;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 2px;
}

.admin-product-slot-main {
    min-width: 0;
}

.admin-product-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.admin-product-thumb {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.admin-product-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 30px;
    background: linear-gradient(135deg, rgba(198, 165, 92, 0.16), rgba(255, 255, 255, 0.04));
}

.admin-product-copy,
.admin-merchant-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-product-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-product-name,
.admin-merchant-name {
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
    word-break: break-word;
}

.admin-product-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(198, 165, 92, 0.14);
    border: 1px solid rgba(198, 165, 92, 0.24);
    color: var(--primary-alt);
    font-size: 12px;
    font-weight: 800;
}

.admin-product-origin-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.admin-product-origin-pill-platform {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.24);
    color: #bfdbfe;
}

.admin-product-origin-pill-merchant {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.24);
    color: #e9d5ff;
}

.admin-product-note,
.admin-merchant-email,
.admin-product-submeta {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.8;
    word-break: break-word;
}

.admin-product-note {
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-product-submeta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-product-submeta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-branch-label,
.admin-price-label {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-weight: 800;
    color: var(--white);
}

.admin-branch-label {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-price-label {
    color: var(--primary-alt);
    font-size: 17px;
}

.badge.admin-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.admin-product-slot-actions {
    align-items: stretch;
}

.admin-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.admin-product-btn:hover {
    transform: translateY(-1px);
}

.btn-outline.admin-product-btn {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-primary.admin-product-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    color: #07111f;
    border: 0;
}

.admin-product-btn-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fecaca !important;
}

.admin-products-empty-card {
    padding: 38px 24px;
    text-align: center;
    color: var(--text-light);
    font-weight: 700;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

@media (max-width: 1200px) {
    .admin-products-head,
    .admin-product-card {
        grid-template-columns: minmax(280px, 2.2fr) minmax(150px, 1fr) minmax(120px, 0.9fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(150px, 1fr);
    }
}

@media (max-width: 992px) {
    .admin-products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-products-filters {
        width: 100%;
    }

    .admin-products-search,
    .admin-products-select,
    #add-product-btn {
        width: 100%;
    }

    .admin-products-head {
        display: none;
    }

    .admin-product-card {
        grid-template-columns: 1fr 1fr;
    }

    .admin-product-slot-main,
    .admin-product-slot-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .admin-main {
        padding: 24px 16px;
    }

    .admin-products-heading h2 {
        font-size: 24px;
    }

    .admin-product-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .admin-product-main {
        flex-direction: column;
    }

    .admin-product-thumb {
        width: 100%;
        max-width: 160px;
        height: 160px;
    }

    .admin-product-actions {
        width: 100%;
    }

    .admin-product-btn {
        flex: 1;
    }
}

/* ===== Tracking / Notifications / Status Screens ===== */
.tracking-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(198, 165, 92, 0.12);
    border: 1px solid rgba(198, 165, 92, 0.2);
    font-size: 13px;
    font-weight: 800;
}

.tracking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tracking-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.tracking-tab:hover,
.tracking-tab.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.tracking-summary-row,
.tracking-notification-head,
.tracking-notification-topline,
.tracking-notification-meta,
.tracking-detail-title-row,
.tracking-card-head,
.tracking-data-row,
.tracking-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tracking-summary-label,
.tracking-card-head span,
.tracking-data-row span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.tracking-summary-value {
    color: var(--white);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.tracking-notification-list {
    display: grid;
    gap: 14px;
}

.tracking-notification-card {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tracking-notification-card:hover {
    transform: translateY(-2px);
    border-color: rgba(198, 165, 92, 0.32);
    box-shadow: var(--shadow-lg);
}

.tracking-notification-card.is-unread {
    border-color: rgba(198, 165, 92, 0.32);
    background: linear-gradient(135deg, rgba(198, 165, 92, 0.08), rgba(255, 255, 255, 0.03));
}

.tracking-notification-icon,
.tracking-state-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary);
    flex-shrink: 0;
}

.tracking-notification-copy {
    flex: 1;
    min-width: 0;
}

.tracking-notification-copy h3,
.tracking-card-head h2,
.tracking-detail-title-row h1,
.tracking-state-card h2 {
    margin: 0;
    color: var(--white);
}

.tracking-notification-copy p,
.tracking-inline-alert p,
.tracking-help-copy,
.tracking-state-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.tracking-notification-type,
.tracking-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.tracking-notification-type {
    color: var(--primary);
    background: rgba(198, 165, 92, 0.12);
}

.tracking-notification-badge {
    color: var(--bg-dark);
    background: var(--primary);
}

.tracking-notification-meta {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

.tracking-hero-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.tracking-fact-card,
.tracking-step-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 18px;
}

.tracking-fact-card span,
.tracking-step-card span {
    display: block;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
}

.tracking-fact-card strong,
.tracking-step-card strong {
    display: block;
    color: var(--white);
    margin-top: 6px;
    font-size: 16px;
    font-weight: 800;
}

.tracking-inline-alert {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 14px;
    align-items: start;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(198, 165, 92, 0.08);
    border: 1px solid rgba(198, 165, 92, 0.18);
    color: var(--white);
}

.tracking-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.tracking-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.tracking-status-pill.normal {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
}

.tracking-status-pill.delivered {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.tracking-status-pill.exception {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

.tracking-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tracking-step-card {
    text-align: center;
}

.tracking-step-card .tracking-step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.45);
}

.tracking-step-card.is-done,
.tracking-step-card.is-active {
    border-color: rgba(198, 165, 92, 0.22);
}

.tracking-step-card.is-done .tracking-step-icon {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.tracking-step-card.is-active .tracking-step-icon {
    background: rgba(198, 165, 92, 0.18);
    color: var(--primary);
}

.tracking-events-list {
    display: grid;
    gap: 14px;
}

.tracking-event-row {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 14px;
    align-items: start;
}

.tracking-event-dot {
    width: 14px;
    height: 14px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 8px rgba(198, 165, 92, 0.12);
}

.tracking-event-copy {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tracking-event-copy h3,
.tracking-event-head time {
    margin: 0;
}

.tracking-event-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--white);
}

.tracking-event-head time {
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    white-space: nowrap;
}

.tracking-event-copy p,
.tracking-state-inline {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

.tracking-data-list,
.tracking-side-actions {
    display: grid;
    gap: 12px;
}

.tracking-data-row strong {
    color: var(--white);
    text-align: left;
    font-weight: 800;
}

.tracking-state-card {
    text-align: center;
}

.tracking-state-card .tracking-state-icon {
    margin: 0 auto 14px;
}

.tracking-state-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.status-screen {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.status-screen-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(198, 165, 92, 0.12);
    color: var(--primary);
    border: 1px solid rgba(198, 165, 92, 0.18);
    font-size: 16px;
    font-weight: 900;
}

.status-screen h1 {
    margin: 18px 0 12px;
    color: var(--white);
    font-size: clamp(30px, 5vw, 64px);
}

.status-screen p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    font-size: 16px;
}

.status-screen-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.product-state-card {
    padding: 34px;
    border-radius: 30px;
    text-align: center;
}

.product-state-card h2 {
    color: var(--white);
    margin: 0 0 10px;
}

.product-state-card p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.9;
}

.product-state-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 1100px) {
    .tracking-hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tracking-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tracking-tabs,
    .tracking-summary-row,
    .tracking-notification-head,
    .tracking-detail-title-row,
    .tracking-card-head,
    .tracking-notification-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .tracking-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tracking-hero-facts,
    .tracking-steps-grid {
        grid-template-columns: 1fr;
    }

    .tracking-event-head,
    .tracking-data-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* FORCE REMOVE ALL LOADERS */
.page-loader, #page-loader, .preloader, #preloader, .loader-content, .loader-bar, .loader-progress {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -99999 !important;
}


/* FORCE REMOVE ALL LOADERS */
.page-loader, #page-loader, .preloader, #preloader, .loader-content, .loader-bar, .loader-progress {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -99999 !important;
}


/* ════════════════════════════════════════════════════════════════ */
/* 🚀 BUROOJ AL-AHD ULTRA HIGH CONTRAST & VIBRANT READABILITY STYLES */
/* ════════════════════════════════════════════════════════════════ */

:root {
    --primary: #D4AF37 !important;
    --primary-alt: #F59E0B !important;
    --bg-dark: #06182B !important;
    --bg-dark-alt: #0B233D !important;
    --text-muted: #CBD5E1 !important;
    --text-main: #FFFFFF !important;
}

body {
    background-color: #06182B !important;
    background-image: radial-gradient(circle at 50% 0%, #0F355C 0%, #06182B 70%) !important;
    color: #FFFFFF !important;
}

#bg-video, .video-overlay {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure text & titles are ultra-sharp and visible */
h1, h2, h3, h4, h5, h6, .hero-title, .section-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

p, span, label, td, th {
    color: #F1F5F9 !important;
}

.text-muted, .subtitle, .hero-subtitle, .product-category, .footer-desc {
    color: #E2E8F0 !important;
    font-weight: 500 !important;
}

/* High contrast glass cards */
.card, .product-card, .glass-card, .mini-card, .feature-card, .category-tile {
    background: rgba(11, 35, 61, 0.92) !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(12px) !important;
}

.card:hover, .product-card:hover, .mini-card:hover, .feature-card:hover {
    border-color: #D4AF37 !important;
    box-shadow: 0 14px 40px rgba(212, 175, 55, 0.25) !important;
}

/* High-contrast Gold Buttons */
.btn-primary, button.btn-primary, a.btn-primary {
    background: linear-gradient(135deg, #D4AF37, #B8860B) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35) !important;
}

.btn-primary:hover, button.btn-primary:hover, a.btn-primary:hover {
    background: linear-gradient(135deg, #F59E0B, #D4AF37) !important;
    color: #000000 !important;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45) !important;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    border-color: #D4AF37 !important;
    color: #F59E0B !important;
}

/* Price Badges & Currency */
.price, .product-price, .cart-price, .currency {
    color: #F59E0B !important;
    font-weight: 900 !important;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* Product Card Titles */
.product-title, .product-name, .card-title {
    color: #FFFFFF !important;
    font-weight: 800 !important;
}

/* Navbar & Header contrast */
.glass-header, header.site-header {
    background: rgba(6, 24, 43, 0.96) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.nav-menu-link, .header-link {
    color: #F8FAFC !important;
    font-weight: 700 !important;
}

.nav-menu-link:hover, .nav-menu-link.active {
    color: #D4AF37 !important;
}

/* Form Controls & Inputs */
.form-control, input, select, textarea {
    background: rgba(15, 42, 74, 0.95) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.form-control::placeholder, input::placeholder {
    color: #94A3B8 !important;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25) !important;
}

/* Footer contrast */
footer, .site-footer {
    background: #030D18 !important;
    border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
}

.footer-link, .glass-menu-item {
    color: #E2E8F0 !important;
}

.footer-link:hover, .glass-menu-item:hover {
    color: #D4AF37 !important;
}

/* ============================================================
   Burooj Al-Ahd construction blueprint layer
   ============================================================ */
:root {
    --burooj-navy: #071a33;
    --burooj-blue: #0f2c59;
    --burooj-electric: #19b6ff;
    --burooj-gold: #d4af37;
    --burooj-line: rgba(25, 182, 255, 0.13);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(var(--burooj-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--burooj-line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

body::after {
    content: '';
    position: fixed;
    width: 38vw;
    height: 38vw;
    min-width: 300px;
    min-height: 300px;
    top: 12vh;
    left: -16vw;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transform: rotate(45deg);
    box-shadow: 0 0 0 30px rgba(25, 182, 255, 0.025), 0 0 0 60px rgba(212, 175, 55, 0.02);
    z-index: -3;
    pointer-events: none;
    animation: blueprint-drift 18s ease-in-out infinite alternate;
}

.home-premium {
    position: relative;
    isolation: isolate;
}

.home-premium::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 720px;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 40%, rgba(25, 182, 255, 0.08) 40.2%, transparent 40.6%),
        linear-gradient(68deg, transparent 0 61%, rgba(212, 175, 55, 0.08) 61.2%, transparent 61.6%),
        radial-gradient(circle at 70% 20%, rgba(25, 182, 255, 0.19), transparent 28%),
        radial-gradient(circle at 20% 45%, rgba(212, 175, 55, 0.12), transparent 22%);
}

.hero-premium {
    min-height: 720px !important;
    height: min(86vh, 860px) !important;
    background:
        linear-gradient(90deg, rgba(2, 10, 24, 0.9), rgba(7, 26, 51, 0.55) 50%, rgba(2, 10, 24, 0.9)),
        radial-gradient(circle at 50% 20%, rgba(25, 182, 255, 0.22), transparent 34%);
}

.hero-premium::before,
.hero-premium::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hero-premium::before {
    inset: 10% 4%;
    border: 1px solid rgba(25, 182, 255, 0.22);
    clip-path: polygon(0 0, 94% 0, 100% 14%, 100% 86%, 94% 100%, 0 100%);
    box-shadow: inset 0 0 80px rgba(25, 182, 255, 0.05);
    animation: blueprint-pulse 5s ease-in-out infinite;
}

.hero-premium::after {
    width: 280px;
    height: 280px;
    right: 8%;
    top: 16%;
    border: 1px solid rgba(212, 175, 55, 0.28);
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(25, 182, 255, 0.06), rgba(212, 175, 55, 0.08));
    animation: blueprint-float 9s ease-in-out infinite;
}

.hero-premium .hero-content {
    position: relative;
    z-index: 2;
    animation: hero-rise 0.8s ease both;
}

.hero-premium h1 .highlight,
.hero-premium h1 .highlight strong {
    color: transparent;
    background: linear-gradient(110deg, #ffffff 5%, var(--burooj-electric) 48%, var(--burooj-gold) 92%);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 0 32px rgba(25, 182, 255, 0.18);
}

.hero-premium .glass-card-premium,
.home-premium .glass-card-premium,
.home-premium .product-card-premium {
    border-color: rgba(25, 182, 255, 0.2) !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.home-premium .category-slide:hover,
.home-premium .product-card-premium:hover,
.home-premium .glass-card-premium:hover {
    border-color: rgba(212, 175, 55, 0.65) !important;
    box-shadow: 0 22px 64px rgba(3, 16, 34, 0.65), 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.brands-marquee {
    border-block: 1px solid rgba(25, 182, 255, 0.14);
    background: linear-gradient(90deg, rgba(15, 44, 89, 0.5), rgba(2, 10, 24, 0.1), rgba(15, 44, 89, 0.5));
}

.brand-item {
    filter: grayscale(1) brightness(1.6);
}

.brand-item:hover {
    filter: grayscale(0) brightness(1.1);
    transform: translateY(-5px) !important;
}

@keyframes blueprint-drift {
    from { transform: translate3d(0, 0, 0) rotate(45deg); }
    to { transform: translate3d(24px, 18px, 0) rotate(52deg); }
}

@keyframes blueprint-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.01); }
}

@keyframes blueprint-float {
    0%, 100% { transform: rotate(45deg) translate3d(0, 0, 0); }
    50% { transform: rotate(48deg) translate3d(-14px, 18px, 0); }
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    body::before { background-size: 46px 46px; opacity: 0.28; }
    .hero-premium { min-height: 680px !important; height: auto !important; padding: 110px 18px 70px; }
    .hero-premium::after { width: 130px; height: 130px; right: -28px; top: 12%; }
    .hero-premium h1 { font-size: clamp(40px, 12vw, 64px) !important; }
    .hero-premium p { font-size: 16px !important; }
    .hero-premium .container > div > div:last-child { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Burooj luxury glass system + mobile-first polish
   ============================================================ */
:root {
    --burooj-glass: rgba(10, 31, 58, 0.62);
    --burooj-glass-strong: rgba(7, 24, 46, 0.86);
    --burooj-glass-border: rgba(255, 255, 255, 0.14);
    --burooj-glass-highlight: rgba(255, 255, 255, 0.22);
}

.glass-card-premium,
.product-card-premium,
.deals-board-shell,
.deals-board-panel,
.category-slide,
.product-card,
.review-card,
.contact-card,
.form-card {
    background: linear-gradient(145deg, rgba(23, 59, 99, 0.68), rgba(4, 18, 36, 0.72)) !important;
    border: 1px solid var(--burooj-glass-border) !important;
    box-shadow: 0 24px 70px rgba(0, 6, 18, 0.34), inset 0 1px 0 var(--burooj-glass-highlight) !important;
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.glass-card-premium::before,
.product-card-premium::before,
.deals-board-shell::before {
    background: linear-gradient(120deg, rgba(255,255,255,0.16), transparent 34%) !important;
    opacity: 0.7;
}

.header {
    background: linear-gradient(180deg, rgba(4, 17, 34, 0.94), rgba(7, 26, 51, 0.78)) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.28) !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24) !important;
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.nav-icons .nav-link,
.hamburger-btn {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 22px rgba(0,0,0,0.18);
}

.product-detailed-buybar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: auto !important;
    padding: 10px 0 0 0 !important;
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.nav-icons .nav-link:hover,
.hamburger-btn:hover {
    border-color: rgba(212, 175, 55, 0.7) !important;
    background: rgba(212, 175, 55, 0.14) !important;
}

.btn-royal,
.btn-glass,
.btn-primary,
.btn-outline {
    min-height: 48px;
    border-radius: 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.09) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 12px 30px rgba(0,0,0,0.2);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.16) !important;
    border-color: var(--burooj-gold) !important;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    html { overflow-x: hidden; }
    body { overflow-x: hidden; }
    .container { width: min(100% - 28px, 1180px) !important; }

    .header { padding: 9px 0 !important; }
    .container-header { min-height: 58px; gap: 8px !important; }
    .hamburger-btn { order: 1; width: 44px; height: 44px; padding: 9px !important; flex: 0 0 44px; }
    .logo { order: 2; margin: 0 !important; gap: 8px !important; min-width: 0; flex: 1; }
    .logo img { height: 42px !important; max-width: 56px; }
    .logo h1 { font-size: 17px !important; }
    .logo span { font-size: 9px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
    .nav-icons { order: 3; gap: 5px !important; }
    .nav-icons .nav-link { width: 38px !important; height: 38px !important; min-width: 38px; border-radius: 12px !important; }
    .nav-icons .nav-link svg { width: 17px; height: 17px; }
    .nav-icons .nav-link:nth-child(1) { display: none; }

    .mobile-menu {
        width: min(344px, calc(100% - 18px)) !important;
        right: -100% !important;
        padding: 92px 20px 24px !important;
        border: 1px solid rgba(255,255,255,0.16) !important;
        border-left: 0 !important;
        border-radius: 0 28px 28px 0;
        background: linear-gradient(145deg, rgba(12, 42, 76, 0.92), rgba(3, 15, 31, 0.96)) !important;
        box-shadow: 20px 0 80px rgba(0,0,0,0.42) !important;
    }
    .mobile-menu.open { right: 0 !important; }
    .mobile-menu-links a { border-radius: 16px !important; padding: 14px !important; font-size: 16px !important; }
    .mobile-menu-user { border: 1px solid rgba(212,175,55,0.2); background: rgba(255,255,255,0.07) !important; }

    .home-premium { padding-top: calc(72px + var(--home-trust-bar-offset, 0px)) !important; }
    .promo-strip { padding: 10px 14px !important; line-height: 1.55; }
    .promo-strip span { font-size: 11px !important; letter-spacing: 0 !important; }
    .hero-premium {
        min-height: 0 !important;
        height: auto !important;
        padding: 88px 0 54px !important;
        align-items: flex-start !important;
    }
    .hero-premium::before { inset: 5% 0 !important; clip-path: polygon(0 0, 92% 0, 100% 10%, 100% 90%, 92% 100%, 0 100%) !important; }
    .hero-premium::after { width: 116px !important; height: 116px !important; right: -38px !important; top: 9% !important; opacity: .7; }
    .hero-premium h1 { font-size: clamp(34px, 10.8vw, 52px) !important; line-height: 1.24 !important; margin-bottom: 18px !important; }
    .hero-premium p { font-size: 14px !important; line-height: 1.9 !important; margin-bottom: 26px !important; }
    .hero-premium .hero-content > div:last-child { flex-direction: column !important; gap: 10px !important; margin: 0 auto !important; width: min(100%, 310px); }
    .hero-premium .hero-content > div:last-child a { width: 100%; }
    .hero-premium .glass-card-premium { padding: 8px 16px !important; margin-bottom: 20px !important; }
    .hero-premium .glass-card-premium span { font-size: 11px !important; letter-spacing: .5px !important; }
    .hero-premium .container > div > div:last-child { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; margin-top: 32px !important; }
    .hero-premium .container > div > div:last-child .glass-card-premium { padding: 14px !important; justify-content: flex-start; }

    .deals-board-section { padding: 26px 0 !important; }
    .deals-board-shell { border-radius: 24px !important; padding: 14px !important; }
    .deals-board-main { min-height: auto !important; padding: 24px 12px !important; }
    .deals-board-title { font-size: 28px !important; line-height: 1.3 !important; }
    .deals-board-desc { font-size: 13px !important; line-height: 1.8 !important; }
    .deals-board-cta-row { flex-direction: column !important; gap: 9px !important; }
    .deals-board-cta-row a { width: 100%; }
    .deals-board-rail { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
    .deals-board-rail-card { min-width: 0 !important; padding: 8px !important; }
    .deals-board-rail-media { height: 112px !important; }
    .deals-board-rail-title { font-size: 11px !important; }
    .deals-board-rail-meta { font-size: 9px !important; }
    .deals-board-nav { overflow-x: auto; justify-content: flex-start !important; padding-bottom: 5px; }
    .deals-board-tab { flex: 0 0 auto; }

    .section-title { margin: 34px 0 20px !important; }
    .section-title h2 { font-size: 25px !important; }
    .category-slide { flex: 0 0 142px !important; padding: 14px 10px !important; border-radius: 20px !important; }
    .category-slide img { height: 86px !important; }
    .product-grid-premium, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
    .product-card-premium, .product-card { border-radius: 18px !important; }
    .product-card-premium img, .product-card .product-img { height: 150px !important; object-fit: cover; }
    .product-card-premium > div:last-child, .product-card .product-info { padding: 11px !important; }
    .product-card-premium h3, .product-card h3 { font-size: 13px !important; line-height: 1.55 !important; min-height: 40px; }
    .product-card-premium .price, .product-card .price { font-size: 14px !important; }

    .brands-marquee { margin-top: 28px; padding: 15px 0; }
    .brand-item { min-width: 108px !important; height: 68px !important; }
    .mobile-bottom-nav { left: 12px !important; right: 12px !important; bottom: 12px !important; height: 66px !important; border-radius: 22px !important; padding: 0 5px !important; }
    .mobile-bottom-nav a { min-width: 52px !important; }
    .mobile-bottom-nav a span { font-size: 9px !important; }
    .whatsapp-float { bottom: 92px !important; left: 16px !important; }
    footer, .site-footer { padding-bottom: 105px !important; }
}

@media (max-width: 420px) {
    .logo span { display: none; }
    .logo h1 { font-size: 16px !important; }
    .nav-icons .nav-link { width: 35px !important; min-width: 35px; }
    .hero-premium { padding-top: 72px !important; }
    .hero-premium h1 { font-size: 33px !important; }
    .product-card-premium img, .product-card .product-img { height: 126px !important; }
    .category-slide { flex-basis: 128px !important; }
}

/* Conversation readability: messages are the primary content, quick prompts never cover them. */
.chat-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg-status, .admin-read-status { display: flex; align-items: center; gap: 7px; font-size: 9px; opacity: .68; margin-top: 7px; }
.chat-msg-status b, .admin-read-status { color: rgba(255,255,255,.72); font-weight: 700; }
.admin-read-status.is-read { color: #7dd3fc; }
.chat-content { min-height: 0; scroll-behavior: smooth; }
.chat-window { background: linear-gradient(145deg, rgba(9, 31, 57, .97), rgba(2, 12, 25, .98)) !important; border-color: rgba(212,175,55,.28) !important; }
.chat-window-header { background: linear-gradient(135deg, #123c70, #0a2344) !important; border-bottom: 1px solid rgba(255,255,255,.12); }
.chat-msg { box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.chat-msg.msg-user { border-bottom-right-radius: 5px; background: linear-gradient(135deg, #caa53e, #8d6d17) !important; color: #09172a; }
.chat-msg.msg-support { border-bottom-left-radius: 5px; background: rgba(255,255,255,.09) !important; border: 1px solid rgba(255,255,255,.1); }
.chat-msg.msg-user .chat-msg-meta { color: rgba(0,0,0,.65); }
.chat-msg.msg-user .chat-msg-status { color: rgba(0,0,0,.68); }
.admin-chat-shell { min-height: 0; }
.admin-chat-pane { min-width: 0; min-height: 0; }
.admin-chat-pane #admin-chat-messages { min-height: 0; scroll-behavior: smooth; }
.admin-chat-pane .message { max-width: min(78%, 620px); }
.admin-chat-pane .message.msg-sent { align-self: flex-start; }
.admin-chat-pane .message.msg-received { align-self: flex-end; }
.admin-chat-pane .message .bubble { white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 10px 28px rgba(0,0,0,.18); }

@media (max-width: 800px) {
    .admin-chat-shell { display: flex !important; flex-direction: column; height: calc(100vh - 100px) !important; }
    .admin-chat-shell > div:first-child { flex: 0 0 180px; border-left: 0 !important; border-bottom: 1px solid var(--glass-border); }
    .admin-chat-pane { flex: 1; }
    .admin-chat-pane #admin-chat-messages { padding: 16px !important; }
    .admin-chat-pane .message { max-width: 88%; }
}

@media (max-width: 480px) {
    .chat-widget { left: 12px !important; bottom: 90px !important; }
    .chat-window { left: 8px !important; right: 8px !important; max-width: calc(100vw - 16px) !important; bottom: 150px !important; height: min(520px, calc(100vh - 180px)) !important; }
    .chat-content { padding: 14px !important; gap: 10px !important; }
    .chat-msg { max-width: 88% !important; padding: 10px 13px !important; font-size: 13px !important; }
}

/* Helpdesk unified conversation panel */
.helpdesk-conversation {
    margin: 18px;
    padding: 20px;
    border: 1px solid rgba(25, 182, 255, 0.2);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(17, 48, 83, 0.76), rgba(3, 16, 31, 0.82));
    box-shadow: 0 20px 60px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}
.helpdesk-conversation[hidden] { display: none; }
.helpdesk-conversation-head, .conversation-form-actions, .helpdesk-contact-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.helpdesk-conversation-head { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.helpdesk-conversation h3 { margin: 5px 0; color: #fff; }
.helpdesk-conversation p { margin: 0; color: rgba(255,255,255,.58); font-size: 13px; }
.helpdesk-kicker { color: var(--burooj-gold); font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.helpdesk-contact-actions .btn-glass, .helpdesk-contact-actions .btn-outline, .helpdesk-row-actions .btn-glass { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.conversation-messages { max-height: 360px; overflow-y: auto; padding: 16px 3px; display: flex; flex-direction: column; gap: 10px; }
.conversation-original, .conversation-message { padding: 13px 15px; border-radius: 16px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.09); }
.conversation-original { border-color: rgba(212,175,55,.26); }
.conversation-original > span { color: var(--burooj-gold); font-size: 11px; font-weight: 800; }
.conversation-message.is-internal { border-color: rgba(25,182,255,.3); background: rgba(25,182,255,.08); }
.conversation-message-meta { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; }
.conversation-message p, .conversation-original p { color: #fff; line-height: 1.8; white-space: pre-wrap; margin-top: 6px; }
.conversation-message small { color: rgba(255,255,255,.4); font-size: 10px; }
.conversation-form textarea { width: 100%; resize: vertical; min-height: 82px; margin-bottom: 10px; }
.conversation-form-actions { font-size: 12px; color: rgba(255,255,255,.65); }
.conversation-form-actions input { accent-color: var(--burooj-gold); }
.helpdesk-row-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 155px; }
.conversation-loading, .conversation-empty { padding: 24px; text-align: center; color: rgba(255,255,255,.52); }
.settings-section-label { grid-column: 1 / -1; margin: 20px 0 2px; padding: 10px 14px; border-right: 3px solid var(--burooj-gold); border-radius: 10px; color: #FFE8A3; background: rgba(212,175,55,.08); font-weight: 900; }

.admin-nav-chat {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.38) !important;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(25, 182, 255, 0.12)) !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12), inset 0 1px 0 rgba(255,255,255,.12);
}
.admin-nav-chat:hover, .admin-nav-chat.active {
    border-color: rgba(212, 175, 55, 0.8) !important;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(25, 182, 255, 0.18)) !important;
}
.admin-nav-chat > i { color: #FFD66B !important; filter: drop-shadow(0 0 8px rgba(212,175,55,.45)); }
.admin-nav-new-badge {
    margin-right: auto;
    padding: 3px 7px;
    border-radius: 999px;
    color: #06182d;
    background: linear-gradient(135deg, #FFE49A, #D4AF37);
    font-size: 9px;
    white-space: nowrap;
}

/* Final mobile polish: keep product cards premium without making the grid feel cramped. */
@media (max-width: 768px) {
    .product-grid-premium .product-card-premium > a > div { height: 185px !important; }
    .product-grid-premium .product-card-premium .product-info { padding: 12px !important; }
    .product-grid-premium .product-card-premium h3 {
        font-size: 13px !important;
        line-height: 1.45 !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        min-height: 38px;
        height: 38px;
        margin-bottom: 6px !important;
    }
    .product-grid-premium .product-card-premium .gold-text { font-size: 16px !important; }
    .product-grid-premium .product-card-premium .btn-royal {
        padding: 8px 10px !important;
        font-size: 10px !important;
        min-height: 38px !important;
        white-space: nowrap;
    }
    .home-premium > section:not(.hero-premium):not(.deals-board-section) { padding-block: 48px !important; }
    .home-premium .section-title { padding-inline: 8px; }
    .home-premium .categories-track { gap: 14px !important; padding-inline: 8px !important; }
    .home-premium .brands-track { gap: 24px !important; }
}

/* The configured homepage blocks are the single source of truth on mobile and desktop. */
.home-legacy-categories,
.home-legacy-calculator { display: none !important; }

@media (max-width: 700px) {
    .helpdesk-conversation { margin: 12px; padding: 14px; border-radius: 18px; }
    .helpdesk-conversation-head { align-items: flex-start; flex-direction: column; }
    .helpdesk-contact-actions { width: 100%; flex-wrap: wrap; }
    .helpdesk-contact-actions > * { flex: 1; }
    .conversation-form-actions { align-items: flex-start; flex-direction: column; }
    .conversation-form-actions .btn-royal { width: 100%; }
    .helpdesk-row-actions { min-width: 120px; }
}

/* ══════════════════════════════════════════════════════════════════════
   BUROOJ AL-AHD: TOP CATEGORY DROPDOWN & GLOWING IMAGE CAROUSEL
   ══════════════════════════════════════════════════════════════════════ */

/* 1. Top Category Select in Catalog Toolbar */
.top-category-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.catalog-top-category-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: linear-gradient(135deg, rgba(14, 38, 77, 0.95), rgba(7, 22, 45, 0.96)) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    color: #F8FAFC !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 42px 12px 18px !important;
    border-radius: 16px !important;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 14px center !important;
    min-width: 220px;
}

.catalog-top-category-select:hover,
.catalog-top-category-select:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.45), inset 0 0 14px rgba(25, 182, 255, 0.15) !important;
    transform: translateY(-2px);
}

.catalog-top-category-select option {
    background: #07172e !important;
    color: #F8FAFC !important;
    font-weight: 700;
    padding: 12px;
}

/* Top Price Select */
.top-price-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.catalog-top-price-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: linear-gradient(135deg, rgba(14, 38, 77, 0.95), rgba(7, 22, 45, 0.96)) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    color: #F8FAFC !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 38px 12px 16px !important;
    border-radius: 16px !important;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    min-width: 140px;
}

.catalog-top-price-select:hover,
.catalog-top-price-select:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.45), inset 0 0 14px rgba(25, 182, 255, 0.15) !important;
    transform: translateY(-2px);
}

.catalog-top-price-select option {
    background: #07172e !important;
    color: #F8FAFC !important;
    font-weight: 700;
    padding: 10px;
}

/* 2. Glowing Lighting & Ambient Animation for Product Cards */
.product-detailed-image-frame {
    position: relative;
    width: 100%;
    height: 240px;
    min-height: 220px;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    transition: all 0.35s ease;
}

.product-detailed-image-frame:hover {
    border-color: rgba(212, 175, 55, 0.85) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(212, 175, 55, 0.5), inset 0 0 22px rgba(25, 182, 255, 0.25) !important;
    transform: translateY(-4px);
}

/* Moving Light Beam / Shimmer Effect across Product Image */
.product-detailed-image-frame::after {
    content: '';
    position: absolute;
    top: -65%;
    left: -70%;
    width: 240%;
    height: 240%;
    background: linear-gradient(
        120deg,
        transparent 38%,
        rgba(212, 175, 55, 0.18) 46%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(25, 182, 255, 0.22) 54%,
        transparent 62%
    );
    transform: rotate(-25deg);
    pointer-events: none;
    opacity: 0.5;
    animation: burooj-image-light-beam 6s infinite ease-in-out;
}

@keyframes burooj-image-light-beam {
    0% { transform: translateX(-110%) rotate(-25deg); opacity: 0; }
    15% { opacity: 0.85; }
    35% { transform: translateX(110%) rotate(-25deg); opacity: 0; }
    100% { transform: translateX(110%) rotate(-25deg); opacity: 0; }
}

/* 3. Automatic Multi-Image Slideshow Carousel */
.product-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 310px;
}

.product-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    pointer-events: none;
}

.product-carousel-img.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.product-detailed-card:hover .product-carousel-img.is-active {
    transform: scale(1.06);
    filter: brightness(1.06) contrast(1.03);
}

/* Carousel Glowing Dots Indicator */
.product-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 6;
    background: rgba(4, 15, 30, 0.78);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.product-carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-carousel-dot:hover {
    background: #FFD700;
    transform: scale(1.25);
}

.product-carousel-dot.is-active {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.85);
    width: 22px;
    border-radius: 6px;
}

/* Count Badge for Multi-Images */
.product-carousel-count-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(4, 16, 32, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.45);
    backdrop-filter: blur(8px);
    color: #F8FAFC;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 6;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.product-carousel-count-badge i {
    color: #D4AF37;
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   نظام التنسيق المتكامل لجميع الشاشات والأجهزة (هواتف - أجهزة لوحية - كمبيوتر)
   ========================================================================== */

/* 1. مساحة أمان سفلية لجميع الصفحات لمنع اختفاء البطاقات خلف شريط الجوال السفلي */
.catalog-page,
.catalog-main,
.catalog-shell,
.catalog-content,
main.main-content {
    padding-bottom: 115px !important;
}

/* ==========================================================================
   Master Professional Product Catalog System - Burooj Al-Khayr
   Consistent, High-End Luxury Layout, 100% Fully Responsive Across All Screens
   ========================================================================== */

/* 1. Grid Container Base */
.catalog-page .product-detailed-grid,
.catalog-page .product-pinterest-grid,
#product-grid.product-detailed-grid,
#product-grid.product-pinterest-grid,
.product-detailed-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

/* 2. Master Product Card */
.product-detailed-card.burooj-card-pro,
.product-detailed-card.burooj-luxury-card,
.product-detailed-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 18px !important;
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #091f3a 0%, #051326 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(212, 175, 55, 0.08) !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
}

.product-detailed-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(212, 175, 55, 0.75) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(212, 175, 55, 0.22) !important;
}

/* Sleek Corner Accent Lines */
.product-detailed-card::before,
.product-detailed-card::after {
    content: '' !important;
    position: absolute !important;
    width: 12px !important;
    height: 12px !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
}

.product-detailed-card::before {
    top: -1px !important;
    left: -1px !important;
    border-top: 2px solid #D4AF37 !important;
    border-left: 2px solid #D4AF37 !important;
    border-top-left-radius: 6px !important;
}

.product-detailed-card::after {
    bottom: -1px !important;
    right: -1px !important;
    border-bottom: 2px solid #D4AF37 !important;
    border-right: 2px solid #D4AF37 !important;
    border-bottom-right-radius: 6px !important;
}

/* 3. Wishlist Button */
.product-detailed-card .wishlist-btn {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(4, 16, 32, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #F8FAFC !important;
    cursor: pointer !important;
    z-index: 12 !important;
    transition: all 0.25s ease !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 0 !important;
}

.product-detailed-card .wishlist-btn i,
.product-detailed-card .wishlist-btn svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2 !important;
    transition: transform 0.25s ease !important;
}

.product-detailed-card .wishlist-btn:hover {
    background: rgba(212, 175, 55, 0.25) !important;
    border-color: #D4AF37 !important;
    color: #FFD700 !important;
    transform: scale(1.12) !important;
}

.product-detailed-card .wishlist-btn.active {
    color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.22) !important;
    border-color: #EF4444 !important;
}
.product-detailed-card .wishlist-btn.active i,
.product-detailed-card .wishlist-btn.active svg {
    fill: #EF4444 !important;
}

/* 4. Top Badges (Discount, Multi-sizes) */
.product-card-top-badges {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    z-index: 12 !important;
    pointer-events: none !important;
}

.product-badge-discount {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    color: #FFFFFF !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.45) !important;
}

.product-badge-discount i,
.product-badge-discount svg {
    width: 11px !important;
    height: 11px !important;
}

.product-badge-sizes {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    background: rgba(4, 16, 32, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    color: #FFD700 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
}

.product-badge-sizes i,
.product-badge-sizes svg {
    width: 11px !important;
    height: 11px !important;
}

/* 5. Product Image Media Frame - Perfectly Square & Consistent */
.product-detailed-media {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    text-decoration: none !important;
    margin-bottom: 12px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.product-detailed-image-frame {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.product-detailed-card:hover .product-detailed-image-frame {
    border-color: rgba(212, 175, 55, 0.7) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2) !important;
}

/* Stable, razor-sharp product photos without disturbing floating animations */
.product-detailed-image-frame img,
.product-carousel-img,
.burooj-product-img,
.burooj-floating-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 96% !important;
    max-height: 96% !important;
    object-fit: contain !important;
    object-position: center !important;
    image-rendering: -webkit-optimize-contrast !important;
    display: block !important;
    margin: auto !important;
    animation: none !important; /* Cancel dizzying endless levitation */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15)) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease !important;
}

.product-detailed-card:hover .burooj-product-img,
.product-detailed-card:hover .product-carousel-img,
.product-detailed-card:hover .burooj-floating-img {
    transform: scale(1.05) !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)) !important;
}

/* Image Placeholder Fallback */
.product-detailed-image-placeholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    color: rgba(9, 31, 58, 0.45) !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    width: 100% !important;
    height: 100% !important;
}

.product-detailed-image-placeholder i,
.product-detailed-image-placeholder svg {
    width: 38px !important;
    height: 38px !important;
    color: rgba(212, 175, 55, 0.65) !important;
}

/* ==========================================================================
   Clean Unobstructed Multi-Image Carousel (Zero Overlays on Product Photos)
   ========================================================================== */
.product-detailed-image-frame.has-carousel {
    position: relative !important;
    overflow: hidden !important;
    user-select: none !important;
}

.product-carousel-viewport {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    direction: ltr !important;
}

.product-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-carousel-slide {
    width: 100% !important;
    height: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    box-sizing: border-box !important;
}

.product-carousel-slide img,
.product-carousel-slide .burooj-product-img {
    max-width: 96% !important;
    max-height: 96% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: auto !important;
    transition: transform 0.35s ease !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12)) !important;
}

.product-detailed-card:hover .product-carousel-slide img {
    transform: scale(1.04) !important;
}

/* Zero-Obstruction Dots: Clean transparent background, no dark bar covering photo angles */
.product-carousel-dots {
    position: absolute !important;
    bottom: 6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 10 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.product-carousel-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: rgba(6, 21, 40, 0.35) !important;
    border: 1px solid rgba(212, 175, 55, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

.product-carousel-dot:hover {
    background: #FFD700 !important;
    transform: scale(1.25) !important;
}

.product-carousel-dot.is-active {
    background: #D4AF37 !important;
    width: 14px !important;
    border-radius: 3px !important;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.85) !important;
}

/* Remove Count Badge and Nav Arrows Completely */
.product-carousel-count-badge,
.product-carousel-nav {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* 6. Product Card Body & Vertical Harmony */
.product-detailed-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Meta Line: Category & Stock */
.product-detailed-meta,
.product-detailed-topline {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
    font-size: 11.5px !important;
}

.product-detailed-category {
    color: rgba(255, 255, 255, 0.68) !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 60% !important;
}

.product-detailed-stock {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #10B981 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

.product-detailed-stock .stock-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10B981 !important;
    box-shadow: 0 0 6px #10B981 !important;
    display: inline-block !important;
}

.product-detailed-stock.out {
    color: #EF4444 !important;
}

.product-detailed-stock.out .stock-dot {
    background: #EF4444 !important;
    box-shadow: 0 0 6px #EF4444 !important;
}

/* Title: Exact 2 Lines Clamped with Fixed Height for 100% Vertical Alignment Across All Rows */
.product-detailed-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    line-height: 1.4 !important;
    height: 39px !important;
    min-height: 39px !important;
    max-height: 39px !important;
    margin: 0 0 6px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.product-detailed-title:hover {
    color: #FFD700 !important;
}

/* Rating & Trust Row */
.product-detailed-rating-row,
.product-detailed-rating {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin: 0 0 8px 0 !important;
    font-size: 11px !important;
}

.product-stars-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.product-star-icon {
    color: #F59E0B !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.product-rating-score {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 800 !important;
    font-size: 11px !important;
}

.product-verified-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-size: 10.5px !important;
    color: rgba(255, 255, 255, 0.52) !important;
    font-weight: 600 !important;
}

.product-verified-badge i,
.product-verified-badge svg {
    width: 12px !important;
    height: 12px !important;
    color: #10B981 !important;
}

/* Price Section */
.product-detailed-price-wrap {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    direction: rtl !important;
}

.price-current-group {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}

.product-price-val {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.35) !important;
    font-family: 'Outfit', 'Tajawal', sans-serif !important;
    letter-spacing: -0.3px !important;
}

.product-currency {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #FFD700 !important;
}

.product-old-price {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.42) !important;
    text-decoration: line-through !important;
    font-weight: 600 !important;
}

/* 7. Action Bar (Buybar) - Anchored at Bottom, Identical Height */
.product-detailed-buybar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.btn-add-cart-gold {
    height: 38px !important;
    width: 100% !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%) !important;
    color: #041021 !important;
    border: none !important;
    padding: 0 6px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.32) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    -webkit-appearance: none !important;
    touch-action: manipulation !important;
}

.btn-add-cart-gold:hover {
    background: linear-gradient(135deg, #FFE480 0%, #E6C045 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5) !important;
}

.btn-add-cart-gold:active {
    transform: translateY(0) !important;
}

.btn-add-cart-gold i,
.btn-add-cart-gold svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
    color: #041021 !important;
}

.btn-add-cart-gold span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.btn-details-outline {
    height: 38px !important;
    width: 100% !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(212, 175, 55, 0.38) !important;
    padding: 0 6px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    -webkit-appearance: none !important;
    touch-action: manipulation !important;
}

.btn-details-outline:hover {
    background: rgba(212, 175, 55, 0.16) !important;
    border-color: #D4AF37 !important;
    color: #FFD700 !important;
    transform: translateY(-2px) !important;
}

.btn-details-outline:active {
    transform: translateY(0) !important;
}

.btn-details-outline i,
.btn-details-outline svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
    color: #FFD700 !important;
}

.btn-details-outline span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Skeleton Card Matching Exact Layout */
.product-detailed-card.skeleton-card {
    pointer-events: none !important;
}

.product-skeleton-img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
}

.product-skeleton-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* ==========================================================================
   Responsive Grid & Cards Across All Screen Sizes
   ========================================================================== */

/* Ultra-Wide Screens (>= 1441px) */
@media (min-width: 1441px) {
    .catalog-page .product-detailed-grid,
    .catalog-page .product-pinterest-grid,
    #product-grid.product-detailed-grid,
    #product-grid.product-pinterest-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }
}

/* Laptops & Standard Desktops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .catalog-page .product-detailed-grid,
    .catalog-page .product-pinterest-grid,
    #product-grid.product-detailed-grid,
    #product-grid.product-pinterest-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
    .product-detailed-card {
        padding: 12px !important;
    }
}

/* Tablets & iPads (641px - 1024px) - Clean 3 Columns Grid */
@media (min-width: 641px) and (max-width: 1024px) {
    .catalog-page .product-detailed-grid,
    .catalog-page .product-pinterest-grid,
    #product-grid.product-detailed-grid,
    #product-grid.product-pinterest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
        padding: 0 4px !important;
    }
    .product-detailed-card {
        padding: 11px !important;
        border-radius: 16px !important;
    }
    .product-detailed-image-frame {
        border-radius: 12px !important;
        padding: 6px !important;
    }
    .product-detailed-title {
        font-size: 13px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }
    .product-price-val {
        font-size: 16px !important;
    }
    .btn-add-cart-gold,
    .btn-details-outline {
        height: 35px !important;
        font-size: 11.5px !important;
        border-radius: 8px !important;
    }
}

/* Mobile Devices (<= 640px) - Sharp 2 Columns Grid, No Ragged Edges */
@media (max-width: 640px) {
    .catalog-page .product-detailed-grid,
    .catalog-page .product-pinterest-grid,
    #product-grid.product-detailed-grid,
    #product-grid.product-pinterest-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 0 2px !important;
    }

    .product-detailed-card.burooj-card-pro,
    .product-detailed-card.burooj-luxury-card,
    .product-detailed-card {
        padding: 8px 7px !important;
        border-radius: 14px !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
        border: 1px solid rgba(212, 175, 55, 0.35) !important;
    }

    .product-detailed-card .wishlist-btn {
        width: 28px !important;
        height: 28px !important;
        top: 8px !important;
        left: 8px !important;
    }
    .product-detailed-card .wishlist-btn i,
    .product-detailed-card .wishlist-btn svg {
        width: 13px !important;
        height: 13px !important;
    }

    .product-card-top-badges {
        top: 8px !important;
        right: 8px !important;
        gap: 3px !important;
    }
    .product-badge-discount,
    .product-badge-sizes {
        font-size: 9px !important;
        padding: 2px 5px !important;
        border-radius: 6px !important;
    }

    .product-detailed-media {
        margin-bottom: 6px !important;
    }

    .product-detailed-image-frame {
        border-radius: 10px !important;
        padding: 5px !important;
        border: 1px solid rgba(212, 175, 55, 0.25) !important;
    }

    .product-detailed-meta,
    .product-detailed-topline {
        margin-bottom: 4px !important;
        font-size: 10px !important;
    }
    .product-detailed-category {
        font-size: 10px !important;
    }
    .product-detailed-stock {
        font-size: 9.5px !important;
        gap: 3px !important;
    }
    .product-detailed-stock .stock-dot {
        width: 5px !important;
        height: 5px !important;
    }

    .product-detailed-title {
        font-size: 11.5px !important;
        line-height: 1.3 !important;
        height: 31px !important;
        min-height: 31px !important;
        max-height: 31px !important;
        margin: 0 0 4px 0 !important;
        font-weight: 800 !important;
    }

    .product-detailed-rating-row,
    .product-detailed-rating {
        margin: 0 0 5px 0 !important;
        font-size: 9.5px !important;
    }
    .product-star-icon {
        font-size: 10.5px !important;
    }
    .product-rating-score {
        font-size: 10px !important;
    }
    .product-verified-badge {
        font-size: 9px !important;
    }
    .product-verified-badge i,
    .product-verified-badge svg {
        width: 10px !important;
        height: 10px !important;
    }

    .product-detailed-price-wrap {
        margin-bottom: 6px !important;
        gap: 5px !important;
    }
    .product-price-val {
        font-size: 15px !important;
    }
    .product-currency {
        font-size: 10.5px !important;
    }
    .product-old-price {
        font-size: 10px !important;
    }

    .product-detailed-buybar {
        gap: 5px !important;
        padding-top: 6px !important;
        border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
    }

    .btn-add-cart-gold {
        height: 32px !important;
        font-size: 10px !important;
        border-radius: 7px !important;
        padding: 0 3px !important;
        gap: 3px !important;
    }
    .btn-add-cart-gold i,
    .btn-add-cart-gold svg {
        width: 12px !important;
        height: 12px !important;
    }

    .btn-details-outline {
        height: 32px !important;
        font-size: 10px !important;
        border-radius: 7px !important;
        padding: 0 3px !important;
        gap: 3px !important;
    }
    .btn-details-outline i,
    .btn-details-outline svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Very Small Mobile (< 360px) */
@media (max-width: 360px) {
    .catalog-page .product-detailed-grid,
    #product-grid.product-detailed-grid {
        gap: 6px !important;
    }
    .product-detailed-card {
        padding: 6px 5px !important;
    }
    .product-detailed-title {
        font-size: 10.5px !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
    }
    .btn-add-cart-gold,
    .btn-details-outline {
        height: 30px !important;
        font-size: 9.5px !important;
    }
}


/* ==========================================================================
   Full-Fill Smart Product Card Images System (Large, Clear, Filled Container)
   ========================================================================== */
.product-card-premium .product-img-box,
.product-card .product-img-box,
.product-card .product-img-wrapper {
    width: 100% !important;
    height: 250px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-card-premium img,
.product-card .product-img,
.product-card .product-img-zoom,
.product-grid-premium img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card-premium:hover img,
.product-card-premium:hover .product-img-zoom,
.product-card:hover .product-img,
.product-card:hover .product-img-zoom {
    transform: scale(1.08) !important;
}

@media (max-width: 768px) {
    .product-card-premium .product-img-box,
    .product-card .product-img-box,
    .product-card .product-img-wrapper {
        height: 180px !important;
    }
}

@media (max-width: 420px) {
    .product-card-premium .product-img-box,
    .product-card .product-img-box,
    .product-card .product-img-wrapper {
        height: 160px !important;
    }
}

/* ==========================================================================
   Mobile Layout Responsive Enhancement System (Categories, Footer, Badges, Floats)
   ========================================================================== */

/* 1. Category Tiles Grid on Mobile */
@media (max-width: 768px) {
    div[style*="grid-template-columns: repeat(5, 1fr)"],
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    div[style*="grid-template-columns: repeat(5, 1fr)"] > a,
    .category-tile {
        padding: 16px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 18px !important;
    }
    div[style*="grid-template-columns: repeat(5, 1fr)"] i,
    .category-tile i {
        width: 28px !important;
        height: 28px !important;
        margin-bottom: 8px !important;
    }
    div[style*="grid-template-columns: repeat(5, 1fr)"] h3,
    .category-tile h3 {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    .home-hero-mini-cards {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
    .mini-hero-button {
        padding: 16px 20px !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 440px) {
    div[style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* 2. Footer Responsive Layout */
@media (max-width: 768px) {
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        align-items: center !important;
        text-align: center !important;
    }
    .footer-brand-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    .footer-logo {
        justify-content: center !important;
    }
    .footer-brand-desc {
        text-align: center !important;
        margin: 10px auto 16px !important;
        max-width: 90% !important;
    }
    .footer-social {
        justify-content: center !important;
    }
    .footer-col {
        width: 100% !important;
        text-align: center !important;
    }
    .footer-col h4 {
        text-align: center !important;
        margin-bottom: 12px !important;
    }
    .footer-col .glass-menu {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 12px !important;
        direction: rtl !important;
    }
    .footer-col .glass-menu-item {
        background: rgba(255,255,255,0.04) !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        border-radius: 20px !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        margin: 0 !important;
    }
}

/* 3. Commercial Registration & VAT Badges Perfect Box Fitting */
.footer-legal-badges {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 25px auto 15px !important;
    width: 100% !important;
    max-width: 600px !important;
    box-sizing: border-box !important;
    padding: 0 10px !important;
}

.footer-legal-badges .legal-badge-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    flex: 1 1 50% !important;
    max-width: 50% !important;
    min-width: 0 !important; /* CRITICAL: Enables flex child text scaling within container boundaries */
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.footer-legal-badges .legal-badge-item svg {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
}

.footer-legal-badges .legal-badge-item div {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
}

.footer-legal-badges .legal-badge-item div div:first-child {
    color: #D4AF37 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.footer-legal-badges .legal-badge-item div div:last-child {
    color: #FFFFFF !important;
    font-size: clamp(8px, 2.5vw, 12px) !important;
    font-weight: 900 !important;
    letter-spacing: -0.3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 480px) {
    .footer-legal-badges {
        gap: 6px !important;
        padding: 0 4px !important;
    }
    .footer-legal-badges .legal-badge-item {
        padding: 6px 6px !important;
        gap: 5px !important;
        border-radius: 12px !important;
    }
    .footer-legal-badges .legal-badge-item svg {
        width: 26px !important;
        height: 26px !important;
    }
    .footer-legal-badges .legal-badge-item div div:first-child {
        font-size: 9.5px !important;
    }
    .footer-legal-badges .legal-badge-item div div:last-child {
        font-size: clamp(7.5px, 2.3vw, 10px) !important;
    }
}

/* 4. Floating Action Buttons (WhatsApp & Live Chat Side-by-Side above bottom nav) */
.whatsapp-float {
    position: fixed !important;
    bottom: 85px !important;
    left: 80px !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 9990 !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
}

.whatsapp-float svg {
    width: 26px !important;
    height: 26px !important;
}

#chat-launcher-btn,
.chat-launcher,
.chat-widget-trigger,
.chat-floating-btn,
.chat-bubble-launcher,
div[class*="chat-launcher"],
div[class*="chat-widget"] {
    position: fixed !important;
    bottom: 85px !important;
    left: 18px !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 9990 !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
}

@media (min-width: 992px) {
    .whatsapp-float {
        bottom: 30px !important;
        left: 94px !important;
    }
    #chat-launcher-btn,
    .chat-launcher,
    .chat-widget-trigger,
    .chat-floating-btn,
    .chat-bubble-launcher {
        bottom: 30px !important;
        left: 30px !important;
    }
}




/* ==========================================================================
   BUROOJ AL-KHAYR 10/10 EXECUTIVE THEME SYSTEM & LIGHT MODE SUITE
   Ultra-High-End Commercial Responsive Architecture (Saudi Quality Standards)
   ========================================================================== */

/* 1. Theme Toggle Button Styling */
.theme-toggle-btn {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    color: var(--white, #ffffff) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    outline: none !important;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: rotate(20deg) scale(1.08) !important;
    color: #D4AF37 !important;
}

.theme-toggle-btn:active {
    transform: scale(0.95) !important;
}

/* 2. Light Mode Master Overrides */
html[data-theme-mode="light"],
body[data-theme-mode="light"] {
    --bg-dark: #f8fafc !important;
    --bg-dark-alt: #ffffff !important;
    --white: #0f172a !important;
    --text-light: #334155 !important;
    --text-muted: #64748b !important;
    --glass-background: rgba(255, 255, 255, 0.96) !important;
    --glass-bg: rgba(255, 255, 255, 0.92) !important;
    --glass-border: rgba(226, 232, 240, 0.9) !important;
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
    --shadow-premium: 0 14px 34px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme-mode="light"] body {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    background-image: radial-gradient(rgba(203, 213, 225, 0.35) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
}

/* Hide or fade ambient orbs & video in light mode */
html[data-theme-mode="light"] #bg-video,
html[data-theme-mode="light"] .video-overlay,
html[data-theme-mode="light"] .bg-orbs {
    display: none !important;
}

/* Header in Light Mode */
html[data-theme-mode="light"] .header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme-mode="light"] .logo-text {
    color: #b45309 !important;
}

html[data-theme-mode="light"] .logo span:last-child {
    color: #64748b !important;
}

html[data-theme-mode="light"] .theme-toggle-btn {
    color: #334155 !important;
}

html[data-theme-mode="light"] .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #b45309 !important;
}

html[data-theme-mode="light"] .search-bar {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
}

html[data-theme-mode="light"] .search-bar input {
    color: #0f172a !important;
}

html[data-theme-mode="light"] .search-bar input::placeholder {
    color: #94a3b8 !important;
}

html[data-theme-mode="light"] .search-btn {
    color: #64748b !important;
}

html[data-theme-mode="light"] .search-btn:hover {
    color: #b45309 !important;
}

html[data-theme-mode="light"] .nav-icons .nav-link {
    color: #334155 !important;
}

html[data-theme-mode="light"] .nav-icons .nav-link:hover {
    color: #b45309 !important;
}

html[data-theme-mode="light"] .nav-menu {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

html[data-theme-mode="light"] .nav-menu-link {
    color: #334155 !important;
}

html[data-theme-mode="light"] .nav-menu-link:hover,
html[data-theme-mode="light"] .nav-menu-link.active {
    color: #b45309 !important;
    font-weight: 800 !important;
}

html[data-theme-mode="light"] .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.09) !important;
}

html[data-theme-mode="light"] .dropdown-menu a {
    color: #334155 !important;
}

html[data-theme-mode="light"] .dropdown-menu a:hover {
    background: #f8fafc !important;
    color: #b45309 !important;
}

/* Announcement Top Bar */
html[data-theme-mode="light"] .top-bar {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
    border-bottom: 1px solid #fcd34d !important;
    font-weight: 700 !important;
}

/* Cards in Light Mode */
html[data-theme-mode="light"] .glass-card,
html[data-theme-mode="light"] .card,
html[data-theme-mode="light"] .checkout-grid > div > div {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04) !important;
    color: #0f172a !important;
}

html[data-theme-mode="light"] .glass-card h1,
html[data-theme-mode="light"] .glass-card h2,
html[data-theme-mode="light"] .glass-card h3,
html[data-theme-mode="light"] .glass-card h4 {
    color: #0f172a !important;
}

html[data-theme-mode="light"] .glass-card p,
html[data-theme-mode="light"] .glass-card span {
    color: #475569 !important;
}

/* Master Product Cards in Light Mode */
html[data-theme-mode="light"] .product-detailed-card.burooj-card-pro,
html[data-theme-mode="light"] .product-detailed-card.burooj-luxury-card,
html[data-theme-mode="light"] .product-detailed-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme-mode="light"] .product-detailed-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09) !important;
    transform: translateY(-4px) !important;
}

html[data-theme-mode="light"] .product-detailed-image-frame {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
}

html[data-theme-mode="light"] .product-detailed-title {
    color: #0f172a !important;
}

html[data-theme-mode="light"] .product-detailed-category {
    color: #64748b !important;
}

html[data-theme-mode="light"] .product-price-val {
    color: #b45309 !important;
}

html[data-theme-mode="light"] .product-detailed-card .btn-add-cart-gold {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3) !important;
}

html[data-theme-mode="light"] .product-detailed-card .btn-details-outline {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme-mode="light"] .product-detailed-card .btn-details-outline:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

html[data-theme-mode="light"] .product-detailed-card .wishlist-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme-mode="light"] .product-detailed-card .wishlist-btn:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}

/* Catalog Toolbar in Light Mode */
html[data-theme-mode="light"] .catalog-toolbar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 25px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme-mode="light"] .catalog-toolbar h1 {
    color: #0f172a !important;
}

html[data-theme-mode="light"] .catalog-toolbar p {
    color: #64748b !important;
}

html[data-theme-mode="light"] .catalog-search input,
html[data-theme-mode="light"] .catalog-top-category-select,
html[data-theme-mode="light"] .catalog-top-price-select,
html[data-theme-mode="light"] .catalog-sort-select {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme-mode="light"] .catalog-count-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme-mode="light"] .catalog-count-card strong {
    color: #b45309 !important;
}

html[data-theme-mode="light"] .catalog-view-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

html[data-theme-mode="light"] .catalog-view-btn.is-active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

/* Forms & Inputs in Light Mode */
html[data-theme-mode="light"] .form-control,
html[data-theme-mode="light"] input.btn-outline,
html[data-theme-mode="light"] select.btn-outline,
html[data-theme-mode="light"] textarea.btn-outline {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme-mode="light"] .form-control:focus,
html[data-theme-mode="light"] input.btn-outline:focus,
html[data-theme-mode="light"] select.btn-outline:focus,
html[data-theme-mode="light"] textarea.btn-outline:focus {
    border-color: #b45309 !important;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15) !important;
}

/* Bank Details Box in Checkout */
html[data-theme-mode="light"] #bank-payment-box {
    background: #ffffff !important;
    border: 1.5px solid #d4af37 !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12) !important;
}

html[data-theme-mode="light"] #bank-payment-box strong {
    color: #92400e !important;
}

html[data-theme-mode="light"] #bank-payment-box div[style*="background: rgba(255,255,255,0.05)"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme-mode="light"] #bank-payment-box span,
html[data-theme-mode="light"] #bank-payment-box div {
    color: #1e293b !important;
}

/* Mobile Drawers & Bottom Nav */
html[data-theme-mode="light"] .mobile-menu {
    background: #ffffff !important;
    border-left: 1px solid #e2e8f0 !important;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15) !important;
}

html[data-theme-mode="light"] .mobile-menu-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme-mode="light"] .mobile-nav-link {
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme-mode="light"] .mobile-nav-link:hover,
html[data-theme-mode="light"] .mobile-nav-link.active {
    background: #f8fafc !important;
    color: #b45309 !important;
    font-weight: 800 !important;
}

html[data-theme-mode="light"] .mobile-menu-close {
    color: #334155 !important;
}

html[data-theme-mode="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme-mode="light"] .bottom-nav a {
    color: #64748b !important;
}

html[data-theme-mode="light"] .bottom-nav a.active {
    color: #b45309 !important;
}

/* Modals & Dialogs */
html[data-theme-mode="light"] .modal-content,
html[data-theme-mode="light"] .quick-view-modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2) !important;
}

/* Table in Light Mode */
html[data-theme-mode="light"] .admin-table {
    border-color: #e2e8f0 !important;
}

html[data-theme-mode="light"] .admin-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

html[data-theme-mode="light"] .admin-table td {
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme-mode="light"] .admin-table tr:hover td {
    background: #f8fafc !important;
}

/* 3. Smooth Transition between Modes */
body, .header, .nav-menu, .glass-card, .product-detailed-card, .catalog-toolbar, .mobile-menu {
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease !important;
}


/* Additional High-Contrast Product Card Refinements for Light Mode (10/10 Polish) */
html[data-theme-mode="light"] .product-detailed-category {
    color: #475569 !important;
    font-weight: 700 !important;
}

html[data-theme-mode="light"] .product-detailed-stock.available {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
}

html[data-theme-mode="light"] .product-detailed-stock.available .stock-text {
    color: #065f46 !important;
    font-weight: 800 !important;
}

html[data-theme-mode="light"] .product-detailed-stock.available .stock-dot {
    background: #10b981 !important;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5) !important;
}

html[data-theme-mode="light"] .product-detailed-stock.out {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
}

html[data-theme-mode="light"] .product-detailed-stock.out .stock-text {
    color: #991b1b !important;
    font-weight: 800 !important;
}

html[data-theme-mode="light"] .product-detailed-stock.out .stock-dot {
    background: #ef4444 !important;
}

html[data-theme-mode="light"] .product-detailed-title {
    color: #0f172a !important;
    font-weight: 800 !important;
}

html[data-theme-mode="light"] .product-detailed-rating-row {
    color: #d97706 !important;
}

html[data-theme-mode="light"] .product-detailed-rating-row i,
html[data-theme-mode="light"] .product-detailed-rating-row svg {
    color: #f59e0b !important;
    fill: #f59e0b !important;
}

html[data-theme-mode="light"] .product-price-val {
    color: #b45309 !important;
    font-weight: 900 !important;
}

html[data-theme-mode="light"] .product-price-sar {
    color: #92400e !important;
    font-weight: 700 !important;
}

html[data-theme-mode="light"] .product-detailed-card .btn-details-outline {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

html[data-theme-mode="light"] .product-detailed-card .btn-details-outline i,
html[data-theme-mode="light"] .product-detailed-card .btn-details-outline svg {
    color: #b45309 !important;
}

html[data-theme-mode="light"] .product-detailed-card .btn-add-cart-gold {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.28) !important;
}

/* Ultra-crisp button span & price text in Light Mode */
html[data-theme-mode="light"] .btn-details-outline,
html[data-theme-mode="light"] .btn-details-outline span {
    color: #334155 !important;
    font-weight: 800 !important;
}
html[data-theme-mode="light"] .btn-details-outline:hover,
html[data-theme-mode="light"] .btn-details-outline:hover span {
    color: #0f172a !important;
}
html[data-theme-mode="light"] .product-detailed-price-col,
html[data-theme-mode="light"] .product-price-val,
html[data-theme-mode="light"] .product-price-sar,
html[data-theme-mode="light"] [class*="product-price"] {
    color: #b45309 !important;
    font-weight: 900 !important;
}
