/* ============================================================
   Naka Pet Storefront — مرحله ۱
   موبایل‌فرست، راست‌چین، تیره و مینیمال (هویت ناکا پت)
   ============================================================ */
:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #1e1a14;
  --muted: #8d8478;
  --line: #ece4d4;
  --dark: #161310;
  --dark-2: #221d18;
  --brand: #0e6b5e;            /* سبز نفتی عمیق — هویت تخصصی ناکا */
  --brand-dark: #0a4f45;
  --brand-soft: #e3f0ec;
  --cta: #f2a007;              /* کهربایی — دکمه اصلی */
  --cta-dark: #d98a00;
  --cta-ink: #1e1a14;
  --accent: #c9a227;           /* طلایی — جزئیات پرمیوم */
  --green: #1e7d4f;
  --amber: #b97f1f;
  --red: #b3402e;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(30,26,20,.06);
  --shadow-md: 0 10px 28px rgba(30,26,20,.10);
  --shadow-cta: 0 6px 18px rgba(242,160,7,.35);
  --font: "Vazirmatn", "IRANSans", "B Nazanin", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.9; font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- هدر ---------- */
.site-header {
  background: linear-gradient(135deg, #083f37 0%, var(--brand) 100%); color: #f5f2ec;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 16px rgba(8,63,55,.35);
  transition: z-index 0s .4s; /* هنگام بستن منو، افت z-index با تأخیر تا انیمیشن تمام شود */
}
/* وقتی منو باز است، کل هدر (شامل دراور) بالای overlay قرار می‌گیرد */
body.nav-open .site-header { z-index: 70; transition: z-index 0s 0s; }
/* مرحله ۶۲: نوار اطلاع توقف فروش */
.sales-paused-bar { background: #c0392b; color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 8px 12px; }
.header-inner {
  display: flex; align-items: center; gap: 14px;
  padding-top: 10px; padding-bottom: 10px;
}
.logo { font-size: 22px; font-weight: 800; white-space: nowrap; }
.logo-paw { margin-inline-end: 4px; display: inline-flex; }
.logo-img { height: 38px; width: auto; display: block; }
/* آیکون‌های SVG مینیمال فروشگاه */
.ic { flex-shrink: 0; vertical-align: -4px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; }
.search-form button { display: flex; align-items: center; }
.site-header .search-form button { color: #f5f2ec; }
.account-link, .cart-link { display: inline-flex; align-items: center; }
/* نمادهای اعتماد (اینماد / اتحادیه) — پایین فوتر */
.trust-badges { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 18px 0 6px; }
.trust-badges img { height: 92px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: #d8d2c8;
}
.main-nav a:hover { background: var(--dark-2); color: #fff; }
.main-nav a.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.search-form { display: flex; }
/* گروه اکشن‌های هدر (سرچ، پروفایل، سبد) — چسبیده به سمت چپ هدر */
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.header-actions .account-link, .header-actions .cart-link { padding: 8px; border-radius: 12px; }
.header-actions .search-form button { padding: 8px; }
.search-form input {
  font-family: var(--font); border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.22);
  color: #f5f2ec; border-radius: 999px; padding: 8px 16px; width: 170px; font-size: 13px;
}
.search-form input::placeholder { color: #8a847c; }
.search-form button {
  background: none; border: none; font-size: 18px; cursor: pointer;
  margin-inline-start: -38px;
}
.nav-toggle { display: none; background: none; border: none; color: #f5f2ec; font-size: 24px; cursor: pointer; }

/* ---------- هیرو ---------- */
.hero {
  background: radial-gradient(120% 160% at 50% 0%, #2a241f 0%, var(--dark) 60%);
  color: #f5f2ec; text-align: center; padding: 64px 16px 56px;
}
.hero h1 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.hero h1 .gold { color: var(--accent); }
.hero p { color: #c9c2b6; margin: 0 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #f8b62c, var(--cta));
  color: var(--cta-ink); font-weight: 800; font-family: var(--font);
  padding: 14px 36px; border: none; border-radius: 14px; font-size: 15px;
  cursor: pointer; box-shadow: var(--shadow-cta);
  transition: transform .12s ease, box-shadow .2s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(242,160,7,.42); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid rgba(14,107,94,.45); outline-offset: 2px; }
.btn-ghost {
  background: transparent; color: #f5f2ec; border: 1px solid #4a443c;
}
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- بخش‌ها ---------- */
.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 20px; margin: 0; font-weight: 800; }
.section-head a { color: var(--muted); font-size: 13px; }

/* ---------- کارت دسته ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 12px; text-align: center; transition: transform .15s;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card .ico { display: flex; justify-content: center; color: var(--brand-dark); }
.cat-card .ico .ic { width: 30px; height: 30px; }
.cat-card h3 { margin: 8px 0 2px; font-size: 15px; }
.cat-card span { color: var(--muted); font-size: 12px; }

/* ---------- کارت محصول ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { position: relative; aspect-ratio: 1; min-height: 180px; background: #ffffff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-placeholder {
  font-size: 64px; font-weight: 800; color: #cfc7b8;
}
.card-badge { position: absolute; top: 10px; right: 10px; }
.badge {
  font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  background: #eee; color: #555;
}
.badge.ok { background: #e2f2e8; color: var(--green); }
.badge.wait { background: #fdf3df; color: var(--amber); }
.badge.out { background: #fbe7e3; color: var(--red); }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: 12px; color: var(--muted); text-decoration: none; }
.card-brand:hover { color: var(--brand); text-decoration: underline; }
.card-title { font-size: 14px; margin: 0; font-weight: 700; line-height: 1.7; }
.card-title a:hover { color: var(--brand); }
.card-price { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 15px; }

/* ---------- صفحه محصول ---------- */
/* صفحه‌بندی دسته‌بندی (مرحله ۵۲) */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 28px 0 8px; }
.pg-btn, .pg-num { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 14px; }
.pg-btn:hover, .pg-num:hover { border-color: var(--brand); color: var(--brand); }
.pg-cur { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; }
.pg-dots { color: var(--muted); }
/* بردکرامب صفحه محصول (مرحله ۵۱) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .bc-cur { color: var(--ink); font-weight: 600; max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs .bc-sep { opacity: .5; }
.product-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 0; }
.product-media {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media .card-placeholder { font-size: 120px; }
.product-info .p-brand { color: var(--muted); font-size: 13px; }
.product-info h1 { font-size: 26px; margin: 6px 0 10px; line-height: 1.55; font-weight: 800; letter-spacing: -.2px; }
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.variant-pills button {
  font-family: var(--font); border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 8px 18px; font-size: 13px; cursor: pointer;
}
.variant-pills button.sel { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(14,107,94,.3); }
.buy-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 20px;
}
.buy-price { font-size: 24px; font-weight: 800; }
.product-desc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.product-desc h2 { font-size: 16px; margin-top: 0; }
.product-desc p { margin: 0; white-space: pre-line; }

/* ---------- فهرست دسته ---------- */
.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: 24px; margin: 0 0 4px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 18px; }

/* ---------- فوتر ---------- */
.site-footer {
  background: linear-gradient(165deg, #0a352f 0%, #0d4a42 55%, #083f37 100%);
  color: #c6ded8; margin-top: 56px; padding: 44px 0 0; position: relative; overflow: hidden;
}
.site-footer::before {
  content: "🐾"; position: absolute; left: 24px; top: 18px; font-size: 120px; opacity: .06;
  transform: rotate(-18deg); pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-bottom: 28px; position: relative; }
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.footer-grid a { display: block; font-size: 13px; padding: 3px 0; color: #c6ded8; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid .muted { color: #9fc4bb; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 16px; font-size: 12px; color: #9fc4bb; text-align: center; position: relative; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 16px; }
.notfound h1 { font-size: 72px; margin: 0; color: var(--line); }

/* ============================================================
   مرحله ۱۸ — گالری، ویژگی‌ها، آنالیز، اعتماد، نوار چسبان، فیلترها
   ============================================================ */

/* گالری محصول */
/* گالری محصول */
.product-media {
  background: none; border: none; border-radius: 0; aspect-ratio: auto;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  overflow: visible;
}
.product-media .gallery-viewport {
  overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); touch-action: pan-y;
}
.product-media .gallery-track { display: flex; transition: transform .45s cubic-bezier(.22,.8,.3,1); will-change: transform; }
.product-media .gallery-track img {
  flex: 0 0 100%; min-width: 0; width: 100%; aspect-ratio: 1; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}
.product-media .gallery-main {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  touch-action: pan-y; /* سوایپ افقی برای گالری، اسکرول عمودی آزاد */
}
.product-media .card-placeholder {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 120px;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface); padding: 0;
  transition: border-color .15s, transform .15s;
}
.gallery-thumbs button:hover { transform: translateY(-2px); }
.gallery-thumbs button.sel { border-color: var(--brand); box-shadow: 0 4px 12px rgba(14,107,94,.25); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ویژگی‌های کلیدی */
.p-highlights { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.p-highlights li {
  position: relative; padding-inline-start: 28px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.p-highlights li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* آنالیز تضمینی */
.product-analysis {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-top: 20px;
}
.product-analysis h2 { font-size: 16px; margin: 0 0 12px; }
.product-analysis table { width: 100%; border-collapse: collapse; font-size: 14px; }
.product-analysis th, .product-analysis td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.product-analysis tr:last-child th, .product-analysis tr:last-child td { border-bottom: none; }
.product-analysis th { color: var(--muted); font-weight: 600; width: 60%; }
.product-analysis td { font-weight: 800; }

/* ردیف اعتماد زیر دکمه خرید */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trust-row span {
  font-size: 12px; font-weight: 700; color: var(--brand-dark);
  background: var(--brand-soft); border-radius: 999px; padding: 7px 14px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* نام انگلیسی محصول (زیر عنوان فارسی — برای جست‌وجوی انگلیسی و سئو) */
.product-name-en { font-size: 13px; color: var(--muted); margin: 2px 0 0; }

/* نوار چسبان خرید (موبایل) */
.sticky-buy {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 70;
  display: none; align-items: center; gap: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(30,26,20,.12);
}
.sticky-buy[hidden] { display: none !important; }
.sticky-buy img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.sticky-buy-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-name { display: block; overflow: hidden; white-space: nowrap; }
.sticky-name b { font-size: 13px; }
.sticky-name.marquee b { display: inline-block; padding-inline-start: 0; animation: namePingPong 9s ease-in-out infinite; }
@keyframes namePingPong {
  0%, 12% { transform: translateX(0); }
  44%, 56% { transform: translateX(var(--mq, 0px)); }
  88%, 100% { transform: translateX(0); }
}
.sticky-buy-info span { font-size: 14px; font-weight: 800; color: var(--brand-dark); }
.sticky-buy .btn { padding: 12px 24px; font-size: 14px; white-space: nowrap; }
@media (max-width: 900px) {
  .sticky-buy:not([hidden]) { display: flex; }
}

/* فیلترهای دسته‌بندی */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 16px 0 20px;
}
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
.filters select {
  font-family: var(--font); font-size: 14px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  cursor: pointer; min-width: 150px;
}
.filters select:focus { outline: none; border-color: var(--brand); }
.filters .checkline { flex-direction: row; align-items: center; padding-bottom: 10px; font-size: 14px; color: var(--ink); }

/* ============================================================
   مرحله ۲۱ — ریل دسته‌بندی‌ها، کاروسل محصولات، بنر CTA، ریل برند
   ============================================================ */

/* ریل دایره‌ای دسته‌بندی‌ها */
.circles-section { padding-top: 28px; }
.cat-rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 12px;
  scrollbar-width: none;
}
/* مرحله ۶۱: در دسکتاپ که اسکرول لازم نیست، دایره‌ها کل عرض ردیف را پر کنند */
@media (min-width: 901px) {
  .cat-rail { justify-content: space-evenly; }
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-circle {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 0 0 auto; min-width: 84px;
}
.cc-ico {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--brand-soft); border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  color: var(--brand-dark);
}
.cc-ico .ic { width: 40px; height: 40px; }
.cc-ico img { width: 48px; height: 48px; object-fit: contain; }
.cat-circle:hover .cc-ico { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.cc-label { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.6; }
.cc-label small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }

/* کاروسل افقی محصولات */
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 16px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail .card { flex: 0 0 200px; width: 200px; }
.rail-arrow {
  position: absolute; top: 38%; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center; z-index: 2;
  transition: transform .15s, box-shadow .15s;
}
.rail-arrow:hover { transform: scale(1.08); }
.rail-next { left: -8px; }
.rail-prev { right: -8px; }
@media (max-width: 900px) {
  .rail-arrow { display: none; }
  .rail .card { flex-basis: 160px; width: 160px; }
}

/* کارت «مشاهده همه» انتهای ریل */
.view-all-card {
  flex: 0 0 160px; width: 160px; min-height: 280px;
  border: 2px dashed var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--brand-dark); font-weight: 800; font-size: 14px; text-align: center; padding: 16px;
  transition: border-color .15s, background .15s;
}
.view-all-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.vac-arrow {
  width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}

/* سکشن رنگی پرفروش‌ترین‌ها */
.rail-tinted {
  background: linear-gradient(135deg, #083f37, #0e6b5e);
  border-radius: 28px; margin: 8px 12px; padding-bottom: 32px;
}
.rail-tinted .section-head h2 { color: #fff; }
.rail-tinted .section-head a { color: #cde6df; }
.rail-tinted .view-all-card { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.rail-tinted .view-all-card:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* بنر CTA مشاوره */
.cta-banner {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  border-radius: 24px; padding: 32px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: "🐾"; position: absolute; left: -20px; bottom: -30px; font-size: 140px; opacity: .12;
  transform: rotate(-20deg);
}
.cta-banner h2 { margin: 0 0 6px; font-size: 22px; }
.cta-banner p { margin: 0; color: #d9efe9; font-size: 14px; }
.cta-banner .btn { flex-shrink: 0; }

/* ریل برندها — مرحله ۶۲: دایره کمرنگ هم‌رنگ دایره‌های دسته‌بندی + اسم متنی زیر */
.brand-rail { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 12px; scrollbar-width: none; }
.brand-rail::-webkit-scrollbar { display: none; }
.brand-circle {
  flex: 0 0 auto; min-width: 84px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
}
.bc-ico {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: var(--brand-dark);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.brand-circle:hover .bc-ico { transform: translateY(-3px); border-color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.bc-ico img.brand-logo { width: 62px; height: 62px; object-fit: contain; }
.bc-label { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.6; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-wrap { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* تبلت و گوشی افقی: ۳ ستون به‌جای ۴ تا جا بشه */
@media (min-width: 901px) and (max-width: 1150px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* نوار ابزار موبایل — در دسکتاپ مخفی */
.mobile-tabbar { display: none; }

/* تبلت و گوشی افقی (641 تا 1150px): هدر مثل موبایل — منوی همبرگری */
@media (min-width: 641px) and (max-width: 1150px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer; z-index: 61;
  }
  .nav-toggle span {
    display: block; height: 2.5px; width: 24px; background: #f5f2ec; border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  .main-nav {
    display: flex; position: fixed; top: 0; bottom: 0; right: 0; width: 300px; max-width: 88vw;
    background: linear-gradient(170deg, #0b3f38 0%, #0e6b5e 65%, #0a4a41 100%);
    flex-direction: column; padding: 84px 20px 24px; gap: 8px;
    transform: translateX(100%); transition: transform .38s cubic-bezier(.22,.9,.28,1);
    z-index: 60; box-shadow: -12px 0 40px rgba(8,63,55,.45); margin: 0;
    overflow-y: auto;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav a {
    padding: 13px 16px; font-size: 16px; border-radius: 14px; color: #f2f7f5;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
    display: flex; align-items: center; gap: 6px;
  }
  .main-nav a:hover { background: rgba(255,255,255,.14); }
  .main-nav a.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 800; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(8,25,21,.30); z-index: 55;
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
}

@media (max-width: 640px) {
/* لینک‌های اضافه فقط در منوی موبایل */
.nav-extra, .nav-cta, .nav-divider { display: none; }

  /* منوی کشویی انیمیشنی — گرافیکی */
  .main-nav {
    display: flex; position: fixed; top: 0; bottom: 0; right: 0; width: 300px; max-width: 88vw;
    background: linear-gradient(170deg, #0b3f38 0%, #0e6b5e 65%, #0a4a41 100%);
    flex-direction: column; padding: 84px 20px 24px; gap: 8px;
    transform: translateX(100%); transition: transform .38s cubic-bezier(.22,.9,.28,1);
    z-index: 60; box-shadow: -12px 0 40px rgba(8,63,55,.45); margin: 0;
    overflow-y: auto;
  }
  .main-nav::before {
    content: "🐾"; position: absolute; left: 12px; top: 64px; font-size: 110px; opacity: .08;
    transform: rotate(-18deg); pointer-events: none;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav a {
    padding: 13px 16px; font-size: 16px; border-radius: 14px; color: #f2f7f5;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
    opacity: 0; transform: translateX(24px);
    transition: opacity .3s ease, transform .3s ease, background .2s;
  }
  .main-nav a:hover { background: rgba(255,255,255,.14); }
  .main-nav a.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 800; }
  body.nav-open .main-nav a { opacity: 1; transform: none; }
  body.nav-open .main-nav a:nth-child(1) { transition-delay: .06s; }
  body.nav-open .main-nav a:nth-child(2) { transition-delay: .11s; }
  body.nav-open .main-nav a:nth-child(3) { transition-delay: .16s; }
  body.nav-open .main-nav a:nth-child(4) { transition-delay: .21s; }
  body.nav-open .main-nav a:nth-child(5) { transition-delay: .26s; }
  body.nav-open .main-nav a:nth-child(6) { transition-delay: .31s; }
  body.nav-open .main-nav a:nth-child(7) { transition-delay: .36s; }
  body.nav-open .main-nav a:nth-child(8) { transition-delay: .41s; }
  body.nav-open .main-nav a:nth-child(9) { transition-delay: .46s; }
  .main-nav .nav-extra { display: block; }
  .main-nav .nav-divider { display: block; height: 1px; background: rgba(255,255,255,.14); margin: 8px 4px; }
  .main-nav .nav-cta {
    display: block; margin-top: auto; text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink); font-weight: 800; border: none;
    box-shadow: 0 8px 20px rgba(242,160,7,.35);
  }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(8,25,21,.30); z-index: 55;
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  /* دکمه همبرگری → ضربدر */
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer; z-index: 61;
  }
  .nav-toggle span {
    display: block; height: 2.5px; width: 24px; background: #f5f2ec; border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  /* جستجوی بازشونده — باز و بسته‌شدن متقارن با opacity/transform (نه تغییر position) */
  .header-inner { flex-wrap: nowrap; gap: 10px; }
  .header-actions { flex-shrink: 0; }
  .search-form { position: static; }
  .search-form input {
    position: absolute; top: calc(100% + 10px); right: 12px; left: 12px; width: auto;
    padding: 13px 18px; font-size: 15px; z-index: 58;
    background: #fff; color: var(--ink); border-radius: 14px;
    border: 2px solid var(--brand); box-shadow: 0 12px 32px rgba(8,63,55,.28);
    opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none;
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .3s;
  }
  .search-form button { margin-inline-start: 0; }
  .search-form.search-open input {
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    transition: opacity .28s ease, transform .28s ease;
  }
  .search-form.search-open input::placeholder { color: var(--muted); opacity: 1; }
  .site-header { position: sticky; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero { padding: 44px 16px 40px; }
  .hero h1 { font-size: 24px; }
  .buy-box { flex-direction: column; align-items: stretch; text-align: center; }

  /* هدر موبایل: آیکون‌ها همیشه در هدر می‌مانند */
  .account-link { font-size: 20px; }
  .cart-link { font-size: 20px; }
}

/* ===== اسلایدر بنر صفحه اصلی (مرحله ۲) ===== */
.banner-slider { position: relative; overflow: hidden; background: #171412; touch-action: pan-y; }
.banner-slider .slides { position: relative; }
/* حالت بدون جاوااسکریپت: فقط اسلاید فعال دیده می‌شود */
.banner-slider .slide { display: none; position: relative; min-height: 300px; align-items: flex-end; text-decoration: none; color: #fff; }
.banner-slider .slide.active { display: flex; }
/* حالت جاوااسکریپت: ترک لغزنده با انیمیشن نرم */
.banner-slider.js-slider .slides { display: flex; transition: transform .65s cubic-bezier(.22,.8,.28,1); will-change: transform; }
.banner-slider.js-slider .slide { display: flex; flex: 0 0 100%; min-width: 0; }
/* کپشن با تأخیر ملایم ظاهر می‌شود */
.banner-slider.js-slider .slide-caption { opacity: 0; transform: translateY(16px); transition: opacity .55s ease .18s, transform .55s cubic-bezier(.22,.8,.3,1) .18s; }
.banner-slider.js-slider .slide.active .slide-caption { opacity: 1; transform: none; }
.banner-slider .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-slider .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,12,10,.82) 0%, rgba(15,12,10,.25) 55%, rgba(15,12,10,.05) 100%); }
.banner-slider .slide-caption { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 64px 16px 56px; }
.banner-slider .slide-caption h2 { margin: 0 0 8px; font-size: 30px; font-weight: 800; color: #fff; }
.banner-slider .slide-caption p { margin: 0 0 14px; color: #e8e0d5; font-size: 15px; }
/* مرحله ۶۱: دکمه بنر کمی کوچک‌تر */
.banner-slider .slide-caption .btn { padding: 11px 28px; font-size: 14px; border-radius: 12px; }
.banner-slider .dots { position: absolute; bottom: 14px; right: 0; left: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.banner-slider .dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.banner-slider .dots button.active { background: var(--accent); }
@media (max-width: 640px) {
  .banner-slider .slide { min-height: 220px; }
  /* مرحله ۶۱: اگر عکس موبایل دارد، قاب با نسبت ۵:۴ (بدون کراپ) */
  .banner-slider .slide.has-mobile-img { min-height: 0; aspect-ratio: 5/4; }
  .banner-slider .slide-caption { padding: 40px 16px 44px; }
  .banner-slider .slide-caption h2 { font-size: 22px; }
  .banner-slider .slide-caption p { font-size: 13px; }
}

/* ===== مرحله ۳: سبد خرید و تسویه ===== */
.cart-link { position: relative; font-size: 22px; text-decoration: none; }
.cart-count {
  position: absolute; top: -8px; left: -10px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
/* ===== مرحله ۶۳: صندوق پیام، علاقه‌مندی‌ها، خبرم‌کن موجودی ===== */
.notif-link { position: relative; font-size: 22px; text-decoration: none; display: inline-flex; align-items: center; }
.notif-count {
  position: absolute; top: -8px; left: -10px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.header-actions .notif-link { padding: 8px; border-radius: 12px; }
.site-header .notif-link { color: #f5f2ec; }
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.notif-item.unread { border-color: var(--brand); background: #f4faf8; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: transparent; margin-top: 6px; flex-shrink: 0; }
.notif-item.unread .notif-dot { background: var(--brand); }
.notif-body { flex: 1; min-width: 0; }
.notif-body p { margin: 6px 0; font-size: 14px; color: var(--ink-soft); }
.notif-time { font-size: 12px; }
.p-title-row { display: flex; align-items: center; gap: 10px; }
.p-title-row h1 { margin: 0; flex: 1; }
.wish-form { margin: 0; }
.wish-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.wish-btn:hover { transform: scale(1.08); border-color: var(--red); color: var(--red); }
/* مرحله ۶۵: فقط خود قلب قرمز می‌شود، نه کل دایره */
.wish-btn.active { color: var(--red); border-color: var(--red); }
.wish-btn.active svg { fill: var(--red); }
.wish-btn.active:hover { color: var(--red); }
.wish-wrap { position: relative; }
.wish-remove { position: absolute; top: 8px; left: 8px; z-index: 2; margin: 0; }
.wish-remove button {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--muted); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.wish-remove button:hover { color: var(--red); }
.stock-alert-box { margin-top: 14px; }
/* ===== مرحله ۶۳: تب‌های صفحه حساب کاربری ===== */
.acct-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px;
  scrollbar-width: none;
}
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tab {
  flex: 1 0 auto; white-space: nowrap;
  padding: 12px 18px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font);
  transition: background .15s, color .15s, border-color .15s;
}
.acct-tab:hover { border-color: var(--brand); }
.acct-tab.active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.acct-badge {
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.acct-tab.active .acct-badge { background: #fff; color: var(--brand-dark); }
.acct-pane { display: none; }
.acct-pane.active { display: block; }
.box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; margin: 16px 0;
}
.box h2 { font-size: 17px; margin: 0 0 14px; }
.box.center { text-align: center; padding: 40px 20px; }
.big-emoji { font-size: 56px; margin-bottom: 12px; }
.alert { border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.alert.err { background: #fbe7e3; color: #a33; }
.alert.warn { background: #fdf3df; color: #8a6d1a; }
.alert.ok { background: #e2f2e8; color: #1e7a4c; }
.cart-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.cart-item {
  display: flex; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px;
}
.cart-thumb { width: 84px; height: 84px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #f3efe9; display: flex; align-items: center; justify-content: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-weight: 700; color: var(--ink); text-decoration: none; display: block; margin: 2px 0; }
.cart-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.qty-form { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; }
.qty-form button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--ink); width: 28px; height: 28px; }
.cart-line-price { font-weight: 800; margin-inline-start: auto; }
.link-danger { background: none; border: none; cursor: pointer; font-size: 18px; }
.totals .trow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.totals .trow.grand { border: none; font-size: 18px; padding-top: 14px; }
.btn.big { padding: 16px 40px; font-size: 17px; margin-top: 12px; width: 100%; border-radius: 16px; }
.btn.ghost { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn.small { padding: 9px 20px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .checkout-grid { grid-template-columns: 1.2fr 1fr; } }
.checkout-grid label { display: block; margin-bottom: 12px; font-size: 14px; }
.checkout-grid input[type=text], .checkout-grid input[type=tel], .checkout-grid input[type=number], .checkout-grid textarea {
  width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit;
  background: #fff; color: var(--ink);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.add-cart-form { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.qty-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.qty-label input { width: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; text-align: center; }
/* استپر تعداد صفحه محصول */
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty-stepper button {
  width: 44px; font-size: 20px; font-weight: 800; border: 0; background: #f6f3ec;
  color: var(--brand-dark); cursor: pointer; transition: background .15s;
}
.qty-stepper button:hover { background: #ece7da; }
.qty-stepper button:active { background: #e2dccb; }
.qty-stepper input {
  width: 56px; border: 0; text-align: center; font-size: 16px; font-weight: 700;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-expiry { font-size: 14px; font-weight: 700; color: var(--brand-dark); }

/* ===== مرحله ۴: مقاله‌ها ===== */
.article-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0; }
@media (min-width: 700px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: var(--ink); display: block;
}
.article-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.article-card-body { padding: 16px; }
.article-card-body h2 { font-size: 16px; margin: 0 0 8px; line-height: 1.7; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 22px; margin: 16px 0; }
.article h1 { font-size: 24px; margin: 8px 0 4px; line-height: 1.8; }
.article-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin: 16px 0; }
.article-body { font-size: 16px; line-height: 2.1; }
.article-body h2 { font-size: 20px; margin: 28px 0 12px; }
.article-body h3 { font-size: 17px; margin: 22px 0 10px; }
.article-body p { margin: 12px 0; }
.article-body ul { padding-inline-start: 20px; margin: 12px 0; }
.article-body li { margin: 6px 0; }
.article-body a { color: #1a6fc4; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; }
.section-head h2 { font-size: 19px; margin: 0; }
.section-head a { font-size: 14px; }

/* ===== مرحله ۵: حساب کاربری ===== */
.auth-box { max-width: 440px; margin: 40px auto; }
.auth-box h1 { font-size: 21px; margin: 0 0 8px; }
.auth-box label, .box label { display: block; margin-bottom: 12px; font-size: 14px; }
.auth-box input, .box input[type=text], .box input[type=tel], .box input[type=number], .box textarea, .box select {
  width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit;
  background: #fff; color: var(--ink);
}
.site-header .account-link { color: #f5f2ec; }
.account-link { font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.account-link:hover { text-decoration: underline; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { flex: 1; min-width: 200px; margin: 0; }
.addr-list { display: grid; gap: 12px; margin-bottom: 20px; }
.addr-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.addr-card.default { border-color: var(--green); background: #f4faf6; }
.addr-actions { display: flex; gap: 10px; flex-shrink: 0; }
.addr-actions form { display: inline; }
.link-btn { background: none; border: none; color: #1a6fc4; cursor: pointer; font-size: 14px; font-family: inherit; }
.form-grid label { display: block; margin-bottom: 12px; font-size: 14px; }
.radio-card {
  display: flex !important; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px !important;
  cursor: pointer; font-size: 14px;
}
.radio-card input { width: auto !important; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td { padding: 10px; border-bottom: 1px solid var(--line); text-align: right; }

/* ===== مرحله ۶: پیگیری سفارش ===== */
.track-steps { display: flex; flex-direction: column; gap: 0; margin: 16px 0; }
.track-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--muted); font-size: 15px; }
.track-step .dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  background: #fff; flex-shrink: 0;
}
.track-step.done { color: var(--ink); font-weight: 700; }
.track-step.done .dot { background: var(--green); border-color: var(--green); }
.track-step.cancelled { color: var(--red); font-weight: 700; }
.track-step.cancelled .dot { background: var(--red); border-color: var(--red); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { margin: 0 0 10px; font-size: 15px; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--ink); }

/* ===== مرحله ۷: پولیش UX ===== */

/* جستجوی بازشونده (دسکتاپ) */
@media (min-width: 641px) {
  .search-form input { transition: width .35s ease, border-color .3s ease, box-shadow .3s ease; }
  .search-form:focus-within input {
    width: 260px; border-color: var(--accent); outline: none;
    box-shadow: 0 0 0 3px rgba(201,162,39,.22);
  }
}

/* مراحل خرید */
.checkout-steps { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; }
.checkout-steps .step {
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted);
}
.checkout-steps .step .n {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
  background: #fff;
}
.checkout-steps .step.active { color: var(--ink); font-weight: 800; }
.checkout-steps .step.active .n { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.checkout-steps .sep { flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 20px; }

/* نوار پیشرفت ارسال رایگان */
.ship-progress { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 16px 0; }
.ship-progress .bar { height: 10px; background: #eee8dc; border-radius: 6px; overflow: hidden; margin-top: 10px; }
.ship-progress .bar i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), #e8c85a);
  transition: width .6s ease;
}

/* صفحه ورود — کارت تصویری */
.auth-card {
  max-width: 460px; margin: 32px auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(60,45,20,.10);
}
.auth-visual {
  position: relative; padding: 36px 24px 28px; text-align: center; color: #fbf7ef;
  background: radial-gradient(120% 140% at 50% 0%, #3a2f24 0%, #1d1813 65%);
  overflow: hidden;
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ctext x='10' y='70' font-size='64'%3E%F0%9F%90%BE%3C/text%3E%3C/svg%3E");
  background-size: 120px;
}
.auth-visual h1 { position: relative; font-size: 22px; margin: 0 0 6px; }
.auth-visual p { position: relative; color: #d8d2c8; font-size: 14px; margin: 0; }
.auth-steps { position: relative; display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.auth-steps .st { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #d8d2c8; flex: 1; }
.auth-steps .st b {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(201,162,39,.18);
  border: 2px solid var(--accent); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.auth-steps .st.done b { background: var(--accent); color: var(--accent-ink); }
.auth-form { padding: 24px; }
.auth-form label { display: block; margin-bottom: 14px; font-size: 14px; }
.auth-form input {
  width: 100%; box-sizing: border-box; margin-top: 8px; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; font-family: inherit;
  transition: border-color .25s, box-shadow .25s;
}
.auth-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(201,162,39,.18); }

/* سبد خالی */
.empty-cart { text-align: center; padding: 48px 20px; }
.empty-cart svg { opacity: .35; margin-bottom: 16px; }

/* ===== جستجوی زنده ===== */
.search-form { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 8px); right: 0; left: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18); z-index: 70; overflow: hidden;
  text-align: right;
}
.sg-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  text-decoration: none; color: var(--ink);
}
.sg-item:hover, .sg-item.active { background: #f6f1e7; }
.sg-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.sg-ph {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: #f1ede6; border-radius: 10px; flex-shrink: 0; color: var(--muted);
}
.sg-ph .ic { width: 22px; height: 22px; opacity: .6; }
.sg-info { display: flex; flex-direction: column; min-width: 0; }
.sg-info b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-info span { font-size: 12px; color: var(--muted); }
.sg-all {
  width: 100%; border: none; background: var(--dark); color: #f5f2ec;
  padding: 12px; font-family: inherit; font-size: 14px; cursor: pointer;
}
.sg-all:hover { background: var(--dark-2); }
@media (max-width: 640px) {
  /* در حالت بازشونده موبایل، پیشنهادها زیر کادر شناور (نسبت به هدر) */
  .search-form { position: static; }
  .search-suggest {
    top: calc(100% + 58px); right: 12px; left: 12px;
  }
}

/* ===== مرحله ۱۰: نظرات و امتیاز ===== */
.stars { color: var(--accent); letter-spacing: 2px; white-space: nowrap; }
.card-rating { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.reviews { margin-top: 36px; }
.reviews h2 { font-size: 20px; margin-bottom: 16px; }
.review-list { display: grid; gap: 12px; margin-bottom: 24px; }
.review {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review-head .muted { margin-inline-start: auto; font-size: 12px; }
.review p { margin: 0; font-size: 14px; }
.review-form-box { margin-top: 8px; }
.review-form-box h3 { margin-top: 0; }
.review-form-box textarea {
  width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit;
}
.star-input { display: flex; gap: 4px; margin-bottom: 12px; direction: ltr; justify-content: flex-end; }
.star-input button {
  background: none; border: none; font-size: 32px; cursor: pointer;
  color: #ddd6c7; padding: 0 2px; transition: color .15s, transform .15s;
}
.star-input button.on { color: var(--accent); }
.star-input button:hover { transform: scale(1.15); }

/* دکمه لینک‌مانند (ارسال مجدد کد) */
.link-btn {
  background: none; border: none; color: var(--amber); font-family: inherit;
  font-size: 14px; cursor: pointer; text-decoration: underline; padding: 4px 8px;
}

/* ---------- مرحله ۱۱: تب‌های سفارش، کارت گربه، نقشه آدرس ---------- */
.tabs { display: flex; gap: 4px; margin: 14px 0 4px; border-bottom: 2px solid var(--line); }
.tab {
  font-family: var(--font); background: none; border: none; padding: 10px 16px;
  font-size: 14px; cursor: pointer; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tab.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.tabpane { display: none; padding-top: 12px; }
.tabpane.active { display: block; }
.pet-list { display: grid; gap: 10px; margin-bottom: 18px; }
.pet-card {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.check { display: flex !important; align-items: center; gap: 8px; flex-direction: row !important; }
.check input { width: auto; }
#addrMap { background: #e8e4dc; }
#addrMap img { max-width: none !important; }
.link-danger {
  background: none; border: none; color: var(--red); font-family: inherit;
  font-size: 13px; cursor: pointer; text-decoration: underline; padding: 4px 8px;
}

/* ---------- مرحله ۱۳: پیام لحظه‌ای (toast) ---------- */
.toast {
  position: fixed; bottom: 24px; right: 50%; transform: translateX(50%);
  background: var(--dark); color: #f5f2ec; padding: 12px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 700; z-index: 300; white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0,0,0,.3); transition: opacity .4s;
}

/* دکمه شناور تماس (پایین-چپ) */
.fab-contact { position: fixed; bottom: 22px; left: 22px; z-index: 70; }
.fab-main {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(14,107,94,.45); position: relative;
  transition: transform .35s cubic-bezier(.34,1.4,.64,1), background .3s;
}
.fab-main svg { width: 26px; height: 26px; }
.fab-main::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--brand); animation: fabPulse 2.6s ease-out infinite; pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: .65; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.fab-contact.open .fab-main { transform: rotate(135deg); background: #3a3a3a; }
.fab-contact.open .fab-main::before { display: none; }
.fab-actions {
  position: absolute; bottom: 70px; left: 5px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  pointer-events: none; /* مرحله ۶۵: ظرف نامرئی بالای دکمه شناور کلیک‌های زیرش (مثل دکمه قلب) را نمی‌بلعد */
}
.fab-actions a {
  width: 48px; height: 48px; border-radius: 50%; position: relative;
  display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  opacity: 0; transform: scale(.3) translateY(14px); pointer-events: none;
  transition: opacity .22s ease, transform .32s cubic-bezier(.34,1.56,.64,1);
}
.fab-actions a svg { width: 24px; height: 24px; }
.fab-contact.open .fab-actions a { opacity: 1; transform: none; pointer-events: auto; }
.fab-contact.open .fab-actions a:nth-child(1) { transition-delay: .04s; }
.fab-contact.open .fab-actions a:nth-child(2) { transition-delay: .1s; }
.fab-contact.open .fab-actions a:nth-child(3) { transition-delay: .16s; }
.fab-contact.open .fab-actions a:nth-child(4) { transition-delay: .22s; }
.fab-call { background: #0e6b5e; }
.fab-wa { background: #25d366; }
.fab-tg { background: #229ed9; }
.fab-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.fab-label {
  position: absolute; left: 58px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: rgba(20,20,20,.92); color: #fff;
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 9px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.fab-actions a:hover .fab-label, .fab-actions a:focus-visible .fab-label { opacity: 1; }
@media (max-width: 640px) {
  .fab-contact { bottom: 18px; left: 16px; }
}

/* مرحله ۵۹: وقتی نوار چسبان خرید دیده می‌شود، دکمه تماس شناور بالای آن می‌رود
   (فقط صفحه‌هایی که نوار را دارند — بقیه صفحه‌ها دست نمی‌خورند) */
body.has-sticky-buy .fab-contact { bottom: calc(var(--sticky-h, 76px) + 14px); }

/* کارت‌های تماس با ما */
.contact-cards { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 26px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 15px 16px; text-decoration: none; color: var(--ink);
  transition: transform .16s ease, box-shadow .2s ease;
}
a.contact-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,16,12,.10); }
.contact-card .cc-icon {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.contact-card .cc-icon svg { width: 26px; height: 26px; }
.contact-card .cc-body { flex: 1; min-width: 0; }
.contact-card .cc-body b { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-card .cc-body small { color: var(--muted); font-size: 13px; }
.contact-card .cc-go { color: var(--muted); font-size: 22px; line-height: 1; }

/* ============ مرحله ۷۵ ============ */

/* نوار اطلاع‌رسانی بالای سایت */
.announce-bar {
  background: var(--accent); color: var(--accent-ink, #17130c);
  text-align: center; font-size: 13px; font-weight: 700;
  padding: 8px 12px; line-height: 1.8;
}

/* قلب علاقه‌مندی روی کارت محصول */
.card { position: relative; }
.wish-heart {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  color: #b9ac96; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, color .15s ease;
}
.wish-heart:hover { transform: scale(1.1); }
.wish-heart.active { color: #d64545; border-color: #d64545; }
.wish-heart.active svg { fill: #d64545; }
.wish-heart:disabled { opacity: .5; cursor: wait; }

/* قیمت حراج */
.old-price { color: var(--muted); text-decoration: line-through; font-size: 13px; font-weight: 400; margin-inline-start: 6px; }
.old-price.big { font-size: 15px; }
.badge.sale-badge, .sale-badge {
  background: #d64545; color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 20px; padding: 2px 10px;
}
.card .sale-badge { position: absolute; top: 44px; right: 10px; }
.trow.discount { color: #1e7d4f; }
.trow.discount b { color: #1e7d4f; }

/* باکس کد تخفیف در سبد/تسویه */
.coupon-box { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
.coupon-box .inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.coupon-box input[type=text] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }
.link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-family: inherit; font-size: 13px; text-decoration: underline; padding: 0; }

/* محصولات مرتبط */
.related-products { margin: 28px 0; }
.related-products h2 { font-size: 18px; margin-bottom: 14px; }

/* سوالات متداول */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 30px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item summary { padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '＋'; color: var(--accent); margin-left: 8px; }
.faq-item[open] summary::before { content: '−'; }
.faq-answer { padding: 0 16px 16px; color: var(--ink); line-height: 2; }

@media (max-width: 640px) {
  .wish-heart { width: 30px; height: 30px; }
}

/* ============================================================
   مرحله ۷۷ — تب‌های محصول، محوشدگی توضیحات، کاروسل مرتبط، فیلتر پیشرفته
   ============================================================ */

/* ---------- تب‌های توضیحات / مشخصات ---------- */
.p-tabs { display: flex; gap: 8px; margin: 22px 0 0; border-bottom: 2px solid var(--line); }
.p-tabs [data-ptab] {
  font-family: var(--font); font-size: 15px; font-weight: 700; color: var(--muted);
  background: none; border: none; padding: 10px 18px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.p-tabs [data-ptab].sel { color: var(--brand); border-bottom-color: var(--brand); }
.p-tabs [data-ptab]:hover { color: var(--ink); }
.product-specs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 14px; scroll-margin-top: 90px; }
.product-specs h2 { font-size: 16px; margin-top: 0; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table th, .specs-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.specs-table th { color: var(--muted); font-weight: 600; width: 38%; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }
.specs-table td a { color: var(--brand); font-weight: 700; }
.specs-table td a:hover { text-decoration: underline; }

/* ---------- توضیحات: چند خط + محوشدگی + دکمه بازشو ---------- */
.product-desc { scroll-margin-top: 90px; }
.desc-body { position: relative; max-height: 168px; overflow: hidden; transition: max-height .45s ease; }
.desc-body::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 64px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none; transition: opacity .3s;
}
.desc-body.open { max-height: 4000px; }
.desc-body.open::after { opacity: 0; }
.desc-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border: none; border-radius: 999px; padding: 7px 18px; cursor: pointer;
}
.desc-toggle:hover { background: #d4e7e0; }
.desc-chev { font-size: 16px; line-height: 1; }

/* ---------- کاروسل محصولات مرتبط ---------- */
.related-products { margin-top: 26px; }
.related-products h2 { font-size: 17px; margin-bottom: 12px; }
.rel-rail-wrap { position: relative; }
.rel-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rel-rail::-webkit-scrollbar { display: none; }
.rel-rail .card { flex: 0 0 210px; scroll-snap-align: start; }
.rel-nav {
  position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.rel-nav:hover { background: var(--brand-soft); }
.rel-prev { right: -14px; }
.rel-next { left: -14px; }
@media (max-width: 640px) {
  .rel-rail .card { flex-basis: 168px; }
  .rel-prev { right: -6px; } .rel-next { left: -6px; }
}

/* ---------- نوار فیلتر + چیپ‌های فعال ---------- */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.filter-bar .btn { position: relative; }
.fcount {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--cta); color: var(--cta-ink); font-size: 12px; font-weight: 800;
}
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.a-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 13px; background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid #cfe3db; border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.a-chip i { font-style: normal; font-size: 11px; opacity: .7; }
.a-chip:hover { background: #d4e7e0; }

/* ---------- دراور فیلتر ---------- */
.filter-overlay {
  position: fixed; inset: 0; background: rgba(20,16,12,.45); z-index: 80;
}
.filter-drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(360px, 88vw); z-index: 81;
  background: var(--surface); box-shadow: var(--shadow-md);
  transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column;
}
.filter-drawer.open { transform: translateX(0); }
.fd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.fd-head b { font-size: 16px; }
.fd-x { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.fd-body { flex: 1; overflow-y: auto; padding: 6px 18px 18px; }
.fd-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fd-sec:last-child { border-bottom: none; }
.fd-sec h4 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 700; }
.fd-sec select {
  width: 100%; font-family: var(--font); font-size: 14px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.f-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; max-height: 220px; overflow-y: auto; }
.f-checks .checkline, .f-radios .checkline { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; padding: 4px 0; }
.f-radios { display: flex; flex-direction: column; gap: 2px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chip {
  font-family: var(--font); font-size: 13px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: all .15s;
}
.f-chip:hover { border-color: var(--brand); }
.f-chip.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.f-chip.sel .muted { color: rgba(255,255,255,.75); }
.fd-foot {
  display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line);
  background: var(--surface);
}
.fd-foot .btn { flex: 1; }

/* ---------- اسلایدر دوطرفه قیمت ---------- */
.ps-wrap { position: relative; height: 44px; margin: 6px 0 4px; }
.ps-track {
  position: absolute; top: 50%; right: 0; left: 0; height: 6px; border-radius: 999px;
  background: var(--line); transform: translateY(-50%);
}
.ps-fill {
  position: absolute; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--cta));
}
.ps-range {
  position: absolute; top: 50%; right: 0; left: 0; width: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
  transform: translateY(-50%); height: 24px;
}
.ps-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 22px; height: 22px; border-radius: 50%; cursor: grab;
  background: #fff; border: 3px solid var(--brand); box-shadow: var(--shadow-sm);
}
.ps-range::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; cursor: grab;
  background: #fff; border: 3px solid var(--brand); box-shadow: var(--shadow-sm);
}
.ps-range::-moz-range-track { background: transparent; }
.ps-inputs { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ps-inputs input {
  flex: 1; min-width: 0; font-family: var(--font); font-size: 14px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.ps-label { margin-top: 8px; font-size: 13px; }

/* ---------- حالت لودینگ گرید ---------- */
.product-grid.f-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* ---------- هدر صفحه برند ---------- */
.brand-head { display: flex; align-items: center; gap: 18px; margin: 8px 0 4px; }
.brand-head-logo {
  width: 84px; height: 84px; object-fit: contain; border-radius: 50%;
  background: var(--brand-soft); padding: 10px; border: 1px solid var(--line); flex-shrink: 0;
}
.brand-head h1 { margin: 0 0 4px; font-size: 24px; }
.product-info a.p-brand:hover { color: var(--brand); text-decoration: underline; }

/* ===== باکس‌های کد ورود (مرحله ۷۸) ===== */
.otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 10px 0 18px; }
.otp-box {
  width: 52px; height: 62px; padding: 0; text-align: center;
  font-size: 24px; font-weight: 700; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.otp-box:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(201,162,39,.18); }
.resend-btn {
  width: 100%; padding: 13px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--text); font-family: inherit; font-size: 15px;
  transition: border-color .2s, opacity .2s;
}
.resend-btn:disabled { opacity: .6; cursor: default; }
.resend-btn:not(:disabled):hover { border-color: var(--accent); }
