/* =====================================================================
   SKIN 7: NORDIC APPLE MINIMAL — Ultra-Slim Translucent Header
           + Circular Category Bubbles + Tall Borderless Gallery Cards
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0071e3;
    --primary-hover: #0077ed;
    --primary-soft: rgba(0, 113, 227, 0.1);
    --accent: #0071e3;
    --success: #16a34a;
    --success-soft: rgba(22, 163, 74, 0.1);
    --danger: #e11d48;
    --danger-soft: rgba(225, 29, 72, 0.1);

    --bg: #ffffff;
    --bg-subtle: #f5f5f7;
    --surface: #f5f5f7;
    --surface-glass: rgba(255, 255, 255, 0.78);
    --text: #1d1d1f;
    --muted: #6e6e73;
    --border: rgba(0, 0, 0, 0.07);

    --radius-sm: 12px;
    --radius: 22px;
    --radius-lg: 28px;
    --shadow-sm: none;
    --shadow-md: 0 18px 40px -14px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 28px 60px -16px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] {
    --primary: #2997ff;
    --primary-hover: #5ac8fa;
    --primary-soft: rgba(41, 151, 255, 0.16);
    --accent: #2997ff;
    --success: #30d158;
    --danger: #ff453a;

    --bg: #000000;
    --bg-subtle: #161617;
    --surface: #161617;
    --surface-glass: rgba(22, 22, 23, 0.8);
    --text: #f5f5f7;
    --muted: #86868b;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Alexandria', 'Cairo', sans-serif;
    letter-spacing: -0.01em;
}
html[dir="ltr"] body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* شريط علوي فائق النحافة وروابط متمركزة في الوسط */
.navbar {
    background: var(--surface-glass) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.navbar .navbar-inner {
    min-height: 52px;
    padding-block: 6px;
}

@media (min-width: 1081px) {
    .navbar .navbar-inner {
        justify-content: space-between;
    }
    .navbar .nav-desktop-links {
        margin-inline: auto;
        gap: 14px;
    }
    .navbar .nav-end-bar {
        margin-inline-start: 0;
    }
}

.brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    box-shadow: none;
}

.nav-item-link,
.nav-dropdown > summary {
    font-weight: 500;
    font-size: 0.84rem;
    color: var(--muted);
    border-radius: 999px;
}
.nav-item-link:hover,
.nav-item-link.active,
.nav-dropdown.is-active > summary {
    background: transparent;
    color: var(--text);
    font-weight: 700;
}

/* هيرو تحريري أبيض ضخم وهادئ */
.hero {
    background: var(--bg);
    color: var(--text);
    padding: 72px 0 54px;
    margin-bottom: 24px;
    border-bottom: none;
}

.hero-grid {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 26px;
}

.hero-text {
    max-width: 760px;
}

.hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.18;
}

.hero p {
    color: var(--muted);
    font-size: 1.12rem;
    font-weight: 400;
}

.hero-badge {
    background: var(--bg-subtle);
    border: none;
    color: var(--primary);
    font-weight: 600;
}

.trust-pills {
    justify-content: center;
    color: var(--muted);
}

.search-box {
    max-width: 500px;
}
.search-box input {
    background: var(--bg-subtle);
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text);
    padding-block: 15px;
    padding-inline-start: 48px;
}
.search-box input::placeholder { color: var(--muted); }
.search-box svg { color: var(--muted); }
.search-box input:focus {
    background: var(--bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

/* الأقسام: فقاعات دائرية ضخمة بلا إطارات (Stories / Showcase Row) */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    margin-bottom: 52px;
}

.category-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px;
    width: 124px;
    gap: 10px;
}

.category-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--bg-subtle);
    font-size: 2.1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: none;
}
.category-card:hover .category-icon {
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: normal;
}

/* المنتجات: بطاقات معرض طويلة بلا حدود وبمساحات فسيحة */
.products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
@media (max-width: 960px) {
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .products-grid { grid-template-columns: 1fr; }
}

.product-card {
    border: none;
    background: var(--surface);
    border-radius: 26px;
    box-shadow: none;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-thumb {
    height: 230px;
    background: color-mix(in srgb, var(--bg) 55%, var(--bg-subtle));
}

.product-body {
    padding: 24px 26px 26px;
    text-align: center;
    align-items: center;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.product-footer {
    width: 100%;
    flex-direction: column;
    align-items: center;
    border-top: none;
    padding-top: 10px;
    gap: 12px;
}

.product-footer .price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--muted);
}

/* لوحة التحكم: بطاقات ناعمة بأرقام ضخمة رشيقة */
.stats-grid {
    gap: 18px;
}
.stat-card {
    border: none;
    border-radius: 24px;
    padding: 26px 24px;
    background: var(--surface);
    box-shadow: none;
}
.stat-value {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.panel-card {
    border: none;
    border-radius: 26px;
    padding: 28px;
    box-shadow: none;
}

.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 10px 22px;
}
.btn-primary {
    background: var(--primary);
    box-shadow: none;
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.28);
}

.form-input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.data-table th {
    background: transparent;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}