/* Digikala design tokens + Yekan Bakh (فونت اصلی برند Digikala) */
:root {
  --color-primary: #ef394e;
  --color-primary-500: #ef4056;
  --color-secondary: #1672dd;
  --color-text: #1f1f1f;
  --color-text-high: #0c0c0c;
  --color-hint: #81858b;
  --color-title: #3f4064;
  --color-icon: #424750;
  --color-disable: #c0c2c5;
  --color-body: #f2f3f5;
  --color-white: #ffffff;
  --color-border: #e0e0e2;
  --color-rating: #f9bc00;
  --color-success: #00a049;
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-16: 16px;
  --space: 4px;
  --container: 1336px;
  --header-h: 64px;
  /* یکان‌بخ = فونت UI/برند Digikala؛ Estedad پشتیبان جذاب */
  --font: "Vazirmatn", "Yekan Bakh", "YekanBakh", Estedad, Tahoma, sans-serif;
  --font-brand: "Vazirmatn", "Yekan Bakh", "YekanBakh", Estedad, Tahoma, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "kern" on;
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent;
}

/* حذف هایلایت آبی لمس در موبایل */
a,
button,
input,
textarea,
select,
label,
summary,
[role="button"],
[onclick] {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
}
a:focus,
button:focus,
[role="button"]:focus {
  outline: none;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(239, 57, 78, 0.45);
  outline-offset: 2px;
}

button,
input,
textarea,
select,
h1, h2, h3, h4, h5, h6,
.brand-mark,
.search__input,
.product-card__title,
.product-card__value,
.product-card__old,
.product-card__off,
.nav__cats,
.nav__links a,
.timer span,
.deal-board header h3,
.product-rail__head h2 {
  font-family: var(--font);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: min(var(--container), calc(100% - 24px));
  margin-inline: auto;
}

/* ========== HEADER ========== */
/* دسترس‌پذیری / سئو — کاملاً خارج از دید، بدون جا گرفتن در لایه‌بندی */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  top: 0 !important;
  inset-inline-start: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
  will-change: transform;
}
.header.is-header-scrolled {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}
.header.is-header-hidden {
  transform: translate3d(0, -110%, 0);
  box-shadow: none;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .header {
    transition: none;
  }
}

.header__main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 0 8px;
}

/* لوگوی مربعی ایوان — راستِ باکس جستجو (RTL) */
.header__logo {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}
.header__logo-sq {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: #ef394e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 1px 2px rgba(239, 57, 78, 0.25);
}
.header__logo-letter {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-top: 2px;
}
.header__logo-smile {
  width: 20px;
  height: 6px;
  display: block;
  margin-top: -2px;
}
.header__logo-sq--img {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.header__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* لوگوتایپ برند (فوتر و جاهای دیگر) */
.brand-mark {
  font-family: var(--font-brand);
  font-weight: 800;
  color: #ef394e;
  letter-spacing: -0.6px;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.header__search-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: stretch;
}
.header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-inline-start: 4px;
}
.header__tool {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid #e0e0e2;
  background: #fff;
  color: #424750;
  display: none; /* فقط دسکتاپ */
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.header__tool:hover {
  background: #fafafa;
  border-color: #d0d0d4;
}
.header__tool .ti-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
}
.header__tool-dot {
  position: absolute;
  top: 8px;
  inset-inline-end: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef394e;
  box-shadow: 0 0 0 2px #fff;
}
.header__tool--cart .js-cart-badge {
  top: 2px;
  inset-inline-end: 2px;
}
.header__profile-wrap {
  position: relative;
  flex-shrink: 0;
}
/* موبایل: فقط آیکون دایره‌ای — فلش مخصوص دسکتاپ */
.header__profile-caret {
  display: none !important;
  width: 14px;
  height: 14px;
  font-size: 14px;
  margin-inline-start: 2px;
  opacity: 0.7;
}

/* Digikala mobile SearchInput: rounded-full + border-neutral-200 + bg-white */
.search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: 100%;
  height: 44px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e0e0e2; /* border-neutral-200 */
  border-radius: 9999px; /* rounded-full */
  overflow: hidden;
  transition: background-color .15s ease;
}
.search:focus-within {
  background: #00000005; /* Digikala focus-within:bg-[#00000005] */
}

.search__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
}

/* ========== Tabler Icons (local SVG masks) ========== */
.ti-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--ti) center / contain no-repeat;
  mask: var(--ti) center / contain no-repeat;
  vertical-align: middle;
}
.ti-icon--search { --ti: url("icons/tabler/search.svg"); }
.ti-icon--user { --ti: url("icons/tabler/user.svg"); }
.ti-icon--bell { --ti: url("icons/tabler/bell.svg"); }
.ti-icon--heart { --ti: url("icons/tabler/heart.svg"); }
.ti-icon--logout { --ti: url("icons/tabler/logout.svg"); }
.ti-icon--message-2 { --ti: url("icons/tabler/message-2.svg"); }
.ti-icon--menu-2 { --ti: url("icons/tabler/menu-2.svg"); }
.ti-icon--bolt { --ti: url("icons/tabler/bolt.svg"); }
.ti-icon--map-pin { --ti: url("icons/tabler/map-pin.svg"); }
.ti-icon--credit-card { --ti: url("icons/tabler/credit-card.svg"); }
.ti-icon--calendar-dollar { --ti: url("icons/tabler/calendar-dollar.svg"); }
.ti-icon--truck-delivery { --ti: url("icons/tabler/truck-delivery.svg"); }
.ti-icon--coin { --ti: url("icons/tabler/coin.svg"); }
.ti-icon--shopping-bag { --ti: url("icons/tabler/shopping-bag.svg"); }
.ti-icon--gift { --ti: url("icons/tabler/gift.svg"); }
.ti-icon--trophy { --ti: url("icons/tabler/trophy.svg"); }
.ti-icon--dots { --ti: url("icons/tabler/dots.svg"); }
.ti-icon--chevron-left { --ti: url("icons/tabler/chevron-left.svg"); }
.ti-icon--chevron-down { --ti: url("icons/tabler/chevron-down.svg"); }
.ti-icon--arrow-right { --ti: url("icons/tabler/arrow-right.svg"); }
.ti-icon--trending-up { --ti: url("icons/tabler/trending-up.svg"); }
.ti-icon--camera { --ti: url("icons/tabler/camera.svg"); }
.ti-icon--photo { --ti: url("icons/tabler/photo.svg"); }
.ti-icon--x { --ti: url("icons/tabler/x.svg"); }
.ti-icon--home { --ti: url("icons/tabler/home.svg"); }
.ti-icon--home-filled { --ti: url("icons/tabler/home-filled.svg"); }
.ti-icon--category { --ti: url("icons/tabler/category.svg"); }
.ti-icon--category-filled { --ti: url("icons/tabler/category-filled.svg"); }
.ti-icon--shopping-cart { --ti: url("icons/tabler/shopping-cart.svg"); }
.ti-icon--shopping-cart-filled { --ti: url("icons/tabler/shopping-cart-filled.svg"); }
.ti-icon--trash { --ti: url("icons/tabler/trash.svg"); }
.ti-icon--user-nav { --ti: url("icons/tabler/user.svg"); }
.ti-icon--user-filled { --ti: url("icons/tabler/user-filled.svg"); }
.ti-icon--discount { --ti: url("icons/tabler/discount.svg"); }
.ti-icon--layout-grid { --ti: url("icons/tabler/layout-grid.svg"); }
.ti-icon--messages { --ti: url("icons/tabler/messages.svg"); }
.ti-icon--message-circle { --ti: url("icons/tabler/message-circle.svg"); }
.ti-icon--message-circle-filled { --ti: url("icons/tabler/message-circle-filled.svg"); }
.ti-icon--headset { --ti: url("icons/tabler/headset.svg"); }
.ti-icon--user-circle { --ti: url("icons/tabler/user-circle.svg"); }
.ti-icon--building-store { --ti: url("icons/tabler/building-store.svg"); }
.ti-icon--package { --ti: url("icons/tabler/package.svg"); }

.search__icon {
  color: #a1a3a8;
  width: 18px;
  height: 18px;
  font-size: 18px;
}

/*
  Digikala TextField input:
  px-2 text-subtitle text-body-2 text-button-regular
  text-neutral-500 h-full w-full
  placeholder="جستجو در همه کالاها"
*/
.search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  color: #81858b; /* text-neutral-500 */
  caret-color: var(--color-primary);
  -webkit-appearance: none;
  appearance: none;
}
.search__input:focus {
  color: #0c0c0c; /* typed text → neutral-800 */
}
.search__input::placeholder {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  color: #81858b; /* text-neutral-500 */
  opacity: 1;
}
.search__input::-webkit-search-decoration,
.search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search__input[readonly] { cursor: pointer; }

body.is-search-open {
  overflow: hidden;
}

/*
  جستجو: موبایل تمام‌صفحه · دسکتاپ پنل شناور روی بک‌دراپ تیره
*/
.search-fs {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  font-family: var(--font);
}
.search-fs[hidden] { display: none !important; }
.search-fs__scrim {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.search-fs__panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.search-fs__top {
  flex-shrink: 0;
  width: 100%;
  background: #ffffff;
  padding: 4px;
  z-index: 1;
}
.search-fs__top-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0 2px 12px; /* pl-3 */
}

.search-fs__close {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 12px; /* p-3 */
  border: 0;
  background: transparent;
  color: #0c0c0c; /* content/1 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-fs__close .ti-icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.search-fs__box {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: 40px; /* h-10 */
  padding: 0 12px; /* px-3 */
  background: #ffffff;
  border: 1px solid #e0e0e2; /* border-neutral-200 */
  border-radius: 9999px;
  transition: background-color .15s ease;
}
.search-fs__box:focus-within {
  background: #00000005;
}

.search-fs__search-icon {
  color: #81858b; /* content/3 */
  width: 16px;
  height: 16px;
  font-size: 16px;
  flex-shrink: 0;
}

.search-fs__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 8px; /* px-2 */
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 14px; /* text-body-2 */
  font-weight: 400;
  line-height: 24px;
  color: #81858b; /* text-neutral-500 */
  caret-color: var(--color-primary);
}
.search-fs__input:focus { color: #0c0c0c; }
.search-fs__input::placeholder {
  color: #81858b;
  opacity: 1;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
}

.search-fs__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

.search-fs__block,
.search-fs__trending {
  padding: 16px 16px 8px;
}
.search-fs__block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.search-fs__block-head .search-fs__title { margin: 0; }
.search-fs__clear {
  border: 0;
  background: transparent;
  color: #81858b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.search-fs__clear:hover { color: #ef394e; }

.search-fs__title {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #0c0c0c;
  text-align: right;
}

.search-fs__live {
  margin-top: 4px;
}
.search-fs__hits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.search-fs__hits a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #0c0c0c;
  background: #fff;
  border: 1px solid #ececed;
}
.search-fs__hits a:hover {
  border-color: #ef394e;
  background: #fff8f9;
}
.search-fs__hits img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f5f5;
  flex-shrink: 0;
}
.search-fs__hits span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.search-fs__hits strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-fs__hits em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #ef394e;
}
.search-fs__more {
  display: inline-flex;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #ef394e;
  text-decoration: none;
}

.amazing__title--lockup {
  font-size: 16px;
}

.search-fs__promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 16px 8px;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background:
    linear-gradient(120deg, #1a1d24 0%, #2b303b 55%, #3a2030 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}
.search-fs__promo-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.search-fs__promo-copy strong {
  font-size: 14px;
  font-weight: 800;
}
.search-fs__promo-copy span {
  font-size: 12px;
  opacity: 0.78;
  font-weight: 500;
}
.search-fs__promo-cta {
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: #fff;
  color: #0c0c0c;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.search-fs__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start; /* RTL: از راست */
}

.search-fs__chip {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e0e0e2;
  border-radius: 9999px;
  color: #424750;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.search-fs__chip:hover {
  background: #f5f5f5;
}
.search-fs__chip .ti-icon {
  width: 12px;
  height: 12px;
  font-size: 12px;
  color: #424750; /* fixed/neutral-80 */
  order: 1; /* در RTL آیکون سمت چپ متن */
}
.search-fs__chip span:last-child {
  order: 0;
}

/*
  Digikala chip style — پروفایل:
  rounded-full border-neutral-200 w-11 h-11
*/
.header__profile {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin-inline-start: 0;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border: 2.5px solid #c8c8cc;
  border-radius: 9999px;
  color: #424750;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
  font-family: inherit;
}
.header__profile:hover {
  background: #fafafa;
  border-color: #b0b0b5;
}
.header__profile.is-open {
  background: #fff1f2;
  border-color: #ef394e;
  color: #ef394e;
}
.header__profile-icon {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

/* منوی پروفایل دسکتاپ */
.profile-menu[hidden] { display: none !important; }
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 220;
  width: 280px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #f0f0f1;
  border-radius: 12px;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.08),
    0 18px 40px rgba(15, 23, 42, 0.12);
  font-family: var(--font);
  animation: profileMenuIn 0.22s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
@keyframes profileMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.profile-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #f5f5f5;
  background: transparent;
  color: #0c0c0c;
  text-decoration: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  box-sizing: border-box;
}
.profile-menu__item:last-child { border-bottom: 0; }
.profile-menu__item:hover { background: #fafafa; }
.profile-menu__item .ti-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: #424750;
  flex-shrink: 0;
}
.profile-menu__item em {
  font-style: normal;
  flex: 1;
  min-width: 0;
}
.profile-menu__item--user {
  font-weight: 800;
  font-size: 14px;
}
.profile-menu__item--user .ti-icon {
  margin-inline-start: auto;
  color: #a1a3a8;
  width: 16px;
  height: 16px;
  font-size: 16px;
}
.profile-menu__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-menu__item--static {
  cursor: default;
}
.profile-menu__item--static:hover { background: transparent; }
.profile-menu__item--static strong {
  margin-inline-start: auto;
  font-size: 12.5px;
  font-weight: 800;
  color: #81858b;
}
.profile-menu__item--logout {
  color: #0c0c0c;
}

/* سبد خرید — جای «تحویل به خانه» (فقط تریگر داخل nav) */
.nav__cart-wrap {
  flex-shrink: 0;
  margin-inline-start: auto;
}
.nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--color-hint);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.15s ease;
}
.nav__cart:hover,
.nav__cart[aria-expanded="true"] {
  color: var(--color-primary);
}
.nav__cart .ti-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: inherit;
}
.nav__cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50px;
  background: #ef394e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.nav__cart-badge:not([hidden]) {
  display: inline-flex;
  animation: cartBadgePop 0.4s cubic-bezier(0.22, 1.4, 0.36, 1);
}
@keyframes cartBadgePop {
  0% { transform: scale(0.4); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/*
  مینی‌سبد — لایه جدا (fixed)
  دسکتاپ: popover نزدیک دکمه
  موبایل: bottom sheet
  هیچ‌وقت داخل overflow ناو قرار نمی‌گیرد
*/
.mini-cart-root {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  visibility: hidden;
}
.mini-cart-root.is-open {
  pointer-events: auto;
  visibility: visible;
}
.mini-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.mini-cart-root.is-open .mini-cart-backdrop {
  opacity: 1;
}

.mini-cart {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f0f0f1;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.06),
    0 16px 40px -8px rgba(0, 0, 0, 0.18);
  max-height: min(78vh, 560px);
  overflow: hidden;
  opacity: 0;
}

.mini-cart__handle {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 50px;
  background: #e0e0e2;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.mini-cart__arrow {
  display: none;
}
.mini-cart__close {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: #424750;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.mini-cart__close .ti-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: inherit;
}

.mini-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f1;
  flex-shrink: 0;
}
.mini-cart__count {
  font-size: 13px;
  font-weight: 700;
  color: #0c0c0c;
  margin-inline-end: auto;
}
.mini-cart__view {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #19bfd3;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.mini-cart__view .ti-icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  color: inherit;
}
.mini-cart__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
.mini-cart__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  opacity: 0;
  transform: translateY(8px);
}
.mini-cart-root.is-open .mini-cart__item {
  animation: miniCartItemIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mini-cart-root.is-open .mini-cart__item:nth-child(1) { animation-delay: 0.06s; }
.mini-cart-root.is-open .mini-cart__item:nth-child(2) { animation-delay: 0.12s; }
.mini-cart-root.is-open .mini-cart__item:nth-child(3) { animation-delay: 0.18s; }
@keyframes miniCartItemIn {
  to { opacity: 1; transform: translateY(0); }
}
.mini-cart__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  background: #fafafa;
  flex-shrink: 0;
  border: 1px solid #f0f0f1;
}
.mini-cart__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-cart__title {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  color: #424750;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-cart__qty {
  font-size: 12px;
  color: #81858b;
  font-weight: 500;
}
.mini-cart__remove {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: #ef394e;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 4px;
  transition: background 0.15s ease;
}
.mini-cart__remove:hover { background: #fff1f2; }
.mini-cart__remove .ti-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: inherit;
}
.mini-cart__empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 24px 44px;
  color: #81858b;
  text-align: center;
}
.mini-cart.is-empty .mini-cart__empty { display: flex; }
.mini-cart.is-empty .mini-cart__body,
.mini-cart.is-empty .mini-cart__foot,
.mini-cart.is-empty .mini-cart__view {
  display: none;
}
.mini-cart.is-empty .mini-cart__head {
  border-bottom: 0;
}
.mini-cart.is-empty .mini-cart__count { display: none; }
.mini-cart__empty-ico {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff1f2 0%, #f5f5f5 100%);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  opacity: 0;
  transform: scale(0.7) translateY(8px);
}
.mini-cart-root.is-open .mini-cart.is-empty .mini-cart__empty-ico {
  animation: miniCartEmptyIn 0.45s 0.08s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}
.mini-cart__empty-ico .ti-icon {
  width: 32px;
  height: 32px;
  font-size: 32px;
  color: #ef394e;
  opacity: 0.85;
}
.mini-cart__empty p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #424750;
  opacity: 0;
  transform: translateY(6px);
}
.mini-cart__empty-hint {
  font-size: 12px;
  color: #a1a3a8;
  opacity: 0;
  transform: translateY(6px);
}
.mini-cart-root.is-open .mini-cart.is-empty .mini-cart__empty p {
  animation: miniCartEmptyIn 0.4s 0.16s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mini-cart-root.is-open .mini-cart.is-empty .mini-cart__empty-hint {
  animation: miniCartEmptyIn 0.4s 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes miniCartEmptyIn {
  to { opacity: 1; transform: none; }
}
.mini-cart__foot {
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f0f0f1;
  flex-shrink: 0;
  background: #fff;
}
.mini-cart__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.mini-cart__total span {
  font-size: 12px;
  color: #81858b;
  font-weight: 500;
}
.mini-cart__total strong {
  font-size: 16px;
  font-weight: 800;
  color: #0c0c0c;
  direction: ltr;
  unicode-bidi: plaintext;
}
.mini-cart__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 10px;
  background: #ef394e;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mini-cart__checkout:hover { background: #e02e44; }
.mini-cart__checkout:active { transform: scale(0.98); }

body.mini-cart-open {
  overflow: hidden;
}

/* موبایل / تبلت باریک: bottom sheet */
@media (max-width: 767px) {
  .mini-cart {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
    border: 0;
    transform: translateY(110%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    opacity: 1;
  }
  .mini-cart-root.is-open .mini-cart {
    transform: translateY(0);
  }
  .mini-cart__handle { display: block; }
  .mini-cart__close {
    display: grid;
  }
  .mini-cart__arrow { display: none !important; }
}

/* دسکتاپ: popover چسبیده به دکمه (موقعیت با JS) */
@media (min-width: 768px) {
  .mini-cart-backdrop {
    background: transparent;
  }
  .mini-cart {
    width: 360px;
    border-radius: 12px;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition:
      opacity 0.22s ease,
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mini-cart-root.is-open .mini-cart {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .mini-cart__arrow {
    display: block;
    position: absolute;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid #f0f0f1;
    border-inline-start: 1px solid #f0f0f1;
    transform: rotate(45deg);
  }
  .mini-cart__handle,
  .mini-cart__close {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 10px;
  overflow: visible;
  border-top: 1px solid transparent;
  min-width: 0;
}
.nav__cats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__cats .ti-icon {
  width: 22px;
  height: 22px;
  font-size: 22px;
  color: var(--color-icon);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav__links::-webkit-scrollbar { display: none; }

.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-hint);
}

.nav__links a:hover { color: var(--color-primary); }

.nav__links .nav__hot {
  color: var(--color-primary);
  font-weight: 500;
}
.nav__hot .ti-icon {
  width: 15px;
  height: 15px;
  font-size: 15px;
}


/*
  ========== HERO / Digikala main banner ==========
  Upload: Desktop 2880×400 · Mobile 960×480
  Full-bleed, border-radius: 0, object-fit: cover
*/
.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f0f0f1;
  /* موبایل Digikala: نسبت نزدیک ۲:۱ */
  aspect-ratio: 960 / 480;
}

.hero__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__slide {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.hero__slide.is-active {
  display: block;
  animation: hero-fade .35s ease;
}

@keyframes hero-fade {
  from { opacity: .55; }
  to { opacity: 1; }
}

/* Digikala: w-full h-full inline-block · object-fit: cover · border-radius: 0 */
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  border: 0;
}

.hero__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  pointer-events: auto;
}
.hero__dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  padding: 0;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.hero__dots button.is-active {
  width: 16px;
  border-radius: 50px;
  background: #fff;
}

@media (min-width: 768px) {
  .hero {
    /* تبلت/دسکتاپ: نسبت بنر اصلی Digikala 2880×400 */
    aspect-ratio: 2880 / 400;
  }
  .hero__dots { bottom: 14px; }
}

/* ========== COOP MOTION — بنر همکاری ========== */
.coop-motion {
  margin-top: 12px;
}
.coop-motion__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  min-height: 48px;
  padding: 12px 48px;
  background: linear-gradient(90deg, #8b1538, #c2185b 40%, #ef394e);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-8);
  text-decoration: none;
}
.coop-motion__stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.coop-motion__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 60%
  );
  background-size: 220% 100%;
  animation: coopShine 4.8s ease-in-out infinite;
}
@keyframes coopShine {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* OpenMoji — سقوط نرم از بالا به پایین */
.coop-bill {
  position: absolute;
  top: -36px;
  opacity: 0;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.28));
  will-change: transform, opacity;
  pointer-events: none;
  object-fit: contain;
}
.coop-bill--1 { inset-inline-start: 4%;  animation: coopFallL 5.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 0s; }
.coop-bill--2 { inset-inline-start: 14%; animation: coopFallL 5.8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 0.7s; }
.coop-bill--3 { inset-inline-start: 24%; animation: coopFallL 5.4s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 1.4s; }
.coop-bill--4 { inset-inline-end: 5%;   animation: coopFallR 5.3s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 0.35s; }
.coop-bill--5 { inset-inline-end: 15%;  animation: coopFallR 6s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 1.05s; }
.coop-bill--6 { inset-inline-end: 26%;  animation: coopFallR 5.6s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 1.75s; }
.coop-bill--7 { inset-inline-start: 38%; animation: coopFallL 6.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 2.2s; }
.coop-bill--8 { inset-inline-end: 38%;  animation: coopFallR 5.9s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 2.55s; }

@keyframes coopFallL {
  0% {
    transform: translate3d(-10px, 0, 0) rotate(-16deg) scale(0.85);
    opacity: 0;
  }
  10% { opacity: 1; }
  80% { opacity: 0.85; }
  100% {
    transform: translate3d(22px, 78px, 0) rotate(22deg) scale(1);
    opacity: 0;
  }
}
@keyframes coopFallR {
  0% {
    transform: translate3d(10px, 0, 0) rotate(16deg) scale(0.85);
    opacity: 0;
  }
  10% { opacity: 1; }
  80% { opacity: 0.85; }
  100% {
    transform: translate3d(-22px, 78px, 0) rotate(-22deg) scale(1);
    opacity: 0;
  }
}

.coop-motion__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  height: 1.55em;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coop-motion__line {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: "Vazirmatn", "Yekan Bakh", Estedad, Tahoma, sans-serif;
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-50%);
}
.coop-motion__line--a {
  animation: coopLineA 7s ease-in-out infinite;
}
.coop-motion__line--b {
  animation: coopLineB 7s ease-in-out infinite;
}
@keyframes coopLineA {
  0%, 5% {
    opacity: 0;
    transform: translate(-12px, -50%);
  }
  12%, 43% {
    opacity: 1;
    transform: translate(0, -50%);
  }
  50%, 100% {
    opacity: 0;
    transform: translate(12px, -50%);
  }
}
@keyframes coopLineB {
  0%, 50% {
    opacity: 0;
    transform: translate(12px, -50%);
  }
  57%, 90% {
    opacity: 1;
    transform: translate(0, -50%);
  }
  97%, 100% {
    opacity: 0;
    transform: translate(-12px, -50%);
  }
}

@media (max-width: 480px) {
  .coop-motion__link { padding: 14px 14px; min-height: 56px; }
  .coop-motion__line {
    font-size: 16px;
    font-weight: 800;
    white-space: normal;
    padding-inline: 6px;
    line-height: 1.4;
  }
  .coop-motion__copy { height: 2.9em; }
  .coop-bill { width: 22px !important; height: 22px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .coop-bill,
  .coop-motion__shine,
  .coop-motion__line--a,
  .coop-motion__line--b {
    animation: none !important;
  }
  .coop-motion__line--a {
    opacity: 1;
    position: relative;
    transform: none;
    top: auto;
  }
  .coop-motion__line--b { display: none; }
  .coop-bill { display: none; }
}

.promo-bar { display: none !important; }

/* ========== SPECIAL RAIL — پیشنهادهای ویژه (بنر سمت راست حتی در موبایل) ========== */
.special-rail {
  margin-top: 16px;
  padding-inline: 0;
  width: 100%;
}

.special-rail__shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  background: linear-gradient(145deg, #1f2a44 0%, #2f3f66 55%, #3a4f7a 100%);
  border-radius: 0;
  padding: 10px 8px 12px;
  display: grid;
  /* RTL: ستون اول = راست → بنر کنار کارت‌ها */
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.special-rail__side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 10px 4px 8px;
  min-height: 260px;
  z-index: 1;
}

.special-rail__watermark {
  position: absolute;
  inset: 18% -30% auto;
  font-size: 28px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  transform: rotate(-90deg);
  pointer-events: none;
  letter-spacing: -0.02em;
  user-select: none;
}

.special-rail__title {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  writing-mode: horizontal-tb;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.special-rail__all {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 8px;
}

.special-rail__all .ti-icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  color: #fff;
}

.special-rail__body {
  position: relative;
  min-width: 0;
}

.special-rail__scroller {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 2px 4px;
}

.special-rail__scroller::-webkit-scrollbar { display: none; }

.special-card {
  flex: 0 0 148px;
  width: 148px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.special-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px 8px 10px;
  gap: 6px;
}

.special-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f8;
}

.special-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.special-card__media .ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #f7f7f8;
}

.special-card__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #ffe6ea;
  color: #ef394e;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  direction: rtl;
  white-space: nowrap;
}

.special-card__title {
  margin: 0;
  color: #0c0c0c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  height: 2.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: right;
}

.special-card__prices {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.special-card__top {
  display: flex;
  align-items: center;
  gap: 4px;
}

.special-card__off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: #ef394e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.special-card__old {
  color: #a1a3a8;
  text-decoration: line-through;
  font-size: 11px;
  direction: ltr;
  unicode-bidi: plaintext;
}

.special-card__now {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: #0c0c0c;
  font-size: 14px;
  font-weight: 800;
  direction: ltr;
  unicode-bidi: plaintext;
}

.special-card__now span {
  font-size: 10px;
  font-weight: 600;
  color: #424750;
}

.special-rail__nav {
  display: none;
}

@media (min-width: 768px) {
  .special-rail {
    padding-inline: 12px;
    margin-top: 20px;
  }
  .special-rail__shell {
    border-radius: 16px;
    padding: 14px;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
  }
  .special-rail__side {
    min-height: 320px;
    padding: 16px 8px;
  }
  .special-rail__title {
    font-size: 18px;
    color: #fff;
  }
  .special-rail__all {
    font-size: 13px;
    color: #fff;
    padding: 8px 12px;
  }
  .special-rail__watermark {
    font-size: 36px;
    inset: 22% -40% auto;
  }
  .special-card {
    flex-basis: 180px;
    width: 180px;
  }
  .special-card__title {
    font-size: 13px;
  }
  .special-card__now {
    font-size: 16px;
  }
  .special-rail__nav {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    color: #424750;
    cursor: pointer;
    z-index: 2;
  }
  .special-rail__nav .ti-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
  }
}

/* ========== AMAZING — Digikala Android/mobile (top lockup + carousel) ========== */
.amazing {
  margin-top: 16px;
  padding: 0;
  width: 100%;
}

.amazing__widget {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  background: linear-gradient(225deg, rgb(210, 44, 78) 0%, rgb(33, 33, 33) 100%);
  border-radius: 0;
  padding: 12px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
}

/* بخش پیشنهادی — بنفش تیره */
.amazing--suggested .amazing__widget {
  background: linear-gradient(225deg, #6b3aa8 0%, #1a1028 55%, #0f0a18 100%);
}

.amazing__title {
  margin: 0;
  flex-shrink: 0;
  color: #fff;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Digikala Android: [٪ + شگفت‌انگیز + تایمر] ………… [همه ‹] */
.amazing__lockup {
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  width: 100%;
  min-height: 40px;
}

.amazing__lockup-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.amazing__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  line-height: 0;
}
.amazing__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.amazing__header-img {
  width: 88px;
  flex-shrink: 0;
  line-height: 0;
}
.amazing__header-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  direction: ltr;
  flex-shrink: 0;
  margin-inline-start: 4px;
}
.timer span {
  background: none;
  color: #fff;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  display: inline;
  line-height: 1;
}
.timer i {
  font-family: var(--font);
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  padding: 0 2px;
  color: #fff;
  opacity: .95;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.amazing__all {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  flex-shrink: 0;
  white-space: nowrap;
}
.amazing__all:hover { opacity: .9; }
.amazing__all-long { display: none; }
.amazing__all-short { display: inline; }
.amazing__all .ti-icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.amazing__body {
  min-width: 0;
  display: flex;
  align-items: stretch;
  padding: 0 12px;
}

.amazing__scroller {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px; /* موبایل: بک‌گراند قرمز/بنفش بین کارت‌ها دیده شود */
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  background: transparent;
}
.amazing__scroller::-webkit-scrollbar { display: none; }

/* ========== PRODUCT CARD (Digikala Android) ========== */
.product-card {
  background: var(--color-white);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

/* کارت‌های شگفت‌انگیز — خیلی درشت + ورود انیمیشنی */
@keyframes amazingCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.amazing__scroller .product-card {
  flex: 0 0 200px;
  width: 200px;
  min-height: 380px;
  border-radius: 12px;
  margin: 0; /* فاصله فقط از gap اسکرولر */
  opacity: 0;
  animation: amazingCardIn 0.55s cubic-bezier(0.22, 1.15, 0.36, 1) forwards;
  will-change: opacity, transform;
}
.amazing__scroller .product-card:nth-child(1) { animation-delay: 0.04s; }
.amazing__scroller .product-card:nth-child(2) { animation-delay: 0.1s; }
.amazing__scroller .product-card:nth-child(3) { animation-delay: 0.16s; }
.amazing__scroller .product-card:nth-child(4) { animation-delay: 0.22s; }
.amazing__scroller .product-card:nth-child(5) { animation-delay: 0.28s; }
.amazing__scroller .product-card:nth-child(6) { animation-delay: 0.34s; }
.amazing__scroller .product-card:nth-child(7) { animation-delay: 0.4s; }
.amazing__scroller .product-card:nth-child(8) { animation-delay: 0.46s; }
.amazing__scroller .product-card:nth-child(9) { animation-delay: 0.52s; }
.amazing__scroller .product-card:nth-child(10) { animation-delay: 0.58s; }
.amazing__scroller .product-card:nth-child(n + 11) { animation-delay: 0.64s; }

@media (prefers-reduced-motion: reduce) {
  .amazing__scroller .product-card {
    opacity: 1;
    animation: none;
    will-change: auto;
  }
}

/* عنوان شگفت‌انگیز: پررنگ، بزرگ، کامل بدون برش */
.amazing__scroller .product-card__title {
  color: #0c0c0c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  height: auto;
  max-height: none;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  text-overflow: unset;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 14px 12px 16px;
  gap: 10px;
}

.product-card__media {
  position: relative;
  width: 100%;
  max-width: 176px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__media .ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: #f7f7f8;
}

/* عنوان کارت — دو خط، کمی درشت‌تر */
.product-card__title {
  margin: 0;
  width: 100%;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  color: #62666d;
  line-height: 24px;
  height: 48px;
  max-height: 48px;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/*
  Digikala Android: items-start → بلوک قیمت راست‌چین (RTL)
  row1: [٪][old]   row2: [price][toman]
*/
.product-card__price-box {
  margin-top: auto;
  align-self: flex-start; /* راست در RTL — Digikala mobile */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  min-height: 42px;
  padding-top: 2px;
  gap: 0;
  font-family: var(--font);
}

.product-card__top-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start; /* RTL: تخفیف راست، قیمت قدیم چپش */
  gap: 6px;
  width: 100%;
  min-height: 20px;
  overflow: visible;
}

/* text-body-2 text-neutral-300 line-through leading-[16px] ml-1 */
.product-card__old {
  color: #a1a3a8;
  text-decoration: line-through;
  text-decoration-color: #a1a3a8;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  direction: ltr;
  unicode-bidi: plaintext;
  margin-left: 4px; /* ml-1 */
  flex-shrink: 1;
  min-width: 0;
}

/*
  Digikala discountWrapper:
  px-1 text-white rounded-large flex items-center justify-center
  bg-hint-object-error shrink-0 !h-4 · text-body2-strong
*/
.product-card__off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 20px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 16px; /* rounded-large */
  background: #ef394e; /* hint-object-error پررنگ */
  color: #ffffff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
  white-space: nowrap;
  box-sizing: border-box;
}

.product-card__bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  gap: 0;
}

/* قیمت نهایی — درشت‌تر داخل کارت بزرگ */
.product-card__value {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 800;
  color: #0c0c0c;
  line-height: 30px;
  direction: ltr;
  unicode-bidi: plaintext;
  margin-left: 2px;
  letter-spacing: 0;
}

.product-card__currency {
  color: #0c0c0c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}

/* dds-icon value-toman */
.icon-toman {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  color: #0c0c0c;
}

/* ========== DEAL BOARDS ========== */
.deal-boards {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.deal-board {
  background: var(--color-white);
  border-radius: var(--radius-16);
  padding: 12px;
  border: 1px solid var(--color-border);
}

.deal-board header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.deal-board h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.deal-board h3 .pct {
  color: var(--color-primary);
  font-size: 16px;
}

.deal-board header a {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.deal-board__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.deal-thumb {
  background: #fff;
  border: 1px solid #f0f0f1;
  border-radius: var(--radius-8);
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
}
.deal-thumb img,
.deal-thumb .ph {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.deal-thumb .ph {
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #f7f7f8;
}

/* ========== BESTSELLERS ========== */
.product-rail {
  margin: 24px auto 40px;
}

.product-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-rail__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.product-rail__head a {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
}

.product-rail__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.product-rail__track::-webkit-scrollbar { display: none; }

.product-rail__track .product-card {
  flex: 0 0 clamp(168px, 20vw, 200px);
  width: clamp(168px, 20vw, 200px);
  min-height: 300px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.product-rail__track .product-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  outline: none;
}

/* ========== SITE FOOTER (الگوی آرنیکا) ========== */
.site-footer {
  margin-top: 28px;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.site-footer__features {
  background: #fff;
  padding: 28px 0 22px;
  border-bottom: 1px solid #f0f0f1;
}

.site-footer__features-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.site-footer__feature {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-inline: 0;
}

.site-footer__feature img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.site-footer__feature span {
  color: #424750;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.site-footer__main {
  background: #fff;
  padding: 28px 0 24px;
}

.site-footer__main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px 40px;
  align-items: start;
}

.site-footer__col h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #0c0c0c;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #62666d;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-footer__links a:hover {
  color: var(--color-primary);
}

.site-footer__links .ti-icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  color: #a1a3a8;
}

.site-footer__hours {
  margin: 0 0 10px;
  color: #62666d;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer__phone {
  display: inline-block;
  margin-bottom: 10px;
  color: #0c0c0c;
  font-size: 14px;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: plaintext;
}

.site-footer__phone:hover {
  color: var(--color-primary);
}

.site-footer__address {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #81858b;
  line-height: 1.55;
  max-width: 280px;
}

.site-footer__socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__social {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e0e0e2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #424750;
  background: #fff;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.site-footer__social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.site-footer__social:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.site-footer__social--wa:hover { border-color: #25d366; }
.site-footer__social--ig:hover { border-color: #e4405f; }
.site-footer__social--rb:hover { border-color: #7b2ff7; }

.site-footer__about {
  background: #fafafa;
  padding: 24px 0;
  border-top: 1px solid #f0f0f1;
}

.site-footer__about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: start;
}

.site-footer__intro h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0c0c0c;
}

.site-footer__intro-body {
  color: #62666d;
  font-size: 12.5px;
  line-height: 1.9;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.site-footer__intro-body[data-collapsed="true"] {
  max-height: 3.8em;
}

.site-footer__intro-body[data-collapsed="false"] {
  max-height: 240px;
}

.site-footer__intro-body p {
  margin: 0;
}

.site-footer__more {
  margin-top: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.site-footer__more .ti-icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.site-footer__more[aria-expanded="true"] .ti-icon {
  transform: rotate(180deg);
}

.site-footer__trust {
  display: flex;
  justify-content: center;
}

.site-footer__trust-card {
  width: 125px;
  height: 140px;
  border: 1px solid #e0e0e2;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.site-footer__trust-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer__copy {
  background: #f5f5f5;
  border-top: 1px solid #ececec;
  padding: 14px 0;
  text-align: center;
}

.site-footer__copy p {
  margin: 0;
  color: #81858b;
  font-size: 11.5px;
  line-height: 1.7;
}

/*
  Floating nav — تم تمیز Digikala
  سفید · خاکستری ملایم · اکسنت قرمز برند
*/
.fnav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  font-family: var(--font);
  transition: transform 0.28s ease, opacity 0.22s ease;
}
body.is-kbd-open .fnav {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
body.is-kbd-open {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
}
.fnav > * { pointer-events: auto; }

.fnav__dock {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fnav__nav {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: 76px;
  padding: 8px 10px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #f0f0f1;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.08);
}

.fnav__indicator {
  position: absolute;
  top: 10px;
  height: 34px;
  width: 58px;
  border-radius: 16px;
  background: #fff1f2; /* صورتی خیلی ملایم */
  transition: transform .28s cubic-bezier(.32,.72,.25,1), width .28s ease;
  pointer-events: none;
  z-index: 0;
}

.fnav__item {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 6px 2px;
  color: #a1a3a8;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease;
}
.fnav__item:active { transform: scale(0.96); }

.fnav__ico {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.fnav__ico .ti-icon {
  width: 28px;
  height: 28px;
  font-size: 28px;
  color: inherit;
  grid-area: 1 / 1;
}
.fnav__ico--on { display: none; }
.fnav__item.is-active .fnav__ico--out { display: none; }
.fnav__item.is-active .fnav__ico--on { display: inline-block; }

.fnav__label {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fnav__item.is-active {
  color: #ef394e;
}
.fnav__item.is-active .fnav__label {
  font-weight: 700;
}

/* FAB پشتیبانی + منوی شعاعی تماس / روبیکا / واتساپ */
.fnav__support {
  position: relative;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  z-index: 5;
}
.fnav__support-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(12, 12, 12, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  cursor: pointer;
}
.fnav__support.is-open .fnav__support-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.fnav__support-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px;
  border-radius: 50%;
  border: 2px solid rgba(239, 57, 78, 0.35);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.fnav__support.is-open .fnav__support-ring {
  opacity: 1;
  transform: translate(36px, -36px) scale(3.4);
  animation: supportRingPulse 1.6s ease-out infinite;
}
@keyframes supportRingPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 57, 78, 0.28); }
  70% { box-shadow: 0 0 0 14px rgba(239, 57, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 57, 78, 0); }
}

.fnav__support-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 0) scale(0.4);
  transition:
    transform 0.48s cubic-bezier(0.22, 1.25, 0.36, 1),
    opacity 0.28s ease;
  transition-delay: calc(var(--d, 0) * 45ms);
  -webkit-tap-highlight-color: transparent;
}
.fnav__support.is-open .fnav__support-item {
  opacity: 1;
  pointer-events: auto;
  transform: translate(var(--x, 0px), var(--y, -90px)) scale(1);
}
.fnav__support.is-open .fnav__support-item.is-phone {
  z-index: 4;
}
.fnav__support.is-open .fnav__support-item.is-phone .fnav__support-bubble {
  width: 56px;
  height: 56px;
}
.fnav__support-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.18),
    0 2px 6px rgba(15, 23, 42, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.92);
  transition: transform 0.2s cubic-bezier(0.22, 1.2, 0.36, 1), box-shadow 0.2s ease;
}
.fnav__support-item:hover .fnav__support-bubble,
.fnav__support-item:focus-visible .fnav__support-bubble {
  transform: scale(1.08);
}
.fnav__support-item:active .fnav__support-bubble {
  transform: scale(0.94);
}
.fnav__support-bubble {
  overflow: hidden;
  background: #ffffff;
}
.fnav__support-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.fnav__support-item.is-phone .fnav__support-bubble,
.fnav__support-item.is-whatsapp .fnav__support-bubble,
.fnav__support-item.is-rubika .fnav__support-bubble {
  background: #0c0c0c;
  border-color: rgba(255, 255, 255, 0.95);
}
.fnav__support-item.is-phone .fnav__support-bubble img,
.fnav__support-item.is-whatsapp .fnav__support-bubble img,
.fnav__support-item.is-rubika .fnav__support-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fnav__support-label {
  position: absolute;
  top: calc(100% + 2px);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease 0.08s, transform 0.25s ease 0.08s;
  pointer-events: none;
}
.fnav__support.is-open .fnav__support-label {
  opacity: 1;
  transform: none;
}

.fnav__fab {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #ef394e;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(239, 57, 78, 0.28),
    0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-radius .25s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  padding: 0;
}
.fnav__fab:hover {
  background: #e02e44;
  box-shadow:
    0 6px 18px rgba(239, 57, 78, 0.34),
    0 2px 4px rgba(15, 23, 42, 0.08);
}
.fnav__fab:active {
  transform: scale(0.94);
}
.fnav__support.is-open .fnav__fab {
  border-radius: 50%;
  background: #232933;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
  transform: rotate(90deg);
}
.fnav__support.is-open .fnav__fab:active {
  transform: rotate(90deg) scale(0.94);
}
.fnav__fab-stack {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.fnav__fab-icon {
  width: 30px;
  height: 30px;
  font-size: 30px;
  color: #ffffff;
  background-color: #ffffff;
  grid-area: 1 / 1;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.fnav__fab-icon--close {
  opacity: 0;
  transform: scale(0.5) rotate(-40deg);
}
.fnav__support.is-open .fnav__fab-icon--open {
  opacity: 0;
  transform: scale(0.5) rotate(40deg);
}
.fnav__support.is-open .fnav__fab-icon--close {
  opacity: 1;
  transform: scale(1) rotate(-90deg);
}
body.is-support-open .fnav {
  z-index: 260;
}

body.is-search-open .fnav {
  display: none;
}

/* شیت/مودال باز: ناوبری شناور و هدر روی محتوا نیایند */
body:has(.order-sheet.is-open) .fnav,
body:has(.addr-sheet.is-open) .fnav,
body:has(.chk-sheet.is-open) .fnav,
body:has(.logout-modal.is-open) .fnav {
  visibility: hidden;
  pointer-events: none;
}
body:has(.order-sheet.is-open) .header,
body:has(.addr-sheet.is-open) .header,
body:has(.chk-sheet.is-open) .header {
  pointer-events: none;
}

/* اسکرول به فیلد فوکوس‌شده زیر هدر/بالای ناوبری */
html {
  scroll-padding-top: calc(var(--header-h, 64px) + 12px);
  scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

/* دسکتاپ: نوار پایین مخفی، فقط FAB پشتیبانی گوشه چپ پایین */
@media (min-width: 1024px) {
  .fnav {
    display: flex;
    inset-inline: auto;
    left: 24px;
    right: auto;
    bottom: 24px;
    width: auto;
    padding: 0;
  }
  .fnav__nav {
    display: none !important;
  }
  .fnav__dock {
    gap: 0;
  }
  body { padding-bottom: 0; }
}

/* تأیید خروج — قابل استفاده در هدر دسکتاپ */
.logout-modal[hidden] { display: none !important; }
.logout-modal {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: var(--font);
}
.logout-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(12, 12, 18, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.logout-modal.is-open .logout-modal__backdrop { opacity: 1; }
.logout-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 28px 22px 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #f0f0f1;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.06),
    0 24px 56px rgba(15, 23, 42, 0.18);
  text-align: center;
  overflow: hidden;
  transform: translateY(18px) scale(0.92);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1.15, 0.36, 1),
    opacity 0.28s ease;
}
.logout-modal.is-open .logout-modal__card {
  transform: none;
  opacity: 1;
}
.logout-modal__glow {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 220px;
  height: 220px;
  margin-left: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 57, 78, 0.18) 0%, rgba(239, 57, 78, 0) 70%);
  pointer-events: none;
}
.logout-modal__icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff1f2 0%, #ffe4e8 100%);
  border: 1px solid #ffd6dc;
  box-shadow: 0 8px 22px rgba(239, 57, 78, 0.14);
}
.logout-modal__icon .ti-icon {
  width: 32px;
  height: 32px;
  font-size: 32px;
  color: #ef394e;
}
.logout-modal__card h2 {
  position: relative;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #0c0c0c;
}
.logout-modal__card p {
  position: relative;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  color: #81858b;
}
.logout-modal__actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.logout-modal__btn {
  height: 48px;
  border-radius: 14px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.logout-modal__btn--ghost {
  background: #f5f5f6;
  color: #232933;
}
.logout-modal__btn--danger {
  background: #ef394e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 57, 78, 0.28);
}

/* ========== پیگیری سفارش (مودال) ========== */
.track-modal[hidden] { display: none !important; }
.track-modal {
  position: fixed;
  inset: 0;
  z-index: 340;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 0;
  font-family: var(--font);
}
.track-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(12, 12, 18, 0.5);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.track-modal.is-open .track-modal__backdrop { opacity: 1; }
.track-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92dvh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin: 0;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(180deg, #fff7f8 0%, #ffffff 42%, #ffffff 100%);
  border: 1px solid #f0f0f1;
  border-bottom: 0;
  box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.18);
  transform: translateY(110%);
  transition: transform 0.42s cubic-bezier(0.22, 1.15, 0.36, 1);
}
.track-modal.is-open .track-modal__sheet { transform: none; }
.track-modal__handle {
  width: 42px;
  height: 4px;
  margin: 2px auto 14px;
  border-radius: 99px;
  background: #e4e5e9;
}
.track-modal__x {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f6;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #232933;
}
.track-modal__x .ti-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
}
.track-modal__hero {
  position: relative;
  text-align: center;
  padding: 6px 8px 18px;
}
.track-modal__orb {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 180px;
  height: 180px;
  margin-left: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 57, 78, 0.18) 0%, rgba(239, 57, 78, 0) 68%);
  pointer-events: none;
  animation: trackOrb 3.2s ease-in-out infinite;
}
@keyframes trackOrb {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}
.track-modal__icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #ef394e 0%, #d9143a 100%);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(239, 57, 78, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: trackIconIn 0.55s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
.track-modal.is-open .track-modal__icon {
  animation: trackIconIn 0.55s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
@keyframes trackIconIn {
  0% { transform: scale(0.55) rotate(-8deg); opacity: 0; }
  70% { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.track-modal__icon .ti-icon {
  width: 34px;
  height: 34px;
  font-size: 34px;
  color: #fff;
  background-color: #fff;
}
.track-modal__hero h2 {
  position: relative;
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #0c0c0c;
  letter-spacing: -0.02em;
}
.track-modal__hero p {
  position: relative;
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #81858b;
  line-height: 1.6;
}
.track-modal__form {
  display: grid;
  gap: 10px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.track-modal__form.is-hidden {
  display: none;
}
.track-modal__field {
  display: grid;
  gap: 8px;
  text-align: start;
}
.track-modal__field-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #3f4064;
}
.track-modal__field input {
  width: 100%;
  height: 56px;
  border: 1.5px solid #e0e0e2;
  border-radius: 16px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  color: #0c0c0c;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.track-modal__field input::placeholder {
  color: #c0c2c5;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 15px;
}
.track-modal__field input:focus {
  border-color: #ef394e;
  box-shadow: 0 0 0 4px rgba(239, 57, 78, 0.12);
}
.track-modal__field.is-shake {
  animation: trackShake 0.42s ease;
}
@keyframes trackShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.track-modal__hint {
  margin: 0;
  font-size: 12px;
  color: #a1a3a8;
  text-align: center;
}
.track-modal__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  color: #ef394e;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}
.track-modal__error[hidden] { display: none !important; }
.track-modal__submit {
  position: relative;
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef394e 0%, #d9143a 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(239, 57, 78, 0.28);
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
  overflow: hidden;
}
.track-modal__submit:active { transform: scale(0.98); }
.track-modal__submit.is-loading {
  pointer-events: none;
  filter: saturate(0.9);
}
.track-modal__submit.is-loading .track-modal__submit-text { opacity: 0; }
.track-modal__spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  transform: scale(0.6);
}
.track-modal__submit.is-loading .track-modal__spinner {
  opacity: 1;
  animation: trackSpin 0.7s linear infinite;
}
@keyframes trackSpin {
  to { transform: rotate(360deg); }
}

.track-modal__result {
  margin-top: 4px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1.15, 0.36, 1);
}
.track-modal__result.is-show {
  opacity: 1;
  transform: none;
}
.track-modal__result[hidden] { display: none !important; }
.track-result__card {
  padding: 18px 16px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #f0f0f1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.track-result__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.track-result__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  background: #fff1f2;
  color: #ef394e;
  font-size: 12px;
  font-weight: 800;
}
.track-result__code {
  font-size: 13px;
  font-weight: 800;
  color: #81858b;
  letter-spacing: 0.06em;
}
.track-result__step {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #0c0c0c;
}
.track-result__bar {
  height: 8px;
  border-radius: 99px;
  background: #f0f0f1;
  overflow: hidden;
  margin-bottom: 14px;
}
.track-result__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef394e, #ff7a8a);
  transform-origin: right center;
  animation: trackBar 0.8s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
@keyframes trackBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.track-result__meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.track-result__meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}
.track-result__meta span { color: #81858b; }
.track-result__meta strong { font-weight: 700; color: #0c0c0c; }
.track-result__again {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: #f5f5f6;
  color: #232933;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 640px) {
  .track-modal {
    place-items: center;
    padding: 24px;
  }
  .track-modal__sheet {
    border-radius: 28px;
    border-bottom: 1px solid #f0f0f1;
    transform: translateY(24px) scale(0.94);
    opacity: 0;
    transition:
      transform 0.4s cubic-bezier(0.22, 1.15, 0.36, 1),
      opacity 0.28s ease;
  }
  .track-modal.is-open .track-modal__sheet {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track-modal__backdrop,
  .track-modal__sheet,
  .track-modal__icon,
  .track-modal__orb,
  .track-modal__result,
  .track-result__bar span {
    animation: none !important;
    transition: none !important;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .deal-boards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header__main { gap: 10px; }
  .nav {
    justify-content: space-between;
    gap: 8px;
  }
  .nav__links { display: none; }
  .nav__cart-wrap { margin-inline-start: 0; }
  .product-card__value { font-size: 17px; line-height: 24px; }
  .product-card__old { font-size: 13px; line-height: 18px; }
  .product-card__off { font-size: 12px; height: 18px; min-height: 18px; }
  .deal-boards { grid-template-columns: 1fr; }
  .product-rail__track .product-card {
    flex-basis: 150px;
    width: 150px;
  }
  .site-footer {
    margin-top: 16px;
  }
  .site-footer__features {
    padding: 16px 0 12px;
  }
  .site-footer__features-row {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: visible;
  }
  .site-footer__feature {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    gap: 6px;
  }
  .site-footer__feature img {
    width: 36px;
    height: 36px;
  }
  .site-footer__feature span {
    font-size: 9.5px;
    line-height: 1.3;
  }
  .site-footer__main {
    padding: 16px 0 14px;
  }
  .site-footer__main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }
  .site-footer__col--extra {
    display: none;
  }
  .site-footer__col--contact {
    grid-column: auto;
  }
  .site-footer__col h3 {
    margin-bottom: 10px;
    font-size: 13px;
  }
  .site-footer__links {
    gap: 8px;
  }
  .site-footer__links a {
    font-size: 12px;
  }
  .site-footer__hours {
    font-size: 11.5px;
    margin-bottom: 6px;
  }
  .site-footer__phone {
    font-size: 12.5px;
    margin-bottom: 10px;
  }
  .site-footer__about {
    padding: 14px 0;
  }
  .site-footer__about-grid {
    grid-template-columns: 1fr auto;
    gap: 12px 14px;
    align-items: center;
  }
  .site-footer__trust {
    order: 0;
  }
  .site-footer__trust-card {
    width: 88px;
    height: 100px;
  }
  .site-footer__trust-card img {
    width: 88px;
    height: 100px;
  }
  .site-footer__intro h3 {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .site-footer__intro-body {
    font-size: 11.5px;
    line-height: 1.7;
  }
  .site-footer__copy {
    padding: 10px 0;
  }
  .site-footer__copy p {
    font-size: 10.5px;
  }
}

@media (max-width: 480px) {
  .amazing__header-img { width: 78px; }
  .site-footer__features {
    padding: 14px 0 10px;
  }
  .site-footer__feature img {
    width: 32px;
    height: 32px;
  }
  .site-footer__feature span {
    font-size: 9px;
  }
  .site-footer__main-grid {
    grid-template-columns: 1fr 1fr;
  }
  .amazing__scroller .product-card {
    flex-basis: 188px;
    width: 188px;
    min-height: 360px;
  }
  .product-card__media { max-width: 164px; }
}

/* Digikala desktop: سایدبار عمودی + کارت‌های جدا با فاصله */
@media (min-width: 1024px) {
  .header__main {
    gap: 16px;
    padding: 14px 0 10px;
    justify-content: flex-start;
  }
  .header__logo-sq {
    width: 52px;
    height: 52px;
  }
  .header__search-wrap {
    flex: 0 1 640px;
    max-width: 640px;
    width: 100%;
    justify-content: stretch;
  }
  .search {
    max-width: 640px;
    height: 46px;
  }
  /* نوتیف · سبد · پروفایل — چسبیده به سمت چپ صفحه در ویندوز */
  .header__tools {
    margin-inline-start: auto;
    gap: 10px;
  }
  .header__tool {
    display: grid;
    width: 44px;
    height: 44px;
  }
  .header__profile {
    display: inline-flex;
    width: auto;
    min-width: 48px;
    height: 44px;
    padding: 0 12px;
    gap: 4px;
    border-width: 1px;
    border-color: #e0e0e2;
  }
  .header__profile .header__profile-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
  }
  .header__profile-caret { display: inline-block !important; }
  .nav__cart-wrap { display: none; }
  .nav__links {
    gap: 22px;
    flex: 0 1 auto;
    overflow: visible;
  }
  .nav__links a {
    font-size: 14px;
    font-weight: 600;
    color: #424750;
  }

  /* جستجوی دسکتاپ: پنل شناور مثل دیجیکالا، نه سفید تمام‌صفحه */
  .search-fs {
    background: transparent;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 24px 32px;
    overflow: auto;
  }
  .search-fs__scrim {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 18, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .search-fs__panel {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    width: min(860px, 100%);
    max-height: min(78vh, 640px);
    border-radius: 16px;
    border: 1px solid #f0f0f1;
    box-shadow:
      0 8px 28px rgba(15, 23, 42, 0.12),
      0 28px 64px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    animation: searchPanelIn 0.28s cubic-bezier(0.22, 1.15, 0.36, 1) both;
  }
  @keyframes searchPanelIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
  .search-fs__close { display: none; }
  .search-fs__top {
    padding: 14px 16px 8px;
    border-bottom: 1px solid #f5f5f5;
  }
  .search-fs__top-row { padding: 0; }
  .search-fs__box {
    height: 48px;
    border-radius: 12px;
    background: #f5f5f6;
    border-color: transparent;
  }
  .search-fs__box:focus-within {
    background: #fff;
    border-color: #e0e0e2;
    box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.08);
  }
  .search-fs__body { padding-bottom: 12px; }

  .search__input {
    padding: 0 16px; /* lg:px-4 */
    font-size: 14px; /* lg:text-body-2 */
  }
  .search__input::placeholder {
    font-size: 14px;
  }

  .amazing {
    margin-top: 24px;
    padding-inline: 12px;
  }
  .amazing--suggested {
    margin-top: 16px;
  }
  .amazing__widget {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
    border-radius: 16px;
    padding: 16px;
    width: min(var(--container), calc(100% - 24px));
  }
  .amazing__title {
    font-size: 22px;
  }
  .amazing__lockup {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 8px 4px;
    min-height: 0;
  }
  .amazing__lockup-main {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .amazing__icon {
    width: 64px;
    height: 64px;
  }
  .amazing__icon img {
    width: 64px;
    height: 64px;
  }
  .amazing__header-img {
    width: min(118px, 100%);
  }
  .timer {
    margin-inline-start: 0;
  }
  .amazing__all {
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 8px 12px;
  }
  .amazing__all:hover {
    background: rgba(255, 255, 255, .18);
    opacity: 1;
  }
  .amazing__all-short { display: none; }
  .amazing__all-long { display: inline; }
  .amazing__body { padding: 0; }
  .amazing__scroller {
    gap: 12px;
    border-radius: 0;
  }
  .amazing__scroller .product-card {
    flex: 0 0 220px;
    width: 220px;
    min-height: 400px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  .amazing__scroller .product-card:first-child,
  .amazing__scroller .product-card:last-child {
    border-radius: 12px;
  }
  .amazing__scroller .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }
  .product-card__link { padding: 16px 14px 18px; gap: 12px; }
  .product-card__media { max-width: 190px; }
  .product-card__title {
    height: 52px;
    max-height: 52px;
    line-height: 26px;
    font-size: 15px;
    font-weight: 500;
  }
  .amazing__scroller .product-card__title {
    color: #0c0c0c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    height: auto;
    max-height: none;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    text-overflow: unset;
  }
  .product-card__value { font-size: 24px; line-height: 32px; }
  .product-card__old { font-size: 15px; }
  .product-card__off { font-size: 14px; height: 22px; min-height: 22px; }
  .icon-toman { width: 18px; height: 18px; }
  /* Digikala lg:items-end → قیمت چپ در RTL */
  .product-card__price-box {
    align-self: flex-end;
    align-items: flex-end;
  }
}
