/* ==========================================================================
   NC Home Decor — فروشگاه ظروف NC
   Ivory-first boutique: deep green + gold accents (from the logo).
   RTL, mobile-first, logical properties only (so ar/en flip for free).
   Self-hosted Vazirmatn, inline Lucide icons. Tokens: see docs/design.md.
   ========================================================================== */

/* ── Fonts: Vazirmatn (self-hosted variable subsets — no CDN) ────────────── */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-arabic.05d9ce2a23d3.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC, U+1EE00-1EEFF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin-ext.2b9f461883fd.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin.e7eada615dc3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* English headings: Cormorant Garamond (variable 300–700, Latin only; SIL OFL, from @fontsource-variable 5.3.0 —
   license in fonts/cormorant-garamond-OFL.txt). */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.c47ff12887a3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  /* brand greens (logo background / photo wall) */
  --green-950: #163726;
  --green-900: #1F4A33;
  --green-700: #2B5A3B;
  --green-100: #E4ECE5;
  /* gold (logo ink). --gold for fills & lines; --gold-light for text on green;
     --gold-deep for small gold text on ivory (≥4.5:1). */
  --gold: #C9A55A;
  --gold-light: #E3C987;
  --gold-deep: #86652A;
  /* neutrals */
  --ivory: #FAF6EE;
  --cream: #F2EBDD;
  --paper: #FFFFFF;
  --ink: #26241F;
  --muted: #6E685C;
  --line: #E4DCCB;
  --danger: #A23B2A;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(38 36 31 / .05), 0 8px 24px -12px rgb(38 36 31 / .18);
  --shadow-lg: 0 20px 50px -20px rgb(22 55 38 / .45);
  --maxw: 1240px;
  --pad: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  /* English page titles; Persian text in them (an untranslated name) falls back to Vazirmatn. */
  --font-display: 'Cormorant Garamond', 'Vazirmatn', Georgia, serif;
  --z-header: 30;
  --z-drawer: 50;
  --z-toast: 60;
}
@media (min-width: 768px) { :root { --pad: 28px; } }
@media (min-width: 1100px) { :root { --pad: 40px; } }

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--ivory);
  font-feature-settings: "ss01";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0; }
/* English: Latin text needs less line height. Its pages show the Persian text where a translation is missing, so
   titles and paragraphs take their direction from their own text (a Persian one runs right to left). */
html[lang="en"] body { line-height: 1.65; }
/* English titles in the serif: the high contrast suits porcelain and gold. Body text, buttons and product cards stay
   in Vazirmatn. */
html[lang="en"] :is(h1, h2) { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; }
[dir="ltr"] :is(h1, h2, h3, h4, p, li, dd, dt, figcaption, blockquote, summary) { unicode-bidi: plaintext; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; }
/* Optical centring: the paper plane's mass sits up-right of its box (triangle centroid
   ≈ +1.1, −1.2 of 24), so nudge it back; percentages keep it right at any size. */
.icon--send { transform: translate(-4.5%, 5%); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--green-900); color: var(--ivory); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--gold-deep); }
.eyebrow--gold { color: var(--gold-light); }
.swash { display: flex; direction: ltr; width: 120px; height: 14px; color: var(--gold); }
.swash svg { display: block; height: 100%; overflow: visible; }
.swash__line { flex: 1 1 0; min-width: 0; }
.swash__ring { flex: none; width: 14px; }
.swash path, .swash circle { fill: none; stroke: currentColor; stroke-width: .8px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.swash .swash__dot { fill: currentColor; stroke: none; }
/* A title block as wide as its words; its swash spans the whole width, ring centred over the text. */
.titled { display: grid; row-gap: 8px; width: fit-content; max-width: 100%; }
.titled > .swash {
  width: auto; contain: inline-size;            /* as wide as the block; never widens it */
  margin-inline: min(0px, (100% - 72px) / 2);   /* a short title: still 72px, overhanging both ends equally */
}
.swash--gold { color: var(--gold); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--green { background: var(--green-900); color: var(--ivory); }
.btn--green:hover { background: var(--green-700); }
.btn--gold { background: var(--gold); color: var(--green-950); }
.btn--gold:hover { background: var(--gold-light); box-shadow: 0 8px 20px -10px rgb(201 165 90 / .8); }
.btn--line { border-color: var(--green-900); color: var(--green-900); background: transparent; }
.btn--line:hover { background: var(--green-900); color: var(--ivory); }
.btn--line-light { border-color: rgb(227 201 135 / .6); color: var(--ivory); }
.btn--line-light:hover { background: rgb(255 255 255 / .08); border-color: var(--gold-light); }
.btn--ghost { background: var(--green-100); color: var(--green-900); }
.btn--text { background: none; color: var(--muted); min-height: 40px; }
.btn--text:hover { color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 0; background: transparent; color: var(--green-900);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: var(--green-100); }
.icon-btn--gold { background: var(--green-900); color: var(--gold-light); }
.icon-btn--gold:hover { background: var(--green-700); color: var(--gold-light); transform: scale(1.05); }
.icon-btn--line { border: 1px solid var(--line); width: 48px; height: 48px; }
.icon-btn__plus { position: absolute; top: 7px; inset-inline-end: 6px; background: var(--gold); color: var(--green-950); border-radius: 999px; stroke-width: 3; padding: 1px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--green-900); font-weight: 600; font-size: 15px; }
.link-arrow:hover { color: var(--gold-deep); }
.link-arrow:hover .icon { transform: translateX(-3px); }
.link-arrow .icon { transition: transform .2s var(--ease); }
/* Arrows and chevrons are drawn for right-to-left reading; left-to-right pages mirror them (and their hover nudge). */
[dir="ltr"] :is(.icon--arrow-left, .icon--arrow-right, .icon--chevron-left, .icon--chevron-right) { transform: scaleX(-1); }
[dir="ltr"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(-3px); }

/* ── Top bar & header ────────────────────────────────────────────────────── */
.topbar { background: var(--green-950); color: var(--cream); font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar__in > * { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { color: var(--gold); }
.topbar__free { display: none !important; color: var(--gold-light); }
.topbar__phone:hover { color: var(--gold-light); }
/* A phone number reads left to right, so its icon sits on its left in RTL too. */
[dir="rtl"] .topbar__phone { flex-direction: row-reverse; }
@media (min-width: 900px) { .topbar__free { display: inline-flex !important; } }
/* Language switcher: in the top bar from 640px; on phones it is in the drawer. */
.langs { display: none !important; gap: 2px; }
.langs a { padding: 4px 10px; border-radius: 999px; }
.langs a:hover { color: var(--gold-light); }
.langs a[aria-current] { background: rgb(255 255 255 / .12); color: var(--gold-light); }
@media (min-width: 640px) { .langs { display: inline-flex !important; } }

.header { position: sticky; top: 0; z-index: var(--z-header); background: rgb(250 246 238 / .92); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 8px; min-height: 68px; }
.logo { display: block; margin-inline-end: auto; }
.logo img { width: 84px; height: auto; }
.nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 2px; }
/* Phones/tablets: burger | centred logo | account + cart. */
@media (max-width: 999px) {
  .header__in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header__burger { justify-self: start; }
  .logo { margin: 0; justify-self: center; }
  .header__actions { justify-self: end; }
}
.search { display: none; }
.hide-sm { display: none; }
.cart-count {
  position: absolute; top: 4px; inset-inline-end: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--green-950); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

@media (min-width: 1000px) {
  .header__burger { display: none; }
  .header__in { min-height: 84px; gap: 28px; }
  .logo { margin-inline-end: 0; }
  .logo img { width: 104px; }
  .nav { display: flex; align-items: center; gap: 4px; margin-inline-end: auto; }
  .nav > a, .nav__drop > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; font-weight: 500; color: var(--ink); position: relative; }
  .nav > a:hover, .nav__drop > a:hover { color: var(--green-900); background: var(--green-100); }
  .nav a[aria-current="page"] { color: var(--green-900); font-weight: 700; }
  .nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px; }
  .nav__drop { position: relative; }
  .nav__menu {
    position: absolute; top: 100%; inset-inline-start: 0; min-width: 200px; padding: 8px; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
  }
  .nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a { display: block; padding: 8px 12px; border-radius: 8px; }
  .nav__menu a:hover { background: var(--cream); color: var(--green-900); }
  .search { display: flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding-inline: 16px 4px; height: 44px; width: 250px; transition: border-color .2s, box-shadow .2s; }
  .search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(201 165 90 / .18); }
  .search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }
  .search button { width: 36px; height: 36px; border: 0; background: none; color: var(--green-900); display: grid; place-items: center; border-radius: 999px; }
  .hide-sm { display: inline-grid; }
}

/* First-visit language prompt: a <dialog> that main.js opens once. */
.langpick { border: 0; padding: 0; border-radius: var(--radius); background: var(--ivory); color: var(--ink); width: min(100% - 2 * var(--pad), 400px); box-shadow: var(--shadow-lg); }
.langpick::backdrop { background: rgb(22 55 38 / .55); backdrop-filter: blur(3px); }
.langpick__in { position: relative; display: grid; justify-items: center; gap: 14px; padding: 28px 24px 24px; text-align: center; }
.langpick__in:focus { outline: none; }
.langpick__close { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; }
.langpick__title { margin: 0; display: grid; gap: 2px; font-size: 18px; line-height: 1.6; color: var(--green-900); }
.langpick__title span + span { font-size: 15px; font-weight: 500; color: var(--muted); }
.langpick__list { display: grid; gap: 10px; width: 100%; }
.langpick__list a { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; }
.langpick__list a:hover { border-color: var(--gold); }
.langpick__list a[aria-current] { background: var(--green-900); border-color: var(--green-900); color: var(--cream); }
@media (prefers-reduced-motion: no-preference) {
  .langpick[open] { animation: rise .3s var(--ease); }
  .langpick[open]::backdrop { animation: fade .25s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer__scrim { position: absolute; inset: 0; background: rgb(22 55 38 / .45); animation: fade .25s; }
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 340px); background: var(--ivory);
  padding: 16px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; animation: slide-in .3s var(--ease);
}
.drawer__panel:focus { outline: none; }
@keyframes slide-in { from { transform: translateX(100%); } }
[dir="ltr"] .drawer__panel { animation-name: slide-in-ltr; }
@keyframes slide-in-ltr { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.search--drawer { display: flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding-inline: 16px 4px; height: 48px; }
.search--drawer input { flex: 1; min-width: 0; border: 0; background: none; outline: none; }
.search--drawer button { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; color: var(--green-900); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.drawer__nav a.drawer__sub { font-weight: 400; font-size: 15px; padding-inline-start: 20px; color: var(--muted); }
.drawer__langs { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__langs a { flex: 1; display: grid; place-items: center; min-height: 44px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.drawer__langs a[aria-current] { background: var(--green-900); border-color: var(--green-900); color: var(--cream); }
.drawer__tg { margin-top: auto; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding-block: 56px; }
.section--tight { padding-block: 28px 56px; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green-900); color: var(--ivory); }
@media (min-width: 900px) { .section { padding-block: 88px; } .section--tight { padding-block: 36px 88px; } }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head__title { font-size: clamp(22px, 3.2vw, 32px); color: var(--green-900); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { background: radial-gradient(120% 90% at 85% 0%, var(--green-700) 0%, var(--green-900) 55%, var(--green-950) 100%); color: var(--ivory); overflow: hidden; position: relative; }
.hero::before { /* panel moulding, echoing the green wall in their photos */
  content: ""; position: absolute; inset: 18px; border: 1px solid rgb(227 201 135 / .18); border-radius: 6px; pointer-events: none;
}
.hero__in { display: grid; gap: 32px; padding-block: 44px 40px; position: relative; }
/* Keep the content well inside the gold moulding line (inset 18px) on narrower screens. */
@media (max-width: 1099px) { .hero__in { padding-inline: 40px; } }
@media (max-width: 420px) { .hero__in { padding-inline: 34px; padding-block: 40px 36px; } }
.hero__title { font-size: clamp(34px, 6.4vw, 64px); line-height: 1.3; font-weight: 800; margin-block: 10px 16px; }
.hero__text { color: rgb(250 246 238 / .82); max-width: 44ch; font-size: 17px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { margin: 0; position: relative; }
.hero__media img { border-radius: 220px 220px var(--radius) var(--radius); box-shadow: var(--shadow-lg); border: 1px solid rgb(227 201 135 / .35); aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 70%; width: 100%; }
.hero__tag {
  position: absolute; inset-inline-start: 12px; bottom: 16px; background: rgb(22 55 38 / .78); backdrop-filter: blur(8px);
  border: 1px solid rgb(227 201 135 / .35); border-radius: var(--radius-sm); padding: 10px 14px; display: grid; gap: 2px; max-width: 78%;
}
.hero__tag span { font-size: 12px; color: var(--gold-light); }
.hero__tag strong { font-size: 14px; font-weight: 600; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1.05fr .95fr; align-items: center; padding-block: 72px; gap: 56px; }
  .hero__media img { max-height: 600px; }
  .hero__tag { inset-inline-start: -28px; bottom: 40px; }
}

/* trust row */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding-block: 22px; }
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__item div { display: grid; line-height: 1.6; }
.trust__item strong { font-size: 14px; color: var(--green-900); }
.trust__item span:not(.trust__icon) { font-size: 12.5px; color: var(--muted); }
.trust__icon { width: 46px; height: 46px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--cream); color: var(--gold-deep); border: 1px solid var(--line); }
@media (min-width: 900px) { .trust__grid { grid-template-columns: repeat(4, 1fr); padding-block: 28px; } }

/* categories */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--cream); isolation: isolate; }
.cat__media { display: block; aspect-ratio: 1; }
.cat__media img, .cat__media .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.05); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(22 55 38 / .85), transparent 55%); z-index: 1; }
.cat__name { position: absolute; z-index: 2; inset-inline: 14px; bottom: 12px; color: var(--ivory); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: space-between; }
.cat__name .icon { color: var(--gold-light); transition: transform .2s var(--ease); }
.cat:hover .cat__name .icon { transform: translateX(-4px); }
[dir="ltr"] .cat:hover .cat__name .icon { transform: scaleX(-1) translateX(-4px); }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(4, 1fr); gap: 20px; } .cat__media { aspect-ratio: 4 / 5; } .cat__name { font-size: 18px; inset-inline: 20px; bottom: 18px; } }

/* ── Product grid & card ─────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } .grid--shop { grid-template-columns: repeat(3, 1fr); } }

.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgb(201 165 90 / .55); }
.card__media { position: relative; display: block; aspect-ratio: 1; background: var(--cream); overflow: hidden; }
.card__media > img, .card__media > .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media > img { transform: scale(1.04); }
.card--out .card__media > img { filter: grayscale(.6); opacity: .75; }
.card__fav { position: absolute; top: 8px; inset-inline-end: 8px; width: 38px; height: 38px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .9); color: var(--green-900); display: grid; place-items: center; transition: color .2s, transform .2s; }
.card__fav:hover { transform: scale(1.08); }
[data-fav].is-on { color: var(--danger); }
[data-fav].is-on svg { fill: currentColor; }
.card__body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__code { font-size: 12px; color: var(--gold-deep); font-weight: 600; }
.card__title { font-size: 14.5px; font-weight: 600; line-height: 1.6; }
.card__title a:hover { color: var(--green-900); }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
@media (min-width: 700px) { .card__body { padding: 16px 16px 18px; } .card__title { font-size: 16px; } }

.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--green-900); color: var(--gold-light); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge + .badge { top: 40px; }
.badge--sale { background: var(--gold); color: var(--green-950); }
.badge--muted { background: var(--ink); color: var(--paper); }
.badge--inline { position: static; }

.price { display: grid; line-height: 1.5; }
.price__now { font-weight: 700; font-size: 15px; color: var(--green-900); }
.price__now small { font-weight: 400; font-size: 12px; color: var(--muted); }
.price__old { font-size: 12.5px; color: var(--muted); }
.price--light .price__now { color: var(--gold-light); }
.price--light .price__now small, .price--light .price__old { color: rgb(250 246 238 / .7); }
.price--lg { margin-block: 10px 4px; }
.price--lg .price__now { font-size: 26px; }
.price--lg .price__old { font-size: 15px; }
@media (min-width: 700px) { .price__now { font-size: 16.5px; } }

.img-ph { display: grid; place-items: center; align-content: center; gap: 6px; background: repeating-linear-gradient(45deg, var(--cream) 0 14px, #EEE6D5 14px 15px); color: var(--muted); font-size: 13px; }
.img-ph img { width: 72px; opacity: .45; }

/* ── Collection band ─────────────────────────────────────────────────────── */
.collection { background: var(--green-900); color: var(--ivory); padding-block: 56px; overflow: hidden; }
.collection__in { display: grid; gap: 32px; align-items: center; }
.collection__media { border-radius: var(--radius); overflow: hidden; background: #fff; border: 6px solid var(--green-700); outline: 1px solid rgb(227 201 135 / .35); }
.collection__copy h2 { font-size: clamp(28px, 4vw, 44px); margin-block: 6px 14px; }
.collection__copy > p:not(.eyebrow) { color: rgb(250 246 238 / .82); max-width: 50ch; }
.collection__dims { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.collection__dims li { border: 1px solid rgb(227 201 135 / .3); border-radius: var(--radius-sm); padding: 10px 14px; display: grid; }
.collection__dims span { font-size: 13px; color: rgb(250 246 238 / .75); }
.collection__dims b { color: var(--gold-light); font-size: 18px; }
.collection__dims small { font-size: 12px; font-weight: 400; }
@media (min-width: 900px) { .collection { padding-block: 96px; } .collection__in { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Telegram CTA */
.tg-cta { padding-block: 0 64px; }
.tg-cta__in { display: grid; gap: 18px; justify-items: start; background: var(--cream); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); padding: 28px; position: relative; overflow: hidden; }
.tg-cta__in::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--gold); inset-inline-end: -80px; top: -120px; opacity: .6; }
.tg-cta__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--green-900); color: var(--gold-light); display: grid; place-items: center; }
.tg-cta h2 { font-size: 22px; color: var(--green-900); }
.tg-cta p { color: var(--muted); }
/* Phones: the Telegram box and the trust items read best centred. */
@media (max-width: 899px) {
  .tg-cta__in { justify-items: center; text-align: center; }
}
@media (max-width: 699px) {
  .trust__item { flex-direction: column; align-items: center; text-align: center; }
}
@media (min-width: 900px) { .tg-cta { padding-block: 0 96px; } .tg-cta__in { grid-template-columns: auto 1fr auto; align-items: center; padding: 36px 44px; gap: 28px; } }

/* ── Page head & breadcrumb ──────────────────────────────────────────────── */
.page-head { background: var(--cream); border-bottom: 1px solid var(--line); padding-block: 20px 24px; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); color: var(--green-900); margin-top: 6px; }
.page-head__lead { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.page-head--slim { padding-block: 16px 20px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a:hover { color: var(--green-900); }
.crumbs [aria-current] { color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; padding: 8px 18px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 500; transition: .2s; }
.chip:hover { border-color: var(--green-900); }
.chip.is-active { background: var(--green-900); border-color: var(--green-900); color: var(--ivory); }

/* ── Shop ────────────────────────────────────────────────────────────────── */
.shop { display: grid; gap: 24px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.toolbar__count { color: var(--muted); font-size: 14px; margin-inline-end: auto; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; height: 40px; padding-inline: 16px 36px; font-size: 14px; cursor: pointer; }
.select .icon { position: absolute; inset-inline-end: 12px; pointer-events: none; color: var(--muted); }
.select--field { display: flex; }
.select--field select { width: 100%; height: 48px; border-radius: var(--radius-sm); }
.select select:disabled { cursor: not-allowed; color: var(--muted); }

.filters { position: fixed; inset: 0; z-index: var(--z-drawer); background: var(--ivory); padding: 20px var(--pad); overflow-y: auto; display: none; }
.filters.is-open { display: block; animation: fade .2s; }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters__head h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; color: var(--green-900); }
.filters fieldset { min-width: 0; border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0; }
.filters legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 10px; }
.filters__actions { display: grid; gap: 4px; padding-top: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding-block: 6px; cursor: pointer; font-size: 15px; }
.check input { position: absolute; opacity: 0; }
.check__box { width: 22px; height: 22px; border: 1.5px solid #CFC5B0; border-radius: 6px; display: grid; place-items: center; background: var(--paper); color: transparent; transition: .15s; }
.check input:checked + .check__box { background: var(--green-900); border-color: var(--green-900); color: var(--gold-light); }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.range input { height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding-inline: 12px; background: var(--paper); width: 100%; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.switch input { position: absolute; opacity: 0; }
.switch__track { width: 42px; height: 24px; border-radius: 999px; background: #D8CFBC; position: relative; transition: .2s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s var(--ease); box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.switch input:checked + .switch__track { background: var(--green-900); }
.switch input:checked + .switch__track::after { inset-inline-start: 21px; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
@media (min-width: 1000px) {
  .shop { grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
  .filters { position: sticky; top: 104px; display: block; inset: auto; z-index: auto; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
  .filters__close, .toolbar__filters { display: none; }
}
.empty { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 56px 16px; color: var(--muted); }
.empty h2 { color: var(--green-900); font-size: 22px; }
.empty__ring { width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--green-900); background: var(--cream); }

/* ── Product page ────────────────────────────────────────────────────────── */
.pdp { display: grid; gap: 28px; margin-top: 18px; }
.gallery { display: grid; gap: 12px; }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); aspect-ratio: 1; }
.gallery__main > img, .gallery__main > .img-ph { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; }
.gallery__thumb { width: 76px; height: 76px; padding: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--paper); opacity: .7; transition: .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--gold); opacity: 1; }
.pdp__top { display: flex; align-items: center; gap: 10px; }
.pdp__title { font-size: clamp(24px, 3.4vw, 34px); color: var(--green-900); margin-top: 4px; }
.pdp__stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--green-700); }
.pdp__stock.is-out { color: var(--danger); }
.pdp__desc { color: #4A463E; margin-block: 16px; max-width: 60ch; }
.swatches { border: 0; padding: 0; margin: 0 0 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.swatches legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.swatches legend b { color: var(--ink); font-weight: 600; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span:not(.sr-only) { display: block; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--gold); }
.swatch input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.swatch--black-rose span:not(.sr-only) { background: radial-gradient(circle at 35% 35%, #3a3a3a 0 18%, transparent 19%), radial-gradient(circle at 65% 62%, #555 0 14%, transparent 15%), #F4EFE4; }
.swatch--green-rose span:not(.sr-only) { background: radial-gradient(circle at 35% 35%, #4E7A5C 0 18%, transparent 19%), radial-gradient(circle at 65% 62%, #7FA087 0 14%, transparent 15%), #F4EFE4; }
.buy { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); height: 48px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--green-900); border-radius: 999px; }
.qty button:hover { background: var(--cream); }
.qty input { width: 36px; text-align: center; border: 0; background: none; font-weight: 700; outline: none; }
.qty--sm { height: 40px; }
/* Plus comes first in reading order: on the right in Persian; English expects − 1 + from left to right. */
[dir="ltr"] .qty { flex-direction: row-reverse; }
.qty--sm button { width: 36px; }
.pdp__ask { display: inline-flex; align-items: center; gap: 8px; color: var(--green-900); font-weight: 600; font-size: 14px; padding: 8px 0; }
.pdp__ask:hover { color: var(--gold-deep); }
.specs { margin-top: 18px; border-top: 1px solid var(--line); }
.specs details { border-bottom: 1px solid var(--line); }
.specs summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 0; font-weight: 700; cursor: pointer; color: var(--green-900); }
.specs summary::-webkit-details-marker { display: none; }
.specs summary small { font-weight: 400; color: var(--muted); }
.specs__chev { margin-inline-start: auto; transition: transform .2s; color: var(--muted); }
.specs details[open] .specs__chev { transform: rotate(180deg); }
.specs details > p { padding-bottom: 16px; color: #4A463E; }
.dims { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 15px; }
.dims th, .dims td { padding: 10px 12px; text-align: start; border-bottom: 1px dashed var(--line); }
.dims th { font-weight: 500; color: #4A463E; }
.dims td { font-weight: 700; color: var(--green-900); text-align: end; }
.dims tr:nth-child(odd) { background: var(--cream); }
.buybar { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgb(0 0 0 / .25); }
/* Room for the fixed mobile buy bar, inside the (green) footer so no ivory strip shows. */
.page-product .footer__bottom { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
  .gallery { position: sticky; top: 108px; grid-template-columns: 84px 1fr; }
  .gallery__thumbs { flex-direction: column; order: -1; }
  .gallery__main { grid-column: 2; }
  .buybar { display: none; }
  .page-product .footer__bottom { padding-bottom: 0; }
}

/* ── Cart & checkout ─────────────────────────────────────────────────────── */
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 14px 0 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 24px; height: 1px; background: var(--line); }
.steps__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 12px; }
.steps .is-current { color: var(--green-900); font-weight: 700; }
.steps .is-current .steps__dot { background: var(--green-900); color: var(--gold-light); border-color: var(--green-900); }
.steps .is-done .steps__dot { background: var(--gold); border-color: var(--gold); color: var(--green-950); }

.cart { display: grid; gap: 24px; }
@media (min-width: 960px) { .cart { grid-template-columns: 1fr 360px; gap: 36px; align-items: start; } }
.freeship { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; font-size: 14px; }
.freeship__bar { height: 6px; border-radius: 99px; background: var(--cream); margin-top: 8px; overflow: hidden; }
.freeship__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--green-700)); border-radius: 99px; transition: width .4s var(--ease); }
.lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; grid-template-areas: "img info rm" "img qty total"; gap: 8px 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.line__img { grid-area: img; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); aspect-ratio: 1; align-self: start; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__info { grid-area: info; display: grid; line-height: 1.6; min-width: 0; }
.line__name { font-weight: 600; }
.line__name:hover { color: var(--green-900); }
.line__unit { font-size: 13px; color: var(--muted); }
.line .qty { grid-area: qty; justify-self: start; }
.line__total { grid-area: total; color: var(--green-900); white-space: nowrap; }
.line__rm { grid-area: rm; align-self: start; color: var(--muted); width: 40px; height: 40px; }
.line__rm:hover { color: var(--danger); background: #F6E6E2; }
.line.is-leaving { opacity: 0; transform: translateX(20px); transition: .25s; }
@media (min-width: 700px) {
  .line { grid-template-columns: 96px 1fr auto 150px 44px; grid-template-areas: "img info qty total rm"; padding: 14px 16px; }
  .line__total { text-align: end; }
  .line__rm { align-self: center; }
}
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; position: relative; }
.summary::before { content: ""; position: absolute; inset-inline: 20px; top: 0; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }
@media (min-width: 960px) { .summary { position: sticky; top: 108px; } }
.summary h2 { font-size: 18px; color: var(--green-900); }
.summary__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.summary__items:empty { display: none; }
.summary__items li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.summary__items img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--cream); flex: none; }
.summary__items span { flex: 1; line-height: 1.5; }
.summary__items small { color: var(--muted); display: block; }
.summary dl { margin: 0; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.summary dl div { display: flex; justify-content: space-between; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary__total { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.summary__total dt { color: var(--ink); font-weight: 700; }
.summary__total dd { color: var(--green-900); font-size: 20px; font-weight: 800; }
.summary__note { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.summary__note .icon { flex: none; margin-block-start: 3px; color: var(--green-700); }
.summary__secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.link-arrow--back { font-size: 14px; }

.checkout { display: grid; gap: 16px; }
.notice { display: flex; align-items: center; gap: 8px; background: var(--green-100); color: var(--green-900); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; min-width: 0; }
.panel__title { font-size: 17px; font-weight: 700; color: var(--green-900); display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 16px; float: inline-start; width: 100%; }
.panel__title span { width: 28px; height: 28px; border-radius: 50%; background: var(--cream); border: 1px solid var(--gold); color: var(--gold-deep); display: grid; place-items: center; font-size: 13px; }
.form-grid { display: grid; gap: 14px; clear: both; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; border: 1px solid #DCD2BF; border-radius: var(--radius-sm); background: var(--ivory); padding: 12px 14px; min-height: 48px; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input[dir="ltr"] { text-align: end; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: var(--gold); background: var(--paper); box-shadow: 0 0 0 3px rgb(201 165 90 / .2); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: 13px; }
.options { display: grid; gap: 10px; clear: both; }
.option input { position: absolute; opacity: 0; }
.option__box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: .2s; background: var(--ivory); }
.option__box > .icon { color: var(--gold-deep); }
.option__box > span { flex: 1; display: grid; line-height: 1.6; }
.option__box small { color: var(--muted); font-size: 13px; }
.option__box b { font-size: 14px; color: var(--green-900); white-space: nowrap; }
.option input:checked + .option__box { border-color: var(--green-900); background: var(--paper); box-shadow: inset 0 0 0 1px var(--green-900); }
.option input:focus-visible + .option__box { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.form-ok { display: flex; align-items: center; gap: 8px; color: var(--green-700); margin-top: 12px; font-weight: 600; }

/* order complete / 404 */
.done { text-align: center; display: grid; justify-items: center; gap: 14px; max-width: 560px; }
.done__ring { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--green-900); color: var(--gold-light); box-shadow: 0 0 0 8px var(--cream), 0 0 0 9px var(--gold); animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.done h1 { font-size: clamp(24px, 4vw, 34px); color: var(--green-900); }
.done p { color: var(--muted); }
.done__num b { color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.done__big { font-size: 96px !important; line-height: 1; }
.done__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ── About & contact ─────────────────────────────────────────────────────── */
.story { display: grid; gap: 32px; align-items: center; }
.story__media { margin: 0; }
.story__media img { border-radius: 240px 240px var(--radius) var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; }
.story__copy { display: grid; gap: 14px; }
.story__copy > p:not(.eyebrow) { color: #4A463E; }
.story__lead { font-size: 20px; font-weight: 600; color: var(--green-900) !important; line-height: 1.8; }
.story__slogan { font-style: italic; color: var(--gold-deep) !important; text-align: end; }
@media (min-width: 900px) { .story { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.values { display: grid; gap: 28px; }
.value { text-align: center; display: grid; justify-items: center; gap: 8px; }
.value__icon { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); display: grid; place-items: center; }
.value h2 { font-size: 18px; }
.value p { color: rgb(250 246 238 / .78); }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } }

.contact { display: grid; gap: 24px; }
.contact__cards { display: grid; gap: 12px; align-content: start; }
.ccard { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .2s, box-shadow .2s; }
a.ccard:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.ccard__icon { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--green-900); color: var(--gold-light); }
.ccard > span:last-child { display: grid; line-height: 1.6; }
.ccard small { color: var(--muted); font-size: 13px; }
.ccard b { font-weight: 600; }
.contact__form { display: grid; gap: 16px; }
@media (min-width: 900px) { .contact { grid-template-columns: 380px 1fr; gap: 36px; } }

/* ── Checkout: buyer, other recipient, saved addresses, payment ─────────── */
.buyer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; clear: both; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ivory); border: 1px solid var(--line); margin-bottom: 10px; }
.buyer__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green-900); color: var(--gold-light); flex: none; }
.buyer__who { display: grid; line-height: 1.6; }
.buyer__who span { color: var(--muted); font-size: 14px; justify-self: start; }
.buyer__note { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; }
.panel__hint { clear: both; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.reveal { margin-top: 10px; }
/* Shown only while their switch is on. Browsers without :has() just show them. */
.panel:not(:has([data-other]:checked)) .reveal--other,
.panel:not(:has(input[name="addr"][value="new"]:checked)) .reveal--new { display: none; }
.addr-options { margin-bottom: 4px; }
.option__to { color: var(--gold-deep) !important; }
.option--off .option__box { cursor: not-allowed; opacity: .62; background: var(--cream); }
.option__soon { padding: 2px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--gold); color: var(--gold-deep) !important; font-size: 12px !important; }

/* ── Card-to-card: where to pay, then the receipt ─────────────────────────── */
.transfer { width: 100%; display: grid; gap: 12px; text-align: start; }
.transfer .panel__title { float: none; margin-bottom: 0; }
.transfer__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.transfer__steps > li { display: grid; gap: 10px; position: relative; padding-inline-start: 40px; counter-increment: step; }
.transfer__steps > li::before {
  content: counter(step, persian); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); border: 1px solid var(--gold); color: var(--gold-deep); font-size: 13px; font-weight: 700;
}
.transfer__lead { color: var(--ink) !important; font-weight: 600; margin: 0; line-height: 1.8; }
.transfer__acct { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.transfer__acct div { align-items: center; flex-wrap: wrap; }
.transfer__acct .transfer__long { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding-block: 4px; }
.transfer__long + .transfer__long { border-top: 1px dashed var(--line); padding-top: 10px; }
.transfer__long dd { grid-column: 1 / -1; text-align: end; }
.transfer__num { font-size: 18px; letter-spacing: .03em; color: var(--green-900); white-space: nowrap; }
.transfer__num--sheba { font-size: 15px; letter-spacing: .01em; }
@media (max-width: 420px) { .transfer__num { font-size: 16px; } .transfer__num--sheba { font-size: 13px; letter-spacing: 0; } }
.copy-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--green-900); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.copy-btn:hover { border-color: var(--gold); }
.copy-btn.is-done { background: var(--green-900); border-color: var(--green-900); color: var(--gold-light); }
@media (pointer: coarse) { .copy-btn { width: 44px; height: 44px; } }
.receipts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.receipt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ivory); }
.receipt__icon { color: var(--gold-deep); padding-top: 2px; }
.receipt__body { display: grid; line-height: 1.6; }
.receipt__body small { color: var(--muted); font-size: 13px; }
.receipt--approved { border-color: var(--green-900); }
.receipt--approved b { color: var(--green-900); }
.receipt--rejected { border-color: var(--danger); }
.receipt--rejected b, .receipt__reason { color: var(--danger) !important; }
.receipt-form { display: grid; gap: 12px; }
.drop {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--gold); border-radius: var(--radius); background: var(--ivory); transition: background .2s, border-color .2s;
}
.drop:hover, .drop:focus-within { background: var(--paper); border-color: var(--gold-deep); }
.drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop__icon { color: var(--gold-deep); }
.drop__title { font-weight: 700; color: var(--green-900); overflow-wrap: anywhere; }
.drop__hint { color: var(--muted); font-size: 13px; }
.drop__preview { max-height: 180px; max-width: 100%; border-radius: var(--radius-sm); object-fit: contain; }
.drop:has(.drop__input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* ── Site-wide bars: announcement, ordering closed, maintenance (staff only) ─ */
.sitebar { font-size: 14px; text-align: center; line-height: 1.7; }
.sitebar .wrap { display: flex; align-items: center; justify-content: center; gap: 8px; padding-block: 8px; }
.sitebar .icon { flex: none; }
.sitebar--news { background: var(--gold); color: var(--green-950); font-weight: 600; }
.sitebar--closed { background: var(--cream); color: var(--danger); border-bottom: 1px solid var(--line); }
.sitebar--staff { background: var(--ink); color: var(--ivory); }
.buy-closed { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--cream); color: var(--danger); font-size: 14.5px; }

/* ── Captcha (vendored ALTCHA widget; it styles itself from these variables) ── */
altcha-widget {
  display: block;
  --altcha-max-width: 100%;
  --altcha-border-radius: var(--radius-sm);
  --altcha-border-color: var(--line);
  --altcha-color-base: var(--ivory);
  --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--green-900);
  --altcha-color-primary-content: var(--ivory);
  --altcha-color-success: var(--green-900);
  --altcha-color-success-content: var(--ivory);
  --altcha-color-error: var(--danger);
  --altcha-color-neutral: var(--muted);
  --altcha-shadow: none;
}
html body altcha-widget .altcha-main { --altcha-padding: 12px 14px; min-height: 52px; box-sizing: border-box; justify-content: center; }
altcha-widget label { font-weight: 600; cursor: pointer; }
.captcha { display: grid; gap: 6px; margin-block: 14px; }
.captcha.has-error altcha-widget { --altcha-border-color: var(--danger); }

/* ── Help and legal pages (templates/page.html; pages.Page) ─────────────── */
.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq__item[open] { border-color: var(--gold); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  padding: 12px 18px; cursor: pointer; list-style: none; font-weight: 700; color: var(--green-900); font-size: 16.5px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-deep); }
.faq__item summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; border-radius: var(--radius); }
.faq__chev { flex: none; color: var(--gold-deep); transition: transform .2s var(--ease); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 18px 16px; font-size: 16px; }
.page__updated { margin-top: 28px; color: var(--muted); font-size: 13px; }
.page__more { margin-top: 28px; padding: 18px 20px; background: var(--cream); border-radius: var(--radius); }
.page__more h2 { font-size: 16px; color: var(--green-900); margin-bottom: 8px; }
.page__more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.page__more a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--green-700); }
.page__more a:hover { color: var(--gold-deep); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer__legal a { color: rgb(250 246 238 / .75); text-decoration: underline; text-decoration-color: rgb(227 201 135 / .4); text-underline-offset: 4px; }
.footer__legal a:hover { color: var(--gold-light); }

/* ── Maintenance holding page (templates/maintenance.html) ───────────────── */
.hold { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(70% 60% at 50% 0%, var(--green-700), var(--green-950)); color: var(--ivory); }
.hold__card { width: min(560px, 100%); display: grid; justify-items: center; gap: 14px; text-align: center; padding: 40px 24px; border: 1px solid rgb(227 201 135 / .35); border-radius: 220px 220px var(--radius) var(--radius); }
.hold__logo { width: 120px; height: auto; }
.hold h1 { color: var(--gold-light); font-size: clamp(26px, 5vw, 36px); }
.hold p { color: rgb(250 246 238 / .85); max-width: 46ch; margin: 0; }
.hold__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
[dir="rtl"] .hold__tel { flex-direction: row-reverse; }
.hold__staff { font-size: 13px; margin-top: 10px !important; }
.hold__staff a { color: rgb(250 246 238 / .6); text-decoration: underline; }
.hold__staff a:hover { color: var(--gold-light); }

/* The hang tags' QR page (templates/qr.html, /qr): the holding page's look with a column of big buttons, phone first.
   The first button is gold, the rest outlined. */
.qrpage__card { width: min(440px, 100%); gap: 12px; padding: 36px 18px 26px; box-sizing: border-box; }
.hold .qrpage__slogan { color: var(--gold-light); font-style: italic; }
.qrpage__links { width: 100%; display: grid; gap: 12px; margin-top: 14px; }
.qrlink {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; box-sizing: border-box;
  border: 1px solid rgb(227 201 135 / .45); border-radius: var(--radius); background: rgb(250 246 238 / .06);
  color: var(--ivory); text-align: start; text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.qrlink:hover { background: rgb(250 246 238 / .12); border-color: var(--gold-light); }
.qrlink:active { transform: translateY(1px); }
.qrlink:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.qrlink__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgb(227 201 135 / .5); color: var(--gold-light);
}
.qrlink__icon img { width: 24px; height: 24px; object-fit: contain; }
.qrlink__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qrlink__text b { font-size: 16px; font-weight: 700; }
.qrlink__text small { font-size: 12.5px; color: rgb(250 246 238 / .75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrlink__go { flex: none; color: var(--gold-light); }
.qrlink--main { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.qrlink--main:hover { background: var(--gold-light); border-color: var(--gold-light); }
.qrlink--main .qrlink__icon { border-color: rgb(22 55 38 / .35); color: var(--green-950); }
.qrlink--main .qrlink__text small, .qrlink--main .qrlink__go { color: var(--green-950); }

/* ── Blog ─────────────────────────────────────────────────────────────────── */
.wrap--text { max-width: calc(760px + 2 * var(--pad)); }
.posts { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--cream); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__ph { display: grid; place-items: center; height: 100%; color: var(--gold-deep); }
.post-card__body { display: grid; gap: 8px; padding: 16px 18px 18px; align-content: start; flex: 1; }
.post-card__body time { color: var(--gold-deep); font-size: 13px; font-weight: 600; }
.post-card__body h3 { font-size: 18px; line-height: 1.6; color: var(--green-900); }
.post-card__body h3 a:hover { color: var(--gold-deep); }
.post-card__body p { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__body .link-arrow { margin-top: auto; justify-self: start; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.post__head { background: var(--cream); border-bottom: 1px solid var(--line); padding-block: 20px 28px; margin-bottom: 28px; }
.post__head h1 { font-size: clamp(26px, 4.5vw, 40px); line-height: 1.5; color: var(--green-900); margin-top: 8px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-top: 10px; }
.post__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post__meta .icon { color: var(--gold-deep); }
.post__lead { margin-top: 12px; font-size: 17px; color: var(--ink); max-width: 62ch; }
.post__cover { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 28px; aspect-ratio: 16 / 9; object-fit: cover; }
.post__swash { width: 120px; margin: 36px auto 48px; color: var(--gold); }
.prose { font-size: 17px; line-height: 2.05; color: var(--ink); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(21px, 3vw, 26px); color: var(--green-900); margin-top: 1.8em; line-height: 1.6; }
.prose h3 { font-size: 19px; color: var(--green-900); margin-top: 1.5em; }
.prose a { color: var(--green-700); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.prose a:hover { color: var(--gold-deep); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--gold-deep); }
.prose ol { list-style: persian; }
.prose img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 560px; margin-inline: auto;
  border-radius: var(--radius);  /* a portrait photo stays at most 560px tall, centred */
}
.prose p:has(> img) { text-align: center; }
.prose hr ~ p:has(> em:only-child) { font-size: 14px; line-height: 1.9; color: var(--muted); }
.prose hr ~ p > em:only-child { font-style: normal; }  /* credits after a rule */
.prose p:has(> img) > em { display: block; margin-top: 10px; font-size: 14px; line-height: 1.9; font-style: normal; color: var(--muted); }
.prose blockquote { margin-inline: 0; padding: 12px 18px; border-inline-start: 3px solid var(--gold); background: var(--cream); border-radius: var(--radius-sm); color: var(--ink); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; }
.prose th { background: var(--cream); }
.prose code { background: var(--cream); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose strong { color: var(--green-900); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--green-950); color: rgb(250 246 238 / .8); font-size: 14.5px; margin-top: 0; }
.footer__grid { display: grid; gap: 32px; padding-block: 48px 32px; }
.footer__brand img { width: 128px; margin-bottom: 14px; }
.footer__brand p { max-width: 34ch; }
.footer__slogan { color: var(--gold-light); font-style: italic; margin-top: 8px !important; text-align: start; }
.footer h3 { color: var(--gold-light); font-size: 15px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a:hover { color: var(--gold-light); }
.footer__contact li { display: flex; align-items: center; gap: 8px; }
.footer__contact .icon { color: var(--gold); }
[dir="rtl"] .footer__contact .footer__tel { flex-direction: row-reverse; justify-content: flex-end; }
/* Social links: round icon buttons (footer and maintenance page on green, the phone menu on ivory). */
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgb(227 201 135 / .35); color: var(--gold-light); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.socials img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.socials--footer { margin-top: 16px; }
.socials--drawer { justify-content: center; }
.socials--drawer a { border-color: var(--line); color: var(--green-900); }
.socials--drawer a:hover { background: var(--green-900); border-color: var(--green-900); color: var(--cream); }
.socials--hold { justify-content: center; margin-top: 14px; }
.ccard__icon img { width: 26px; height: 26px; object-fit: contain; border-radius: 4px; }
.trust-badges { display: flex; gap: 10px; margin-top: 18px; }
.trust-badge { width: 84px; height: 84px; border-radius: var(--radius-sm); background: rgb(255 255 255 / .06); border: 1px dashed rgb(227 201 135 / .35); display: grid; place-items: center; align-content: center; gap: 4px; color: var(--gold-light); text-align: center; }
.trust-badge small { font-size: 11px; color: rgb(250 246 238 / .7); line-height: 1.4; padding-inline: 4px; }
/* e-Namad: the same frame as its neighbour; their logo (on a white plate) fades in over our shield once it
   has loaded. main.js adds --wait while it hasn't; without JS the logo just shows. */
.trust-badge--seal { padding: 5px; }
.trust-badge--seal > * { grid-area: 1 / 1; transition: opacity .3s; }
.trust-badge__wait { display: grid; justify-items: center; gap: 4px; }
.trust-badge--seal img { block-size: 72px; inline-size: auto; padding: 3px; border-radius: 6px; background: var(--paper); }
.trust-badge--seal:not(.trust-badge--wait) .trust-badge__wait, .trust-badge--wait img { opacity: 0; }
.footer__bottom { border-top: 1px solid rgb(227 201 135 / .15); }
.footer__bottom .wrap { display: grid; justify-items: center; gap: 6px; padding-block: 18px 22px; font-size: 13px; color: rgb(250 246 238 / .6); }
.footer__bottom .swash { width: 90px; opacity: .8; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px 40px; } }
/* Phones: centred; brand and contact full width, the two link lists side by side. */
@media (max-width: 799px) {
  .footer { font-size: 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; padding-block: 34px 26px; justify-items: center; text-align: center; }
  .footer__brand, .footer__grid > .footer__wide { grid-column: 1 / -1; }
  .footer__brand { display: grid; justify-items: center; }
  .footer__brand img { width: 92px; margin-bottom: 8px; }
  .footer__brand p { margin-inline: auto; }
  .footer__slogan { text-align: center; margin-top: 4px !important; }
  .footer h3 { margin-bottom: 8px; }
  .footer ul { justify-items: center; gap: 4px; }
  .footer__contact { grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); justify-content: center; column-gap: 20px; }
  .footer__contact li, [dir="rtl"] .footer__contact .footer__tel { justify-content: center; }
  .footer__contact .footer__addr { grid-column: 1 / -1; }
  .socials--footer { justify-content: center; margin-top: 12px; }
  .trust-badges { justify-content: center; margin-top: 14px; }
  .trust-badge { width: 72px; height: 72px; }
  .trust-badge--seal { padding: 4px; }
  .trust-badge--seal img { block-size: 62px; }
}

/* ── Forms: extras ───────────────────────────────────────────────────────── */
.notice--warn { background: var(--cream); color: var(--danger); }
.notice--warn a { text-decoration: underline; font-weight: 600; }
.btn--danger { color: var(--danger); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.line > form[data-line-remove] { grid-area: rm; align-self: start; }
@media (min-width: 700px) { .line > form[data-line-remove] { align-self: center; } }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.check.field--full { clear: both; }
.summary__off dd { color: var(--green-700); }
.discount { border-top: 1px solid var(--line); padding-top: 14px; }
.discount__row { display: flex; gap: 8px; }
.discount__row input { flex: 1; min-width: 0; }
.discount__on { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--green-900); }
.discount__on .btn { margin-inline-start: auto; min-height: 44px; }

/* ── Login ───────────────────────────────────────────────────────────────── */
.auth { display: grid; place-items: center; }
.auth__panel { width: 100%; max-width: 440px; display: grid; gap: 16px; justify-items: center; text-align: center; padding: 32px 24px; }
.auth__panel form, .auth__panel .field { width: 100%; text-align: start; }
.auth__panel form { display: grid; gap: 14px; }
.auth__ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--green-900); color: var(--gold-light); box-shadow: 0 0 0 6px var(--cream), 0 0 0 7px var(--gold); }
.auth__title { font-size: clamp(22px, 3.4vw, 28px); color: var(--green-900); }
.auth__lead { color: var(--muted); font-size: 15px; }
.auth__code { text-align: center !important; letter-spacing: .5em; font-size: 22px !important; font-weight: 700; }
.auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; width: 100%; }
.auth__links .btn { min-height: 44px; padding-inline: 10px; }

/* ── Account ─────────────────────────────────────────────────────────────── */
.account { display: grid; gap: 24px; align-items: start; }
.account__nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.account__nav a, .account__nav button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); white-space: nowrap; font-size: 15px;
}
.account__nav a:hover, .account__nav button:hover { border-color: var(--gold); }
.account__nav a[aria-current="page"] { background: var(--green-900); color: var(--ivory); border-color: var(--green-900); }
.account__nav a[aria-current="page"] .icon { color: var(--gold-light); }
.account__nav button { color: var(--muted); }
.account__main { display: grid; gap: 18px; min-width: 0; }
.account__h { font-size: 20px; color: var(--green-900); }
@media (min-width: 900px) {
  .account { grid-template-columns: 240px 1fr; gap: 36px; }
  .account__nav { flex-direction: column; overflow: visible; position: sticky; top: 108px; }
  .account__nav a, .account__nav button { border-radius: var(--radius-sm); justify-content: flex-start; }
}
.profile__row { display: flex; gap: 10px; }
.profile__row input { flex: 1; min-width: 0; }

.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.order-row { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.order-row__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-row__meta { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 14px; }
.order-row__meta dt { color: var(--muted); font-size: 12.5px; }
.order-row__meta dd { margin: 0; font-weight: 600; }
.order-row .link-arrow { justify-self: end; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--cream); color: var(--gold-deep); }
.status--paid, .status--processing { background: var(--green-100); color: var(--green-900); }
.status--shipped { background: var(--green-700); color: var(--ivory); }
.status--delivered { background: var(--green-900); color: var(--gold-light); }
.status--canceled, .status--returned { background: var(--cream); color: var(--danger); }
.status--refunded { background: var(--cream); color: var(--muted); }

.tracking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tracking > span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.tracking b { font-size: 18px; letter-spacing: .04em; }
.tracking .link-arrow { margin-inline-start: auto; }
.order-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1000px) { .order-grid { grid-template-columns: 1.2fr 1fr; } }
.order-grid .panel { display: grid; gap: 12px; }
.order-grid .panel__title, .done__pay .panel__title { float: none; margin-bottom: 0; }
.kv { margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.kv--totals { border-top: 1px solid var(--line); padding-top: 10px; }
.kv__total dd { color: var(--green-900); font-size: 18px; font-weight: 800; }
.timeline__title { margin-top: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; padding-inline-start: 22px; padding-bottom: 12px; line-height: 1.6; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 4px; top: 19px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { background: var(--green-900); box-shadow: 0 0 0 3px var(--green-100); }
.timeline small { color: var(--muted); }

.addresses { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.address { display: grid; gap: 10px; }
.address--default { border-color: var(--gold); }
.address p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.address__actions, .address__actions form { display: flex; flex-wrap: wrap; gap: 4px; }
.address__actions .btn { min-height: 44px; padding-inline: 10px; }

main { flex: 1 0 auto; }

/* ── Header previews: account menu + mini cart (desktop hover) ────────────── */
.hdrop { position: relative; }
.hdrop__panel { display: none; }
@media (hover: hover) and (min-width: 1000px) {
  .hdrop__panel {
    display: block; position: absolute; top: 100%; inset-inline-end: -8px; z-index: calc(var(--z-header) + 1);
    width: 360px; padding-top: 10px; /* hover bridge between icon and card */
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s var(--ease) .12s, transform .18s var(--ease) .12s, visibility 0s linear .3s;
  }
  .hdrop:hover .hdrop__panel, .hdrop:focus-within .hdrop__panel {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .18s var(--ease) .06s, transform .18s var(--ease) .06s, visibility 0s;
  }
  .hdrop:has(.acct) .hdrop__panel { width: 290px; }
}
.hdrop__card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 14px;
}
.hdrop__card::before { content: ""; position: absolute; inset-inline: 20px; top: 0; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }

.acct__head { display: flex; align-items: center; gap: 12px; }
.acct__head > div { display: grid; line-height: 1.5; min-width: 0; }
.acct__head b { color: var(--green-900); }
.acct__head small { color: var(--muted); font-size: 13px; text-align: end; }
.acct__ring { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green-900); color: var(--gold-light); box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--gold); }
.acct__links { display: grid; gap: 2px; border-block: 1px solid var(--line); padding-block: 8px; }
.acct__links a, .acct__out {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ink); border: 0; background: none; width: 100%; text-align: start;
}
.acct__links a .icon, .acct__out .icon { color: var(--gold-deep); }
.acct__links a:hover, .acct__out:hover { background: var(--cream); color: var(--green-900); }
.acct__out { color: var(--muted); }
.acct__count { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--green-950); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.acct__title { font-weight: 700; color: var(--green-900); font-size: 17px; }
.acct__text { color: var(--muted); font-size: 14px; line-height: 1.8; }

.mini { display: grid; gap: 12px; }
.mini__head { font-weight: 700; color: var(--green-900); }
.mini__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.mini__line { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.mini__img { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.mini__img img, .mini__img .img-ph { width: 100%; height: 100%; object-fit: cover; }
.mini__img .img-ph img { width: 30px; height: 30px; }
.mini__img .img-ph span { display: none; }
.mini__info { display: grid; line-height: 1.5; min-width: 0; }
.mini__name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__name:hover { color: var(--green-900); }
.mini__info small { color: var(--muted); font-size: 12.5px; }
.mini__rm { width: 44px; height: 44px; color: var(--muted); }
.mini__rm:hover { color: var(--danger); background: var(--cream); }
.mini__more { font-size: 13px; color: var(--muted); }
.mini__free { font-size: 13px; color: var(--ink); background: var(--cream); border-radius: var(--radius-sm); padding: 10px 12px; }
.mini__free .freeship__bar { background: var(--paper); }
.mini__total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 12px; }
.mini__total span { color: var(--muted); }
.mini__total b { color: var(--green-900); font-size: 17px; }
.mini__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini .btn, .acct .btn { min-height: 44px; }
.mini__empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding-block: 6px; color: var(--muted); }
.mini__empty .empty__ring { width: 64px; height: 64px; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; z-index: var(--z-toast); inset-inline: 16px; bottom: 84px; margin-inline: auto; max-width: 420px;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--green-900); color: var(--ivory); box-shadow: var(--shadow-lg); font-size: 14.5px;
  animation: toast-in .35s var(--ease);
}
.toast .icon { color: var(--gold-light); }
.toast span { flex: 1; }
.toast a { color: var(--gold-light); font-weight: 700; white-space: nowrap; }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } }
@media (min-width: 900px) { .toast { bottom: 24px; inset-inline: auto 24px; } }

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