/* ============================================================
   Skymont Tech — Complete CSS Design System
   GitHub Dark Theme | RTL + LTR Bilingual Support
   ============================================================ */

/* ── Custom Properties — Navy Blue Theme (Lighter) ──────────────── */
:root {
    --primary:       #00B4D8;
    --primary-dark:  #0096C7;
    --primary-glow:  rgba(0,180,216,.22);
    --bg:            #0f1d35;
    --surface:       #162544;
    --surface2:      #1e3160;
    --border:        #2d4570;
    --border2:       #3d5a8a;
    --text:          #F0F6FC;
    --text-muted:    #8B949E;
    --text-dim:      #656D76;
    --accent:        #00B4D8;
    --success:       #3FB950;
    --warning:       #D29922;
    --danger:        #F85149;
    --wa-green:      #25D366;
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     16px;
    --shadow:        0 4px 24px rgba(0,0,0,.5);
    --shadow-lg:     0 8px 48px rgba(0,0,0,.6);
    --transition:    .25s cubic-bezier(.4,0,.2,1);
    --nav-h:         80px;
    --font-en:       'Outfit', 'Manrope', 'Inter', sans-serif;
    --font-ar:       'Cairo', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) var(--bg);
}
html::-webkit-scrollbar       { width: 6px; }
html::-webkit-scrollbar-track  { background: var(--bg); }
html::-webkit-scrollbar-thumb  { background: var(--border2); border-radius: 3px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-en);
    font-size: 13.5px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
body.lang-ar, [dir="rtl"] { font-family: var(--font-ar); }
body.lang-en, [dir="ltr"] {
    letter-spacing: -.015em;
    font-weight: 400;
}
body.lang-en, [dir="ltr"] {
    letter-spacing: -.01em;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img{ max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Typography ────────────────────────────────────────────── */
h1 { font-size: clamp(1.65rem,3.6vw,2.7rem); font-weight: 700; line-height:1.15; }
h2 { font-size: clamp(1.28rem,2.6vw,2rem); font-weight: 700; }
h3 { font-size: clamp(1.02rem,1.8vw,1.32rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px var(--primary-glow); }
.btn-secondary{ background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost    { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #da3633; }
.btn-whatsapp { background: var(--wa-green); color: #fff; }
.btn-whatsapp:hover { background: #22c55e; }
.btn-full { width: 100%; }
.btn-sm   { padding: 6px 14px; font-size: .8rem; }
.btn-lg   { padding: 14px 32px; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}
.badge-new         { background: rgba(0,180,216,.15);   color: var(--primary); }
.badge-in_progress { background: rgba(210,153,34,.15);  color: var(--warning); }
.badge-completed   { background: rgba(63,185,80,.15);   color: var(--success); }
.badge-featured    { background: rgba(0,180,216,.15);   color: var(--accent); }
.badge-stock       { background: rgba(63,185,80,.15);   color: var(--success); }
.badge-out         { background: rgba(248,81,73,.15);   color: var(--danger); }
.badge-physical    { background: rgba(0,180,216,.12);   color: var(--primary); border: 1px solid rgba(0,180,216,.3); }
.badge-digital     { background: rgba(139,92,246,.12);  color: #A78BFA; border: 1px solid rgba(139,92,246,.3); }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(13,17,23,.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(13,17,23,.96);
    box-shadow: 0 2px 20px rgba(0,0,0,.7);
}
.nav-container {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F0F6FC 30%, #00B4D8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface2); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 999;
}
[dir="rtl"] .dropdown-menu { left: auto; right: 0; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .875rem;
    transition: var(--transition);
}
.dropdown-menu li a:hover { background: var(--surface2); color: var(--text); }

/* Dropdown group titles and dividers */
.dropdown-group-title {
    padding: 6px 14px 4px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--text-dim);
    text-transform: uppercase;
    pointer-events: none;
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
    pointer-events: none;
}

/* Nav Controls */
.nav-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
[dir="rtl"] .nav-controls { margin-left: 0; margin-right: auto; }

/* Cart button in navbar */
.cart-btn {
    position: relative;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}
.cart-btn:hover { color: var(--text); border-color: var(--primary); }
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
[dir="rtl"] .cart-badge { right: auto; left: -5px; }

/* Lang Switcher */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 600;
    transition: var(--transition);
}
.lang-btn:hover { color: var(--text); border-color: var(--primary); }

/* Search (nav) */
.nav-search { position: relative; }
.search-toggle {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--surface2);
    color: var(--text-muted);
    transition: var(--transition);
}
.search-toggle:hover { color: var(--text); background: var(--surface2); }
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 999;
}
[dir="rtl"] .search-dropdown { right: auto; left: 0; }
.search-dropdown.open { display: block; }
.search-dropdown input {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: .9rem;
    outline: none;
}
.search-results { max-height: 300px; overflow-y: auto; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: var(--transition);
    cursor: pointer;
}
.search-result-item:hover { background: var(--surface2); }
.search-result-item img {
    width: 40px; height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-info .name  { font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-info .price { font-size: .8rem; color: var(--accent); }

/* Mobile search bar */
.mobile-search {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.mobile-search.open { display: block; }
.mobile-search input {
    width: 100%;
    padding: 10px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .9rem;
    outline: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px; height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--surface2);
    border: 1px solid var(--border);
}
.hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page Layout ───────────────────────────────────────────── */
main { padding-top: var(--nav-h); }
.page-section { padding: 64px 0; }
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}
.section-header h2 { margin-bottom: 4px; }
.section-header p  { color: var(--text-muted); font-size: .95rem; }
.section-title     { font-size: clamp(1.2rem,2.5vw,1.8rem); font-weight: 700; }
.section-subtitle  { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* ── Hero (legacy — kept for product detail etc.) ──────────── */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,150,199,.18) 0%, transparent 60%),
                var(--bg);
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: .2;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
[dir="rtl"] .hero-content { text-align: right; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--primary-glow);
    border: 1px solid rgba(0,180,216,.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-title {
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
[dir="rtl"] .hero-actions { justify-content: flex-end; }
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
[dir="rtl"] .hero-stats { justify-content: flex-end; }
.stat-num   { font-size: 1.75rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--text-muted); }
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .1;
    pointer-events: none;
}
.hero-shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; }
.hero-shape-2 { width: 400px; height: 400px; background: var(--accent);  bottom: -100px; left: -100px; }
[dir="rtl"] .hero-shape-1 { right: auto; left: -100px; }
[dir="rtl"] .hero-shape-2 { left: auto; right: -100px; }

/* ── Hero Main — Top banner ──────────────────────────── */
.hero-main {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    background: linear-gradient(135deg,
        rgba(0,150,199,.15) 0%,
        rgba(15,29,53,0)   50%,
        rgba(0,180,216,.1) 100%),
        var(--surface);
    border-bottom: 1px solid var(--border);
}
.hero-main-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: .12;
    pointer-events: none;
}
.hero-main-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}
.hero-main-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-main-search {
    max-width: 560px;
    margin: 0 auto;
}

/* ── Promo Section — Ads/Offers ──────────────────────────── */
.promo-section { display: none; }

/* ── Hero Bottom — compact banner (deprecated) ──────────────────────────── */
.hero-bottom { display: none; }
    position: relative;
    overflow: hidden;
    padding: 56px 0;
    background: linear-gradient(135deg,
        rgba(0,150,199,.12) 0%,
        rgba(13,17,23,0)   60%,
        rgba(0,180,216,.07) 100%),
        var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.hero-bottom-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: .12;
    pointer-events: none;
}
.hero-bottom-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-bottom-content { flex: 1; min-width: 260px; }
.hero-bottom-title {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--text);
}
.hero-bottom-sub {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.6;
    max-width: 480px;
}
[dir="rtl"] .hero-bottom-content { text-align: right; }

/* Gradient brand text */
.hero-gradient {
    background: linear-gradient(90deg, #00B4D8, #0096C7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero search area */
.hero-bottom-search { flex: 0 0 auto; width: 100%; max-width: 440px; }

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    overflow: visible;
}
.search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon-inp {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    pointer-events: none;
    flex-shrink: 0;
}
[dir="rtl"] .search-icon-inp { left: auto; right: 14px; }

.search-input {
    flex: 1;
    padding: 12px 14px 12px 42px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: .9rem;
    outline: none;
    min-width: 0;
}
[dir="rtl"] .search-input { padding: 12px 42px 12px 14px; text-align: right; }
.search-input::placeholder { color: var(--text-dim); }

.search-clear {
    position: absolute;
    right: 110px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: .95rem;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    line-height: 1;
}
[dir="rtl"] .search-clear { right: auto; left: 110px; }
.search-clear:hover { color: var(--danger); }

.search-btn {
    flex-shrink: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    height: 100%;
    padding: 0 20px;
    font-size: .875rem;
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: background var(--transition);
    cursor: pointer;
}
[dir="rtl"] .search-btn { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.search-btn:hover { background: var(--primary-dark); }

/* Live suggestions dropdown */
.search-suggestions-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    overflow: hidden;
    max-height: 340px;
    overflow-y: auto;
    display: none;
}
.search-suggestions-box.open { display: block; }

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid var(--border);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--surface2); }
.suggest-item img {
    width: 40px; height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.suggest-name  { font-size: .875rem; font-weight: 500; color: var(--text); }
.suggest-price { font-size: .8rem; color: var(--accent); margin-top: 2px; }

/* ── Category Grid ─────────────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px,1fr));
    gap: 16px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}
.cat-card:hover {
    border-color: var(--primary);
    background: var(--surface2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--primary-glow);
}
.cat-icon { font-size: 2rem; }
.cat-name { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.cat-card:hover .cat-name { color: var(--text); }

/* ── Product Grid ──────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
    gap: 20px;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1),
                box-shadow .3s cubic-bezier(.4,0,.2,1),
                border-color .3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,180,216,.22), 0 4px 12px rgba(0,0,0,.5);
}
.product-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--surface2);
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.product-badge-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
[dir="rtl"] .product-badge-wrap { left: auto; right: 10px; }
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-category { font-size: .75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.product-name {
    font-size: .95rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--primary); }
.product-brand { font-size: .78rem; color: var(--text-dim); }
.product-rating { display: flex; align-items: center; gap: 4px; }
.star { font-size: .85rem; color: var(--border2); }
.star.full, .star.filled { color: #D29922; }
.star.half   { color: #D29922; }
.rating-count{ font-size: .75rem; color: var(--text-muted); }

/* Price rows (both old and new naming kept for compat) */
.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}
.product-price, .price-current { font-size: 1.1rem; font-weight: 700; color: var(--accent); display: block; }
.product-old-price, .price-old { font-size: .85rem; color: var(--text-dim); text-decoration: line-through; display: block; }

/* Product footer — flex row for cart + request buttons */
.product-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-footer .btn { flex: 1; min-width: 100px; }

@media (max-width: 480px) {
    .product-footer {
        flex-wrap: wrap;
    }
    .product-footer .btn {
        flex: 1 1 100%;
        min-width: auto;
    }
}

/* Product type badge (absolute) */
.card-type-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    pointer-events: none;
}

/* Spec pills */
.product-specs { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.spec-pill {
    font-size: .7rem;
    padding: 2px 8px;
    background: rgba(0,180,216,.08);
    border: 1px solid rgba(0,180,216,.18);
    color: var(--text-muted);
    border-radius: 4px;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Products Section ──────────────────────────────────────── */
.products-section { padding: 32px 0 64px; }

/* ── Filter Strip ──────────────────────────────────────────── */
.filter-strip {
    padding: 20px 0 0;
    background: var(--bg);
    position: sticky;
    top: var(--nav-h);
    z-index: 90;
    border-bottom: 1px solid var(--border);
}
.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 12px;
}
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.filter-tab:hover {
    color: var(--text);
    border-color: var(--primary);
    background: rgba(0,180,216,.08);
}
.filter-tab.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 3px 14px var(--primary-glow);
}
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.22);
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 700;
    padding: 1px 6px;
    min-width: 20px;
}
.filter-tab.active .tab-count { background: rgba(0,0,0,.18); }

/* ── Filter Sidebar ────────────────────────────────────────── */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}
.filter-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}
.filter-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.filter-section { margin-bottom: 24px; }
.filter-section h5 { font-size: .85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.filter-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; cursor: pointer; }
.filter-item input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.filter-item label { font-size: .875rem; color: var(--text-muted); cursor: pointer; flex: 1; }
.filter-item:hover label { color: var(--text); }
.price-range-wrap { padding: 4px 0; }
.price-inputs { display: flex; gap: 8px; margin-top: 10px; }
.price-inputs input {
    flex: 1;
    padding: 8px 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .8rem;
    outline: none;
    width: 100%;
}
.price-inputs input:focus { border-color: var(--primary); }
input[type="range"] { width: 100%; accent-color: var(--primary); background: transparent; }

/* Sort Bar */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.sort-bar select {
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .85rem;
    outline: none;
    cursor: pointer;
}
.sort-bar select:focus { border-color: var(--primary); }
.results-count { font-size: .85rem; color: var(--text-muted); }

/* Active Filters */
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: .78rem;
    color: var(--primary);
}
.active-filter-tag button { color: var(--primary); font-size: .85rem; line-height: 1; }

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}
.page-btn:hover, .page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Product Detail ────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border2); }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.gallery-main {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface2);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface2);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }

.product-detail-info { display: flex; flex-direction: column; gap: 16px; }
.detail-category { font-size: .8rem; color: var(--primary); font-weight: 600; text-transform: uppercase; }
.detail-title    { font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.detail-brand-sku{ display: flex; gap: 16px; font-size: .82rem; color: var(--text-muted); }
.detail-rating   { display: flex; align-items: center; gap: 8px; }
.detail-price-wrap { display: flex; align-items: baseline; gap: 12px; }
.detail-price    { font-size: 2rem; font-weight: 800; color: var(--accent); }
.detail-old-price{ font-size: 1.1rem; color: var(--text-dim); text-decoration: line-through; }
.detail-stock    { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.detail-divider  { border: none; border-top: 1px solid var(--border); }
.detail-actions  { display: flex; flex-direction: column; gap: 12px; }
.detail-actions .btn-lg { justify-content: center; }

/* Product Specs Table */
.specs-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 9px 12px; }
.specs-table td:first-child { color: var(--text-muted); width: 40%; font-weight: 500; }
.specs-table td:last-child  { color: var(--text); }

/* Description Tabs */
.tabs { border-bottom: 1px solid var(--border); display: flex; gap: 0; margin-bottom: 20px; }
.tab-btn {
    padding: 10px 20px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p { color: var(--text-muted); line-height: 1.8; font-size: .9rem; }

/* ── Request Modal ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: slideUp .25s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}
[dir="rtl"] .modal-close { right: auto; left: 16px; }
.modal-close:hover { color: var(--text); background: var(--border); }
.modal-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.modal-product-info {
    background: var(--surface2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: .875rem;
    color: var(--text-muted);
}
.modal-product-info strong { color: var(--text); display: block; font-size: 1rem; margin-bottom: 4px; }

/* Form Groups */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .9rem;
    outline: none;
    transition: var(--transition);
    width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-group input.error,
.form-group textarea.error { border-color: var(--danger); }
.form-error { font-size: .78rem; color: var(--danger); }
.form-group textarea { resize: vertical; min-height: 80px; }
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea { text-align: right; }
.form-group input[type="text"][lang="en"],
.form-group input.ltr { direction: ltr; text-align: left; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 4px; }
.form-row.full { grid-template-columns: 1fr; }

.form-success-msg { text-align: center; padding: 20px 0; }
.success-icon {
    width: 60px; height: 60px;
    background: rgba(63,185,80,.15);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--success);
    margin: 0 auto 16px;
}
.form-success-msg p { color: var(--text-muted); margin-bottom: 20px; }

/* ── Toast Notifications ───────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
[dir="rtl"] .toast-container { left: auto; right: 24px; }
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 260px;
    max-width: 360px;
    animation: toastIn .3s ease;
}
@keyframes toastIn { from { transform: translateX(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
[dir="rtl"] .toast { animation-name: toastInRtl; }
@keyframes toastInRtl { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.removing { animation: toastOut .3s ease forwards; }
@keyframes toastOut { to { transform: translateX(-20px); opacity: 0; } }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-msg  { font-size: .875rem; color: var(--text); flex: 1; }
.toast.success .toast-icon { color: var(--success); }
.toast.error   .toast-icon { color: var(--danger); }
.toast.info    .toast-icon { color: var(--primary); }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--primary); }

/* ── Floating WhatsApp Button ──────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1500;
    width: 58px; height: 58px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: var(--transition);
}
[dir="rtl"] .wa-float { right: auto; left: 28px; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-pulse {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--wa-green);
    animation: waPulse 2.5s infinite;
}
@keyframes waPulse {
    0%   { transform: scale(1);   opacity: .6; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1);   opacity: 0; }
}

/* ── Cart Overlay ──────────────────────────────────────────── */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    z-index: 1100;
}
.cart-overlay.show { display: block; }

/* ── Cart Drawer ───────────────────────────────────────────── */
.cart-drawer {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    width: min(380px, 95vw);
    height: 100vh;
    background: var(--surface);
    border-inline-start: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 1200;
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
[dir="rtl"] .cart-drawer { transform: translateX(-110%); }
.cart-drawer.open { transform: translateX(0); }
[dir="rtl"] .cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 { font-size: 1.1rem; color: var(--text); }
.cart-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color var(--transition);
}
.cart-close-btn:hover { color: var(--text); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: .95rem;
}
.cart-empty span { font-size: 3rem; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
}
.cart-item img {
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    font-size: .85rem;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-price { font-size: .8rem; color: var(--primary); margin-top: 2px; }
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.qty-btn {
    width: 26px; height: 26px;
    border: 1px solid var(--border2);
    background: var(--surface);
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background var(--transition);
}
.qty-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.cart-item-qty span { font-size: .85rem; color: var(--text); min-width: 18px; text-align: center; }
.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    flex-shrink: 0;
    transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--danger); }

.cart-drawer-footer { padding: 16px; border-top: 1px solid var(--border); }
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.cart-total strong { font-size: 1.1rem; color: var(--primary); }
.btn-full { width: 100%; justify-content: center; }

/* ── Admin Layout ──────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, rgba(13,24,42,.98) 0%, rgba(10,19,34,.98) 100%);
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: var(--transition);
    box-shadow: 0 18px 44px rgba(0,0,0,.24);
}
[dir="rtl"] .admin-sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid rgba(255,255,255,.06); }
.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 32px;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(0,180,216,.08), transparent 22%),
        linear-gradient(180deg, rgba(15,29,53,1) 0%, rgba(12,24,44,1) 100%);
}
[dir="rtl"] .admin-main { margin-left: 0; margin-right: 250px; }
.sidebar-logo {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}
.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 6px;
    transition: var(--transition);
}
.sidebar-nav-item:hover, .sidebar-nav-item.active { background: rgba(255,255,255,.05); color: var(--text); }
.sidebar-nav-item.active { color: var(--primary); background: rgba(0,180,216,.14); box-shadow: inset 0 0 0 1px rgba(0,180,216,.14); }
.sidebar-nav-item svg { flex-shrink: 0; }

/* Admin stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
    background: linear-gradient(180deg, rgba(22,37,68,.95) 0%, rgba(16,28,52,.98) 100%);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.stat-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-card-icon.blue   { background: var(--primary-glow); }
.stat-card-icon.green  { background: rgba(63,185,80,.15); }
.stat-card-icon.yellow { background: rgba(210,153,34,.15); }
.stat-card-icon.red    { background: rgba(248,81,73,.15); }
.stat-card-body .num   { font-size: 1.6rem; font-weight: 800; }
.stat-card-body .lbl   { font-size: .8rem; color: var(--text-muted); }

/* Admin Table */
.admin-card {
    background: linear-gradient(180deg, rgba(22,37,68,.95) 0%, rgba(16,28,52,.98) 100%);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0,0,0,.18);
}
.admin-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-card-header h3 { font-size: 1rem; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(255,255,255,.04);
    color: var(--text-muted);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}
[dir="rtl"] .admin-table th { text-align: right; }
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.03); }
.admin-table img.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }

/* Admin form page */
.admin-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 800px;
}
.form-section-title {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--accent);
    text-transform: uppercase;
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-ar);
}

/* Search input wrap (admin) */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrap input {
    padding: 9px 14px 9px 38px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .875rem;
    outline: none;
    width: 100%;
}
[dir="rtl"] .search-input-wrap input { padding: 9px 38px 9px 14px; }
.search-input-wrap svg { position: absolute; left: 12px; color: var(--text-dim); }
[dir="rtl"] .search-input-wrap svg { left: auto; right: 12px; }
.search-input-wrap input:focus { border-color: var(--primary); }

.admin-page-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:28px;
    flex-wrap:wrap;
    gap:12px;
    font-family:var(--font-ar);
}

.admin-page-subtitle {
    color:var(--text-muted);
    font-size:.875rem;
}

.admin-actions-bar {
    display:flex;
    gap:12px;
    margin-bottom:28px;
    flex-wrap:wrap;
    font-family:var(--font-ar);
}

.admin-form-shell {
    max-width: 980px;
}

.admin-alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: .9rem;
    border: 1px solid transparent;
    font-family: var(--font-ar);
}

.admin-alert.error {
    background: rgba(248,81,73,.12);
    color: var(--danger);
    border-color: rgba(248,81,73,.28);
}

.admin-alert.success {
    background: rgba(63,185,80,.12);
    color: var(--success);
    border-color: rgba(63,185,80,.28);
}

/* Status select */
select.status-select {
    padding: 5px 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .82rem;
    cursor: pointer;
}

/* ── Loading Skeleton ──────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
    background-size: 200% 100%;
    animation: skeleton-load 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-load { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.skeleton-img  { height: 200px; }
.skeleton-line { height: 14px; margin: 8px 16px; }
.skeleton-line.short  { width: 60%; }
.skeleton-line.medium { width: 80%; }

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: .5; }
.empty-state h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.empty-state p  { font-size: .9rem; }

/* ── Invoice Print Styles ──────────────────────────────────── */
.invoice-page {
    background: #fff;
    color: #111;
    font-family: 'Inter', sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 48px;
    border-radius: var(--radius);
}
.invoice-header { display: flex; justify-content: space-between; margin-bottom: 40px; }
.invoice-table  { width: 100%; border-collapse: collapse; margin: 24px 0; }
.invoice-table th, .invoice-table td { padding: 10px 14px; border: 1px solid #e5e7eb; text-align: left; }
.invoice-table th { background: #f9fafb; font-weight: 600; }
.invoice-total  { text-align: right; font-size: 1.2rem; font-weight: 700; margin-top: 16px; }
@media print {
    body * { visibility: hidden; }
    .invoice-page, .invoice-page * { visibility: visible; }
    .invoice-page { position: fixed; top: 0; left: 0; width: 100%; }
    .no-print { display: none !important; }
}

/* ── Category type dividers ────────────────────────────────── */
.cat-type-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 4px;
}
.cat-type-divider::before,
.cat-type-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.cat-type-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.cat-type-physical { background: rgba(0,180,216,.12); color: var(--primary); }
.cat-type-digital  { background: rgba(139,92,246,.12); color: #A78BFA; }

/* ── Footer — 3-column, no brand bar ──────────────────────── */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

/* Footer main grid — 3 columns */
.footer-main { padding: 48px 0 32px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-col-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
}
.footer-brand-tagline {
    font-size: .72rem;
    letter-spacing: .16em;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}
.footer-about-text {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-link {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}
.social-link:hover  { color: var(--text); border-color: var(--primary); transform: translateY(-2px); }
.social-wa:hover    { background: rgba(37,211,102,.12); border-color: #25D366; color: #25D366; }
.social-ig:hover    { background: rgba(225,48,108,.12); border-color: #E1306C; color: #E1306C; }
.social-fb:hover    { background: rgba(24,119,242,.12); border-color: #1877F2; color: #1877F2; }
.social-tw:hover    { background: rgba(29,155,240,.12); border-color: #1D9BF0; color: #1D9BF0; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a {
    font-size: .85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.footer-links li a:hover { color: var(--primary); padding-left: 4px; }
[dir="rtl"] .footer-links li a:hover { padding-left: 0; padding-right: 4px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .85rem;
    color: var(--text-muted);
}
.footer-contact-list li a:hover { color: var(--primary); }
.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; }

/* Payment icons (kept for compat) */
.footer-payments { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.payment-label   { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.payment-icons   { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pay-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    height: 34px;
    transition: var(--transition);
}
.pay-icon:hover { border-color: var(--primary); }
.pay-icon-text  { gap: 1px; }

.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .82rem;
    color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); font-size: .82rem; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .admin-main { margin-left: 0; margin-right: 0; padding: 20px; }
    .admin-sidebar { transform: translateX(-100%); }
    [dir="rtl"] .admin-sidebar { transform: translateX(100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-wrapper { flex-direction: column; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px;
        flex-direction: column;
        align-items: stretch;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }
    .hero { min-height: 50vh; }
    .hero-stats { gap: 20px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 10px; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .modal-card { padding: 20px; }
    .hero-bottom-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .hero-bottom-search { max-width: 100%; width: 100%; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-card-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* ── RTL overrides ─────────────────────────────────────────── */
[dir="rtl"] .nav-links { right: 0; left: auto; }
[dir="rtl"] .breadcrumb-sep { transform: scaleX(-1); }
[dir="rtl"] .admin-table th { text-align: right; }
[dir="rtl"] .admin-table td { text-align: right; }
[dir="rtl"] .toast.success,
[dir="rtl"] .toast.error,
[dir="rtl"] .toast.info {
    border-left: none;
    border-right: 3px solid;
}
[dir="rtl"] .toast.success { border-right-color: var(--success); }
[dir="rtl"] .toast.error   { border-right-color: var(--danger); }
[dir="rtl"] .toast.info    { border-right-color: var(--primary); }

/* ── Order Page ─────────────────────────────────────────────── */
.order-page { padding: 40px 0 80px; }
.order-page-header { text-align: center; margin-bottom: 32px; }
.order-page-header h1 { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 8px; }
.order-page-sub { color: var(--text-muted); font-size: .95rem; }

.order-product-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
}
.order-product-preview img {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.order-product-preview strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.order-product-price { font-size: .9rem; color: var(--primary); font-weight: 700; }

.order-success {
    text-align: center;
    padding: 48px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.order-success-icon {
    width: 72px; height: 72px;
    background: rgba(63,185,80,.15);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--success);
    margin: 0 auto 20px;
}
.order-success h2 { font-size: 1.3rem; margin-bottom: 8px; }
.order-success p { color: var(--text-muted); margin-bottom: 24px; font-size: .9rem; }
.order-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.order-form { margin: 0 auto; }
.order-form .form-group select.error,
.order-form .form-group input.error { border-color: var(--danger); }

/* ── About Page ─────────────────────────────────────────────── */
.about-page { padding: 48px 0 80px; }
.about-header { text-align: center; margin-bottom: 48px; }
.about-logo {
    width: 100px; height: 100px;
    border-radius: 20px;
    object-fit: contain;
    margin: 0 auto 20px;
    border: 2px solid var(--border);
}
.about-header h1 { font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: 12px; }
.about-tagline { color: var(--text-muted); font-size: 1rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}
.about-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
}
.about-stat-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.about-stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.about-stat-label { font-size: .82rem; color: var(--text-muted); }

.about-content { display: flex; flex-direction: column; gap: 40px; }
.about-section h2 { font-size: 1.3rem; margin-bottom: 16px; }
.about-section p { color: var(--text-muted); font-size: .95rem; line-height: 1.8; }

.about-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.about-service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}
.about-service-card:hover { border-color: var(--primary); }
.about-service-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.about-service-card h3 { font-size: 1rem; margin-bottom: 8px; }
.about-service-card p { font-size: .85rem; color: var(--text-muted); }

.about-license { }
.license-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.license-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.license-table tr { border-bottom: 1px solid var(--border); }
.license-table tr:last-child { border-bottom: none; }
.license-table td { padding: 14px 20px; }
.license-table td:first-child { color: var(--text-muted); width: 40%; font-weight: 500; }
.license-table td:last-child { color: var(--text); }
.license-note { font-size: .8rem; color: var(--text-dim); margin-top: 12px; font-style: italic; }

.about-cta {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
}
.about-cta h2 { font-size: 1.3rem; margin-bottom: 8px; }
.about-cta p { color: var(--text-muted); margin-bottom: 20px; font-size: .95rem; }
.about-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Product Spec Boxes ─────────────────────────────────────── */
.spec-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 16px 0;
}
.spec-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
    transition: var(--transition);
}
.spec-box:hover { border-color: var(--primary); }
.spec-box-icon { font-size: 1.6rem; margin-bottom: 6px; }
.spec-box-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 4px; }
.spec-box-val { font-size: .85rem; color: var(--text); font-weight: 600; word-break: break-word; }
@media (max-width: 480px) { .spec-boxes-grid { grid-template-columns: repeat(2, 1fr); } }
