:root {
    /* ══════ Al-Badr Royal Turquoise Palette (Light Mode) ══════ */
    --primary: #089185;
    --primary-glow: rgba(8, 145, 133, 0.22);
    --primary-alt: #0fa293;
    --primary-dark: #067067;
    --primary-light: #2dd4bf;
    --white: #ffffff;
    --bg-dark: #F8F9FA;
    --bg-dark-alt: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --text-muted: #64748b;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent: #089185;
    --success: hsl(142, 71%, 45%);
    --error: hsl(0, 84%, 60%);
    
    /* Loader Tokens */
    --loader-bg: #ffffff;
    --loader-accent: #089185;

    --text-white: #ffffff;
    
    /* Glassmorphism Tokens */
    --glass-bg-thick: rgba(255, 255, 255, 0.95);
    --glass-border-bright: rgba(0, 0, 0, 0.12);
    --glass-background: rgba(255, 255, 255, 0.92);
    --glass: rgba(0, 0, 0, 0.02);
    --glass-blur: 20px;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 25px var(--primary-glow);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.08);
    
    /* Toast Colors */
    --toast-success: #10b981;
    --toast-error: #ef4444;
    --toast-info: #3b82f6;
    
    /* Legacy tokens still referenced across merged pages */
    --secondary: #f8f9fa;
    --primary-light: #2dd4bf;
    --gray-100: rgba(0, 0, 0, 0.03);
    --text-light: #334155;
    
    /* 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;
}
.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: 78px;
    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;
}
.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: flex;
    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);
}

/* ===== 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) {
    .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-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;
}

.msg-user {
    align-self: flex-start;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-bottom-left-radius: 2px;
}

.msg-support {
    align-self: flex-end;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--white);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    /* 1. Global Mobile Fixes */
    :root {
        --mobile-bottom-nav-height: 85px;
    }
    
    body {
        padding-bottom: var(--mobile-bottom-nav-height);
    }

    /* 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;
    }

    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    /* 1. Global Mobile Fixes */
    :root {
        --mobile-bottom-nav-height: 85px;
    }
    
    body {
        padding-bottom: var(--mobile-bottom-nav-height);
    }

    /* 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 Responsive Slide-out Drawer */
    .admin-sidebar {
        position: fixed;
        right: -280px; /* Slide off-screen to the right in RTL */
        top: 0;
        bottom: 0;
        z-index: 2500;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(25px);
        width: 280px;
        box-shadow: -10px 0 35px rgba(0,0,0,0.6);
        display: flex !important;
        border-left: 1px solid var(--glass-border);
    }
    .admin-sidebar.open {
        right: 0 !important;
    }
    
    .admin-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        z-index: 2400;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .admin-sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .admin-main { padding: 20px; }
    
    .admin-stats {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .admin-table-container {
        overflow-x: auto !important;
    }

    .admin-tab-content > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .chat-window { width: calc(100% - 40px); left: 20px; bottom: 80px; }
    .chat-widget { left: 25px; bottom: 210px; }
}

@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 ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #020617, #0a1628);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.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;
}

/* ===== 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; }
    
    .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 ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loader-bg);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

.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;
    }
    }
}

@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;
    }
}

/* ==========================================================================
   AL-BADR PREMIUM LIGHT MODE SYSTEM OVERRIDES
   ========================================================================== */

/* Hiding background video and making video overlay represent the body background */
#bg-video {
    display: none !important;
}
.video-overlay {
    background: var(--bg-dark) !important;
}
body {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
}

/* 1. Header (Dark Turquoise Frame) */
.header {
    background: #066e65 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 12px 0 !important;
}
.header.scrolled {
    background: #055c54 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}
.logo-img {
    height: 48px !important;
    width: auto !important;
    object-fit: contain;
    display: inline-block;
    transition: var(--transition);
}
.logo:hover .logo-img {
    transform: scale(1.05) !important;
}
.header .nav-link {
    color: #ffffff !important;
}
.header .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
.header .nav-link.cart-link {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
.header .nav-link.cart-link:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}
.hamburger-btn span {
    background-color: #ffffff !important;
}

/* 2. Navigation Menu (Dark Turquoise Frame) */
.nav-menu {
    background: #089185 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    top: 72px !important;
}
.nav-menu-inner {
    background: transparent !important;
}
.nav-menu-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}
.nav-menu-link:hover,
.nav-menu-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}
.nav-menu-link.active::after {
    background: #ffffff !important;
    height: 3px !important;
}
.nav-menu-link .dropdown-arrow {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Dropdown Menu (Dark matching the Navbar) */
.dropdown-menu {
    background: #066e65 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--rounded-md) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
}
.dropdown-menu a {
    color: rgba(255, 255, 255, 0.9) !important;
}
.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
.dropdown-menu a i {
    color: #ffffff !important;
}

/* 3. Banner Section */
.page-banner {
    background: #f1f5f9 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.page-banner h1,
.page-banner h2 {
    color: var(--text-primary) !important;
}
.page-banner p {
    color: var(--text-secondary) !important;
}

/* 4. Orbs subtlety in light mode */
.bg-orbs .orb {
    opacity: 0.03 !important;
}

/* 5. General Cards and Glass Cards in Light Mode */
.glass-card, 
.card, 
.info-card, 
.contact-info-box, 
#contact-form, 
#support,
.account-card,
.product-card,
.wishlist-item,
.cart-item,
.checkout-form,
.auth-card,
.faq-card,
.shipping-card,
.sourcing-card,
.tracking-card,
.welcome-card,
.merchant-card {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
    color: var(--text-primary) !important;
}

/* Headings in cards */
.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4,
.card h1, .card h2, .card h3, .card h4,
.contact-info-box h3, .contact-info-box h4,
#contact-form h3, #support h3,
.faq-card h3, .product-card h3,
.footer h4 {
    color: var(--text-primary) !important;
}

/* Contact items & labels */
.contact-item {
    color: var(--text-secondary) !important;
}
.contact-item span, .contact-item a {
    color: var(--text-secondary) !important;
}
.contact-item div {
    background: rgba(8, 145, 133, 0.08) !important;
    color: var(--primary) !important;
}
.form-group label {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

/* 6. Form Controls (Inputs, textareas, selects) */
input.form-control,
textarea.form-control,
.form-control,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    border-radius: 10px !important;
    padding: 12px !important;
    font-size: 15px !important;
    transition: var(--transition) !important;
}
input:focus, textarea:focus, select:focus {
    border-color: #089185 !important;
    box-shadow: 0 0 0 3px rgba(8, 145, 133, 0.15) !important;
    background-color: #ffffff !important;
}
input::placeholder, textarea::placeholder {
    color: #94a3b8 !important;
}

/* 7. Buttons (Turquoise background, white text) */
.btn-primary,
.btn,
.search-btn,
input[type="submit"],
button[type="submit"] {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
}
.btn-primary:hover,
.btn:hover,
.search-btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #067067 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(8, 145, 133, 0.25) !important;
}

/* 8. Text elements, descriptions, and list items */
p, span, li, td, th {
    color: var(--text-secondary);
}
.dot {
    color: var(--primary) !important;
}

/* Footer overrides */
.footer {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--text-secondary) !important;
}
.footer-glass {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}
.footer h4 {
    color: var(--text-primary) !important;
}
.footer-logo-text {
    color: var(--text-primary) !important;
}
.footer-brand-desc, .footer-copyright, .footer-credit, .footer-credit a {
    color: var(--text-muted) !important;
}
.glass-menu-item {
    color: var(--text-secondary) !important;
}
.glass-menu-item:hover {
    color: var(--primary) !important;
    background: rgba(8, 145, 133, 0.05) !important;
}
.whatsapp-float {
    background: linear-gradient(135deg, var(--primary), #0fa293) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(8, 145, 133, 0.3) !important;
}

/* Newsletter in Footer */
.newsletter-glass {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: var(--rounded-md) !important;
}
.newsletter-glass h3 {
    color: var(--text-primary) !important;
}
.newsletter-glass p {
    color: var(--text-secondary) !important;
}
.newsletter-form input {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

/* 9. Immersive Hero and Home Page specific Overrides */
.hero-premium h1 {
    color: var(--text-primary) !important;
}
.hero-premium p {
    color: var(--text-secondary) !important;
}
.glass-card-premium {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
}
.glass-card-premium h3,
.glass-card-premium h4 {
    color: var(--text-primary) !important;
}
.glass-card-premium p {
    color: var(--text-secondary) !important;
}
.glass-card-premium span.gold-text {
    background: none !important;
    -webkit-text-fill-color: var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 800 !important;
}
.gold-text {
    background: none !important;
    -webkit-text-fill-color: var(--primary) !important;
    color: var(--primary) !important;
}
.btn-royal {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(8, 145, 133, 0.22) !important;
    animation: none !important;
}
.btn-royal:hover {
    background: #067067 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(8, 145, 133, 0.3) !important;
}
.btn-glass {
    background: #ffffff !important;
    color: var(--text-primary) !important;
    border: 1px solid #cbd5e1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
.btn-glass:hover {
    background: #f1f5f9 !important;
    color: var(--text-primary) !important;
    border-color: #94a3b8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
}

/* 10. Shop and Filter Sidebar specific Overrides */
.sidebar {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}
.sidebar .filter-header h3 {
    color: var(--text-primary) !important;
}
.sidebar .filter-group h4 {
    color: var(--text-secondary) !important;
    opacity: 0.8 !important;
}
.sidebar .filter-list label {
    color: var(--text-primary) !important;
}
.sidebar .btn-outline {
    border-color: #cbd5e1 !important;
    color: var(--text-primary) !important;
    background: #ffffff !important;
}
.sidebar .btn-outline:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}
.listing-header {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}
.listing-header h2 {
    color: var(--text-primary) !important;
}
.listing-header p {
    color: var(--text-secondary) !important;
}
.listing-header select {
    color: var(--text-primary) !important;
    border-color: #cbd5e1 !important;
}

/* ===================================================================
   PAGE-SPECIFIC LIGHT MODE TEXT CONTRAST FIXES
   Targeting hardcoded white colors in page HTML
   =================================================================== */

/* --- General: fix any element using --white as text color --- */
main h1, main h2, main h3, main h4, main h5, main h6 {
    color: var(--text-primary) !important;
}
main p {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}
main label {
    color: var(--text-primary) !important;
}
main li {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Sourcing Page — info section and form card */
.sourcing-info h2,
.sourcing-info h4 {
    color: var(--text-primary) !important;
}
.sourcing-info p,
.sourcing-info li p {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}
.glass-card h3 {
    color: var(--text-primary) !important;
}
.glass-card label,
.glass-card .form-group label {
    color: var(--text-primary) !important;
}

/* Step Cards (in sourcing hero — keep white since background is dark image) */
.sourcing-hero .step-card h3 {
    color: #ffffff !important;
}
.sourcing-hero .step-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Tracking Page */
.tracking-card h2,
.tracking-card h3,
.tracking-card h4 {
    color: var(--text-primary) !important;
}
.tracking-card p,
.tracking-card label {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* About Page */
.about-section h1,
.about-section h2,
.about-section h3 {
    color: var(--text-primary) !important;
}
.about-section p {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* FAQ Page */
.faq-item h3,
.faq-item h4 {
    color: var(--text-primary) !important;
}
.faq-item p {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Shipping and Policy Pages */
.policy-section h2,
.policy-section h3,
.shipping-section h2,
.shipping-section h3 {
    color: var(--text-primary) !important;
}
.policy-section p,
.shipping-section p {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Login / Register Auth Cards */
.auth-card h2,
.auth-card h3 {
    color: var(--text-primary) !important;
}
.auth-card p,
.auth-card label {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Account Page */
.account-section h2,
.account-section h3,
.account-section h4 {
    color: var(--text-primary) !important;
}
.account-section p,
.account-section label {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Welcome Page */
.welcome-section h1,
.welcome-section h2,
.welcome-section p {
    color: var(--text-primary) !important;
    opacity: 1 !important;
}

/* Cart and Checkout */
.cart-section h2,
.cart-section h3,
.checkout-section h2,
.checkout-section h3 {
    color: var(--text-primary) !important;
}
.cart-section p,
.checkout-section p,
.checkout-section label {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Override for elements with inline opacity: 0.6 / 0.7 style */
[style*="opacity: 0.6"],
[style*="opacity: 0.7"],
[style*="opacity:0.6"],
[style*="opacity:0.7"] {
    opacity: 1 !important;
    color: var(--text-secondary) !important;
}

/* Ensure inline color:var(--white) text elements remain readable */
[style*="color: var(--white)"],
[style*="color:var(--white)"] {
    color: var(--text-primary) !important;
}

/* Exception: elements INSIDE sections with dark image backgrounds keep white */
.sourcing-hero [style*="color: var(--white)"],
.sourcing-hero [style*="color:var(--white)"],
.sourcing-hero [style*="opacity: 0.7"],
.sourcing-hero [style*="opacity: 0.8"],
section[style*="rgba(0,0,0"] [style*="color: var(--white)"],
section[style*="rgba(0,0,0"] [style*="color:var(--white)"] {
    color: #ffffff !important;
}

/* ===================================================================
   FOOTER — LIGHT MODE FIX
   Make footer always have a solid dark background with bright text
   =================================================================== */

/* Solid dark background so text is always readable */
.footer {
    background: #0f172a !important;
    backdrop-filter: none !important;
    border-top: 1px solid #1e293b !important;
}
.footer::before {
    background: linear-gradient(90deg, transparent, #089185, transparent) !important;
}

/* Footer grid borders */
.footer-grid {
    border-bottom-color: rgba(255,255,255,0.1) !important;
}

/* Logo text */
.footer-logo-text {
    color: #ffffff !important;
}
.footer-logo-text .dot {
    color: #089185 !important;
}

/* Brand description */
.footer-brand-desc {
    color: rgba(255,255,255,0.7) !important;
}

/* Column headings */
.footer-col h4 {
    color: #089185 !important;
}

/* Menu links */
.glass-menu-item {
    color: rgba(255,255,255,0.75) !important;
}
.glass-menu-item:hover {
    color: #089185 !important;
    background: rgba(8,145,133,0.1) !important;
}

/* Menu dots */
.menu-dot {
    background: rgba(255,255,255,0.25) !important;
}
.glass-menu-item:hover .menu-dot {
    background: #089185 !important;
    box-shadow: 0 0 8px rgba(8,145,133,0.5) !important;
}

/* Menu icons */
.menu-icon {
    color: rgba(255,255,255,0.6) !important;
}

/* Social icons */
.social-icon {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.7) !important;
}
.social-icon:hover {
    background: #089185 !important;
    border-color: #089185 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(8,145,133,0.35) !important;
}

/* Newsletter section */
.newsletter-glass {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
}
.newsletter-text h3 {
    color: #ffffff !important;
}
.newsletter-text p {
    color: rgba(255,255,255,0.7) !important;
}
.newsletter-form {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
}
.newsletter-form input {
    color: #ffffff !important;
}
.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4) !important;
}
.newsletter-form button {
    background: linear-gradient(135deg, #089185, #0dbbb4) !important;
    color: #ffffff !important;
}

/* Payment methods */
.payment-methods-glass {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.7) !important;
}
.payment-methods-glass span,
.payment-methods-glass i {
    color: rgba(255,255,255,0.7) !important;
}

/* Footer bottom */
.footer-bottom {
    border-top-color: rgba(255,255,255,0.08) !important;
}
.footer-copyright {
    color: rgba(255,255,255,0.5) !important;
}
.footer-credit {
    color: rgba(255,255,255,0.5) !important;
}
.footer-credit a {
    color: #089185 !important;
}
.footer-credit a:hover {
    color: #0dbbb4 !important;
}

/* Sidebar Toggle Button Styles */
.admin-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--white) !important;
    padding: 10px !important;
    border-radius: 10px !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.admin-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--primary) !important;
}
.admin-toggle-btn i {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .admin-toggle-btn {
        display: flex !important;
    }
}

/* ════════════ Global Overflow Fix ════════════ */
html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}

/* ════════════ Homepage Responsive Grid / Flex Classes ════════════ */
.home-hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.home-mini-offers-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}
.home-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.home-deal-card {
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    border: 1px solid rgba(198,165,92,0.15);
}
.home-sourcing-card {
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    border: 1px solid rgba(198,165,92,0.15);
}
.home-sourcing-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 992px) {
    .home-deal-card,
    .home-sourcing-card {
        grid-template-columns: 1fr !important;
        gap: 30px;
        padding: 30px;
    }
    .home-hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 20px;
    }
    .home-hero-btns a {
        width: 100% !important;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .home-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .home-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .home-testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .home-mini-offers-container {
        flex-direction: column;
        align-items: stretch;
        margin-top: 30px;
        gap: 12px;
        padding: 0 15px;
    }
    .home-mini-offers-container .glass-card-premium {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .home-features-grid,
    .home-categories-grid,
    .home-stats-grid {
        grid-template-columns: 1fr !important;
    }
}

