/* ==================================================================
   خشکبار یزدی — شیوه‌نامه‌ی اصلی قالب
   ترتیب: توکن‌ها، پایه، اجزای مشترک، بخش‌های صفحه‌ی اصلی،
          صفحه‌های داخلی، واکنش‌گرایی
   ================================================================== */

/* ----------------------------------------------------- فونت و توکن‌ها */
/* فونت محلی است تا سایت بدون اینترنت هم درست دیده شود. */
@font-face {
  font-family: 'IRANSans';
  src: url('/font/IRANSansWeb_Light.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('/font/IRANSansWeb.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('/font/IRANSansWeb_Medium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('/font/IRANSansWeb_Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* رنگ‌ها */
  --cream: #FDF7EC;
  --cream-2: #F8F0E1;
  --sand: #F1E5CF;
  --line: #E9DBC1;
  --white: #ffffff;

  --ink: #32211A;
  --ink-2: #5C4433;
  --muted: #8E7B68;

  --espresso: #3A2318;
  --cocoa: #5B3A26;

  --amber: #C9821E;
  --amber-2: #E3A63F;
  --amber-soft: #FBEBD1;
  --pistachio: #6F8C3F;
  --pistachio-soft: #EDF2DD;
  --saffron: #B5361F;
  --saffron-soft: #FBE3DC;

  /* شکل */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow-sm: 0 4px 14px rgba(90, 58, 30, .07);
  --shadow: 0 14px 34px rgba(90, 58, 30, .11);
  --shadow-lg: 0 26px 60px rgba(90, 58, 30, .17);
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------- پایه */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Vazirmatn, 'IRANSans', 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  background: var(--cream);
  background-image: url('../img/pattern.svg');
  background-size: 440px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 800;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -.2px;
}
h1 { font-size: clamp(28px, 4.4vw, 50px); }
h2 { font-size: clamp(23px, 3vw, 34px); }
h3 { font-size: clamp(17px, 2vw, 21px); }
p { margin: 0 0 14px; }

::selection { background: var(--amber-2); color: #fff; }

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

/* اسکرول‌بار */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: #D9C3A0; border-radius: 10px; border: 3px solid var(--cream-2); }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.bg-soft { background: linear-gradient(180deg, rgba(248, 240, 225, 0), var(--cream-2) 22%, var(--cream-2) 78%, rgba(248, 240, 225, 0)); }

/* --------------------------------------------------- سربرگ بخش‌ها */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.sec-head__text { max-width: 620px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.sec-head p { color: var(--muted); margin: 8px 0 0; }
.sec-head .link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--cocoa); white-space: nowrap;
  padding: 10px 4px; transition: color .2s;
}
.sec-head .link-more:hover { color: var(--amber); }
.sec-head .link-more svg { transition: transform .25s var(--ease); }
.sec-head .link-more:hover svg { transform: translateX(-4px); }

.center-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.center-head p { color: var(--muted); }

/* ------------------------------------------------------------ دکمه */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: transform .22s var(--ease), box-shadow .22s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 19px; height: 19px; }

.btn--primary {
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 130, 30, .32);
}
.btn--primary:hover { box-shadow: 0 16px 32px rgba(201, 130, 30, .42); transform: translateY(-2px); }

.btn--dark { background: var(--espresso); color: var(--cream); box-shadow: 0 10px 24px rgba(58, 35, 24, .25); }
.btn--dark:hover { background: #4b2f20; transform: translateY(-2px); }

.btn--ghost { background: #fff; color: var(--cocoa); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--amber); color: var(--amber); }

.btn--soft { background: var(--amber-soft); color: var(--amber); }
.btn--soft:hover { background: #F7DFB8; }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--lg { padding: 16px 34px; font-size: 16.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------ نشان‌ها */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}
.badge--off { background: var(--saffron); color: #fff; }
.badge--hot { background: var(--amber); color: #fff; }
.badge--new { background: var(--pistachio); color: #fff; }
.badge--special { background: var(--espresso); color: #F0C87E; }
.badge--out { background: #E6DCCB; color: var(--muted); }

/* ------------------------------------------------- نوار بالا و هدر */
.topbar {
  background: var(--espresso);
  color: #D9C7B2;
  font-size: 13px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 42px;
}
.topbar__note { display: flex; align-items: center; gap: 8px; }
.topbar__note strong { color: #F0C87E; font-weight: 700; }
.topbar__links { display: flex; align-items: center; gap: 20px; }
.topbar a { transition: color .2s; }
.topbar a:hover { color: #F0C87E; }
.topbar svg { width: 16px; height: 16px; vertical-align: -3px; }

.header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(253, 247, 236, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s;
}
.header.is-stuck { box-shadow: 0 8px 28px rgba(90, 58, 30, .1); background: rgba(253, 247, 236, .97); }
.header .container {
  display: flex; align-items: center; gap: 18px;
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark {
  width: 46px; height: 46px; border-radius: 15px;
  background: linear-gradient(140deg, var(--cocoa), var(--espresso));
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(58, 35, 24, .28);
}
.logo__mark svg { width: 30px; height: 30px; }
.logo__name { font-weight: 800; font-size: 19px; color: var(--ink); line-height: 1.4; }
.logo__sub { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 10px; }
.nav a {
  padding: 10px 14px; border-radius: 12px;
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: background .2s, color .2s;
  position: relative;
}
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a.is-active { color: var(--amber); }
.nav a.is-active::after {
  content: ''; position: absolute; inset-inline: 14px; bottom: 3px; height: 3px;
  background: var(--amber); border-radius: 3px;
}

.header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: #fff; color: var(--cocoa);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), color .2s, background .2s;
  position: relative;
}
.icon-btn:hover { color: var(--amber); transform: translateY(-2px); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn__count {
  position: absolute; top: -5px; inset-inline-start: -5px;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--saffron); color: #fff;
  font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(181, 54, 31, .4);
}
.icon-btn__count:empty, .icon-btn__count[data-empty='1'] { display: none; }
.burger { display: none; }

/* جست‌وجوی هدر */
.search {
  position: relative; flex: 1; max-width: 330px;
}
.search input {
  width: 100%; height: 46px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 14px; padding: 0 44px 0 14px;
  font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(227, 166, 63, .17); }
.search svg {
  position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--muted); pointer-events: none;
}
.search__results {
  position: absolute; top: calc(100% + 8px); inset-inline: 0;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; z-index: 30; max-height: 360px; overflow: auto;
}
.search__results.is-open { display: block; }
.search__results a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 12px; transition: background .15s;
}
.search__results a:hover { background: var(--cream-2); }
.search__results img { width: 46px; height: 46px; border-radius: 10px; background: var(--sand); }
.search__results b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.search__results span { font-size: 12.5px; color: var(--amber); font-weight: 700; }
.search__empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* منوی موبایل */
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; width: min(320px, 86vw);
  background: var(--cream); z-index: 95;
  transform: translateX(105%);
  transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 50px rgba(58, 35, 24, .2);
}
[dir='rtl'] .drawer { transform: translateX(-105%); }
.drawer.is-open { transform: translateX(0) !important; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer__body { padding: 14px; overflow: auto; flex: 1; }
.drawer__body a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; border-radius: 14px; font-weight: 600;
  transition: background .18s;
}
.drawer__body a:hover, .drawer__body a.is-active { background: var(--sand); color: var(--ink); }
.drawer__foot { padding: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__foot a { font-size: 14px; color: var(--muted); }

.backdrop {
  position: fixed; inset: 0; background: rgba(40, 24, 15, .45);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: .3s; z-index: 90;
}
.backdrop.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------- سبد کناری */
.cart-panel {
  position: fixed; inset-block: 0; inset-inline-start: 0; width: min(390px, 92vw);
  background: var(--cream); z-index: 96;
  transform: translateX(-105%);
  transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: 20px 0 50px rgba(58, 35, 24, .2);
}
[dir='rtl'] .cart-panel { transform: translateX(105%); }
.cart-panel.is-open { transform: translateX(0) !important; }
.cart-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cart-panel__head h3 { font-size: 17px; }
.cart-panel__body { flex: 1; overflow: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.cart-panel__foot { padding: 18px; border-top: 1px solid var(--line); background: #fff; }
.cart-panel__total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 800; color: var(--ink); margin-bottom: 14px;
}
.cart-panel__total b { font-size: 20px; color: var(--amber); }

.mini-item {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: var(--r); padding: 10px;
  box-shadow: var(--shadow-sm);
}
.mini-item img { width: 62px; height: 62px; border-radius: 12px; background: var(--sand); }
.mini-item__name { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.7; }
.mini-item__meta { font-size: 12.5px; color: var(--muted); }
.mini-item__price { font-weight: 700; color: var(--amber); font-size: 13.5px; }
.mini-item__del { color: var(--muted); padding: 6px; border-radius: 10px; transition: .2s; }
.mini-item__del:hover { color: var(--saffron); background: var(--saffron-soft); }
.mini-item__del svg { width: 17px; height: 17px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state svg { width: 72px; height: 72px; opacity: .35; margin: 0 auto 14px; }

/* ------------------------------------------------------------ هیرو */
.hero { position: relative; overflow: hidden; padding: 30px 0 10px; }
.hero::before {
  content: ''; position: absolute; top: -220px; inset-inline-start: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 166, 63, .22), transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -260px; inset-inline-end: -180px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 140, 63, .16), transparent 68%);
  pointer-events: none;
}
.hero__slides { position: relative; }
.hero__slide {
  display: none;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
  min-height: 460px;
}
.hero__slide.is-active { display: grid; }
.hero__text > * { animation: rise .7s var(--ease) both; }
.hero__text > *:nth-child(2) { animation-delay: .07s; }
.hero__text > *:nth-child(3) { animation-delay: .14s; }
.hero__text > *:nth-child(4) { animation-delay: .21s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

.hero__title { margin-bottom: 14px; }
.hero__title em { font-style: normal; color: var(--amber); position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 4px; height: 10px;
  background: var(--amber-soft); border-radius: 6px; z-index: -1;
}
.hero__lead { font-size: 17px; color: var(--ink-2); max-width: 500px; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero__stats b { display: block; font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.hero__stats span { font-size: 13.5px; color: var(--muted); }

.hero__art { position: relative; display: grid; place-items: center; }
.hero__art img {
  width: min(100%, 460px); border-radius: 50%;
  filter: drop-shadow(0 30px 50px rgba(90, 58, 30, .18));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-16px); } }
.hero__ring {
  position: absolute; width: min(94%, 440px); aspect-ratio: 1;
  border: 2px dashed rgba(201, 130, 30, .35); border-radius: 50%;
  animation: spin 46s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__chip {
  position: absolute; background: #fff; border-radius: 16px;
  padding: 10px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.hero__chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.hero__chip i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.hero__chip svg { width: 19px; height: 19px; }
.hero__chip--1 { top: 12%; inset-inline-start: -8px; animation-delay: .4s; }
.hero__chip--1 i { background: var(--pistachio-soft); color: var(--pistachio); }
.hero__chip--2 { bottom: 14%; inset-inline-end: -4px; animation-delay: 1.4s; }
.hero__chip--2 i { background: var(--amber-soft); color: var(--amber); }

.hero__dots { display: flex; gap: 8px; justify-content: center; padding: 22px 0 6px; }
.hero__dots button {
  width: 10px; height: 10px; border-radius: 999px; background: #DFCCAD;
  transition: width .3s var(--ease), background .3s;
}
.hero__dots button.is-active { width: 30px; background: var(--amber); }

/* ------------------------------------------------------- نوار اعتماد */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: #fff; border-radius: var(--r-lg); padding: 10px;
  box-shadow: var(--shadow); margin-top: 6px;
}
.trust__item { display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: var(--r); transition: background .25s; }
.trust__item:hover { background: var(--cream-2); }
.trust__item i {
  width: 48px; height: 48px; border-radius: 15px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber);
}
.trust__item:nth-child(2) i { background: var(--pistachio-soft); color: var(--pistachio); }
.trust__item:nth-child(3) i { background: var(--saffron-soft); color: var(--saffron); }
.trust__item:nth-child(4) i { background: #E7E3F3; color: #6A5B9A; }
.trust__item svg { width: 24px; height: 24px; }
.trust__item b { display: block; font-size: 14.5px; color: var(--ink); line-height: 1.7; }
.trust__item span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------- دسته‌بندی‌ها */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--sand);
  transition: transform .3s var(--ease), box-shadow .3s;
  aspect-ratio: 16 / 11;
  display: block;
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat:hover img { transform: scale(1.06); }
.cat__body {
  position: absolute; inset-inline: 0; bottom: 0; padding: 18px;
  background: linear-gradient(0deg, rgba(40, 24, 15, .78), rgba(40, 24, 15, .25) 60%, transparent);
  color: #fff;
}
.cat__body b { font-size: 17px; font-weight: 800; display: block; }
.cat__body span { font-size: 12.5px; opacity: .85; }
.cat__count {
  position: absolute; top: 14px; inset-inline-end: 14px;
  background: rgba(255, 255, 255, .92); color: var(--cocoa);
  border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700;
}

/* ---------------------------------------------------- کارت محصول */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.card__media {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--cream-2); aspect-ratio: 1; margin-bottom: 14px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card__media img { transform: scale(1.07) rotate(-1.5deg); }
.card__badges { position: absolute; top: 10px; inset-inline-start: 10px; display: grid; gap: 6px; justify-items: start; }
.card__fav {
  position: absolute; top: 10px; inset-inline-end: 10px;
  width: 36px; height: 36px; border-radius: 12px;
  background: rgba(255, 255, 255, .9); color: var(--muted);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-6px);
  transition: .25s var(--ease);
}
.card:hover .card__fav { opacity: 1; transform: none; }
.card__fav:hover { color: var(--saffron); }
.card__fav.is-on { color: var(--saffron); opacity: 1; transform: none; }
.card__fav svg { width: 18px; height: 18px; }

.card__cat { font-size: 12px; color: var(--pistachio); font-weight: 700; }
.card__name {
  font-size: 15.5px; font-weight: 700; color: var(--ink);
  line-height: 1.8; margin: 2px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 56px;
}
.card__name:hover { color: var(--amber); }
.card__rate { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.stars { display: inline-flex; gap: 2px; color: var(--amber-2); }
.stars svg { width: 14px; height: 14px; }
.stars .is-off { color: #E2D6C1; }

.card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { line-height: 1.5; }
.price del { display: block; font-size: 12.5px; color: var(--muted); }
.price b { font-size: 18px; font-weight: 800; color: var(--ink); }
.price span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.price--lg b { font-size: 30px; color: var(--amber); }

.card__add {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: var(--amber-soft); color: var(--amber);
  display: grid; place-items: center;
  transition: .25s var(--ease);
}
.card__add:hover { background: var(--amber); color: #fff; transform: rotate(-8deg) scale(1.06); }
.card__add svg { width: 21px; height: 21px; }
.card--out .card__media { filter: grayscale(.5) opacity(.8); }

/* اسلایدر افقی محصولات */
.rail { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(248px, 1fr);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 16px; scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__nav { display: flex; gap: 8px; }
.rail__nav button {
  width: 42px; height: 42px; border-radius: 13px; background: #fff;
  color: var(--cocoa); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; transition: .22s;
}
.rail__nav button:hover { background: var(--amber); color: #fff; }
.rail__nav svg { width: 19px; height: 19px; }

/* --------------------------------------------------- بنر پیشنهاد ویژه */
.offer {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--espresso), #54301D 55%, #6B3D20);
  color: var(--cream);
  padding: 46px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
}
.offer::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/pattern.svg') repeat; background-size: 260px;
  opacity: .5; filter: invert(1);
}
.offer > * { position: relative; }
.offer h2 { color: #fff; margin-bottom: 12px; }
.offer p { color: #E2D1BC; max-width: 440px; }
.offer .eyebrow { background: rgba(240, 200, 126, .16); color: #F0C87E; }
.offer__timer { display: flex; gap: 10px; margin: 24px 0 26px; }
.offer__timer div {
  background: rgba(255, 255, 255, .11); backdrop-filter: blur(4px);
  border-radius: 16px; padding: 10px 6px; min-width: 70px; text-align: center;
}
.offer__timer b { display: block; font-size: 25px; font-weight: 800; color: #fff; line-height: 1.5; font-variant-numeric: tabular-nums; }
.offer__timer span { font-size: 11.5px; color: #D5C1A8; }
.offer__art { display: grid; place-items: center; }
.offer__art img { width: min(100%, 330px); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.offer__tag {
  position: absolute; top: 10px; inset-inline-start: 10px;
  background: var(--saffron); color: #fff;
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; align-content: center;
  font-weight: 800; font-size: 20px; line-height: 1.3;
  box-shadow: 0 14px 30px rgba(181, 54, 31, .45);
  transform: rotate(-10deg);
}
.offer__tag small { display: block; font-size: 11px; font-weight: 600; }

/* ------------------------------------------------------------ زبانه‌ها */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button {
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: #fff; color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: .22s;
}
.tabs button:hover { color: var(--amber); }
.tabs button.is-active { background: var(--espresso); color: var(--cream); }

/* ------------------------------------------------------- بخش درباره */
.about-band { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-band__art { position: relative; }
.about-band__art img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.about-band__art::after {
  content: ''; position: absolute; inset-inline-end: -16px; bottom: -16px;
  width: 140px; height: 140px; border-radius: var(--r-lg);
  border: 3px solid var(--amber); z-index: -1;
}
.about-band ul { display: grid; gap: 12px; margin: 22px 0 28px; }
.about-band li { display: flex; align-items: flex-start; gap: 11px; }
.about-band li i {
  width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0; margin-top: 5px;
  background: var(--pistachio-soft); color: var(--pistachio);
  display: grid; place-items: center;
}
.about-band li svg { width: 15px; height: 15px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border-radius: var(--r-lg); padding: 26px 20px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease);
}
.stat:hover { transform: translateY(-5px); }
.stat b { display: block; font-size: 34px; font-weight: 800; color: var(--amber); line-height: 1.4; }
.stat span { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------- نظر مشتری */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: #fff; border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-sm); position: relative;
}
.quote::before {
  content: '”'; position: absolute; top: 2px; inset-inline-end: 22px;
  font-size: 80px; color: var(--amber-soft); line-height: 1; font-family: Georgia, serif;
}
.quote p { position: relative; color: var(--ink-2); }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(140deg, var(--amber-2), var(--amber));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.quote__who b { display: block; color: var(--ink); font-size: 14.5px; }
.quote__who span { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------- خبرنامه */
.newsletter {
  background: linear-gradient(135deg, var(--pistachio), #55702F);
  border-radius: var(--r-xl); padding: 44px;
  display: grid; grid-template-columns: 1fr .85fr; gap: 30px; align-items: center;
  color: #fff; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset-inline-end: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.newsletter > * { position: relative; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, .85); margin: 8px 0 0; }
.newsletter form { display: flex; gap: 10px; background: #fff; border-radius: 999px; padding: 7px; }
.newsletter input {
  flex: 1; border: 0; background: none; padding: 0 18px; font-size: 14.5px; min-width: 0;
}
.newsletter input:focus { outline: none; }

/* ------------------------------------------------------------- فوتر */
.footer { background: var(--espresso); color: #C9B49E; margin-top: 70px; position: relative; }
.footer::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/pattern.svg') repeat; background-size: 300px;
  opacity: .45; filter: invert(1); pointer-events: none;
}
.footer > * { position: relative; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 38px; padding: 58px 0 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #F0C87E; }
.footer__links { display: grid; gap: 11px; font-size: 14px; }
.footer__about p { font-size: 14px; line-height: 2.1; color: #BBA68F; }
.footer .logo__name { color: #fff; }
.footer .logo__sub { color: #A08D78; }
.footer__contact li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; margin-bottom: 13px; line-height: 2; }
.footer__contact svg { width: 19px; height: 19px; color: #F0C87E; flex-shrink: 0; margin-top: 7px; }
.socials { display: flex; gap: 9px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 13px;
  background: rgba(255, 255, 255, .08); display: grid; place-items: center;
  transition: .25s var(--ease);
}
.socials a:hover { background: var(--amber); color: #fff; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; flex-wrap: wrap;
}
.footer__pay { display: flex; gap: 10px; align-items: center; }
.footer__pay span {
  background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 6px 12px; font-size: 12px;
}

/* ------------------------------------------------- سربرگ صفحه‌های داخلی */
.page-head {
  background: linear-gradient(180deg, var(--cream-2), rgba(248, 240, 225, 0));
  padding: 34px 0 30px; text-align: center; position: relative;
}
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 620px; margin-inline: auto; }
.crumbs {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap;
}
.crumbs a:hover { color: var(--amber); }
.crumbs span { opacity: .5; }

/* ------------------------------------------------------- صفحه‌ی فروشگاه */
.shop { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.filters {
  background: #fff; border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px);
}
.filters__group + .filters__group { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.filters h4 { font-size: 15px; margin-bottom: 14px; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  cursor: pointer; font-size: 14px; transition: color .2s;
}
.check:hover { color: var(--amber); }
.check input { width: 18px; height: 18px; accent-color: var(--amber); cursor: pointer; }
.check span.count { margin-inline-start: auto; font-size: 12px; color: var(--muted); }

.range { margin-top: 6px; }
.range input[type='range'] { width: 100%; margin: 0; accent-color: var(--amber); }
.range__vals { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border-radius: var(--r); padding: 12px 18px;
  box-shadow: var(--shadow-sm); margin-bottom: 20px; flex-wrap: wrap;
}
.toolbar__count { font-size: 14px; color: var(--muted); }
.toolbar__count b { color: var(--ink); }
.toolbar select {
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px;
  background: var(--cream); font-size: 14px; font-weight: 600;
}
.toolbar select:focus { outline: none; border-color: var(--amber); }
.filters-toggle { display: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--amber-soft); color: var(--amber);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700;
}
.chip button { color: inherit; display: grid; place-items: center; opacity: .7; }
.chip button:hover { opacity: 1; }
.chip svg { width: 14px; height: 14px; }

/* ------------------------------------------------- صفحه‌ی جزئیات محصول */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pd__gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.pd__main {
  background: #fff; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.pd__main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd__thumbs button {
  width: 86px; aspect-ratio: 1; border-radius: var(--r); overflow: hidden;
  box-shadow: inset 0 0 0 2px transparent, var(--shadow-sm); background: #fff;
  transition: .22s;
}
.pd__thumbs button.is-active { box-shadow: inset 0 0 0 3px var(--amber), var(--shadow-sm); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd__info h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.pd__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.pd__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #D8C7AD; }
.pd__short { font-size: 16px; color: var(--ink-2); }
.pd__box {
  background: #fff; border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-sm); margin: 22px 0;
}
.pd__price { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pd__sizes { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 6px; }
.pd__sizes button {
  padding: 10px 18px; border-radius: 14px; font-weight: 700; font-size: 14px;
  background: var(--cream-2); color: var(--ink-2);
  box-shadow: inset 0 0 0 2px transparent; transition: .22s;
}
.pd__sizes button:hover { color: var(--amber); }
.pd__sizes button.is-active { background: #fff; color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber); }
.pd__buy { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }

.qty { display: flex; align-items: center; background: var(--cream-2); border-radius: 999px; padding: 5px; }
.qty button {
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--cocoa);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: .2s; font-size: 18px; font-weight: 700;
}
.qty button:hover { background: var(--amber); color: #fff; }
.qty input {
  width: 56px; text-align: center; border: 0; background: none; font-weight: 800; font-size: 16px;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { outline: none; }

.pd__notes { display: grid; gap: 10px; margin-top: 4px; }
.pd__notes li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.pd__notes svg { width: 18px; height: 18px; color: var(--pistachio); flex-shrink: 0; }

.pd__tabs { margin-top: 20px; }
.pd__tabnav { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.pd__tabnav button {
  padding: 12px 20px; font-weight: 700; color: var(--muted); position: relative; transition: color .2s;
}
.pd__tabnav button:hover { color: var(--ink); }
.pd__tabnav button.is-active { color: var(--amber); }
.pd__tabnav button.is-active::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--amber);
}
.pd__panel { display: none; animation: rise .4s var(--ease) both; }
.pd__panel.is-active { display: block; }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { color: var(--muted); width: 200px; background: var(--cream-2); font-weight: 600; }

.review { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

/* ----------------------------------------------------- صفحه‌ی سبد خرید */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 26px; align-items: start; }
.cart-list { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.cart-row {
  display: grid; grid-template-columns: 96px 1fr auto auto auto;
  gap: 18px; align-items: center; padding: 18px;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 96px; height: 96px; border-radius: var(--r); background: var(--cream-2); }
.cart-row__name { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.cart-row__meta { font-size: 13px; color: var(--muted); }
.cart-row__price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.cart-row__del { color: var(--muted); padding: 8px; border-radius: 10px; transition: .2s; }
.cart-row__del:hover { color: var(--saffron); background: var(--saffron-soft); }
.cart-row__del svg { width: 19px; height: 19px; }

.summary { background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { font-size: 17px; margin-bottom: 18px; }
.summary__row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; }
.summary__row span { color: var(--muted); }
.summary__row--total {
  border-top: 2px dashed var(--line); margin-top: 12px; padding-top: 16px;
  font-weight: 800; font-size: 16px; color: var(--ink);
}
.summary__row--total b { font-size: 22px; color: var(--amber); }
.summary__row--off { color: var(--pistachio); }
.coupon { display: flex; gap: 8px; margin: 16px 0; }
.coupon input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; background: var(--cream); font-size: 14px;
}
.coupon input:focus { outline: none; border-color: var(--amber); }
.ship-note {
  background: var(--pistachio-soft); color: #4C6629; border-radius: var(--r);
  padding: 12px 16px; font-size: 13.5px; margin-bottom: 16px; display: flex; gap: 10px;
}
.ship-note svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 6px; }
.ship-bar { height: 7px; border-radius: 99px; background: #E6DCCB; overflow: hidden; margin-top: 8px; }
.ship-bar div { height: 100%; background: linear-gradient(90deg, var(--pistachio), #9CB767); border-radius: 99px; transition: width .5s var(--ease); }

/* ------------------------------------------------------ درباره و تماس */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values--4 { grid-template-columns: repeat(4, 1fr); }
.offer--cta { grid-template-columns: 1fr auto; }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.value {
  background: #fff; border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease);
}
.value:hover { transform: translateY(-6px); }
.value i {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber); margin-bottom: 16px;
}
.value:nth-child(2) i { background: var(--pistachio-soft); color: var(--pistachio); }
.value:nth-child(3) i { background: var(--saffron-soft); color: var(--saffron); }
.value svg { width: 27px; height: 27px; }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; font-size: 14.5px; }

.timeline { position: relative; padding-inline-start: 28px; }
.timeline::before {
  content: ''; position: absolute; inset-block: 10px; inset-inline-start: 5px;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li::before {
  content: ''; position: absolute; inset-inline-start: -28px; top: 11px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft);
}
.timeline b { display: block; color: var(--ink); font-size: 15.5px; }
.timeline span { color: var(--amber); font-weight: 700; font-size: 13px; }
.timeline p { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: #fff; border-radius: var(--r-lg); padding: 26px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); }
.contact-card i {
  width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber); margin: 0 auto 14px;
}
.contact-card svg { width: 26px; height: 26px; }
.contact-card b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.contact-card p { color: var(--muted); margin: 0; font-size: 14.5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  padding: 13px 16px; font-size: 14.5px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 2; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(227, 166, 63, .15);
}
.field.has-error input, .field.has-error textarea { border-color: var(--saffron); }
.field__err { font-size: 12.5px; color: var(--saffron); display: none; }
.field.has-error .field__err { display: block; }

.accordion { display: grid; gap: 12px; }
.acc {
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden;
}
.acc__q {
  width: 100%; text-align: start; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-weight: 700; color: var(--ink); font-size: 15px;
}
.acc__q i {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  background: var(--amber-soft); color: var(--amber);
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.acc__q svg { width: 16px; height: 16px; }
.acc.is-open .acc__q i { transform: rotate(45deg); background: var(--amber); color: #fff; }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc__a p { padding: 0 22px 20px; margin: 0; color: var(--muted); font-size: 14.5px; }

.map-wrap { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap img { width: 100%; }

/* ------------------------------------------------------------ پیام‌ها */
.toast-wrap {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 120;
  display: grid; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--r); padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease) both;
  font-weight: 600; color: var(--ink); font-size: 14.5px;
  border-inline-start: 4px solid var(--pistachio);
}
.toast--warn { border-inline-start-color: var(--amber); }
.toast--err { border-inline-start-color: var(--saffron); }
.toast i { color: var(--pistachio); display: grid; place-items: center; }
.toast--warn i { color: var(--amber); }
.toast--err i { color: var(--saffron); }
.toast svg { width: 21px; height: 21px; }
.toast.is-out { animation: toastOut .3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ------------------------------------------------- انیمیشن ظاهر شدن */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------ واکنش‌گرایی */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .search { max-width: 220px; }
  /* نام فروشگاه بلند است؛ در این عرض، زیرنویس لوگو جا را به منو و جست‌وجو می‌دهد */
  .header .logo__sub { display: none; }
  .header .logo__name { font-size: 17.5px; }
  .nav a { padding: 10px 10px; font-size: 14px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .nav, .search { display: none; }
  .burger { display: grid; }
  .hero__slide { grid-template-columns: 1fr; text-align: center; gap: 24px; padding-top: 10px; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__art { order: -1; }
  .hero__art img { width: min(74%, 340px); }
  .hero__chip { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .offer { grid-template-columns: 1fr; text-align: center; padding: 34px 24px; }
  .offer p { margin-inline: auto; }
  .offer__timer { justify-content: center; }
  .offer__art { order: -1; }
  .about-band { grid-template-columns: 1fr; gap: 30px; }
  .about-band__art::after { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .pd { grid-template-columns: 1fr; gap: 28px; }
  .pd__gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .shop { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset-block: 0; inset-inline-end: 0; width: min(330px, 88vw);
    z-index: 95; border-radius: 0; overflow: auto;
    transform: translateX(105%); transition: transform .35s var(--ease);
  }
  [dir='rtl'] .filters { transform: translateX(-105%); }
  .filters.is-open { transform: translateX(0) !important; }
  .filters-toggle { display: inline-flex; }
  .values, .contact-grid, .stats { grid-template-columns: 1fr 1fr; }
  .values--4 { grid-template-columns: 1fr 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .offer--cta { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .section { padding: 48px 0; }
  .container { width: min(var(--container), 100% - 28px); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat__body { padding: 13px; }
  .cat__body b { font-size: 14.5px; }
  .cat__count { display: none; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
  .card { padding: 10px; border-radius: var(--r); }
  .card__name { font-size: 14px; min-height: 50px; }
  .price b { font-size: 16px; }
  .card__add { width: 40px; height: 40px; }
  .rail__track { grid-auto-columns: minmax(200px, 1fr); gap: 12px; }
  .trust { grid-template-columns: 1fr; padding: 6px; }
  .trust__item { padding: 12px; }
  .stats, .values, .values--4, .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .offer__timer div { min-width: 60px; }
  .offer__tag { width: 70px; height: 70px; font-size: 17px; }
  .footer__top { grid-template-columns: 1fr; padding: 40px 0 30px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cart-row { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .cart-row img { width: 72px; height: 72px; }
  .cart-row .qty { grid-column: 2 / 3; }
  .cart-row__price { grid-column: 3 / 4; }
  .pd__thumbs button { width: 66px; }
  .toast-wrap { inset-inline: 16px; bottom: 16px; }
  .topbar__links { display: none; }
  .topbar .container { justify-content: center; }
}

/* ------------------------------------------------------- ارزش غذایی */
.nut { max-width: 900px; }
.nut__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.nut__tile {
  background: #fff; border-radius: var(--r); padding: 20px 16px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.nut__tile b { display: block; font-size: 26px; color: var(--amber); line-height: 1.3; }
.nut__tile span { font-size: 13px; color: var(--muted); }
.nut__tile small { display: block; font-size: 11.5px; color: var(--muted); opacity: .8; }
.nut__tile:nth-child(2) b { color: var(--pistachio); }
.nut__tile:nth-child(3) b { color: var(--cocoa); }
.nut__tile:nth-child(4) b { color: var(--saffron); }

.nut__bars { background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); }
.nut__bar + .nut__bar { margin-top: 16px; }
.nut__bar > span {
  display: flex; justify-content: space-between; font-size: 14px;
  color: var(--ink-2); margin-bottom: 7px;
}
.nut__bar > span b { color: var(--ink); }
.nut__track { height: 9px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.nut__track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--amber-2), var(--amber)); }
.nut__bar--green .nut__track i { background: linear-gradient(90deg, #9CB767, var(--pistachio)); }
.nut__note {
  display: flex; gap: 11px; background: var(--pistachio-soft); color: #4C6629;
  border-radius: var(--r); padding: 15px 18px; font-size: 14px; margin-top: 18px;
}
.nut__note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.nut__hint { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* ------------------------------------------------------------- وبلاگ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex;
  flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.post__cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-2); }
.post__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__cover img { transform: scale(1.06); }
.post__cat {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  background: rgba(255, 255, 255, .93); color: var(--cocoa); font-size: 12.5px; font-weight: 700;
  padding: 7px 13px; border-radius: 99px; backdrop-filter: blur(4px);
}
.post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.post__meta span { display: inline-flex; align-items: center; gap: 5px; }
.post__meta svg { width: 15px; height: 15px; }
.post__title { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.6; margin-bottom: 10px; }
a.post__title:hover { color: var(--amber); }
.post__excerpt { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.post__more { display: inline-flex; align-items: center; gap: 7px; color: var(--amber); font-weight: 700; font-size: 14px; }
.post__more svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.post:hover .post__more svg { transform: translateX(5px); }
[dir='rtl'] .post:hover .post__more svg { transform: translateX(-5px); }

.post--lead { grid-column: span 2; flex-direction: row; }
.post--lead .post__cover { aspect-ratio: auto; width: 46%; flex-shrink: 0; }
.post--lead .post__body { padding: 30px; }
.post--lead .post__title { font-size: 25px; }
.post--lead .post__excerpt { font-size: 15.5px; }

/* ------------------------------------------------------ صفحه‌ی مقاله */
.article { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.article__main { background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.article__hero { aspect-ratio: 16 / 7; background: var(--cream-2); }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__inner { padding: 34px; }
.article h1 { font-size: 32px; line-height: 1.55; margin-bottom: 16px; }
.article__by { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article__by i {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber); font-weight: 800; font-size: 18px; font-style: normal;
}
.article__by b { display: block; color: var(--ink); font-size: 15px; }
.article__by span { font-size: 12.5px; color: var(--muted); }
.article__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.article__body > p { color: var(--ink-2); font-size: 16px; line-height: 2.2; margin: 0 0 18px; }
.article__body h2 { font-size: 21px; margin: 32px 0 14px; display: flex; align-items: center; gap: 11px; }
.article__body h2::before {
  content: ''; width: 7px; height: 22px; border-radius: 99px; flex-shrink: 0;
  background: linear-gradient(var(--amber-2), var(--amber));
}
.article__body ul { display: grid; gap: 11px; margin: 0 0 20px; }
.article__body ul li { display: flex; gap: 11px; color: var(--ink-2); font-size: 15.5px; line-height: 1.95; }
.article__body ul li::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 11px;
  background: var(--pistachio); box-shadow: 0 0 0 4px var(--pistachio-soft);
}
.article__body blockquote {
  margin: 26px 0; padding: 22px 26px; border-radius: var(--r);
  background: var(--amber-soft); color: var(--cocoa); font-size: 16.5px; font-weight: 600;
  line-height: 2; border-inline-start: 5px solid var(--amber);
}
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.tag {
  background: var(--cream-2); color: var(--ink-2); font-size: 13px; font-weight: 600;
  padding: 8px 15px; border-radius: 99px; transition: .2s;
}
a.tag:hover { background: var(--amber); color: #fff; }

.side-card { background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.side-card h3 { font-size: 16px; margin-bottom: 16px; }
.side-list { display: grid; gap: 16px; }
.side-list a { display: flex; gap: 12px; align-items: flex-start; }
.side-list img { width: 72px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--cream-2); flex-shrink: 0; }
.side-list b { display: block; font-size: 14px; color: var(--ink); font-weight: 700; line-height: 1.7; }
.side-list span { font-size: 12px; color: var(--muted); }
.side-list a:hover b { color: var(--amber); }
.side-prod { display: grid; gap: 14px; }
.side-prod a { display: flex; gap: 12px; align-items: center; }
.side-prod img { width: 58px; height: 58px; border-radius: 12px; background: var(--cream-2); flex-shrink: 0; }
.side-prod b { display: block; font-size: 14px; color: var(--ink); line-height: 1.7; }
.side-prod span { font-size: 13px; color: var(--amber); font-weight: 700; }
.side-prod a:hover b { color: var(--amber); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.post-nav a {
  background: #fff; border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px; transition: .25s;
}
.post-nav a:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-nav svg { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; }
.post-nav span { display: block; font-size: 12px; color: var(--muted); }
.post-nav b { font-size: 14.5px; color: var(--ink); font-weight: 700; line-height: 1.6; }
.post-nav a:last-child { text-align: end; flex-direction: row-reverse; }

/* ------------------------------------------------- صفحه‌ی تسویه‌حساب */
.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.steps__i { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.steps__i i {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-2); color: var(--muted); font-size: 14px; font-style: normal;
}
.steps__i.is-done i { background: var(--pistachio); color: #fff; }
.steps__i.is-done { color: var(--pistachio); }
.steps__i.is-now i { background: var(--amber); color: #fff; box-shadow: 0 0 0 5px var(--amber-soft); }
.steps__i.is-now { color: var(--ink); }
.steps__line { flex: 1; min-width: 24px; height: 2px; background: var(--line); }
.steps__i svg { width: 17px; height: 17px; }

.co-box { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.co-box > h3 { font-size: 17px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.co-box > h3 i {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber);
}
.co-box > h3 svg { width: 17px; height: 17px; }

.picks { display: grid; gap: 12px; }
.picks--2 { grid-template-columns: 1fr 1fr; }
.pick {
  display: flex; gap: 13px; align-items: flex-start; cursor: pointer;
  border: 1.6px solid var(--line); border-radius: var(--r); padding: 16px 18px;
  transition: border-color .2s, background .2s; background: var(--cream);
}
.pick:hover { border-color: var(--amber-2); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__dot {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line);
  flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; transition: .2s;
}
.pick__dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); transform: scale(0); transition: transform .2s var(--ease); }
.pick input:checked ~ .pick__dot { border-color: var(--amber); }
.pick input:checked ~ .pick__dot::after { transform: scale(1); }
.pick:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.pick b { display: block; color: var(--ink); font-size: 14.5px; }
.pick span { font-size: 13px; color: var(--muted); }
.pick em { font-style: normal; color: var(--pistachio); font-weight: 700; font-size: 13px; }

.co-items { display: grid; gap: 14px; }
.co-item { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.co-item img { width: 54px; height: 54px; border-radius: 12px; background: var(--cream-2); flex-shrink: 0; }
.co-item b { display: block; color: var(--ink); font-size: 14px; font-weight: 700; }
.co-item span { font-size: 12.5px; color: var(--muted); }
.co-item strong { margin-inline-start: auto; white-space: nowrap; color: var(--ink); }

.co-done { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: 56px 28px; text-align: center; }
.co-done__mark {
  width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; background: var(--pistachio-soft); color: var(--pistachio);
  animation: pop .5s var(--ease) both;
}
.co-done__mark svg { width: 42px; height: 42px; }
.co-done h2 { margin-bottom: 10px; }
.co-done p { color: var(--muted); max-width: 520px; margin: 0 auto 10px; }
.co-code {
  display: inline-flex; gap: 10px; align-items: center; margin: 18px 0 26px;
  background: var(--cream-2); border: 1.5px dashed var(--line); border-radius: var(--r);
  padding: 14px 24px; font-weight: 800; color: var(--ink); font-size: 17px;
}
.co-code span { font-size: 13px; font-weight: 600; color: var(--muted); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ---------------------------------------- واکنش‌گرایی بخش‌های تازه */
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post--lead { grid-column: span 2; }
}

@media (max-width: 980px) {
  .article { grid-template-columns: 1fr; }
  .post--lead { flex-direction: column; }
  .post--lead .post__cover { width: 100%; aspect-ratio: 16 / 9; }
  .post--lead .post__body { padding: 22px; }
  .post--lead .post__title { font-size: 20px; }
  .nut__tiles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .post--lead { grid-column: span 1; }
  .article__inner { padding: 22px 18px; }
  .article h1 { font-size: 23px; }
  .article__body > p { font-size: 15px; line-height: 2.1; }
  .article__body blockquote { padding: 18px; font-size: 15px; }
  .post-nav { grid-template-columns: 1fr; }
  .picks--2 { grid-template-columns: 1fr; }
  .co-box { padding: 20px 18px; }
  .steps__i span { display: none; }
  .steps { justify-content: center; }
}

/* ------------------------------------ هدر در گوشی‌های باریک
   لوگوی کامل کنار سه دکمه‌ی کناری در ۳۷۵ پیکسل جا نمی‌شد و نوار
   افقی می‌ساخت؛ این‌جا شعار زیر لوگو حذف و خود لوگو جمع‌شدنی می‌شود. */
@media (max-width: 700px) {
  .header .container { gap: 10px; }
  .logo { flex-shrink: 1; min-width: 0; }
  .header .logo__sub { display: none; }
  .logo__name { font-size: 17px; white-space: nowrap; }
  .header .logo__mark { width: 42px; height: 42px; border-radius: 13px; }
  .header .logo__mark svg { width: 26px; height: 26px; }
  .header__actions { gap: 6px; }
  .topbar__note { text-align: center; }
}

/* ==================================================================
   افزوده‌های برنامه‌ی سرور
   چیزهایی که قالب ایستا لازم نداشت: پیام‌های سرور، صفحه‌بندی،
   جدول‌های حساب کاربری و نشان وضعیت سفارش.
   ================================================================== */

/* ------------------------------------------------------ پیام سرور */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 18px;
  font-size: 14.5px; font-weight: 600;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.alert--ok { background: var(--pistachio-soft); color: #4C6329; }
.alert--error { background: var(--saffron-soft); color: var(--saffron); }
.alert--info { background: var(--amber-soft); color: #8A5A10; }

/* خطای اعتبارسنجی سمت سرور */
.field .text-danger, .val-err { font-size: 12.5px; color: var(--saffron); }
.field input.input-validation-error,
.field textarea.input-validation-error,
.field select.input-validation-error { border-color: var(--saffron); }
.validation-summary-errors ul { margin: 0; padding: 0; }

/* ------------------------------------------------------- صفحه‌بندی */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; font-size: 14px;
  transition: all .2s var(--ease);
}
.pager a:hover { color: var(--amber); transform: translateY(-2px); }
.pager .is-current { background: var(--amber); color: #fff; }
.pager .is-disabled { opacity: .45; pointer-events: none; }

/* ----------------------------------------------- جدول‌های داده‌ای */
.table-wrap { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 14px 16px; text-align: start; white-space: nowrap; }
.table th { background: var(--cream-2); color: var(--ink); font-weight: 800; font-size: 13.5px; }
.table tbody tr + tr td { border-top: 1px solid var(--line); }
.table tbody tr:hover td { background: #FCF8F0; }
.table td.wrap { white-space: normal; min-width: 220px; }

/* ------------------------------------------- نشان وضعیت سفارش‌ها */
.badge--ok { background: var(--pistachio); color: #fff; }
.badge--info { background: #3E6E8E; color: #fff; }
.badge--warn { background: var(--amber); color: #fff; }
.badge--danger { background: var(--saffron); color: #fff; }
.badge--muted { background: #E6DCCB; color: var(--muted); }

/* -------------------------------------------------- حساب کاربری */
.auth { max-width: 460px; margin-inline: auto; background: #fff; border-radius: var(--r-xl);
  padding: 34px 30px; box-shadow: var(--shadow); }
.auth h1 { font-size: 26px; margin-bottom: 6px; }
.auth p.auth__lead { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth .form-grid { grid-template-columns: 1fr; }
.auth__foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }

.account { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.account__nav { background: #fff; border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm);
  display: grid; gap: 4px; position: sticky; top: 96px; }
.account__nav a, .account__nav button {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  font-size: 14.5px; font-weight: 700; color: var(--ink-2); text-align: start; width: 100%;
}
.account__nav a:hover, .account__nav button:hover { background: var(--cream-2); color: var(--amber); }
.account__nav a.is-active { background: var(--amber); color: #fff; }
.account__body { display: grid; gap: 20px; }

@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; }
  .account__nav { position: static; grid-auto-flow: column; overflow: auto; }
}

/* --------------------------- ریز-تنظیم‌های مخصوص نسخه‌ی سروری */
.price--block { display: grid; gap: 2px; }
.muted-note { font-size: 12.5px; color: var(--muted); }
.stack { display: grid; gap: 14px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.co-box .picks { display: grid; gap: 12px; }

/* گزینه‌ی وزن در صفحه‌ی کالا؛ در نسخه‌ی سروری رادیوی پنهان است، نه دکمه. */
.pd__sizes label {
  padding: 10px 18px; border-radius: 14px; font-weight: 700; font-size: 14px;
  background: var(--cream-2); color: var(--ink-2); cursor: pointer;
  box-shadow: inset 0 0 0 2px transparent; transition: .22s;
}
.pd__sizes label:hover { color: var(--amber); }
.pd__sizes label input { position: absolute; opacity: 0; width: 0; height: 0; }
.pd__sizes label:has(input:checked),
.pd__sizes label.is-active { background: #fff; color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber); }

/* زبانه‌های پیوندی (فهرست مقاله‌ها) همان شکل دکمه‌ها را دارند. */
.tabs a {
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: #fff; color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: .22s;
}
.tabs a:hover { color: var(--amber); }
.tabs a.is-active { background: var(--espresso); color: var(--cream); }

/* نشان صافی فعال: دکمه‌ی حذفش در نسخه‌ی سروری پیوند است. */
.chip a {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(58, 35, 24, .08); color: inherit;
}
.chip a svg { width: 11px; height: 11px; }
.chip a:hover { background: var(--saffron); color: #fff; }

/* نام کاربر در سربرگ؛ در گوشی جا کم می‌آورد، پس کوتاه می‌شود. */
.icon-btn--user { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 700px) {
  .icon-btn--user { max-width: 72px; }
}

/* ------------------------------------------- نشان‌های اعتماد در پاصفحه */
/* کد اینماد یک <a><img> است و اندازه‌اش دست خودِ اینماد؛ این قاب فقط
   زمینه‌ی روشن و جای یکسان به آن می‌دهد تا در پاصفحه‌ی تیره دیده شود. */
.footer__seals {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  padding: 18px 0 4px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer__seal {
  background: #fff; border-radius: 14px; padding: 8px;
  display: grid; place-items: center; min-width: 96px; min-height: 96px;
}
.footer__seal img, .footer__seal a img { max-width: 110px; height: auto; display: block; }

/* ------------------------------------------------- بنرهای تبلیغاتی */
/* دو گونه بنر: کهربایی برای تخفیف نقدی و آبی آسمانی برای اقساط اسنپ‌پی.
   مقادیر این بلوک عمداً خام (بدون توکن) است تا همین شیوه‌نامه در پنل مدیر
   هم برای پیش‌نمایش بنر به‌کار برود؛ هر تغییری باید در admin.css هم بیاید. */
.promo-row { display: grid; gap: 14px; }

.promo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 22px;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(90, 58, 30, .07);
}

.promo__icon {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .6);
}

.promo__icon svg { width: 24px; height: 24px; }

.promo__text { flex: 1; min-width: 0; line-height: 1.85; }

.promo__text b { display: block; font-size: 16.5px; font-weight: 700; }

.promo__text span { display: block; font-size: 13.5px; opacity: .85; }

.promo__btn {
    flex: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: transform .25s cubic-bezier(.22, .61, .36, 1);
}

.promo__btn:hover { transform: translateY(-2px); }

/* کهربایی — «همین حالا نقدی بخر» */
.promo--cash {
    background: linear-gradient(135deg, #FDF1D8, #F9DFB0);
    border-color: #EFD39A;
    color: #3A2318;
}

.promo--cash .promo__icon { color: #B5731A; }
.promo--cash .promo__btn { background: #C9821E; color: #fff; }

/* آبی آسمانی — «الان بخر، با اسنپ‌پی قسطی بپرداز» */
.promo--snapp {
    background: linear-gradient(135deg, #E8F7FE, #C8E9FC);
    border-color: #A6DBF7;
    color: #0B3C57;
}

.promo--snapp .promo__icon { background: rgba(255, 255, 255, .75); color: #0284C7; }
.promo--snapp .promo__btn { background: #0EA5E9; color: #fff; }

@media (max-width: 640px) {
    .promo { flex-direction: column; align-items: flex-start; }
    .promo__btn { width: 100%; text-align: center; }
}


/* ==================================================================
   محصولات جعبه‌ای و جعبه‌ی دلخواه
   کارت جعبه همان کارت کالاست و فقط یک سطر مشخصات اضافه می‌گیرد؛ بقیه‌ی
   این بخش برای صفحه‌ی «پک و جعبه‌ی کادویی» و سازنده‌ی جعبه است.
   ================================================================== */

.badge--box { background: var(--cocoa); color: #F3DCC0; }

.card__box { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; font-size: 12px; color: var(--muted); }

.card__box span {
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 9px;
}

/* ------------------------------------------------- دعوت جعبه‌ی دلخواه */
.box-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--amber-soft), #F7E2BE);
    border: 1px solid #EFD39A;
    border-radius: var(--r-lg);
    padding: 20px 24px;
    margin-bottom: 26px;
}

.box-cta__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    color: var(--cocoa);
    flex-shrink: 0;
}

.box-cta__icon svg { width: 26px; height: 26px; }
.box-cta__text { flex: 1 1 260px; }
.box-cta__text b { display: block; font-size: 17px; color: var(--ink); }
.box-cta__text p { margin: 4px 0 0; font-size: 14px; }

/* --------------------------------------------------- زبانه‌ی مناسبت‌ها */
.box-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.box-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-2);
    transition: all .2s var(--ease);
}

.box-tabs a span {
    background: var(--cream-2);
    border-radius: 999px;
    padding: 0 8px;
    font-size: 12px;
    color: var(--muted);
}

.box-tabs a:hover { border-color: var(--amber); color: var(--ink); }
.box-tabs a.is-active { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }
.box-tabs a.is-active span { background: rgba(255, 255, 255, .22); color: #fff; }

/* ------------------------------------------------ چهار نکته‌ی پای صفحه */
.box-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.box-notes > div {
    background: #fff;
    border-radius: var(--r);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.box-notes span { display: inline-grid; place-items: center; color: var(--pistachio); }
.box-notes svg { width: 24px; height: 24px; }
.box-notes b { display: block; margin: 8px 0 4px; color: var(--ink); font-size: 15px; }
.box-notes p { margin: 0; font-size: 13.5px; }

/* ------------------------------------- محتویات جعبه در صفحه‌ی کالا */
.pd__contents {
    background: var(--pistachio-soft);
    border: 1px solid #DCE6C4;
    border-radius: var(--r);
    padding: 16px 18px;
    margin: 0 0 18px;
}

.pd__contents h4 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin: 0 0 10px; }
.pd__contents h4 svg { width: 18px; height: 18px; color: var(--pistachio); }
.pd__contents ul { display: grid; gap: 7px; }

.pd__contents li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    border-bottom: 1px dashed rgba(111, 140, 63, .3);
    padding-bottom: 6px;
}

.pd__contents li:last-child { border-bottom: 0; padding-bottom: 0; }
.pd__contents li b { color: var(--ink); white-space: nowrap; }
.pd__contents a { color: var(--cocoa); border-bottom: 1px dashed currentColor; }

/* ------------------------------------------- سازنده‌ی جعبه‌ی دلخواه */
.cbox { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

.cbox__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.cbox__steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: var(--r);
    padding: 12px 16px;
    font-size: 13.5px;
    box-shadow: var(--shadow-sm);
}

.cbox__steps b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--amber-soft);
    color: var(--cocoa);
    flex-shrink: 0;
}

.cbox__group { font-size: 16px; margin: 22px 0 12px; }

.cbox__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.cbox-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 12px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.cbox-card.is-picked { border-color: var(--pistachio); box-shadow: 0 0 0 3px var(--pistachio-soft); }
.cbox-card img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.cbox-card__body { flex: 1; min-width: 0; }
.cbox-card__name { display: block; font-weight: 700; font-size: 14px; color: var(--ink); }
.cbox-card__name:hover { color: var(--amber); }
.cbox-card__price { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.cbox-card select { width: 100%; }

/* خلاصه‌ی جعبه */
.cbox__summary {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.cbox__summary h3 { font-size: 17px; margin-bottom: 14px; }

.cbox__list { display: grid; gap: 8px; margin-bottom: 16px; max-height: 280px; overflow: auto; }

.cbox__list li {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 7px;
}

.cbox__list li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbox__list b { color: var(--ink); white-space: nowrap; font-size: 12.5px; }
.cbox__price { color: var(--amber); font-weight: 700; white-space: nowrap; }
.cbox__del { color: var(--muted); font-size: 18px; line-height: 1; padding: 0 4px; }
.cbox__del:hover { color: var(--saffron); }
.cbox__empty { display: block; color: var(--muted); font-size: 13.5px; border: 0; }

.cbox__bar { margin: 4px 0 16px; }
.cbox__bar > span { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; }
.cbox__bar > span b { color: var(--ink); }
.cbox__bar small { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); }

.cbox__track { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.cbox__track i { display: block; height: 100%; background: linear-gradient(90deg, var(--pistachio), var(--amber-2)); transition: width .25s var(--ease); }

.cbox__hint { font-size: 12.5px; color: var(--saffron); text-align: center; margin: 12px 0; }
.cbox__hint.is-ok { color: var(--pistachio); }
.cbox__note { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.cbox__summary button[disabled] { opacity: .55; cursor: not-allowed; }

/* ------------------------------- محتویات جعبه در سبد، تسویه و سفارش */
.mini-item__box { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.7; }

.cart-row__box { display: grid; gap: 3px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.cart-row__box li { position: relative; padding-inline-start: 12px; }
.cart-row__box li::before { content: '•'; position: absolute; inset-inline-start: 0; color: var(--pistachio); }

.co-item__box { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.8; }

@media (max-width: 1000px) {
    .cbox { grid-template-columns: 1fr; }

    /* روی موبایل اول انتخاب می‌کنی، بعد جمع را می‌بینی؛ خلاصه‌ی خالی در
       بالای صفحه فقط جا می‌گیرد. */
    .cbox__summary { position: static; }
}

@media (max-width: 640px) {
    .box-cta { flex-direction: column; align-items: flex-start; }
    .box-cta .btn { width: 100%; text-align: center; }
}

/* ==================================================================
   واکنش‌گرایی گوشی — اصلاح‌های تکمیلی
   ================================================================== */

/* سربرگ: نام فروشگاه بلند است و تا پیش از این زیر دکمه‌ها بریده می‌شد،
   چون لوگو کوتاه‌شدنی نبود. حالا کوتاه می‌شود و در تنگنا سه‌نقطه می‌خورد. */
.header .logo { min-width: 0; }
.header .logo > span { min-width: 0; }
.header .logo__name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header .logo__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 480px) {
  .header .container { gap: 10px; }
  .header .logo { flex-shrink: 1; }
  .header .logo__name { font-size: 15px; }
  .header .logo__mark { width: 38px; height: 38px; border-radius: 12px; }
  .header .logo__mark svg { width: 25px; height: 25px; }

  .header__actions { gap: 6px; }
  .header__actions .icon-btn { width: 40px; height: 40px; border-radius: 12px; }
  /* «ورود» و «حساب من» در کشوی منو هم هست؛ اینجا جا را به نام فروشگاه می‌دهد. */
  .header__actions .icon-btn--auth { display: none; }
}

/* هیرو: تصویر مربع است؛ ارتفاعِ ویژگی‌ی تگ آن را روی گوشی کش می‌آورد
   (با height:auto بالا درست شد) و این بلوک بخش را جمع‌تر می‌کند. */
@media (max-width: 700px) {
  .hero { padding-top: 16px; }
  .hero__slide { gap: 20px; }
  .hero__art img { width: min(62%, 250px); }
  .hero__ring { width: min(78%, 300px); }
  .hero__stats { gap: 14px 22px; }
  .hero__stats b { font-size: 22px; }
}

/* خبرنامه: ورودی ایمیل عرضِ پیش‌فرض خودش (حدود ۲۲۶ پیکسل) را به فرم
   تحمیل می‌کرد و روی گوشی‌های باریک از قاب بیرون می‌زد. */
.newsletter input { width: 0; }

@media (max-width: 420px) {
  .newsletter form { flex-direction: column; border-radius: var(--r-lg); padding: 10px; gap: 8px; }
  .newsletter input { width: 100%; padding: 10px 16px; text-align: center; }
  .newsletter form .btn { width: 100%; }
}

/* گوشی‌های خیلی باریک: نام فروشگاه به‌جای سه‌نقطه، در دو سطر کامل بیاید. */
@media (max-width: 360px) {
  .header .logo__name { font-size: 13.5px; white-space: normal; line-height: 1.35; }
}

/* شمارش معکوس پیشنهاد ویژه: چهار خانه در عرضِ گوشی‌های باریک جا نمی‌شد. */
@media (max-width: 420px) {
  .offer { padding: 28px 18px; }
  .offer__timer { gap: 7px; margin: 20px 0 22px; }
  .offer__timer div { min-width: 0; flex: 1; padding: 9px 4px; }
  .offer__timer b { font-size: 21px; }
  .offer__timer span { font-size: 11px; }
}

/* دکمه‌ی نام کاربر باید تا سقفِ بالا به اندازه‌ی نام باز شود؛ عرض ثابتِ
   ۴۴ پیکسلیِ .icon-btn جلوی آن را می‌گرفت و نام را می‌برید. */
.icon-btn--user { width: auto; min-width: 44px; padding: 0 14px; }

/* ------------------------------------------------------ بنر سفارش عمده */
/* لحن رنگش عمداً پسته‌ای است، نه کهربایی: بنر «پیشنهاد ویژه» هم در همین
   صفحه است و دو دعوتِ هم‌رنگ، هر دو را بی‌اثر می‌کرد. */
.bulk {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    background: linear-gradient(115deg, #2E3B1B, #43561F 48%, #5C7430);
    color: var(--cream);
    padding: 44px 46px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 36px;
    align-items: center;
}

.bulk::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/pattern.svg') repeat;
    background-size: 240px;
    opacity: .3;
    filter: invert(1);
}

/* هاله‌ی گرم گوشه، تا بنر تخت و یک‌دست نماند */
.bulk::after {
    content: '';
    position: absolute;
    inset-inline-end: -90px;
    top: -120px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 200, 126, .28), transparent 70%);
}

.bulk > * { position: relative; }
.bulk .eyebrow { background: rgba(240, 200, 126, .16); color: #EBD39B; }
.bulk h2 { color: #fff; margin-bottom: 10px; font-size: clamp(21px, 2.4vw, 29px); }
.bulk p { color: #DCE4CC; max-width: 460px; }

.bulk__perks { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; }
.bulk__perks li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #EAF0DC; }
.bulk__perks svg { width: 17px; height: 17px; color: #C4DA86; flex-shrink: 0; }

/* کارت تماس: خودِ شماره دعوتِ بنر است، پس بزرگ‌ترین چیز روی کارت می‌ماند. */
.bulk__card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .17);
    backdrop-filter: blur(6px);
    border-radius: var(--r-lg);
    padding: 26px 24px;
    text-align: center;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .25);
}

.bulk__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--amber-2);
    color: #32211A;
}

.bulk__icon svg { width: 24px; height: 24px; }
.bulk__label { display: block; font-size: 12.5px; color: #C7D3AE; margin-bottom: 6px; }

.bulk__phone {
    display: block;
    font-size: clamp(22px, 2.6vw, 29px);
    font-weight: 800;
    color: #fff;
    line-height: 1.7;
    letter-spacing: .5px;
    font-variant-numeric: tabular-nums;
    transition: color .18s var(--ease);
}

.bulk__phone:hover { color: var(--amber-2); }
.bulk__phone--alt { font-size: 18px; font-weight: 600; color: #DCE4CC; }

.bulk__hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 12.5px;
    color: #C7D3AE;
}

.bulk__hours svg { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 980px) {
    .bulk { grid-template-columns: 1fr; text-align: center; padding: 34px 24px; gap: 26px; }
    .bulk p { margin-inline: auto; }
    .bulk__perks { justify-content: center; }
}

@media (max-width: 700px) {
    .bulk { padding: 28px 18px; }
    .bulk::after { display: none; }
}
