/* ============================================================
   DIGISTOR - Main Stylesheet
   Dark Theme Marketplace
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@400;600;700;900&display=swap');

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-glow: rgba(124, 58, 237, 0.4);
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;

    --bg-base: #0a0a0f;
    --bg-surface: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2e;
    --bg-elevated: #1a1a28;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(124, 58, 237, 0.4);

    --text-primary: #f0f0f5;
    --text-secondary: #9090a8;
    --text-muted: #5a5a72;

    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --transition: 0.25s ease;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.2);
    --shadow-hover: 0 8px 40px rgba(124, 58, 237, 0.3);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================================
   3. TOP BAR
   ============================================================ */
.top-bar {
    background: linear-gradient(135deg, var(--primary) 0%, #4c1d95 100%);
    padding: 6px 0;
    font-size: 12px;
    font-weight: 500;
}
.top-bar-link {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}
.top-bar-link:hover { color: #fff; }
.top-bar .divider { color: rgba(255,255,255,0.3); }
.top-bar-text { color: rgba(255,255,255,0.7); font-size: 11px; }
.lang-switch { display: flex; gap: 4px; font-size: 11px; color: rgba(255,255,255,0.6); }
.lang-switch a { color: rgba(255,255,255,0.6); font-weight: 600; }
.lang-switch a.active { color: #fff; }

/* ============================================================
   4. NAVBAR
   ============================================================ */
#mainNav {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    transition: all 0.4s ease;
    z-index: 1050;
}
#mainNav.scrolled {
    background: rgba(10, 10, 15, 0.99);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
    font-family: 'Cairo', sans-serif;
    font-size: 20px; font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
}
.logo-sub { font-size: 10px; color: var(--text-muted); font-weight: 400; }

/* Search */
.navbar-search { max-width: 480px; flex: 1; }
.search-container { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.search-container:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-category {
    background: var(--bg-elevated); border: none; border-left: 1px solid var(--border);
    color: var(--text-secondary); font-size: 13px; min-width: 120px; width: auto;
    font-family: 'Tajawal', sans-serif; cursor: pointer;
}
.search-category:focus { outline: none; box-shadow: none; }
.search-input { background: transparent; border: none; color: var(--text-primary); font-family: 'Tajawal', sans-serif; flex: 1; }
.search-input:focus { box-shadow: none; background: transparent; color: var(--text-primary); }
.search-input::placeholder { color: var(--text-muted); }
.search-btn { background: var(--primary); color: white; border-radius: 0 !important; padding: 8px 16px; }
.search-btn:hover { background: var(--primary-light); color: white; }

/* Nav Links */
.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500; font-size: 14px;
    padding: 8px 12px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex; align-items: center; gap: 4px;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: white !important;
    background: rgba(124, 58, 237, 0.15);
}
.nav-link.active::after {
    content: '';
    position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--primary); border-radius: 2px;
}
.badge-hot {
    font-size: 9px; padding: 2px 5px; background: var(--danger); color: white;
    border-radius: 4px; font-weight: 700; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* Mega Menu */
.dropdown-menu.mega-menu {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-card);
    width: 600px; padding: 0;
}
.mega-section { padding: 20px 16px; border-left: 1px solid var(--border); }
.mega-section:last-child { border-left: none; }
.mega-title { color: var(--primary-light); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.mega-link { display: block; color: var(--text-secondary); font-size: 13px; padding: 4px 0; transition: var(--transition); }
.mega-link:hover { color: white; padding-right: 6px; }

/* Cart Button */
.btn-cart {
    background: var(--bg-elevated); border: 1px solid var(--border); color: white;
    border-radius: var(--radius-sm); padding: 8px 12px; font-size: 18px;
    transition: var(--transition);
}
.btn-cart:hover { border-color: var(--primary); color: var(--primary-light); }
.cart-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--danger); color: white; border-radius: 50%;
    width: 18px; height: 18px; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* Primary Glow Button */
.btn-primary-glow {
    background: linear-gradient(135deg, var(--primary), #5b21b6);
    color: white; border: none; font-family: 'Tajawal', sans-serif;
    font-weight: 600; transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary-glow:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white; transform: translateY(-1px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* ============================================================
   5. TICKER / ANNOUNCEMENT
   ============================================================ */
.ticker-wrap {
    background: var(--bg-surface); border-bottom: 1px solid var(--border);
    overflow: hidden; height: 36px; display: flex; align-items: center;
}
.ticker-content { display: flex; align-items: center; width: 100%; overflow: hidden; }
.ticker-label {
    background: var(--primary); color: white;
    padding: 0 16px; height: 36px;
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; white-space: nowrap;
    flex-shrink: 0;
}
.ticker-items {
    display: flex; gap: 60px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap; padding: 0 20px;
    font-size: 12px; color: var(--text-secondary);
}
.ticker-items span { display: inline-block; }
@keyframes ticker-scroll {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero-section {
    position: relative; overflow: hidden;
    background: var(--bg-base);
    padding: 80px 0 60px;
    min-height: 560px;
    display: flex; align-items: center;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: 
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}
.hero-grid-overlay {
    position: absolute; inset: 0; z-index: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-section .container-xl { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124, 58, 237, 0.15); border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--primary-light); border-radius: 50px;
    padding: 6px 16px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: pulse 1.5s infinite; }

.hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900; line-height: 1.15; margin-bottom: 20px;
}
.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
}
.hero-desc { font-size: 17px; color: var(--text-secondary); max-width: 480px; margin-bottom: 32px; }

.hero-stats {
    display: flex; gap: 32px; margin-top: 40px;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-value { font-family: 'Cairo', sans-serif; font-size: 26px; font-weight: 900; color: var(--primary-light); display: block; }
.hero-stat-label { font-size: 12px; color: var(--text-muted); }

/* Hero Slider */
.hero-slider-wrapper { position: relative; }
.hero-card-showcase {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-card);
    position: relative; overflow: hidden;
}
.hero-card-showcase::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.featured-product-card {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.3s ease; cursor: pointer;
}
.featured-product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px); box-shadow: var(--shadow-hover);
}
.fpcard-img {
    height: 140px; overflow: hidden; position: relative;
    background: linear-gradient(135deg, #1e1e30, #2a1a4e);
    display: flex; align-items: center; justify-content: center; font-size: 60px;
}
.fpcard-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--danger); color: white; border-radius: 6px;
    font-size: 10px; font-weight: 700; padding: 2px 8px;
}
.fpcard-body { padding: 12px; }
.fpcard-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpcard-seller { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.fpcard-price { font-size: 16px; font-weight: 800; color: var(--accent); }
.fpcard-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.fpcard-rating { font-size: 11px; color: #fbbf24; }

/* ============================================================
   7. TRUST BADGES
   ============================================================ */
.trust-strip {
    background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon {
    width: 40px; height: 40px;
    background: rgba(124, 58, 237, 0.1); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light); font-size: 20px; flex-shrink: 0;
}
.trust-label { font-size: 13px; font-weight: 600; }
.trust-desc { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   8. SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 32px; }
.section-tag {
    display: inline-block; background: rgba(124, 58, 237, 0.1); color: var(--primary-light);
    border: 1px solid rgba(124, 58, 237, 0.2); border-radius: 50px;
    font-size: 11px; font-weight: 700; padding: 4px 14px;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.section-title {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900; margin-bottom: 8px;
}
.section-title span { color: var(--primary-light); }
.section-desc { color: var(--text-secondary); font-size: 15px; }

/* View All Button */
.btn-view-all {
    background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--text-secondary); border-radius: var(--radius-sm);
    padding: 8px 20px; font-size: 13px; font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}
.btn-view-all:hover { border-color: var(--primary); color: var(--primary-light); }

/* ============================================================
   9. CATEGORIES GRID
   ============================================================ */
.categories-section { padding: 60px 0; }
.category-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px 16px;
    text-align: center; transition: all 0.3s ease; cursor: pointer;
    position: relative; overflow: hidden; display: block;
}
.category-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0; transition: var(--transition);
}
.category-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-hover); }
.category-card:hover::before { opacity: 0.07; }
.category-card:hover .cat-icon { transform: scale(1.1); }
.cat-icon { font-size: 42px; display: block; margin-bottom: 12px; position: relative; transition: var(--transition); }
.cat-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; position: relative; }
.cat-count { font-size: 12px; color: var(--text-muted); position: relative; }
.cat-count span { color: var(--primary-light); font-weight: 600; }

/* ============================================================
   10. PRODUCT CARDS
   ============================================================ */
.products-section { padding: 60px 0; }
.product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.3s ease; cursor: pointer; height: 100%;
    display: flex; flex-direction: column;
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px); box-shadow: var(--shadow-hover);
}
.product-img {
    height: 170px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex; align-items: center; justify-content: center;
    font-size: 64px; transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.02); }
.product-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
}
.product-badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
.badge-status {
    font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
    display: inline-block; text-align: center;
}
.badge-verified { background: rgba(16, 185, 129, 0.9); color: white; }
.badge-hot { background: rgba(239, 68, 68, 0.9); color: white; }
.badge-new { background: rgba(6, 182, 212, 0.9); color: white; }
.badge-sale { background: rgba(245, 158, 11, 0.9); color: #000; }

.product-wishlist {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.5); border: none; color: var(--text-secondary);
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    backdrop-filter: blur(4px); transition: var(--transition); cursor: pointer;
}
.product-wishlist:hover { color: #ef4444; }

.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-game { font-size: 11px; color: var(--primary-light); font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.product-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; flex: 1; }
.product-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.meta-tag {
    font-size: 10px; padding: 2px 8px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 4px; color: var(--text-muted);
}
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #fbbf24; }
.product-rating span { color: var(--text-muted); font-size: 11px; }
.product-seller { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.seller-verified { color: var(--secondary); font-size: 12px; }

.product-footer { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 18px; font-weight: 800; color: var(--accent); }
.product-price-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.btn-buy {
    background: var(--primary); color: white; border: none;
    border-radius: var(--radius-sm); padding: 7px 16px;
    font-size: 12px; font-weight: 600; font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease; cursor: pointer; display: flex; align-items: center; gap: 5px;
}
.btn-buy:hover { background: var(--primary-light); transform: scale(1.02); }

/* Delivery Badge */
.delivery-badge { font-size: 10px; color: var(--success); display: flex; align-items: center; gap: 3px; font-weight: 600; }

/* ============================================================
   11. FILTER TABS (For Shop Page)
   ============================================================ */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
    border-radius: var(--radius-sm); padding: 8px 18px; font-size: 13px;
    font-family: 'Tajawal', sans-serif; cursor: pointer; transition: var(--transition);
}
.filter-tab:hover, .filter-tab.active {
    background: var(--primary); border-color: var(--primary); color: white;
}

/* ============================================================
   12. SIDEBAR (Shop Page)
   ============================================================ */
.sidebar-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.sidebar-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sidebar-title i { color: var(--primary-light); }

.sidebar-check { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; cursor: pointer; }
.sidebar-check input { margin-left: 8px; accent-color: var(--primary); }
.sidebar-check-label { font-size: 13px; color: var(--text-secondary); }
.sidebar-check-count { font-size: 11px; background: var(--bg-elevated); border-radius: 50px; padding: 1px 8px; color: var(--text-muted); }

.price-range { width: 100%; margin-bottom: 10px; accent-color: var(--primary); }

.sort-select {
    background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary);
    border-radius: var(--radius-sm); padding: 8px 12px; width: 100%;
    font-family: 'Tajawal', sans-serif; font-size: 13px; cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--primary); }

/* ============================================================
   13. PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-img {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
    font-size: 100px; position: relative; overflow: hidden;
}
.product-detail-img::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(124,58,237,0.15) 0%, transparent 60%);
}

.detail-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 50px; }
.detail-badge.verified { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.detail-badge.hot { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

.detail-title { font-family: 'Cairo', sans-serif; font-size: clamp(22px, 3vw, 32px); font-weight: 900; margin-bottom: 12px; }
.detail-price { font-size: 36px; font-weight: 900; color: var(--accent); font-family: 'Cairo', sans-serif; }
.detail-price-old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.detail-discount { background: var(--danger); color: white; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }

.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.detail-info-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.detail-info-item .label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.detail-info-item .value { font-size: 14px; font-weight: 700; }

.btn-buy-now {
    background: linear-gradient(135deg, var(--primary), #5b21b6);
    color: white; border: none; border-radius: var(--radius);
    padding: 14px 32px; font-size: 16px; font-weight: 700;
    font-family: 'Tajawal', sans-serif; width: 100%;
    transition: all 0.3s ease; box-shadow: 0 4px 20px var(--primary-glow);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-buy-now:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); color: white; }

.btn-add-cart {
    background: var(--bg-elevated); border: 2px solid var(--primary);
    color: var(--primary-light); border-radius: var(--radius);
    padding: 14px 32px; font-size: 16px; font-weight: 700;
    font-family: 'Tajawal', sans-serif; width: 100%;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-add-cart:hover { background: rgba(124,58,237,0.1); color: var(--primary-light); }

/* Seller Card */
.seller-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
}
.seller-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.seller-name { font-size: 16px; font-weight: 700; }
.seller-stats { display: flex; gap: 16px; }
.seller-stat { text-align: center; }
.seller-stat .val { font-size: 18px; font-weight: 800; color: var(--primary-light); display: block; }
.seller-stat .lab { font-size: 11px; color: var(--text-muted); }

/* Tabs */
.detail-tabs { border-bottom: 1px solid var(--border); margin-bottom: 24px; display: flex; gap: 4px; }
.detail-tab {
    background: transparent; border: none; color: var(--text-secondary);
    padding: 10px 20px; font-family: 'Tajawal', sans-serif; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.detail-tab.active { color: var(--primary-light); border-bottom-color: var(--primary); }

/* Reviews */
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.review-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #6d28d9, #0891b2); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.review-name { font-size: 13px; font-weight: 600; }
.review-date { font-size: 11px; color: var(--text-muted); }
.review-stars { color: #fbbf24; font-size: 13px; }
.review-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   14. STATS SECTION
   ============================================================ */
.stats-section { padding: 60px 0; background: var(--bg-surface); }
.stat-card {
    text-align: center; padding: 30px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); transition: all 0.3s ease;
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.stat-card .stat-icon { font-size: 40px; margin-bottom: 12px; }
.stat-card .stat-value {
    font-family: 'Cairo', sans-serif; font-size: 36px; font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
    display: block; margin-bottom: 6px;
}
.stat-card .stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ============================================================
   15. HOW IT WORKS
   ============================================================ */
.how-section { padding: 60px 0; }
.step-card { text-align: center; padding: 30px 20px; position: relative; }
.step-number {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Cairo', sans-serif; font-size: 22px; font-weight: 900;
    color: white; margin: 0 auto 16px; box-shadow: 0 4px 20px var(--primary-glow);
}
.step-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-secondary); }

/* ============================================================
   16. CART SIDEBAR
   ============================================================ */
.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 380px; height: 100vh;
    background: var(--bg-card); border-left: 1px solid var(--border);
    z-index: 9999; display: flex; flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-header h5 { margin: 0; font-size: 16px; font-weight: 700; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item { display: flex; align-items: center; gap: 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; }
.cart-item-img { font-size: 28px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: var(--transition); padding: 4px; }
.cart-item-remove:hover { color: var(--danger); }
.cart-footer { padding: 16px; border-top: 1px solid var(--border); }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9998; display: none; backdrop-filter: blur(4px); }
.cart-overlay.show { display: block; }

/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border); margin-top: 60px; }
.footer-newsletter { background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.05)); border-bottom: 1px solid var(--border); padding: 40px 0; }
.newsletter-title { font-family: 'Cairo', sans-serif; font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.newsletter-desc { color: var(--text-secondary); margin: 0; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form .form-control { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); border-radius: var(--radius-sm); }
.newsletter-form .form-control::placeholder { color: var(--text-muted); }
.newsletter-form .form-control:focus { background: var(--bg-card); border-color: var(--primary); box-shadow: none; color: var(--text-primary); }

.footer-main { padding: 50px 0 20px; }
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
    width: 36px; height: 36px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--text-secondary); transition: var(--transition);
}
.social-links a:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(124,58,237,0.1); }

.footer-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); padding-right: 4px; }
.footer-links a i { font-size: 11px; }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-icon {
    width: 36px; height: 36px; background: rgba(124,58,237,0.1);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--primary-light); font-size: 16px; flex-shrink: 0;
}
.contact-item small { font-size: 11px; color: var(--text-muted); display: block; }
.contact-item .fw-bold { font-size: 13px; }

.payment-badge {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 6px; padding: 4px 10px; font-size: 11px; color: var(--text-secondary);
}

.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-legal-links { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }
.footer-legal-links a { font-size: 12px; color: var(--text-muted); transition: var(--transition); }
.footer-legal-links a:hover { color: var(--primary-light); }

/* ============================================================
   18. SCROLL TOP BUTTON
   ============================================================ */
.scroll-top-btn {
    position: fixed; bottom: 24px; left: 24px;
    width: 44px; height: 44px;
    background: var(--primary); color: white; border: none;
    border-radius: 12px; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 999;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--primary-glow); }

/* ============================================================
   19. PAGE HEADER (Shop / Product)
   ============================================================ */
.page-header {
    background: var(--bg-surface); border-bottom: 1px solid var(--border);
    padding: 40px 0; position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
}
.page-header-title { font-family: 'Cairo', sans-serif; font-size: 28px; font-weight: 900; margin-bottom: 6px; }
.breadcrumb { background: none; padding: 0; font-size: 13px; }
.breadcrumb-item a { color: var(--primary-light); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ============================================================
   20. FORM CONTROLS
   ============================================================ */
.form-control, .form-select {
    background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--text-primary); font-family: 'Tajawal', sans-serif;
    border-radius: var(--radius-sm);
}
.form-control:focus, .form-select:focus {
    background: var(--bg-elevated); border-color: var(--primary);
    color: var(--text-primary); box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-elevated); }

/* ============================================================
   21. ANIMATIONS
   ============================================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
    50% { box-shadow: 0 0 40px rgba(124,58,237,0.6); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }

/* ============================================================
   22. RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .detail-info-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 20px; }
}
@media (max-width: 767px) {
    .hero-section { text-align: center; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-stats { justify-content: center; }
    .newsletter-form { flex-direction: column; }
    .footer-legal-links { justify-content: center; }
    .cart-sidebar { width: 100%; right: -100%; }
    .detail-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .hero-title { font-size: 28px; }
    .section-title { font-size: 20px; }
    .stat-card .stat-value { font-size: 28px; }
}

/* ============================================================
   23. UTILITY CLASSES
   ============================================================ */
.bg-card { background: var(--bg-card) !important; }
.bg-elevated { background: var(--bg-elevated) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.text-accent { color: var(--accent) !important; }
.border-subtle { border-color: var(--border) !important; }
.rounded-ds { border-radius: var(--radius) !important; }
.rounded-ds-lg { border-radius: var(--radius-lg) !important; }
.divider-v { width: 1px; background: var(--border); align-self: stretch; }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tooltip custom */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(-4px);
    background: var(--bg-elevated); color: var(--text-primary); font-size: 11px; padding: 4px 10px;
    border-radius: 6px; white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity 0.2s; border: 1px solid var(--border);
}
[data-tooltip]:hover::after { opacity: 1; }

/* Neon Border Effect */
.neon-border {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
}
