@import url("https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@500;600;700;800&display=swap");
/* ============================================================
   چیز فیز — طرح «زمرد»
   همان ساختار سایت اصلی، با پالت سبز تیره + زرد پنیری
   و یک لایهٔ انیمیشن. HTML و JS دقیقاً همان سایت اصلی است.
   ============================================================ */
:root {
  /* --- سطح‌ها: سبز تیره --- */
  --paper:     #0a1a17;   /* سبز تیرهٔ تابلو */
  --paper-2:   #0f2723;
  --surface:   #133029;   /* کارت */
  --surface-2: #1a3d35;
  --ink:       #f0e7d2;   /* متن کرمی */
  --ink-soft:  #9fbdb4;
  --line:      #235047;

  /* --- برند: سبز زمردی --- */
  --brand:     #4fbfb4;   /* فیروزه‌ای تابلوی مغازه */
  --brand-deep:#2f9a90;
  --brand-soft:#13332e;

  /* --- زرد پنیری --- */
  --gold:      #d9a441;   /* زرد چوبی */
  --gold-deep: #b8862c;
  --cheddar:      #e8c57a;   /* زرد چوبی روشن */
  --cheddar-deep: #d9a441;
  --sand:      #1c4038;

  --shell:     #06120f;   /* هدر/فوتر */
  --shell-ink: #f0e7d2;
  --header-bg: rgba(4, 16, 11, .92);
  /* هالهٔ پشت مدل‌های سه‌بعدی — تیره برای کارت‌ها، روشن برای صحنه‌های بزرگ */
  --stage-dark: #194239;
  --stage-lite: #f6ecc4;

  --ok:        #34d399;
  --danger:    #e8624a;

  --r-xs: 10px;
  --r-sm: 14px;
  --r:    20px;
  --r-lg: 30px;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .30);
  --shadow:    0 20px 52px -24px rgba(0, 0, 0, .70);
  --shadow-lg: 0 44px 96px -44px rgba(0, 0, 0, .85);
  --glow:      0 0 0 1px rgba(217,164,65,.22), 0 12px 34px -14px rgba(217,164,65,.5);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --display: "Baloo Bhaijaan 2", "Vazirmatn", sans-serif;
  --body: "Vazirmatn", system-ui, Tahoma, "Segoe UI", sans-serif;
}

/* ---------- ریست ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  direction: rtl;
  color: var(--ink);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(79,191,180,.16), transparent 70%),
    var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg, model-viewer { display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, button, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--body); font-weight: 800; line-height: 1.4; }
.logo__word, .hero__copy h1, .section__head h2, .page-title,
.product__name, .related h2, .stat strong, .confirm h1, .empty-state h1 {
  font-family: var(--display); font-weight: 400; line-height: 1.3; letter-spacing: 0;
}
::selection { background: var(--brand); color: #fff; }

/* ---------- ابزار چیدمان -------------------------------------------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.eyebrow { font-weight: 700; font-size: .82rem; color: var(--gold-deep); }
.section__head { max-width: 640px; margin-bottom: 42px; }
.section__head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 8px 0 10px; color: var(--brand-deep); }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- دکمه‌ها --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--solid {
  background: linear-gradient(165deg, #ffd76b, var(--cheddar) 46%, var(--gold-deep));
  color: #14261f; box-shadow: 0 6px 18px -6px rgba(192, 127, 16, .8);
}
.btn--solid:hover { filter: brightness(1.07); box-shadow: 0 10px 24px -8px rgba(192, 127, 16, .9); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--cheddar-deep); color: var(--cheddar-deep); }
.btn--clay { background: var(--brand); color: #f4efdc; }
.btn--clay:hover { background: var(--brand-deep); color: #fff; }
.btn--danger { background: var(--danger); color: #14100c; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 7px 14px; font-size: .85rem; }

.link-btn { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; font-size: .85rem; }
.link-btn:hover { color: var(--brand-deep); }

.pill { display: inline-block; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; font-size: .78rem; padding: 5px 14px; border-radius: 999px; }

/* ---------- هدر (قاب تیره مثل استوری) -------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 0;
}
/* لبهٔ پنیر آب‌شده زیر هدر */
.header::after {
  content: ""; display: block; height: 16px; pointer-events: none;
  background:
    radial-gradient(circle at 18px -7px, var(--cheddar) 15px, transparent 16px) repeat-x;
  background-size: 44px 16px;
  filter: drop-shadow(0 2px 2px rgba(60, 38, 5, .25));
}
.header__inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 31px; }
.logo__word { font-size: 1.9rem; color: var(--shell-ink); }
.logo__word em { font-style: normal; color: var(--brand); filter: brightness(1.6); }
.logo--light .logo__word { color: var(--shell-ink); }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 600; color: #9fbdb4; position: relative; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--shell-ink); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; background: var(--gold); border-radius: 3px; }
.nav__cta { background: var(--brand); color: #f4efdc !important; padding: 9px 18px; border-radius: 999px; }
.nav__cta:hover { background: var(--brand-deep); }
.nav__cta::after { display: none; }

.cart-btn { position: relative; background: none; border: 0; color: var(--shell-ink); padding: 6px; }
.cart-btn__count {
  position: absolute; top: -4px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--gold); color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; transition: transform .2s var(--ease);
}
.cart-btn__count.is-empty { transform: scale(0); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; margin-inline-start: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--shell-ink); margin: 5px auto; width: 22px; border-radius: 2px; transition: .3s var(--ease); }

.closed-bar { background: var(--danger); color: #14100c; text-align: center; font-size: .88rem; padding: 8px 16px; }
.closed-note { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 10px 16px; margin-bottom: 18px; color: var(--gold-deep); font-size: .92rem; }

/* ---------- کشوی سبد ------------------------------------------------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(23, 20, 10, .55); opacity: 0; visibility: hidden; transition: opacity .35s; z-index: 60; }
.drawer {
  position: fixed; top: 0; left: 0; right: auto; height: 100dvh; width: min(420px, 92vw);
  background: var(--surface-2); z-index: 70; transform: translateX(-105%);
  transition: transform .4s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; color: var(--brand-deep); }
.icon-btn { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--ink-soft); }
.icon-btn:hover { color: var(--ink); }
.drawer__body { flex: 1; overflow-y: auto; padding: 14px 24px; }
.drawer__empty { text-align: center; padding: 60px 10px; color: var(--ink-soft); display: grid; gap: 18px; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__sub { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 6px; }

.dline { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dline__info { display: flex; flex-direction: column; min-width: 0; }
.dline__info a { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dline__info span { color: var(--ink-soft); font-size: .85rem; }
.dline__remove { background: none; border: 0; font-size: 1.3rem; color: var(--ink-soft); }
.dline__remove:hover { color: var(--danger); }

.monogram { width: 48px; height: 48px; border-radius: var(--r-xs); display: grid; place-items: center; font-family: var(--display); font-size: 1.4rem; color: var(--brand-deep); background: radial-gradient(circle at 30% 25%, var(--stage-dark), var(--c, var(--sand))); }
.monogram--lg { width: 72px; height: 72px; font-size: 2rem; border-radius: var(--r-sm); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { width: 32px; height: 32px; background: transparent; border: 0; color: var(--ink); font-size: 1.1rem; }
.stepper button:hover { background: var(--sand); }
.stepper span { min-width: 30px; text-align: center; font-weight: 700; font-size: .95rem; }
.stepper--lg button { width: 42px; height: 42px; font-size: 1.3rem; }
.stepper--lg span { min-width: 40px; font-size: 1.1rem; }

/* ---------- نوتیفیکیشن ----------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--shell); color: var(--shell-ink); padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- هیرو ----------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 65% at 20% 15%, rgba(30, 122, 63, .12), transparent 62%),
    radial-gradient(50% 60% at 88% 90%, rgba(169, 126, 34, .18), transparent 60%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: clamp(40px, 7vw, 92px) 0; }
.hero__copy h1 { font-size: clamp(2.8rem, 6.2vw, 4.8rem); color: var(--brand-deep); }
.hero__copy h1 em { font-style: normal; color: var(--gold-deep); }
.hero__copy p { font-size: 1.15rem; color: var(--ink-soft); max-width: 36ch; margin: 20px 0 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 28px; margin-top: 36px; }
.hero__meta div strong { font-family: var(--display); font-size: 1.9rem; display: block; color: var(--brand-deep); }
.hero__meta div span { font-size: .85rem; color: var(--ink-soft); }

.hero__stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 35%, var(--stage-lite), var(--paper-2)); box-shadow: var(--shadow-lg); border: 2px solid var(--gold); overflow: hidden; }
.hero__viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.hero__tag { position: absolute; inset-inline-start: 18px; bottom: 18px; background: rgba(23, 20, 10, .85); color: var(--shell-ink); backdrop-filter: blur(6px); padding: 10px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }

/* ---------- نوار اطمینان --------------------------------------------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__inner { display: flex; flex-wrap: wrap; gap: 26px 48px; justify-content: center; padding: 20px 0; color: var(--brand-deep); font-weight: 700; font-size: .95rem; }

/* ---------- کارت آیتم ------------------------------------------------- */
.card { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card--off { opacity: .72; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 34%, var(--stage-dark), var(--surface) 74%); overflow: hidden; }
.card__viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.card__photo { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; background: var(--brand); color: #f4efdc; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.card__ar { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(23, 20, 10, .78); color: var(--shell-ink); font-size: .7rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.card__ar::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.card__off { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: var(--danger); color: #14100c; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card__name { font-size: 1.15rem; font-weight: 800; }
.card__name a:hover { color: var(--brand-deep); }
.card__price { font-weight: 800; font-size: .95rem; color: var(--cheddar-deep); white-space: nowrap; }
.card__tag { color: var(--ink-soft); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__actions { margin-top: auto; padding-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px; }

/* دکمهٔ AR داخل model-viewer */
.ar-pill { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; background: rgba(23, 20, 10, .88); color: var(--shell-ink); border: 0; padding: 9px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700; box-shadow: var(--shadow-sm); transition: background .2s; }
.ar-pill:hover { background: var(--brand-deep); color: #fff; }
.ar-pill--lg { bottom: 18px; padding: 12px 22px; font-size: .95rem; }

/* ---------- فیلتر منو -------------------------------------------------- */
.shop-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
#shop-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); transition: .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand-deep); }
.chip.is-active { background: var(--brand-deep); border-color: var(--brand-deep); color: #f4efdc; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.sort select { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
#shop-count { color: var(--ink-soft); font-size: .92rem; }

/* ---------- صفحهٔ آیتم ------------------------------------------------- */
.crumbs { font-size: .88rem; color: var(--ink-soft); padding: 26px 0 18px; }
.crumbs a:hover { color: var(--brand-deep); }
.product__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.product__stage { position: sticky; top: 94px; border-radius: var(--r-lg); border: 2px solid var(--gold); background: radial-gradient(circle at 50% 32%, var(--stage-dark), var(--surface) 76%); box-shadow: var(--shadow); overflow: hidden; }
.product__stage .card__viewer, .product__stage model-viewer { width: 100%; aspect-ratio: 1 / 1; --poster-color: transparent; background: transparent; }
.product__stage .card__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.stage__note { text-align: center; padding: 12px 16px; font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); background: rgba(10, 32, 23, .6); }

.product__cat { color: var(--gold-deep); font-weight: 700; font-size: .9rem; margin-top: 12px; }
.product__name { font-size: clamp(2.4rem, 4.4vw, 3.4rem); margin: 4px 0 2px; color: var(--brand-deep); }
.product__price { font-weight: 800; font-size: 1.6rem; color: var(--cheddar-deep); margin: 14px 0; }
.product__desc { color: var(--ink-soft); margin-bottom: 20px; }
.stock-off { display: inline-block; background: var(--danger); color: #14100c; border-radius: 999px; padding: 5px 14px; font-size: .85rem; font-weight: 700; margin: 4px 0 10px; }
.product__colors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.product__colors > span { font-weight: 700; margin-inline-end: 4px; }
.swatch { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .88rem; color: var(--ink-soft); transition: .2s; }
.swatch.is-active { border-color: var(--brand-deep); color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--brand-deep); }
.product__buy { display: flex; gap: 14px; align-items: center; margin: 6px 0 30px; flex-wrap: wrap; }
.specs { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.specs div { background: var(--surface); padding: 14px 16px; }
.specs dt { font-size: .8rem; color: var(--gold-deep); font-weight: 700; }
.specs dd { font-weight: 600; margin-top: 2px; }
.related { margin: clamp(50px, 8vw, 90px) 0 30px; }
.related h2 { font-size: 2rem; margin-bottom: 24px; color: var(--brand-deep); }

/* ---------- صفحهٔ سبد -------------------------------------------------- */
.page-title { font-size: clamp(2.3rem, 5vw, 3.2rem); margin: 36px 0 22px; color: var(--brand-deep); }
.cart { display: grid; grid-template-columns: 1.6fr .9fr; gap: 40px; align-items: start; }
.cart__items { display: grid; }
.citem { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.citem__main { display: flex; flex-direction: column; gap: 3px; }
.citem__name { font-weight: 800; font-size: 1.15rem; }
.citem__name:hover { color: var(--brand-deep); }
.citem__tag { color: var(--ink-soft); font-size: .88rem; }
.citem__total { font-weight: 800; font-size: .98rem; min-width: 120px; text-align: left; white-space: nowrap; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: sticky; top: 94px; box-shadow: var(--shadow-sm); }
.summary h2 { font-size: 1.4rem; margin-bottom: 18px; color: var(--brand-deep); }
.summary__row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--ink-soft); }
.summary__note { font-size: .84rem; color: var(--gold-deep); background: var(--sand); padding: 8px 12px; border-radius: var(--r-xs); margin: 6px 0; }
.summary__total { color: var(--ink); font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.summary button { margin-top: 16px; }
.summary__safe { text-align: center; font-size: .8rem; color: var(--ink-soft); margin-top: 12px; }

.checkout { margin-top: 44px; max-width: 640px; }
.checkout h2 { font-size: 1.7rem; margin-bottom: 18px; color: var(--brand-deep); }
.checkout__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea,
.contact-form textarea, .contact-form input {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: 12px 14px; transition: border .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus,
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--brand); }
.checkout__form button { grid-column: 1 / -1; }

.empty-state { text-align: center; padding: clamp(60px, 12vw, 130px) 0; display: grid; gap: 16px; justify-items: center; }
.empty-state h1 { font-size: clamp(2.2rem, 5vw, 3rem); color: var(--brand-deep); }
.confirm__check { width: 70px; height: 70px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); font-size: 2rem; display: grid; place-items: center; }

/* ---------- بخش AR ----------------------------------------------------- */
.ar { background: linear-gradient(180deg, var(--surface), var(--paper-2)); border-block: 1px solid var(--line); }
.ar__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.ar__phone { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 30%, var(--stage-lite), var(--paper-2)); border: 2px solid var(--gold); box-shadow: var(--shadow-lg); overflow: hidden; }
.ar__phone model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.ar__frame { position: absolute; inset: 14px; border: 2px dashed rgba(30, 122, 63, .55); border-radius: var(--r); pointer-events: none; }
.ar__reticle { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); width: 90px; height: 36px; border: 2px solid var(--brand); border-radius: 50%; opacity: .6; pointer-events: none; }
.ar__copy h2 { color: var(--brand-deep); font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); }
.steps { list-style: none; padding: 0; display: grid; gap: 20px; margin-top: 28px; }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; }
.steps .n { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #f4efdc; font-family: var(--display); font-size: 1.3rem; display: grid; place-items: center; }
.steps h4 { font-size: 1.1rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; }
.badges-os { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.badge-os { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .85rem; font-weight: 700; }

/* ---------- کارت ویژگی ------------------------------------------------- */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .3s var(--ease); }
.feature:hover { transform: translateY(-4px); }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--brand-deep); }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- داستان / درباره -------------------------------------------- */
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.story__media { aspect-ratio: 4/5; border-radius: var(--r-lg); background: radial-gradient(circle at 40% 30%, var(--stage-lite), var(--paper-2)); border: 2px solid var(--gold); box-shadow: var(--shadow); overflow: hidden; }
.story__media model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { font-size: clamp(2.2rem, 4vw, 3.2rem); display: block; color: var(--brand-deep); }
.stat span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- تماس -------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 64px); align-items: start; }
.contact-form { display: grid; gap: 16px; }
.contact-info { display: grid; gap: 22px; }
.contact-info .info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.contact-info h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--brand-deep); }
.contact-info p { color: var(--ink-soft); font-size: .95rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--ink-soft); margin-top: 10px; font-size: .95rem; }

/* ---------- فوتر (قاب تیره) --------------------------------------------- */
.footer { background: var(--shell); color: #9fbdb4; padding: 64px 0 30px; margin-top: 60px; border-top: 2px solid var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer__brand p { margin-top: 16px; font-size: .92rem; max-width: 36ch; color: #8aa9a1; }
.footer__col h4 { color: var(--shell-ink); font-size: .92rem; margin-bottom: 16px; }
.footer__col a { display: block; padding: 5px 0; color: #9fbdb4; font-size: .92rem; transition: color .2s; }
.footer__col a:hover { color: var(--shell-ink); }
.footer__news p { color: #8aa9a1; font-size: .9rem; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(229, 217, 172, .15); font-size: .82rem; color: #7c968f; }
.footer__admin { color: #7c968f; text-decoration: underline; text-underline-offset: 3px; }
.footer__admin:hover { color: var(--shell-ink); }

/* ---------- ظاهرشدن هنگام اسکرول ---------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ======================================================================
   پنل مدیریت
   ====================================================================== */
.admin-body { background: var(--paper); min-height: 100dvh; }
.admin-login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.admin-login__card { background: var(--surface); border: 2px solid var(--gold); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 48px); width: min(420px, 100%); box-shadow: var(--shadow-lg); text-align: center; }
.admin-login__card h1 { font-family: var(--display); font-weight: 600; font-size: 2.2rem; color: var(--brand-deep); margin: 10px 0 4px; }
.admin-login__card p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }
.admin-login__card form { display: grid; gap: 14px; }
.pin-input { text-align: center; letter-spacing: .5em; font-size: 1.4rem; font-weight: 700; }
.login-err { color: var(--danger); font-size: .88rem; font-weight: 700; min-height: 1.4em; }

.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100dvh; }
.admin__side { background: var(--shell); color: var(--shell-ink); padding: 24px 0; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; }
.admin__side .logo { padding: 0 22px 18px; border-bottom: 1px solid rgba(229,217,172,.15); margin-bottom: 12px; }
.admin__side .logo__word { font-size: 1.5rem; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 12px 22px; color: #9fbdb4; font-weight: 600; border: 0; background: none; text-align: right; font-size: .95rem; border-inline-start: 3px solid transparent; }
.side-link:hover { color: var(--shell-ink); background: rgba(229,217,172,.06); }
.side-link.is-active { color: var(--shell-ink); border-inline-start-color: var(--gold); background: rgba(229,217,172,.08); }
.side-link .badge { margin-inline-start: auto; background: var(--gold); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font-size: .7rem; display: grid; place-items: center; padding: 0 6px; }
.admin__side .side-foot { margin-top: auto; padding: 16px 22px; display: grid; gap: 8px; font-size: .82rem; }
.admin__side .side-foot a, .admin__side .side-foot button { color: #7c968f; background: none; border: 0; text-align: right; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.admin__side .side-foot a:hover, .admin__side .side-foot button:hover { color: var(--shell-ink); }

.admin__main { padding: clamp(20px, 3vw, 40px); }
.admin__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin__head h1 { font-family: var(--display); font-weight: 600; font-size: 2rem; color: var(--brand-deep); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.kpi strong { display: block; font-size: 1.7rem; color: var(--brand-deep); font-weight: 800; }
.kpi span { color: var(--ink-soft); font-size: .85rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 24px; }
.panel h2 { font-size: 1.2rem; color: var(--brand-deep); margin-bottom: 16px; }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.admin-toolbar input[type="search"], .admin-toolbar select { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; }
.admin-toolbar .spacer { flex: 1; }

.mrow { display: grid; grid-template-columns: 56px 1fr auto auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow__thumb { width: 56px; height: 56px; border-radius: var(--r-xs); background: radial-gradient(circle at 30% 25%, #fbf3d3, var(--sand)); display: grid; place-items: center; overflow: hidden; font-family: var(--display); font-size: 1.5rem; color: var(--brand-deep); }
.mrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mrow__info { min-width: 0; }
.mrow__info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__info span { color: var(--ink-soft); font-size: .82rem; }
.mrow__price { font-weight: 800; color: var(--brand-deep); white-space: nowrap; font-size: .92rem; }
.mrow__actions { display: flex; gap: 8px; }

.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #b7a161; border-radius: 999px; transition: .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: .25s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(-20px); }

.orow { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 14px; background: var(--surface-2); }
.orow__head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.orow__head strong { color: var(--brand-deep); }
.orow__head .spacer { flex: 1; }
.orow__meta { color: var(--ink-soft); font-size: .82rem; }
.orow__items { margin: 10px 0; padding: 10px 14px; background: var(--surface); border-radius: var(--r-xs); font-size: .9rem; display: grid; gap: 4px; }
.orow__cust { font-size: .88rem; color: var(--ink-soft); }
.orow__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.orow select { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .88rem; }
.status-pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: .75rem; font-weight: 700; }
.st-new { background: #eab30833; color: #854d0e; }
.st-preparing { background: #3b82f633; color: #1e40af; }
.st-sent { background: #8b5cf633; color: #5b21b6; }
.st-done { background: #22c55e33; color: #14532d; }
.st-canceled { background: #ef444433; color: #7f1d1d; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(23, 20, 10, .6); z-index: 80; display: none; }
.modal { position: fixed; inset: 0; z-index: 81; display: none; place-items: center; padding: 20px; overflow-y: auto; }
.modal.is-open, .modal-backdrop.is-open { display: grid; }
.modal-backdrop.is-open { display: block; }
.modal__card { background: var(--surface); border: 2px solid var(--gold); border-radius: var(--r-lg); width: min(680px, 100%); box-shadow: var(--shadow-lg); max-height: 92dvh; display: flex; flex-direction: column; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 1.3rem; color: var(--brand-deep); }
.modal__body { padding: 22px 24px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal__body .field--wide { grid-column: 1 / -1; }
.modal__foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-start; }
.file-note { font-size: .78rem; color: var(--ink-soft); }
.upload-preview { display: flex; align-items: center; gap: 10px; margin-top: 6px; min-height: 44px; }
.upload-preview img { width: 44px; height: 44px; border-radius: var(--r-xs); object-fit: cover; border: 1px solid var(--line); }
.upload-preview .chipfile { background: var(--sand); border-radius: 999px; padding: 4px 12px; font-size: .78rem; color: var(--gold-deep); font-weight: 700; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-grid .field--wide { grid-column: 1 / -1; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.danger-zone { border: 1px dashed var(--danger); border-radius: var(--r-sm); padding: 16px 18px; display: grid; gap: 10px; }
.danger-zone p { font-size: .85rem; color: var(--ink-soft); }

.admin-empty { text-align: center; color: var(--ink-soft); padding: 40px 10px; }
.admin-tabs { display: none; }

/* ======================================================================
   حساب کاربری، علاقه‌مندی‌ها و نقشه
   ====================================================================== */
.account-btn {
  display: inline-flex; align-items: center; gap: 7px; color: var(--shell-ink);
  padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(229, 217, 172, .28);
  transition: .2s;
}
.account-btn:hover { border-color: var(--cheddar); color: var(--cheddar); }
.account-btn__name { font-size: .82rem; font-weight: 700; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fav-btn {
  position: absolute; top: 46px; inset-inline-end: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 252, 240, .9); color: #c9b48a;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), color .2s;
}
.fav-btn:hover { transform: scale(1.12); color: #d64545; }
.fav-btn.is-on { color: #d64545; }
.fav-btn.is-on svg { filter: drop-shadow(0 2px 4px rgba(214, 69, 69, .4)); }
.fav-btn--lg { position: static; width: 52px; height: 52px; background: var(--surface); border: 1px solid var(--line); }

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 60px; }

.pick-map { height: 300px; border-radius: var(--r-sm); border: 2px solid var(--gold); overflow: hidden; margin-top: 10px; background: var(--sand); z-index: 1; position: relative; }
.pick-map .leaflet-container { height: 100%; width: 100%; }
.map-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.addr-picks { display: grid; gap: 8px; }
.addr-pick {
  display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-xs); padding: 10px 14px; cursor: pointer;
  font-size: .9rem;
}
.addr-pick:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.addr-pick input { margin-top: 4px; accent-color: var(--brand); }

.wallet-row {
  display: flex; align-items: center; gap: 10px; background: var(--brand-soft);
  border: 1px solid var(--brand); border-radius: var(--r-xs); padding: 10px 14px;
  margin: 10px 0 4px; font-size: .9rem; font-weight: 700; color: var(--brand-deep); cursor: pointer;
}
.wallet-row input { accent-color: var(--brand); width: 17px; height: 17px; }
.summary__points { background: #fdf3d9; color: var(--cheddar-deep); }

.addr-new { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 6px; }

/* ---------- واکنش‌گرا --------------------------------------------------- */
@media (max-width: 980px) {
  .hero__inner, .ar__grid, .product__grid, .story__grid, .contact, .cart { grid-template-columns: 1fr; }
  .product__stage, .summary { position: static; }
  .hero__stage { max-width: 460px; margin-inline: auto; }
  .values { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .admin { grid-template-columns: 1fr; }
  .admin__side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 2px; }
  .admin__side .logo { padding: 6px 10px; border: 0; margin: 0; }
  .side-link { padding: 10px 14px; border-inline-start: 0; border-bottom: 3px solid transparent; }
  .side-link.is-active { border-inline-start-color: transparent; border-bottom-color: var(--gold); }
  .admin__side .side-foot { margin: 0; padding: 10px 14px; }
  .modal__body { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--shell); border-bottom: 2px solid var(--gold); padding: 8px 6vw 18px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .header.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(229,217,172,.12); }
  .nav a.is-active::after { display: none; }
  .nav__cta { margin-top: 12px; text-align: center; }
  .header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid--3 { grid-template-columns: 1fr; }
  .card__actions { grid-template-columns: 1fr; }
  .checkout__form { grid-template-columns: 1fr; }
  .citem { grid-template-columns: 56px 1fr auto; }
  .citem .stepper { grid-column: 2; justify-self: start; }
  .citem__total { grid-column: 3; }
  .footer__grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .mrow { grid-template-columns: 44px 1fr auto; }
  .mrow__price { display: none; }
  .auth-grid { grid-template-columns: 1fr; }
  .account-btn__name { display: none; }
}


/* ============================================================
   لایهٔ انیمیشن — طرح زمرد
   همه‌جا با prefers-reduced-motion خاموش می‌شود.
   ============================================================ */

/* ورود نرم اجزای صفحه هنگام اسکرول (کلاس reveal از app.js اصلی می‌آید) */
.reveal { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* هیرو: ورود پلکانی */
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__copy .eyebrow { animation: riseIn .7s var(--ease) both; }
.hero__copy h1       { animation: riseIn .8s .08s var(--ease) both; }
.hero__copy > p      { animation: riseIn .8s .16s var(--ease) both; }
.hero__cta           { animation: riseIn .8s .24s var(--ease) both; }
.hero__meta          { animation: riseIn .8s .32s var(--ease) both; }
.hero__stage         { animation: riseIn 1s .18s var(--spring) both; }

/* درخشش آرام پشت سکوی هیرو */
@keyframes auraPulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .9; transform: scale(1.06); } }
/* افقی صفر: سرریز جانبی روی موبایل بوم چیدمان را پهن می‌کند */
.hero__stage { overflow-x: clip; }
.hero__stage::before {
  content: ""; position: absolute; inset: -12% 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(217,164,65,.20), transparent 62%);
  animation: auraPulse 7s ease-in-out infinite;
}
.hero__stage > * { position: relative; z-index: 1; }

/* عنوان‌ها: زیرخط پنیری که باز می‌شود */
.section__head h2 { position: relative; display: inline-block; }
.section__head h2::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -8px; height: 4px; width: 100%;
  border-radius: 4px; background: linear-gradient(90deg, var(--cheddar), transparent);
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .9s var(--ease) .15s;
}
.reveal.in .section__head h2::after,
.section__head.in h2::after { transform: scaleX(1); }

/* کارت‌ها: بلندشدن + قاب پنیری */
.card { transition: transform .4s var(--spring), border-color .35s, box-shadow .4s; }
.card:hover { transform: translateY(-8px); border-color: rgba(217,164,65,.5); box-shadow: var(--shadow), var(--glow); }
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(217,164,65,.14));
  transition: opacity .35s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }
.card__name a { transition: color .25s; }
.card:hover .card__name a { color: var(--cheddar); }

/* قیمت: کمی بزرگ‌تر می‌شود */
.card__price { transition: transform .3s var(--spring); transform-origin: inline-end; }
.card:hover .card__price { transform: scale(1.06); }

/* دکمه‌ها: موج نرم */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 55%);
  transition: opacity .4s;
}
.btn:hover::after { opacity: 1; }
.btn--solid:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }

/* چیپ دسته‌بندی */
.chip { transition: transform .25s var(--spring), background .25s, color .25s, border-color .25s; }
.chip:hover { transform: translateY(-2px); }
.chip.is-active { box-shadow: var(--glow); }

/* لوگو: حباب‌های فیز بالا می‌روند */
@keyframes fizzUp {
  0% { transform: translateY(0); opacity: .9; }
  70% { opacity: .5; }
  100% { transform: translateY(-7px); opacity: 0; }
}
.logo__mark circle:nth-of-type(4) { animation: fizzUp 2.6s ease-in-out infinite; }
.logo__mark circle:nth-of-type(5) { animation: fizzUp 2.6s .5s ease-in-out infinite; }
.logo__mark circle:nth-of-type(6) { animation: fizzUp 2.6s 1s ease-in-out infinite; }

/* نشان سبد: تپش هنگام تغییر */
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
.cart-btn__count:not(.is-empty) { animation: pop .34s var(--spring); }

/* کشوی سبد و ردیف‌هایش */
.dline { animation: riseIn .38s var(--ease) both; }
.dline:nth-child(2) { animation-delay: .04s; }
.dline:nth-child(3) { animation-delay: .08s; }
.dline:nth-child(4) { animation-delay: .12s; }

/* نوار اطمینان: حرکت آرام افقی */
@keyframes drift { from { background-position: 0 0; } to { background-position: 60px 0; } }
.trust {
  background-image: repeating-linear-gradient(90deg, transparent 0 30px, rgba(217,164,65,.07) 30px 31px);
  animation: drift 6s linear infinite;
}

/* بخش «نمایش در خونه»: رتیکل نبض‌دار */
@keyframes reticle { 0%,100% { transform: translateX(-50%) scale(1); opacity: .55; }
                     50% { transform: translateX(-50%) scale(1.12); opacity: .95; } }
.ar__reticle { animation: reticle 2.6s ease-in-out infinite; }

/* آیکن ویژگی‌ها: چرخش کوچک */
.feature__icon { transition: transform .5s var(--spring), background .3s; }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.08); background: var(--cheddar); color: #14261f; }

/* دکمهٔ نمایش در خانه */
.ar-pill { transition: transform .25s var(--spring), background .25s, color .25s; }
.ar-pill:hover { transform: translateX(-50%) translateY(-3px); background: var(--cheddar); color: #14261f; }

/* قلب علاقه‌مندی */
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.fav-btn.is-on { animation: heartPop .4s var(--spring); }

/* جدول مشخصات: ورود پلکانی */
.specs div { animation: riseIn .5s var(--ease) both; }
.specs div:nth-child(2) { animation-delay: .06s; }
.specs div:nth-child(3) { animation-delay: .12s; }
.specs div:nth-child(4) { animation-delay: .18s; }

/* تأیید سفارش */
@keyframes checkIn { from { transform: scale(.4) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.confirm__check { animation: checkIn .55s var(--spring) both; background: var(--cheddar); color: #14261f; }

/* احترام کامل به کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   هویت واقعی برند روی هدر و فوتر (بدون دست‌زدن به HTML/JS اصلی)
   نشان از تابلوی مغازه، فونت نرم برند، و زیرنویس CHEF VAZIN.
   ============================================================ */

/* نشان لوگوی قدیمی پنهان، پنیر خندان جایش */
.logo__mark { display: none; }
.logo::before {
  content: "";
  width: 43px; height: 42px; flex: none;
  background: currentColor;
  -webkit-mask: url("/shared/brand/mark.png") center / contain no-repeat;
  mask: url("/shared/brand/mark.png") center / contain no-repeat;
  transition: transform .45s var(--ease);
}
.header .logo::before { color: var(--shell-ink); }
.footer .logo::before { color: var(--cheddar); }
.logo:hover::before { transform: rotate(-6deg) scale(1.06); }

@keyframes markPop {
  0%   { transform: scale(.82) rotate(-9deg); opacity: 0; }
  60%  { transform: scale(1.06) rotate(3deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.header .logo::before { animation: markPop .7s var(--ease) both; }

/* وردمارک با فونت نرم برند + زیرنویس */
.logo__word {
  font-size: 0;                 /* متن جای خود را به نشان رسمی می‌دهد */
  width: 66px; height: 46px;
  background-color: currentColor;
  -webkit-mask: url("/shared/brand/word.png") center / contain no-repeat;
  mask: url("/shared/brand/word.png") center / contain no-repeat;
}

.logo__word::after { content: none; }   /* CHEF VAZIN داخل خود تصویر هست */
.footer .logo__word { color: var(--cheddar); }

/* iOS: پیشوند وب‌کیت و ناحیهٔ امن */
.header { -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.header__inner { padding-inline: max(0px, env(safe-area-inset-right)) max(0px, env(safe-area-inset-left)); }
.drawer { height: 100vh; height: 100dvh; -webkit-overflow-scrolling: touch; }
.drawer__foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

@media (max-width: 560px) {
  .logo__word { width: 56px; height: 39px; }
  .logo::before { width: 37px; height: 36px; }
}


/* فونت برند روی همهٔ تیترها — کمی سنگین‌تر و جمع‌تر */
.logo__word, .hero__copy h1, .section__head h2, .page-title,
.product__name, .related h2, .stat strong, .confirm h1, .empty-state h1,
.hero__meta strong, .card__price, .product__price {
  font-family: var(--display); font-weight: 700; line-height: 1.24;
}
.card__price small, .product__price small { font-family: var(--body); }

/* ---------- تب‌های ورود / ثبت‌نام ---------- */
.auth-tabs {
  display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--line);
  padding: 5px; border-radius: 999px; margin: 0 auto 18px; max-width: 340px;
}
.auth-tabs button {
  flex: 1; padding: 11px 14px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .92rem; color: var(--ink-soft);
  background: none; transition: .22s var(--ease);
}
.auth-tabs button:hover { color: var(--ink); }
.auth-tabs button.on {
  background: linear-gradient(165deg, #f3dca6, var(--cheddar) 46%, var(--gold-deep));
  color: #14261f;
}
.auth-grid--tabs { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

/* ---------- منوی گروه‌بندی‌شده با ستون دسته‌ها ---------- */
.menu2 { display: grid; grid-template-columns: 216px minmax(0,1fr); gap: 26px; align-items: start; }
/* هر دو ستون باید بتوانند کوچک شوند؛ وگرنه روی موبایل ریلِ افقی
   ستون را به اندازهٔ محتوایش باز می‌کند و صفحه از قاب بیرون می‌زند. */
.menu2 > * { min-width: 0; }
.menu2__main { min-width: 0; }
.menu2__side { position: sticky; top: 90px; }
.menu2__rail {
  display: flex; flex-direction: column; gap: 6px;
  max-height: calc(100dvh - 130px); overflow-y: auto; scrollbar-width: thin;
}
.chip2 {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 11px 14px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  font: inherit; font-weight: 600; font-size: .9rem; text-align: start;
  transition: .2s var(--ease);
}
.chip2::before {
  content: ""; width: 3px; height: 16px; border-radius: 3px; background: transparent;
  transition: background .2s var(--ease); flex: none;
}
.chip2 b { margin-inline-start: auto; font-size: .74rem; font-weight: 700; color: var(--ink-soft); opacity: .75; }
.chip2:hover { background: var(--surface-2); color: var(--ink); }
.chip2.on { background: var(--surface-2); color: var(--ink); border-color: var(--brand); }
.chip2.on::before { background: var(--cheddar); }
.chip2.on b { color: var(--cheddar); opacity: 1; }

.cats2 { display: block; }
.catsec2 { scroll-margin-top: 96px; margin-bottom: 36px; }
.catsec2__h {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px;
  font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--ink);
}
.catsec2__h::after { content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent); }
.catsec2__h i { font-style: normal; font-family: var(--body); font-size: .78rem;
  font-weight: 600; color: var(--ink-soft); order: 3; }

@media (max-width: 900px) {
  .menu2 { grid-template-columns: 1fr; gap: 8px; }
  /* ریل دسته‌ها: نوارِ شناور روی محتوا، نه یک ردیفِ جدا.
     margin-bottom منفی یعنی در جریان صفحه جا نمی‌گیرد و منو از زیرش
     رد می‌شود؛ ارتفاعش را به‌جایش به بالای ستون محتوا می‌دهیم. */
  .menu2__side {
    position: sticky; top: 100px; z-index: 30;
    background: none; padding: 0; margin-bottom: -62px; pointer-events: none;
  }
  .menu2__rail {
    flex-direction: row; overflow-x: auto; max-height: none;
    pointer-events: auto; gap: 6px;
    padding: 6px; border-radius: 999px;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
            backdrop-filter: blur(14px) saturate(1.3);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
    scrollbar-width: none;
  }
  .menu2__rail::-webkit-scrollbar { display: none; }
  .menu2__main { padding-top: 62px; }
  .chip2 { width: auto; flex: none; border-radius: 999px; }
  .chip2::before { display: none; }
  /* هدر + نوار شناور روی موبایل بلندتر است */
  .catsec2 { scroll-margin-top: 172px; }
}

/* ---------- پل رنگ به لایهٔ مشترک CFX ---------- */
:root {
  --cfx-accent:   var(--cheddar);
  --cfx-accent-2: #f2dca6;
  --cfx-ink:      var(--ink);
  --cfx-muted:    var(--ink-soft);
  --cfx-surface:  var(--surface);
  --cfx-line:     var(--line);
  --cfx-ease:     var(--ease);
}
.cfxh { background:
  linear-gradient(180deg, var(--paper), var(--paper-2) 42%, var(--paper)); }
.cfxh__title { font-family: var(--display); font-weight: 400; }
.cfxh__kicker { font-family: var(--body); }

/* ============================================================
   پالت‌های جایگزین (اینجاست تا صفحه‌های به‌ارث‌رسیده هم بگیرندش)

   کل طرح روی متغیرهای :root سوار است، پس یک پالت تازه فقط یعنی
   بازنویسی همان متغیرها. `data-cf-theme` روی <html> می‌نشیند.

     (پیش‌فرض) زمرد   — سبز تیره + زرد چوبی
     cheesy          — پالت طرح ۰۶: مشکی + چدار مذاب + بنفش
     velvet          — شرابی تیره + طلایی گرم + سرخ

   ============================================================ */

/* ---------- ۰۶: TAKE IT CHEESY ---------- */
html[data-cf-theme="cheesy"] {
  --paper:     #08070a;
  --paper-2:   #100d15;
  --surface:   #141119;
  --surface-2: #1d1926;
  --ink:       #fff7e8;
  --ink-soft:  #a89bbd;
  --line:      #322b40;

  /* «برند» در این طرح بنفشِ آواتار اینستاگرام است */
  --brand:      #a78bfa;
  --brand-deep: #7c3aed;
  --brand-soft: #1d1430;

  --gold:      #ffb703;
  --gold-deep: #f08c00;
  --cheddar:      #ffd166;
  --cheddar-deep: #ffb703;
  --sand:      #1d1926;

  --shell:     #08070a;
  --shell-ink: #fff7e8;
  --danger:    #ef3b2d;

  /* هالهٔ چدار — امضای طرح ۰۶ */
  --glow: 0 0 0 1px rgba(255,183,3,.28), 0 14px 44px -12px rgba(255,183,3,.55);
  --shadow:    0 24px 60px -30px rgba(0,0,0,.9);
  --shadow-lg: 0 44px 96px -40px rgba(0,0,0,.95);
}

/* ---------- شرابی: گرم، سنگین، اشتهاآور ----------
   قرمزِ عمیق و طلایی گرم روی تقریباً‌مشکی. قرمز و کهربایی همان
   چیزهایی‌اند که رستوران‌ها برای اشتها استفاده می‌کنند؛ زمینهٔ خیلی
   تیره و کنتراست کم بین سطح‌ها حس «گران» می‌دهد. */
html[data-cf-theme="velvet"] {
  --paper:     #140a0e;
  --paper-2:   #1d0f14;
  --surface:   #241318;
  --surface-2: #2f1a21;
  --ink:       #fbeee0;
  --ink-soft:  #c9a9a4;
  --line:      #43242d;

  --brand:      #e0435c;
  --brand-deep: #c02744;
  --brand-soft: #2c141b;

  --gold:      #f0a63c;
  --gold-deep: #cf7f1e;
  --cheddar:      #f7c979;
  --cheddar-deep: #e0a03f;
  --sand:      #2a161c;

  --shell:     #0f070a;
  --shell-ink: #fbeee0;
  --danger:    #ff6b52;

  --glow: 0 0 0 1px rgba(240,166,60,.26), 0 16px 48px -14px rgba(224,67,92,.55);
  --shadow:    0 22px 58px -26px rgba(0,0,0,.85);
  --shadow-lg: 0 46px 100px -44px rgba(0,0,0,.92);
}

/* بدنه هم باید هالهٔ بالای صفحه‌اش با پالت عوض شود */
html[data-cf-theme="cheesy"] body {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255,183,3,.14), transparent 70%),
    radial-gradient(60% 40% at 85% 5%, rgba(124,58,237,.16), transparent 70%),
    var(--paper);
}
html[data-cf-theme="velvet"] body {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(224,67,92,.16), transparent 70%),
    radial-gradient(60% 45% at 12% 6%, rgba(240,166,60,.12), transparent 72%),
    var(--paper);
}

/* دکمهٔ اصلی در هر دو پالت گرادیان خودش را می‌گیرد */
html[data-cf-theme="cheesy"] .btn--solid {
  background: linear-gradient(160deg, var(--cheddar), var(--gold) 45%, var(--gold-deep));
  color: #21160a;
}
html[data-cf-theme="velvet"] .btn--solid {
  background: linear-gradient(160deg, var(--cheddar), var(--gold) 48%, var(--gold-deep));
  color: #2a1405;
}

/* ---------- انتخابگر پالت ---------- */
.cfpal { display: grid; gap: 8px; }
.cfpal__t {
  font-size: .74rem; font-weight: 700; color: var(--ink-soft);
  letter-spacing: .02em;
}
.cfpal__row { display: flex; gap: 8px; flex-wrap: wrap; }
.cfpal__b {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); font-size: .82rem; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.cfpal__b:hover { border-color: var(--cheddar-deep); }
.cfpal__b[aria-pressed="true"] {
  border-color: var(--cheddar); background: color-mix(in srgb, var(--cheddar) 14%, transparent);
}
.cfpal__b i {
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(135deg, var(--sw1) 50%, var(--sw2) 50%);
}

/* روی دسکتاپ داخل هدر جا نمی‌شود؛ فقط در کشوی موبایل نشان می‌دهیمش */
.nav .cfpal { display: none; }
@media (max-width: 900px) {
  .nav .cfpal {
    display: grid; margin-top: 14px; padding-top: 14px;
    border-top: 1px solid rgba(229,217,172,.12);
  }
}

/* ---------- هدر و هالهٔ صحنه، هم‌رنگ هر پالت ---------- */
html[data-cf-theme="cheesy"] {
  --header-bg: rgba(8, 7, 10, .93);
  --stage-dark: #2b2436;
  --stage-lite: #ffe6ad;
}
html[data-cf-theme="velvet"] {
  --header-bg: rgba(15, 7, 10, .93);
  --stage-dark: #3a1c26;
  --stage-lite: #ffdcc0;
}

/* ============================================================
   اصلاحات ریز
   ============================================================ */

/* دکمهٔ قلب — روی موبایل وسط نمی‌نشست. علتش این بود که رشتهٔ HTML
   دور <svg> فاصله و خط جدید دارد و آن فاصله در grid یک آیتم ناشناس
   می‌سازد و قلب را کنار می‌زند. با font-size:0 آن آیتم حذف می‌شود و
   خود svg هم اندازهٔ قطعی می‌گیرد. */
.fav-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 0; font-size: 0;
}
.fav-btn > svg {
  display: block; width: 18px; height: 18px; flex: none; margin: 0;
}

/* دکمه‌های «ویرایش» و «حذف» پنل مدیریت روی موبایل: متنشان بریده
   می‌شد چون دکمه‌ها در یک ردیف تنگ جمع شده بودند. */
@media (max-width: 900px) {
  .btn--sm { padding: 9px 14px; font-size: .88rem; }
  .btn { white-space: nowrap; }
  /* هر ردیف مدیریت، دکمه‌هایش تمام‌عرض و زیر هم */
  .admin td .btn,
  .admin__row .btn,
  [data-edit], [data-del], [data-del-order] {
    min-height: 40px; flex: 1 1 auto; min-width: max-content;
  }
  .admin td, .admin__row { white-space: normal; }
}

/* ---------- پنل ترتیب (مدیریت) ---------- */
.ord { display: grid; gap: 18px; }
.ord__hd h2 { font-size: 1.5rem; margin-bottom: 4px; }
.ord__hint { font-size: .9rem; }
.ord__items h3 { font-size: 1.05rem; margin-bottom: 10px; }
.ord__cats, .ord__items > div { display: grid; gap: 8px; }
.ord__row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xs); padding: 8px 10px;
  touch-action: none;               /* وگرنه کشیدن روی لمس، صفحه را اسکرول می‌کند */
}
.ord__row.is-drag { opacity: .75; border-color: var(--cheddar); box-shadow: var(--glow); }
.ord__grip {
  background: none; border: 0; color: var(--ink-soft); font-size: 1.05rem;
  line-height: 1; padding: 6px 4px; cursor: grab; flex: none;
}
.ord__grip:active { cursor: grabbing; }
.ord__name {
  flex: 1; min-width: 0; text-align: start; background: none; border: 0;
  color: var(--ink); font: inherit; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
button.ord__name { cursor: pointer; }
button.ord__name:hover { color: var(--cheddar-deep); }
.ord__name i { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: .82rem; }
.ord__bumps { display: flex; gap: 4px; flex: none; }
.ord__bumps button {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font-size: .7rem; line-height: 1;
}
.ord__bumps button:hover { border-color: var(--cheddar); color: var(--cheddar); }

/* ---------- ریل دسته‌ها روی هدر می‌نشیند ----------
   خواستهٔ کارفرما: موقع مرور منو، ریل بچسبد به بالاترین نقطهٔ صفحه و
   روی هدر بیاید (z بالاتر از هدر که ۵۰ است). */
@media (max-width: 900px) {
  .menu2__side {
    position: sticky; top: 0; z-index: 60;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
            backdrop-filter: blur(14px) saturate(1.2);
    padding: 8px 0 10px; margin-inline: 0;
    box-shadow: 0 8px 22px -14px rgba(0,0,0,.8);
  }
}

/* مدل سه‌بعدی هیرو، وسطِ صفحه روی موبایل */
@media (max-width: 900px) {
  .hero__stage { margin-inline: auto; width: min(100%, 420px); }
  .hero__viewer, .hero__stage model-viewer { margin-inline: auto; }
}
