/* ═══════════════════════════════════════════════════════════
   BranZar v9.10.8 — Styles (Mobile App Optimized)
   ✅ Premium Compact Account Modal
   ✅ Clean Header (شعار + بحث + سلة فقط — بدون زر حساب)
   ✅ Hero Slider (5 صور تتحرك تلقائياً)
   ✅ بطاقات متاجر محسّنة + صورة بروفايل كبيرة وواضحة
   ✅ Bottom Nav متناسق (5 أزرار)
   ✅ أيقونة تاج SVG احترافية للاشتراكات (بدون إيموجي)
   ✅ 🆕 شريط السوشيال (فيسبوك/تيك توك/إنستغرام/بريد) في حسابي
   ═══════════════════════════════════════════════════════════ */

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-bar-h: 50px;
  --search-bar-h: 42px;
  --bottom-nav-h: 60px;
  --c-bg: #F8FAFC;
  --c-surface: #FFFFFF;
  --c-surface-2: #F1F5F9;
  --c-text: #0F172A;
  --c-text-soft: #64748B;
  --c-border: #E2E8F0;
  --c-primary: #FF7A00;
  --c-primary-dark: #E06B00;
  --c-primary-soft: #FFF7ED;
  --c-secondary: #1E40AF;
  --c-secondary-soft: #DBEAFE;
}

body.theme-dark {
  --c-bg: #0F172A;
  --c-surface: #1E293B;
  --c-surface-2: #334155;
  --c-text: #F1F5F9;
  --c-text-soft: #94A3B8;
  --c-border: #334155;
  --c-primary-soft: #3B2410;
  --c-secondary-soft: #1E3A8A;
}

/* ═══ BASE ═══ */
* {
  font-family: 'Cairo', sans-serif;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 8px);
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
}
body.modal-open { overflow: hidden; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,122,0,0.3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #FF7A00; }

.bzr-container { max-width: 1400px; margin: 0 auto; padding: 0 12px; }
.hidden { display: none !important; }

/* ═══ DARK THEME OVERRIDES ═══ */
body.theme-dark .bzr-app-bar { background: rgba(15,23,42,0.85); border-color: rgba(255,255,255,0.06); }
body.theme-dark #bzrBottomNav { background: rgba(15,23,42,0.94); border-color: rgba(255,255,255,0.06); }
body.theme-dark .bzr-search-bar-wrap { background: rgba(15,23,42,0.9); border-color: rgba(255,255,255,0.06); }
body.theme-dark .icon-btn { background: #334155; color: #F1F5F9; }
body.theme-dark .chip { background: #1E293B; border-color: #334155; color: #CBD5E1; }
body.theme-dark .store-card,
body.theme-dark .product-card,
body.theme-dark .store-product-card { background: var(--c-surface); border-color: var(--c-border); }
body.theme-dark #cartSidebar { background: var(--c-surface); }
body.theme-dark #cartSidebar > div { background: var(--c-surface) !important; border-color: var(--c-border) !important; }
body.theme-dark .fullscreen-modal .modal-content { background: var(--c-surface); }
body.theme-dark .product-modal .product-modal-content { background: var(--c-surface); }
body.theme-dark .product-modal-image-wrapper { background: var(--c-surface-2); border-color: var(--c-border); }
body.theme-dark .store-info-card { background: var(--c-surface); }
body.theme-dark .store-meta-category { background: var(--c-secondary-soft); color: #93C5FD; }
body.theme-dark .scroll-btn { background: #1E293B; border-color: #334155; color: #CBD5E1; }
body.theme-dark #toast { background: #F1F5F9; color: #0F172A; }
body.theme-dark .notif-btn-dismiss { background: #334155; color: #CBD5E1; }
body.theme-dark .followed-store-name { color: #F1F5F9; }
body.theme-dark #bzrSplash { background: linear-gradient(160deg, #0F172A 0%, #1E293B 55%, #3B2410 100%); }
body.theme-dark .bzr-splash-logo { background: #1E293B; }
body.theme-dark .bzr-cart-badge { border-color: #1E293B; }

body.theme-dark .store-cat-tab { background: #334155; border-color: #475569; color: #CBD5E1; }
body.theme-dark .store-cat-tab.main-tab { background: #3B2410; border-color: #FF7A00; color: #FF7A00; }
body.theme-dark .store-cat-tab.main-tab.active { background: linear-gradient(135deg, #FF7A00, #FFA64D); color: #fff; }
body.theme-dark .store-cat-tab.locked { background: #1E293B; border-color: #334155; color: #64748B; }
body.theme-dark .product-store-row { background: #3B2410; border-color: #5C3A1A; color: #FFA64D; }

/* ═══ SPLASH ═══ */
#bzrSplash {
  position: fixed; inset: 0; z-index: 2147483647;
  background: linear-gradient(160deg, #FFFFFF 0%, #FFF7ED 55%, #FFEDD5 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#bzrSplash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.bzr-splash-logo {
  width: 120px; height: 120px; border-radius: 50%; background: #fff; padding: 8px;
  box-shadow: 0 20px 60px rgba(255,122,0,0.4), 0 0 0 8px rgba(255,122,0,0.08);
  animation: bzrLogoPulse 2s ease-in-out infinite;
}
@media (max-width: 380px) { .bzr-splash-logo { width: 100px; height: 100px; } }
@keyframes bzrLogoPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.bzr-splash-title { margin-top: 1.2rem; font-size: 1.3rem; font-weight: 900; color: var(--c-text); }
.bzr-splash-title span { color: #FF7A00; }
.bzr-splash-subtitle { margin-top: 0.25rem; font-size: 0.8rem; color: var(--c-text-soft); font-weight: 600; }
.bzr-splash-loader {
  margin-top: 1.5rem; width: 120px; height: 3px; border-radius: 3px;
  background: rgba(255,122,0,0.15); overflow: hidden; position: relative;
}
.bzr-splash-loader::after {
  content: ''; position: absolute; top: 0; right: 0; height: 100%; width: 40%;
  background: linear-gradient(90deg, #FF7A00, #FFA64D); border-radius: 3px;
  animation: bzrLoad 1.2s ease-in-out infinite;
}
@keyframes bzrLoad {
  0% { right: 100%; width: 40%; }
  50% { right: 30%; width: 40%; }
  100% { right: -40%; width: 40%; }
}

/* ═══ APP BAR ═══ */
.bzr-app-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-border);
  padding-top: var(--safe-top);
}
.bzr-app-bar-inner {
  height: var(--app-bar-h); max-width: 1400px; margin: 0 auto; padding: 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  position: relative;
}
.bzr-logo-btn {
  background: transparent; border: none; padding: 0;
  display: flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0;
}
.bzr-logo-circle {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 3px 10px rgba(255,122,0,0.2);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@media (max-width: 380px) { .bzr-logo-circle { width: 38px; height: 38px; } }
.bzr-logo-btn:active .bzr-logo-circle { transform: scale(0.92); }
.bzr-logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.bzr-brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.bzr-brand-text strong { font-size: 0.95rem; font-weight: 900; color: var(--c-text); }
.bzr-brand-text small { font-size: 0.6rem; font-weight: 700; color: #FF7A00; letter-spacing: 0.5px; }
@media (max-width: 400px) { .bzr-brand-text { display: none; } }
.bzr-app-actions { display: flex; align-items: center; gap: 8px; }

/* إخفاء أي زر حساب قديم في الهيدر */
.bzr-account-btn,
#accountBtn,
#openAccountBtn {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* زر البحث الزجاجي في المنتصف */
.bzr-search-icon-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 170px));
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 13px;
  border: 1.5px solid rgba(255, 122, 0, 0.22);
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.07);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 2px 10px -4px rgba(255, 122, 0, 0.22);
  color: var(--c-text-soft);
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bzr-search-icon-btn::after {
  content: 'ابحث عن منتج، متجر أو علامة تجارية...';
  flex: 1;
  text-align: right;
  direction: rtl;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-soft);
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.bzr-search-icon-btn svg.mi,
.bzr-search-icon-btn .mi {
  width: 18px;
  height: 18px;
  color: #FF7A00;
  flex-shrink: 0;
}
.bzr-search-icon-btn:hover {
  border-color: rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 6px 18px -6px rgba(255, 122, 0, 0.45);
}
.bzr-search-icon-btn:active { transform: translate(-50%, -50%) scale(0.97); }
.bzr-search-icon-btn:focus-visible { outline: 3px solid rgba(255, 122, 0, 0.32); outline-offset: 3px; }

body.theme-dark .bzr-search-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 10px -4px rgba(0, 0, 0, 0.4);
}
body.theme-dark .bzr-search-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 122, 0, 0.45);
}
body.theme-dark .bzr-search-icon-btn::after { color: #CBD5E1; }

@media (max-width: 480px) {
  .bzr-search-icon-btn {
    width: min(340px, calc(100% - 128px));
    height: 36px;
    padding: 0 10px;
    border-radius: 11px;
  }
  .bzr-search-icon-btn::after { font-size: 0.72rem; }
  .bzr-search-icon-btn svg.mi,
  .bzr-search-icon-btn .mi { width: 16px; height: 16px; }
}
@media (max-width: 360px) {
  .bzr-search-icon-btn::after {
    content: 'ابحث عن منتج أو متجر...';
    font-size: 0.68rem;
  }
}

/* أيقونات عامة */
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-surface-2); border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-soft); font-size: 0.95rem; cursor: pointer;
  position: relative; transition: background 0.2s, color 0.2s, transform 0.15s;
  overflow: hidden;
}
.icon-btn:active { transform: scale(0.9); }

.view-toggle-pill {
  display: inline-flex; align-items: center;
  background: var(--c-surface-2); border-radius: 9999px;
  padding: 3px; gap: 2px; height: 36px;
}
.view-toggle-pill button {
  width: 32px; height: 30px; border-radius: 9999px; border: none;
  background: transparent; color: var(--c-text-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.view-toggle-pill button.active {
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  color: #fff;
  box-shadow: 0 3px 10px -3px rgba(255,122,0,0.6);
}
.view-toggle-pill button:active { transform: scale(0.88); }

.bzr-cart-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #FF7A00 0%, #FFA64D 100%);
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; position: relative;
  box-shadow: 0 4px 14px -4px rgba(255,122,0,0.75);
  transition: transform 0.25s, box-shadow 0.25s;
}
.bzr-cart-btn:hover { transform: translateY(-1px); }
.bzr-cart-btn:active { transform: scale(0.92); }
.bzr-cart-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: #EF4444; color: #fff; border-radius: 9999px;
  font-size: 0.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(239,68,68,0.5);
}
@keyframes cartBounce {
  0% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.15) rotate(-8deg); }
  50% { transform: scale(1.2) rotate(8deg); }
  75% { transform: scale(1.15) rotate(-4deg); }
  100% { transform: scale(1) rotate(0); }
}
.bzr-cart-btn.bounce { animation: cartBounce 0.6s ease; }

/* ═══ SEARCH ═══ */
.bzr-search-bar-wrap {
  position: sticky; top: calc(var(--safe-top) + var(--app-bar-h));
  z-index: 95;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-border);
  padding: 2px 0;
}
.bzr-search-inner { max-width: 1400px; margin: 0 auto; padding: 0 10px; }
.bzr-search-input {
  display: flex; align-items: center; gap: 8px;
  background: var(--c-surface-2); border: 1.5px solid transparent;
  border-radius: 13px; padding: 0 12px;
  min-height: 38px; height: 38px;
  transition: all 0.25s ease;
}
.bzr-search-input:focus-within {
  border-color: #FF7A00;
  background: var(--c-surface);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.12);
}
.bzr-search-input svg.mi { color: var(--c-text-soft); }
.bzr-search-input input {
  flex: 1; min-width: 0; border: none; background: transparent;
  outline: none; font-size: 0.84rem; color: var(--c-text); font-weight: 600;
}
.bzr-search-input input::placeholder { color: var(--c-text-soft); font-weight: 500; }
.bzr-search-input .search-clear {
  width: 24px; height: 24px; border-radius: 50%;
  background: transparent; border: none; color: var(--c-text-soft);
  cursor: pointer; display: none; align-items: center; justify-content: center;
}
.bzr-search-input.has-value .search-clear { display: inline-flex; }

/* Search Overlay (نسخة inline) */
.bzr-search-overlay {
  position: fixed; inset: 0;
  z-index: 2500;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  animation: fadeIn 0.2s ease;
  padding-top: calc(var(--safe-top) + 8px);
}
.bzr-search-overlay.hidden { display: none; }
.bzr-search-overlay-head {
  display: flex; align-items: center; gap: 8px;
  max-width: 720px; width: 100%;
  margin: 0 auto; padding: 10px 12px;
}
.bzr-search-overlay-head .bzr-search-input {
  flex: 1;
  background: var(--c-surface);
  min-height: 46px; height: 46px;
  border-radius: 14px;
}
.bzr-search-close-btn {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.bzr-search-close-btn:hover { background: #FF7A00; color: #fff; border-color: #FF7A00; }
.bzr-search-close-btn:active { transform: scale(0.94); }

.bzr-search-results-inline {
  flex: 1;
  max-width: 720px; width: 100%;
  margin: 0 auto;
  padding: 0 12px 20px;
  overflow-y: auto;
}

.bzr-search-results {
  position: fixed;
  top: calc(var(--safe-top) + var(--app-bar-h) + var(--search-bar-h) + 10px);
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 600px;
  max-height: 60vh;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 18px; padding: 0.8rem;
  overflow-y: auto;
  box-shadow: 0 15px 50px rgba(15,23,42,0.2);
  z-index: 200; display: none;
  animation: dropdownIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.bzr-search-results.show { display: block; }

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAV — 5 عناصر متناسقة (Fixed)
   ═══════════════════════════════════════════════════════════ */
#bzrBottomNav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--c-border);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -2px 12px rgba(15,23,42,0.05);
}

.bzr-nav-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--bottom-nav-h);
  max-width: 680px;
  margin: 0 auto;
  padding: 0 4px;
}

.bzr-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  line-height: 1;
  transition: color 0.25s ease, transform 0.2s ease;
  padding: 0;
  overflow: visible;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.bzr-nav-item > svg,
.bzr-nav-item > .mi {
  width: 22px;
  height: 22px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.bzr-nav-item > span:not(.bzr-nav-badge):not(.bzr-nav-offers-icon) {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.bzr-nav-item.active { color: #FF7A00; }
.bzr-nav-item.active > svg,
.bzr-nav-item.active > .mi { transform: translateY(-2px) scale(1.1); }
.bzr-nav-item.active::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 50%;
  transform: translateX(50%);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #FF7A00, #FFA64D);
}

.bzr-nav-item:active > svg,
.bzr-nav-item:active > .mi { transform: scale(0.85); }

.bzr-nav-item .bzr-nav-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 16px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #EF4444;
  color: #fff;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(239,68,68,0.35);
}

/* ═══════════════════════════════════════════════════════════
   👑 زر الاشتراكات — أيقونة تاج SVG احترافية
   ═══════════════════════════════════════════════════════════ */
.bzr-nav-item.bzr-nav-offers { color: #94A3B8; }
.bzr-nav-item.bzr-nav-offers:hover { color: #FF7A00; }

.bzr-nav-item.bzr-nav-offers .bzr-nav-offers-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: currentColor;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
}

.bzr-nav-item.bzr-nav-offers .bzr-nav-offers-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
  stroke: none;
  transition: filter 0.25s ease;
}

.bzr-nav-item.bzr-nav-offers:hover .bzr-nav-offers-icon {
  filter: drop-shadow(0 2px 4px rgba(255, 122, 0, 0.45));
}

.bzr-nav-item.bzr-nav-offers:active .bzr-nav-offers-icon {
  transform: scale(0.85);
}

.bzr-nav-item.bzr-nav-offers.active .bzr-nav-offers-icon {
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 3px 6px rgba(255, 122, 0, 0.55));
}

body.theme-dark .bzr-nav-item { color: #64748B; }
body.theme-dark .bzr-nav-item.active { color: #FF7A00; }
body.theme-dark .bzr-nav-item .bzr-nav-badge { border-color: #0F172A; }
body.theme-dark .bzr-nav-item.bzr-nav-offers { color: #64748B; }
body.theme-dark .bzr-nav-item.bzr-nav-offers:hover,
body.theme-dark .bzr-nav-item.bzr-nav-offers.active { color: #FF7A00; }

@media (max-width: 360px) {
  .bzr-nav-list { padding: 0 2px; }
  .bzr-nav-item > svg,
  .bzr-nav-item > .mi,
  .bzr-nav-item.bzr-nav-offers .bzr-nav-offers-icon {
    width: 20px;
    height: 20px;
  }
  .bzr-nav-item > span:not(.bzr-nav-badge):not(.bzr-nav-offers-icon) {
    font-size: 0.6rem;
  }
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  background: linear-gradient(135deg, #FF7A00 0%, #FFA64D 100%);
  color: #fff; font-weight: 800; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 16px -4px rgba(255,122,0,0.6);
  position: relative; overflow: hidden;
  padding: 0.7rem 1.1rem; border-radius: 12px; font-size: 0.88rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-whatsapp {
  background: linear-gradient(135deg,#25D366,#128C7E);
  color: #fff; border: none; cursor: pointer;
  padding: 0.8rem; border-radius: 14px;
  font-weight: 800; font-size: 0.88rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px -4px rgba(37,211,102,0.6);
  width: 100%;
}
.btn-ghost {
  width: 100%; padding: 0.8rem; border-radius: 14px; font-size: 0.88rem;
  background: var(--c-surface-2); color: var(--c-text);
  border: 1.5px solid var(--c-border); font-weight: 800; cursor: pointer;
}
.ripple { position: relative; overflow: hidden; }
.ripple::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.5) 0%, transparent 60%);
  transform: scale(0); opacity: 0; pointer-events: none;
}
.ripple.animate::after { animation: rippleAnim 0.6s ease; }
@keyframes rippleAnim {
  from { transform: scale(0); opacity: 0.7; }
  to { transform: scale(2); opacity: 0; }
}

/* ═══ SECTIONS ═══ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.section-title-group { display: flex; align-items: center; gap: 8px; }
.section-icon-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg,#FF7A00,#FFA64D);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem;
  box-shadow: 0 4px 12px -4px rgba(255,122,0,0.6);
}
.section-title { font-size: 1rem; font-weight: 900; color: var(--c-text); margin: 0; }
.section-title-lg { font-size: clamp(1.1rem,3vw,1.4rem); font-weight: 900; color: var(--c-text); margin: 0; }
.section-title-md { font-size: clamp(1rem,2.5vw,1.2rem); font-weight: 900; color: var(--c-text); margin: 0; }
.section-subtitle { font-size: 0.7rem; color: var(--c-text-soft); margin: 2px 0 0; font-weight: 600; }
.section-header-flex {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 6px; gap: 0.5rem; flex-wrap: wrap;
}

.followed-section { padding: 4px 0 6px; }
.stores-section { padding: 4px 0 6px; }
.categories-section { padding: 2px 0 6px; }
.products-section { padding: 10px 0 18px; }

.badge-soft {
  font-size: 0.68rem; font-weight: 800;
  background: var(--c-primary-soft); color: #FF7A00;
  border: 1px solid #FFE0BD;
  padding: 0.25rem 0.6rem; border-radius: 9999px;
}
.nav-buttons { display: flex; gap: 6px; }

/* ═══ LOADER / EMPTY ═══ */
.loader { text-align: center; padding: 2rem 0; }
.loader svg.mi-spin {
  color: #FF7A00; display: block; margin: 0 auto 0.5rem;
  width: 28px; height: 28px;
}
.loader p { color: var(--c-text-soft); font-weight: 600; margin: 0; font-size: 0.85rem; }
.empty-state { text-align: center; padding: 2rem 0; }
.empty-state svg.mi {
  color: #CBD5E1; margin-bottom: 0.5rem;
  display: block; margin-inline: auto;
}
.empty-state p { color: var(--c-text-soft); font-weight: 600; margin: 0 0 1rem; font-size: 0.85rem; }
.load-more-wrap { text-align: center; margin-top: 1.2rem; }
.load-more-btn {
  background: var(--c-surface); color: #FF7A00;
  border: 2px solid #FF7A00;
  padding: 0.7rem 1.8rem; border-radius: 9999px;
  font-weight: 800; font-size: 0.88rem; cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  display: inline-flex; align-items: center; gap: 8px;
}
.load-more-btn:hover { background: #FF7A00; color: #fff; transform: translateY(-2px); }
.load-more-btn:active { transform: scale(0.95); }
.load-more-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.load-more-btn.hidden { display: none; }

/* ═══ SCROLL AREAS ═══ */
.scroll-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--c-text-soft);
  transition: all 0.25s;
}
.scroll-btn:hover { background: #FF7A00; color: #fff; border-color: #FF7A00; transform: scale(1.08); }
.scroll-btn:active { transform: scale(0.92); }

.stores-scroll-container {
  overflow-x: auto; overflow-y: hidden;
  display: flex; gap: 8px; padding-bottom: 4px;
  scrollbar-width: thin; direction: ltr;
  -webkit-overflow-scrolling: touch; scroll-behavior: auto;
}
.stores-scroll-container > * { direction: rtl; }
.stores-scroll-container::-webkit-scrollbar { height: 4px; }
.stores-scroll-container::-webkit-scrollbar-thumb { background: #FF7A00; border-radius: 4px; }

.categories-scroll-container {
  overflow-x: auto; overflow-y: hidden;
  display: flex; gap: 5px; padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  direction: ltr; scroll-behavior: auto;
}
.categories-scroll-container > * { direction: rtl; }
.categories-scroll-container::-webkit-scrollbar { display: none; }

.followed-scroll-container {
  overflow-x: auto; overflow-y: hidden;
  display: flex; gap: 8px; padding: 4px 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.followed-scroll-container::-webkit-scrollbar { display: none; }

.chip {
  padding: 0.4rem 0.85rem; border-radius: 9999px;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  font-weight: 700; font-size: 0.8rem; color: var(--c-text-soft);
  white-space: nowrap; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}
.chip:hover {
  border-color: #FF7A00; color: #FF7A00;
  background: var(--c-primary-soft);
  transform: translateY(-1px);
}
.chip:active { transform: scale(0.95); }
.chip.active {
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  color: #fff; border-color: #FF7A00;
  box-shadow: 0 4px 12px -4px rgba(255,122,0,0.6);
}

/* ═══════════════════════════════════════════════════════════
   STORE CARD — بطاقة كبيرة + صورة بروفايل واضحة
   ═══════════════════════════════════════════════════════════ */
.store-card {
  width: 210px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 3px 12px rgba(15,23,42,0.06);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(255,122,0,0.15);
  border-color: #FFE0BD;
}
.store-card:active { transform: translateY(-1px) scale(0.98); }

.store-card .cover-image {
  height: 100px; width: 100%;
  object-fit: cover; display: block;
  border-radius: 18px 18px 0 0;
  background: var(--c-surface-2);
}

.store-card .store-logo {
  width: 72px; height: 72px; border-radius: 50%;
  border: 4px solid var(--c-surface);
  object-fit: cover;
  margin-top: -36px;
  margin-right: 12px;
  position: relative;
  z-index: 2;
  background: var(--c-surface);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15), 0 0 0 2.5px rgba(255, 122, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.store-card:hover .store-logo {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.28), 0 0 0 3px rgba(255, 122, 0, 0.28);
}

.store-card .store-info { padding: 4px 12px 12px; text-align: right; }
.store-card .store-name {
  font-weight: 900; font-size: 0.92rem; color: var(--c-text);
  display: flex; align-items: center; gap: 4px;
  margin-top: 4px; line-height: 1.2;
}
.store-card .store-category {
  color: var(--c-text-soft); font-size: 0.74rem;
  margin-top: 2px; line-height: 1.2;
}

body.theme-dark .store-card .store-logo {
  border-color: var(--c-surface);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 2.5px rgba(255, 122, 0, 0.25);
}

@media (min-width: 640px) {
  .store-card { width: 240px; border-radius: 20px; }
  .store-card .cover-image { height: 115px; border-radius: 20px 20px 0 0; }
  .store-card .store-logo {
    width: 86px; height: 86px;
    margin-top: -43px; border-width: 4px;
  }
  .store-card .store-name { font-size: 1rem; }
  .store-card .store-category { font-size: 0.78rem; }
}
@media (min-width: 1024px) {
  .store-card { width: 260px; }
  .store-card .cover-image { height: 125px; }
  .store-card .store-logo { width: 96px; height: 96px; margin-top: -48px; }
}

@media (max-width: 480px) {
  .store-card { width: clamp(175px, 52vw, 200px) !important; border-radius: 16px; }
  .store-card .cover-image { height: 82px !important; border-radius: 16px 16px 0 0 !important; }
  .store-card .store-logo {
    width: 64px !important; height: 64px !important;
    margin-top: -32px !important;
    margin-right: 10px !important;
    border: 3.5px solid var(--c-surface) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18), 0 0 0 2px rgba(255, 122, 0, 0.2) !important;
  }
  .store-card .store-info { padding: 2px 10px 10px !important; }
  .store-card .store-name { font-size: 0.84rem !important; margin-top: 3px !important; }
  .store-card .store-category { font-size: 0.68rem !important; }
  .stores-scroll-container { gap: 8px !important; padding-bottom: 3px !important; }
}
@media (max-width: 360px) {
  .store-card { width: 165px !important; }
  .store-card .cover-image { height: 72px !important; }
  .store-card .store-logo { width: 58px !important; height: 58px !important; margin-top: -29px !important; }
  .store-card .store-name { font-size: 0.8rem !important; }
}

.verified-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(24, 119, 242, 0.4));
}
.verified-icon svg { width: 100%; height: 100%; display: block; }

/* ═══ PRODUCT CARDS ═══ */
#allProductsGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-top: 8px;
}
@media (min-width: 640px) { #allProductsGrid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1024px) { #allProductsGrid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255,122,0,0.12);
  border-color: #FFE0BD;
}
.product-card:active { transform: translateY(-1px) scale(0.98); }
.product-image-container {
  background: var(--c-surface-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; height: 120px;
}
@media (min-width: 640px) { .product-image-container { height: 150px; } }
.product-image-container img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.3s ease; padding: 6px;
}
.product-card:hover .product-image-container img { transform: scale(1.05); }

/* ═══ MODALS ═══ */
.fullscreen-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.25s ease;
}
.fullscreen-modal.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fullscreen-modal .modal-content {
  width: 100%; height: 100%;
  background: var(--c-surface); overflow-y: auto;
  display: flex; flex-direction: column;
  -webkit-overflow-scrolling: touch;
  animation: modalSlideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.product-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}
.product-modal.hidden { display: none; }
.product-modal .product-modal-content {
  background: var(--c-surface); border-radius: 20px;
  max-width: 600px; width: 100%; max-height: 92vh;
  overflow-y: auto; padding: 1rem;
  animation: zoomIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close { position: absolute; top: 10px; left: 10px; z-index: 10; }
.product-modal-grid { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .product-modal-grid { flex-direction: row; } }
.product-modal-left { width: 100%; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 768px) { .product-modal-left { width: 50%; } }
.product-modal-right { display: flex; flex-direction: column; width: 100%; }
@media (min-width: 768px) { .product-modal-right { width: 50%; } }
.product-modal-image-wrapper {
  width: 100%; height: 280px;
  background: var(--c-surface-2);
  border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem; border: 1px solid var(--c-border); position: relative;
}
@media (min-width: 640px) { .product-modal-image-wrapper { height: 380px; } }
#productModalImage {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.colors-container {
  margin-top: 0.8rem; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.colors-label { display: flex; align-items: center; gap: 6px; margin-bottom: 0.5rem; }
.colors-label > span:first-child { font-size: 0.8rem; font-weight: 700; color: var(--c-text-soft); }
.color-name-badge {
  font-size: 0.8rem; font-weight: 800; color: #FF7A00;
  background: var(--c-primary-soft); padding: 3px 10px;
  border-radius: 9999px; border: 1px solid #FFE0BD;
}
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.color-swatch {
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; border: 2.5px solid var(--c-border);
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(15,23,42,0.08);
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active {
  border-color: #FF7A00;
  box-shadow: 0 0 0 3px rgba(255,122,0,0.25);
  transform: scale(1.15);
}
.color-swatch.active::after {
  content: ''; width: 14px; height: 14px;
  background: rgba(255,255,255,0.95); border-radius: 50%;
}
.color-swatch.active.light-color::after { background: rgba(15,23,42,0.85); }
.card-color-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,0.2);
}
#productModalName { font-size: 1.15rem; font-weight: 900; margin: 0 0 0.4rem; color: var(--c-text); }
.price-current { font-size: 1.3rem; font-weight: 900; color: #FF7A00; }
.price-original { font-size: 0.95rem; text-decoration: line-through; color: var(--c-text-soft); font-weight: 700; }
.product-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 0.8rem; flex-wrap: wrap; }
.product-actions { display: flex; flex-direction: column; gap: 8px; }

.product-store-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 800; color: #FF7A00;
  margin-bottom: 0.8rem; padding: 0.4rem 0.75rem;
  background: var(--c-primary-soft);
  border-radius: 10px; border: 1px solid #FFE0BD;
  width: fit-content; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-store-row svg.mi { flex-shrink: 0; }
.product-store-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══ CART ═══ */
#cartSidebar {
  position: fixed; top: 0; left: 0; height: 100%;
  width: 100%; max-width: 400px;
  background: var(--c-surface); z-index: 1500;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  display: flex; flex-direction: column;
  box-shadow: -4px 0 25px rgba(15,23,42,0.15);
}
#cartSidebar.open { transform: translateX(0); }
#cartSidebar .cart-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px); z-index: -1;
}
#cartSidebar.open .cart-overlay { display: block; animation: fadeIn 0.3s ease; }
@media (max-width: 640px) { #cartSidebar { max-width: 90%; } }

.cart-header {
  padding: 1rem; border-bottom: 1px solid var(--c-border);
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.cart-header-title { display: flex; align-items: center; gap: 8px; }
.cart-icon-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg,#FF7A00,#FFA64D);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.cart-header h2 { font-size: 1rem; font-weight: 900; margin: 0; color: var(--c-text); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.8rem; }
.cart-footer { padding: 1rem; border-top: 1px solid var(--c-border); flex-shrink: 0; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1rem; margin-bottom: 0.8rem; }
.cart-total span:first-child { color: var(--c-text); }
.cart-total span:last-child { color: #FF7A00; }
.cart-item-image {
  width: 55px; height: 55px; object-fit: contain;
  background: var(--c-surface-2); border-radius: 10px;
  flex-shrink: 0; padding: 4px;
}

/* ═══ STORE DETAIL ═══ */
.store-cover-wrap {
  position: relative; width: 100%; height: 180px;
  flex-shrink: 0; overflow: hidden; background: var(--c-surface-2);
}
@media (min-width: 480px) { .store-cover-wrap { height: 220px; } }
.store-cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-close-btn {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  color: #0F172A; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15,23,42,0.15);
  transition: all 0.25s; z-index: 10;
}
.store-close-btn:active { transform: scale(0.92); }
.store-share-btn {
  position: absolute; top: 12px; left: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  color: #FF7A00; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(15,23,42,0.15);
  transition: all 0.25s; z-index: 20;
}
.store-share-btn:hover { background: #FF7A00; color: #fff; transform: scale(1.08); }
.store-info-card {
  position: relative; background: var(--c-surface);
  padding: 0 1rem 1.2rem; margin-top: -35px;
  z-index: 5; border-radius: 24px 24px 0 0;
}
@media (min-width: 640px) { .store-info-card { padding: 0 1.5rem 1.8rem; margin-top: -45px; } }
.store-header-row { display: flex; align-items: flex-end; gap: 0.75rem; padding-top: 8px; }
.store-header-logo {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--c-surface);
  object-fit: cover; background: var(--c-surface);
  box-shadow: 0 6px 18px rgba(15,23,42,0.12); flex-shrink: 0;
}
@media (min-width: 640px) { .store-header-logo { width: 96px; height: 96px; } }
.store-header-info { flex: 1; min-width: 0; padding-bottom: 4px; text-align: right; }
.store-header-name {
  font-size: 1.15rem; font-weight: 900; color: var(--c-text);
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  line-height: 1.25;
}
.store-header-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.82rem; flex-wrap: wrap; }
.store-meta-category {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--c-secondary); font-weight: 700; font-size: 0.78rem;
  background: var(--c-secondary-soft);
  padding: 0.2rem 0.6rem; border-radius: 9999px;
}
.store-desc {
  text-align: center; color: var(--c-text-soft);
  font-size: 0.88rem; line-height: 1.8;
  margin: 1rem auto 0; max-width: 600px;
}
.store-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1.1rem; }
.store-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 0.6rem; border-radius: 9999px;
  border: 2px solid #FF7A00; background: var(--c-surface);
  color: #FF7A00; font-weight: 800; font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none; white-space: nowrap; overflow: hidden;
}
.store-action-btn:hover { background: var(--c-primary-soft); transform: translateY(-1px); }
.store-action-btn:active { transform: scale(0.96); }
.store-action-btn.primary {
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  color: #fff; border-color: #FF7A00;
}
.store-action-btn.primary.following { background: var(--c-surface); color: #FF7A00; }
.store-action-btn.static { cursor: default; pointer-events: none; }
.store-action-btn .icon-circle {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
}

/* زر المتابعة */
#storeFollowButton.following .mi-follow-heart { display: none !important; }
#storeFollowButton.following .mi-follow-check { display: inline-block !important; }
#storeFollowButton:not(.following) .mi-follow-check { display: none !important; }
.mi-follow-check { display: none; }

/* ═══ STORE CATEGORIES TABS ═══ */
.store-categories-tabs {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  padding: 14px 2px 4px; margin-top: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  direction: rtl;
}
.store-categories-tabs::-webkit-scrollbar { display: none; }
.store-categories-tabs:empty { display: none; }

.store-cat-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 9999px;
  background: var(--c-surface-2); border: 1.5px solid var(--c-border);
  font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 0.82rem;
  color: var(--c-text-soft); white-space: nowrap; cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; line-height: 1;
}
.store-cat-tab svg.mi { width: 14px; height: 14px; }
.store-cat-tab:hover { transform: translateY(-1px); border-color: #FF7A00; color: #FF7A00; }
.store-cat-tab:active { transform: scale(0.95); }
.store-cat-tab.active {
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  color: #fff; border-color: #FF7A00;
  box-shadow: 0 4px 12px -4px rgba(255,122,0,0.6);
}
.store-cat-tab.locked {
  opacity: 0.72; background: var(--c-surface-2);
  color: var(--c-text-soft); border-style: dashed; cursor: pointer;
}
.store-cat-tab.locked:hover { opacity: 0.9; color: #FF7A00; border-color: #FF7A00; border-style: solid; }
.store-cat-tab.main-tab { border-color: #FF7A00; background: var(--c-primary-soft); color: #FF7A00; }
.store-cat-tab.main-tab.active { background: linear-gradient(135deg, #FF7A00, #FFA64D); color: #fff; }

/* ═══ STORE PRODUCTS ═══ */
.divider-strip { height: 8px; background: var(--c-surface-2); margin: 1rem 0; }
.store-products-section { padding: 0 1rem 1.5rem; }
.store-products-header { display: flex; align-items: center; gap: 8px; margin-bottom: 0.6rem; }
.store-products-header svg.mi { color: #FF7A00; width: 20px; height: 20px; }
.store-products-header h4 { font-size: 1rem; font-weight: 900; color: var(--c-text); margin: 0; }
.store-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem; padding-bottom: 1.2rem;
}
@media (min-width: 640px) { .store-products-grid { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; } }
@media (min-width: 1024px) { .store-products-grid { grid-template-columns: repeat(4, 1fr); } }

.store-product-card {
  position: relative; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  display: flex; flex-direction: column; cursor: pointer;
}
.store-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,122,0,0.12);
  border-color: #FFE0BD;
}
.store-product-card:active { transform: scale(0.98); }
.store-product-img-wrap {
  width: 100%; height: 120px;
  background: var(--c-surface-2);
  display: flex; align-items: center; justify-content: center;
  padding: 6px; overflow: hidden;
}
.store-product-img-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.store-product-info {
  padding: 0.5rem 0.7rem 0.8rem;
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.store-product-name {
  font-size: 0.85rem; font-weight: 800; color: var(--c-text);
  text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.store-product-price {
  font-size: 0.9rem; font-weight: 900; color: #FF7A00;
  text-align: right; margin-top: auto;
}
.store-product-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; height: 36px;
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  color: #fff; border: none; border-radius: 10px;
  font-weight: 800; font-size: 0.78rem; cursor: pointer;
  transition: all 0.25s ease;
}
.store-product-btn:active { transform: scale(0.96); }
.store-product-btn svg.mi { width: 14px; height: 14px; }
.store-product-fav {
  position: absolute; top: 8px; left: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.95); border: none;
  display: flex; align-items: center; justify-content: center;
  color: #FF7A00; cursor: pointer;
  box-shadow: 0 2px 6px rgba(15,23,42,0.1);
  transition: all 0.25s ease; z-index: 3;
}
.store-product-fav svg.mi { width: 16px; height: 16px; }
.store-product-fav.active { background: #FF7A00; color: #fff; }

/* ═══ FOLLOWED STORES ═══ */
.followed-store-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex-shrink: 0; width: 72px; cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.followed-store-item:active { transform: scale(0.92); }
.followed-store-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2.5px solid #FF7A00; background: var(--c-surface);
  padding: 2px; box-shadow: 0 3px 10px rgba(255,122,0,0.2);
  overflow: hidden;
}
.followed-store-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%; display: block; pointer-events: none;
}
.followed-store-name {
  font-size: 0.68rem; font-weight: 700; color: var(--c-text);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   ACCOUNT MODAL — Premium Compact Design
   ═══════════════════════════════════════════════════════════ */
#accountModal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: flex-end; justify-content: center;
  animation: accFadeIn 0.25s ease;
}
#accountModal.hidden { display: none; }
@keyframes accFadeIn { from { opacity: 0; } to { opacity: 1; } }

#accountModal .account-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.account-sheet {
  position: relative; background: var(--c-surface);
  border-radius: 28px 28px 0 0;
  width: 100%; max-width: 440px; max-height: 92vh;
  overflow: hidden; padding: 0;
  animation: accSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; flex-direction: column;
  box-shadow: 0 -20px 60px -15px rgba(0, 0, 0, 0.25);
}
@keyframes accSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.acc-header {
  position: relative;
  background: linear-gradient(135deg, #FF7A00 0%, #FFA64D 100%);
  padding: 18px 16px 16px;
  display: flex; align-items: center; gap: 12px;
  overflow: hidden; flex-shrink: 0;
}
.acc-header::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.acc-header::after {
  content: ''; position: absolute; bottom: -70px; left: -50px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.acc-header-close {
  position: relative; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
  backdrop-filter: blur(8px);
}
.acc-header-close:hover { background: rgba(255, 255, 255, 0.32); transform: rotate(90deg); }
.acc-header-close:active { transform: scale(0.9); }
.acc-header-close svg.mi { width: 16px; height: 16px; }

.acc-header-brand {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 0;
}
.acc-header-logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; padding: 3px; overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.22);
}
.acc-header-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.acc-header-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.acc-header-title {
  color: #fff; font-size: 1.1rem; font-weight: 900;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.acc-header-sub {
  color: rgba(255, 255, 255, 0.88); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.3px; margin-top: 2px;
}

.acc-body {
  padding: 12px 14px calc(12px + var(--safe-bottom, 0px));
  display: flex; flex-direction: column; gap: 9px;
  background: var(--c-surface); overflow: hidden;
}

.acc-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-quick-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; border-radius: 14px;
  font-weight: 800; font-size: 0.82rem; text-decoration: none;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
  font-family: inherit; padding: 0 8px; letter-spacing: -0.2px;
}
.acc-quick-btn:hover {
  border-color: #FF7A00; color: #FF7A00;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(255, 122, 0, 0.4);
}
.acc-quick-btn:active { transform: scale(0.97); }
.acc-quick-btn svg.mi { width: 14px; height: 14px; }
.acc-quick-btn.primary {
  background: linear-gradient(135deg, #FF7A00 0%, #FFA64D 100%);
  color: #fff; border-color: #FF7A00;
  box-shadow: 0 8px 20px -8px rgba(255, 122, 0, 0.65);
}
.acc-quick-btn.primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(255, 122, 0, 0.85);
}

/* ═══════════════════════════════════════════════════════════
   🌐 SOCIAL ROW — فيسبوك / تيك توك / إنستغرام / بريد
   مضغوط: يظهر كاملاً بدون الحاجة للتمرير
   ═══════════════════════════════════════════════════════════ */
.acc-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.acc-social-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #F3F4F6;
  color: #374151;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.acc-social-btn:hover,
.acc-social-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgba(15, 23, 42, 0.25);
  outline: none;
}

.acc-social-btn:active {
  transform: translateY(0) scale(0.94);
}

.acc-social-btn svg.mi {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
  fill: currentColor;
}

/* ألوان كل منصة */
.acc-social-fb {
  background: #1877F2;
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(24, 119, 242, 0.55);
}
.acc-social-fb:hover,
.acc-social-fb:focus-visible {
  background: #0f63d1;
  box-shadow: 0 10px 20px -6px rgba(24, 119, 242, 0.75);
}

.acc-social-tiktok {
  background: #111111;
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.55);
}
.acc-social-tiktok:hover,
.acc-social-tiktok:focus-visible {
  background: #000000;
  box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.75);
}

.acc-social-ig {
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(221, 42, 123, 0.55);
}
.acc-social-ig:hover,
.acc-social-ig:focus-visible {
  filter: brightness(1.1) saturate(1.08);
  box-shadow: 0 10px 22px -6px rgba(221, 42, 123, 0.8);
}

.acc-social-email {
  background: #EA4335;
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(234, 67, 53, 0.55);
}
.acc-social-email:hover,
.acc-social-email:focus-visible {
  background: #c52318;
  box-shadow: 0 10px 20px -6px rgba(234, 67, 53, 0.75);
}

/* دارك مود */
body.theme-dark .acc-social-btn {
  border-color: rgba(255, 255, 255, 0.06);
}
body.theme-dark .acc-social-fb   { background: #1877F2; color: #fff; }
body.theme-dark .acc-social-tiktok { background: #0B0B0B; color: #fff; }
body.theme-dark .acc-social-email { background: #EA4335; color: #fff; }

/* شاشات صغيرة — تصغير بسيط */
@media (max-width: 400px) {
  .acc-social-row { gap: 8px; padding: 2px 0 4px; }
  .acc-social-btn {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }
  .acc-social-btn svg.mi { width: 18px; height: 18px; }
}

@media (max-width: 340px) {
  .acc-social-row { gap: 6px; }
  .acc-social-btn {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
  }
  .acc-social-btn svg.mi { width: 16px; height: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   بقية أقسام المودال (روابط / إعدادات / فوتَر)
   ═══════════════════════════════════════════════════════════ */
.acc-section-label {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 4px 2px;
  font-size: 0.68rem; font-weight: 900;
  color: var(--c-text-soft);
  letter-spacing: 0.6px; text-transform: uppercase;
}
.acc-section-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #FF7A00;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
  flex-shrink: 0;
}

.acc-links { display: flex; flex-direction: column; gap: 2px; }
.acc-link {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 12px;
  background: transparent; border: none;
  color: var(--c-text); text-decoration: none;
  cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 0.85rem;
  width: 100%; text-align: right;
  transition: all 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
  min-height: 42px;
}
.acc-link:hover { background: var(--c-primary-soft); transform: translateX(-2px); }
.acc-link:active { transform: scale(0.98); }

.acc-link-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
  box-shadow: 0 4px 10px -5px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s;
}
.acc-link:hover .acc-link-icon { transform: scale(1.06); }
.acc-link-icon svg.mi { width: 16px; height: 16px; }

.acc-link-icon.icon-info    { background: linear-gradient(135deg, #3B82F6, #60A5FA); box-shadow: 0 4px 12px -5px rgba(59, 130, 246, 0.65); }
.acc-link-icon.icon-privacy { background: linear-gradient(135deg, #8B5CF6, #A78BFA); box-shadow: 0 4px 12px -5px rgba(139, 92, 246, 0.65); }
.acc-link-icon.icon-terms   { background: linear-gradient(135deg, #F59E0B, #FBBF24); box-shadow: 0 4px 12px -5px rgba(245, 158, 11, 0.65); }
.acc-link-icon.icon-share   { background: linear-gradient(135deg, #10B981, #34D399); box-shadow: 0 4px 12px -5px rgba(16, 185, 129, 0.65); }
.acc-link-icon.icon-wa      { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 4px 12px -5px rgba(37, 211, 102, 0.65); }

.acc-link-text {
  flex: 1; min-width: 0; font-weight: 800; color: var(--c-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -0.1px;
}
.acc-link.acc-link-wa .acc-link-text { color: #128C7E; }

.acc-link-arrow {
  color: var(--c-text-soft); flex-shrink: 0;
  display: inline-flex; align-items: center;
  transition: all 0.22s; opacity: 0.55;
}
.acc-link-arrow svg.mi { width: 14px; height: 14px; }
.acc-link:hover .acc-link-arrow { color: #FF7A00; opacity: 1; transform: translateX(-3px); }

.acc-settings { display: flex; flex-direction: column; gap: 2px; }
.acc-setting-item {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 10px; border-radius: 12px; min-height: 42px;
  cursor: pointer; transition: background 0.2s;
  user-select: none;
}
.acc-setting-item:hover { background: var(--c-surface-2); }
.acc-setting-icon {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--c-primary-soft); color: #FF7A00;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid #FFE0BD;
}
.acc-setting-icon svg.mi { width: 15px; height: 15px; }
.acc-setting-text { flex: 1; font-size: 0.85rem; font-weight: 800; color: var(--c-text); }

.acc-setting-switch {
  position: relative; width: 40px; height: 22px;
  border-radius: 999px; background: var(--c-border);
  transition: background 0.25s; flex-shrink: 0;
}
.acc-setting-switch::after {
  content: ''; position: absolute;
  top: 2px; right: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#accountThemeSwitch.on .acc-setting-switch {
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  box-shadow: 0 4px 10px -3px rgba(255, 122, 0, 0.55);
}
#accountThemeSwitch.on .acc-setting-switch::after { transform: translateX(-18px); }

.acc-setting-icon .theme-icon-sun { display: none; }
#accountThemeSwitch.on .theme-icon-moon { display: none !important; }
#accountThemeSwitch.on .theme-icon-sun { display: inline-block !important; }

.acc-setting-view .view-toggle-pill {
  height: 32px; padding: 3px;
  background: var(--c-surface-2); border-radius: 9999px;
  display: inline-flex; align-items: center; gap: 2px;
}
.acc-setting-view .view-toggle-pill button {
  width: 30px; height: 26px; border-radius: 9999px;
  border: none; background: transparent; color: var(--c-text-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.22s;
}
.acc-setting-view .view-toggle-pill button.active {
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  color: #fff;
  box-shadow: 0 3px 8px -3px rgba(255, 122, 0, 0.6);
}
.acc-setting-view .view-toggle-pill button svg.mi { width: 13px; height: 13px; }

.acc-footer { text-align: center; padding: 4px 0 0; }
.acc-footer-version {
  font-size: 0.68rem; font-weight: 700;
  color: var(--c-text-soft); opacity: 0.75;
  letter-spacing: 0.3px;
}

body.theme-dark .account-sheet { background: var(--c-surface); }
body.theme-dark .acc-body { background: var(--c-surface); }
body.theme-dark .acc-quick-btn { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }
body.theme-dark .acc-quick-btn:hover { border-color: #FF7A00; color: #FF7A00; }
body.theme-dark .acc-link { color: var(--c-text); }
body.theme-dark .acc-link:hover { background: var(--c-primary-soft); }
body.theme-dark .acc-link-text { color: var(--c-text); }
body.theme-dark .acc-link.acc-link-wa .acc-link-text { color: #4ADE80; }
body.theme-dark .acc-setting-item:hover { background: var(--c-surface-2); }
body.theme-dark .acc-setting-icon { background: var(--c-primary-soft); color: #FFA64D; border-color: #5C3A1A; }
body.theme-dark .acc-setting-text { color: var(--c-text); }
body.theme-dark .acc-setting-view .view-toggle-pill { background: var(--c-surface-2); }

@media (max-height: 700px) {
  .acc-header { padding: 14px 14px 12px; }
  .acc-header-logo { width: 40px; height: 40px; }
  .acc-header-title { font-size: 1rem; }
  .acc-body { padding: 10px 12px calc(10px + var(--safe-bottom, 0px)); gap: 8px; }
  .acc-quick-btn { height: 42px; font-size: 0.8rem; }
  .acc-social-btn { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  .acc-social-btn svg.mi { width: 18px; height: 18px; }
  .acc-social-row { gap: 8px; padding: 2px 0 4px; }
  .acc-link { padding: 6px 8px; min-height: 40px; font-size: 0.82rem; }
  .acc-link-icon { width: 30px; height: 30px; }
  .acc-link-icon svg.mi { width: 15px; height: 15px; }
  .acc-setting-item { min-height: 40px; padding: 5px 8px; }
  .acc-setting-icon { width: 28px; height: 28px; }
}
@media (max-width: 480px) {
  .account-sheet { max-width: 100%; border-radius: 24px 24px 0 0; }
}

/* ═══════════════════════════════════════════════════════════
   HERO SLIDER — 5 صور تتحرك تلقائياً
   ═══════════════════════════════════════════════════════════ */
.bzr-hero-slider { max-width: 1400px; margin: 12px auto 18px; padding: 0 12px; }

.bzr-slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px -12px rgba(255, 122, 0, 0.28), 0 4px 14px rgba(15, 23, 42, 0.08);
  background: #0F172A;
  isolation: isolate;
}

.bzr-slider-track {
  display: flex;
  direction: ltr;
  transition: transform 0.85s cubic-bezier(0.32, 0.72, 0.28, 1);
  will-change: transform;
}

.bzr-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #0F172A;
}
@media (min-width: 640px) { .bzr-slide { aspect-ratio: 16 / 7; } }

.bzr-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
  pointer-events: none;
}

.bzr-slide-overlay { display: none !important; }

.bzr-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: none; cursor: pointer; color: #0F172A;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
  z-index: 3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
}
.bzr-slider:hover .bzr-slider-arrow { opacity: 1; }
@media (max-width: 640px) { .bzr-slider-arrow { opacity: 0.92; width: 34px; height: 34px; } }
.bzr-slider-arrow:hover { background: #FF7A00; color: #fff; transform: translateY(-50%) scale(1.1); }
.bzr-slider-arrow:active { transform: translateY(-50%) scale(0.94); }
.bzr-slider-prev { right: 14px; }
.bzr-slider-next { left: 14px; }

.bzr-slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.58);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.bzr-slider-dot {
  width: 7px; height: 7px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: none; cursor: pointer; padding: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bzr-slider-dot.active {
  background: #FF7A00;
  width: 24px;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.28);
}
.bzr-slider-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.85); }

body.theme-dark .bzr-slider {
  box-shadow: 0 12px 32px -12px rgba(255, 122, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.35);
}
body.theme-dark .bzr-slider-arrow { background: rgba(30, 41, 59, 0.94); color: #F1F5F9; }
body.theme-dark .bzr-slider-arrow:hover { background: #FF7A00; color: #fff; }

@media (max-width: 480px) {
  .bzr-hero-slider { margin: 10px auto 14px; padding: 0 10px; }
  .bzr-slider { border-radius: 18px; }
  .bzr-slider-dots { bottom: 10px; padding: 5px 10px; }
  .bzr-slider-dot.active { width: 20px; }
}

/* ═══ CREATE STORE MODAL ═══ */
#createStoreModal {
  position: fixed; inset: 0; z-index: 3100;
  display: flex; align-items: center; justify-content: center;
  padding: 0.8rem;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}
#createStoreModal.hidden { display: none; }
.create-store-box {
  background: var(--c-surface); border-radius: 24px;
  width: 100%; max-width: 420px;
  padding: 1.8rem 1.2rem; text-align: center;
  animation: zoomIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.create-store-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 15px 35px -10px rgba(255,122,0,0.7);
  animation: bzrLogoPulse 2.5s ease-in-out infinite;
}
.create-store-icon svg.mi { width: 34px; height: 34px; }
.create-store-title { font-size: 1.2rem; font-weight: 900; color: var(--c-text); margin: 0 0 0.5rem; }
.create-store-title span {
  background: linear-gradient(135deg,#FF7A00,#FFA64D);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.create-store-desc {
  font-size: 0.85rem; color: var(--c-text-soft);
  line-height: 1.8; margin: 0 0 1.5rem;
  max-width: 320px; margin-inline: auto;
}
.create-store-features {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 5px; margin-bottom: 1.5rem;
}
.create-store-features span {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-surface-2); color: var(--c-text);
  padding: 0.35rem 0.6rem; border-radius: 9999px;
  font-size: 0.68rem; font-weight: 700;
  border: 1px solid var(--c-border);
}
.create-store-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px;
  background: linear-gradient(135deg,#25D366,#128C7E);
  color: #fff; border: none; border-radius: 14px;
  font-weight: 800; font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(37,211,102,0.7);
  transition: all 0.25s; margin-bottom: 0.5rem;
  font-family: 'Cairo', sans-serif;
}
.create-store-wa-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(37,211,102,0.9); }
.create-store-cancel {
  width: 100%; height: 42px;
  background: var(--c-surface-2); color: var(--c-text-soft);
  border: none; border-radius: 12px;
  font-weight: 700; font-size: 0.85rem;
  cursor: pointer; font-family: 'Cairo', sans-serif;
  transition: all 0.2s;
}
.create-store-cancel:hover { background: var(--c-border); color: var(--c-text); }

/* ═══ UPDATE / INSTALL ═══ */
#updateAvailableBtn {
  position: fixed;
  top: calc(var(--safe-top) + 10px); left: 50%;
  transform: translate(-50%, calc(-100% - 40px));
  z-index: 10002;
  background: linear-gradient(135deg, #FF7A00 0%, #FFA64D 100%);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 15px 35px -10px rgba(255,122,0,0.85), 0 6px 15px -6px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, opacity 0.3s;
  direction: rtl; font-family: 'Cairo', sans-serif;
  max-width: calc(100% - 20px);
  pointer-events: none; opacity: 0;
}
#updateAvailableBtn.show {
  transform: translate(-50%, 0);
  pointer-events: auto; opacity: 1;
  animation: updatePulse 2.5s ease-in-out infinite;
}
#updateAvailableBtn:active { transform: translate(-50%, 0) scale(0.97); }
#updateAvailableBtn:disabled { cursor: wait; opacity: 0.9; }
.update-icon-wrap {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
}
.update-icon-wrap svg.mi { color: #fff; width: 20px; height: 20px; }
.update-text-wrap { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.update-text-wrap strong { font-size: 0.85rem; font-weight: 900; }
.update-text-wrap span { font-size: 0.68rem; opacity: 0.92; font-weight: 600; margin-top: 1px; }
.update-arrow {
  color: rgba(255,255,255,0.85);
  width: 14px; height: 14px;
  animation: slideArrow 1.5s ease-in-out infinite;
}
@keyframes slideArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3px); }
}
@keyframes updatePulse {
  0%, 100% { box-shadow: 0 15px 35px -10px rgba(255,122,0,0.85); }
  50% { box-shadow: 0 15px 40px -8px rgba(255,122,0,1); }
}
@media (max-width: 480px) {
  #updateAvailableBtn { padding: 0.45rem 0.8rem 0.45rem 0.45rem; gap: 8px; }
  .update-icon-wrap { width: 34px; height: 34px; }
  .update-text-wrap strong { font-size: 0.78rem; }
  .update-text-wrap span { font-size: 0.62rem; }
}

/* ═══ PWA INSTALL BUTTON ═══ */
#installButtonFloating {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
  right: 12px;
  z-index: 9999;
  background: linear-gradient(135deg, #1E40AF, #3B82F6);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.7rem 1.2rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px -5px rgba(30,64,175,0.6), 0 0 0 0 rgba(59,130,246,0.5);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translateY(20px) scale(0.9);
}
#installButtonFloating.show {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: pwaPulse 2.5s ease-in-out infinite;
}
#installButtonFloating:active { transform: translateY(0) scale(0.95); }
#installButtonFloating svg.mi {
  animation: pwaBounce 2s ease-in-out infinite;
  width: 16px; height: 16px;
}
@keyframes pwaPulse {
  0%, 100% { box-shadow: 0 6px 20px -5px rgba(30,64,175,0.6), 0 0 0 0 rgba(59,130,246,0.5); }
  50%      { box-shadow: 0 6px 20px -5px rgba(30,64,175,0.8), 0 0 0 10px rgba(59,130,246,0); }
}
@keyframes pwaBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

/* ═══ iOS Install Instructions Modal ═══ */
.pwa-ios-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.pwa-ios-modal.show { opacity: 1; pointer-events: auto; }
.pwa-ios-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pwa-ios-sheet {
  position: relative; background: var(--c-surface);
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 500px;
  padding: 1rem 1.2rem calc(1.5rem + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pwa-ios-modal.show .pwa-ios-sheet { transform: translateY(0); }
.pwa-ios-handle {
  width: 36px; height: 4px; border-radius: 4px;
  background: var(--c-border);
  margin: 0 auto 1rem;
}
.pwa-ios-title {
  font-size: 1.15rem; font-weight: 900;
  color: var(--c-text); margin: 0 0 0.5rem;
  text-align: center;
}
.pwa-ios-desc {
  font-size: 0.85rem; color: var(--c-text-soft);
  text-align: center; margin: 0 0 1.5rem;
  line-height: 1.6; font-weight: 600;
}
.pwa-ios-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.pwa-ios-steps li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 8px;
  background: var(--c-surface-2);
  border-radius: 14px; border: 1px solid var(--c-border);
}
.pwa-ios-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; flex-shrink: 0;
}
.pwa-ios-steps li > div {
  flex: 1; display: flex; flex-direction: column;
  gap: 2px; text-align: right;
}
.pwa-ios-steps li strong { font-size: 0.9rem; font-weight: 800; color: var(--c-text); }
.pwa-ios-steps li div span { font-size: 0.75rem; color: var(--c-text-soft); font-weight: 600; }
.pwa-ios-close {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  color: #fff; border: none; border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800; font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 20px -6px rgba(255, 122, 0, 0.7);
  transition: transform 0.2s;
}
.pwa-ios-close:active { transform: scale(0.97); }
body.theme-dark .pwa-ios-steps li { background: #334155; border-color: #475569; }

/* ═══ NOTIFICATIONS ═══ */
#notifPermissionBanner {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
  left: 50%; transform: translate(-50%, 200%);
  z-index: 9998;
  background: var(--c-surface);
  border: 2px solid #FFE0BD;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(255,122,0,0.2);
  max-width: 420px; width: calc(100% - 24px);
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s;
  direction: rtl; opacity: 0; pointer-events: none;
}
#notifPermissionBanner.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.notif-banner-content { display: flex; align-items: flex-start; gap: 10px; }
.notif-bell-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: bellRing 3s ease-in-out infinite;
  box-shadow: 0 8px 20px -5px rgba(255,122,0,0.6);
}
@keyframes bellRing {
  0%,100% { transform: rotate(0); }
  5%,15%,25% { transform: rotate(-14deg); }
  10%,20%,30% { transform: rotate(14deg); }
  35% { transform: rotate(0); }
}
.notif-bell-icon svg.mi { color: #fff; width: 22px; height: 22px; }
.notif-banner-text { flex: 1; min-width: 0; }
.notif-banner-title { font-weight: 800; color: var(--c-text); font-size: 0.85rem; margin-bottom: 3px; }
.notif-banner-text p { font-size: 0.75rem; color: var(--c-text-soft); line-height: 1.6; margin: 0 0 10px; }
.notif-banner-actions { display: flex; gap: 6px; }
.notif-btn-enable {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: 1; height: 42px;
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  color: #fff; border: none; border-radius: 9999px;
  font-weight: 800; font-size: 0.85rem; cursor: pointer;
}
.notif-btn-dismiss {
  display: flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 16px;
  background: var(--c-surface-2); color: var(--c-text-soft);
  border: none; border-radius: 9999px;
  font-weight: 700; font-size: 0.82rem; cursor: pointer;
}

#pushToast {
  position: fixed; top: 15px; left: 50%;
  transform: translate(-50%, -200%);
  z-index: 10000;
  background: var(--c-surface);
  border: 2px solid #FF7A00;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 15px 40px rgba(255,122,0,0.3);
  max-width: 360px; width: calc(100% - 24px);
  display: flex; align-items: center; gap: 10px;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  direction: rtl;
}
#pushToast.show { transform: translate(-50%, 0); }
#pushToast .push-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #FF7A00, #FFA64D);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#pushToast .push-icon svg.mi { color: #fff; width: 20px; height: 20px; }
.push-toast-text { flex: 1; min-width: 0; text-align: right; }
#pushToastTitle { font-weight: 800; font-size: 0.85rem; color: var(--c-text); }
#pushToastBody { font-size: 0.75rem; color: var(--c-text-soft); margin-top: 1px; }

#toast {
  position: fixed; top: 15px; left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: #0F172A; color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  z-index: 3000;
  opacity: 0; pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(15,23,42,0.3);
  max-width: 90vw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══ PAGE FADE ═══ */
.bzr-page-fade { animation: pageFade 0.3s ease; }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ A11Y ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .bzr-search-icon-btn { transition: none; }
}

/* ═══ PRINT ═══ */
@media print {
  body * { display: none !important; }
  body::before {
    content: '© 2026 BranZar | المحتوى محمي';
    display: block !important;
    font-family: 'Cairo', sans-serif;
    color: #FF7A00; text-align: center;
    padding: 3rem; direction: rtl; font-weight: 900;
  }
}

/* ═══ VIEW TOGGLE GRID OVERRIDES ═══ */
body.view-mobile #allProductsGrid,
body.view-mobile .store-products-grid { grid-template-columns: repeat(2, 1fr) !important; }
body.view-desktop #allProductsGrid,
body.view-desktop .store-products-grid { grid-template-columns: repeat(3, 1fr) !important; }
@media (min-width: 1024px) {
  body.view-desktop #allProductsGrid,
  body.view-desktop .store-products-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ═══ CATEGORIES SCROLL HINT ═══ */
.categories-scroll-hint {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--c-text-soft); white-space: nowrap;
  margin: 0 auto; padding: 4px 10px;
  background: var(--c-surface-2); border-radius: 9999px;
}
body.theme-dark .categories-scroll-hint { color: #94A3B8; background: #334155; }

/* ═══ زر "عرض المزيد" داخل المتجر ═══ */
#loadMoreStoreProductsBtn.hidden,
#loadMoreStoreProductsBtn[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
#loadMoreStoreProductsBtn:not(.hidden):not([hidden]) {
  display: inline-flex;
  animation: fadeInLoadMore 0.3s ease;
}
@keyframes fadeInLoadMore {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ الموقع ووصف المنتج ═══ */
.store-location-row {
  display: none; align-items: center; gap: 12px;
  margin-top: 14px; padding: 12px 14px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1.5px solid #FFD9A8; border-radius: 14px;
  animation: bzrFadeIn 0.4s ease;
  direction: rtl;
}
.store-location-row.visible { display: flex; }
.store-location-row .loc-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF7A00 0%, #FFA64D 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(255, 122, 0, 0.6);
}
.store-location-row .loc-icon svg.mi { width: 20px; height: 20px; }
.store-location-row .loc-text { flex: 1; min-width: 0; }
.store-location-row .loc-label {
  font-size: 0.7rem; font-weight: 800;
  color: #9A3412; opacity: 0.9;
  margin-bottom: 3px;
  letter-spacing: 0.3px; text-transform: uppercase;
}
.store-location-row .loc-value {
  font-size: 0.92rem; font-weight: 800;
  color: #7C2D12; line-height: 1.5;
  word-break: break-word;
}

.product-modal-desc {
  display: none; margin-top: 16px; padding: 14px 16px;
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  border: 1.5px solid #E5E7EB; border-radius: 14px;
  animation: bzrFadeIn 0.4s ease;
  direction: rtl;
}
.product-modal-desc.visible { display: block; }
.product-modal-desc .desc-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 900;
  color: #374151; margin-bottom: 9px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.product-modal-desc .desc-title svg.mi { color: #FF7A00; width: 14px; height: 14px; }
.product-modal-desc .desc-text {
  font-size: 0.92rem; font-weight: 600;
  color: #4B5563; line-height: 1.9;
  word-break: break-word; white-space: pre-wrap;
}

.product-card-desc {
  font-size: 0.74rem; color: #6B7280; font-weight: 600;
  line-height: 1.55; margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  min-height: 0;
}

body.theme-dark .store-location-row {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.14) 0%, rgba(255, 166, 77, 0.08) 100%);
  border-color: rgba(255, 122, 0, 0.35);
}
body.theme-dark .store-location-row .loc-label { color: #FDBA74; }
body.theme-dark .store-location-row .loc-value { color: #FED7AA; }
body.theme-dark .product-modal-desc {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border-color: rgba(255,255,255,0.1);
}
body.theme-dark .product-modal-desc .desc-title { color: #E5E7EB; }
body.theme-dark .product-modal-desc .desc-text { color: #D1D5DB; }
body.theme-dark .product-card-desc { color: #9CA3AF; }

@media (max-width: 480px) {
  .store-location-row { padding: 10px 12px; gap: 10px; margin-top: 12px; }
  .store-location-row .loc-icon { width: 36px; height: 36px; }
  .store-location-row .loc-icon svg.mi { width: 18px; height: 18px; }
  .store-location-row .loc-value { font-size: 0.84rem; }
  .store-location-row .loc-label { font-size: 0.66rem; }
  .product-modal-desc { padding: 12px 14px; margin-top: 14px; }
  .product-modal-desc .desc-text { font-size: 0.86rem; line-height: 1.8; }
  .product-card-desc { font-size: 0.7rem; }
}

/* ═══ تحسين تباعد الأقسام ═══ */
@media (max-width: 480px) {
  .stores-section { padding: 2px 0 4px; }
  .categories-section { padding: 0 0 4px; }
  .products-section { padding: 8px 0 14px; }

  .section-header-flex { margin-bottom: 4px; }
  .section-title-lg { font-size: 1.05rem; }
  .section-title-md { font-size: 0.95rem; }

  .stores-scroll-container { gap: 7px; padding-bottom: 2px; }
  .categories-scroll-container { gap: 4px; padding-bottom: 0; }

  .chip { padding: 0.35rem 0.75rem; font-size: 0.76rem; }

  .scroll-btn { width: 30px; height: 30px; }
  .scroll-btn svg.mi { width: 14px; height: 14px; }
  .nav-buttons { gap: 4px; }

  .section-icon-circle { width: 28px; height: 28px; }
  .section-icon-circle svg.mi { width: 14px; height: 14px; }
  .badge-soft { font-size: 0.64rem; padding: 0.2rem 0.5rem; }
}

@media (min-width: 640px) and (max-width: 1024px) {
  .stores-section { padding: 6px 0 10px; }
  .categories-section { padding: 4px 0 10px; }
  .products-section { padding: 12px 0 20px; }
}
@media (min-width: 1025px) {
  .stores-section { padding: 8px 0 12px; }
  .categories-section { padding: 6px 0 12px; }
  .products-section { padding: 14px 0 22px; }
}

@keyframes bzrFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ موبايل: ترتيب الأقسام + تصغير الهيرو ═══ */
@media (max-width: 480px) {
  #mainContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
  }
  #mainContent > #categories { order: 1; }
  #mainContent > #followedStoresSection { order: 2; }
  #mainContent > #stores { order: 3; }
  #mainContent > #all-products { order: 4; }

  .bzr-hero-slider { margin: 6px auto 7px; padding-inline: 8px; }
  .bzr-slider { border-radius: 16px; }
  .bzr-slide { aspect-ratio: 2.55 / 1; }
  .bzr-slider-arrow { width: 30px; height: 30px; }
  .bzr-slider-prev { right: 8px; }
  .bzr-slider-next { left: 8px; }
  .bzr-slider-dots { bottom: 6px; gap: 5px; padding: 4px 8px; }
  .bzr-slider-dot { width: 6px; height: 6px; }
  .bzr-slider-dot.active { width: 17px; }

  .categories-section { padding: 1px 0 4px; }
  .followed-section { padding: 2px 0 3px; }
  .stores-section { padding: 1px 0 3px; }
  .products-section { padding: 8px 0 14px; }

  .section-header-flex { margin-bottom: 3px; gap: 4px; }
  .section-title-lg { font-size: 0.98rem; line-height: 1.25; }
  .section-title-md { font-size: 0.9rem; line-height: 1.25; }
  .section-icon-circle { width: 26px; height: 26px; }

  .followed-section .section-header { margin-bottom: 2px; }
  .followed-scroll-container { gap: 6px; padding: 2px 0 3px; }
  .followed-store-item { width: 62px; gap: 2px; }
  .followed-store-avatar { width: 46px; height: 46px; padding: 2px; }
  .followed-store-name { font-size: 0.62rem; line-height: 1.2; }

  .categories-scroll-container { min-height: 34px; gap: 4px; padding: 0 0 1px; }
  .categories-scroll-container .chip {
    min-height: 32px; padding: 0 9px;
    font-size: 0.68rem; line-height: 1.2;
  }
  .scroll-btn { width: 28px; height: 28px; }
  .scroll-btn svg.mi { width: 13px; height: 13px; }
}

@media (max-width: 480px) and (max-height: 760px) {
  .bzr-hero-slider { margin-block: 4px 5px; }
  .bzr-slide { aspect-ratio: 2.8 / 1; }
  .followed-store-avatar { width: 42px; height: 42px; }
}

/* ═══════════════════════════════════════════════════════════
   👑 رابط الاشتراكات في الهيدر (اختياري) — أيقونة تاج SVG
   ═══════════════════════════════════════════════════════════ */
.bzr-subs-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff7a00, #ff4d00);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(255, 102, 0, .22);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.bzr-subs-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(255, 102, 0, .32);
}
.bzr-subs-crown {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
}
.bzr-subs-crown svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15));
}
.bzr-subs-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  padding: 2px 6px;
  border-radius: 8px;
  color: #fff;
  background: #e53935;
  font-size: 9px;
  line-height: 1.3;
  font-weight: 900;
}

/* ═══════════════════════════════════════════════════════════
   👑 CTA الاشتراكات أسفل السلايدر — أيقونة تاج SVG
   ═══════════════════════════════════════════════════════════ */
.bzr-all-subs-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(92%, 680px);
  margin: 14px auto 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 122, 0, .18);
  border-radius: 18px;
  color: #4a250d;
  background: linear-gradient(135deg, #fff7ed, #fff1df);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 122, 0, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bzr-all-subs-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 122, 0, .2);
}
.bzr-all-subs-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ffb800, #ff7a00);
  font-size: 0;
  line-height: 0;
  box-shadow: 0 6px 16px -6px rgba(255, 122, 0, .55);
}
.bzr-all-subs-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15));
}
.bzr-all-subs-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.bzr-all-subs-content strong {
  color: #d95700;
  font-size: 15px;
  font-weight: 900;
}
.bzr-all-subs-content small {
  color: #8b654c;
  font-size: 11px;
  font-weight: 700;
}
.bzr-all-subs-arrow {
  color: #ff7a00;
  font-size: 30px;
  line-height: 1;
  transition: transform .25s ease;
}
.bzr-all-subs-cta:hover .bzr-all-subs-arrow {
  transform: translateX(-4px);
}

@media (max-width: 520px) {
  .bzr-subs-link { padding: 7px 9px; font-size: 11px; }
  .bzr-subs-crown { width: 16px; height: 16px; }
  .bzr-subs-badge { font-size: 8px; }
  .bzr-all-subs-cta { width: calc(100% - 24px); padding: 12px 14px; }
  .bzr-all-subs-icon { width: 38px; height: 38px; }
  .bzr-all-subs-icon svg { width: 20px; height: 20px; }
  .bzr-all-subs-content strong { font-size: 13px; }
  .bzr-all-subs-content small { font-size: 10px; }
  .bzr-all-subs-arrow { font-size: 26px; }
}

/* ═══════════════════════════════════════════════════════════
   🏪 زر "إنشاء متجر مجاناً" — أزرق بارز + نبض + نقطة "جديد"
   ═══════════════════════════════════════════════════════════ */

.acc-quick-btn.acc-quick-btn-create {
  position: relative;
  background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
  color: #fff;
  border-color: #3B82F6;
  font-weight: 900;
  box-shadow: 0 8px 22px -8px rgba(59, 130, 246, 0.75),
              0 0 0 0 rgba(59, 130, 246, 0.55);
  animation: createBtnPulse 2.4s ease-in-out infinite;
}

.acc-quick-btn.acc-quick-btn-create:hover {
  color: #fff;
  border-color: #1E40AF;
  background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px -8px rgba(59, 130, 246, 0.9),
              0 0 0 10px rgba(59, 130, 246, 0);
  animation-play-state: paused;
}

.acc-quick-btn.acc-quick-btn-create:active {
  transform: translateY(0) scale(0.97);
}

.acc-quick-btn.acc-quick-btn-create svg.mi {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* نقطة حمراء نابضة (إشارة "جديد") */
.acc-quick-btn.acc-quick-btn-create::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #EF4444;
  border: 2px solid #fff;
  animation: createDotPulse 1.5s ease-in-out infinite;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6);
}

@keyframes createBtnPulse {
  0%, 100% {
    box-shadow: 0 8px 22px -8px rgba(59, 130, 246, 0.75),
                0 0 0 0 rgba(59, 130, 246, 0.55);
  }
  50% {
    box-shadow: 0 8px 22px -8px rgba(59, 130, 246, 0.9),
                0 0 0 9px rgba(59, 130, 246, 0);
  }
}

@keyframes createDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.7; }
}

/* دارك مود */
body.theme-dark .acc-quick-btn.acc-quick-btn-create {
  background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
  border-color: #1E40AF;
}
body.theme-dark .acc-quick-btn.acc-quick-btn-create::after {
  border-color: #1E293B;
}

/* شاشات صغيرة */
@media (max-width: 380px) {
  .acc-quick-btn.acc-quick-btn-create {
    font-size: 0.74rem;
    padding: 0 6px;
  }
}
