
/* page:digikala-page */
/* Digikala homepage replica — blue gradient edition */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: var(--sx-ink);
  --gray: var(--sx-ink-3);
  --red: #df304f;
  --red-deep: #d72e4d;
  --az-blue: var(--sx-brand);
  --az-blue-deep: var(--sx-brand-deep);
  --green: #74bb2d;
  --cream: #fcf3ea;
  --beige: #fae7d6;
  --budi-pink: #f4b0bd;
  --navy: #3c4a6d;
  --off-red: var(--sx-brand);
}
html { background: var(--sx-surface); }
body{width:100%;
  font-family: Vazirmatn, Vazir, Tahoma, 'Segoe UI', sans-serif;
  color: var(--ink);
  max-width:1366px;
  margin: 0 auto;
  background: var(--sx-surface);
  overflow-x: hidden;
}
img { display: block; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; }
a { text-decoration: none; color: inherit; cursor: pointer; }
/* clickable cards & banners */
.az-card, .sh-card, .th-card, .rk-item { cursor: pointer; }
.banners4 a, .banners2 a, .hero a, .budi { display: block; }

/* ---------------- dynamic: hero slider */
.hero { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .65s cubic-bezier(.45,0,.22,1); will-change: transform; }
.hero-slide { flex: 0 0 100%; position: relative; display: block; }
.hero-slide img { width: 1366px; height: auto; }
/* ---------- متن روی اسلایدر (از پنل قابل ویرایش) ---------- */
.hero-txt {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  gap: 9px; padding: 24px 52px 24px 26%; text-align: right; color: #fff; pointer-events: none;
  background: linear-gradient(270deg, rgba(16,29,71,.82) 0%, rgba(16,29,71,.46) 40%, rgba(16,29,71,0) 72%);
}
.ht-sub { font-size: 15px; font-weight: 500; opacity: .93; }
.ht-t { font-size: 30px; font-weight: 800; line-height: 1.38; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.ht-btn {
  margin-top: 4px; display: inline-block; background: var(--sx-brand); color: #fff; font-size: 14px; font-weight: 700;
  padding: 10px 28px; border-radius: 12px; box-shadow: 0 6px 18px rgba(239,57,78,.42);
}
.hero-txt.on-light {
  color: #101d47;
  background: linear-gradient(270deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 40%, rgba(255,255,255,0) 72%);
}
.hero-txt.on-light .ht-t { text-shadow: none; }
html.dk-dark .hero-txt.on-light { color: #101d47; }
.hero-dots {
  position: absolute; bottom: 21px; right: 50%; transform: translateX(50%);
  display: flex; align-items: center; gap: 8px; z-index: 5;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 5px; padding: 0;
  background: rgba(21, 36, 90, .38); cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.hero-dot.on { width: 20px; background: #101d47; }

/* ---------------- dynamic: scrollable card tracks */
.track { display: flex; transition: transform .45s ease; will-change: transform; }
.az-cards { position: relative; }
.az-cards .track { gap: 4px; }
.th-cards .track { gap: 6px; align-items: flex-start; }
.shelf-cards .track { gap: 8px; }
.shelf-cards .sh-sliver, .th-cards .sh-sliver {
  position: absolute; left: 0; top: 0; height: 100%; width: 58px;
}
.edge-arrow { z-index: 6; }
.rk-body { overflow: hidden; padding-left: 40px; margin-top: 20px; }
.chev { font-weight: 700; }

/* ---------------- drag / swipe (mouse + touch) */
.hero, [data-car] { touch-action: pan-y; }
.hero { cursor: grab; }
body.dragging, body.dragging * {
  cursor: grabbing !important;
  user-select: none !important; -webkit-user-select: none !important;
}

/* ---------------- strip */
.strip { height: 55px; }
.strip img { width: 1366px; height: 55px; }

/* ---------------- header */
.hdr { background: var(--sx-surface); }
.hdr-in {
  display: flex; align-items: center;
  height: 90px; padding: 0 20px 0 30px;
}
.logo { margin-right: 2px; }
.logo img { height: 50px; width: auto; }
.search {
  flex: 1; height: 44px; background: var(--sx-surface-2); border-radius: 10px;
  margin: 0 26px 0 40px;
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
}
.s-ph { color: var(--sx-ink-3); font-size: 13px; }
.s-in {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 13px; color: var(--ink); padding: 0;
}
.s-in::placeholder { color: var(--sx-ink-3); }
.icon-btn { display: flex; align-items: center; }
.v-div { width: 1px; height: 26px; background: var(--sx-line); margin: 0 18px; }
.login {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--sx-line); border-radius: 9px;
  height: 40px; padding: 0 14px; font-size: 12.5px; color: var(--sx-ink);
  margin-left: 26px;
}
.cart { margin-right: 2px; }

/* ---------------- nav */
.nav { border-bottom: 1px solid var(--sx-surface-2); }
.nav-in {
  display: flex; align-items: center;
  height: 36px; padding: 0 18px 0 20px; gap: 26px;
}
.nav-cat { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; }
.nav-it { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sx-ink-2); }
.addr {
  margin-right: auto;
  display: flex; align-items: center; gap: 5px;
  background: #fef2e7; color: #f28e28; font-size: 11.5px;
  border-radius: 9px; padding: 5px 11px;
}

/* ---------------- hero */
.hero img { width: 1366px; height: auto; }

/* ---------------- quick categories */
.qcats {
  display: flex; justify-content: space-between;
  padding: 8px 66px 10px;
}
.qcat { display: flex; flex-direction: column; align-items: center; width: 96px; }
.qcat .c1 { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.qcat .c2 {
  display: block; height: 27px; width: 62px; border-radius: 0 0 0 0;
  overflow: hidden; margin-top: 5px; border-radius: 31px;
}
.qcat .c2 img { width: 62px; height: 62px; margin-top: -33px; }
.q-lb { font-size: 11px; color: var(--sx-ink); margin-top: 6px; white-space: nowrap; }

/* ---------------- stories strip (below hero) */
.stories-wrap { background: var(--sx-surface); }
.stories {
  display: flex; gap: 15px;
  overflow-x: auto; scrollbar-width: none;
  padding: 12px 24px 10px;
  touch-action: pan-x pan-y;
  cursor: grab;
}
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 80px; display: flex; flex-direction: column; align-items: center; }
.st-ring {
  display: block; width: 80px; height: 80px; border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, var(--sx-brand-2) 0%, var(--sx-brand) 55%, var(--sx-brand-deep) 100%);
}
.st-ring img {
  width: 100%; height: 100%; border-radius: 50%;
  border: 4px solid #fff; object-fit: cover; background: var(--sx-surface);
}
.st-lb { font-size: 11px; color: var(--sx-ink); margin-top: 7px; white-space: nowrap; }

/* ---------------- story viewer (fullscreen, Instagram-style — بزرگ) */
body.stv-lock { overflow: hidden; }
.stv {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center; gap: 16px;
  background: rgba(7,9,20,.93); direction: ltr;
}
.stv.open { display: flex; }
.stv-nav {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px;
  background: var(--sx-surface); color: var(--sx-ink); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 18px rgba(0,0,0,.4); cursor: pointer;
}
.stv-nav:hover { background: #f0f0f3; }
.stv-card {
  position: relative; direction: rtl; overflow: hidden;
  width: min(560px, 96vw); height: min(93vh, 860px);
  border-radius: 16px; background: #0d1430;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.stv-bg {
  position: absolute; inset: -46px;
  background-size: cover; background-position: center;
  filter: blur(30px) brightness(.42) saturate(1.2);
  transform: scale(1.18);
}
.stv-top { position: absolute; top: 0; right: 0; left: 0; padding: 13px 14px 0; z-index: 5; }
.stv-bars { display: flex; gap: 4px; }
.stv-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.34); overflow: hidden; }
.stv-bar i { display: block; height: 100%; width: 0; background: var(--sx-surface); border-radius: 4px; transition: width .12s linear; }
.stv-hdr { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: #fff; }
.stv-av { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; padding: 2.5px; background: linear-gradient(135deg,var(--sx-brand-2),var(--sx-brand) 55%,var(--sx-brand-deep)); }
.stv-av img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.stv-who { font-size: 13px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.stv-x {
  margin-right: auto; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s;
}
.stv-x:hover { background: rgba(255,255,255,.32); }
/* تصویر استوری: تمام‌کارت و بزرگ (مثل اینستاگرام) */
.stv-mid { position: absolute; inset: 0; z-index: 2; }
.stv-ph { position: absolute; inset: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.stv-ph img { width: 100%; height: 100%; border-radius: 0; border: 0; object-fit: cover; display: block; }
.stv-ttl {
  position: absolute; bottom: 96px; right: 0; left: 0; text-align: center;
  color: #fff; font-size: 22px; font-weight: 800; line-height: 1.7;
  padding: 34px 20px 0; text-shadow: 0 2px 14px rgba(0,0,0,.55);
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.28) 55%, transparent);
}
.stv-cta {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--sx-brand); color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 26px; padding: 11px 34px; box-shadow: 0 8px 22px rgba(232,80,31,.45);
}
.stv-cta:hover { filter: brightness(1.08); }
@media (max-width: 560px) {
  .stv { gap: 0; }
  .stv-nav { display: none; }
  .stv-card { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .stv-ttl { font-size: 18px; bottom: 92px; }
  .stv-cta { bottom: 22px; }
}

/* ---------------- shared product bits */
.pr-img { width: 100%; height: 150px; object-fit: contain; }
.pr-title {
  font-size: 11.5px; color: var(--sx-ink); line-height: 1.65;
  height: 38px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pr-top { display: flex; align-items: center; justify-content: flex-start; gap: 5px; height: 20px; margin-top: 4px; }
.badge-off {
  background: var(--off-red); color: #fff; font-size: 10.5px; font-weight: 700;
  border-radius: 20px; padding: 1px 7px 2px; white-space: nowrap;
}
.old { color: var(--sx-ink-3); font-size: 10.5px; text-decoration: line-through; }
.pr-price { display: flex; align-items: baseline; gap: 4px; justify-content: flex-start; margin-top: 2px; }
.pr-price .tom { font-size: 9.5px; color: var(--sx-ink-3); }
.pr-price .num { font-size: 14px; font-weight: 700; color: var(--sx-ink); }

/* ---------------- amazing sections */
.amazing {
  margin: 6px 30px 0; border-radius: 16px;
  display: flex; overflow: hidden; height: 318px;
}
/* گرادیانت پیش‌فرض — دقیقاً هماهنگ با گرادیانت برند قالب (--grad) */
.az-red { --az-ink: var(--sx-brand-deep); background: linear-gradient(115deg, var(--sx-brand-2) 0%, var(--sx-brand) 55%, var(--sx-brand-deep) 100%); }
/* جدیدترین‌ها — پل رنگی فیروزه‌ای به آبی برند (هم‌خانوادهٔ قالب) */
.az-green { --az-ink: var(--sx-brand); background: linear-gradient(115deg, var(--sx-brand-2) 0%, var(--sx-brand) 60%, var(--sx-brand-deep) 100%); }
.az-panel {
  flex: 0 0 166px; display: flex; flex-direction: column;
  align-items: center; padding-top: 44px; color: #fff;
}
.az-pct { width: 62px; height: auto; }
.az-title { font-size: 17px; font-weight: 700; margin-top: 6px; }
.az-count {
  display: flex; align-items: flex-start; gap: 5px; margin-top: 12px;
  /* ترتیب تایمر به سبک نمایش ساعت دیجیتال (چپ→راست): ساعت در چپ، دقیقه وسط، ثانیه در راست.
     direction:ltr → اولین فرزند DOM (ساعت) در چپ قرار می‌گیرد؛ کاربر چپ‌به‌راست
     اول ساعت، بعد دقیقه و در پایان ثانیه را می‌خواند — همانند ۲۳:۵۹:۰۵ در ساعت‌های دیجیتال.
     برچسب‌های فارسی (ساعت/دقیقه/ثانیه) با direction:rtl خودِ .az-lb صحیح رندر می‌شوند.
     یک قانون، دسکتاپ و موبایل (کوئری موبایل فقط اندازه را عوض می‌کند). */
  direction: ltr; flex-direction: row;
}
.az-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.az-lb { font-size: 9px; color: rgba(255,255,255,.92); line-height: 1; direction: rtl; }
.az-box {
  background: var(--sx-surface); color: var(--az-ink, var(--sx-brand-deep)); font-weight: 700; font-size: 13px;
  border-radius: 7px; width: 33px; height: 27px;
  display: flex; align-items: center; justify-content: center;
}
.az-green .az-box { color: var(--az-ink, var(--sx-brand)); }
.az-sep { color: #fff; font-weight: 700; line-height: 27px; }
.az-more {
  margin-top: 14px; background: var(--sx-surface); color: var(--sx-ink); font-size: 12px;
  border-radius: 9px; width: 112px; height: 37px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.az-cards {
  flex: 1; display: flex; gap: 4px; padding: 6px 4px 6px 0;
  overflow: hidden; align-items: stretch;
}
.az-card {
  flex: 0 0 164px; flex-shrink: 0; background: var(--sx-surface); border-radius: 10px;
  padding: 8px 9px; display: flex; flex-direction: column;
}
.az-cards { padding-left: 0; }
.az-card .pr-img { height: 152px; }

/* ---------------- banners rows */
.banners4 {
  display: flex; gap: 14px; margin: 26px 30px 0;
}
.banners4 img { width: 315px; height: 196px; border-radius: 14px; object-fit: cover; }
.banners2 { display: flex; gap: 14px; margin: 26px 30px 0; }
.banners2 img { width: 645px; height: 248px; border-radius: 14px; object-fit: cover; }

/* ---------------- 3-hour section */
.th3 {
  margin: 30px 30px 0; background: var(--cream); border-radius: 16px;
  padding: 16px 20px 20px; position: relative;
}
.th-head { display: flex; align-items: center; gap: 8px; }
.th-rocket { width: 26px; height: 26px; }
.th-tt { font-size: 15.5px; font-weight: 700; color: var(--sx-ink); }
.th-bar {
  margin-top: 14px; background: var(--beige); border-radius: 11px;
  height: 66px; position: relative; overflow: hidden;
}
.th-addr {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  font-size: 12.5px; color: var(--sx-ink); display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.th-info {
  position: absolute; right: 255px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: #5f6c7b; white-space: nowrap;
}
.th-i {
  width: 17px; height: 17px; border-radius: 50%;
  background: #f28e28; color: #fff; font-size: 11px; font-style: italic;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.th-cards { display: flex; gap: 6px; margin-top: 16px; align-items: flex-start; overflow: hidden; position: relative; min-height: 249px; }
.th-card {
  flex: 0 0 167px; opacity: .48; filter: saturate(.55);
  display: flex; flex-direction: column; padding: 4px 6px;
}
.th-card .pr-img { height: 152px; }
.th-card .badge-off { background: #e8a0ac; }
.th-card .pr-price .num { font-size: 13px; }
.sh-sliver { flex: 0 0 58px; height: auto; object-fit: cover; object-position: top right; opacity: .48; align-self: stretch; }
.az-cards .sh-sliver { opacity: 1; }
.edge-arrow {
  position: absolute; left: 22px; top: 42%;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sx-surface); color: var(--sx-ink); font-size: 19px;
  box-shadow: 0 3px 10px rgba(63,64,100,.16);
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- categories */
.cats { margin: 34px 30px 0; }
.cats-tt { font-size: 16px; font-weight: 700; margin-bottom: 22px; }
.cats-row {
  display: flex; justify-content: space-between; margin-bottom: 6px;
}
.cat { display: flex; flex-direction: column; align-items: center; width: 142px; }
.cat img { width: 116px; height: 116px; object-fit: cover; }
.cat-lb { font-size: 11.5px; color: var(--sx-ink); margin-top: 7px; white-space: nowrap; }

/* ---------------- shelf sections */
.shelf {
  margin: 30px 30px 0; border: 1px solid var(--sx-line); border-radius: 16px;
  padding: 18px 20px 20px; position: relative;
}
.shelf-head { display: flex; align-items: flex-start; }
.sh-tt .t1 { font-size: 16px; font-weight: 700; }
.sh-tt .t2 { font-size: 11.5px; color: var(--sx-ink-3); margin-top: 7px; }
.see-all {
  margin-right: auto; background: var(--sx-surface-2); color: var(--sx-ink); font-size: 11.5px;
  border-radius: 9px; padding: 8px 14px;
  display: flex; align-items: center; gap: 7px;
}
.shelf-cards { display: flex; gap: 8px; margin-top: 18px; overflow: hidden; position: relative; min-height: 248px; }
.sh-card {
  flex: 0 0 166px; border: 1px solid var(--sx-line-2); border-radius: 12px;
  padding: 10px 11px 12px; display: flex; flex-direction: column; background: var(--sx-surface);
}
.sh-card .pr-img { height: 128px; }
.shelf .sh-sliver, .th3 .sh-sliver { border: 0; }
.shelf .edge-arrow { top: 46%; }

/* ---------------- brands */
.brands { margin: 30px 30px 0; }
.br-tt { font-size: 15.5px; font-weight: 700; margin-bottom: 16px; }
.br-strip { width: 100%; border-radius: 6px; }

/* ---------------- rank lists */
.ranklist {
  margin: 30px 30px 0; border: 1px solid var(--sx-line); border-radius: 16px;
  padding: 20px 24px 24px; position: relative;
}
.rk-head { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; }
.rk-head img { width: 22px; height: 22px; }
.rk-grid {
  display: flex; flex-wrap: nowrap;
  transition: transform .45s ease; will-change: transform;
}
.rk-col {
  display: flex; flex-direction: column; gap: 26px;
  flex: 0 0 auto; width: 295px; margin-left: 12px;
}
.rk-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rk-img { width: 80px; height: 84px; object-fit: contain; background: var(--sx-surface); border: 1px solid var(--sx-line-2); border-radius: 8px; flex: 0 0 80px; padding: 4px; }
.rk-badge {
  flex: 0 0 23px; width: 23px; height: 23px; border-radius: 50%;
  background: var(--off-red); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rk-title {
  font-size: 12px; color: var(--sx-ink); line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ranklist .edge-arrow { top: 46%; }

/* ---------------- budi */
.budi {
  margin: 30px 30px 0; background: var(--budi-pink); border-radius: 16px;
  height: 147px; position: relative; overflow: hidden;
}
.budi-logo { position: absolute; left: 135px; top: 20px; height: 44px; }
.budi-person { position: absolute; left: 430px; top: 2px; height: 145px; }
.budi-txt { position: absolute; right: 140px; top: 24px; text-align: center; }
.budi-txt .b1 { font-size: 18px; font-weight: 800; color: #3a3d55; }
.budi-txt .b2 { font-size: 12px; color: #63666e; margin-top: 7px; }
.budi-btn {
  margin-top: 13px; background: #474452; color: #fff; font-size: 13px;
  border-radius: 20px; padding: 8px 44px;
}

/* ---------------- footer */
footer { margin-top: 42px; border-top: 1px solid var(--sx-line-2); padding-top: 28px; }
.ft-top { padding: 0 30px; position: relative; }
.ft-logo { height: 44px; margin-left: auto; }
.back-top {
  position: absolute; left: 30px; top: 4px;
  border: 1px solid var(--sx-line); border-radius: 9px;
  font-size: 11.5px; color: var(--sx-ink); padding: 9px 14px;
  display: flex; align-items: center; gap: 8px;
}
.ft-contact { text-align: right; font-size: 12px; color: var(--sx-ink-3); margin-top: 16px; }
.ft-feats {
  display: flex; justify-content: space-between;
  margin: 30px 40px 0;
}
.ft-feat { text-align: center; }
.ft-feat img { width: 64px; height: 72px; object-fit: contain; margin: 0 auto; }
.ft-feat div { font-size: 11.5px; color: var(--sx-ink); margin-top: 6px; }
.ft-cols { display: flex; margin: 34px 30px 0; }
.ft-col { display: flex; flex-direction: column; width: 300px; }
.ft-col:nth-child(2) { width: 300px; }
.ft-col:nth-child(3) { width: 330px; }
.ft-col.follow { width: auto; margin-right: auto; }
.ft-h { font-size: 13.5px; font-weight: 700; color: var(--sx-ink); margin-bottom: 16px; }
.ft-col a { font-size: 12.5px; color: var(--sx-ink-3); margin-bottom: 14px; }
.social { width: 315px; height: 50px; object-fit: contain; }
.ft-h.nl { margin-top: 22px; font-size: 12.5px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input {
  width: 240px; height: 42px; border: 0; outline: none;
  background: var(--sx-surface-2); border-radius: 9px; padding: 0 14px;
  font-family: inherit; font-size: 12px; color: var(--sx-ink);
}
.nl-row input::placeholder { color: var(--sx-ink-3); }
.nl-row button {
  width: 66px; height: 42px; border-radius: 9px; background: #85868f; color: #fff; font-size: 12.5px;
}

/* app bar */
.appbar { margin: 40px 30px 0; }
.appbar img { width: 100%; border-radius: 12px; }

/* about */
.about { display: flex; margin: 40px 30px 0; border-top: 1px solid var(--sx-line-2); padding-top: 34px; }
.ab-col { flex: 1; }
.ab-h { font-size: 15px; font-weight: 700; color: var(--sx-ink); margin-bottom: 14px; }
.ab-p {
  font-size: 12px; color: var(--sx-ink-3); line-height: 2.15; text-align: justify;
}
.ab-more { color: var(--sx-ink); font-size: 12px; margin-top: 14px; display: inline-flex; gap: 7px; align-items: center; }
.ab-badges { display: flex; gap: 10px; margin-right: 30px; }
.ab-badges img { width: 88px; height: 98px; object-fit: contain; border: 1px solid var(--sx-line); border-radius: 6px; }
.ab-link { text-align: right; margin: 26px 30px 0; font-size: 11.5px; color: var(--sx-ink-3); }
.copyright { text-align: center; font-size: 11.5px; color: var(--sx-ink-3); margin: 14px 0 26px; }

/* brand grid */
.bgrid {
  display: grid; grid-template-columns: repeat(9, minmax(0,1fr));
  background: var(--sx-surface-2); border-top: 1px solid var(--sx-line);
}
.bcell {
  height: 80px; border: 1px solid var(--sx-line); margin: -0.5px;
  display: flex; align-items: center; justify-content: center;
}
.bcell span {
  font-size: 15px; font-weight: 700; color: var(--sx-ink-3);
  letter-spacing: .2px; font-family: Vazirmatn, Tahoma, sans-serif;
}
.bcell:nth-child(6) span::first-letter { font-size: 17px; }
.bcell:nth-child(7) span { letter-spacing: 2px; font-size: 14px; }
.bcell:nth-child(17) span { letter-spacing: 3px; font-size: 13px; }

/* chat fab */
.chat-fab {
  position: fixed; left: 22px; bottom: 22px;
  width: 48px; height: 48px; border-radius: 50%;
  background: #6e59f2; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(60,40,180,.35); z-index: 50;
}

/* =================================================================
   MOBILE  (≤ 899px) — responsive layout per Digikala mobile design
   ================================================================= */
.m-hdr, .m-addr, .m-nav, .m-ft, .m-accs { display: none; }

@media (max-width: 899px) {

  html { -webkit-text-size-adjust: 100%; }
  body { width: 100%; min-width: 0; padding-bottom: 64px; }
  .stories { padding: 10px 14px 8px; gap: 14px; }

  /* hide desktop chrome */
  .strip, .hdr, .nav { display: none; }

  /* ---------- mobile header ---------- */
  .m-hdr {
    display: flex; align-items: center; gap: 10px;
    background: var(--sx-surface-2); padding: 12px 14px 10px;
  }
  .m-search {
    flex: 1; height: 46px; background: var(--sx-surface); border-radius: 12px;
    border: 1px solid var(--sx-line); box-shadow: 0 1px 3px rgba(0,0,0,.04);
    display: flex; align-items: center; gap: 8px; padding: 0 12px;
  }
  .m-search { position: relative; cursor: text; }
  .m-in {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
    font-family: inherit; font-size: 13px; color: var(--ink); padding: 0;
  }
  .m-ph {
    position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
    color: var(--sx-ink-2); font-size: 13px; pointer-events: none; white-space: nowrap;
  }
  .m-ph b { color: var(--sx-brand); font-weight: 800; }
  .m-in:focus ~ .m-ph, .m-in:not(:placeholder-shown) ~ .m-ph { display: none; }
  .m-slogo {
    width: 26px; height: 26px; border-radius: 6px; margin-right: auto;
    background: linear-gradient(var(--sx-brand),var(--sx-brand));
    position: relative;
  }
  .m-slogo::after {
    content: ''; position: absolute; left: 6px; right: 6px; bottom: 7px;
    height: 7px; border: 1.8px solid #fff; border-top: 0;
    border-radius: 0 0 8px 8px;
  }
  .m-bell {
    width: 46px; height: 46px; border-radius: 50%; background: var(--sx-surface);
    border: 1px solid var(--sx-line); box-shadow: 0 1px 3px rgba(0,0,0,.04);
    display: flex; align-items: center; justify-content: center; flex: 0 0 46px;
  }
  .m-addr {
    display: flex; align-items: center; gap: 5px;
    background: var(--sx-surface-2); padding: 2px 16px 12px;
    font-size: 12.5px; color: var(--sx-ink);
  }
  .m-addr .chev-d { margin-right: 2px; display: flex; }

  /* ---------- mobile bottom nav ---------- */
  .m-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--sx-surface); z-index: 60; height: 58px;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08); border-radius: 14px 14px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .m-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; font-size: 9.5px; color: var(--sx-ink-3);
  }
  .m-nav a.on { color: var(--sx-ink); font-weight: 700; }

  /* ---------- hero: peek slider ---------- */
  .hero { margin-top: 2px; }
  .hero-track { padding: 6px 4% 10px; gap: 10px; }
  .hero-slide { flex: 0 0 100%; }
  .hero-slide img { width: 100%; border-radius: 14px; }
  .hero-txt { padding: 12px 14px 14px 10%; gap: 5px; border-radius: 14px; }
  .ht-sub { font-size: 11.5px; }
  .ht-t { font-size: 17px; line-height: 1.45; }
  .ht-btn { font-size: 12px; padding: 7px 18px; border-radius: 10px; }
  .hero-dots { bottom: 14px; }
  .hero-dot { background: rgba(120,120,130,.45); }
  .hero-dot.on { background: var(--sx-surface); }

  /* ---------- quick categories: colored icon row ---------- */
  .qcats {
    justify-content: flex-start; gap: 4px; overflow-x: auto;
    padding: 10px 8px 12px; scrollbar-width: none;
  }
  .qcats::-webkit-scrollbar { display: none; }
  .qcat { width: 76px; flex: 0 0 76px; }
  .qcat .c2 { display: none; }
  .q-lb { font-size: 10px; margin-top: 7px; white-space: normal; text-align: center; line-height: 1.6; }

  /* ---------- amazing sections: full bleed ---------- */
  .amazing {
    display: block; height: auto; margin: 10px 0 0; border-radius: 0;
  }
  .az-panel {
    flex-direction: row; align-items: center; gap: 8px;
    padding: 13px 14px 11px;
  }
  .az-pct { width: 21px; }
  .az-title { font-size: 15px; font-weight: 800; margin-top: 0; }
  .az-count { margin: 0 4px; gap: 4px; }
  .az-cell { gap: 1px; }
  .az-lb { font-size: 8px; }
  .az-box { width: 30px; height: 25px; font-size: 12px; border-radius: 6px; }
  .az-sep { font-size: 11px; line-height: 25px; }
  .az-more {
    margin: 0; margin-right: auto; background: transparent; color: #fff;
    width: auto; height: auto; padding: 2px 2px; font-size: 12.5px;
  }
  .az-cards {
    overflow-x: auto; padding: 4px 12px 14px; gap: 8px; scrollbar-width: none;
  }
  .az-cards::-webkit-scrollbar { display: none; }
  .az-card { flex: 0 0 132px; border-radius: 12px; padding: 8px 9px 10px; }
  .az-card .pr-img { height: 104px; }

  /* compact product bits on mobile */
  .pr-title { font-size: 10.5px; height: 35px; }
  .badge-off { font-size: 9.5px; padding: 1px 6px 2px; }
  .old { font-size: 9.5px; }
  .pr-price .num { font-size: 13px; }
  .pr-price .tom { font-size: 9px; }

  /* generic carousel rows: native swipe, no arrows/slivers */
  .edge-arrow, .sh-sliver { display: none !important; }
  .shelf-cards, .th-cards { overflow-x: auto; min-height: 0; scrollbar-width: none; }
  .shelf-cards::-webkit-scrollbar, .th-cards::-webkit-scrollbar { display: none; }
  /* native touch scroll on mobile: let the browser handle horizontal panning */
  .az-cards, .shelf-cards, .th-cards, .rk-body { touch-action: auto; }

  /* ---------- banner rows ---------- */
  .banners4 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin: 12px 12px 0;
  }
  .banners4 img { width: 100%; height: 106px; border-radius: 12px; }
  .banners2 {
    display: grid; grid-template-columns: 1fr; gap: 12px; margin: 14px 12px 0;
  }
  .banners2 img { width: 100%; height: 182px; border-radius: 12px; }

  /* ---------- 3-hour section ---------- */
  .th3 { margin: 14px 0 0; border-radius: 0; padding: 14px 12px 16px; }
  .th-rocket { display: none; }
  .th-tt { font-size: 14.5px; }
  .th-bar { height: auto; padding: 12px 14px; margin-top: 12px; }
  .th-info { position: static; transform: none; white-space: normal; font-size: 11.5px; line-height: 1.9; }
  .th-addr { position: static; transform: none; margin-top: 10px; font-size: 12px; }
  .th-cards { margin-top: 12px; gap: 8px; }
  .th-card { flex: 0 0 148px; opacity: 1; filter: none; padding: 4px 6px 8px; }
  .th-card .pr-img { height: 112px; }
  .th-card .badge-off { background: var(--off-red); }

  /* ---------- categories: 2-row circle scroller ---------- */
  .cats { margin: 20px 12px 0; }
  .cats-tt { font-size: 14.5px; margin-bottom: 14px; }
  .cats-row {
    justify-content: flex-start; gap: 6px; overflow-x: auto;
    margin-bottom: 14px; scrollbar-width: none; padding-bottom: 2px;
  }
  .cats-row::-webkit-scrollbar { display: none; }
  .cat { width: 78px; flex: 0 0 78px; }
  .cat img { width: 70px; height: 70px; }
  .cat-lb { font-size: 9.5px; margin-top: 6px; }

  /* ---------- shelves: flat, swipeable ---------- */
  .shelf { margin: 18px 0 0; border: 0; border-radius: 0; padding: 2px 12px 6px; }
  .sh-tt .t1 { font-size: 14.5px; }
  .see-all { font-size: 11px; padding: 7px 12px; }
  .shelf-cards { margin-top: 12px; gap: 8px; padding-bottom: 6px; }
  .sh-card { flex: 0 0 148px; border-radius: 12px; padding: 9px 10px 11px; }
  .sh-card .pr-img { height: 108px; }

  /* ---------- brands ---------- */
  .brands { margin: 18px 12px 0; overflow-x: auto; scrollbar-width: none; }
  .brands::-webkit-scrollbar { display: none; }
  .br-tt { font-size: 14.5px; margin-bottom: 12px; }
  .br-strip { width: auto; height: 78px; object-fit: contain; }

  /* ---------- rank lists: 2-col grid of mini cards ---------- */
  .ranklist { margin: 18px 0 0; border: 0; border-radius: 0; padding: 2px 12px 6px; }
  .rk-head { font-size: 14.5px; }
  .rk-head img { width: 20px; height: 20px; }
  .rk-body { overflow: visible; padding: 0; margin-top: 12px; }
  .rk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .rk-col { display: contents; }
  .rk-item {
    border: 1px solid var(--sx-surface-2); border-radius: 12px; padding: 10px 9px; gap: 8px;
  }
  .rk-badge { order: -1; width: 26px; height: 26px; font-size: 12px; flex-basis: 26px; }
  .rk-img { width: 56px; height: 60px; flex-basis: 56px; }
  .rk-title { font-size: 10.5px; line-height: 1.75; }

  /* ---------- budi banner ---------- */
  .budi { margin: 16px 12px 0; height: 150px; }
  .budi-logo { left: 16px; top: 16px; height: 32px; }
  .budi-person { display: none; }
  .budi-txt { right: 50%; transform: translateX(50%); top: 32px; }
  .budi-txt .b1 { font-size: 15.5px; }
  .budi-txt .b2 { font-size: 10.5px; }

  /* ---------- footer: compact mobile ---------- */
  footer { margin-top: 26px; border-top: 0; padding-top: 8px; }
  .ft-top { padding: 0 16px; }
  .ft-logo { display: none; }
  .back-top {
    position: static; margin: 0 auto; border-radius: 20px;
    padding: 10px 18px; font-size: 12px;
  }
  .ft-contact, .ft-feats, .ft-cols, .appbar, .ab-badges, .bgrid { display: none; }

  .m-ft { display: block; }
  .m-sup { display: flex; align-items: center; gap: 10px; margin: 16px 16px 0; }
  .m-sup-ic {
    width: 40px; height: 40px; border-radius: 50%; background: var(--sx-surface-2);
    display: flex; align-items: center; justify-content: center; flex: 0 0 40px;
  }
  .m-sup-tx { flex: 1; font-size: 11.5px; color: var(--sx-ink); }
  .m-pill {
    border: 1px solid var(--sx-line); border-radius: 9px; padding: 8px 18px;
    font-size: 12px; color: var(--sx-ink); background: var(--sx-surface);
  }
  .m-pill.red { color: var(--sx-brand); border-color: #f8b6bf; }
  .m-dl { display: flex; align-items: center; gap: 8px; margin: 14px 16px 0; }
  .m-dl-tx { flex: 1; font-size: 12px; color: var(--sx-ink); }
  .m-smile { flex: 0 0 26px; }

  .m-accs { display: block; margin: 18px 16px 0; border-top: 1px solid var(--sx-line-2); }
  .m-acc { border-bottom: 1px solid var(--sx-line-2); }
  .m-acc-h {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 16px 2px; font-size: 13px; font-weight: 600; color: var(--sx-ink);
  }
  .m-acc-h .chev-d { display: flex; transition: transform .3s ease; }
  .m-acc.open .m-acc-h .chev-d { transform: rotate(180deg); }
  .m-acc-b { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .m-acc.open .m-acc-b { max-height: 300px; }
  .m-acc-b a { display: block; font-size: 12px; color: var(--sx-ink-3); padding: 7px 2px; }

  .about { display: block; margin: 20px 16px 0; border-top: 1px solid var(--sx-line-2); padding-top: 20px; }
  .ab-h { font-size: 13px; }
  .ab-p { font-size: 11px; line-height: 2.1; }
  .ab-more { font-size: 11.5px; }
  .ab-link { display: none; }
  .copyright { font-size: 10px; margin: 12px 16px 18px; }

  /* ---------- chat fab ---------- */
  .chat-fab {
    left: 14px; bottom: 74px; width: 46px; height: 46px;
    background: var(--sx-brand);
  }
}