/* ============================================================
   Boostly Insta — تصميم متجر بأسلوب إنستغرام (معزول تماماً)
   كل القواعد مقيّدة بـ body.bz-body حتى لا تتعارض مع تصميم المتجر الأصلي.
   ثيم هجين مطابق لتطبيق الموبايل: أسطح التصفّح فاتحة، ومشغّل الريلز يبقى داكناً.
   ============================================================ */

.bz-body * { box-sizing: border-box; }

.bz-body {
    /* لوحة الألوان — مطابقة لـ COLORS في تطبيق الموبايل (config.ts) */
    --bz-accent: #6c5ce7;        /* بنفسجي العلامة (CTA/نشِط) */
    --bz-accent-2: #5848c9;
    --bz-bg: #F6F6FB;            /* خلفية التصفّح (أبيض مائل لرمادي بارد) */
    --bz-surface: #FFFFFF;       /* البطاقات/الأسطح */
    --bz-surface-alt: #EEEEF4;   /* حقول/خلفيات ثانوية */
    --bz-border: #E7E7EF;        /* حدود خفيفة */
    --bz-text: #16131F;          /* نص أساسي شبه أسود */
    --bz-muted: #6C6880;         /* نص ثانوي/خافت */
    --bz-faint: #C2BFD0;         /* أيقونات/عناصر نائبة باهتة على الفاتح */
    --bz-like: #E0507A;          /* قلب الإعجاب (مطابق للتطبيق) */
    --bz-wa: #25D366;            /* واتساب */
    --bz-media: #0B0914;         /* خلفية الريلز/الوسائط (تبقى داكنة) */
    --bz-on-media: #FFFFFF;      /* نص/أيقونات فوق الوسائط */
    --bz-nav-idle: #8a86a0;      /* لون تبويب غير نشِط (مطابق للتطبيق) */
    margin: 0;
    padding: 0;
    background: var(--bz-bg);
    color: var(--bz-text);
    font-family: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
}

.bz-body img { max-width: 100%; display: block; }
.bz-body a { color: inherit; text-decoration: none; }
.bz-body button { font-family: inherit; cursor: pointer; }
/* مكوّنات قد تُصيَّر كروابط <a> (عنوان البطاقة فوق الصورة، الأزرار الملوّنة):
   يجب أن يتفوّق لون نصّها الأبيض على إعادة ضبط ".bz-body a { color: inherit }" أعلاه */
.bz-body a.bz-title,
.bz-body a.bz-btn-primary,
.bz-body a.bz-btn-wa,
.bz-body a.bz-follow-btn,
.bz-body a.bz-slide-getprice { color: #fff; }

/* محتوى عام بعرض موبايل ومتمركز على الشاشات الكبيرة */
.bz-app {
    max-width: 680px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bz-bg);
    position: relative;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

/* ----------------------------- شريط علوي ----------------------------- */
.bz-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    background: rgba(246,246,251,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bz-border);
}
.bz-topbar .bz-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--bz-text);
}
.bz-topbar .bz-brand img { height: 26px; width: auto; }
.bz-topbar .bz-top-actions { margin-inline-start: auto; display: flex; gap: 6px; }
.bz-topbar .bz-icon-btn {
    background: transparent; border: 0; color: var(--bz-text); padding: 6px;
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-topbar .bz-icon-btn svg { width: 24px; height: 24px; }

/* شريط البحث المنبثق من النافبار */
.bz-searchbar {
    display: none; align-items: center; gap: 8px;
    position: sticky; top: 52px; z-index: 49;
    padding: 8px 12px;
    background: rgba(246,246,251,0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bz-border);
}
.bz-searchbar.is-open { display: flex; }
.bz-searchbar input {
    flex: 1; min-width: 0;
    background: var(--bz-surface-alt); border: 0; border-radius: 10px;
    color: var(--bz-text); padding: 10px 12px; font-size: 14px; outline: none;
}
.bz-searchbar input::placeholder { color: var(--bz-muted); }
.bz-searchbar .bz-search-go { background: transparent; border: 0; color: var(--bz-text); padding: 6px; display: inline-flex; }
.bz-searchbar .bz-search-go svg { width: 22px; height: 22px; }

/* ----------------- شريط التصنيفات (متل تيليغرام — مطابق للموبايل) ----------------- */
.bz-catbar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    position: sticky; top: 52px; z-index: 49; /* لاصق تحت الشريط العلوي */
    padding: 8px 12px;
    background: rgba(246,246,251,0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bz-border);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* إخفاء شريط التمرير (فايرفوكس) */
}
.bz-catbar::-webkit-scrollbar { display: none; }
.bz-catbar .bz-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 18px;
    background: var(--bz-surface);
    border: 1px solid var(--bz-border);
    color: var(--bz-muted);
    font-weight: 700;
    font-size: 13px;
    transition: background .15s, color .15s, border-color .15s;
}
.bz-catbar .bz-chip.is-active {
    background: var(--bz-accent);
    border-color: var(--bz-accent);
    color: #fff;
}

/* رأس صفحة فرعية (رجوع) */
.bz-subhead {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 12px;
    height: 52px; padding: 0 10px;
    background: rgba(246,246,251,0.85); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bz-border);
}
.bz-subhead .bz-back { background: transparent; border: 0; color: var(--bz-text); padding: 6px; display: inline-flex; }
.bz-subhead .bz-back svg { width: 24px; height: 24px; }
.bz-subhead .bz-subhead-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* زر مشاركة بروفايل التاجر — يُعرض ضمن صف أزرار التاجر (متل الموبايل بعد e688e6c) */
.bz-seller-actions .bz-share-profile { cursor: pointer; }
.bz-seller-actions .bz-share-profile svg { width: 18px; height: 18px; }
.bz-subhead-search { flex: 1; min-width: 0; }
.bz-subhead-search input {
    width: 100%;
    background: var(--bz-surface-alt); border: 0; border-radius: 10px;
    color: var(--bz-text); padding: 9px 12px; font-size: 14px; outline: none;
}
.bz-subhead-search input::placeholder { color: var(--bz-muted); }

/* ----------------------------- عناوين الأقسام ----------------------------- */
.bz-section-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 14px 8px;
}
.bz-section-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--bz-text); }
.bz-section-head .bz-section-link { font-size: 13px; color: var(--bz-accent); }

/* ----------------------------- شبكة المنتجات ----------------------------- */
.bz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* عمودان فقط */
    column-gap: 0;                    /* الصور ملتصقة أفقياً */
    row-gap: 2px;                     /* الصور شبه ملتصقة عمودياً */
}

/* البطاقة = صورة بكامل الحجم والمعلومات عائمة فوقها (نسبة مطابقة للتطبيق 1:1.42) */
.bz-card {
    position: relative;
    aspect-ratio: 1 / 1.42;   /* مطابق لتطبيق الموبايل (ارتفاع = عرض × 1.42) */
    overflow: hidden;
    background: var(--bz-surface-alt);
}
.bz-card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-card-link { position: absolute; inset: 0; z-index: 1; }
.bz-card-badge {
    position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3;
    background: var(--bz-like); color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 7px; border-radius: 6px;
}
/* عدّاد المشاهدات في الزاوية العلوية (مطابق GridCell.tsx بالموبايل — top-left، دائري خلفية نصف شفافة) */
.bz-card-views {
    position: absolute; top: 6px; inset-inline-start: 6px; z-index: 3;
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(0,0,0,0.5); color: #fff;
    padding: 3px 7px; border-radius: 10px;
    font-size: 11px; font-weight: 700; line-height: 1;
}
.bz-card-views svg { width: 12px; height: 12px; fill: none; stroke: currentColor; flex-shrink: 0; }

/* الطبقة العائمة أسفل الصورة (نص أبيض فوق الصورة — يبقى كما هو) */
.bz-card-overlay {
    position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
    padding: 26px 8px 8px;
    direction: rtl; text-align: right;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0) 100%);
}
.bz-card-overlay a, .bz-card-overlay button { pointer-events: auto; }
.bz-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.bz-seller { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bz-seller-ava {
    width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
    flex: 0 0 auto; background: var(--bz-surface-alt); border: 1px solid rgba(255,255,255,0.55);
}
.bz-seller-name {
    font-size: 12px; color: #fff; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 100px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.bz-like {
    background: transparent; border: 0; padding: 2px; color: #fff;
    display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
}
.bz-like svg { width: 24px; height: 24px; stroke: #fff; fill: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); transition: transform .12s ease; }
.bz-like.is-liked svg { fill: var(--bz-like); stroke: var(--bz-like); }
.bz-like:active svg { transform: scale(1.25); }
.bz-like .bz-like-count { font-size: 12px; color: #fff; }

.bz-title {
    margin-top: 6px;
    font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.bz-price { margin-top: 3px; font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.85); }
.bz-price .bz-old { color: #ccc; font-weight: 400; font-size: 11px; margin-inline-start: 6px; text-decoration: line-through; }
.bz-price.bz-free { color: #2ee87a; }
.bz-price .bz-quote { color: #e6e8ff; font-weight: 600; font-size: 13px; }

/* حالات التحميل والنهاية */
.bz-loader { padding: 22px; display: flex; justify-content: center; }
.bz-spinner {
    width: 26px; height: 26px; border-radius: 50%;
    border: 3px solid var(--bz-border); border-top-color: var(--bz-accent); animation: bz-spin .8s linear infinite;
}
@keyframes bz-spin { to { transform: rotate(360deg); } }
.bz-sentinel { height: 1px; }
.bz-end-note { text-align: center; color: var(--bz-muted); font-size: 13px; padding: 18px; }
.bz-empty { text-align: center; color: var(--bz-muted); padding: 60px 20px; }

/* ----------------------------- رأس صفحة البائع ----------------------------- */
.bz-seller-header { padding: 22px 16px 10px; text-align: center; }
.bz-seller-header .bz-seller-avatar {
    width: 120px; height: 120px; border-radius: 22px; object-fit: cover;
    margin: 0 auto 12px; border: 1px solid var(--bz-border); background: var(--bz-surface-alt);
}
.bz-seller-header .bz-seller-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.bz-seller-header .bz-seller-stats {
    display: flex; justify-content: center; gap: 26px; margin-top: 12px; color: var(--bz-muted);
}
.bz-seller-header .bz-stat { text-align: center; }
.bz-seller-header .bz-stat b { display: block; font-size: 16px; color: var(--bz-text); }
.bz-seller-header .bz-stat span { font-size: 12px; color: var(--bz-muted); }
.bz-seller-header .bz-seller-actions { margin-top: 14px; display: flex; gap: 8px; justify-content: center; }
.bz-btn {
    border: 0; border-radius: 14px; padding: 9px 18px; font-size: 14px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.bz-btn-primary { background: var(--bz-accent); color: #fff; }
.bz-btn-block { width: 100%; padding: 14px; font-size: 15px; }
.bz-btn-wa { background: var(--bz-wa); color: #fff; }
.bz-btn-ghost { background: var(--bz-surface-alt); color: var(--bz-text); border: 1px solid var(--bz-border); }
.bz-btn svg { width: 18px; height: 18px; }
.bz-seller-divider { height: 1px; background: var(--bz-border); margin: 14px 0 2px; }

/* ============================================================
   الريلز — صفحة المنتج بملء الشاشة (تبقى داكنة — وسائط)
   ============================================================ */
.bz-reel {
    height: 100vh; height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    background: var(--bz-media);
    scrollbar-width: none;
}
.bz-reel::-webkit-scrollbar { display: none; }

.bz-slide {
    position: relative;
    height: 100vh; height: 100dvh;
    scroll-snap-align: start; scroll-snap-stop: always;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
/* خلفية ضبابية تملأ الفراغ */
.bz-slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: blur(28px) brightness(0.45); transform: scale(1.2);
}
.bz-slide-img,
.bz-slide-video {
    position: relative; z-index: 1;
    max-width: 100%; max-height: 100%;
    width: 100%; height: 100%; object-fit: contain;
}
.bz-slide-video { background: #000; }
.bz-slide-shade {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 32%, rgba(0,0,0,0) 55%);
}

/* معرض صور المنتج داخل الريل (سحب أفقي + تبديل تلقائي) */
.bz-slide-gallery { position: absolute; inset: 0; z-index: 1; }
.bz-gallery-track {
    position: absolute; inset: 0;
    display: flex; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bz-gallery-track::-webkit-scrollbar { display: none; }
.bz-gallery-img {
    flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain;
    scroll-snap-align: center; scroll-snap-stop: always;
    -webkit-user-drag: none; user-select: none;
}
.bz-gallery-dots {
    position: absolute; z-index: 5; top: calc(env(safe-area-inset-top) + 20px);
    inset-inline: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.bz-gallery-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.45); transition: width .25s, background .25s;
}
.bz-gallery-dots span.is-active { background: #fff; width: 18px; border-radius: 3px; }

.bz-reel-top {
    position: fixed; top: 0; inset-inline: 0; z-index: 6;
    max-width: 680px; margin: 0 auto;
    display: flex; align-items: center; gap: 10px;
    padding: 14px; padding-top: max(14px, env(safe-area-inset-top));
    pointer-events: none;
}
.bz-reel-top .bz-back { pointer-events: auto; }
.bz-reel-top .bz-back { background: rgba(0,0,0,0.35); border: 0; color: #fff; border-radius: 50%; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.bz-reel-top .bz-back svg { width: 22px; height: 22px; }

/* معلومات أسفل-يمين */
.bz-slide-info {
    position: absolute; z-index: 5; bottom: 0; right: 0;
    width: 74%; max-width: 460px;
    padding: 16px; padding-bottom: max(20px, env(safe-area-inset-bottom));
    direction: rtl; text-align: right; /* محاذاة لليمين (معلومات المنتج على اليمين) */
}
.bz-slide-seller { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.bz-slide-seller img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; background: #241f36; }
.bz-slide-seller .bz-slide-seller-name { font-size: 15px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.bz-slide-title { font-size: 17px; font-weight: 800; color: #fff; margin: 0 0 6px; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
/* سعر واضح داخل رقاقة (مطابق لتطبيق الموبايل) */
.bz-slide-price {
    display: inline-block; font-size: 20px; font-weight: 800; color: #fff;
    margin: 8px 0 0; padding: 7px 14px; border-radius: 12px;
    background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.22);
    letter-spacing: 0.3px; text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.bz-slide-price .bz-old { color: #cfcfcf; font-weight: 400; font-size: 13px; margin-inline-start: 8px; text-decoration: line-through; }
.bz-slide-price.bz-free { color: #2ee87a; }
/* زر "احصل على السعر" (واتساب) للمنتجات بدون سعر — مطابق لتطبيق الموبايل */
.bz-slide-getprice {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 8px 0 0; padding: 10px 18px; border-radius: 22px;
    background: var(--bz-wa); color: #fff; font-size: 15px; font-weight: 800;
}
.bz-slide-getprice svg { width: 18px; height: 18px; fill: #fff; }

.bz-slide-desc { font-size: 13.5px; line-height: 1.5; color: #ededed; margin: 8px 0 0; text-shadow: 0 1px 4px rgba(0,0,0,0.6); cursor: pointer; }
.bz-slide-desc.is-open { cursor: auto; }
.bz-slide-desc .bz-desc-short { display: inline; }
.bz-slide-desc .bz-desc-full { display: none; white-space: pre-line; }
.bz-slide-desc.is-open .bz-desc-short { display: none; }
.bz-slide-desc.is-open .bz-desc-full { display: inline; }
.bz-desc-toggle { background: transparent; border: 0; color: #e6e8ff; font-size: 13px; font-weight: 700; padding: 0; margin-inline-start: 4px; }

/* أزرار الإجراءات على اليسار */
.bz-slide-actions {
    position: absolute; z-index: 6; left: 8px;
    bottom: calc(84px + env(safe-area-inset-bottom)); /* مرفوعة قليلاً للأعلى */
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.bz-act { background: transparent; border: 0; color: #fff; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bz-act svg { width: 32px; height: 32px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); }
.bz-act.bz-like svg, .bz-act.bz-share svg { stroke: #fff; fill: none; }
.bz-act.bz-call svg { fill: #fff; stroke: none; }
.bz-act.bz-wa svg { fill: var(--bz-wa); stroke: none; }
.bz-act.bz-views { cursor: default; }
.bz-act.bz-views svg { stroke: #fff; fill: none; }
.bz-act .bz-act-label { font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.bz-act.bz-like.is-liked svg { fill: var(--bz-like); stroke: var(--bz-like); }
.bz-act.bz-like:active svg { transform: scale(1.2); }

/* قلب نابض عند الإعجاب المزدوج */
.bz-heart-pop {
    position: absolute; z-index: 7; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0); opacity: 0;
    color: #fff; pointer-events: none;
}
.bz-heart-pop svg { width: 110px; height: 110px; fill: #fff; }
.bz-heart-pop.animate { animation: bz-heart .9s ease; }
@keyframes bz-heart {
    0% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
    15% { transform: translate(-50%,-50%) scale(1.1); opacity: .95; }
    35% { transform: translate(-50%,-50%) scale(0.92); opacity: .95; }
    100% { transform: translate(-50%,-50%) scale(1.3); opacity: 0; }
}

/* ----------------------------- نافذة التواصل (Bottom sheet) ----------------------------- */
.bz-sheet-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.45); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.bz-sheet-overlay.is-open { opacity: 1; visibility: visible; }
.bz-sheet {
    position: fixed; z-index: 201; left: 0; right: 0; bottom: 0;
    max-width: 680px; margin: 0 auto;
    background: var(--bz-surface); color: var(--bz-text);
    border-radius: 18px 18px 0 0;
    padding: 10px 18px max(22px, env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 -8px 30px rgba(22,19,31,0.12);
}
.bz-sheet.is-open { transform: translateY(0); }
.bz-sheet .bz-sheet-grip { width: 40px; height: 4px; background: var(--bz-border); border-radius: 4px; margin: 6px auto 14px; }
.bz-sheet .bz-sheet-title { font-size: 16px; font-weight: 800; text-align: center; margin: 0 0 4px; }
.bz-sheet .bz-sheet-seller { font-size: 13px; color: var(--bz-muted); text-align: center; margin: 0 0 16px; }
.bz-sheet .bz-sheet-actions { display: flex; flex-direction: column; gap: 10px; }
.bz-sheet .bz-sheet-actions .bz-btn { width: 100%; padding: 13px; font-size: 15px; }
.bz-sheet .bz-sheet-none { text-align: center; color: var(--bz-muted); font-size: 14px; padding: 8px 0 16px; }

/* ----------------------------- شريط التنقل السفلي ----------------------------- */
.bz-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    max-width: 680px; margin: 0 auto;
    height: 72px; padding-top: 6px; padding-bottom: env(safe-area-inset-bottom);
    display: flex; align-items: center; justify-content: space-around;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    border-top: 1px solid var(--bz-border);
}
.bz-bottomnav a { color: var(--bz-nav-idle); flex: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; }
.bz-bottomnav a.is-active { color: var(--bz-accent); }
.bz-bottomnav a svg { width: 26px; height: 26px; }

/* شريط التنقل لا يظهر في صفحة الريلز — والصفحة تبقى داكنة (وسائط) */
.bz-body.bz-reel-page { padding-bottom: 0; background: var(--bz-media); }
.bz-body.bz-reel-page .bz-bottomnav { display: none; }

/* شاشات أوسع: تكبير الشبكة قليلاً مع الإبقاء على عمودين بحسب الطلب */
@media (min-width: 560px) {
    .bz-seller-name { max-width: 160px; }
}

/* ----------------------------- شريط علوي بعنوان (اكتشف/الأحدث/حسابي) ----------------------------- */
.bz-topbar-titled { justify-content: space-between; }
.bz-topbar-titled .bz-brand img { height: 30px; }
.bz-page-title { font-size: 20px; font-weight: 800; color: var(--bz-text); }

/* ----------------------------- صفحة البحث ----------------------------- */
.bz-searchhead {
    position: sticky; top: 0; z-index: 50;
    padding: 12px 14px;
    background: rgba(246,246,251,0.85); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bz-border);
}
.bz-searchhead-form {
    display: flex; align-items: center; gap: 8px;
    background: var(--bz-surface-alt); border: 0; border-radius: 12px;
    padding: 0 12px; height: 44px;
}
.bz-searchhead-icon { display: inline-flex; color: var(--bz-muted); }
.bz-searchhead-icon svg { width: 20px; height: 20px; }
.bz-searchhead-form input {
    flex: 1; background: transparent; border: 0; outline: none;
    color: var(--bz-text); font-size: 15px; font-family: inherit;
}
.bz-searchhead-form input::placeholder { color: var(--bz-muted); }

.bz-search-tabs { display: flex; gap: 6px; padding: 12px 14px 2px; }
.bz-search-tab {
    flex: 1; text-align: center; padding: 10px; border-radius: 10px;
    background: var(--bz-surface); color: var(--bz-muted); font-size: 14px; font-weight: 700;
    border: 1px solid var(--bz-border);
}
.bz-search-tab.is-active { background: var(--bz-accent); color: #fff; border-color: var(--bz-accent); }

.bz-search-empty { text-align: center; color: var(--bz-muted); padding: 70px 24px; }
.bz-search-empty-icon { display: inline-flex; color: var(--bz-faint); }
.bz-search-empty-icon svg { width: 64px; height: 64px; stroke-width: 1.6; }
.bz-search-empty p { margin: 16px 0 0; font-size: 15px; color: var(--bz-muted); }

/* ----------------------------- بطاقات البائعين في البحث ----------------------------- */
.bz-seller-list { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; }
.bz-seller-card { background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px; overflow: hidden; }
.bz-seller-card-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.bz-seller-card-ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--bz-surface-alt); flex-shrink: 0; }
.bz-seller-card-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.bz-seller-card-name { font-size: 15px; font-weight: 800; color: var(--bz-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-seller-card-count { font-size: 12px; color: var(--bz-muted); }
.bz-seller-card-go { color: var(--bz-accent); display: inline-flex; flex-shrink: 0; }
.bz-seller-card-go svg { width: 22px; height: 22px; }
.bz-seller-card-strip { display: flex; gap: 4px; padding: 0 6px 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bz-seller-thumb { flex: 0 0 auto; width: 28%; max-width: 130px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bz-surface-alt); }
.bz-seller-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------- صفحة حسابي ----------------------------- */
.bz-account { padding: 18px 22px; text-align: center; }
.bz-account-guest { padding-top: 70px; }
.bz-account-ava {
    width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
    margin: 12px auto 0; background: var(--bz-surface-alt);
}
.bz-account-ava-empty {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bz-faint); background: var(--bz-surface-alt);
}
.bz-account-ava-empty svg { width: 56px; height: 56px; }
.bz-account-name { font-size: 22px; font-weight: 800; margin: 16px 0 0; color: var(--bz-text); }
.bz-account-sub { font-size: 14px; color: var(--bz-muted); line-height: 1.7; margin: 12px auto 0; max-width: 320px; }
.bz-account-actions { display: flex; flex-direction: column; gap: 12px; margin: 30px auto 0; max-width: 420px; }
.bz-account-links { display: flex; flex-direction: column; gap: 8px; margin: 26px auto 0; max-width: 420px; }
.bz-account-link {
    display: flex; align-items: center; gap: 12px; padding: 15px 16px;
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 12px;
    color: var(--bz-text); font-size: 15px; font-weight: 600;
}
.bz-account-link svg { width: 22px; height: 22px; color: var(--bz-accent); }
.bz-account-logout { margin: 22px auto 0; max-width: 420px; }

/* ----------------------------- نوافذ الدخول/التاجر السفلية ----------------------------- */
.bz-auth-sheet { padding-top: 18px; text-align: center; }
.bz-sheet-close {
    position: absolute; top: 14px; right: 16px;
    width: 34px; height: 34px; border-radius: 50%;
    background: transparent; border: 0; color: var(--bz-muted);
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-sheet-close svg { width: 22px; height: 22px; }
.bz-auth-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--bz-accent); color: #fff;
    font-size: 14px; font-weight: 800;
    padding: 8px 18px; border-radius: 999px; margin: 4px 0 14px;
}
.bz-auth-badge svg { width: 18px; height: 18px; }
.bz-auth-sheet .bz-sheet-title { font-size: 22px; margin-bottom: 4px; }
.bz-auth-sheet .bz-sheet-seller { margin-bottom: 18px; }
.bz-auth-alt-plain { margin: 20px 0 10px; color: var(--bz-muted); }
.bz-auth-sheet .bz-btn-wa { margin-top: 2px; }
.bz-auth-sheet .bz-auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.bz-auth-row { display: flex; gap: 12px; }
.bz-auth-row input { flex: 1; min-width: 0; }
.bz-auth-or {
    display: flex; align-items: center; gap: 12px;
    color: var(--bz-muted); font-size: 13px; margin: 16px 2px;
}
.bz-auth-or::before, .bz-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--bz-border); }
.bz-btn.bz-btn-google { background: #fff; color: #1f1f1f; border: 1px solid var(--bz-border); }
.bz-btn-google svg { width: 20px; height: 20px; flex: 0 0 auto; }
.bz-auth-switch {
    display: block; width: 100%; background: transparent; border: 0;
    margin: 18px 0 2px; padding: 6px; font-size: 14.5px; color: var(--bz-muted); font-family: inherit;
}
.bz-auth-switch b { color: var(--bz-accent); font-weight: 800; }

/* ----------------------------- حسابي (مسجّل) ----------------------------- */
.bz-account-me { padding-top: max(28px, env(safe-area-inset-top)); }
.bz-account-email { font-size: 14px; color: var(--bz-muted); margin: 8px 0 0; word-break: break-all; }
.bz-account-type { display: inline-block; font-size: 13px; color: var(--bz-muted); }
.bz-account-type-row {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
    flex-wrap: wrap; justify-content: center;
}
.bz-account-share {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bz-surface-alt); color: var(--bz-accent);
    border: 0; border-radius: 999px; padding: 5px 12px;
    font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.bz-account-share svg { width: 14px; height: 14px; }
.bz-account-share:hover { background: rgba(108, 92, 231, 0.12); }

.bz-acct-menu {
    margin: 26px auto 0; max-width: 460px;
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 16px; overflow: hidden;
}
.bz-acct-row {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 17px 16px; background: transparent; border: 0; font-family: inherit;
    color: var(--bz-text); font-size: 15.5px; font-weight: 600; text-align: start; cursor: pointer;
    border-bottom: 1px solid var(--bz-border);
}
.bz-acct-menu .bz-acct-row:last-child { border-bottom: 0; }
.bz-acct-ic { display: inline-flex; color: var(--bz-text); flex-shrink: 0; }
.bz-acct-ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; }
.bz-acct-label { flex: 1; min-width: 0; }
.bz-acct-go { display: inline-flex; color: var(--bz-faint); flex-shrink: 0; }
.bz-acct-go svg { width: 18px; height: 18px; }
.bz-acct-row-danger { color: #e0433f; }
.bz-acct-row-danger .bz-acct-ic { color: #e0433f; }

/* ----------------------------- ترويسة فرعية بعنوان موسّط ----------------------------- */
.bz-subhead-center { position: relative; justify-content: flex-start; }
.bz-subhead-center .bz-subhead-title {
    position: absolute; inset-inline: 52px; text-align: center; pointer-events: none;
    font-size: 17px; font-weight: 800;
}

/* ----------------------------- التجار الذين أتابعهم ----------------------------- */
.bz-follow-list { display: flex; flex-direction: column; }
.bz-follow-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-bottom: 1px solid var(--bz-border); color: var(--bz-text);
}
.bz-follow-ava { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--bz-surface-alt); flex-shrink: 0; }
.bz-follow-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-follow-go { display: inline-flex; color: var(--bz-faint); flex-shrink: 0; }
.bz-follow-go svg { width: 18px; height: 18px; }

/* ----------------------------- تعديل الملف ----------------------------- */
.bz-editprofile { padding: 20px 18px 30px; max-width: 520px; margin: 0 auto; }
.bz-avatar-edit { position: relative; width: 120px; margin: 6px auto 26px; }
.bz-avatar-edit-img {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    background: var(--bz-surface-alt); display: flex; align-items: center; justify-content: center;
}
.bz-avatar-edit-empty { color: var(--bz-faint); }
.bz-avatar-edit-empty svg { width: 64px; height: 64px; }
.bz-avatar-cam {
    position: absolute; bottom: 2px; inset-inline-start: 2px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bz-accent); border: 3px solid var(--bz-bg);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.bz-avatar-cam svg { width: 20px; height: 20px; color: #fff; }
.bz-field { margin-bottom: 18px; }
.bz-field-row { display: flex; gap: 14px; }
.bz-field-row .bz-field { flex: 1; min-width: 0; }
.bz-field label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--bz-muted); }
.bz-field input, .bz-field textarea, .bz-field select {
    width: 100%; background: var(--bz-surface-alt); border: 0; border-radius: 12px;
    padding: 15px; color: var(--bz-text); font-size: 15px; font-family: inherit; outline: none;
}
.bz-field input::placeholder, .bz-field textarea::placeholder { color: var(--bz-muted); }
.bz-field input:focus, .bz-field textarea:focus, .bz-field select:focus { box-shadow: 0 0 0 2px rgba(108,92,231,0.30); }
.bz-field textarea { resize: vertical; min-height: 120px; }
.bz-save-btn { margin-top: 8px; }

/* ----------------------------- زر المتابعة ----------------------------- */
.bz-follow-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bz-accent); color: #fff;
    border: 1.5px solid var(--bz-accent); border-radius: 20px;
    padding: 9px 28px; font-size: 14px; font-weight: 800; font-family: inherit;
    line-height: 1; cursor: pointer; white-space: nowrap;
}
.bz-follow-btn .bz-follow-done { display: none; }
.bz-follow-btn.is-following { background: var(--bz-surface-alt); color: var(--bz-text); border-color: var(--bz-border); }
.bz-follow-btn.is-following .bz-follow-do { display: none; }
.bz-follow-btn.is-following .bz-follow-done { display: inline; }

/* صفحة البائع: زر تحت الاسم */
.bz-seller-header .bz-follow-btn { margin-top: 12px; min-width: 168px; }

/* الريل: زر مدمج بجانب اسم التاجر (فوق الوسائط — يبقى أبيض) */
.bz-slide-sellerrow { display: flex; align-items: center; gap: 10px; }
.bz-slide-sellerrow .bz-slide-seller { min-width: 0; }
.bz-follow-btn-sm { padding: 6px 16px; font-size: 12.5px; border-radius: 16px; flex-shrink: 0; }
.bz-slide-sellerrow .bz-follow-btn-sm.is-following { background: rgba(255,255,255,0.22); color: #fff; border-color: rgba(255,255,255,0.7); }
.bz-auth-sheet .bz-auth-form input {
    background: var(--bz-surface-alt); border: 0; border-radius: 12px;
    padding: 14px; color: var(--bz-text); font-size: 15px; font-family: inherit; outline: none;
}
.bz-auth-sheet .bz-auth-form input::placeholder { color: var(--bz-muted); }
.bz-auth-sheet .bz-auth-form input:focus { box-shadow: 0 0 0 2px rgba(108,92,231,0.30); }
.bz-auth-sheet .bz-auth-msg { color: #e0433f; font-size: 13px; text-align: center; min-height: 0; }
.bz-auth-sheet .bz-auth-msg.is-error { padding: 2px 0; }
.bz-auth-sheet .bz-auth-alt { text-align: center; font-size: 14px; color: var(--bz-muted); margin: 14px 0 2px; }
.bz-auth-sheet .bz-auth-alt a { color: var(--bz-accent); font-weight: 700; }

/* ============================================================
   ميزات إضافية: إشعارات · منتجاتي · نموذج المنتج · شارة الحساب
   ============================================================ */

/* شارة عدد الإشعارات في قائمة الحساب */
.bz-acct-badge {
    background: var(--bz-like); color: #fff; font-size: 12px; font-weight: 800;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ترويسة فرعية بزر إضافة في الطرف */
.bz-subhead-add {
    margin-inline-start: auto; color: #fff; background: var(--bz-accent);
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bz-subhead-add svg { width: 20px; height: 20px; }
.bz-subhead-center .bz-subhead-add { position: relative; z-index: 1; }

/* حالة فارغة بأيقونة */
.bz-empty-ic { display: inline-flex; color: var(--bz-faint); margin-bottom: 6px; }
.bz-empty-ic svg { width: 56px; height: 56px; stroke-width: 1.6; }

/* ----------------------------- الإشعارات ----------------------------- */
.bz-notif-list { display: flex; flex-direction: column; }
.bz-notif {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--bz-border); color: var(--bz-text); position: relative;
}
.bz-notif.is-unread { background: var(--bz-surface-alt); }
.bz-notif-ic {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(108,92,231,0.14); color: var(--bz-accent);
}
.bz-notif-ic svg { width: 22px; height: 22px; }
.bz-notif-like .bz-notif-ic { background: rgba(224,80,122,0.16); color: #e0507a; }
.bz-notif-follow .bz-notif-ic { background: rgba(62,142,208,0.16); color: #3e8ed0; }
.bz-notif-new_product .bz-notif-ic { background: rgba(108,92,231,0.16); color: #6c5ce7; }
.bz-notif-promo .bz-notif-ic { background: rgba(232,163,61,0.16); color: #e8a33d; }
.bz-notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bz-notif-title { font-size: 14.5px; font-weight: 700; color: var(--bz-text); line-height: 1.4; }
.bz-notif-text { font-size: 13px; color: var(--bz-muted); line-height: 1.5; }
.bz-notif-time { font-size: 12px; color: var(--bz-muted); margin-top: 2px; }
.bz-notif-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bz-accent); margin-top: 6px; }

/* ----------------------------- منتجاتي ----------------------------- */
.bz-prod-list { display: flex; flex-direction: column; }
.bz-prod {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-bottom: 1px solid var(--bz-border);
}
.bz-prod-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--bz-text); }
.bz-prod-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--bz-surface-alt); flex-shrink: 0; }
.bz-prod-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bz-prod-title {
    font-size: 14.5px; font-weight: 700; color: var(--bz-text); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bz-prod-price { font-size: 14px; font-weight: 800; color: var(--bz-text); }
.bz-prod-onreq { color: var(--bz-wa); font-weight: 700; font-size: 13px; }
.bz-prod-stock { font-size: 12px; color: var(--bz-muted); }
.bz-prod-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bz-prod-actions form { margin: 0; }
.bz-prod-edit, .bz-prod-del, .bz-prod-share {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--bz-border); background: var(--bz-surface);
    display: inline-flex; align-items: center; justify-content: center; color: var(--bz-text); cursor: pointer;
}
.bz-prod-edit svg, .bz-prod-del svg, .bz-prod-share svg { width: 19px; height: 19px; }
.bz-prod-del { color: #e0433f; border-color: rgba(224,67,63,0.35); }
.bz-prod-share { color: var(--bz-accent); border-color: rgba(108,92,231,0.35); }

/* زر "تعديل التاجر" على صفحة عرض التاجر — يظهر للسوبر أدمن بجانب زر المتابعة */
.bz-body .bz-seller-edit {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--bz-surface-alt); color: var(--bz-accent);
    border: 1px solid rgba(108, 92, 231, 0.35);
    font-size: 13px; font-weight: 700;
    margin-inline-start: 8px;
}
.bz-body .bz-seller-edit svg { width: 15px; height: 15px; }
.bz-body .bz-seller-edit:hover { background: rgba(108, 92, 231, 0.12); }

/* ----------------------------- نموذج المنتج ----------------------------- */
.bz-prodform { padding: 16px 18px 30px; max-width: 560px; margin: 0 auto; }
.bz-form-error {
    margin: 12px 18px 0; max-width: 560px; background: rgba(224,67,63,0.10);
    border: 1px solid rgba(224,67,63,0.35); color: #c0392b;
    padding: 12px 14px; border-radius: 12px; font-size: 14px;
}
.bz-form-hint { font-size: 12.5px; color: var(--bz-muted); margin: -8px 0 16px; line-height: 1.6; }
.bz-opt { color: var(--bz-muted); font-weight: 400; }
.bz-prodform select {
    width: 100%; background: var(--bz-surface-alt); border: 0; border-radius: 12px;
    padding: 14px; color: var(--bz-text); font-size: 15px; font-family: inherit; outline: none;
}
.bz-prodform select:focus { box-shadow: 0 0 0 2px rgba(108,92,231,0.30); }
.bz-prodform .bz-file {
    width: 100%; background: var(--bz-surface-alt); border: 1px dashed var(--bz-border); border-radius: 12px;
    padding: 14px; color: var(--bz-muted); font-size: 13px; font-family: inherit;
}
.bz-prodform-thumb { margin-bottom: 10px; }
.bz-prodform-thumb img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--bz-surface-alt); }
.bz-prodform-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bz-prodform-thumbs img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--bz-surface-alt); }
.bz-prodform-thumbs .is-main { outline: 2px solid var(--bz-accent); outline-offset: -2px; }
.bz-prodform-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bz-prodform-preview img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--bz-surface-alt); }
.bz-prodform-preview .bz-prev-main { outline: 2px solid var(--bz-accent); outline-offset: -2px; }
.bz-prodform-video, .bz-prodform-preview video { width: 100%; max-height: 260px; border-radius: 12px; background: #000; margin-top: 6px; display: block; }
.bz-prodform .bz-save-btn { margin-top: 10px; }

/* ----------------------------- انضمام بائع عبر رابط (seller-join) ----------------------------- */
.bz-sellerjoin { padding: 8px 18px 30px; max-width: 460px; margin: 0 auto; }
.bz-sellerjoin-intro { text-align: center; color: var(--bz-muted); font-size: 14px; margin: 4px 0 18px; line-height: 1.7; }
.bz-join-tabs { display: flex; gap: 8px; background: var(--bz-surface-alt); border-radius: 12px; padding: 5px; margin-bottom: 22px; }
.bz-join-tab {
    flex: 1; padding: 11px 8px; border: 0; border-radius: 9px;
    background: transparent; color: var(--bz-muted); font-size: 14px; font-weight: 700; font-family: inherit;
}
.bz-join-tab.is-active { background: var(--bz-accent); color: #fff; }
.bz-join-avahint { text-align: center; margin: -18px 0 18px; }
.bz-join-avahint.is-error { color: #ff5a67; font-weight: 600; }

/* ----------------------------- تكبير صورة المنتج (Lightbox — يبقى داكناً) ----------------------------- */
.bz-act.bz-zoom svg { stroke: #fff; fill: none; }
.bz-zoom-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.96);
    display: none; touch-action: none; overscroll-behavior: contain;
}
.bz-zoom-overlay.is-open { display: block; }
.bz-zoom-stage {
    position: absolute; inset: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.bz-zoom-img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    transform-origin: center center; will-change: transform;
    user-select: none; -webkit-user-drag: none; touch-action: none; cursor: zoom-in;
}
.bz-zoom-close {
    position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px;
    width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.5); border: 0; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-zoom-close svg { width: 24px; height: 24px; }
.bz-zoom-controls {
    position: absolute; z-index: 2; inset-inline: 0; bottom: calc(env(safe-area-inset-bottom) + 24px);
    display: flex; justify-content: center; gap: 16px; pointer-events: none;
}
.bz-zoom-controls button {
    pointer-events: auto; width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); color: #fff;
    font-size: 26px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.bz-zoom-controls button:active { background: rgba(255,255,255,0.28); }
.bz-zoom-hint {
    position: absolute; z-index: 2; inset-inline: 0; top: calc(env(safe-area-inset-top) + 64px);
    text-align: center; color: rgba(255,255,255,0.65); font-size: 13px; pointer-events: none;
}

/* ----------------- إحصائيات المتجر (لوحة التاجر) — مطابقة لـ SellerStatsScreen ----------------- */
.bz-stats { padding: 14px; }
.bz-stats-period { color: var(--bz-muted); font-size: 13px; text-align: center; margin: 0 0 12px; }

.bz-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.bz-stat-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px;
    padding: 14px 8px;
}
.bz-stat-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 19px;
}
.bz-stat-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* أيقونات الفئة "fill" (whatsapp) يجب أن تُملأ باللون بدل الرسم بخط: يستثنى من قاعدة أعلاه */
.bz-stat-ic svg[fill="currentColor"] { fill: currentColor; stroke: none; }
.bz-stat-val { color: var(--bz-text); font-size: 20px; font-weight: 800; }
.bz-stat-lab { color: var(--bz-muted); font-size: 12px; font-weight: 600; }

.bz-stats-totals {
    display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.bz-total-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 18px;
    padding: 8px 14px; color: var(--bz-text); font-size: 13px; font-weight: 700;
}
.bz-total-chip svg { width: 15px; height: 15px; color: var(--bz-accent); }
.bz-total-chip b { font-weight: 800; }

.bz-stats-sec { color: var(--bz-text); font-size: 15px; font-weight: 800; margin: 22px 0 10px; }

.bz-chart {
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px;
    padding: 14px 8px;
}
.bz-chart-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; }
.bz-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bz-bar-val { color: var(--bz-muted); font-size: 9px; font-weight: 700; line-height: 1; height: 10px; }
.bz-bar { width: 12px; border-radius: 6px; background: var(--bz-accent); display: block; }
.bz-bar.is-empty { background: var(--bz-surface-alt); }
.bz-bar-day { color: var(--bz-muted); font-size: 10px; line-height: 1; }

.bz-top-list {
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px;
    padding: 0 12px;
}
.bz-top-row {
    display: flex; align-items: center; gap: 10px; padding: 12px 0;
}
.bz-top-row.has-border { border-top: 1px solid var(--bz-border); }
.bz-top-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 13px;
    background: var(--bz-surface-alt); color: var(--bz-text);
    font-size: 13px; font-weight: 800; flex: 0 0 auto;
}
.bz-top-rank.is-gold { background: var(--bz-accent); color: #fff; }
.bz-top-title { flex: 1; min-width: 0; color: var(--bz-text); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-top-count { color: var(--bz-accent); font-size: 12px; font-weight: 800; flex: 0 0 auto; }

/* ============================================================
   Bulk Upload — رفع دفعة منتجات (مقابل AdminBulkScreen في الموبايل)
   ============================================================ */
.bz-body .bz-bulk { min-height: 100dvh; padding-bottom: 180px; /* الفوتر الثابت + شريط nav السفلي */ }
.bz-body .bz-bulk [hidden] { display: none !important; }
.bz-body .bz-bulk-step { display: none; padding: 12px; }
.bz-body .bz-bulk-step.is-active { display: block; }

/* البحث عن التاجر */
.bz-body .bz-bulk-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--bz-surface); border: 1px solid var(--bz-border);
    border-radius: 12px; padding: 0 12px; height: 44px;
    margin-bottom: 12px;
}
.bz-body .bz-bulk-search-ic { color: var(--bz-muted); display: inline-flex; }
.bz-body .bz-bulk-search-ic svg { width: 18px; height: 18px; }
.bz-body .bz-bulk-search input {
    flex: 1; border: 0; outline: none; background: transparent;
    font-size: 15px; color: var(--bz-text); font-family: inherit;
}
.bz-body .bz-bulk-search-spin { display: inline-flex; }

.bz-body .bz-bulk-sellers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bz-body .bz-bulk-seller {
    display: flex; align-items: center; gap: 12px; padding: 10px;
    background: var(--bz-surface); border: 1px solid var(--bz-border);
    border-radius: 12px; cursor: pointer;
}
.bz-body .bz-bulk-seller:active { background: var(--bz-surface-alt); }
.bz-body .bz-bulk-seller-avatar {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    background: var(--bz-surface-alt); flex: 0 0 auto;
}
.bz-body .bz-bulk-seller-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bz-body .bz-bulk-seller-name { color: var(--bz-text); font-weight: 700; font-size: 15px; }
.bz-body .bz-bulk-seller-meta { color: var(--bz-muted); font-size: 12px; }
.bz-body .bz-bulk-seller-go { color: var(--bz-muted); display: inline-flex; }
.bz-body .bz-bulk-seller-go svg { width: 18px; height: 18px; }

.bz-body .bz-bulk-empty {
    color: var(--bz-muted); text-align: center;
    padding: 40px 20px; font-size: 14px;
}

/* منطقة رفع الصور */
.bz-body .bz-bulk-upload {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 12px;
    border-bottom: 1px solid var(--bz-border);
    margin: -12px -12px 12px;
    background: var(--bz-surface);
}
.bz-body .bz-bulk-upload .bz-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 24px;
    font-weight: 800; font-size: 15px;
}
.bz-body .bz-bulk-upload .bz-btn-primary svg { width: 20px; height: 20px; }
.bz-body .bz-bulk-progress { display: inline-flex; align-items: center; gap: 8px; color: var(--bz-text); font-weight: 700; }
.bz-body .bz-bulk-hint { color: var(--bz-muted); font-size: 12px; margin: 0; }

.bz-body .bz-bulk-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    margin-bottom: 12px;
}
.bz-body .bz-bulk-thumb {
    position: relative; aspect-ratio: 1;
    background: var(--bz-surface-alt); border-radius: 10px; overflow: hidden;
}
.bz-body .bz-bulk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bz-body .bz-bulk-thumb-del {
    position: absolute; top: 4px; inset-inline-start: 4px;
    background: rgba(0, 0, 0, 0.6); color: #fff;
    border: 0; border-radius: 11px;
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
}
.bz-body .bz-bulk-thumb-del svg { width: 14px; height: 14px; }
.bz-body .bz-bulk-grid-empty { padding: 24px 12px; }

/* بطاقات التفاصيل */
.bz-body .bz-bulk-cards { display: flex; flex-direction: column; gap: 12px; }
.bz-body .bz-bulk-card {
    background: var(--bz-surface); border: 1px solid var(--bz-border);
    border-radius: 14px; padding: 10px;
}
.bz-body .bz-bulk-card-head { display: flex; gap: 10px; }
.bz-body .bz-bulk-card-thumb {
    width: 76px; height: 76px; border-radius: 10px;
    object-fit: cover; background: var(--bz-surface-alt); flex: 0 0 auto;
}
.bz-body .bz-bulk-card-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bz-body .bz-bulk-card-row { display: flex; gap: 8px; }
.bz-body .bz-bulk-card input,
.bz-body .bz-bulk-card textarea {
    background: var(--bz-bg); border: 1px solid var(--bz-border);
    border-radius: 10px; padding: 9px 12px; font-size: 14px;
    color: var(--bz-text); font-family: inherit; width: 100%;
    outline: none;
}
.bz-body .bz-bulk-card input:focus,
.bz-body .bz-bulk-card textarea:focus { border-color: var(--bz-accent); }
.bz-body .bz-bulk-card-row input { flex: 1; min-width: 0; }
.bz-body .bz-bulk-card textarea { margin-top: 8px; min-height: 60px; resize: vertical; }
.bz-body .bz-bulk-card-del {
    display: inline-flex; align-items: center; gap: 4px;
    background: transparent; border: 0; padding: 4px;
    color: var(--bz-like); font-size: 13px; font-weight: 700;
    margin-top: 8px;
}
.bz-body .bz-bulk-card-del svg { width: 15px; height: 15px; }

/* الفوتر الثابت — فوق شريط التنقل السفلي (bz-bottomnav: 72px + safe-area) */
.bz-body .bz-bulk-footer {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    inset-inline: 0;
    max-width: 680px; margin: 0 auto;
    background: var(--bz-surface);
    border-top: 1px solid var(--bz-border);
    padding: 12px;
    z-index: 61; /* أعلى من bz-bottomnav (60) */
}
.bz-body .bz-bulk-step-3 .bz-bulk-footer,
.bz-body .bz-bulk-step-2 .bz-bulk-footer { display: block; }
.bz-body .bz-bulk-step-1 .bz-bulk-footer { display: none; }
.bz-body .bz-bulk-footer .bz-btn-block { padding: 14px; font-size: 16px; font-weight: 800; }
.bz-body .bz-bulk-footer .bz-btn-block:disabled { opacity: 0.5; }
.bz-body .bz-bulk-footer-hint { color: var(--bz-muted); font-size: 11px; text-align: center; margin: 6px 0 0; }

/* دوّار خفيف مشترك */
.bz-body .bz-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid var(--bz-surface-alt); border-top-color: var(--bz-accent);
    border-radius: 50%; animation: bz-spin 0.8s linear infinite;
}
@keyframes bz-spin { to { transform: rotate(360deg); } }

/* زر تعديل داخل شريط الريل (بجانب like/share) */
.bz-body .bz-slide-actions .bz-edit { color: #fff; }
.bz-body .bz-slide-actions .bz-edit svg { width: 26px; height: 26px; }

/* زر حذف داخل رأس نموذج التعديل */
.bz-body .bz-subhead-action {
    position: absolute; top: 50%; inset-inline-end: 10px; transform: translateY(-50%);
    margin: 0;
}
.bz-body .bz-btn-icon {
    background: transparent; border: 0; padding: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bz-text);
}
.bz-body .bz-btn-icon.bz-btn-danger { color: var(--bz-like); }
.bz-body .bz-btn-icon svg { width: 22px; height: 22px; }
.bz-body .bz-subhead-center { position: relative; }

