/* ==========================================================================
   storefront-appearance.css — «ویژگی‌های فروشگاه» (ادمین پنل)
   --------------------------------------------------------------------------
   * فقط استایل است؛ هیچ تغییری در دیتا/مارکاپ/منطق JS ایجاد نمی‌کند.
   * همه قوانین از طریق data-attribute های روی <html> فعال می‌شوند:
       data-hero-style   = glass | minimal | cinematic | split | showcase | film | frame
       data-hero-layout  = side-right | side-left | center | full
       data-hero-height  = cozy | normal | grand
       data-card-style   = modern | minimal | glass | bold | soft | retro | lux
       data-radius-scale = sharp | rounded | soft | pill
       data-footer-style = mega | compact | minimal | gradient
       data-navbar-style = glass | solid | minimal | floating
       data-navbar-sticky= sticky | static
       data-banner-style = modern | overlay | framed
       data-category-style=circle | card | chip
       data-button-style = rounded | pill | sharp
       data-section-gap  = cozy | normal | roomy
       data-title-style  = accent | centered | minimal
       data-hover-fx     = lift | zoom | glow
       data-grid-density = comfortable | compact | spacious
       data-article-style= modern | minimal | glass
       data-tabbar-style = docked | floating | minimal
       data-badge-style  = rounded | pill | sharp
       data-scrollbar-style = default | slim | branded
       data-slider-nav   = bottom | side | top
       data-slide-fx     = fade | glide
   * پرفورمنس: فقط transform/opacity، بدون فونت/تصویر جدید، بدون تغییر LCP.
     min-height های هیرو حفظ شده تا CLS رخ ندهد.
   * احترام به prefers-reduced-motion و html.no-anim (دسترسی‌پذیری).
   ========================================================================== */

/* ── 1) HERO LAYOUT (موقعیت اسلایدر) ────────────────────────────────────── */
/* پیش‌فرض (side-right در RTL): اسلایدر راست + بنرها چپ — همان گرید اصلی. */

/* side-left: جابه‌جایی ستون‌ها با order + تعویض مسیرهای گرید، تا اسلایدر
   اندازهٔ همیشگی خودش (ستون پهن) و بنرها اندازهٔ همیشگی خودشان (ستون باریک)
   را حفظ کنند و فقط جای دو طرف عوض شود (اندازه‌ها با هم جابه‌جا نشوند).
   در RTL ستون اول «راست» است؛ پس بنرها ابتدا در ستون باریک راست و اسلایدر
   در ستون پهن چپ می‌نشیند. */
html[data-hero-layout="side-left"] #hero-section .hero-main-grid{
  grid-template-columns:30% 1fr;
}
html[data-hero-layout="side-left"] #hero-section .hero-main-grid .hero-slider{order:2}
html[data-hero-layout="side-left"] #hero-section .hero-main-grid .hero-banners{order:1}

/* center: اسلایدر تمام‌عرض در بالا، بنرها دو ستونه در پایین (وسط‌چین) */
html[data-hero-layout="center"] #hero-section .hero-main-grid{
  grid-template-columns:1fr;
}
html[data-hero-layout="center"] #hero-section .hero-banners{
  display:grid;grid-template-columns:1fr 1fr;gap:16px;
}
html[data-hero-layout="center"] #hero-section .hero-slider{min-height:440px}

/* full: کل سکشن هیرو فقط اسلایدر — با حفظ حاشیه کناری (دسکتاپ و موبایل) و
   ارتفاع متعادل؛ بنرهای کناری فقط با CSS مخفی می‌شوند (دیتا حذف نمی‌شود) */
/* دسکتاپ: پیش‌تر این حالت max-width را حذف و پدینگ را روی 24px می‌گذاشت که با
   فاصلهٔ کناری 100px بقیهٔ بخش‌ها هم‌تراز نبود. حالا دقیقاً همان container
   استاندارد قالب استفاده می‌شود؛ فقط در موبایل (پایین‌تر) پدینگ کوچک‌تر می‌شود. */
html[data-hero-layout="full"] #hero-section .container{
  max-width:1400px;padding:0 var(--desktop-padding,100px);
}
html[data-hero-layout="full"] #hero-section .hero-main-grid{
  grid-template-columns:1fr;gap:0;min-height:500px;
}
html[data-hero-layout="full"] #hero-section .hero-slider{
  min-height:500px;border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:0 24px 60px -24px rgba(0,0,0,.5);
}
html[data-hero-layout="full"] #hero-section .hero-banners{display:none}

/* ── 2) HERO STYLE (سه مدل اسلایدر مدرن — فقط استایل) ───────────────────── */

/* ── 2a) glass: کارت شیشه‌ای روی اسلاید + دات‌های کپسولی ── */
html[data-hero-style="glass"] #hero-section .hero-slide-content{
  background:rgba(10,12,28,.42);
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.20);
  border-radius:20px;
  padding:26px 28px;margin:22px;
  width:auto;max-width:480px;
  box-shadow:0 18px 50px rgba(0,0,0,.35);
}
html[data-hero-style="glass"] #hero-section .hero-slide-tag{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:none;
}
html[data-hero-style="glass"] #hero-section .hero-slider-nav{gap:8px}
html[data-hero-style="glass"] #hero-section .slider-dot{
  width:26px;height:7px;border-radius:99px;
}

/* ── 2b) minimal: تایپوگرافی وسط‌چین، اورلی ملایم، دکمه خطی ── */
html[data-hero-style="minimal"] #hero-section .hero-slide-overlay{
  background:linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.34) 100%);
}
html[data-hero-style="minimal"] #hero-section .hero-slide-content{
  text-align:center;margin:0 auto;
  display:flex;flex-direction:column;align-items:center;
  padding:28px 20px;
}
html[data-hero-style="minimal"] #hero-section .hero-slide-title{
  font-size:1.7rem;font-weight:800;text-shadow:none;
}
html[data-hero-style="minimal"] #hero-section .hero-slide-tag{
  background:transparent;color:#fff;
  border:1.5px solid rgba(255,255,255,.65);
  box-shadow:none;letter-spacing:.4px;
}
html[data-hero-style="minimal"] #hero-section .hero-slide-btn{
  background:transparent;border:1.5px solid #fff;
  box-shadow:none;
}
html[data-hero-style="minimal"] #hero-section .hero-slider-nav{gap:6px}
html[data-hero-style="minimal"] #hero-section .slider-dot{
  width:8px;height:8px;border-radius:50%;opacity:.55;
}
html[data-hero-style="minimal"] #hero-section .slider-dot.active{
  width:26px;border-radius:99px;opacity:1;
}

/* ── 2c) cinematic: سینمایی تمام‌قد، تایپ بزرگ، گرادیان عمیق ── */
html[data-hero-style="cinematic"] #hero-section .hero-slider{min-height:500px}
html[data-hero-style="cinematic"] #hero-section .hero-slide-overlay{
  background:linear-gradient(115deg,rgba(0,0,0,.72) 5%,rgba(0,0,0,.38) 55%,rgba(0,0,0,.10) 100%);
}
html[data-hero-style="cinematic"] #hero-section .hero-slide-content{
  padding:44px 40px;max-width:640px;
}
html[data-hero-style="cinematic"] #hero-section .hero-slide-title{
  font-size:clamp(2rem,3.4vw,2.9rem);
  line-height:1.25;font-weight:900;letter-spacing:-.01em;
}
html[data-hero-style="cinematic"] #hero-section .hero-slide-tag{
  background:var(--primary);letter-spacing:1px;text-transform:uppercase;
  padding:5px 14px;
}
html[data-hero-style="cinematic"] #hero-section .hero-slide-btn{
  padding:13px 30px;font-size:.95rem;border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}
html[data-hero-style="cinematic"] #hero-section .slider-dot{
  width:34px;height:5px;border-radius:99px;
}

/* ── 3) CARD STYLE (سه مدل کارت محصول — feat/pop/inf) ───────────────────── */

/* modern: همان پیش‌فرض فروشگاه (بدون اورراید — مرجع بصری) */

/* minimal: تخت، بوردر نازک، بدون سایه، گوشه کوچک */
html[data-card-style="minimal"] #page-home .feat-card,
html[data-card-style="minimal"] #page-home .pop-card,
html[data-card-style="minimal"] #page-home .inf-card{
  border-radius:10px;box-shadow:none;
  border:1px solid var(--border);
}
html[data-card-style="minimal"] #page-home .feat-card:hover,
html[data-card-style="minimal"] #page-home .pop-card:hover,
html[data-card-style="minimal"] #page-home .inf-card:hover{
  transform:translateY(-3px);box-shadow:none;
  border-color:var(--primary);
}
html[data-card-style="minimal"] #page-home .feat-card-badge{
  border-radius:6px;
}

/* glass: شیشه‌ای مدرن — بوردر روشن، سایه عمیق، گوشه بزرگ */
html[data-card-style="glass"] #page-home .feat-card,
html[data-card-style="glass"] #page-home .pop-card,
html[data-card-style="glass"] #page-home .inf-card{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 12px 36px rgba(0,0,0,.22);
  overflow:hidden;
}
html[data-card-style="glass"] #page-home .feat-card-body{
  background:rgba(255,255,255,.03);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
html[data-card-style="glass"] #page-home .feat-card:hover,
html[data-card-style="glass"] #page-home .pop-card:hover,
html[data-card-style="glass"] #page-home .inf-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 55px rgba(0,0,0,.35);
  border-color:rgba(255,255,255,.28);
}

/* ── 4) ANIMATION STYLE — حذف شد.
   کلید و تب «انیمیشن» به‌طور کامل از پنل ادمین و بک‌اند برداشته شد؛ دیگر هیچ
   قاعدهٔ CSS و هیچ data-attribute مربوط به آن روی سایت وجود ندارد. ──────── */

/* ── 5) FOOTER STYLE (سه مدل فوتر) ───────────────────────────────────────── */

/* mega: همان پیش‌فرض (بدون اورراید) */

/* compact: حرفه‌ای فشرده — سه ستونه، فاصله کمتر */
html[data-footer-style="compact"] #site-footer{padding:44px 0 0;margin-top:64px}
html[data-footer-style="compact"] #site-footer .footer-grid{
  grid-template-columns:1.5fr 1fr 1fr;gap:28px;margin-bottom:32px;
}
html[data-footer-style="compact"] #site-footer .footer-col:last-child,
html[data-footer-style="compact"] #site-footer #footer-contact-col{
  display:none;
}
html[data-footer-style="compact"] #site-footer .footer-bottom{
  padding:16px 0;
}

/* minimal: مینیمال وسط‌چین — تک‌ستونه */
html[data-footer-style="minimal"] #site-footer{padding:52px 0 0;text-align:center}
html[data-footer-style="minimal"] #site-footer .footer-grid{
  grid-template-columns:1fr;gap:22px;justify-items:center;margin-bottom:32px;
}
html[data-footer-style="minimal"] #site-footer .footer-brand{
  display:flex;flex-direction:column;align-items:center;
}
html[data-footer-style="minimal"] #site-footer .footer-socials{justify-content:center}
html[data-footer-style="minimal"] #site-footer .footer-trust{justify-content:center}
html[data-footer-style="minimal"] #site-footer .footer-col,
html[data-footer-style="minimal"] #site-footer #footer-contact-col,
html[data-footer-style="minimal"] #site-footer #footer-dynamic-cols{
  display:none;
}
html[data-footer-style="minimal"] #site-footer .footer-bottom{
  flex-direction:column;gap:10px;justify-content:center;text-align:center;
}

/* ── 6) ریسپانسیو: چیدمان‌ها در موبایل همیشه تک‌ستونه (بدون به‌هم‌ریختگی) ── */
@media (max-width:900px){
  html[data-hero-layout="center"] #hero-section .hero-banners,
  html[data-hero-layout="side-left"] #hero-section .hero-main-grid,
  html[data-hero-layout="side-right"] #hero-section .hero-main-grid{
    grid-template-columns:1fr;
  }
  html[data-hero-layout="side-left"] #hero-section .hero-main-grid .hero-slider,
  html[data-hero-layout="side-left"] #hero-section .hero-main-grid .hero-banners{order:initial}
  html[data-hero-layout="center"] #hero-section .hero-banners{grid-template-columns:1fr 1fr}
  html[data-hero-layout="full"] #hero-section .hero-main-grid,
  html[data-hero-layout="full"] #hero-section .hero-slider,
  html[data-hero-style="cinematic"] #hero-section .hero-slider{min-height:340px}
  html[data-hero-style="glass"] #hero-section .hero-slide-content{
    margin:14px;padding:18px;border-radius:16px;max-width:none;
  }
  html[data-hero-style="cinematic"] #hero-section .hero-slide-content{padding:24px 20px}
  html[data-footer-style="compact"] #site-footer .footer-grid{grid-template-columns:1fr}
}

/* ── 7) دسترسی‌پذیری: احترام به کاهش حرکت ───────────────────────────────── */
@media (prefers-reduced-motion:reduce){
  #hero-section .hero-slide .hero-slide-content>*,
  #page-home .reveal,
  #page-home .feat-card,#page-home .pop-card,#page-home .inf-card{
    transition-duration:.01ms;animation:none;
  }
  #hero-section .hero-slide.active .hero-slide-img{animation:none}
}
html.no-anim #hero-section .hero-slide .hero-slide-content>*,
html.no-anim #page-home .reveal{
  transition:none;
}

/* ==========================================================================
   v2 — مدل‌ها و بخش‌های اضافه (نوبار، ارتفاع هیرو، بنر، دسته، دکمه، فاصله)
   همه افزودنی و مستقل؛ قوانین v1 دست‌نخورده باقی مانده است.
   ========================================================================== */

/* ── 8) HERO STYLE: split + showcase ─────────────────────────────────────── */

/* split: پنل متنی باریک با نوار تأکیدی (اسپلیت مدرن) */
html[data-hero-style="split"] #hero-section .hero-slide{align-items:center}
html[data-hero-style="split"] #hero-section .hero-slide-content{
  max-width:46%;margin-inline-start:30px;
  border-inline-start:4px solid var(--primary);
  padding-inline-start:22px;padding-top:6px;padding-bottom:6px;
}
html[data-hero-style="split"] #hero-section .hero-slide-title{
  font-size:1.65rem;
}
html[data-hero-style="split"] #hero-section .hero-slide-btn{
  border-radius:8px;
}
html[data-hero-style="split"] #hero-section .slider-dot{
  width:10px;height:10px;border-radius:3px;transform:rotate(45deg);
}
html[data-hero-style="split"] #hero-section .slider-dot.active{
  width:12px;height:12px;
}

/* showcase: نوار کپشن تمام‌عرض در پایین اسلاید */
html[data-hero-style="showcase"] #hero-section .hero-slide{align-items:flex-end}
html[data-hero-style="showcase"] #hero-section .hero-slide-content{
  width:100%;max-width:none;margin:0;
  display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap;
  background:linear-gradient(to top,rgba(0,0,0,.74) 0%,rgba(0,0,0,.28) 100%);
  border-top:1px solid rgba(255,255,255,.20);
  padding:18px 26px;
}
html[data-hero-style="showcase"] #hero-section .hero-slide-tag{margin-bottom:0}
html[data-hero-style="showcase"] #hero-section .hero-slide-title{
  font-size:1.3rem;margin-bottom:0;
}
html[data-hero-style="showcase"] #hero-section .hero-slide-sub{margin-bottom:0;flex:1;min-width:140px}
html[data-hero-style="showcase"] #hero-section .hero-slide-btn{
  margin-inline-start:auto;padding:9px 22px;
}
html[data-hero-style="showcase"] #hero-section .slider-dot{
  width:22px;height:6px;border-radius:99px;
}

/* ── 9) HERO HEIGHT (ارتفاع هیرو) ────────────────────────────────────────── */
/* normal: همان پیش‌فرض (بدون اورراید) */
html[data-hero-height="cozy"] #hero-section .hero-main-grid{min-height:340px}
html[data-hero-height="cozy"] #hero-section .hero-slider{min-height:340px}
html[data-hero-height="grand"] #hero-section .hero-main-grid{min-height:600px}
html[data-hero-height="grand"] #hero-section .hero-slider{min-height:600px}
html[data-hero-height="grand"][data-hero-layout="full"] #hero-section .hero-main-grid,
html[data-hero-height="grand"][data-hero-layout="full"] #hero-section .hero-slider{min-height:580px}

/* ── 9b) ابعاد دقیق و ثابت هیرو در چیدمان‌های کناری (دسکتاپ) ─────────────────
   دلیل: قبلاً ارتفاع ردیفِ هیرو با محتوای بنرها (تصویرها) تعیین می‌شد، پس
   اسلایدر با تغییر تصویر/بنر بلند/کوتاه می‌شد و با بنرها هم‌تراز نبود. حالا
   ارتفاع هر حالت دقیقاً ثابت است و هر دو ستون (اسلایدر و بنرها) همان ارتفاع
   را می‌گیرند؛ تصویر هیچ تأثیری بر ابعاد ندارد (object-fit:cover می‌ماند).
   فقط دسکتاپ (>۹۰۰px)؛ در موبایل چیدمان تک‌ستونه بدون تغییر می‌ماند. */
@media (min-width:901px){
  html[data-hero-layout="side-right"] #hero-section .hero-main-grid,
  html[data-hero-layout="side-left"] #hero-section .hero-main-grid{height:440px;min-height:440px}
  html[data-hero-height="cozy"][data-hero-layout="side-right"] #hero-section .hero-main-grid,
  html[data-hero-height="cozy"][data-hero-layout="side-left"] #hero-section .hero-main-grid{height:340px;min-height:340px}
  html[data-hero-height="grand"][data-hero-layout="side-right"] #hero-section .hero-main-grid,
  html[data-hero-height="grand"][data-hero-layout="side-left"] #hero-section .hero-main-grid{height:600px;min-height:600px}
  /* هر دو ستون دقیقاً ارتفاع ردیف را پر کنند */
  html[data-hero-layout="side-right"] #hero-section .hero-slider,
  html[data-hero-layout="side-left"] #hero-section .hero-slider{height:100%;min-height:0}
  html[data-hero-layout="side-right"] #hero-section .hero-banners,
  html[data-hero-layout="side-left"] #hero-section .hero-banners{height:100%}
  /* بنرها سهم مساوی از ارتفاع ستون بگیرند (به‌جای min/max وابسته به محتوا) */
  html[data-hero-layout="side-right"] #hero-section .hero-banner,
  html[data-hero-layout="side-left"] #hero-section .hero-banner{
    flex:1 1 0;min-height:0;max-height:none;
  }
}

/* ── 10) CARD STYLE: bold + soft ─────────────────────────────────────────── */

html[data-card-style="bold"] #page-home .feat-card,
html[data-card-style="bold"] #page-home .pop-card,
html[data-card-style="bold"] #page-home .inf-card{
  border:2px solid var(--primary);
  border-radius:16px;
  box-shadow:0 14px 34px rgba(0,0,0,.28);
  overflow:hidden;
}
html[data-card-style="bold"] #page-home .feat-card:hover,
html[data-card-style="bold"] #page-home .pop-card:hover,
html[data-card-style="bold"] #page-home .inf-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 50px rgba(0,0,0,.38);
}
html[data-card-style="bold"] #page-home .feat-card-badge{
  font-size:.8rem;padding:5px 12px;border-radius:8px;
}

html[data-card-style="soft"] #page-home .feat-card,
html[data-card-style="soft"] #page-home .pop-card,
html[data-card-style="soft"] #page-home .inf-card{
  border:none;
  border-radius:26px;
  box-shadow:0 18px 44px -18px rgba(107,139,255,.38);
  overflow:hidden;
}
html[data-card-style="soft"] #page-home .feat-card:hover,
html[data-card-style="soft"] #page-home .pop-card:hover,
html[data-card-style="soft"] #page-home .inf-card:hover{
  transform:translateY(-8px);
  box-shadow:0 28px 60px -18px rgba(107,139,255,.5);
}

/* ── 12) FOOTER STYLE: gradient (مدرن با نوار گرادیانی) ──────────────────── */
html[data-footer-style="gradient"] #site-footer{position:relative}
html[data-footer-style="gradient"] #site-footer::before{
  content:'';position:absolute;top:0;right:0;left:0;height:3px;
  background:linear-gradient(90deg,transparent,var(--primary),var(--accent),transparent);
}
html[data-footer-style="gradient"] #site-footer .footer-grid{
  grid-template-columns:1.6fr 1fr 1fr 1fr;gap:40px;
}
html[data-footer-style="gradient"] #site-footer .footer-socials .social-link{
  width:42px;height:42px;border-radius:13px;font-size:1.05rem;
}
html[data-footer-style="gradient"] #site-footer .footer-bottom{
  background:linear-gradient(90deg,rgba(107,139,255,.07),rgba(255,107,157,.07));
  border-radius:14px;padding:18px 20px;
}

/* ── 13) NAVBAR STYLE (نوبار بالا — فقط ظاهر) ────────────────────────────── */
/* glass: همان پیش‌فرش شیشه‌ای (بدون اورراید) */
html[data-navbar-style="solid"] #navbar{
  background:var(--bg-nav);
  -webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:0 6px 24px rgba(0,0,0,.18);
}
html[data-navbar-style="minimal"] #navbar{
  background:transparent;
  -webkit-backdrop-filter:none;backdrop-filter:none;
  border-bottom:none;
}
html[data-navbar-style="minimal"] #navbar .navbar-top{padding:10px 0}
html[data-navbar-style="floating"] #navbar{
  background:transparent;border-bottom:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
html[data-navbar-style="floating"] #navbar .navbar-top{
  background:var(--bg-nav);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 14px 40px rgba(0,0,0,.30);
  padding:10px 18px;margin-top:10px;
}

/* navbar sticky: چسبان یا عادی (اسکرول‌پذیر) — فقط position.
   نکته مهم: relative (نه static) تا z-index هدر معتبر بماند و دراپ‌داون
   دسته‌ها/سبد همیشه بالای اسلایدر بیفتد، نه زیر آن. */
html[data-navbar-sticky="static"] #navbar{position:relative;z-index:1000}
html[data-navbar-sticky="static"] main{padding-top:12px}

/* ── 14) BANNER STYLE (بنرهای دوقلوی میانی) ──────────────────────────────── */
/* modern: همان پیش‌فرض (بدون اورراید) */
html[data-banner-style="overlay"] #promo-section .dual-banner-content,
html[data-banner-style="overlay"] #promo-section .dual-banner:first-child .dual-banner-content{
  justify-content:flex-end;align-items:flex-start;
  background:linear-gradient(to top,rgba(0,0,0,.80) 0%,transparent 62%);
  padding:24px;
}
html[data-banner-style="overlay"] #promo-section .dual-banner-title{font-size:1.7rem}
html[data-banner-style="framed"] #promo-section .dual-banner{
  border-radius:8px;
  outline:1px solid var(--border);outline-offset:6px;
}
html[data-banner-style="framed"] #promo-section .dual-banners{gap:28px}

/* ── 15) CATEGORY STYLE (دسته‌بندی‌های محبوب) ────────────────────────────── */
/* circle: همان دایره‌ای پیش‌فرض (بدون اورراید) */
html[data-category-style="card"] #categories-section .cat-item{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px 24px;min-width:150px;
}
html[data-category-style="card"] #categories-section .cat-circle{
  width:64px;height:64px;
}
html[data-category-style="card"] #categories-section .cat-item:hover{
  border-color:var(--primary);transform:translateY(-4px);
}
html[data-category-style="chip"] #categories-section .cats-row{gap:10px}
html[data-category-style="chip"] #categories-section .cat-item{
  flex-direction:row;gap:8px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:99px;
  padding:7px 16px 7px 7px;
}
html[data-category-style="chip"] #categories-section .cat-circle{
  width:34px;height:34px;border-width:2px;
}
html[data-category-style="chip"] #categories-section .cat-name{font-size:.82rem}

/* ── 16) BUTTON STYLE (فرم کلی دکمه‌ها) ──────────────────────────────────── */
/* rounded: همان پیش‌فرض (بدون اورراید) */
html[data-button-style="pill"] #page-home .hero-slide-btn,
html[data-button-style="pill"] #page-home .feat-card-add,
html[data-button-style="pill"] #page-home .pop-card-btn,
html[data-button-style="pill"] #page-home .spotlight-cta,
html[data-button-style="pill"] #page-home .dual-banner-btn{border-radius:99px}
html[data-button-style="sharp"] #page-home .hero-slide-btn,
html[data-button-style="sharp"] #page-home .feat-card-add,
html[data-button-style="sharp"] #page-home .pop-card-btn,
html[data-button-style="sharp"] #page-home .spotlight-cta,
html[data-button-style="sharp"] #page-home .dual-banner-btn{border-radius:6px}

/* ── 17) SECTION GAP (فاصله عمودی سکشن‌ها) ───────────────────────────────── */
/* normal: همان 72px پیش‌فرض (بدون اورراید) */
html[data-section-gap="cozy"] .section{padding:40px 0}
html[data-section-gap="roomy"] .section{padding:110px 0}

/* ── 18) ریسپانسیو v2 ────────────────────────────────────────────────────── */
@media (max-width:900px){
  html[data-hero-style="split"] #hero-section .hero-slide-content{
    max-width:none;margin-inline-start:16px;
  }
  html[data-hero-style="showcase"] #hero-section .hero-slide-content{
    flex-direction:column;align-items:flex-start;gap:8px;padding:16px 18px;
  }
  html[data-hero-style="showcase"] #hero-section .hero-slide-btn{margin-inline-start:0}
  html[data-hero-height="grand"] #hero-section .hero-main-grid,
  html[data-hero-height="grand"] #hero-section .hero-slider{min-height:420px}
  html[data-hero-height="cozy"] #hero-section .hero-main-grid,
  html[data-hero-height="cozy"] #hero-section .hero-slider{min-height:300px}
  html[data-navbar-style="floating"] #navbar .navbar-top{
    border-radius:14px;margin-top:8px;padding:8px 14px;
  }
  html[data-footer-style="gradient"] #site-footer .footer-grid{grid-template-columns:1fr}
  html[data-banner-style="framed"] #promo-section .dual-banners{gap:20px}
  html[data-section-gap="roomy"] .section{padding:72px 0}
}

/* ==========================================================================
   v3 — جزئیات حرفه‌ای (تیتر، هاور، تراکم گرید، مقاله، تب‌بار، بج، اسکرول)
   همه افزودنی و مستقل؛ قوانین v1/v2 دست‌نخورده باقی مانده است.
   NOTE: hover_fx عمداً بعد از card_style آمده تا روی همان specificity برنده
   شود؛ هر دو فقط radius/border/transform را لمس می‌کنند (بدون تغییر چیدمان).
   ========================================================================== */

/* ── 19) TITLE STYLE (تیتر سکشن‌ها) ──────────────────────────────────────── */
/* accent: همان نوار تأکیدی + زیرخط گرادیانی پیش‌فرض (بدون اورراید) */
html[data-title-style="centered"] .section-header{
  flex-direction:column;gap:10px;text-align:center;
}
html[data-title-style="centered"] .section-title{
  padding-right:0;padding-bottom:16px;
}
html[data-title-style="centered"] .section-title::before{display:none}
html[data-title-style="centered"] .section-title::after{
  right:50%;transform:translateX(50%);
}
html[data-title-style="minimal"] .section-title{
  padding-right:0;padding-bottom:0;
}
html[data-title-style="minimal"] .section-title::before,
html[data-title-style="minimal"] .section-title::after{display:none}

/* ── 20) HOVER FX (افکت هاور کارت‌ها: محصول + مقاله + نوار ویژه) ─────────── */
/* lift: بالا پریدن کلاسیک (پیش‌فرض) */
html[data-hover-fx="lift"] #page-home .feat-card:hover,
html[data-hover-fx="lift"] #page-home .pop-card:hover,
html[data-hover-fx="lift"] #page-home .inf-card:hover,
html[data-hover-fx="lift"] #page-home .article-card:hover,
html[data-hover-fx="lift"] #page-home .sp-card:hover{
  transform:translateY(-8px);
  box-shadow:0 24px 48px -18px rgba(0,0,0,.45);
  border-color:var(--primary);
}
html[data-hover-fx="zoom"] #page-home .feat-card:hover,
html[data-hover-fx="zoom"] #page-home .pop-card:hover,
html[data-hover-fx="zoom"] #page-home .inf-card:hover,
html[data-hover-fx="zoom"] #page-home .article-card:hover,
html[data-hover-fx="zoom"] #page-home .sp-card:hover{
  transform:scale(1.03);
  box-shadow:0 18px 44px -14px rgba(0,0,0,.4);
  border-color:var(--primary);
}
html[data-hover-fx="glow"] #page-home .feat-card:hover,
html[data-hover-fx="glow"] #page-home .pop-card:hover,
html[data-hover-fx="glow"] #page-home .inf-card:hover,
html[data-hover-fx="glow"] #page-home .article-card:hover,
html[data-hover-fx="glow"] #page-home .sp-card:hover{
  transform:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--pri-glow,rgba(107,139,255,.18)),0 14px 34px rgba(0,0,0,.3);
}

/* ── 21) GRID DENSITY (تراکم گرید محصولات انتخابی — دسکتاپ) ──────────────── */
/* comfortable: همان ۴ ستونه پیش‌فرض (بدون اورراید) — فقط دسکتاپ تا موبایل
   دو ستونه دست‌نخورده بماند. */
@media (min-width:901px){
  html[data-grid-density="compact"] #showcase-cards-section .featured-grid{
    grid-template-columns:repeat(5,1fr);gap:14px;
  }
  html[data-grid-density="spacious"] #showcase-cards-section .featured-grid{
    grid-template-columns:repeat(3,1fr);gap:28px;
  }
}

/* ── 22) ARTICLE STYLE (کارت‌های مجله) ───────────────────────────────────── */
/* modern: همان پیش‌فرض (بدون اورراید) */
html[data-article-style="minimal"] #page-home .article-card{
  border-radius:10px;box-shadow:none;
}
html[data-article-style="minimal"] #page-home .article-card:hover{
  transform:translateY(-3px);box-shadow:none;border-color:var(--primary);
}
html[data-article-style="glass"] #page-home .article-card{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 12px 36px rgba(0,0,0,.22);
  overflow:hidden;
}
html[data-article-style="glass"] #page-home .article-card-body{
  background:rgba(255,255,255,.03);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
html[data-article-style="glass"] #page-home .article-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 55px rgba(0,0,0,.35);
  border-color:rgba(255,255,255,.28);
}

/* ── 23) TABBAR STYLE (نوبار پایین موبایل) ───────────────────────────────── */
/* docked: همان چسبیده پیش‌فرض (بدون اورراید) — این استایل‌ها فقط وقتی دیده
   می‌شوند که تب‌بار در موبایل نمایش داده شود؛ در دسکتاپ بی‌اثرند. */
html[data-tabbar-style="floating"] .bottom-tabbar{
  background:transparent;border-top:none;
  padding:0 12px calc(12px + env(safe-area-inset-bottom));
}
html[data-tabbar-style="floating"] .bottom-tabbar .tabbar-inner{
  border-radius:22px;
  border:1px solid var(--border);
  box-shadow:0 14px 40px rgba(0,0,0,.35);
  background:var(--bg-card);
}
html[data-tabbar-style="minimal"] .bottom-tabbar{
  background:transparent;border-top:none;
}
html[data-tabbar-style="minimal"] .bottom-tabbar .tabbar-inner{
  background:transparent;border:none;box-shadow:none;
}

/* ── 24) BADGE STYLE (فرم بج تخفیف) ──────────────────────────────────────── */
/* rounded: همان پیش‌فرض (بدون اورراید) */
html[data-badge-style="pill"] #page-home .feat-card-badge,
html[data-badge-style="pill"] #page-home .spotlight-badge{border-radius:99px}
html[data-badge-style="sharp"] #page-home .feat-card-badge,
html[data-badge-style="sharp"] #page-home .spotlight-badge{border-radius:5px}

/* ── 25) SCROLLBAR STYLE (اسکرول‌بار سایت) ───────────────────────────────── */
/* default: همان پیش‌فرض مرورگر/قالب (بدون اورراید) — فقط وب‌کیت + فایرفاکس،
   بدون اثر روی چیدمان یا پرفورمنس. */
html[data-scrollbar-style="slim"]::-webkit-scrollbar,
html[data-scrollbar-style="slim"] ::-webkit-scrollbar{width:6px;height:6px}
html[data-scrollbar-style="slim"]::-webkit-scrollbar-thumb,
html[data-scrollbar-style="slim"] ::-webkit-scrollbar-thumb{
  background:rgba(136,136,136,.45);border-radius:99px;
}
html[data-scrollbar-style="slim"]{scrollbar-width:thin;scrollbar-color:rgba(136,136,136,.55) transparent}
html[data-scrollbar-style="branded"]::-webkit-scrollbar,
html[data-scrollbar-style="branded"] ::-webkit-scrollbar{width:10px;height:10px}
html[data-scrollbar-style="branded"]::-webkit-scrollbar-thumb,
html[data-scrollbar-style="branded"] ::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,var(--primary),var(--accent));
  border-radius:99px;border:2px solid transparent;background-clip:padding-box;
}
html[data-scrollbar-style="branded"]{scrollbar-width:thin;scrollbar-color:var(--primary) transparent}

/* ==========================================================================
   v4 — فیکس‌های گزارش‌شده + مدل‌های تخصصی‌تر
   ۱) فاصله دات‌های اسلایدر از دکمه/متن (باگ هم‌پوشانی)
   ۲) مدل‌های اسلایدر film (نوار فیلم شماره‌دار) و frame (قاب پولاروید)
   ۳) مدل‌های کارت retro و lux
   ۴) گردی کلی قالب (radius_scale)
   ۵) بکگراند ردیف دسته‌ها در همه حالت‌های نوبار + z-index دراپ‌داون
   ۶) تکمیل حالت full (پدینگ موبایل)
   همه افزودنی و مستقل؛ قوانین v1/v2/v3 دست‌نخورده باقی مانده است.
   ========================================================================== */

/* ── 26) فیکس دات‌های اسلایدر ──────────────────────────────────────────────
   محتوا ۳۸px بالاتر می‌نشیند تا دکمه و متن هیچ‌وقت روی دات‌ها نیفتد؛ خود
   دات‌ها کمی پایین‌تر و با فاصله بیشتر. فقط padding/موقعیت است — روی
   چیدمان، ارتفاع و LCP اثر منفی ندارد. */
#hero-section .hero-slide{padding-bottom:38px}
#hero-section .hero-slider-nav{bottom:12px;gap:8px}
/* showcase: نوار کپشن پایین است، پس ناوبری به بالا منتقل می‌شود */
html[data-hero-style="showcase"] #hero-section .hero-slider-nav{top:14px;bottom:auto}

/* ── 27) HERO STYLE: film + frame ────────────────────────────────────────── */

/* film: محتوای بالا + نوار فیلم شماره‌دار (حس اسلایدر حرفه‌ای با بندانگشتی) */
html[data-hero-style="film"] #hero-section .hero-slide{align-items:flex-start}
html[data-hero-style="film"] #hero-section .hero-slide-content{
  margin:18px;max-width:440px;
  background:rgba(8,10,24,.72);
  border:1px solid rgba(255,255,255,.16);
  border-top:3px solid var(--primary);
  border-radius:14px;padding:20px 22px;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
html[data-hero-style="film"] #hero-section .hero-slide-title{font-size:1.55rem}
html[data-hero-style="film"] #hero-section .hero-slider-nav{
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;padding:8px 10px;gap:6px;bottom:12px;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  counter-reset:apSlide;
}
html[data-hero-style="film"] #hero-section .slider-dot{
  width:44px;height:26px;padding:0;opacity:.55;position:relative;
}
html[data-hero-style="film"] #hero-section .slider-dot::after{
  counter-increment:apSlide;content:counter(apSlide);
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  width:auto;height:auto;border-radius:6px;
  font-size:.68rem;font-weight:800;color:#fff;
}
html[data-hero-style="film"] #hero-section .slider-dot.active{opacity:1;width:56px}
html[data-hero-style="film"] #hero-section .slider-dot.active::after{
  background:var(--primary);box-shadow:0 0 0 2px rgba(255,255,255,.35);
}

/* frame: قاب پولاروید دور اسلایدر + کپشن مرکزی */
html[data-hero-style="frame"] #hero-section .hero-slider{
  border:10px solid var(--bg-card);
  outline:1px solid var(--border);
  box-shadow:0 30px 70px -20px rgba(0,0,0,.5);
}
html[data-hero-style="frame"] #hero-section .hero-slide{
  align-items:center;justify-content:center;
}
html[data-hero-style="frame"] #hero-section .hero-slide-content{
  width:auto;max-width:540px;margin:0 20px;
  text-align:center;display:flex;flex-direction:column;align-items:center;
  background:rgba(8,10,24,.66);
  border:1px solid rgba(255,255,255,.20);
  border-radius:16px;padding:22px 28px;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
html[data-hero-style="frame"] #hero-section .slider-dot{
  width:10px;height:10px;border-radius:50%;
}

/* ── 28) CARD STYLE: retro + lux ─────────────────────────────────────────── */

/* retro: نئو-بروتالیست — قاب ضخیم هم‌رنگ متن + سایه سخت رنگی */
html[data-card-style="retro"] #page-home .feat-card,
html[data-card-style="retro"] #page-home .pop-card,
html[data-card-style="retro"] #page-home .inf-card{
  border:2px solid var(--text);
  border-radius:12px;
  box-shadow:6px 6px 0 var(--primary);
  overflow:hidden;
}
html[data-card-style="retro"] #page-home .feat-card:hover,
html[data-card-style="retro"] #page-home .pop-card:hover,
html[data-card-style="retro"] #page-home .inf-card:hover{
  transform:translate(-2px,-2px);
  box-shadow:9px 9px 0 var(--primary);
  border-color:var(--text);
}

/* lux: لوکس — نوار طلایی بالا + سایه عمیق مخملی */
html[data-card-style="lux"] #page-home .feat-card,
html[data-card-style="lux"] #page-home .pop-card,
html[data-card-style="lux"] #page-home .inf-card{
  border:1px solid var(--border);
  border-top:3px solid var(--accent);
  border-radius:20px;
  box-shadow:0 20px 50px -18px rgba(0,0,0,.5);
  overflow:hidden;
}
html[data-card-style="lux"] #page-home .feat-card:hover,
html[data-card-style="lux"] #page-home .pop-card:hover,
html[data-card-style="lux"] #page-home .inf-card:hover{
  transform:translateY(-6px);
  box-shadow:0 30px 60px -18px rgba(0,0,0,.55);
  border-color:var(--border);
  border-top-color:var(--accent);
}

/* ── 29) RADIUS SCALE (گردی کلی قالب) ───────────────────────────────────────
   متغیرهای گردی را بازنویسی می‌کند؛ چون قالب اصلی (body) آن‌ها را inline
   ست کرده، این‌جا !important لازم است — فقط روی custom-property اثر دارد و
   هیچ قانون چیدمانی را لمس نمی‌کند. rounded = پیش‌فرض (بدون اورراید). */
html[data-radius-scale="sharp"] body{
  --radius:8px!important;--radius-sm:5px!important;--radius-lg:10px!important;
  --r:8px!important;--r2:8px!important;--r3:8px!important;
}
html[data-radius-scale="soft"] body{
  --radius:22px!important;--radius-sm:14px!important;--radius-lg:26px!important;
  --r:22px!important;--r2:22px!important;--r3:22px!important;
}
html[data-radius-scale="pill"] body{
  --radius:28px!important;--radius-sm:20px!important;--radius-lg:32px!important;
  --r:28px!important;--r2:28px!important;--r3:28px!important;
}
/* سطوحی که گردی‌شان hardcode است (نه متغیر) — فقط border-radius، بدون چیدمان */
html[data-radius-scale="sharp"] body #hero-section .hero-slide-content,
html[data-radius-scale="sharp"] body #hero-section .hero-slider-nav,
html[data-radius-scale="sharp"] body #page-home .feat-card,
html[data-radius-scale="sharp"] body #page-home .pop-card,
html[data-radius-scale="sharp"] body #page-home .inf-card,
html[data-radius-scale="sharp"] body #page-home .article-card,
html[data-radius-scale="sharp"] body #navbar .navbar-top,
html[data-radius-scale="sharp"] body #promo-section .dual-banner{border-radius:8px!important;overflow:hidden}
html[data-radius-scale="sharp"] body #page-home .feat-card,
html[data-radius-scale="sharp"] body #page-home .pop-card,
html[data-radius-scale="sharp"] body #page-home .inf-card,
html[data-radius-scale="sharp"] body #page-home .article-card{overflow:hidden}
html[data-radius-scale="soft"] body #hero-section .hero-slide-content,
html[data-radius-scale="soft"] body #hero-section .hero-slider-nav,
html[data-radius-scale="soft"] body #page-home .feat-card,
html[data-radius-scale="soft"] body #page-home .pop-card,
html[data-radius-scale="soft"] body #page-home .inf-card,
html[data-radius-scale="soft"] body #page-home .article-card,
html[data-radius-scale="soft"] body #navbar .navbar-top,
html[data-radius-scale="soft"] body #promo-section .dual-banner{border-radius:22px!important;overflow:hidden}
html[data-radius-scale="soft"] body #page-home .feat-card,
html[data-radius-scale="soft"] body #page-home .pop-card,
html[data-radius-scale="soft"] body #page-home .inf-card,
html[data-radius-scale="soft"] body #page-home .article-card{overflow:hidden}
html[data-radius-scale="pill"] body #hero-section .hero-slide-content,
html[data-radius-scale="pill"] body #hero-section .hero-slider-nav,
html[data-radius-scale="pill"] body #page-home .feat-card,
html[data-radius-scale="pill"] body #page-home .pop-card,
html[data-radius-scale="pill"] body #page-home .inf-card,
html[data-radius-scale="pill"] body #page-home .article-card,
html[data-radius-scale="pill"] body #navbar .navbar-top,
html[data-radius-scale="pill"] body #promo-section .dual-banner{border-radius:26px!important;overflow:hidden}
html[data-radius-scale="pill"] body #page-home .feat-card,
html[data-radius-scale="pill"] body #page-home .pop-card,
html[data-radius-scale="pill"] body #page-home .inf-card,
html[data-radius-scale="pill"] body #page-home .article-card{overflow:hidden}

/* ── 30) نوبار: بکگراند ردیف دسته‌ها + z-index دراپ‌داون ────────────────────
   ردیف دسته‌ها (.navbar-bottom) بکگراند مستقل می‌گیرد تا در حالت‌های شفاف
   (minimal/floating) ناپدید نشود؛ دراپ‌داون‌ها z-index صریح می‌گیرند تا در
   همه حالت‌ها بالای اسلایدر بیفتند. */
#navbar .navbar-bottom{
  background:var(--bg-nav);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
#navbar .nav-dropdown,
#navbar .cart-dropdown{z-index:5}
html[data-navbar-style="minimal"] #navbar .navbar-bottom{
  border-radius:0 0 18px 18px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
html[data-navbar-style="floating"] #navbar .navbar-bottom{
  background:var(--bg-nav);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 14px 40px rgba(0,0,0,.30);
}
html[data-navbar-style="solid"] #navbar .navbar-bottom{
  -webkit-backdrop-filter:none;backdrop-filter:none;
}

/* ── 31) ریسپانسیو v4 ────────────────────────────────────────────────────── */
@media (max-width:900px){
  html[data-hero-layout="full"] #hero-section .container{padding:0 12px}
  html[data-hero-style="film"] #hero-section .hero-slide-content{
    margin:12px;max-width:none;padding:16px 18px;
  }
  html[data-hero-style="film"] #hero-section .slider-dot{width:36px}
  html[data-hero-style="film"] #hero-section .slider-dot.active{width:46px}
  html[data-hero-style="frame"] #hero-section .hero-slider{border-width:6px}
  html[data-hero-style="frame"] #hero-section .hero-slide-content{
    margin:0 12px;padding:16px 18px;
  }
}
@media (max-width:768px){
  #hero-section .hero-slide{padding-bottom:54px}
  #hero-section .hero-slider-nav{bottom:14px}
  html[data-hero-style="showcase"] #hero-section .hero-slider-nav{top:10px}
}

/* ==========================================================================
   v5 — موقعیت ناوبری اسلایدر، افکت تعویض اسلاید، سکون کامل در none
   همه افزودنی و مستقل؛ قوانین v1 تا v4 دست‌نخورده باقی مانده است.
   NOTE: خنثی‌سازی هاور در none عمداً این‌جا (بعد از hover_fx) آمده تا با
   specificity برابر برنده شود؛ فقط transform خنثی می‌شود (سایه/قاب می‌ماند).
   ========================================================================== */

/* ── 32) SLIDER NAV (جای دات‌های اسلایدر) ────────────────────────────────── */
/* bottom: همان پایین‌وسط پیش‌فرض (بدون اورراید) */
html[data-slider-nav="side"] #hero-section .hero-slider-nav{
  left:16px;right:auto;top:50%;bottom:auto;
  transform:translateY(-50%);flex-direction:column;
}
html[data-slider-nav="top"] #hero-section .hero-slider-nav{top:14px;bottom:auto}

/* ── 33) SLIDE FX (افکت تعویض اسلاید) ────────────────────────────────────── */
/* fade: همان محو پیش‌فرض (بدون اورراید) */
html[data-slide-fx="glide"] #hero-section .hero-slide{
  transform:translateX(70px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.22,.8,.3,1);
}
html[data-slide-fx="glide"] #hero-section .hero-slide.active{transform:none}

/* ── 35) ریسپانسیو v5: ناوبری کناری در موبایل به پایین برمی‌گردد ─────────── */
@media (max-width:768px){
  html[data-slider-nav="side"] #hero-section .hero-slider-nav{
    left:50%;right:auto;top:auto;bottom:14px;
    transform:translateX(-50%);flex-direction:row;
  }
}

/* ==========================================================================
   v6 — فیکس‌های گزارش‌شده روی فرانت اصلی (همیشه فعال، بدون data-attribute)
   ۳۶) تب‌بار موبایل: دکمه خانه نباید زیر کادر برود (overflow نگهبان)
   ۳۷) صفحه محصولات: padding-top فقط دسکتاپ (اورراید استایل inline)
   ۳۸) گرید محصولات: دسکتاپ ۲ / تبلت ۲ / موبایل ۱ (اسکوپ دقیق)
   ۳۹) فیلتر تبلت: جمع‌شونده مثل موبایل (همان مکانیزم toggle+open)
   ۴۰) فوتر: حذف خط جداکننده و کوچک‌کردن فاصله بالا/پایین
   همه فقط padding/overflow/columns/display هستند؛ هیچ منطق/JS/کوئری‌ای
   تغییر نمی‌کند و پرفورمنس/LCP دست‌نخورده می‌ماند.
   ========================================================================== */

/* ── 36) تب‌بار: دکمه خانه همیشه کامل دیده شود ─────────────────────────────
   دکمه خانه با margin منفی از کادر بیرون می‌زند؛ هر overflow:hidden روی
   والدها آن را نصف می‌کند. این نگهبان، رفتار پیش‌فرض (visible) را تضمین
   می‌کند. */
.bottom-tabbar,
.bottom-tabbar .tabbar-inner{overflow:visible}

/* ── 37) صفحه محصولات: حذف ۱۲۰px اضافه در تبلت/موبایل ──────────────────────
   مارکاپ padding-top:120px را inline دارد؛ قالب موبایل/تبلت خودش main را به
   72px جمع کرده، پس این ۱۲۰px اضافه، فاصله خالی بزرگ می‌ساخت. !important
   فقط برای غلبه بر inline لازم است. دسکتاپ دست‌نخورده می‌ماند. */
@media (max-width:1024px){
  #page-products.page{padding-top:0!important}
}

/* ── 38) گرید محصولات: ۲ / ۲ / ۱ ───────────────────────────────────────────
   اسکوپ #page-products باعث می‌شود گرید خانه/جستجو و بقیه صفحه‌ها هیچ
   تغییری نکنند (specificity بالاتر از همه قوانین عمومی .prod-grid). */
#page-products .prod-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:769px) and (max-width:1024px){
  #page-products .prod-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
  #page-products .prod-grid{grid-template-columns:1fr}
}

/* ── 39) فیلتر تبلت: جمع‌شونده با فلش، دقیقاً مثل موبایل ────────────────────
   دکمه toggle و کلاس open از قبل در مارکاپ و JS هستند (مستقل از viewport)؛
   این‌جا فقط همان قوانین موبایل برای بازه تبلت تکرار می‌شود. */
@media (min-width:769px) and (max-width:1024px){
  #page-products .listing-filters{
    position:static;
    padding:0;
    overflow:hidden;
  }
  #page-products .listing-filters-title{display:none}
  #page-products .listing-filters-toggle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    width:100%;
    padding:14px 16px;
    background:transparent;
    border:none;
    font-family:inherit;
    font-size:.95rem;
    font-weight:800;
    color:var(--txt,var(--text));
    cursor:pointer;
    text-align:right;
  }
  #page-products .listing-filters-toggle:hover{color:var(--pri,var(--primary))}
  #page-products .listing-filters-arrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    border-radius:50%;
    background:var(--primary-alpha-08,rgba(185,28,58,.08));
    color:var(--pri,var(--primary));
    font-size:.8rem;
    flex-shrink:0;
    transition:transform .3s var(--eOut,ease);
  }
  #page-products .listing-filters.open .listing-filters-arrow{transform:rotate(180deg)}
  #page-products .listing-filters-body{display:none;padding:0 16px 18px}
  #page-products .listing-filters.open .listing-filters-body{display:block}
}

/* ── 40) فوتر: حذف خط و جمع‌وجور شدن فاصله ─────────────────────────────────
   خط border-bottom گرید + padding ۴۸px فاصله زیادی بین بالا و پایین فوتر
   انداخته بود؛ خط برداشته و فاصله‌ها متعادل شد. */
#site-footer .footer-grid{padding-bottom:28px;border-bottom:none}
#site-footer .footer-bottom{padding:14px 0}

/* ==========================================================================
   v7 — توست/الررت سراسری بالا-راست (#toast-stack)
   جایگزین توست پایین‌وسط قبلی: پایدار در برابر تولبار سافاری (top به‌جای
   bottom)، safe-area آیفون، هماهنگ با تم (متغیرهای قالب)، انیمیشن فقط با
   transform/opacity، احترام به prefers-reduced-motion. منطق ضدتکرار و سقف
   ۳ پیام داخل خود تابع showToast است؛ این‌جا فقط ظاهر است.
   ========================================================================== */
.toast-stack{
  position:fixed;top:calc(86px + env(safe-area-inset-top,0px));right:16px;left:auto;
  z-index:100000;display:flex;flex-direction:column;gap:10px;align-items:flex-end;
  pointer-events:none;max-width:min(380px,calc(100vw - 32px));
}
.tst{
  pointer-events:auto;direction:rtl;text-align:right;
  display:flex;align-items:center;gap:10px;
  background:var(--bg-card,#fff);
  border:1px solid var(--border,#e5e5e5);
  border-inline-start:3px solid var(--primary,#b91c3a);
  border-radius:14px;padding:12px 14px;
  box-shadow:0 18px 44px rgba(0,0,0,.25);
  color:var(--text,#1a1214);font-size:.86rem;font-weight:700;
  cursor:pointer;max-width:100%;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  animation:tstIn .32s cubic-bezier(.22,.9,.3,1.15) both;
}
.tst-ico{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;flex-shrink:0;border-radius:50%;
  background:var(--primary-alpha-12,rgba(185,28,58,.12));font-size:1rem;
}
.tst-txt{flex:1;line-height:1.8;min-width:0}
.tst-x{
  flex-shrink:0;width:22px;height:22px;display:inline-flex;align-items:center;
  justify-content:center;border-radius:50%;
  background:rgba(136,136,136,.14);font-size:.65rem;opacity:.7;
}
.tst.out{animation:tstOut .24s ease forwards}
@keyframes tstIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes tstOut{to{opacity:0;transform:translateX(24px)}}
@media (max-width:520px){
  .toast-stack{
    right:10px;left:10px;top:calc(78px + env(safe-area-inset-top,0px));
    max-width:none;align-items:stretch;
  }
  .tst{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .tst,.tst.out{animation-duration:.01ms}
}

/* ==========================================================================
   v8 — حذف شد.
   تب/کلید «انیمیشن» (anim_style) به‌طور کامل از پنل ادمین و بک‌اند برداشته شد،
   بنابراین بلوک اسکرول‌ریویل قبلی (amReveal*) هم حذف شد. چیدمان، سرعت و
   ظاهر بقیهٔ بخش‌ها دست‌نخورده است.
   ========================================================================== */
