/* =========================================================
   طلاجوجه طوفانی — استایل سایت
   رنگ‌ها: طلایی جوجه، قهوه‌ای تیره، کرم طلایی، تاج خروس
   ========================================================= */

/* فونت وزیرمتن (نسخه اعداد فارسی) — fonts/ */
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/vazirmatn-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/vazirmatn-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/vazirmatn-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/vazirmatn-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/vazirmatn-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  /* طلایی، به رنگ پر جوجه */
  --yolk: #F5B91E;
  --yolk-deep: #E09E0B;
  --yolk-pale: #FFF5D9;
  --gold-grad: linear-gradient(135deg, #FBD04B 0%, #F5B91E 48%, #E8A10E 100%);
  --barn: #2B1F0D;        /* قهوه‌ای خیلی تیره — متن و بخش‌های تیره */
  --leaf: #8A5A00;        /* طلایی سوخته برای لینک‌ها و برچسب‌ها */
  --leaf-pale: #FBF1D6;
  --pulp: #FBF4E2;        /* پس‌زمینه‌ی کرم طلایی بخش‌ها */
  --comb: #C8321E;        /* تاج خروس — فقط برای تخفیف */
  --ink-2: #6B5A3E;
  --line: #EEE2C4;
  --white: #FFFFFF;
  --font-display: "Vazirmatn FD", Tahoma, system-ui, sans-serif;
  --font-body: "Vazirmatn FD", Tahoma, system-ui, sans-serif;

  --wrap: 1240px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;

  --shadow: 0 1px 2px rgba(43, 31, 13, .06), 0 10px 28px -12px rgba(120, 80, 0, .28);
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--barn);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: rgba(255,255,255,.6); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--barn); color: var(--yolk); padding: 8px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--barn); outline-offset: 3px; border-radius: 6px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--barn); color: var(--yolk); }
.btn--dark:hover { background: var(--leaf); }
.btn--line { border-color: var(--barn); }
.btn--line:hover { background: var(--barn); color: var(--yolk); }
.btn--line .ltr { font-weight: 800; }
.btn--yolk { background: var(--yolk); color: var(--barn); }
.btn--yolk:hover { background: var(--white); }

.link {
  font-weight: 700; font-size: 15px;
  border-bottom: 2px solid var(--yolk); padding-bottom: 2px;
  transition: border-color .2s;
}
.link:hover { border-color: var(--barn); }

/* ---------- نوار بالا ---------- */
.topbar { background: var(--barn); color: rgba(255,255,255,.85); font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar svg { width: 15px; height: 15px; fill: none; stroke: var(--yolk); stroke-width: 2; flex: none; }
.topbar__addr, .topbar__links a { display: flex; align-items: center; gap: 8px; }
.topbar__links { display: flex; gap: 24px; }
.topbar__links a:hover { color: var(--yolk); }

/* ---------- هدر ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 34px; height: 40px; color: var(--barn); }
.logo--light .logo__mark { color: var(--yolk); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-family: var(--font-display); font-weight: 900; font-size: 23px; white-space: nowrap; }
.logo__text small { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.logo--light .logo__text strong { color: var(--yolk); }
.logo--light .logo__text small { color: rgba(255,255,255,.65); }

.nav { display: flex; gap: 4px; margin-inline-end: auto; }
.nav a {
  position: relative; padding: 8px 11px; font-size: 14.5px; font-weight: 500; border-radius: 8px; white-space: nowrap;
  transition: background-color .2s;
}
.nav a:hover { background: var(--yolk-pale); }
.nav a[aria-current="page"] { font-weight: 800; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 3px;
  border-radius: 3px; background: var(--yolk);
}

.header__tools { display: flex; align-items: center; gap: 8px; }
.search {
  display: flex; align-items: center;
  background: var(--pulp); border-radius: 999px; padding: 4px 6px 4px 4px;
  border: 2px solid transparent; transition: border-color .2s, background-color .2s;
}
.search:focus-within { border-color: var(--yolk); background: var(--white); }
.search input { width: 170px; border: 0; background: transparent; padding: 6px 14px; outline: none; font-size: 14px; }
.search input::placeholder { color: var(--ink-2); opacity: .8; }
.search button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--yolk); cursor: pointer;
}
.search svg, .icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; transition: background-color .2s;
}
.icon-btn:hover { background: var(--pulp); }
.cart__count {
  position: absolute; top: 4px; inset-inline-end: 2px;
  min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px;
  background: var(--comb); color: var(--white); font-size: 11px; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}

.nav-toggle, .burger { display: none; }

/* ---------- هیرو ---------- */
.hero { background: var(--gold-grad); color: var(--barn); overflow: hidden; }
.hero__in {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px;
  padding-block: 64px 72px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.35;
  max-width: 17ch;
}
.hero__lead { margin-top: 20px; font-size: 18px; max-width: 46ch; color: #4A3712; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--line { border-color: var(--barn); }
.hero__facts {
  display: flex; flex-wrap: wrap; margin: 44px 0 0;
  border-top: 1px solid rgba(43,31,13,.2); padding-top: 20px;
}
.hero__facts div { padding-inline-end: 28px; margin-inline-end: 28px; border-inline-end: 1px solid rgba(43,31,13,.2); }
.hero__facts div:last-child { border: 0; margin: 0; padding: 0; }
.hero__facts dt { font-size: 13px; color: #5C4718; }
.hero__facts dd { margin: 0; font-weight: 800; font-size: 19px; }

.hero__art { position: relative; padding-bottom: 56px; }
.hero__photo {
  margin: 0; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 5 / 4; background: var(--yolk-deep);
  box-shadow: 0 30px 60px -30px rgba(90,55,0,.55);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__inset {
  position: absolute; inset-inline-end: -24px; bottom: 0;
  margin: 0; width: 290px;
  display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 14px;
  padding: 10px; padding-inline-end: 18px;
  background: var(--white); color: var(--barn); border-radius: var(--r-md);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.45);
}
.hero__inset img { width: 92px; height: 76px; object-fit: cover; border-radius: 10px; }
.hero__inset b { display: block; font-size: 15px; line-height: 1.5; }
.hero__inset span { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- مزایا ---------- */
.promises { border-bottom: 1px solid var(--line); }
.promises__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.promises li { display: flex; gap: 14px; align-items: flex-start; padding: 28px 22px; }
.promises li + li { border-inline-start: 1px solid var(--line); }
.promises svg {
  width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 50%;
  background: var(--yolk-pale); fill: none; stroke: var(--barn); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.promises strong { display: block; font-size: 15px; line-height: 1.5; }
.promises span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-top: 2px; }

/* ---------- سکشن عمومی ---------- */
.section { padding-block: 88px; }
.section__head { margin-bottom: 40px; max-width: 60ch; }
.section__head h2, .guide__head h2 {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.3;
}
.section__head p { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; }

/* ---------- دسته‌بندی ---------- */
.cats { background: var(--pulp); }
.cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); aspect-ratio: 4 / 5; background: var(--barn);
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.cat--device { background: var(--white); }
.cat--device img { object-fit: contain; padding: 8% 10% 34%; }
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(43,31,13,.9) 0%, rgba(43,31,13,.5) 32%, transparent 60%);
}
.cat:hover img { transform: scale(1.05); }
.cat__body { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 28px; color: var(--white); }
.cat h3 { font-size: 24px; font-weight: 900; }
.cat p { color: rgba(255,255,255,.8); font-size: 14.5px; margin-top: 2px; }

/* ---------- تب‌ها (بدون جاوااسکریپت) ---------- */
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs__bar {
  display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 32px;
  background: var(--pulp); border-radius: 999px; max-width: 100%; overflow-x: auto;
}
.tabs__bar label {
  padding: 10px 22px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-weight: 700; font-size: 15px; color: var(--ink-2);
  transition: background-color .2s, color .2s;
  scroll-margin-top: 120px;
}
.tabs__bar label:hover { color: var(--barn); }
.tabs__panel { display: none; }

#t0:checked ~ .tabs__bar label[for="t0"], #t1:checked ~ .tabs__bar label[for="t1"],
#t2:checked ~ .tabs__bar label[for="t2"], #t3:checked ~ .tabs__bar label[for="t3"] { background: var(--yolk); color: var(--barn); }
#t0:checked ~ .p0, #t1:checked ~ .p1, #t2:checked ~ .p2, #t3:checked ~ .p3 { display: block; animation: show .35s ease both; }
#t0:focus-visible ~ .tabs__bar label[for="t0"], #t1:focus-visible ~ .tabs__bar label[for="t1"],
#t2:focus-visible ~ .tabs__bar label[for="t2"], #t3:focus-visible ~ .tabs__bar label[for="t3"] { outline: 3px solid var(--barn); outline-offset: 2px; }

@keyframes show { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- کارت محصول ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: transparent; box-shadow: var(--shadow); }
.card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--yolk-pale); overflow: hidden; }
.p-eggs .card__img { background: var(--yolk-pale); }
.p-inc .card__img { background: var(--white); border-bottom: 1px solid var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card--device .card__img img { object-fit: contain; padding: 16px; }
.card:hover .card__img img { transform: scale(1.04); }

.off {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: var(--comb); color: var(--white);
  font-weight: 800; font-size: 13px; line-height: 1;
  padding: 7px 10px; border-radius: 999px;
}
.off::before { content: "−"; margin-inline-end: 1px; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card__cat { font-size: 12.5px; color: var(--leaf); font-weight: 700; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.6; margin: 4px 0 14px; }
.card__title a:hover { color: var(--leaf); }
.card__foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; }

.price { display: flex; flex-direction: column; line-height: 1.4; }
.price del { font-size: 13px; color: #8A968F; }
.price ins { text-decoration: none; font-weight: 800; font-size: 19px; }
.price small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.price--lg ins { font-size: 28px; }

.add {
  width: 44px; height: 44px; border-radius: 50%; border: 0; flex: none; cursor: pointer;
  background: var(--yolk); display: grid; place-items: center;
  transition: background-color .2s, transform .2s;
}
.add svg { width: 20px; height: 20px; fill: none; stroke: var(--barn); stroke-width: 2.4; stroke-linecap: round; }
.add:hover { background: var(--barn); transform: rotate(90deg); }
.add:hover svg { stroke: var(--yolk); }

/* ---------- راهنمای ۲۱ روزه ---------- */
.guide { background: var(--barn); color: var(--white); padding-block: 96px; overflow: hidden; }
.guide__head { max-width: 56ch; margin-bottom: 56px; }
.guide__head h2 { color: var(--yolk); font-size: clamp(34px, 4.4vw, 56px); }
.guide__head p { margin-top: 10px; color: rgba(255,255,255,.75); font-size: 17px; }

.timeline {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  counter-reset: none;
}
/* خط زمان */
.timeline::before {
  content: ""; position: absolute; top: 43px; inset-inline: 30px;
  height: 2px; background: repeating-linear-gradient(to left, rgba(255,199,39,.6) 0 8px, transparent 8px 16px);
}
.timeline li { position: relative; }
.timeline__dot {
  display: flex; align-items: center; height: 88px;
}
.timeline__dot::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--barn); border: 3px solid var(--yolk);
  box-shadow: 0 0 0 6px var(--barn); position: relative; z-index: 1;
}
.timeline li:last-child .timeline__dot::before { background: var(--yolk); width: 22px; height: 22px; }
.timeline b {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--yolk); line-height: 1.2;
}
.timeline h3 { font-size: 17px; font-weight: 800; margin-top: 4px; }
.timeline p { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.85; margin-top: 6px; }

.guide__cta {
  margin-top: 56px; padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-md);
}
.guide__cta p { font-size: 17px; max-width: 52ch; }

/* ---------- محصول ویژه ---------- */
.spotlight__in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spotlight__img {
  background: #EDEDED; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 1 / 1;
}
.spotlight__img img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__text h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; }
.spotlight__text > p { margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 52ch; }
.specs { margin-top: 28px; border-top: 1px solid var(--line); }
.specs li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.specs span { color: var(--ink-2); }
.spotlight__buy { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

/* ---------- مقالات ---------- */
.blog { background: var(--pulp); }
.blog__grid {
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(3, auto); gap: 20px;
}
.post {
  display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: center;
  background: var(--white); border-radius: var(--r-md); padding: 12px;
}
.post__img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--yolk-pale); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .post__img img { transform: scale(1.05); }
.post time { font-size: 13px; color: var(--ink-2); }
.post h3 { font-size: 17px; font-weight: 700; line-height: 1.6; }
.post h3 a:hover { color: var(--leaf); }

.post--lead { grid-row: 1 / span 3; grid-template-columns: 1fr; align-content: start; padding: 0; overflow: hidden; }
.post--lead .post__img { aspect-ratio: 16 / 10; border-radius: 0; }
.post--lead .post__body { padding: 8px 28px 30px; }
.post--lead h3 { font-size: 24px; font-weight: 800; margin-top: 4px; }
.post--lead p { margin-top: 10px; color: var(--ink-2); }

/* ---------- خبرنامه ---------- */
.newsletter { background: var(--gold-grad); padding-block: 56px; }
.newsletter__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.newsletter h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 2.8vw, 34px); }
.newsletter p { color: #5C4718; margin-top: 4px; }
.newsletter__form {
  display: flex; gap: 6px; flex: 0 1 460px;
  background: var(--white); padding: 6px; border-radius: 999px;
}
.newsletter__form input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0 18px; text-align: right; }
.newsletter__form input::placeholder { color: var(--ink-2); }

/* ---------- فوتر ---------- */
.footer { background: var(--barn); color: rgba(255,255,255,.85); }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px;
  padding-block: 72px 56px;
}
.footer__about p { margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,.7); max-width: 38ch; }
.footer h3 { color: var(--yolk); font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.footer__col a:hover { color: var(--yolk); }
.footer__contact p { color: rgba(255,255,255,.8); }
.footer__contact .ltr { font-weight: 800; font-size: 17px; color: var(--white); }

.social { display: flex; gap: 8px; margin-top: 22px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); transition: background-color .2s, border-color .2s;
}
.social a:hover { background: var(--yolk); border-color: var(--yolk); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social a:hover svg { stroke: var(--barn); }

.footer__bar { border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.6); }
.footer__bar-in { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; }

/* =========================================================
   واکنش‌گرا
   ========================================================= */
@media (max-width: 1240px) {
  .search input { width: 120px; }
  .nav a { padding: 8px 8px; font-size: 14px; }
}
@media (max-width: 1100px) {
  .search { display: none; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
}

@media (max-width: 960px) {
  .header__in { gap: 12px; }
  .burger {
    display: grid; place-items: center; order: 3; width: 44px; height: 44px; cursor: pointer; border-radius: 50%;
  }
  .burger span, .burger span::before, .burger span::after {
    display: block; width: 20px; height: 2px; background: var(--barn); border-radius: 2px; position: relative;
    transition: transform .25s, background-color .25s;
  }
  .burger span::before, .burger span::after { content: ""; position: absolute; inset-inline: 0; }
  .burger span::before { top: -6px; }
  .burger span::after { top: 6px; }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .nav-toggle:focus-visible + .burger { outline: 3px solid var(--leaf); }
  .nav-toggle:checked + .burger span { background: transparent; }
  .nav-toggle:checked + .burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked + .burger span::after { transform: translateY(-6px) rotate(-45deg); }

  .header__tools { margin-inline-start: auto; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(43,31,13,.3);
    display: none;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }

  .hero__in { grid-template-columns: 1fr; gap: 36px; padding-block: 28px 56px; }
  .hero h1 { max-width: 18ch; }
  .hero__art { order: -1; }
  .hero__inset { inset-inline-end: 12px; }

  .promises__list { grid-template-columns: repeat(2, 1fr); }
  .promises li:nth-child(3) { border-inline-start: 0; }
  .promises li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cats__grid { gap: 16px; }
  .spotlight__in { grid-template-columns: 1fr; gap: 32px; }
  .blog__grid { grid-template-columns: 1fr; }
  .post--lead { grid-row: auto; }
  .newsletter__in { flex-direction: column; align-items: stretch; text-align: center; }
  .newsletter__form { flex-basis: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hide-sm, .topbar__addr { display: none; }
  .topbar__in { justify-content: center; }
  .search { display: none; }
  .logo__text strong { font-size: 24px; }

  .hero__lead { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts div { padding-inline-end: 16px; margin-inline-end: 16px; }
  .hero__facts dd { font-size: 16px; }

  .section { padding-block: 64px; }
  .section__head--row { flex-direction: column; align-items: start; }
  .promises__list { grid-template-columns: 1fr; }
  .promises li { padding: 18px 4px; border-inline-start: 0 !important; }
  .promises li + li { border-top: 1px solid var(--line); }

  .cats__grid { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 16 / 10; }
  .cat--device img { padding: 6% 10% 30%; }
  .hero__inset { width: auto; inset-inline: 12px; grid-template-columns: 72px 1fr; }
  .hero__inset img { width: 72px; height: 60px; }
  .hero__art { padding-bottom: 44px; }

  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 12px 12px 14px; }
  .card__title { font-size: 14.5px; }
  .price ins { font-size: 16px; }
  .add { width: 38px; height: 38px; }
  .off { top: 8px; inset-inline-start: 8px; font-size: 11.5px; padding: 5px 8px; }

  .tabs__bar { display: flex; }
  .tabs__bar label { padding: 9px 8px; font-size: 13.5px; flex: 1 1 auto; text-align: center; }

  .guide { padding-block: 64px; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline li { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding-bottom: 28px; }
  .timeline li::before {
    content: ""; position: absolute; inset-inline-start: 13px; top: 36px; bottom: 0;
    border-inline-start: 2px dashed rgba(255,199,39,.45);
  }
  .timeline li:last-child::before { display: none; }
  .timeline__dot { grid-row: span 3; height: 40px; justify-content: center; }
  .timeline b { margin-top: 6px; }
  .guide__cta { flex-direction: column; align-items: stretch; text-align: center; }

  .post { grid-template-columns: 96px 1fr; }
  .post--lead { grid-template-columns: 1fr; }
  .post--lead .post__body { padding: 4px 18px 22px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 56px 40px; }
  .footer__bar-in { flex-direction: column; text-align: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   صفحات داخلی
   ========================================================= */

/* آیکن عمومی */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ابزارهای کمکی */
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn .i { width: 19px; height: 19px; }
.icon-btn--line { border: 1.5px solid var(--line); }
.icon-btn--line:hover { border-color: var(--barn); background: transparent; color: var(--comb); }
.link-muted { font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.link-muted:hover { color: var(--barn); }
.section--tight { padding-block: 40px 88px; }
.section--pulp { background: var(--pulp); }
.wrap--text { width: min(100% - 32px, 760px); }
.wrap--wide { width: min(100% - 32px, 1040px); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.tint-chick { background: var(--yolk-pale); }

/* سر صفحه */
.page-head { background: var(--gold-grad); padding-block: 28px 40px; }
.page-head h1 { font-weight: 900; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; margin-top: 10px; }
.page-head p { margin-top: 6px; color: #4A3712; font-size: 17px; max-width: 60ch; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13.5px; }
.crumbs li { display: flex; align-items: center; gap: 4px; color: #5C4718; }
.crumbs li + li::before { content: "/"; opacity: .45; margin-inline: 2px; }
.crumbs a:hover { color: var(--barn); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--barn); font-weight: 700; }
.product .crumbs li, .article__head .crumbs li { color: var(--ink-2); }

/* فرم‌ها */
.form { display: grid; gap: 16px; }
.form > .btn:not(.btn--block) { justify-self: start; min-width: 180px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.field small { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea,
.coupon input, .range input, .sort select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); font-weight: 400; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus,
.coupon input:focus, .range input:focus, .sort select:focus {
  outline: none; border-color: var(--yolk-deep); box-shadow: 0 0 0 4px rgba(245,185,30,.22);
}
.field input:disabled { background: var(--pulp); color: var(--ink-2); }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B1F0D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; background-size: 18px;
  padding-inline-end: 38px !important;
}
::placeholder { color: #A39274; }

.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; padding-block: 5px; }
.check input, .option input, .switch input { accent-color: var(--yolk-deep); }
.check input { width: 18px; height: 18px; flex: none; }
.check span { flex: 1; }
.check small { color: var(--ink-2); font-size: 12.5px; background: var(--pulp); border-radius: 999px; padding: 1px 9px; }
.check--terms { font-size: 13.5px; }
.check--terms a { text-decoration: underline; text-underline-offset: 3px; }

.switch { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; padding-block: 6px; }
.switch input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer;
  transition: background-color .2s;
}
.switch input::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: inset-inline-start .2s;
}
.switch input:checked { background: var(--yolk-deep); }
.switch input:checked::after { inset-inline-start: 21px; }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; margin: 0; min-width: 0;
}
fieldset.panel { display: grid; gap: 16px; }
.panel legend, .panel h2 { font-size: 18px; font-weight: 800; }
fieldset.panel legend { float: right; width: 100%; margin-bottom: 4px; }
fieldset.panel legend + * { clear: both; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.form-stack { display: grid; gap: 20px; align-content: start; }

.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px;
  transition: border-color .2s, background-color .2s;
}
.option:hover { border-color: var(--yolk); }
.option:has(input:checked) { border-color: var(--yolk-deep); background: var(--yolk-pale); }
.option input { width: 18px; height: 18px; flex: none; }
.option__body { flex: 1; display: grid; }
.option__body b { font-size: 15px; }
.option__body small { font-size: 13px; color: var(--ink-2); }
.option__price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.option__icon { width: 26px; height: 26px; color: var(--leaf); }

/* فروشگاه */
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 96px; }
.filters__box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.filters__toggle { position: absolute; opacity: 0; pointer-events: none; }
.filters__title { display: flex; align-items: center; gap: 10px; padding: 18px 20px; font-weight: 800; font-size: 16px; }
.filters__hint { display: none; }
.filters__form { padding: 0 20px 20px; display: grid; gap: 4px; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 10px; }
.filters legend { font-weight: 800; font-size: 14.5px; padding: 0; margin-bottom: 6px; float: right; width: 100%; }
.filters legend + * { clear: both; }
.range { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.range label { flex: 1; }
.range input { min-height: 42px; padding: 8px 10px; font-size: 14px; }
.filters__actions { display: grid; gap: 10px; justify-items: center; padding-top: 10px; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.toolbar > p { font-size: 14.5px; color: var(--ink-2); }
.toolbar > p b { color: var(--barn); }
.sort { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.sort select { min-height: 42px; width: auto; padding-block: 6px; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 999px; background: var(--yolk-pale); font-size: 13.5px; font-weight: 700;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s;
}
.chip:hover { border-color: var(--yolk-deep); }
.chip.is-active { background: var(--barn); color: var(--yolk); }
.chips--nav { margin-bottom: 28px; }
.chips--nav .chip { padding: 8px 18px; font-size: 14.5px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.pager a {
  min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 700; border: 1px solid var(--line);
  transition: background-color .2s, border-color .2s;
}
.pager a:hover { border-color: var(--barn); }
.pager a[aria-current] { background: var(--yolk); border-color: var(--yolk); }

/* صفحه محصول */
.product .crumbs { margin-bottom: 24px; }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }

.gallery__stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--yolk-pale); }
.gallery__stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery__stage.is-contain { background: var(--white); border: 1px solid var(--line); }
.gallery__stage.is-contain img { object-fit: contain; padding: 6%; }
.gallery__stage .off { top: 18px; inset-inline-start: 18px; font-size: 14px; padding: 8px 12px; z-index: 2; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery__thumbs button {
  aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0; background: var(--white);
  border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s;
}
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button.is-active { border-color: var(--yolk-deep); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp__cat { font-size: 14px; font-weight: 700; color: var(--leaf); }
.pdp__info h1 { font-weight: 900; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.4; margin-top: 4px; }
.pdp__lead { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; max-width: 56ch; }
.pdp__buy {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding: 20px 22px; background: var(--yolk-pale); border-radius: var(--r-md);
}
.pdp__unit { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.price--lg del { font-size: 15px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #2F7A3E; }
.stock .i { width: 18px; height: 18px; stroke-width: 2.4; }
.pdp__form { display: flex; gap: 10px; margin-top: 16px; }
.pdp__form .icon-btn { width: 50px; height: 50px; flex: none; }

.qty {
  display: flex; align-items: center; height: 50px; flex: none;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 0 4px;
}
.qty button {
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background-color .2s;
}
.qty button:hover { background: var(--yolk-pale); }
.qty .i { width: 18px; height: 18px; stroke-width: 2.2; }
.qty input {
  width: 52px; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 16px;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--yolk-deep); }
.qty--sm { height: 42px; }
.qty--sm button { width: 32px; height: 32px; }
.qty--sm input { width: 42px; font-size: 15px; }

.pdp__perks { margin-top: 24px; display: grid; gap: 12px; }
.pdp__perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.pdp__perks b { color: var(--barn); }
.pdp__perks .i { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--yolk-pale); color: var(--barn); }
.pdp__meta { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.pdp__meta div { display: flex; gap: 8px; }
.pdp__meta dt { color: var(--ink-2); }
.pdp__meta dd { margin: 0; }
.pdp__meta a:hover { color: var(--leaf); }

.pdp__tabs { margin-top: 64px; }
#pt1:checked ~ .tabs__bar label[for="pt1"], #pt2:checked ~ .tabs__bar label[for="pt2"],
#pt3:checked ~ .tabs__bar label[for="pt3"], #pt4:checked ~ .tabs__bar label[for="pt4"] { background: var(--yolk); color: var(--barn); }
#pt1:checked ~ .p1, #pt2:checked ~ .p2, #pt3:checked ~ .p3, #pt4:checked ~ .p4 { display: block; animation: show .35s ease both; }
#pt1:focus-visible ~ .tabs__bar label[for="pt1"], #pt2:focus-visible ~ .tabs__bar label[for="pt2"],
#pt3:focus-visible ~ .tabs__bar label[for="pt3"], #pt4:focus-visible ~ .tabs__bar label[for="pt4"] { outline: 3px solid var(--barn); outline-offset: 2px; }

.spec { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec th { width: 38%; font-weight: 500; color: var(--ink-2); background: var(--pulp); }
.spec tr:first-child th { border-start-start-radius: 12px; }

.reviews { display: grid; gap: 28px; max-width: 760px; }
.review-form { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); }
.review-form h3 { font-size: 18px; font-weight: 800; }

.empty { text-align: center; padding: 32px 20px; border: 1.5px dashed var(--line); border-radius: var(--r-md); color: var(--ink-2); }
.empty .i { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--yolk-deep); }
.empty b { color: var(--barn); font-size: 16px; }

/* متن بلند */
.prose { max-width: 68ch; font-size: 16.5px; line-height: 2.05; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 24px; font-weight: 900; line-height: 1.5; margin-top: 1.8em; }
.prose h3 { font-size: 19px; font-weight: 800; line-height: 1.5; margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: .5em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--yolk-deep); font-weight: 800; }
.prose a { color: var(--leaf); text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-inline-start: 4px solid var(--yolk);
  background: var(--yolk-pale); border-radius: 0 12px 12px 0; font-weight: 700; font-size: 17.5px;
}

/* سبد خرید و تسویه */
.free-ship {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
  padding: 14px 20px; background: #EAF5EA; color: #1F5A2A; border-radius: var(--r-md); font-size: 14.5px;
}
.free-ship .i { width: 26px; height: 26px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }

.lines { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.line {
  display: grid; grid-template-columns: 96px 1fr auto 150px 40px; align-items: center; gap: 20px;
  padding: 18px 20px;
}
.line + .line { border-top: 1px solid var(--line); }
.line__img { width: 96px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--pulp); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line h3 { font-size: 16px; font-weight: 700; line-height: 1.6; }
.line h3 a:hover { color: var(--leaf); }
.line__unit { font-size: 13.5px; color: var(--ink-2); }
.line__total { font-weight: 800; font-size: 17px; text-align: end; }
.line__total small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.line__remove {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-2);
  display: grid; place-items: center; transition: background-color .2s, color .2s;
}
.line__remove:hover { background: #FBE9E6; color: var(--comb); }

.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.coupon { display: flex; gap: 8px; flex: 0 1 420px; }
.coupon input { min-height: 50px; }

.summary {
  position: sticky; top: 96px; display: grid; gap: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px;
}
.summary h2 { font-size: 18px; font-weight: 800; }
.summary dl { margin: 0; display: grid; gap: 12px; font-size: 14.5px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 700; }
.summary .is-saving dd { color: var(--comb); }
.summary .is-free { color: #2F7A3E; }
.summary__total { padding-top: 14px; border-top: 1px dashed var(--line); align-items: baseline; }
.summary__total dt { color: var(--barn); font-weight: 800; }
.summary__total dd { font-size: 22px; font-weight: 900; }
.summary__total small { font-size: 13px; font-weight: 500; }
.summary__note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.summary__note .i { width: 16px; height: 16px; }

.mini { display: grid; gap: 12px; }
.mini li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; font-size: 14px; line-height: 1.6; }
.mini img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--pulp); }
.mini small { color: var(--ink-2); }
.mini b { font-size: 14px; white-space: nowrap; }
.mini--links a:hover { color: var(--leaf); }

.steps { display: flex; justify-content: center; gap: 0; margin: 0 auto 36px; max-width: 640px; counter-reset: none; }
.steps li {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-2); position: relative; text-align: center;
}
.steps li::before {
  content: ""; position: absolute; top: 19px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1;
}
.steps li:last-child::before { display: none; }
.steps li.is-done::before { background: var(--yolk-deep); }
.steps span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--white); border: 2px solid var(--line);
}
.steps .i { width: 20px; height: 20px; stroke-width: 2.6; }
.steps .is-done span { background: var(--yolk-deep); border-color: var(--yolk-deep); color: var(--white); }
.steps .is-current { color: var(--barn); font-weight: 800; }
.steps .is-current span { border-color: var(--yolk-deep); background: var(--yolk); }

/* نتیجه و ۴۰۴ */
.result { max-width: 620px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.result h1 { font-weight: 900; font-size: clamp(26px, 3.2vw, 36px); }
.result > p { color: var(--ink-2); font-size: 16.5px; max-width: 48ch; }
.result__icon {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); margin-bottom: 8px;
}
.result__icon .i { width: 40px; height: 40px; stroke-width: 2.6; color: var(--barn); }
.result__meta {
  width: 100%; margin: 16px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-align: start;
}
.result__meta div { background: var(--white); padding: 14px 18px; }
.result__meta dt { font-size: 13px; color: var(--ink-2); }
.result__meta dd { margin: 0; font-weight: 800; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.nf-code {
  font-size: clamp(96px, 16vw, 168px); font-weight: 900; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.search--lg { width: 100%; max-width: 440px; margin-top: 12px; }
.search--lg input { width: 100%; flex: 1; padding-block: 10px; }
.search--lg button { width: 42px; height: 42px; }

/* ورود */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 116px); }
.auth__panel { display: grid; align-content: center; gap: 14px; padding: 48px max(24px, 6vw); max-width: 620px; width: 100%; justify-self: center; }
.auth__panel .logo { margin-bottom: 20px; }
.auth h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; }
.auth__panel > p { color: var(--ink-2); font-size: 15.5px; }
.auth__panel > p a { color: var(--leaf); font-weight: 700; }
.auth .form { margin-top: 8px; }
.auth .field input { min-height: 54px; font-size: 17px; letter-spacing: .5px; }
.auth__small { display: flex; align-items: center; gap: 6px; font-size: 13.5px !important; }
.auth__small a { text-decoration: underline; text-underline-offset: 3px; }
.auth__small .i { width: 17px; height: 17px; }
.auth__art { margin: 0; position: relative; background: var(--yolk); }
.auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.otp { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; justify-content: center; }
.otp input {
  width: 58px; height: 64px; text-align: center; font-size: 24px; font-weight: 800;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--white);
}
.otp input:focus { outline: none; border-color: var(--yolk-deep); box-shadow: 0 0 0 4px rgba(245,185,30,.22); }

/* حساب کاربری */
.account { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.account__side { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.account__user { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--yolk-pale); }
.account__user div { display: grid; line-height: 1.6; }
.account__user span { font-size: 13.5px; color: var(--ink-2); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--gold-grad); font-weight: 900; font-size: 20px;
}
.avatar--lg { width: 60px; height: 60px; font-size: 24px; }
.account__nav { display: grid; padding: 8px; }
.account__nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; transition: background-color .2s;
}
.account__nav a:hover { background: var(--pulp); }
.account__nav a[aria-current] { background: var(--barn); color: var(--yolk); font-weight: 700; }
.account__nav a:last-child { color: var(--comb); }
.account__main { display: grid; gap: 20px; min-width: 0; }
.account__main > section { scroll-margin-top: 100px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 20px 22px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); display: grid; gap: 2px; }
.stat:first-child { background: var(--gold-grad); border-color: transparent; }
.stat span { font-size: 14px; color: var(--ink-2); }
.stat:first-child span { color: #4A3712; }
.stat b { font-size: 30px; font-weight: 900; line-height: 1.3; }

.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: start; font-weight: 500; color: var(--ink-2); font-size: 13.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge--warn { background: #FFF1CC; color: #8A5A00; }
.badge--info { background: #E5F0FB; color: #1F5A8A; }
.badge--ok { background: #E6F4E6; color: #2F7A3E; }

.address { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1.5px solid var(--yolk); border-radius: var(--r-sm); background: var(--yolk-pale); }
.address > .i { margin-top: 4px; color: var(--leaf); }
.address div { flex: 1; display: grid; gap: 2px; }
.address p { font-size: 15px; }
.address small { color: var(--ink-2); font-size: 13px; }

/* وبلاگ */
.feature {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; margin-bottom: 40px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.feature__img { display: block; min-height: 340px; background: var(--pulp); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: 36px; display: grid; align-content: center; gap: 14px; }
.feature h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; line-height: 1.5; }
.feature h2 a:hover { color: var(--leaf); }
.feature__body > p:not(.pcard__meta) { color: var(--ink-2); }
.feature .link { justify-self: start; }

.pcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.pcard__meta span:first-child { color: var(--leaf); font-weight: 700; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pgrid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.pcard { background: var(--white); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.section--pulp .pcard { border-color: transparent; }
.pcard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pulp); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.pcard h3 { font-size: 17px; font-weight: 800; line-height: 1.6; }
.pcard h3 a:hover { color: var(--leaf); }
.pcard__body > p:last-child:not(.pcard__meta) { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }

/* مقاله */
.article__head { padding-block: 32px 28px; }
.article__head .pcard__meta { margin-top: 20px; }
.article__head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; line-height: 1.4; margin-top: 8px; }
.article__lead { margin-top: 14px; font-size: 18.5px; color: var(--ink-2); line-height: 1.95; }
.article__cover { margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; background: var(--pulp); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; padding-block: 48px 24px; max-width: 1040px; align-items: start; }
.article__side { position: sticky; top: 96px; display: grid; gap: 16px; }
.side-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 14px; }
.side-box h2 { font-size: 16px; font-weight: 800; }
.side-box--gold { background: var(--gold-grad); border-color: transparent; }
.side-box--gold p { font-size: 14.5px; color: #4A3712; margin-top: -6px; }
.article__foot { max-width: 1040px; padding-bottom: 64px; }
.share { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding-top: 20px; border-top: 1px solid var(--line); }
.share a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--barn); transition: background-color .2s; }
.share a:hover { background: var(--yolk); border-color: var(--yolk); }
.share .i { width: 18px; height: 18px; }

/* درباره ما */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__text { display: grid; gap: 16px; }
.split__text h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 900; line-height: 1.4; }
.split__text p { color: var(--ink-2); font-size: 16.5px; max-width: 58ch; }
.person { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.person div { display: grid; line-height: 1.6; }
.person b { font-size: 17px; }
.person span { color: var(--ink-2); font-size: 14px; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: var(--white); border-radius: var(--r-md); padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.service .i { width: 50px; height: 50px; padding: 12px; border-radius: 14px; background: var(--gold-grad); color: var(--barn); margin-bottom: 8px; }
.service h3 { font-size: 17px; font-weight: 800; }
.service p { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }
.cta-band { background: var(--barn); color: var(--white); padding-block: 48px; }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; color: var(--yolk); }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 4px; }
.cta-band .btn--dark { background: var(--yolk); color: var(--barn); }
.cta-band .btn--dark:hover { background: var(--white); }

/* تماس */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cinfo {
  display: flex; align-items: center; gap: 14px; padding: 18px; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s;
}
a.cinfo:hover { border-color: var(--yolk-deep); }
.cinfo > .i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--yolk-pale); }
.cinfo span { display: grid; min-width: 0; line-height: 1.7; }
.cinfo small { font-size: 12.5px; color: var(--ink-2); }
.cinfo b { font-size: 15px; overflow-wrap: anywhere; }
.cinfo--wide { grid-column: 1 / -1; }
.map {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 22px;
  border-radius: var(--r-md); background: var(--gold-grad); transition: filter .2s;
}
.map:hover { filter: brightness(1.04); }
.map > .i { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--barn); color: var(--yolk); }
.map span { display: grid; }
.map small { color: #4A3712; }
.contact__form { padding: 28px; }
.contact__form > p { color: var(--ink-2); font-size: 14.5px; margin-top: -8px; }

/* صفحه‌های متنی */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.doc__nav { position: sticky; top: 96px; display: grid; gap: 4px; border-inline-start: 2px solid var(--line); }
.doc__nav a { padding: 8px 16px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; font-size: 15px; color: var(--ink-2); }
.doc__nav a:hover { color: var(--barn); }
.doc__nav a[aria-current] { border-color: var(--yolk-deep); color: var(--barn); font-weight: 800; }

/* ---------- واکنش‌گرای صفحات داخلی ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 > :nth-child(4) { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .pgrid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid { grid-template-columns: 1fr 340px; }
  .line { grid-template-columns: 80px 1fr auto 40px; }
  .line__img { width: 80px; }
  .line__total { grid-column: 2 / 4; text-align: start; }
}

@media (max-width: 960px) {
  .shop, .account, .doc { grid-template-columns: 1fr; }
  .filters, .account__side, .doc__nav, .summary, .article__side { position: static; }
  .filters__title { cursor: pointer; padding: 14px 18px; }
  .filters__hint { display: inline; margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--leaf); }
  .filters__hint::after { content: " +"; }
  .filters__toggle:checked ~ .filters__title .filters__hint::after { content: " −"; }
  .filters__toggle:focus-visible ~ .filters__title { outline: 3px solid var(--barn); outline-offset: -3px; border-radius: var(--r-md); }
  .filters__form { display: none; }
  .filters__toggle:checked ~ .filters__form { display: grid; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .article__layout { grid-template-columns: 1fr; gap: 32px; }
  .split, .contact { grid-template-columns: 1fr; gap: 32px; }
  .feature { grid-template-columns: 1fr; }
  .feature__img { min-height: 0; aspect-ratio: 16 / 9; }
  .pgrid, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__art { display: none; }
  .account__nav { grid-auto-flow: column; overflow-x: auto; }
  .account__nav a { white-space: nowrap; }
  .account__user { display: none; }
  .doc__nav { grid-auto-flow: column; justify-content: start; border: 0; border-bottom: 2px solid var(--line); overflow-x: auto; }
  .doc__nav a { margin: 0 0 -2px; border: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .cta-band__in { flex-direction: column; align-items: start; }
}

@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
  .grid--4, .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 > :nth-child(4) { display: flex; }
  .pgrid, .pgrid:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; }
  .services, .contact__info, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 14px; }
  .stat span { font-size: 12px; }
  .stat b { font-size: 22px; }
  .panel, .contact__form { padding: 18px; }
  .page-head { padding-block: 20px 28px; }
  .toolbar { gap: 10px; }
  .sort { margin-inline-start: 0; width: 100%; }
  .sort select { flex: 1; }
  .pdp__buy { flex-direction: column; align-items: start; }
  .pdp__form { flex-wrap: wrap; }
  .pdp__form .btn--grow { order: 3; flex-basis: 100%; }
  .gallery__thumbs { gap: 8px; }
  .line { grid-template-columns: 72px 1fr 36px; gap: 8px 14px; padding: 16px; }
  .line__img { width: 72px; grid-row: span 2; }
  .line .qty { grid-column: 2; justify-self: start; }
  .line__total { grid-column: 2 / 4; grid-row: 3; text-align: start; }
  .line__remove { grid-column: 3; grid-row: 1; }
  .coupon { flex-basis: 100%; }
  .steps li { font-size: 12.5px; }
  .result__meta { grid-template-columns: 1fr; }
  .otp input { width: 50px; height: 58px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; }
  .table td[data-label]::before { content: attr(data-label); color: var(--ink-2); font-size: 13px; }
  .feature__body { padding: 22px; }
  .article__cover { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
  .prose { font-size: 16px; }
}

/* رنگ زمینه‌ی عکس کارت‌ها بر اساس دسته */
.tint-egg { background: var(--yolk-pale); }
.tint-device { background: var(--white); border-bottom: 1px solid var(--line); }

/* =========================================================
   اجزای پویا (نسخه PHP)
   ========================================================= */
[hidden] { display: none !important; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .i, .icon-btn .i { width: 19px; height: 19px; }
.icon-btn .i { stroke-width: 2; }
.icon-btn--danger:hover { background: #FBE9E6; color: var(--comb); }
.icon-btn.is-active, .card__wish.is-active { color: var(--comb); }
.icon-btn.is-active .i, .card__wish.is-active .i { fill: var(--comb); }
.link-btn { background: none; border: 0; padding: 0; color: var(--leaf); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.muted-text { color: var(--ink-2); font-size: 14.5px; }
.txt-err { color: var(--comb); }
.h2 { font-weight: 900; font-size: clamp(26px, 3vw, 36px); line-height: 1.35; }
.narrow { max-width: 820px; display: grid; gap: 20px; }
.section__head--row > div { min-width: 0; }

/* اعلان‌ها و پیام‌ها */
.alerts { display: grid; gap: 10px; padding-top: 16px; }
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; }
.alert .i { width: 20px; height: 20px; flex: none; }
.alert--ok { background: #EAF5EA; color: #1F5A2A; }
.alert--err { background: #FBE9E6; color: #8E2414; }
.alert--info { background: var(--yolk-pale); color: #6B4A00; }

.toast {
  position: fixed; inset-inline: 16px; bottom: 20px; z-index: 90; margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: var(--barn); color: var(--white); border-radius: 999px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.4);
  transform: translateY(140%); opacity: 0; transition: transform .3s ease, opacity .3s;
}
.toast.is-show { transform: none; opacity: 1; }
.toast.is-err .toast__ok { background: var(--comb); }
.toast__ok { width: 30px; height: 30px; border-radius: 50%; background: var(--yolk); color: var(--barn); display: grid; place-items: center; flex: none; }
.toast__ok .i { width: 17px; height: 17px; stroke-width: 2.6; }
.toast__msg { font-size: 14.5px; }
.toast__link { color: var(--yolk); font-weight: 800; font-size: 14px; white-space: nowrap; }

.notice {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--yolk-pale); border: 1px solid #F4DE9C;
}
.notice > .i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--yolk); color: var(--barn); flex: none; }
.notice > div { flex: 1; }
.notice p { font-size: 14px; color: var(--ink-2); }
.notice--soft { background: var(--white); border-color: var(--line); }
.notice--soft > .i { background: var(--pulp); }

.empty .empty__act { margin-top: 16px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* هدر: منوی کاربر */
.avatar--sm { width: 34px; height: 34px; font-size: 15px; }
.umenu { position: relative; }
.umenu__drop {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; width: 230px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
  padding: 8px; display: grid; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.umenu:hover .umenu__drop, .umenu:focus-within .umenu__drop { opacity: 1; visibility: visible; transform: none; }
.umenu__head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.umenu__head small { color: var(--ink-2); font-size: 12.5px; justify-self: start; }
.umenu__drop a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; }
.umenu__drop a:hover { background: var(--pulp); }
.umenu__drop .i { width: 18px; height: 18px; color: var(--ink-2); }
.umenu__out { color: var(--comb); }
.cart .i { width: 21px; height: 21px; }
.search--menu { display: none; }

/* کارت محصول */
.card { position: relative; }
.card__wish {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: color .2s, transform .2s;
}
.card__wish:hover { color: var(--comb); transform: scale(1.06); }
.card__wish .i { width: 18px; height: 18px; }
.card__unit { font-size: 12.5px; color: var(--ink-2); margin: -8px 0 12px; }
.card__ws { display: inline-block; font-size: 11.5px; font-weight: 700; color: #2F7A3E; }
.off--muted { background: #6B6B6B; }
.off--muted::before, .off--gold::before { content: none; }
.off--gold { background: var(--yolk); color: var(--barn); }
.add--muted { background: var(--pulp); }
.card--device .card__img { background: var(--white); border-bottom: 1px solid var(--line); }
.card--device .card__img img { object-fit: contain; padding: 14px; }
.tabs__more { text-align: center; margin-top: 28px; }

/* فیلترها */
.fcat { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; transition: background-color .2s; }
.fcat:hover { background: var(--pulp); }
.fcat small { color: var(--ink-2); font-size: 12.5px; background: var(--pulp); border-radius: 999px; padding: 0 9px; }
.fcat--sub { padding-inline-start: 22px; font-size: 14px; color: var(--ink-2); }
.fcat.is-active { background: var(--yolk-pale); color: var(--barn); font-weight: 800; }
.fcat.is-active small { background: var(--white); }
.filters form { display: grid; gap: 4px; }
.sortlinks { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.sortlinks .chip { font-weight: 500; }
.cat-desc { margin-top: 40px; max-width: none; }
.cat-desc h2 { font-size: 20px; margin-bottom: 6px; }

/* صفحه محصول */
.pdp__rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 15px; height: 15px; fill: #E2D9C2; stroke: none; }
.stars svg.on { fill: var(--yolk-deep); }
.opt-label { margin-top: 20px; font-size: 14.5px; color: var(--ink-2); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.variant {
  display: grid; gap: 2px; padding: 10px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--white); cursor: pointer; font-weight: 700; font-size: 14.5px; text-align: start; transition: border-color .2s;
}
.variant small { font-weight: 500; font-size: 12.5px; color: var(--ink-2); }
.variant.is-active { border-color: var(--yolk-deep); background: var(--yolk-pale); }
.variant:disabled { opacity: .5; cursor: not-allowed; }
.stock--out { color: var(--comb); }
.pdp__min { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: #6B4A00; }
.pdp__min .i { width: 18px; height: 18px; }
.ws-note { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); padding: 12px 14px; border-radius: var(--r-sm); background: var(--pulp); }
.ws-note .i { width: 18px; height: 18px; }
.ws-note a { color: var(--leaf); font-weight: 800; }
.rev-sum { display: flex; align-items: center; gap: 10px; }
.rev-sum b { font-size: 34px; font-weight: 900; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 8px; }
.review time { font-size: 12.5px; color: var(--ink-2); margin-inline-start: auto; }
.review p { font-size: 15px; line-height: 1.95; }
.review__reply { margin-top: 12px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--yolk-pale); }
.review__reply b { font-size: 13.5px; }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input button { border: 0; background: none; padding: 2px; cursor: pointer; }
.stars-input svg { width: 26px; height: 26px; fill: #E2D9C2; stroke: none; transition: fill .15s; }
.stars-input button.is-on svg { fill: var(--yolk-deep); }

/* سبد خرید */
.line__img.is-contain { background: var(--white); border: 1px solid var(--line); }
.line__img.is-contain img { object-fit: contain; padding: 6px; }
.line__unit del { font-size: 12.5px; color: #8A968F; }
.line__min { font-size: 12.5px; color: #6B4A00; margin-top: 2px; }
.line__rm { display: contents; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.coupon__on { flex: 1; display: flex; align-items: center; min-height: 50px; padding: 0 14px; border: 1.5px dashed var(--yolk-deep); border-radius: var(--r-sm); font-weight: 800; background: var(--yolk-pale); }
.cart-actions__links { display: flex; align-items: center; gap: 18px; }
.cart-actions__links form { display: contents; }
.cart-actions__links .link-muted { background: none; border: 0; cursor: pointer; }
.summary h2 small { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.summary .is-saving dd { color: var(--comb); }
.mini--lg li { grid-template-columns: 64px 1fr auto; }
.mini--lg img { width: 64px; height: 64px; }
.mini li span { display: grid; }

/* مودال */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__bg { position: absolute; inset: 0; background: rgba(43,31,13,.55); }
.modal__box {
  position: relative; width: min(100%, 620px); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--white); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal__head h3 { font-size: 19px; font-weight: 800; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
body.has-modal { overflow: hidden; }

/* ورود */
.auth-step { display: none; gap: 14px; }
.auth-step.is-active { display: grid; }
.auth-step > p { color: var(--ink-2); font-size: 15.5px; }
.form__err { color: var(--comb); font-size: 14px; font-weight: 700; }
.auth__back { margin-top: 24px; font-size: 14px; }
.auth__back a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.auth__back .i { width: 16px; height: 16px; }
.auth__panel > .logo { margin-bottom: 12px; }
.auth { min-height: 100vh; }

/* نتیجه پرداخت */
.result--fail .result__icon { background: #FBE9E6; }
.result--fail .result__icon .i { color: var(--comb); }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-weight: 800; cursor: pointer; color: var(--barn); padding: 0; }
.copy .i { width: 16px; height: 16px; color: var(--ink-2); }

/* پیگیری و وضعیت سفارش */
.track { display: grid; grid-template-columns: repeat(5, 1fr); margin: 8px 0 4px; }
.track li { display: grid; justify-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); position: relative; text-align: center; }
.track li::before { content: ""; position: absolute; top: 21px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track li:last-child::before { display: none; }
.track li.is-done::before { background: var(--yolk-deep); }
.track span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--line); position: relative; z-index: 1; }
.track .i { width: 20px; height: 20px; }
.track .is-done span { background: var(--yolk-deep); border-color: var(--yolk-deep); color: var(--white); }
.track .is-done, .track .is-current { color: var(--barn); font-weight: 700; }
.track .is-current span { background: var(--yolk); border-color: var(--yolk-deep); }
.track-code { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14.5px; }
.track-form { display: grid; gap: 16px; }

.kv { margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; }
.kv .is-saving dd { color: var(--comb); }
.kv__total { padding-top: 10px; border-top: 1px dashed var(--line); }
.kv__total dd { font-size: 18px; font-weight: 900; }

/* حساب کاربری */
.page-head--slim { padding-block: 16px 18px; }
.account__title { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.account__title h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; }
.account__title p { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.account__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.account__user .badge { margin-top: 4px; justify-self: start; }
.account__nav .cnt { margin-inline-start: auto; min-width: 22px; height: 22px; border-radius: 999px; padding: 0 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--comb); color: var(--white); }
.account__nav .i { color: inherit; }
.account__out { color: var(--comb); }
.stats { grid-template-columns: repeat(4, 1fr); }
.stat { transition: border-color .2s; }
a.stat:hover { border-color: var(--yolk-deep); }
.dash-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel__title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.panel__head h2 { font-size: 18px; font-weight: 800; }

.notifs { display: grid; }
.notifs li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notifs li:last-child { border-bottom: 0; }
.notifs li > .i { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--pulp); flex: none; }
.notifs li.is-new > .i { background: var(--yolk); }
.notifs div { display: grid; gap: 2px; }
.notifs p { font-size: 14px; color: var(--ink-2); }
.notifs small { font-size: 12.5px; color: var(--ink-2); }
.notifs a:hover { color: var(--leaf); }

.ocards { display: grid; gap: 14px; margin-top: 16px; }
.ocard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.ocard__head { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ocard__head div { display: grid; }
.ocard__head small { font-size: 12.5px; color: var(--ink-2); }
.ocard__head b { font-size: 14.5px; }
.ocard__head .badge { margin-inline-start: auto; }
.ocard__imgs { display: flex; gap: 10px; padding: 14px 20px; }
.ocard__imgs img, .ocard__imgs .more { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--pulp); }
.ocard__imgs .more { display: grid; place-items: center; font-weight: 800; }
.ocard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: var(--pulp); font-size: 14px; color: var(--ink-2); }
.ocard__foot span { display: flex; align-items: center; gap: 6px; }
.ocard__foot .i { width: 17px; height: 17px; }

.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.address--card { background: var(--white); border: 1.5px solid var(--line); }
.address--card.is-default { border-color: var(--yolk); background: var(--yolk-pale); }
.address__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.address__act form { display: contents; }
.address__act form[data-confirm] .icon-btn { margin-inline-start: auto; }
.addr-new {
  display: grid; place-items: center; gap: 8px; min-height: 150px; border-radius: var(--r-sm);
  border: 2px dashed var(--line); background: transparent; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.addr-new:hover { border-color: var(--yolk-deep); color: var(--barn); }
.addr-new .i { width: 28px; height: 28px; }

.tickets { display: grid; }
.tickets a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tickets li:last-child a { border-bottom: 0; }
.tickets a div { display: grid; }
.tickets small { font-size: 12.5px; color: var(--ink-2); }
.tickets a:hover b { color: var(--leaf); }
.chat { display: grid; gap: 12px; margin: 8px 0 20px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 16px; display: grid; gap: 4px; font-size: 15px; line-height: 1.9; }
.msg--me { justify-self: start; background: var(--yolk-pale); border-end-start-radius: 4px; }
.msg--them { justify-self: end; background: var(--pulp); border-end-end-radius: 4px; }
.msg__who { font-size: 12.5px; font-weight: 800; color: var(--leaf); }
.msg small { font-size: 11.5px; color: var(--ink-2); }
.msg img { max-width: 220px; border-radius: 12px; margin-top: 6px; }
.chat__reply { margin-bottom: 10px; }

.upload {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-sm);
  border: 1.5px dashed var(--line); cursor: pointer; transition: border-color .2s; position: relative;
}
.upload:hover { border-color: var(--yolk-deep); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload > .i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--yolk-pale); flex: none; }
.upload span { display: grid; }
.upload small { color: var(--ink-2); font-size: 12.5px; }

/* پرسش‌های متداول */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.faq-wrap > div:first-child { display: grid; gap: 8px; justify-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s; }
.faq details[open] { border-color: var(--yolk); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; flex: none; transition: transform .25s; color: var(--leaf); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; line-height: 2; }
.faq-group + .faq-group { margin-top: 32px; }
.faq-group h2 { font-size: 20px; font-weight: 900; margin-bottom: 12px; scroll-margin-top: 100px; }
.doc .notice { margin-top: 36px; }
.search--lg { position: relative; display: flex; align-items: center; background: var(--white); max-width: 520px; margin-top: 16px; }
.search--lg input { width: 100%; }
.search__ico { display: grid; place-items: center; width: 40px; color: var(--ink-2); }

/* وبلاگ و مقاله */
.blog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.blog-bar .chips { margin: 0; }
.blog-bar .search { background: var(--white); border: 1.5px solid var(--line); }
.toc { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-md); background: var(--pulp); margin-bottom: 28px; font-size: 14.5px; }
.toc b { margin-bottom: 4px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--barn); }
.article__tags { margin-top: 24px; }
.share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--barn); background: none; cursor: pointer; }
.share button:hover { background: var(--yolk); border-color: var(--yolk); }
.share { margin-top: 28px; }
.comments { margin-top: 48px; }
.comments > h2 { font-size: 22px; font-weight: 900; }
.comments > h2 small { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.comments .review-form { margin-top: 20px; }
.prose img { border-radius: var(--r-md); margin-block: 1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }

/* خرید عمده */
.ws { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.ws__text { display: grid; gap: 14px; }
.ws__list { display: grid; gap: 16px; margin-top: 10px; }
.ws__list li { display: flex; gap: 14px; }
.ws__list .i { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--gold-grad); flex: none; }
.ws__list p { font-size: 14.5px; color: var(--ink-2); }

/* تماس */
.map-embed { grid-column: 1 / -1; border-radius: var(--r-md); overflow: hidden; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.trust { display: flex; gap: 10px; margin-top: 12px; }
.trust img { background: var(--white); border-radius: 10px; padding: 4px; }

/* چاپ */
@media print {
  .topbar, .header, .footer, .account__side, .no-print, .toast, .page-head--slim { display: none !important; }
  .account { grid-template-columns: 1fr; }
  body { background: #fff; }
  .panel { break-inside: avoid; }
}

/* ---------- واکنش‌گرای اجزای پویا ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .search--menu { display: flex; margin-top: 10px; background: var(--pulp); border-radius: 999px; padding: 4px; }
  .search--menu input { flex: 1; width: auto; }
  .umenu__drop { position: fixed; top: 116px; inset-inline: 16px; width: auto; }
  .dash-2, .ws, .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .addr-grid { grid-template-columns: 1fr; }
  .sortlinks { margin-inline-start: 0; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .track { grid-template-columns: repeat(5, 1fr); }
  .track li { font-size: 11px; }
  .track span { width: 36px; height: 36px; }
  .track li::before { top: 17px; }
  .track .i { width: 17px; height: 17px; }
  .ocard__head { gap: 10px 18px; padding: 14px 16px; }
  .ocard__head .badge { margin-inline-start: 0; }
  .msg { max-width: 92%; }
  .modal__box { padding: 18px; border-radius: var(--r-md); }
  .notice { flex-wrap: wrap; }
  .toast { bottom: 12px; border-radius: var(--r-md); }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .line__rm .line__remove { grid-column: 3; grid-row: 1; }
}
.auth__small { display: block; line-height: 1.9; }
.auth__small .i { display: inline-block; vertical-align: middle; }
.footer__credit a { color: var(--yolk); font-weight: 700; }
.footer__credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
