/* ============================================================
   components/feature-cards.css — اسلایدر ویژگی‌ها (دسکتاپ + موبایل)
   ============================================================ */

.bz-feature-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
    border: 1px solid var(--color-border, #e2e8f0);
    direction: ltr;
    box-sizing: border-box;
    /* جلوگیری از بیرون‌زدن از لایه والد در موبایل */
    min-width: 0;
    isolation: isolate;
}

.bz-feature-slider__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    max-width: none;
    padding: 12px;
    box-sizing: border-box;
    animation: bz-feature-scroll 60s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.bz-feature-slider:hover .bz-feature-slider__track {
    animation-play-state: paused;
}

.bz-feature-slider--no-pause:hover .bz-feature-slider__track {
    animation-play-state: running;
}

@keyframes bz-feature-scroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.bz-feature-card {
    flex: 0 0 auto;
    width: 200px;
    max-width: 70vw;
    background: var(--color-bg-card, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
    border: 1px solid var(--color-border, #e8eef5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.bz-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(26, 115, 232, 0.12);
    z-index: 2;
}

.bz-feature-card__img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: var(--color-bg-hover, #f1f5f9);
    /* جلوگیری از کشیده شدن تصویر در موبایل */
    -webkit-user-drag: none;
    pointer-events: none;
}

.bz-feature-card__body {
    padding: 8px 10px 10px;
    text-align: center;
    direction: rtl;
    min-width: 0;
}

.bz-feature-card__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary, #1a73e8);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bz-feature-card__desc {
    margin: 2px 0 0;
    font-size: 0.72rem;
    color: var(--color-text-muted, #64748b);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bz-feature-slider__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 3;
}
.bz-feature-slider__fade--left {
    left: 0;
    background: linear-gradient(to right, rgba(248,250,252,0.95), transparent);
}
.bz-feature-slider__fade--right {
    right: 0;
    background: linear-gradient(to left, rgba(248,250,252,0.95), transparent);
}

/* ---- تبلت ---- */
@media (max-width: 992px) {
    .bz-feature-slider {
        margin-bottom: 12px;
        border-radius: 12px;
    }
    .bz-feature-card {
        width: 170px;
    }
    .bz-feature-card__img {
        height: 115px;
    }
}

/* ---- موبایل: اصلاح اصلی نمایش ---- */
@media (max-width: 768px) {
    .bz-feature-slider {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px !important;
        border-radius: 10px;
        /* اگر والد overflow ایجاد کند، خود اسلایدر محدود بماند */
        overflow: hidden !important;
    }

    .bz-feature-slider__track {
        gap: 10px;
        padding: 10px;
        animation-duration: 45s;
        /* در موبایل hover معنی ندارد؛ همیشه حرکت کند مگر reduced-motion */
        animation-play-state: running !important;
    }

    .bz-feature-slider:hover .bz-feature-slider__track {
        animation-play-state: running;
    }

    .bz-feature-card {
        width: 148px !important;
        max-width: 42vw;
        border-radius: 10px;
    }

    .bz-feature-card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
    }

    .bz-feature-card__img {
        height: 96px;
    }

    .bz-feature-card__title {
        font-size: 0.75rem;
    }

    .bz-feature-card__desc {
        font-size: 0.68rem;
    }

    .bz-feature-slider__fade {
        width: 18px;
    }
}

@media (max-width: 400px) {
    .bz-feature-card {
        width: 132px !important;
        max-width: 46vw;
    }
    .bz-feature-card__img {
        height: 88px;
    }
}

/* والد صفحه اصلی نباید باعث اسکرول افقی شود */
.home-content .bz-feature-slider,
.shops-dir .bz-feature-slider,
#homeContent .bz-feature-slider {
    max-width: 100%;
    min-width: 0;
}

.home-content,
#homeContent,
.home-content-scroll {
    max-width: 100%;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .bz-feature-slider__track {
        animation: none !important;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    .bz-feature-card {
        width: calc(50% - 8px) !important;
        max-width: none;
    }
}

/* ============================================================
   پیشنهادهای شگفت‌انگیز — ریل عمودی سمت چپ صفحه اصلی
   ============================================================ */

.bz-amazing-offers {
    width: 200px;
    max-width: 100%;
    flex: 0 0 200px;
    align-self: stretch;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 96px);
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 100%);
    border: 1px solid var(--color-border, #fed7aa);
    box-sizing: border-box;
    direction: rtl;
    min-width: 0;
}

.bz-amazing-offers__head {
    padding: 10px 12px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
    background: rgba(255, 255, 255, 0.7);
}

.bz-amazing-offers__head h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--color-primary, #f97316);
    line-height: 1.3;
}

.bz-amazing-offers__viewport {
    position: relative;
    overflow: hidden;
    height: calc(100% - 44px);
    min-height: 320px;
}

.bz-amazing-offers__track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    animation: bz-amazing-scroll 35s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.bz-amazing-offers:hover .bz-amazing-offers__track {
    animation-play-state: paused;
}

.bz-amazing-offers--no-pause:hover .bz-amazing-offers__track {
    animation-play-state: running;
}

@keyframes bz-amazing-scroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -50%, 0); }
}

.bz-amazing-card {
    flex: 0 0 auto;
    width: 100%;
    background: var(--color-bg-card, #fff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border, #e8eef5);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.bz-amazing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
}

.bz-amazing-card__img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #f1f5f9;
}

.bz-amazing-card__body {
    padding: 8px 10px 10px;
    text-align: center;
}

.bz-amazing-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

.bz-amazing-card__title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text, #0f172a);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bz-amazing-card__desc {
    margin: 3px 0 0;
    font-size: 0.7rem;
    color: var(--color-text-muted, #64748b);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* در layout اصلی: ستون سوم سمت چپ (RTL) */
.home-layout {
    align-items: flex-start;
}

/* legacy vertical amazing breakpoints disabled — see RESPONSIVE-4PROMO */

@media (prefers-reduced-motion: reduce) {
    .bz-amazing-offers__track {
        animation: none !important;
    }
}

/* ========== How it Works — گرید کارت ========== */
.bz-feature-slider--hiw {
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 0 12px;
}
.bz-hiw__head {
  text-align: center;
  margin-bottom: 14px;
}
.bz-hiw__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.bz-hiw__sub {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}
.bz-hiw__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.bz-hiw-card {
  position: relative;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bz-hiw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  border-color: #fed7aa;
}
.bz-hiw-card__step {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(249,115,22,.35);
}
.bz-hiw-card__media {
  height: 120px;
  background: #f8fafc;
  overflow: hidden;
}
.bz-hiw-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bz-hiw-card__body {
  padding: 10px 12px 12px;
}
.bz-hiw-card__title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}
.bz-hiw-card__desc {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

/* ========== گالری + لایت‌باکس ========== */
.bz-feature-slider--gallery {
  overflow: visible !important;
  height: auto !important;
  padding: 6px 0 10px;
}
.bz-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.bz-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bz-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15,23,42,.1);
  border-color: #fdba74;
}
.bz-gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.bz-gallery-item__cap {
  display: block;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-gallery-item__zoom {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15,23,42,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity .15s;
}
.bz-gallery-item:hover .bz-gallery-item__zoom { opacity: 1; }

.bz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bz-lightbox[hidden] { display: none !important; }
.bz-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
}
.bz-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(920px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bz-lightbox__img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  object-fit: contain;
  background: #0f172a;
}
.bz-lightbox__meta {
  margin-top: 12px;
  text-align: center;
  color: #f8fafc;
}
.bz-lightbox__meta strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.bz-lightbox__meta p {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}
.bz-lightbox__close {
  position: absolute;
  top: -40px;
  left: 0;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
.bz-lightbox__nav {
  position: absolute;
  top: 40%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
.bz-lightbox__prev { right: -48px; }
.bz-lightbox__next { left: -48px; }
body.bz-lb-open { overflow: hidden; }

@media (max-width: 768px) {
  .bz-hiw__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bz-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .bz-lightbox__prev { right: 4px; }
  .bz-lightbox__next { left: 4px; }
  .bz-lightbox__close { top: 8px; left: 8px; }
}

/* ============================================================
   ساختار یکپارچه تبلیغات (bz-promo)
   ============================================================ */

.bz-promo {
  direction: rtl;
  width: 100%;
  min-width: 0;
}
.bz-promo__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}
.bz-promo__bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fb923c);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
  flex-shrink: 0;
}
.bz-promo__bar-label { flex: 1; }
.bz-promo__bar-meta {
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.72rem;
}
.bz-promo__body {
  width: 100%;
  min-width: 0;
}
.bz-promo__footer {
  display: flex;
  justify-content: center;
  padding: 0 12px 8px;
}
.bz-promo__hint {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}
.bz-promo__hint i { margin-left: 4px; color: #f97316; }

/* hero viewport */
.bz-feature-slider__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  direction: ltr;
}
.bz-feature-slider--hero {
  background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 55%, #eff6ff 100%);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  overflow: hidden;
}
.bz-feature-slider--hero .bz-promo__bar {
  background: transparent;
}
.bz-feature-card__media {
  position: relative;
  overflow: hidden;
}
.bz-feature-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f97316;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(249,115,22,.35);
}
a.bz-feature-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.bz-feature-card--link:hover {
  transform: translateY(-4px);
}

/* How it Works — ساختار تمیزتر */
.bz-feature-slider--hiw {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  height: auto !important;
}
.bz-hiw {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 14px 18px;
}
.bz-hiw__head {
  text-align: center;
  margin-bottom: 14px;
}
.bz-hiw__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.bz-hiw__sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #64748b;
}
.bz-hiw__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.bz-hiw-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  text-decoration: none;
  color: inherit;
}
.bz-hiw-card:hover {
  transform: translateY(-3px);
  border-color: #fdba74;
  box-shadow: 0 10px 24px rgba(249,115,22,.12);
}
.bz-hiw-card__step {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(234,88,12,.35);
}
.bz-hiw-card__media {
  height: 100px;
  overflow: hidden;
  background: #e2e8f0;
}
.bz-hiw-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bz-hiw-card__body {
  padding: 10px 10px 12px;
  text-align: center;
}
.bz-hiw-card__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.35;
}
.bz-hiw-card__desc {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gallery */
.bz-feature-slider--gallery {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  height: auto !important;
}
.bz-gallery {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
}
.bz-gallery__head {
  text-align: center;
  margin-bottom: 12px;
}
.bz-gallery__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}
.bz-gallery__sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #64748b;
}
.bz-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.bz-gallery-item {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #f1f5f9;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bz-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,.12);
}
.bz-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bz-gallery-item__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(transparent, rgba(15,23,42,.75));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}
.bz-gallery-item__zoom {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity .15s;
}
.bz-gallery-item:hover .bz-gallery-item__zoom { opacity: 1; }

/* Lightbox */
.bz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bz-lightbox[hidden] { display: none !important; }
.bz-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(4px);
}
.bz-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(920px, 96vw);
  max-height: 92vh;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
}
.bz-lightbox__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  max-height: 70vh;
  background: #020617;
}
.bz-lightbox__img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}
.bz-lightbox__meta {
  padding: 12px 16px 16px;
  color: #e2e8f0;
  text-align: center;
}
.bz-lightbox__meta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}
.bz-lightbox__meta p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}
.bz-lightbox__link {
  display: inline-block;
  margin-top: 10px;
  color: #fdba74;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}
.bz-lightbox__close,
.bz-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.bz-lightbox__close:hover,
.bz-lightbox__nav:hover {
  background: rgba(255,255,255,.22);
}
.bz-lightbox__close {
  top: 12px;
  left: 12px;
}
.bz-lightbox__prev { top: 50%; right: 12px; transform: translateY(-50%); }
.bz-lightbox__next { top: 50%; left: 12px; transform: translateY(-50%); }
body.bz-lightbox-open { overflow: hidden; }

/* موقعیت بالا / پایین */
.bz-feature-slider[data-position="bottom"] {
  margin-top: 16px;
  margin-bottom: 8px;
}
.bz-feature-slider[data-position="top"] {
  margin-bottom: 10px;
}
.bz-feature-slider.is-empty {
  display: none !important;
}

@media (max-width: 640px) {
  .bz-hiw__grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
  .bz-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
  }
  .bz-promo__bar {
    padding: 6px 10px 0;
    font-size: 0.72rem;
  }
  .bz-hiw-card__media { height: 84px; }
}

/* ============================================================
   حالت بنر — عرض و ارتفاع قابل تنظیم از پنل
   ============================================================ */
.bz-feature-slider--banner {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  height: auto !important;
  direction: rtl;
}
.bz-feature-slider--banner .bz-promo__body {
  display: flex;
  justify-content: center;
}
.bz-banner {
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
}
.bz-banner__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.bz-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.bz-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.bz-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.bz-banner__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 16px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
  color: #fff;
  text-align: center;
  direction: rtl;
}
.bz-banner__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.bz-banner__desc {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
}
.bz-banner__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.85;
  transition: opacity 0.15s, background 0.15s;
}
.bz-banner__nav:hover { opacity: 1; background: #fff; }
.bz-banner__nav--prev { right: 12px; }
.bz-banner__nav--next { left: 12px; }
.bz-banner__dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.bz-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.bz-banner__dot.is-active {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}
@media (max-width: 768px) {
  .bz-banner {
    border-radius: 12px;
  }
  .bz-banner__nav {
    width: 32px;
    height: 32px;
  }
  .bz-banner__title { font-size: 0.92rem; }
  .bz-banner__desc { font-size: 0.75rem; }
}

/* ============================================================
   پیشنهادهای شگفت‌انگیز — ارتقا
   ============================================================ */
.bz-amazing-offers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 40%);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 10px;
  box-sizing: border-box;
}
.bz-amazing-offers.is-empty { display: none !important; }
.bz-amazing-offers__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px;
}
.bz-amazing-offers__head h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bz-amazing-offers__head h3 i { color: #f97316; }
.bz-amazing-offers__count {
  background: #f97316;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 8px;
}
.bz-amazing-offers__viewport {
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 120px;
  max-height: min(52vh, 520px);
  border-radius: 12px;
}
.bz-amazing-offers__track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: bz-amazing-scroll 35s linear infinite;
  will-change: transform;
}
.bz-amazing-offers:hover .bz-amazing-offers__track {
  animation-play-state: paused;
}
.bz-amazing-offers--no-pause:hover .bz-amazing-offers__track {
  animation-play-state: running;
}
.bz-amazing-offers--static .bz-amazing-offers__track {
  animation: none !important;
}
@keyframes bz-amazing-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}
.bz-amazing-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid #ffedd5;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(249,115,22,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.bz-amazing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249,115,22,.14);
}
.bz-amazing-card__media {
  height: 90px;
  overflow: hidden;
  background: #fff7ed;
}
.bz-amazing-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bz-amazing-card__body {
  padding: 8px 10px 10px;
  direction: rtl;
}
.bz-amazing-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: #f97316;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(249,115,22,.3);
}
.bz-amazing-card__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #9a3412;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-amazing-card__desc {
  margin: 3px 0 0;
  font-size: 0.72rem;
  color: #78716c;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bz-amazing-offers__empty {
  padding: 18px 10px;
  text-align: center;
  color: #a8a29e;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.bz-amazing-offers__empty i { font-size: 1.4rem; color: #fdba74; }
.bz-amazing-offers__request-btn {
  width: 100%;
  border: 1px dashed #fdba74;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.bz-amazing-offers__request-btn:hover {
  background: #ffedd5;
  border-color: #f97316;
}

/* مودال درخواست کاربر */
.bz-ao-request-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bz-ao-request-modal[hidden] { display: none !important; }
.bz-ao-request-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
}
.bz-ao-request-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 94vw);
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px 16px;
  box-shadow: 0 24px 60px rgba(15,23,42,.3);
  direction: rtl;
  max-height: 90vh;
  overflow-y: auto;
}
.bz-ao-request-dialog h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.bz-ao-request-hint {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
}
.bz-ao-request-close {
  position: absolute;
  top: 10px;
  left: 12px;
  border: none;
  background: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: #475569;
  line-height: 1;
}
.bz-ao-request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bz-ao-request-msg {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.bz-ao-request-msg.is-ok { background: #ecfdf5; color: #047857; }
.bz-ao-request-msg.is-error { background: #fef2f2; color: #b91c1c; }

@media (max-width: 992px) {
  .bz-amazing-offers {
    max-height: none;
  }
  .bz-amazing-offers__viewport {
    max-height: 280px;
  }
}

/* موقعیت فوتر */
.bz-feature-slider--footer,
.bz-feature-slider[data-position="footer"] {
  margin: 16px auto 12px;
  width: 100%;
  max-width: 1400px;
}
.bz-feature-slider--banner {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  height: auto !important;
}
.bz-feature-slider--banner .bz-promo__body {
  display: flex;
  justify-content: center;
}

/* ========== بنر موبایل — رفع برش و اسکرول افقی ========== */
@media (max-width: 768px) {
  .bz-feature-slider--banner,
  .bz-feature-slider[data-mode="banner"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .bz-feature-slider--banner .bz-promo,
  .bz-feature-slider--banner .bz-promo__body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .bz-banner {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 140px;
    max-height: none !important; /* respect panel frame height */
    border-radius: 12px !important;
    margin: 0 auto !important;
  }
  .bz-banner__viewport {
    width: 100% !important;
    height: 100% !important;
    min-height: 140px;
    max-height: none !important; /* respect panel frame height */
  }
  .bz-banner__slide {
    width: 100% !important;
  }
  .bz-banner__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: var(--bz-img-fit, cover) !important;
    object-position: center center !important;
  }
  .bz-banner__caption {
    padding: 8px 12px !important;
  }
  .bz-banner__title { font-size: 0.85rem !important; }
  .bz-banner__desc { font-size: 0.72rem !important; display: none; }
  .bz-banner__nav {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
  }
  .bz-banner__dots { bottom: 6px !important; }
}

@media (max-width: 480px) {
  .bz-banner,
  .bz-banner__viewport {
    /* ارتفاع از --bz-frame-h تنظیمات؛ سقف سخت حذف شد */
    min-height: 100px;
  }
}

/* PROMO-REDESIGN-2026-11-04 — هم‌تراز تنظیمات اسلاید پنل */
.home-top-promo {
  width: 100%;
  max-width: 100%;
  padding: 0 12px 8px;
  box-sizing: border-box;
}
.bz-feature-slider {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 12px;
  box-sizing: border-box;
}
.bz-feature-slider[hidden]:not(.bz-feature-slider--ready),
.bz-feature-slider.is-empty {
  display: none !important;
}
.bz-feature-slider--ready {
  display: block !important;
  visibility: visible !important;
}
.bz-promo {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.bz-promo__body {
  width: 100%;
}
/* Banner mode — ارتفاع دقیق از تنظیمات */
.bz-banner {
  position: relative;
  width: 100% !important;
  max-width: var(--bz-banner-w, 1200px) !important;
  height: var(--bz-banner-h, 320px) !important;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}
.bz-banner__viewport {
  position: relative;
  width: 100%;
  height: 100% !important;
  overflow: hidden;
}
.bz-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.bz-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.bz-banner__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--bz-img-fit, cover) !important;
  object-position: center !important;
  display: block;
}
.bz-banner__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(15,23,42,.72));
  color: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bz-banner__title { font-size: 1.05rem; font-weight: 700; }
.bz-banner__desc { font-size: 0.85rem; opacity: 0.92; }
.bz-banner__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.bz-banner__nav--prev { right: 10px; }
.bz-banner__nav--next { left: 10px; }
.bz-banner__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
}
.bz-banner__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
}
.bz-banner__dot.is-active { background: #fff; width: 18px; border-radius: 6px; }

/* Hero marquee */
.bz-feature-slider__viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.bz-feature-slider__track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}
.bz-feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bz-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,.1);
}
.bz-feature-card__media {
  overflow: hidden;
  background: #f1f5f9;
}
.bz-feature-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.bz-feature-card__body { padding: 10px 12px 12px; }
.bz-feature-card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.bz-feature-card__desc {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bz-feature-card__badge {
  position: absolute;
  top: 8px; right: 8px;
  background: #f97316;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
}
.bz-feature-card__media { position: relative; }

/* Amazing offers column */
.bz-amazing-offers {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15,23,42,.05);
}
.bz-amazing-offers:not([hidden]) {
  display: block;
  padding: 10px;
}
.bz-amazing-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow .2s ease;
}
.bz-amazing-card:hover {
  box-shadow: 0 6px 16px rgba(15,23,42,.1);
}
.bz-amazing-card__media {
  height: var(--bz-ao-h, 140px);
  overflow: hidden;
  background: #f1f5f9;
}
.bz-amazing-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.bz-amazing-card__body { padding: 8px 10px 10px; }
.bz-amazing-card__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}
.bz-amazing-card__desc {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}
.bz-amazing-card__badge {
  position: absolute;
  top: 8px; right: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  z-index: 1;
}
.bz-amazing-card { position: relative; }

/* Header strip banners (base) */
.bz-banner-strip {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin: 8px auto;
}
.bz-banner-strip .bz-banner-card {
  border-radius: 12px;
  overflow: hidden;
}
.bz-banner-strip .bz-banner-card__media {
  height: 120px;
  overflow: hidden;
}
.bz-banner-strip .bz-banner-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .bz-banner {
    height: var(--bz-frame-h, var(--bz-banner-h, 240px)) !important;
    min-height: 140px;
    border-radius: 12px;
  }
  .home-top-promo { padding: 0 8px 6px; }
  .bz-banner__nav { width: 32px; height: 32px; }
}

/* HOME-LAYOUT-SLIDER-HERO-2026-11-04 */
.home-hero { display: none !important; }
.home-top-promo {
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 0 12px !important;
}
.home-top-promo .bz-feature-slider,
.home-top-promo .bz-promo,
.home-top-promo .bz-banner {
  /* شعاع از تنظیمات پنل (--bz-promo-radius) — دیگر صفر اجباری نیست */
  border-radius: var(--bz-promo-radius, 16px) !important;
  margin: 0 auto;
  max-width: 100% !important;
}
.home-top-promo .bz-banner {
  max-width: min(100%, var(--bz-frame-w, var(--bz-banner-w, 1200px))) !important;
  border-radius: var(--bz-promo-radius, 16px) !important;
}

/* شگفت‌انگیز افقی زیر دسته‌ها */
.bz-amazing-offers--horizontal {
  display: block !important;
  width: 100%;
  margin: 12px 0 8px;
  padding: 10px 12px !important;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.bz-amazing-offers--horizontal[hidden] {
  display: none !important;
}
.bz-amazing-offers--horizontal .bz-amazing-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.bz-amazing-offers--horizontal .bz-amazing-card {
  flex: 0 0 auto !important;
  width: min(220px, 70vw) !important;
  min-width: 180px;
  margin-bottom: 0 !important;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.bz-amazing-offers--horizontal .bz-amazing-card__media {
  height: var(--bz-ao-h, 120px) !important;
}
/* اگر ساختار عمودی قبلی باقی مانده باشد */
.home-layout--v2 > .bz-amazing-offers:not(.bz-amazing-offers--horizontal) {
  display: none !important;
}

/* درخت دسته — پیش‌فرض بسته واضح */
.category-tree-container .tree-children[hidden],
.category-tree-container .tree-node > .tree-children:not(.is-open) {
  /* children only rendered when open in JS */
}

/* MEDIA-FIT-STRICT-2026-11-04 */
.bz-banner {
  height: var(--bz-frame-h, var(--bz-banner-h-responsive, var(--bz-banner-h, 320px))) !important;
}
.bz-banner__img,
.bz-feature-card__img,
.bz-amazing-card__img,
.bz-gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--bz-img-fit, cover) !important;
  object-position: center center !important;
  display: block !important;
}
.bz-amazing-offers--horizontal.is-ready {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.bz-amazing-offers.is-empty {
  display: none !important;
}
.bz-amazing-offers--horizontal .bz-amazing-offers__viewport {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100%;
}
.bz-amazing-offers--horizontal .bz-amazing-offers__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  width: max-content !important;
  animation: none !important;
  transform: none !important;
}
.bz-amazing-card__media {
  overflow: hidden !important;
  background: #e2e8f0;
}
@media (max-width: 768px) {
  .bz-banner {
    height: var(--bz-frame-h, var(--bz-banner-h, 180px)) !important;
    min-height: 140px;
  }
}

/* FRAME-FROM-SETTINGS-2026-11-04
 * ظرف بیرونی: خودکار / تمام‌عرض (قوانین layout)
 * کادر تصویر داخلی: ابعاد از تنظیمات پنل (--bz-frame-*)
 * تصویر: object-fit:cover داخل همان کادر
 */
.bz-promo--fluid,
.bz-promo__body--fluid,
.bz-feature-slider,
.bz-amazing-offers--horizontal,
.home-top-promo {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.bz-banner-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
}

/* کادر داخلی بنر — فقط این ابعاد از پنل می‌آید */
.bz-banner--sized,
.bz-banner {
  width: var(--bz-frame-w, var(--bz-banner-w, 1200px)) !important;
  max-width: 100% !important;
  height: var(--bz-frame-h, var(--bz-banner-h, 320px)) !important;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
  box-sizing: border-box;
}

.bz-banner__viewport {
  width: 100% !important;
  height: 100% !important;
  position: relative;
  overflow: hidden;
}

.bz-banner__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bz-banner__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--bz-img-fit, cover) !important;
  object-position: center center !important;
}

/* کارت‌های hero — عرض/ارتفاع رسانه از تنظیمات */
.bz-feature-card {
  box-sizing: border-box;
}
.bz-feature-card__media {
  width: 100% !important;
  overflow: hidden;
  position: relative;
}
.bz-feature-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* شگفت‌انگیز: ظرف افقی خودکار، کارت داخلی از تنظیمات */
.bz-amazing-offers--horizontal {
  width: 100% !important;
  box-sizing: border-box;
}
.bz-amazing-offers--horizontal .bz-amazing-offers__viewport {
  width: 100%;
  overflow-x: auto;
}
.bz-amazing-card {
  box-sizing: border-box;
  flex-shrink: 0;
}
.bz-amazing-card__media {
  width: 100% !important;
  overflow: hidden;
}
.bz-amazing-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* مخفی کردن دکمه درخواست نمایش اگر جایی مانده */
.bz-amazing-offers__request-btn,
#bzAoRequestOpen {
  display: none !important;
}

@media (max-width: 768px) {
  .bz-banner--sized,
  .bz-banner {
    width: 100% !important;
    /* ارتفاع همچنان از تنظیمات؛ فقط عرض ظرف پر می‌شود */
    height: var(--bz-frame-h, var(--bz-banner-h-responsive, var(--bz-banner-h, 200px))) !important;
    border-radius: 12px;
  }
}

/* RESPONSIVE-4PROMO-2026-11-04
 * چهار نمایش: top | bottom | footer | amazing
 * ظرف بیرونی: fluid  |  کادر تصویر: از تنظیمات پنل (--bz-frame-*) با مقیاس تبلت/موبایل
 */
.bz-feature-slider,
.bz-feature-slider--top,
.bz-feature-slider--bottom,
.bz-feature-slider--footer,
#bzFeatureSliderTop,
#bzFeatureSliderBottom,
#bzFeatureSliderFooter,
.home-top-promo {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
}

.bz-feature-slider[hidden],
.bz-feature-slider.is-empty {
  display: none !important;
}

.bz-promo--fluid,
.bz-promo__body--fluid,
.bz-banner-shell {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bz-banner-shell {
  display: flex;
  justify-content: center;
}

.bz-banner--sized,
.bz-banner {
  width: min(100%, var(--bz-frame-w, var(--bz-banner-w, 1200px))) !important;
  height: var(--bz-frame-h, var(--bz-banner-h, 320px)) !important;
  max-width: 100% !important;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  border-radius: var(--bz-promo-radius, 16px);
}

.bz-banner__viewport,
.bz-banner__slide {
  width: 100% !important;
  height: 100% !important;
}

.bz-banner__img,
.bz-feature-card__img,
.bz-amazing-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--bz-img-fit, cover) !important;
  object-position: center center !important;
  display: block !important;
}

.bz-feature-slider__viewport {
  width: 100%;
  overflow: hidden;
}

.bz-feature-card {
  width: var(--bz-card-w, 200px);
  flex: 0 0 var(--bz-card-w, 200px);
}

.bz-feature-card__media {
  height: var(--bz-card-h, 144px);
  overflow: hidden;
}

/* --- Amazing horizontal (4th display) --- */
.bz-amazing-offers--horizontal,
#bzAmazingOffers.bz-amazing-offers--horizontal {
  width: 100% !important;
  max-width: 100% !important;
  position: static !important;
  max-height: none !important;
  flex: none !important;
  order: unset !important;
  box-sizing: border-box;
  margin: 12px 0;
  padding: 10px 12px;
  overflow: hidden;
}

.bz-amazing-offers--horizontal .bz-amazing-offers__viewport {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.bz-amazing-offers--horizontal .bz-amazing-offers__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  width: max-content !important;
  height: auto !important;
  animation: none !important;
  transform: none !important;
}

.bz-amazing-offers--horizontal .bz-amazing-card {
  flex: 0 0 auto !important;
  margin: 0 !important;
  max-width: none;
}

/* Tablet 577–992 */
@media (max-width: 992px) and (min-width: 577px) {
  .home-top-promo,
  #bzFeatureSliderTop,
  #bzFeatureSliderBottom,
  #bzFeatureSliderFooter {
    padding-left: 8px;
    padding-right: 8px;
  }
  .bz-banner--sized,
  .bz-banner {
    border-radius: 14px;
  }
  .bz-banner__nav {
    width: 36px;
    height: 36px;
  }
  .home-toolbar--bar {
    gap: 8px;
  }
  .home-toolbar__filters .form-select,
  .home-toolbar__filters .form-control {
    min-width: 120px;
    max-width: 160px;
  }
}

/* Mobile ≤576 */
@media (max-width: 576px) {
  .home-top-promo {
    padding: 0 !important;
    margin-bottom: 8px !important;
  }
  .bz-banner--sized,
  .bz-banner {
    border-radius: var(--bz-promo-radius, 12px);
    width: 100% !important;
  }
  .bz-banner__nav {
    width: 32px;
    height: 32px;
    opacity: 0.9;
  }
  .bz-banner__caption {
    padding: 10px 12px;
  }
  .bz-banner__title { font-size: 0.95rem; }
  .bz-banner__desc { font-size: 0.78rem; }

  #bzFeatureSliderBottom,
  #bzFeatureSliderFooter {
    padding: 0 8px;
    margin-bottom: 10px;
  }

  .bz-amazing-offers--horizontal {
    padding: 8px !important;
    margin: 8px 0 !important;
    border-radius: 12px;
  }
  .bz-amazing-offers--horizontal .bz-amazing-offers__head h3 {
    font-size: 0.88rem;
  }

  .home-toolbar--bar {
    padding: 8px;
  }
  .home-toolbar__search {
    flex: 1 1 100%;
    max-width: none;
  }
  .home-toolbar__filters .form-select,
  .home-toolbar__filters .form-control,
  .home-toolbar__price {
    min-width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    flex: 1 1 calc(50% - 6px);
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bz-feature-slider__track,
  .bz-amazing-offers__track {
    animation: none !important;
  }
}

/* NO-GALLERY-ZOOM-HINT-2026-11-04 */
.bz-gallery__head,
.bz-gallery__title,
.bz-gallery__sub,
.bz-gallery-item__zoom {
  display: none !important;
}
.bz-gallery__grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.bz-gallery-item {
  flex: 0 0 auto !important;
  width: var(--bz-card-w, 200px) !important;
  max-width: 80vw;
  cursor: default !important;
}
.bz-gallery-item img {
  width: 100% !important;
  height: var(--bz-card-h, 144px) !important;
  object-fit: cover !important;
}

/* شگفت‌انگیز همیشه افقی */
#bzAmazingOffers,
.bz-amazing-offers--horizontal,
.bz-amazing-offers[data-layout="horizontal"] {
  display: block !important;
  width: 100% !important;
}
.bz-amazing-offers__viewport--h,
.bz-amazing-offers--horizontal .bz-amazing-offers__viewport {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}
.bz-amazing-offers__track--h,
.bz-amazing-offers--horizontal .bz-amazing-offers__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: max-content !important;
  height: auto !important;
  animation: none !important;
  transform: none !important;
}
.bz-amazing-offers--horizontal .bz-amazing-card {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* BZ-ANIM-TYPES-2026-11-04 */
.bz-feature-slider.bz-anim-fade .bz-banner__slide {
  transition: opacity .6s ease;
}
.bz-feature-slider.bz-anim-none .bz-banner__slide { transition: none; }
.bz-feature-slider img,
.bz-banner__img,
.bz-feature-card__img {
  object-fit: var(--bz-img-fit, cover) !important;
}
