/* ==========================================================================
   ADITAK — Main stylesheet
   One stylesheet for every language. It uses "logical" properties
   (inline-start / inline-end instead of left / right), so the same rules
   work for Persian & Arabic (right-to-left) and English & Russian
   (left-to-right) without duplication.

   CONTENTS
   0.  Fonts
   1.  Design tokens (colours, fonts, sizes)  ← change the brand look here
   2.  Base / reset
   3.  Shared pieces (buttons, dividers, eyebrow, placeholders)
   4.  SECTION 1  — Header, language switcher, mobile menu
   5.  SECTION 2  — Hero
   5b. SECTION 2b — Client logos
   6.  SECTION 3  — Products intro + product cards
   7.  SECTION 4  — Sample request band
   8.  SECTIONS 5, 7, 9 — Full-width photo sections ("feature")
   9.  SECTIONS 6, 8 — Two-column text + photo ("split")
   10. SECTION 10 — Brand statement + messaging channels
   11. SECTION 11 — Footer
   12. Floating WhatsApp button + mobile bottom bar
   13. Scroll animations
   14. WordPress inner pages, forms
   15. «داستان‌های ما» (stories list + article page)
   16. «درباره ما» (about us page)
   17. «تماس با ما» (contact page + quote form)
   18. «مشتری ما شوید» (become a customer + application form)
   19. «راهکارها» (solutions overview + solution pages)
   20. «محصولات» (products overview, category pages, product pages)
   21. Header drop-down menus («محصولات», «راهکارها»)
   22. «درخواست نمونه» (request a sample)
   23. Shop — buy box, basket and checkout
   24. Solution pages — buying online
   25. Shop pages — basket, checkout, order received, sign-in/up, «حساب من»
   26. «جستجو» (the header panel, the results page, the filter above a long list)
   27. «در حال به‌روزرسانی» (the holding page)
   ========================================================================== */


/* 0. FONTS ----------------------------------------------------------------
   Self-hosted (no Google/CDN dependency — loads fast in Iran and abroad).
   Vazirmatn  → body text & UI      Noto Naskh Arabic → headings
   Both are free (SIL Open Font License). */
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("../fonts/naskh-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("../fonts/naskh-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("../fonts/naskh-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("../fonts/naskh-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }


/* 1. DESIGN TOKENS ---------------------------------------------------------
   Change a colour here and it changes everywhere on the site. */
:root {
  /* Colours */
  --white:          #ffffff;
  --cream:          #fcf9f7;   /* page background */
  --sand:           #f1ece6;   /* light beige panels */
  --ink:            #2a1a0c;   /* main dark brown text */
  --ink-soft:       #5c4a3a;   /* secondary text */
  --muted:          #8a7a6b;   /* small print */
  --honey:          #98701c;   /* golden headings (baklava syrup) */
  --honey-dark:     #6f5212;   /* golden body text (readable on beige) */
  --pistachio:      #dfe7b4;   /* statement band (pistachio) */
  --pistachio-ink:  #45511a;   /* text on pistachio */
  --whatsapp:       #13795b;   /* chat buttons */
  --sale:           #b4321f;   /* a live campaign: the badge, the new price (pomegranate) */
  --sale-dark:      #8c2415;   /* campaign text on its light tint */
  --sale-soft:      #fbebe6;   /* the campaign's light tint */
  --line-light:     rgba(255, 255, 255, .55);
  --line-honey:     rgba(152, 112, 28, .35);
  --overlay:        rgba(26, 16, 7, .48);  /* darkness over photos */

  /* Fonts */
  --font-body:    "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --font-display: "Noto Naskh Arabic", "Vazirmatn", Georgia, serif;

  /* Type sizes (they scale smoothly between phone and desktop) */
  --fs-hero: clamp(2.6rem, 1.3rem + 4.6vw, 5rem);      /* 80px on desktop */
  --fs-xl:   clamp(2rem, 1.1rem + 3.2vw, 3.75rem);     /* 60px */
  --fs-lg:   clamp(1.6rem, 1.1rem + 1.7vw, 2.5rem);    /* 40px */
  --fs-md:   clamp(1.3rem, 1.1rem + .6vw, 1.75rem);    /* 28px */
  --fs-body: 1rem;
  --fs-sm:   .875rem;
  --fs-xs:   .78rem;

  /* Layout */
  --gutter:    12px;      /* the thin white frame around photos */
  --pad:       clamp(1.25rem, 4vw, 3rem);
  --container: 1200px;
  --header-h:  96px;
  --pill:      999px;
}

/* For the English & Russian versions later (left-to-right pages). */
:lang(en), :lang(ru) {
  /* --font-body: "Inter", sans-serif;           ← add Latin/Cyrillic fonts when we build these pages
     --font-display: "Cormorant", serif; */
}


/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.45; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:where(ul[role="list"], .plain-list) { list-style: none; margin: 0; padding: 0; }   /* :where = never overrides section spacing */
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: .5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.visually-hidden, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.icon { width: 1.15em; height: 1.15em; flex: none; }
[dir="ltr"] .icon--flip { transform: scaleX(-1); }   /* arrows point the right way in LTR */


/* 3. SHARED PIECES -------------------------------------------------------- */

/* Buttons — thin pill outline, like the reference site */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 42px; padding: .4em 2em;
  border: 1px solid currentColor; border-radius: var(--pill);
  background: transparent; color: inherit;
  font: 500 var(--fs-sm)/1.4 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--solid-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--solid-light:hover { background: transparent; color: var(--white); }
.btn--ghost-light { color: var(--white); border-color: var(--line-light); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--ghost { color: var(--ink-soft); border-color: #b9ada2; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--honey { color: var(--honey); border-color: var(--honey); }
.btn--honey:hover { background: var(--honey); color: var(--white); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--honey); border-color: var(--honey); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* Thin horizontal line under headings */
.divider { border: 0; border-top: 1px solid var(--line-light); margin: 1.6rem auto; width: 100%; }
.divider--honey { border-top-color: var(--line-honey); }

/* Small label above a heading */
.eyebrow {
  display: block; margin-block-end: .6rem;
  font: 500 var(--fs-xs)/1.6 var(--font-body); letter-spacing: .04em;
  color: var(--honey);
}

/* Figures still to be filled in by Aditak (shown highlighted until replaced) */
.todo { background: rgba(255, 214, 102, .35); outline: 1px dashed currentColor; outline-offset: 2px; border-radius: 3px; padding-inline: .15em; }


/* 4. SECTION 1 — HEADER --------------------------------------------------- */
.site-header {
  position: absolute; inset-inline: 0; top: 0; z-index: 20;
  height: var(--header-h);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem;
  padding-inline: clamp(1rem, 2.5vw, 2.25rem);
  color: var(--white);
}
/* The menu stays on one line and can never run into the logo */
.nav-primary { min-width: 0; overflow-x: clip; overflow-clip-margin: 6px; }
.nav-primary > ul { display: flex; flex-wrap: nowrap; gap: clamp(1.1rem, 2vw, 2.1rem); }
/* 1.57.11: with «صفحه اصلی» the six links need a little less room between them on the narrowest screens that show the
   menu (1101–1279px: small laptops, tablets on their side) — from 12px up to the usual 2vw at 1280, wider unchanged */
@media (min-width: 1101px) and (max-width: 1279.98px) { .nav-primary > ul { gap: calc(7.64vw - 72.1px); } }
.nav-primary > ul > li > a {
  font-size: var(--fs-sm); text-decoration: none; padding-block: .4rem; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) no-repeat 50% 100% / 0 1px;
  transition: background-size .3s;
}
.nav-primary > ul > li > a:hover, .nav-primary > ul > li > a[aria-current="page"] { background-size: 100% 1px; }

.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.brand__fa { font-family: var(--font-display); font-size: 2rem; line-height: 1.2; }
.brand__en { direction: ltr; font-size: .6rem; letter-spacing: .5em; margin-inline-start: .5em; opacity: .85; }
/* The logo image (Customize → Site Identity → Logo, or the Site Icon); text name if there is none */
.brand--logo { display: block; line-height: 0; }
/* `.brand .brand__logo`, not `.brand__logo`: WooCommerce's «.woocommerce-page img { height: auto; max-width: 100% }» is stronger than
   one class, and on the basket, checkout and «حساب من» it drew the logo at its full size (1.55.2) */
.brand .brand__logo { height: 64px; width: auto; max-width: none; }
.mobile-nav .brand__logo { height: 48px; }
.footer-brand .brand__logo { height: 84px; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: .9rem; min-width: 0; }

/* Language switcher (pure HTML <details>, no JavaScript) */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem;
  font-size: var(--fs-sm); padding: .4rem .3rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang ul {
  position: absolute; top: calc(100% + .4rem); inset-inline-end: 0; min-width: 150px;
  background: var(--white); color: var(--ink); border-radius: 12px; padding: .4rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18); list-style: none; margin: 0;
}
.lang li a { display: block; padding: .45rem .8rem; border-radius: 8px; text-decoration: none; font-size: var(--fs-sm); }
.lang li a:hover { background: var(--sand); }
.lang li a[aria-current="true"] { color: var(--honey); font-weight: 500; }

/* Hamburger button (phones & tablets) */
.menu-btn {
  display: none; justify-self: start; background: none; border: 0; color: inherit;
  padding: .5rem; margin-inline-start: -.5rem; cursor: pointer;
}
.menu-btn .icon { width: 28px; height: 28px; }

/* Mobile menu — uses the built-in HTML "popover" feature, no JavaScript */
.mobile-nav[popover] {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; border: 0; padding: 1.25rem 1.5rem 2rem;
  background: var(--ink); color: var(--cream); overflow-y: auto;
}
.mobile-nav:popover-open { display: flex; flex-direction: column; gap: 2rem; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav__close { background: none; border: 0; color: inherit; padding: .5rem; cursor: pointer; }
.mobile-nav__close .icon { width: 26px; height: 26px; }
.mobile-nav__links a {
  display: block; padding-block: .55rem; text-decoration: none;
  font-family: var(--font-display); font-size: 1.7rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.mobile-nav__actions { display: grid; gap: .75rem; }
.mobile-nav__langs { display: flex; gap: 1.25rem; font-size: var(--fs-sm); }
.mobile-nav__langs a { text-decoration: none; opacity: .8; }

@media (max-width: 1100px) {
  .nav-primary { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 767px) {
  :root { --header-h: 76px; }
  .header-cta { display: none; }       /* the bottom bar shows the CTA on phones */
  .brand__fa { font-size: 1.65rem; }
  .site-header .brand__logo { height: 50px; }
}


/* 5. SECTION 2 — HERO ----------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh);
  display: grid; place-items: center; text-align: center;
  color: var(--white); background: var(--ink);
}
.hero__media, .hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after {           /* darkens the photo so the white text is readable */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20, 12, 5, .55) 0%, rgba(20, 12, 5, .30) 35%, rgba(20, 12, 5, .50) 100%);
}
.hero__content {
  width: min(100% - 2 * var(--pad), 920px);
  padding-block: calc(var(--header-h) + 2rem) 4rem;
}
.hero__eyebrow {
  display: block; margin-block-end: 1rem;
  font: 500 clamp(.85rem, .8rem + .3vw, 1.05rem)/1.7 var(--font-body); letter-spacing: .03em; opacity: .92;
}
.hero__headline { display: block; font-size: var(--fs-hero); line-height: 1.35; }
.hero .divider { width: min(100%, 760px); margin-block: 2rem; }
.hero__text { max-width: 600px; margin-inline: auto; font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 2.05; opacity: .95; }
.hero__actions { margin-top: 2.25rem; }


/* 5b. SECTION 2b — CLIENT LOGOS -------------------------------------------
   One calm, static row. Logos are one warm-grey tone and turn to full colour
   when the mouse is over them. Each logo's width (--lw) is set by its shape,
   so wide and square logos look equally important. */
.clients { padding: clamp(2.5rem, 4.5vw, 3.5rem) var(--pad) 0; text-align: center; background: var(--white); }
.clients__title {
  font: 500 var(--fs-xs)/1.8 var(--font-body); letter-spacing: .04em; color: var(--muted);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.clients__list {
  --logo-scale: 1;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1.75rem, 2.5vw + .5rem, 3.75rem) clamp(2rem, 4.5vw, 4.5rem);
  max-width: 1180px; margin: 0 auto; padding: 0; list-style: none;
}
.clients__list li { display: flex; align-items: center; justify-content: center; }
.clients__logo {
  width: calc(var(--lw, 120) * 1px * var(--logo-scale)); height: auto; max-width: 100%;
  filter: grayscale(1) sepia(.35) brightness(.7) contrast(.9); opacity: .62;
  transition: filter .35s ease, opacity .35s ease;
}
@media (hover: hover) {
  .clients__list li:hover .clients__logo { filter: none; opacity: 1; }
}
.clients::after {   /* thin line that separates the strip from the products */
  content: ""; display: block; width: min(1080px, 100%); height: 1px; margin: clamp(2.5rem, 4.5vw, 3.5rem) auto 0;
  background: linear-gradient(90deg, transparent, #e6ddd2 15%, #e6ddd2 85%, transparent);
}
.clients + .products .intro { padding-top: clamp(3rem, 6vw, 5rem); }
.clients__note {
  display: inline-block; margin-top: 1.5rem; padding: .35rem .9rem; border-radius: var(--pill);
  font-size: .72rem; line-height: 1.8; color: #8a5a00; background: #fff7e0; border: 1px dashed #d4a017;
}
@media (max-width: 767px) {
  .clients__list { --logo-scale: .68; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem .75rem; }
}


/* 6. SECTION 3 — PRODUCTS ------------------------------------------------- */
.intro { text-align: center; padding: clamp(4rem, 8vw, 6.5rem) var(--pad) clamp(2.5rem, 4vw, 3.5rem); }
.intro h2 { font-size: var(--fs-lg); color: var(--ink-soft); }
.intro p { max-width: 560px; margin: 1rem auto 1.75rem; color: var(--muted); font-size: var(--fs-sm); line-height: 2; }

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter);
  padding-inline: var(--gutter); margin: 0; list-style: none;
}
.product-card {
  position: relative; display: block; overflow: hidden; aspect-ratio: 11 / 16;
  background: var(--sand); color: var(--cream); text-decoration: none;
}
.product-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.product-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 16, 7, .78) 0%, rgba(26, 16, 7, .25) 38%, transparent 60%);
  transition: background-color .4s;
}
.product-card__body { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: clamp(1.1rem, 2vw, 1.75rem); }
.product-card h3 { font-size: var(--fs-md); }
.product-card p, .product-card__more {
  display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: var(--fs-sm); line-height: 1.9;
  transition: max-height .5s, opacity .4s, margin .4s;
}
.product-card__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.product-card:hover img, .product-card:focus-visible img { transform: scale(1.045); }
.product-card:hover::after, .product-card:focus-visible::after { background-color: rgba(26, 16, 7, .25); }
.product-card:hover p, .product-card:focus-visible p { max-height: 8em; opacity: 1; margin-top: .5rem; }
.product-card:hover .product-card__more, .product-card:focus-visible .product-card__more { max-height: 3em; opacity: 1; margin-top: .75rem; }
@media (hover: none) {       /* touch screens: always show the description */
  .product-card p { max-height: none; opacity: 1; margin-top: .4rem; }
  .product-card__more { max-height: none; opacity: 1; margin-top: .6rem; }
}
@media (max-width: 767px) {  /* phones: swipeable row */
  .product-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    scroll-padding-inline: var(--gutter);   /* cards snap to the same 12px frame */
  }
  .product-grid::-webkit-scrollbar { display: none; }
  .product-grid > li { scroll-snap-align: start; }
}


/* 7. SECTION 4 — SAMPLE REQUEST BAND ------------------------------------- */
.sample { padding: var(--gutter); }
.sample__panel {
  background: var(--sand); text-align: center; color: var(--honey);
  padding: clamp(2rem, 4vw, 2.75rem) var(--pad);
}
.sample__panel h2 { font-size: var(--fs-xl); line-height: 1.3; }
.sample__panel p { max-width: 720px; margin: .6rem auto 1.25rem; font-size: var(--fs-sm); color: var(--honey-dark); }
.sample__media { aspect-ratio: 16 / 7; background: var(--sand); overflow: hidden; }
.sample__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .sample__media { aspect-ratio: 4 / 3; } }


/* 8. SECTIONS 5, 7, 9 — FULL-WIDTH PHOTO SECTIONS ------------------------ */
.feature {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(480px, 42vw, 640px);
  display: grid; align-items: center;
  color: var(--white); background: var(--ink);
  padding-block: clamp(4rem, 7vw, 6rem);
}
.feature__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay); }
.feature__content { width: min(100% - 2 * var(--pad), var(--container)); margin-inline: auto; }
.feature h2 { font-size: var(--fs-xl); line-height: 1.3; }
.feature p { font-size: var(--fs-sm); line-height: 2.05; }
.feature .eyebrow { color: #e9d3a4; }

.feature--center { text-align: center; }
.feature--center .divider { width: min(100%, 820px); }
.feature--center p { max-width: 520px; margin-inline: auto; }
.feature--center .btn { margin-top: 1.75rem; }

.feature--start h2 { font-size: var(--fs-lg); }
.feature--start .divider { margin-inline: 0; }
.feature--start p { max-width: 460px; }
.feature--start .btn { margin-top: 1.5rem; }

/* Factory section: taller, with figures and the little vertical tab */
.feature--tall { min-height: clamp(560px, 50vw, 720px); padding-block-end: 9rem; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem;   /* spreads evenly, however many figures are filled in */
  max-width: 820px; margin: 2.5rem auto 0; padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
}
.stats div { display: flex; flex-direction: column-reverse; gap: .5rem; }
.stats dd { margin: 0; font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.2; }
.stats dt { font-size: var(--fs-xs); opacity: .85; line-height: 1.6; }
.stats .todo { display: inline-block; line-height: 1.15; padding: .05em .3em; }
@media (max-width: 767px) { .stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); row-gap: 1.5rem; } }

.feature__tab {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  writing-mode: vertical-rl;
  background: var(--pistachio); color: var(--pistachio-ink);
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em;
  padding: 1.1rem .55rem 1.4rem; border-radius: var(--pill) var(--pill) 0 0;
}


/* 9. SECTIONS 6, 8 — TWO COLUMNS: TEXT + PHOTO --------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--sand); min-height: clamp(520px, 40vw, 620px);
}
.split__text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 7vw, 7rem);
  color: var(--honey-dark);
}
.split__text h2 { font-size: var(--fs-lg); color: var(--honey); }
.split__text .divider { margin-inline: 0; margin-block: 1.25rem; max-width: 300px; }
.split__text p { font-size: var(--fs-sm); line-height: 2.05; max-width: 480px; }
.split__text .btn { margin-top: 1.75rem; }
.split__text p + p, .feature p + p, .hero__text + .hero__text, .intro p + p, .sample__panel p + p { margin-top: .9rem; }
.points { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: var(--fs-sm); }
.points li { display: flex; gap: .7rem; align-items: baseline; }
.points--light { color: var(--white); }
.points--light li::before { background: #e9d3a4; }
.feature .points { max-width: 460px; }
.feature--center .points { margin-inline: auto; justify-items: center; }
.points li::before {          /* small baklava-diamond bullet */
  content: ""; flex: none; width: 7px; height: 7px; background: var(--honey);
  transform: rotate(45deg) translateY(-2px);
}
.split__media { position: relative; margin: var(--gutter); margin-inline-start: 0; min-height: 340px; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: -1; margin-inline-start: var(--gutter); margin-inline-end: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media, .split--reverse .split__media { order: -1; margin: var(--gutter) var(--gutter) 0; aspect-ratio: 4 / 3; min-height: 0; }
}


/* 10. SECTION 10 — STATEMENT + CHANNELS ----------------------------------- */
.statement {
  background: var(--pistachio); color: var(--pistachio-ink); text-align: center;
  padding: clamp(4.5rem, 8vw, 7rem) var(--pad);
}
.statement h2 { font-size: var(--fs-lg); line-height: 1.6; }
.statement__mark { width: 54px; height: 54px; margin: 2rem auto; }
.statement__lead { font-size: var(--fs-sm); margin-bottom: 1rem; }
.channels { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.channels .btn { border-color: rgba(69, 81, 26, .45); min-width: 120px; }
.channels .btn:hover { background: var(--pistachio-ink); color: var(--pistachio); border-color: var(--pistachio-ink); }


/* 11. SECTION 11 — FOOTER ------------------------------------------------- */
.site-footer { background: var(--white); color: var(--ink); padding: clamp(3rem, 5vw, 4rem) var(--pad) 1.75rem; }
.footer-grid {
  display: grid; gap: 2rem 1.5rem;
  grid-template-columns: 1.3fr repeat(4, 1fr) 1.7fr;
}
.footer-brand .brand { align-items: flex-start; color: var(--ink); }
.footer-brand p { margin-top: .9rem; font-size: var(--fs-xs); color: var(--muted); max-width: 220px; line-height: 1.9; }
.site-footer h3 { font: 500 var(--fs-xs)/1.6 var(--font-body); letter-spacing: .04em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a, .site-footer address { font-size: var(--fs-xs); color: var(--ink-soft); text-decoration: none; line-height: 2.2; font-style: normal; }
.site-footer li a:hover { color: var(--honey); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.footer-form p { font-size: var(--fs-xs); color: var(--muted); margin-bottom: .75rem; line-height: 1.9; }
.footer-form__row { display: flex; border-bottom: 1px solid var(--ink-soft); }
.footer-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: .55rem 0;
  font: inherit; font-size: var(--fs-sm); color: var(--ink); text-align: start;
}
.footer-form input:focus { outline: none; }
.footer-form__row:focus-within { border-bottom-color: var(--honey); }
.footer-form button { background: none; border: 0; padding: .4rem; color: var(--ink-soft); cursor: pointer; }
.footer-form button:hover { color: var(--honey); }

.footer-legal {
  margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between;
  font-size: .72rem; color: #a99c90;
}
.footer-legal a { text-decoration: none; }

/* Medium screens (laptops, WordPress Live Preview): logo row, four link columns, then the form */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.5rem; }
  .footer-brand p { margin-top: 0; max-width: 340px; }
  .footer-form { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { display: block; }
  .footer-brand p { margin-top: .9rem; }
}
/* keep the copyright line clear of the floating WhatsApp button */
@media (min-width: 768px) { .footer-legal { padding-inline-end: 9.5rem; } }


/* 12. FLOATING WHATSAPP + MOBILE BOTTOM BAR ------------------------------- */
.float-chat {
  position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 30;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--whatsapp); color: var(--white); text-decoration: none;
  padding: .7rem 1.15rem; border-radius: var(--pill);
  font-size: var(--fs-sm); font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .25s;
}
.float-chat:hover { transform: translateY(-2px); }

.mobile-cta { display: none; }
@media (max-width: 767px) {
  .float-chat { display: none; }
  .mobile-cta {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
  }
  .mobile-cta .btn { min-height: 46px; padding-inline: 1rem; }
  .mobile-cta .btn--chat { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--white); }
  .site-footer { padding-bottom: 6rem; }   /* keeps the footer clear of the bar */
}


/* 13. SCROLL ANIMATIONS ----------------------------------------------------
   Gentle fade-up as sections enter the screen. Pure CSS; browsers that
   don't support it simply show the content normally. Turned off for
   visitors who prefer reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    @keyframes reveal-up { from { opacity: 0; transform: translateY(28px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* 14. WORDPRESS: INNER PAGES, "OUR STORIES", FORMS -------------------------
   Simple, consistent styling for pages we haven't designed individually yet. */

/* Header on pages without a big photo */
.site-header--solid { position: relative; background: var(--ink); }

/* Title band at the top of normal pages */
.page-hero {
  background: var(--sand); color: var(--honey); text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
  margin: var(--gutter) var(--gutter) 0;
}
.page-hero h1 { font-size: var(--fs-xl); line-height: 1.35; }
.page-hero p { max-width: 640px; margin: .9rem auto 0; font-size: var(--fs-sm); color: var(--honey-dark); }
.page-hero .eyebrow { text-decoration: none; }

/* Readable article text (content written in the WordPress editor) */
.prose {
  width: min(100% - 2 * var(--pad), 760px); margin: clamp(2.5rem, 5vw, 4rem) auto;
  font-size: 1.02rem; line-height: 2.1; color: var(--ink);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-lg); color: var(--honey); margin-top: 1.8em; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.5em; }
.prose a { color: var(--honey); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose img { height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: .5rem; text-align: center; }
.prose blockquote {
  margin-inline: 0; padding-inline-start: 1.25rem; border-inline-start: 3px solid var(--honey);
  font-family: var(--font-display); font-size: var(--fs-md); color: var(--ink-soft);
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { border-bottom: 1px solid var(--sand); padding: .6rem; text-align: start; }

.page-404 { margin: 3rem auto; }

/* Forms: spam trap + messages after sending */
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: .75rem; font-size: var(--fs-xs); line-height: 1.8; padding: .5rem .75rem; border-radius: 8px; }
.form-note--ok { background: #eef3dc; color: var(--pistachio-ink); }
.form-note--error { background: #fbe9e7; color: #8a2a1d; }

/* Messenger links not set yet in Customize (dashed reminder) */
[data-todo] { outline: 1px dashed #d4a017; outline-offset: 3px; }

/* WordPress admin bar: keep the page header below it */
.admin-bar .mobile-nav[popover] { top: 0; }

/* Old Elementor pages during the transition: give them the paragraph spacing
   and inline images they had with the previous theme. */
.legacy-content { overflow-x: clip; line-height: 1.8; }
.legacy-content p { margin: 0 0 .9rem; }
.legacy-content img { display: inline-block; }
.legacy-content h1, .legacy-content h2, .legacy-content h3 { text-wrap: wrap; }



/* 15. «داستان‌های ما» — STORIES LIST + ARTICLE PAGE ---------------------------
   Same language as the homepage: serif headings, thin lines, pill buttons,
   photos inside the 12px white frame. */

/* Shared: small meta line (topic · date · reading time) */
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .9rem; font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; }
.story-meta > * + *::before { content: "·"; margin-inline-end: .9rem; color: #c9bcae; }
.story-meta__topic { color: var(--honey); font-weight: 500; }
.story-mark { width: 56px; height: 56px; color: var(--honey); opacity: .45; }

/* s1 — photo header (like the homepage hero, shorter). Also used at the top of «درباره ما». */
.photo-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 62svh, 640px);
  display: grid; place-items: center; text-align: center; color: var(--white); background: var(--ink);
}
.photo-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20, 12, 5, .55), rgba(20, 12, 5, .38) 45%, rgba(20, 12, 5, .55));
}
.photo-hero__content { width: min(100% - 2 * var(--pad), 820px); padding-block: calc(var(--header-h) + 1.5rem) 3.5rem; }
.photo-hero h1 { font-size: var(--fs-hero); line-height: 1.3; }
.photo-hero .divider { width: min(100%, 640px); margin-block: 1.6rem; }
.photo-hero p { max-width: 560px; margin-inline: auto; font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 2; opacity: .95; }

/* s2 — featured (newest) story */
.story-featured { padding: var(--gutter); }
.story-featured__link {
  display: grid; grid-template-columns: 1.35fr 1fr; background: var(--sand);
  color: inherit; text-decoration: none; min-height: clamp(420px, 36vw, 540px);
}
.story-featured__media { position: relative; overflow: hidden; background: #e7ddcf; display: grid; place-items: center; }
.story-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.story-featured__link:hover .story-featured__media img { transform: scale(1.03); }
.story-featured__body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4.5vw, 4.5rem);
}
.story-featured__title { font-size: var(--fs-lg); line-height: 1.5; color: var(--honey); }
.story-featured__link:hover .story-featured__title { color: var(--honey-dark); }
.story-featured .divider { margin: 1.25rem 0; max-width: 260px; }
.story-featured__excerpt { font-size: var(--fs-sm); line-height: 2.05; color: var(--honey-dark); max-width: 460px; }
.story-featured .story-meta { margin-top: 1.25rem; }
.story-featured .btn { margin-top: 1.75rem; }
.story-featured__link:hover .btn { background: var(--honey); color: var(--white); }
@media (max-width: 900px) {
  .story-featured__link { grid-template-columns: 1fr; }
  .story-featured__media { aspect-ratio: 16 / 10; }
}

/* s3 — topic filter */
.story-topics { padding: clamp(2.25rem, 4vw, 3rem) var(--pad) .5rem; }
.story-topics ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.story-topics a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .35em 1.4em;
  border: 1px solid #d6cbbf; border-radius: var(--pill); text-decoration: none;
  font-size: var(--fs-sm); color: var(--ink-soft); transition: background-color .25s, color .25s, border-color .25s;
}
.story-topics a:hover { border-color: var(--ink-soft); color: var(--ink); }
.story-topics a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (max-width: 640px) {   /* one swipeable row on phones */
  .story-topics { padding-inline: 0; }
  .story-topics ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-inline: var(--pad); scrollbar-width: none; }
  .story-topics ul::-webkit-scrollbar { display: none; }
  .story-topics li { flex: none; }
}

/* s4 — story cards (reference style: photo, title over a thin line, excerpt + "read more") */
.stories { padding: clamp(2rem, 4vw, 3rem) 0 0; }
.stories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.5rem, 4vw, 3.5rem) var(--gutter);
  padding-inline: var(--gutter);
}
.story-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.story-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.story-card__link:hover .story-card__media img { transform: scale(1.045); }
.story-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem clamp(.25rem, 1vw, .75rem) 0; }
.story-card__title {
  font-size: var(--fs-md); line-height: 1.55; margin-top: .45rem; padding-bottom: .9rem;
  border-bottom: 1px solid #e6ddd2; transition: color .25s;
}
.story-card__link:hover .story-card__title { color: var(--honey); }
.story-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-top: .9rem; flex: 1; }
.story-card__excerpt { font-size: var(--fs-sm); line-height: 1.95; color: var(--ink-soft); align-self: flex-start; }
.story-card__more {
  flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: .2em 1.1em;
  border: 1px solid #cdbfae; border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 500; color: var(--ink-soft);
  transition: background-color .25s, color .25s, border-color .25s;
}
.story-card__link:hover .story-card__more { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (max-width: 1000px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .stories-grid { grid-template-columns: 1fr; }
  .story-card__foot { flex-direction: column; align-items: flex-start; }
}

/* s5 — "request a sample" band inside the grid */
.stories-cta {
  grid-column: 1 / -1; background: var(--sand); color: var(--honey-dark);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 3rem;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4.5rem);
}
.stories-cta h3 { font-size: var(--fs-lg); color: var(--honey); line-height: 1.4; }
.stories-cta p { font-size: var(--fs-sm); margin-top: .4rem; }
.stories-cta .btn-row { justify-content: flex-start; }

/* s6 — page numbers */
.pagination { margin: clamp(3rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem); }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers {
  min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding-inline: .9rem; border: 1px solid #d6cbbf; border-radius: var(--pill);
  text-decoration: none; font-size: var(--fs-sm); color: var(--ink-soft);
}
.pagination .page-numbers.dots { border-color: transparent; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.stories:not(:has(.pagination)) { padding-bottom: clamp(3.5rem, 6vw, 5rem); }

/* ---------- Article page ---------- */

/* a1 — title */
.article-head { text-align: center; padding: clamp(2.75rem, 6vw, 4.5rem) var(--pad) clamp(2rem, 4vw, 2.75rem); }
.article-head h1 { font-size: var(--fs-xl); line-height: 1.4; max-width: 980px; margin: 1.1rem auto 0; color: var(--ink); }
.article-head .story-meta { justify-content: center; margin-top: 1.1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .6rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-xs); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .6rem; color: #c9bcae; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--honey); }
.breadcrumb li:last-child a { color: var(--honey); font-weight: 500; }

/* a2 — cover photo */
.article-cover { margin: 0 var(--gutter); aspect-ratio: 16 / 7; overflow: hidden; background: var(--sand); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .article-cover { aspect-ratio: 4 / 3; } }

/* a3 — text + side column */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 720px) 290px; justify-content: center;
  gap: clamp(2.5rem, 6vw, 6rem); padding: clamp(2.5rem, 5vw, 4rem) var(--pad) 0;
}
.article-layout--no-toc { grid-template-columns: minmax(0, 720px) 260px; }
.article-aside { order: 2; }
.article-body.prose { width: auto; margin: 0; }
.article-body :is(h2, h3) { scroll-margin-top: 1.5rem; }
.article-body > :first-child { margin-top: 0; }

.article-aside__sticky { position: sticky; top: 1.5rem; }
.toc--desktop ol { max-height: min(52vh, 520px); overflow-y: auto; scrollbar-width: thin; }
.toc__title, .toc summary { font: 500 var(--fs-xs)/1.8 var(--font-body); letter-spacing: .04em; color: var(--honey); }
.toc ol { list-style: none; margin: .75rem 0 0; padding: 0; counter-reset: toc; border-inline-start: 1px solid #e6ddd2; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: .6rem; padding: .4rem .9rem; font-size: .84rem; line-height: 1.8;
  color: var(--ink-soft); text-decoration: none; margin-inline-start: -1px; border-inline-start: 1px solid transparent;
}
.toc a::before { content: counter(toc, persian) "."; color: #b9ad9f; flex: none; }
.toc a:hover { color: var(--honey); border-inline-start-color: var(--honey); }
details.toc { display: none; }

.aside-cta {
  margin-top: 2rem; padding: 1.5rem; background: var(--sand); color: var(--honey-dark); font-size: var(--fs-sm); line-height: 1.9;
}
.article-aside__sticky > .aside-cta:first-child { margin-top: 0; }
.aside-cta__title { font-family: var(--font-display); font-size: var(--fs-md); color: var(--honey); line-height: 1.5; margin-bottom: .4rem; }
.aside-cta .btn { margin-top: 1rem; }

@media (max-width: 1000px) {
  .article-layout, .article-layout--no-toc { grid-template-columns: minmax(0, 720px); gap: 0; }
  .article-aside { order: 0; }
  .toc--desktop, .aside-cta { display: none; }
  details.toc { display: block; border: 1px solid #e6ddd2; padding: .9rem 1.1rem; margin-bottom: 2rem; }
  details.toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  details.toc summary::-webkit-details-marker { display: none; }
  details.toc summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--honey); }
  details.toc[open] summary::after { content: "−"; }
}

/* a4 — share */
.article-share {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem 1.25rem;
  width: min(100% - 2 * var(--pad), 1100px); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding-top: 1.75rem; border-top: 1px solid #e6ddd2;
}
.article-share p { font-size: var(--fs-sm); color: var(--muted); }
.article-share ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.article-share .btn { min-height: 38px; padding-inline: 1.4em; font-size: var(--fs-xs); }

/* a5 — sample band */
.post-cta { padding: 0 var(--gutter); margin-top: clamp(3rem, 6vw, 4.5rem); }

/* a6 — related stories */
.related { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3.5rem, 6vw, 5rem); }
.related__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0 clamp(var(--gutter), 2vw, 1.5rem) clamp(1.5rem, 3vw, 2.25rem);
}
.related__head h2 { font-size: var(--fs-lg); color: var(--ink-soft); }


/* 16. «درباره ما» — ABOUT US PAGE --------------------------------------------
   Same structure as the reference "Our Story" page, made of three reusable bands
   (we'll use them again on Solutions and the other inner pages):
     .band-text     cream band: centred heading, thin line, text (+ list, buttons)
     .band-image    wide photo: heading, long thin line and text on one side
     .band-columns  tall photo with 3–5 columns: line icon, name, thin line, text */

/* u1 — tall photo header, one big title */
.about-hero { min-height: clamp(560px, 90svh, 860px); }
.about-hero .photo-hero__content { width: min(100% - 2 * var(--pad), 900px); }
.about-hero .divider { width: min(100%, 860px); }
.about-hero p { max-width: 520px; }

/* Cream text band */
.band-text { background: var(--sand); color: var(--honey-dark); text-align: center; padding: clamp(3.5rem, 6vw, 4.5rem) var(--pad); }
.band-text__inner { max-width: 600px; margin-inline: auto; }
.band-text h2 { font-size: var(--fs-lg); line-height: 1.4; color: var(--honey); }
.band-text .divider { margin-block: 1.4rem 1.6rem; }
.band-text p { font-size: var(--fs-sm); line-height: 2.1; }
.band-text p + p { margin-top: 1.1rem; }
.band-text .btn-row { margin-top: 2.1rem; }

/* Promises inside a text band: one per line, centred, a small diamond before each */
.promises { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: var(--fs-sm); line-height: 1.9; }
.promises li::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: .75rem;
  background: var(--honey); transform: rotate(45deg); vertical-align: .15em;
}

/* Wide photo, text on the start side (right in Persian) */
.band-image {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(420px, 30vw, 520px); display: grid; align-items: center;
  color: var(--white); background: var(--ink);
}
.band-image__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band-image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgba(20, 12, 5, .62), rgba(20, 12, 5, .22) 70%);
}
[dir="ltr"] .band-image::after { background: linear-gradient(to right, rgba(20, 12, 5, .62), rgba(20, 12, 5, .22) 70%); }
.band-image__content { width: min(100% - 2 * var(--pad), var(--container)); margin-inline: auto; padding-block: 3.5rem; }
.band-image h2 { font-size: var(--fs-lg); line-height: 1.4; }
.band-image .divider { margin: 1.4rem 0 1.5rem; }   /* the long thin line */
.band-image p { max-width: 430px; font-size: var(--fs-sm); line-height: 2.05; }
.band-image p + p { margin-top: .9rem; }
@media (max-width: 767px) {
  .band-image { text-align: center; }
  .band-image::after { background: var(--overlay); }
  .band-image p { margin-inline: auto; }
}

/* Tall photo with value columns, and the vertical tab at the bottom */
.band-columns {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, 58vw, 860px); display: grid; align-items: center;
  color: var(--white); background: var(--ink);
  padding: clamp(5rem, 9vw, 8rem) var(--pad) clamp(10rem, 13vw, 12rem);
}
.band-columns__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band-columns::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20, 12, 5, .25), rgba(20, 12, 5, .55) 45%, rgba(20, 12, 5, .6));
}
.band-columns__list {
  width: min(100%, 1180px); margin-inline: auto;
  display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 2.5rem 1.4rem;
}
.band-columns__icon { width: 42px; height: 42px; margin-bottom: 1.3rem; }
.band-columns h3 { font-size: clamp(1.35rem, 1.1rem + .7vw, 1.75rem); line-height: 1.5; }
.band-columns .divider { margin: 1.1rem 0; border-top-color: rgba(255, 255, 255, .45); }
.band-columns p { font-size: .84rem; line-height: 2; opacity: .95; }
@media (max-width: 1023px) { .band-columns__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .band-columns__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.25rem; } }
/* The vertical tab takes the colour of the band below it (as on the reference page) */
.band-columns .feature__tab { background: var(--sand); color: var(--honey-dark); }


/* 17. «تماس با ما» — CONTACT PAGE -------------------------------------------
   Reference: "Contact Us" — photo header, contact boxes in two columns with a thin
   line above each, a wide photo strip. Plus our quote form (sand band). */

/* c1 — photo header, a little shorter, with two buttons */
.contact-hero { min-height: clamp(540px, 75svh, 760px); }
.contact-hero .divider { width: min(100%, 860px); }
.photo-hero__actions { margin-top: 2rem; }

/* c2 — contact boxes */
.contact-boxes { padding: clamp(2.5rem, 5vw, 4rem) var(--pad) clamp(3.5rem, 6vw, 5rem); }
.contact-boxes__grid {
  max-width: 1040px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 2.75rem) 1.25rem;
}
.contact-box { border-top: 1px solid #cfc5ba; padding-top: 1.1rem; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 2; }
.contact-box h3 { font-size: var(--fs-md); line-height: 1.5; color: var(--ink); margin-bottom: .6rem; }
.contact-box p + p, .contact-box p + ul, .contact-box ul + ul, .contact-box address { margin-top: .7rem; }
.contact-box a { color: inherit; text-underline-offset: 4px; text-decoration-color: #b9ada2; transition: color .2s; }
.contact-box a:hover { color: var(--honey); text-decoration-color: currentColor; }
.contact-box address { font-style: normal; }
.contact-lines { list-style: none; margin: .7rem 0 0; padding: 0; }
.contact-lines__label { color: var(--ink); font-weight: 500; }
.contact-box__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .8rem; }
.contact-channels { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-channels .btn { min-height: 38px; padding-inline: 1.3em; font-size: var(--fs-xs); color: var(--ink-soft); border-color: #cbbfb2; text-decoration: none; }
.contact-channels .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (max-width: 767px) { .contact-boxes__grid { grid-template-columns: 1fr; } }

/* c3 — quote form */
.quote { background: var(--sand); padding: clamp(4rem, 7vw, 6rem) var(--pad); scroll-margin-top: 1rem; }
.quote__intro { max-width: 620px; margin-inline: auto; text-align: center; color: var(--honey-dark); }
.quote__intro h2 { font-size: var(--fs-lg); line-height: 1.4; color: var(--honey); }
.quote__intro .divider { margin-block: 1.4rem 1.5rem; }
.quote__intro p { font-size: var(--fs-sm); line-height: 2.1; }
.quote-form { max-width: 860px; margin: clamp(2.25rem, 4vw, 3rem) auto 0; }
.quote-form .form-note { margin: 0 0 1.75rem; text-align: center; font-size: var(--fs-sm); padding: .8rem 1rem; }
.quote-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem 2.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-soft); line-height: 1.7; }
.field__req { color: var(--honey); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid #b9ada2; border-radius: 0;
  background: transparent; color: var(--ink); font: 1rem/1.7 var(--font-body);
  padding: .45rem 0; transition: border-color .2s;
}
.field input[dir="ltr"] { text-align: right; }
[dir="ltr"] .field input[dir="ltr"] { text-align: left; }
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--honey); box-shadow: 0 1px 0 var(--honey); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%235c4a3a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left .1rem center / 18px;
}
[dir="ltr"] .field select { background-position: right .1rem center; }

/* Choice pills (products, preferred channel) */
.choices { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }   /* pills sit side by side and wrap */
.choices legend { padding: 0; margin-bottom: .7rem; }
.choice { position: relative; display: inline-block; margin: 0 0 .5rem; margin-inline-end: .4rem; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: .35em; min-height: 38px; padding: .3em 1.15em;
  border: 1px solid #cbbfb2; border-radius: var(--pill); background: rgba(255, 255, 255, .55);
  font-size: var(--fs-sm); color: var(--ink-soft); transition: background-color .2s, color .2s, border-color .2s;
}
.choice:hover span { border-color: var(--ink-soft); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input[type="checkbox"]:checked + span::before { content: "✓"; font-size: .85em; }
.choice input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }

/* A grouped pick: the category, then what is in it. Eighteen kinds of باقلوا in one flat
   run of pills is a wall; under its own heading it is a list you can skim. The category is
   a real answer on its own — somebody who has not bought from us yet knows they want
   باقلوا before they know they want انگشتی پیچی. */
.choices--grouped .choices__g { margin-bottom: .9rem; }
.choices--grouped .choices__g:last-of-type { margin-bottom: .3rem; }
.choice--all span { font-weight: 600; background: var(--sand); }
.choice--all input:checked + span { background: var(--ink); }
.choice--sub span { font-size: .88em; }
.choices__hint { margin: .2rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.9; }

.quote-form__submit { margin-top: 2.25rem; text-align: center; }
.quote-form__submit .btn { min-width: 220px; min-height: 48px; font-size: var(--fs-sm); }
.quote-form__note { margin-top: .9rem; font-size: var(--fs-xs); color: var(--muted); line-height: 1.9; }
.quote-form__note span { color: var(--honey); }
@media (max-width: 640px) {
  .quote-form__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .quote-form__submit .btn { width: 100%; }
}

.quote-done { max-width: 620px; margin: 2.5rem auto 0; padding: 2.25rem 1.5rem; text-align: center; background: var(--white); color: var(--ink-soft); font-size: var(--fs-sm); line-height: 2; }
.quote-done__mark { width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--honey); }
.quote-done p:first-of-type { font-family: var(--font-display); font-size: var(--fs-md); line-height: 1.7; color: var(--ink); }
.quote-done p + p { margin-top: .4rem; }
.quote-done .btn-row { margin-top: 1.5rem; }

/* c4 — wide photo strip (the tab takes the colour of the pistachio band below) */
.photo-strip { position: relative; overflow: hidden; height: clamp(260px, 25vw, 380px); background: var(--ink); }
.photo-strip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


/* 18. «مشتری ما شوید» — BECOME A CUSTOMER -----------------------------------
   Reference: "Become a Customer" — tall photo header, a narrow centred column
   (title, text, bold note) with the application form in a panel, then a photo strip.
   The form reuses the quote-form fields and pills (section 17). */

.bac-hero { min-height: clamp(560px, 90svh, 860px); }
.bac-hero .divider { width: min(100%, 860px); }

.apply { padding: clamp(4rem, 8vw, 6.5rem) var(--pad) clamp(4rem, 7vw, 6rem); scroll-margin-top: 1rem; }
.apply__intro { max-width: 600px; margin-inline: auto; text-align: center; }
.apply__intro h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.5; color: var(--ink); }
.apply__intro p { margin-top: 1rem; font-size: var(--fs-sm); line-height: 2.1; color: var(--ink-soft); }
.apply__note { font-weight: 500; color: var(--ink) !important; }
.apply__panel {
  max-width: 760px; margin: clamp(2.25rem, 4vw, 3rem) auto 0; background: var(--sand);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3rem);
}
.apply__panel .quote-done { margin: 0; }
.apply-form { max-width: none; margin: 0; }
.apply-form__group {
  font-size: 1.35rem; line-height: 1.6; color: var(--honey);
  margin: 0 0 1.4rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line-honey);
}
.quote-form__grid + .apply-form__group { margin-top: 2.75rem; }
.apply-form__lead { margin: -.5rem 0 1.6rem; font-size: var(--fs-sm); line-height: 2; color: var(--honey-dark); }
.field ::placeholder { color: #a99c90; opacity: 1; font-size: .9em; }


/* 19. «راهکارها» — SOLUTIONS (overview + one page per customer type) ---------
   Built from the same pieces: photo header, cream text bands, "split", the
   photo band with columns (here: numbered steps) and large photo cards. */

.sol-hero, .sol-page-hero { min-height: clamp(560px, 85svh, 820px); }
.sol-hero .divider, .sol-page-hero .divider { width: min(100%, 860px); }
.photo-hero__crumbs { margin-bottom: 1rem; font-size: var(--fs-sm); }
.photo-hero__crumbs a { color: inherit; opacity: .9; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .5); }
.photo-hero__crumbs a:hover { opacity: 1; text-decoration-color: currentColor; }

/* Photo cards (4 on the overview page, the other 3 at the end of each solution page) */
.sol-tiles { padding: var(--gutter); }
.sol-tiles__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.sol-tiles__grid--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sol-tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  aspect-ratio: 16 / 11; min-height: 360px; background: var(--ink); color: var(--white); text-decoration: none;
}
.sol-tiles__grid--small .sol-tile { aspect-ratio: 4 / 3; min-height: 300px; }
.sol-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.sol-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20, 12, 5, .78), rgba(20, 12, 5, .15) 70%); }
.sol-tile:hover .sol-tile__img { transform: scale(1.04); }
.sol-tile__body { padding: clamp(1.5rem, 3.5vw, 3rem); max-width: 560px; }
.sol-tile__title { font-size: var(--fs-lg); line-height: 1.4; }
.sol-tiles__grid--small .sol-tile__title { font-size: var(--fs-md); }
.sol-tile__text { display: block; margin-top: .7rem; font-size: var(--fs-sm); line-height: 2; opacity: .92; }
.sol-tile__more {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 1.25rem; min-height: 40px; padding: .35em 1.5em;
  border: 1px solid var(--line-light); border-radius: var(--pill); font-size: var(--fs-sm); transition: background-color .25s, color .25s;
}
.sol-tile:hover .sol-tile__more { background: var(--white); color: var(--ink); border-color: var(--white); }
.sol-tiles__title { text-align: center; font-size: var(--fs-lg); color: var(--honey); padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2rem); }
@media (max-width: 900px) { .sol-tiles__grid--small { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .sol-tiles__grid, .sol-tiles__grid--small { grid-template-columns: 1fr; }
  .sol-tile, .sol-tiles__grid--small .sol-tile { aspect-ratio: 4 / 3.4; min-height: 0; }
}

/* «مسیر همکاری» — numbered steps on the photo band */
.band-columns--steps { align-content: center; min-height: clamp(560px, 46vw, 720px); padding-block: clamp(4.5rem, 7vw, 6rem) clamp(9rem, 11vw, 10.5rem); }
.band-columns__head { width: min(100%, 760px); margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.band-columns__head h2 { font-size: var(--fs-lg); line-height: 1.4; }
.band-columns__head .divider { width: min(100%, 560px); margin-block: 1.4rem 0; }
.band-columns__list { list-style: none; padding: 0; }
.band-columns__num { display: block; margin-bottom: 1rem; font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); line-height: 1; color: #e9d3a4; }

/* "Our solution" split on white, recommended products on cream */
.split--light { background: var(--white); }
.sol-products { background: var(--sand); padding: clamp(3.5rem, 6vw, 5rem) var(--pad); }
.sol-products__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 2.75rem); }
.sol-products__head h2 { font-size: var(--fs-lg); line-height: 1.4; color: var(--honey); }
.sol-products__head .divider { margin-block: 1.4rem 0; max-width: 300px; }
.sol-products .contact-box { border-top-color: var(--line-honey); }


/* 20. «محصولات» — PRODUCTS ----------------------------------------------------
   Reference: the products, product-listing and product-detail pages.
     overview   photo header, one tall photo card per category, wide photo
     category   photo header, product cards (photo, name over a thin line, text + button)
     product    text beside a tall photo, packaging "tags", specs, related products */

/* Shared: reminder boxes only admins see */
.admin-note {
  max-width: 760px; margin: 2rem auto; padding: 1rem 1.25rem; text-align: center;
  font-size: var(--fs-sm); line-height: 1.9; color: #8a5a00; background: #fff7e0; border: 1px dashed #d4a017; border-radius: 10px;
}

/* «کاتالوگ» buttons jump to the catalogue form in the footer: make it noticeable when they land there */
.footer-form { scroll-margin-top: 30vh; }
.footer-form:target { animation: target-flash 2.4s ease-out; }
@keyframes target-flash {
  0%, 45% { background: #fff7e0; box-shadow: 0 0 0 14px #fff7e0; }
  100%    { background: transparent; box-shadow: 0 0 0 14px transparent; }
}

/* p1 / l1 — photo headers */
.prod-hero { min-height: clamp(560px, 85svh, 820px); }
.prod-hero .divider { width: min(100%, 860px); }
.cat-hero { min-height: clamp(500px, 70svh, 700px); }
.cat-hero .divider { width: min(100%, 760px); }

/* p2 / l4 — category cards (the homepage product card, one per category) */
.cat-tiles { padding: var(--gutter) 0; }
.cat-card__count { font-weight: 400; opacity: .85; }
.cat-card__todo {
  margin-top: .5rem; padding: .35rem .75rem; font-size: .72rem; line-height: 1.8;
  color: #8a5a00; background: #fff7e0; border: 1px dashed #d4a017; border-radius: 8px;
}
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); max-width: calc(var(--cols, 4) * 480px); margin-inline: auto; }
  .cat-grid--small .product-card { aspect-ratio: 4 / 3; }
}
@media (min-width: 768px) and (max-width: 1000px) {   /* tablets: two big cards per row */
  .cat-grid:not(.cat-grid--small) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .cat-grid:not(.cat-grid--small) .product-card { aspect-ratio: 4 / 4.4; }
}
@media (max-width: 767px) {   /* phones: overview cards one under the other; «دسته‌های دیگر» stays a swipeable row */
  .cat-grid:not(.cat-grid--small) { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; scroll-snap-type: none; }
  .cat-grid:not(.cat-grid--small) .product-card { aspect-ratio: 4 / 3.6; }
  .cat-grid--small .product-card { aspect-ratio: 4 / 3.4; }
}

/* p3 — wide photo with buttons */
.prod-band .btn-row { justify-content: flex-start; margin-top: 1.9rem; }
@media (max-width: 767px) { .prod-band .btn-row { justify-content: center; } }

/* l2 — product cards */
.plp { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem); }
.plp__grid {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) var(--gutter);
}
.pcard__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.pcard__media { position: relative; aspect-ratio: 10 / 11; overflow: hidden; background: var(--sand); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.pcard__link:hover .pcard__media img { transform: scale(1.045); }
.pcard__badge {   /* the little vertical tab of the brand, hanging from the top of the photo */
  position: absolute; top: 0; right: 1.25rem; writing-mode: vertical-rl;   /* physical sides: logical ones turn with vertical text */
  background: var(--pistachio); color: var(--pistachio-ink);
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .04em; line-height: 1.6;
  padding: 1rem .5rem 1.15rem; border-radius: 0 0 var(--pill) var(--pill);
}
[dir="ltr"] .pcard__badge { right: auto; left: 1.25rem; }
.pcard__todo {
  position: absolute; bottom: .75rem; inset-inline-start: .75rem; padding: .2rem .7rem; border-radius: var(--pill);
  font-size: .72rem; color: #8a5a00; background: #fff7e0; border: 1px dashed #d4a017;
}
.pcard__packtag {   /* «فله و بسته‌ای» — said on the photo, so it reads from across the page */
  position: absolute; bottom: .75rem; inset-inline-start: .75rem; z-index: 2;
  font-size: .74rem; font-weight: 500; line-height: 1.7; color: var(--ink);
  background: rgba(255, 255, 255, .93); border-radius: var(--pill); padding: .2rem .8rem;
  box-shadow: 0 2px 10px rgba(26, 16, 7, .12);
}
.pcard__packtag ~ .pcard__todo { bottom: 2.6rem; }   /* admins see both; keep them apart */
.pcard__packs {   /* and the weights themselves, under the name */
  display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem;
}
.pcard__packs span {
  font-size: .74rem; line-height: 1.7; color: var(--ink-soft);
  background: var(--sand); border-radius: var(--pill); padding: .15rem .65rem;
}
.pcard__packs .pcard__packs-more { background: none; color: var(--muted); padding-inline: .25rem; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem clamp(.25rem, 1vw, .75rem) 0; }
.pcard__title { font-size: var(--fs-md); line-height: 1.55; padding-bottom: .9rem; border-bottom: 1px solid #e6ddd2; transition: color .25s; }
.pcard__link:hover .pcard__title { color: var(--honey); }
.pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-top: .9rem; flex: 1; }
.pcard__text { font-size: var(--fs-sm); line-height: 1.95; color: var(--ink-soft); align-self: flex-start; }
.pcard__more {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: .2em 1.25em; border-radius: var(--pill);
  background: var(--ink); color: var(--white); font-size: var(--fs-xs); font-weight: 500; transition: background-color .25s;
}
.pcard__link:hover .pcard__more { background: var(--honey); }
@media (max-width: 1000px) { .plp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .plp__grid { grid-template-columns: 1fr; }
  .pcard__media { aspect-ratio: 1 / 1; }
  .pcard__foot { flex-direction: column; align-items: flex-start; }
}

/* l4 — other categories */
.cat-others { padding-bottom: var(--gutter); }
.cat-others__title { text-align: center; font-size: var(--fs-lg); color: var(--honey); padding: clamp(3rem, 5vw, 4rem) var(--pad) clamp(1.5rem, 3vw, 2rem); }

/* l5 — about the category */
.cat-about { padding: clamp(3rem, 6vw, 4.5rem) var(--pad); }
.cat-about__inner { max-width: 760px; margin-inline: auto; padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid #e6ddd2; font-size: var(--fs-sm); line-height: 2.1; color: var(--ink-soft); }
.cat-about h2 { font-size: var(--fs-md); line-height: 1.5; color: var(--ink); margin-bottom: 1rem; }
.cat-about p + p { margin-top: .9rem; }
.cat-about a { color: var(--honey); text-underline-offset: 3px; }

/* d1 — the product: text on the start side (right in Persian), tall photo on the other */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
/* The photo begins at the same height as the text beside it and follows it while that column is scrolled. */
.product__media { margin: var(--gutter); margin-inline-start: 0; margin-block: clamp(2.5rem, 5vw, 4.5rem);
  position: sticky; top: calc(var(--header-h) + 1rem); }
.product__photo { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 7rem); overflow: hidden; background: var(--sand); }
.product__photo img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { list-style: none; margin: var(--gutter) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product__thumbs[hidden], .product__thumbs li[hidden] { display: none; }
.product__thumb { display: block; width: 72px; aspect-ratio: 4 / 5; overflow: hidden; opacity: .55; transition: opacity .2s; }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__thumb:hover, .product__thumb[aria-current] { opacity: 1; }
.product__thumb[aria-current] { box-shadow: inset 0 -3px 0 var(--honey); }
.product__info { order: -1; display: flex; justify-content: center; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 5rem); }
.product__inner { width: min(100%, 520px); }
.product__crumbs ol { justify-content: flex-start; }
.product__title { font-size: var(--fs-xl); line-height: 1.35; margin-top: .9rem; color: var(--ink); }
.product__desc { margin-top: 1.25rem; padding-bottom: 1.75rem; border-bottom: 1px solid #e6ddd2; font-size: var(--fs-sm); line-height: 2.05; color: var(--ink-soft); }
.product__desc > * + * { margin-top: .9rem; }
.product__desc :is(ul, ol) { padding-inline-start: 1.2em; }
.product__desc a { color: var(--honey); }
.product__block { margin-top: 1.5rem; }
.product__label { font: 500 var(--fs-xs)/1.8 var(--font-body); letter-spacing: .04em; color: var(--honey); margin-bottom: .6rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li, .tags--links a {
  display: inline-flex; align-items: center; min-height: 34px; padding: .2em 1.05em;
  border: 1px solid #d6cbbf; border-radius: var(--pill); font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-soft);
}
.tags--links li { padding: 0; border: 0; min-height: 0; }
.tags--links a { text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; }
.tags--links a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tags--quiet li { background: var(--sand); border-color: var(--sand); }
.specs { margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #eee6dc; font-size: var(--fs-sm); line-height: 1.8; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 500; text-align: end; }
.product__actions { justify-content: flex-start; margin-top: 2rem; }
.product__chat { margin-top: 1rem; font-size: var(--fs-sm); }
.product__chat a { display: inline-flex; align-items: center; gap: .45rem; color: var(--whatsapp); font-weight: 500; text-decoration: none; }
.product__chat a:hover { text-decoration: underline; text-underline-offset: 4px; }
.product__note { margin-top: 1.1rem; font-size: var(--fs-xs); line-height: 1.95; color: var(--muted); }
.product__shots { margin-top: .7rem; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 700px) {
  .product { grid-template-columns: 1fr; }
  .product__media { margin: var(--gutter) var(--gutter) 0; position: static; }
  .product__photo { max-height: 80svh; }
  .product__info { order: 0; padding: 2rem var(--pad) 3rem; }
}
@media (max-width: 640px) {
  .product__actions .btn { flex: 1 1 auto; }
}

/* d1 → d2 — the little link beside the photo that jumps to the table */
.product__tablelink { margin-top: 1.25rem; font-size: var(--fs-sm); }
.product__tablelink a { display: inline-flex; align-items: center; gap: .35rem; color: var(--honey-dark); font-weight: 500; text-underline-offset: 5px; text-decoration-color: var(--line-honey); }
.product__tablelink a:hover { color: var(--honey); text-decoration-color: currentColor; }

/* d2 — product information table (any number of rows and columns)
     2 columns    → "property | value" list, narrower
     3+ columns   → full table; on phones each row becomes a card (title, then «column: value» lines)
     6+ columns   → may scroll sideways on computers, first column stays put */
.ptable { padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 0; scroll-margin-top: 1.5rem; }
.ptable__inner { max-width: 1100px; margin-inline: auto; }
.ptable--pairs .ptable__inner { max-width: 760px; }
.ptable__title { text-align: center; font-size: var(--fs-lg); line-height: 1.4; color: var(--ink-soft); margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.ptable .admin-note { margin: 0 auto 1.5rem; }
.ptable--sample .ptable__scroll { outline: 1px dashed #d4a017; outline-offset: 6px; }
.ptable__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.ptable__scroll:focus-visible { outline-offset: 4px; }
.ptable__table { width: 100%; border-collapse: collapse; border-top: 1px solid #e6ddd2; font-size: var(--fs-sm); line-height: 1.8; color: var(--ink-soft); }
.ptable__table :is(th, td) { padding: .85rem 1rem; text-align: start; vertical-align: top; border-bottom: 1px solid #e6ddd2; }
.ptable__table thead :is(th, td) { background: var(--sand); color: var(--honey-dark); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .02em; line-height: 1.7; vertical-align: bottom; }
.ptable__table tbody th { color: var(--ink); font-weight: 500; }
.ptable__table tbody tr { transition: background-color .2s; }
.ptable__table tbody tr:hover { background: #fbf8f4; }
.ptable__table tr > :first-child { padding-inline-start: 1.25rem; }
.ptable__hint { display: none; margin-top: .6rem; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.ptable.is-overflowing .ptable__hint { display: block; }
.ptable__note { margin-top: .9rem; font-size: var(--fs-xs); line-height: 1.9; color: var(--muted); }

/* 2 columns: property | value */
.ptable--pairs tbody th { width: 42%; color: var(--muted); font-weight: 400; }
.ptable--pairs tbody td { color: var(--ink); font-weight: 500; }

/* many columns: sideways scrolling with the first column fixed */
.ptable--wide .ptable__table { min-width: calc(var(--cols, 6) * 9.5rem); }
.ptable--wide :is(tbody th, thead tr > :first-child) { position: sticky; inset-inline-start: 0; z-index: 1; }
.ptable--wide tbody th { background: var(--white); }
.ptable--wide :is(tbody th, thead tr > :first-child) { box-shadow: inset 1px 0 0 #e6ddd2; }   /* thin line on its inner edge */
[dir="ltr"] .ptable--wide :is(tbody th, thead tr > :first-child) { box-shadow: inset -1px 0 0 #e6ddd2; }
.ptable--wide tbody tr:hover th { background: #fbf8f4; }

/* 3+ columns without column titles: slide sideways on small screens */
@media (max-width: 767px) {
  .ptable--scroll .ptable__table { min-width: calc(var(--cols, 3) * 8.5rem); }
}

/* 3+ columns with column titles: one card per row on phones */
@media (max-width: 640px) {
  .ptable--stack .ptable__table, .ptable--stack tbody, .ptable--stack tr, .ptable--stack tbody th, .ptable--stack td { display: block; width: 100%; }
  .ptable--stack .ptable__table { min-width: 0; border-top: 0; }
  .ptable--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ptable--stack tbody tr { border: 1px solid #e6ddd2; }
  .ptable--stack tbody tr + tr { margin-top: .75rem; }
  .ptable--stack tbody tr:hover { background: none; }
  .ptable--stack tbody th {
    position: static; box-shadow: none !important; background: var(--sand); border-bottom: 0;
    padding: .7rem 1rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; line-height: 1.6;
  }
  .ptable--stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 1rem; border-bottom: 1px solid #f1ebe3; text-align: end; }
  .ptable--stack td:last-child { border-bottom: 0; }
  .ptable--stack td::before { content: attr(data-label); flex: 0 1 auto; color: var(--muted); text-align: start; }
}

/* d3 — related products (the homepage product card) */
.related-products { padding: clamp(3rem, 6vw, 4.5rem) 0 var(--gutter); }
.related-products__title {
  text-align: center; font-size: var(--fs-lg); color: var(--ink-soft);
  padding-bottom: 1rem; margin: 0 var(--gutter) clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid #e6ddd2;
}
@media (min-width: 768px) {
  .related-products__grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); max-width: calc(var(--cols, 4) * 420px); margin-inline: auto; }
}

/* d4 — sample band */
.product-sample { padding-top: 0; }

/* 21. HEADER DROP-DOWN MENUS («محصولات» and «راهکارها») ---------------------
   Computers: hover (or the small arrow button / keyboard) opens a wide panel under the header.
     محصولات   categories on the start side; hovering a category shows its products and its photo
     راهکارها   the four solution pages with one sentence each
   Phones & tablets: the same lists as fold-out rows inside the menu (plain <details>, no JavaScript). */

.nav-primary > ul > li { display: flex; align-items: center; gap: .15rem; }
.site-header { transition: background-color .25s; }
.site-header.is-mega-open { background: var(--ink); }

.mega-toggle {
  display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; margin-inline-start: .1rem;
  background: none; border: 0; border-radius: 50%; color: inherit; cursor: pointer; opacity: .85;
}
.mega-toggle .icon { width: 15px; height: 15px; transition: transform .25s; }
.mega-toggle:hover { opacity: 1; }
.has-mega.is-open .mega-toggle .icon { transform: rotate(180deg); }
.has-mega.is-open > a { background-size: 100% 1px; }

/* The panel: full width under the header */
.mega {
  position: absolute; inset-inline: 0; top: 100%; z-index: 25;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 28px 48px rgba(26, 16, 7, .18);
  max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.has-mega.is-open > .mega { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
.mega__inner { width: min(100% - 2 * var(--pad), var(--container)); margin-inline: auto; padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 3.5vw, 2.75rem); }
.mega a { text-decoration: none; background: none; padding: 0; white-space: normal; }   /* undo the menu-link underline */
.mega__label { font: 500 var(--fs-xs)/1.8 var(--font-body); letter-spacing: .04em; color: var(--honey); margin-bottom: .75rem; }
.mega__all {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.25rem;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft);
}
.mega__all:hover { color: var(--honey); }

/* «محصولات»: categories | products of the active category | its photo */
.mega--products .mega__inner { position: relative; min-height: 330px; }
.mega__cats { width: 270px; list-style: none; margin: 0; padding: 0; }
.mega__cats > li { display: block; }
.mega__cat {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid #e6ddd2;
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft);
  transition: color .2s, padding .2s;
}
.mega__cat .icon { width: 16px; height: 16px; opacity: 0; transition: opacity .2s; align-self: center; }
.mega__count { margin-inline-start: auto; font: 400 var(--fs-xs)/1 var(--font-body); color: var(--muted); }
.mega__cats > li.is-active > .mega__cat { color: var(--honey); padding-inline-start: .35rem; }
.mega__cats > li.is-active > .mega__cat .icon { opacity: 1; }

.mega__sub {
  position: absolute; top: clamp(1.75rem, 3vw, 2.5rem); bottom: clamp(2rem, 3.5vw, 2.75rem);
  inset-inline-start: calc(270px + clamp(2rem, 4vw, 4rem)); inset-inline-end: 0;
  display: none; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(1.5rem, 3vw, 3rem);
}
.mega__cats > li.is-active > .mega__sub { display: grid; animation: mega-in .25s ease; }
@keyframes mega-in { from { opacity: 0; transform: translateX(-8px); } }
[dir="ltr"] .mega__cats > li.is-active > .mega__sub { animation-name: mega-in-ltr; }
@keyframes mega-in-ltr { from { opacity: 0; transform: translateX(8px); } }

.mega__plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; align-content: start; }
.mega__plist a {
  display: block; padding: .55rem 0; border-bottom: 1px solid #efe8df;
  font-size: var(--fs-sm); line-height: 1.8; color: var(--ink-soft); transition: color .2s;
}
.mega__plist a:hover, .mega__plist a:focus-visible { color: var(--honey); }
.mega__feature {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 100%; background: var(--sand); color: var(--white); border-radius: 14px;
}
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mega__feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26, 16, 7, .8), rgba(26, 16, 7, .1) 65%); }
.mega__feature:hover img { transform: scale(1.04); }
.mega__feature span { display: block; padding: 1.25rem; font-size: var(--fs-xs); line-height: 1.9; }
.mega__feature strong { display: block; margin-bottom: .3rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; line-height: 1.5; }
.mega__feature em { display: flex; width: fit-content; align-items: center; gap: .35rem; margin-top: .6rem; font-style: normal; font-weight: 500; }

/* «راهکارها»: one card per solution, and a photo in the column they leave free.
   The photo is the same box as the «محصولات» photo — same place, same size, same corners —
   and it changes to the photo of the card you point at. */
.mega--solutions .mega__inner { position: relative; min-height: 330px; }
.mega__sols {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.25rem);
  padding-inline-end: calc(260px + clamp(1.5rem, 3vw, 3rem));   /* room for the photo */
}
.mega__sols a { display: flex; flex-direction: column; height: 100%; padding-top: 1rem; border-top: 1px solid #d8cdc1; color: var(--ink-soft); transition: border-color .2s; }
.mega__sols a:hover, .mega__sols a:focus-visible { border-top-color: var(--honey); }
.mega__sol-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.55; color: var(--ink); transition: color .2s; }
.mega__sols a:hover .mega__sol-title { color: var(--honey); }
.mega__sol-text { margin-top: .5rem; font-size: var(--fs-xs); line-height: 1.95; color: var(--muted); flex: 1; }
.mega__go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-soft); }

.mega__sols > li .mega__shot {
  position: absolute; width: 260px; inset-inline-end: 0;
  top: clamp(1.75rem, 3vw, 2.5rem); bottom: clamp(2rem, 3.5vw, 2.75rem);
  height: auto; display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate; overflow: hidden; border-radius: 14px; border-top: 0; padding-top: 0;
  background: var(--sand); color: var(--white); opacity: 0; transition: opacity .3s ease;
}
.mega__sols > li .mega__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mega__sols > li .mega__shot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26, 16, 7, .85), rgba(26, 16, 7, .05) 70%); }
.mega__sols > li .mega__shot span { display: block; padding: 1.15rem; font-size: var(--fs-xs); line-height: 1.9; color: var(--white); }
.mega__sols > li .mega__shot strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; line-height: 1.5; color: var(--white); }
.mega__sols > li .mega__shot em { display: flex; width: fit-content; align-items: center; gap: .35rem; margin-top: .45rem; font-style: normal; font-weight: 500; }
.mega__sols > li:first-child .mega__shot { opacity: 1; }                 /* until you point at a card */
/* 1.56.5: only when ANOTHER card is pointed at — pointing at the first card itself (or between the cards) kept hiding its photo */
.mega__sols:has(> li:not(:first-child):hover, > li:not(:first-child):focus-within) > li:first-child .mega__shot { opacity: 0; }
.mega__sols > li:hover .mega__shot, .mega__sols > li:focus-within .mega__shot { opacity: 1; }

/* Dims the page while a panel is open */
.mega-scrim { position: fixed; inset: 0; z-index: 19; background: rgba(26, 16, 7, .32); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
.mega-scrim.is-on { opacity: 1; visibility: visible; transition: opacity .25s; }

@media (max-width: 1250px) {
  .mega__sub { grid-template-columns: minmax(0, 1fr) 200px; }
  .mega__sols > li .mega__shot { width: 200px; }
  .mega__sols { padding-inline-end: calc(200px + clamp(1.5rem, 3vw, 3rem)); }
}

/* Phones & tablets: fold-out rows in the menu */
.mnav-group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding-block: .55rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-display); font-size: 1.7rem;
}
.mnav-group summary::-webkit-details-marker { display: none; }
.mnav-group summary .icon { width: 22px; height: 22px; opacity: .7; transition: transform .25s; }
.mnav-group details[open] > summary .icon { transform: rotate(180deg); }
.mnav-group ul { list-style: none; margin: 0; padding: .35rem 0 .6rem; padding-inline-start: 1rem; border-inline-start: 1px solid rgba(255, 255, 255, .15); margin-inline-start: .25rem; }
.mobile-nav .mnav-group ul a, .mnav-sub summary {
  display: flex; align-items: center; justify-content: space-between; border-bottom: 0;
  padding-block: .45rem; font-family: var(--font-body); font-size: 1rem; opacity: .92;
}
.mnav-sub summary .icon { width: 18px; height: 18px; }
.mobile-nav .mnav-group .mnav-all { color: #e9d3a4; font-weight: 500; }

/* 22. «درخواست نمونه» — REQUEST A SAMPLE ------------------------------------
   Photo header, four steps, the form (products as pills, grouped by category) beside a
   "your sample box" summary that follows the page, short FAQ. The form reuses the quote-form
   fields and pills (section 17) and the application-form group titles (section 18). */

.rs-hero { min-height: clamp(520px, 72svh, 720px); }
.rs-hero .divider { width: min(100%, 820px); }

/* r2 — how it works */
.rs-steps { background: var(--sand); padding: clamp(2.75rem, 5vw, 3.75rem) var(--pad); }
.rs-steps__title { text-align: center; font-size: var(--fs-lg); line-height: 1.4; color: var(--honey); margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.rs-steps ol { list-style: none; margin: 0 auto; padding: 0; max-width: var(--container); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem clamp(1.25rem, 3vw, 2.5rem); counter-reset: step; }
.rs-steps li { counter-increment: step; border-top: 1px solid var(--line-honey); padding-top: 1rem; color: var(--honey-dark); font-size: var(--fs-sm); line-height: 1.95; }
.rs-steps li::before { content: counter(step, persian); display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1.2; color: var(--honey); margin-bottom: .35rem; }
.rs-steps h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--ink); margin-bottom: .25rem; }
@media (max-width: 900px) { .rs-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* r3 — form + summary */
.rs-form { padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad); scroll-margin-top: 1rem; }
.rs-form__layout { max-width: 1140px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.rs-form__intro h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.5; color: var(--ink); }
.rs-form__intro p { margin-top: .8rem; font-size: var(--fs-sm); line-height: 2.1; color: var(--ink-soft); }
.rs-form__panel { margin-top: 1.75rem; background: var(--sand); padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem); }
.rs-form .apply-form__group { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rs-count { font: 500 var(--fs-xs)/1.8 var(--font-body); color: var(--honey-dark); background: var(--white); border-radius: var(--pill); padding: .1rem .8rem; }
.rs-count[data-n="0"] { color: var(--muted); }

/* product pills, one group per category */
.pick { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
.pick legend { padding: 0; margin-bottom: .6rem; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-soft); }
.pick .choice span { background: var(--white); }
.rs-from { margin: -.4rem 0 1.4rem; padding: .6rem .9rem; background: rgba(255, 255, 255, .65); border-inline-start: 3px solid var(--honey); font-size: var(--fs-xs); line-height: 1.9; color: var(--honey-dark); }
.rs-more { margin-top: -.5rem; font-size: var(--fs-xs); color: var(--muted); }
.rs-more a { color: var(--honey-dark); }
.rs-more + .apply-form__group { margin-top: 2.5rem; }

/* the summary box beside the form */
.rs-box { position: sticky; top: 1.5rem; border: 1px solid #e0d6ca; padding: 1.5rem 1.4rem 1.6rem; font-size: var(--fs-sm); line-height: 1.9; color: var(--ink-soft); }
.rs-box__title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; color: var(--ink); }
.rs-box__list { list-style: none; margin: .9rem 0 0; padding: 0; }
.rs-box__list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid #efe8df; color: var(--ink); }
.rs-box__list button { background: none; border: 0; padding: .2rem .35rem; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.rs-box__list button:hover { color: #8a2a1d; }
.rs-box__empty { margin-top: .75rem; color: var(--muted); font-size: var(--fs-xs); }
.rs-box__points { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid #e0d6ca; display: grid; gap: .45rem; font-size: var(--fs-xs); }
.rs-box__points li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: .6rem; background: var(--honey); transform: rotate(45deg); vertical-align: .15em; }
.rs-box .btn { width: 100%; margin-top: 1.25rem; }
.rs-box__chat { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-size: var(--fs-xs); font-weight: 500; color: var(--whatsapp); text-decoration: none; }
@media (max-width: 960px) {
  .rs-form__layout { grid-template-columns: 1fr; }
  .rs-box { position: static; }
  .rs-box .btn { display: none; }   /* on phones the box comes after the form */
}

/* r4 — questions */
.rs-faq { padding: 0 var(--pad) clamp(3.5rem, 7vw, 5rem); }
.rs-faq__inner { max-width: 760px; margin-inline: auto; }
.rs-faq h2 { text-align: center; font-size: var(--fs-lg); line-height: 1.4; color: var(--ink-soft); margin-bottom: 1.5rem; }
.rs-faq details { border-bottom: 1px solid #e6ddd2; }
.rs-faq details:first-of-type { border-top: 1px solid #e6ddd2; }
.rs-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-size: 1rem; font-weight: 500; color: var(--ink); }
.rs-faq summary::-webkit-details-marker { display: none; }
.rs-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--honey); }
.rs-faq details[open] summary::after { content: "−"; }
.rs-faq details p { padding-bottom: 1.1rem; font-size: var(--fs-sm); line-height: 2.05; color: var(--ink-soft); }

/* 23. SHOP — buy box, basket and checkout (WooCommerce, with our own design) --
   PDP: price, pack or weight selector, quantity with a minimum, add to basket.
   Header: basket button with a count · mini-basket · basket page · checkout. */

/* --- header basket button --- */
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; font-size: var(--fs-sm); padding: .35rem; }
.cart-btn .icon { width: 22px; height: 22px; }
.cart-btn__n {
  position: absolute; top: -2px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; border-radius: var(--pill);
  background: var(--pistachio); color: var(--pistachio-ink); font-size: .68rem; font-weight: 700; line-height: 1;
}
.cart-btn__n[data-n="0"] { display: none; }

/* --- buy box on the product page --- */
.buy {
  margin-top: 1.5rem; background: var(--sand); border: 1px solid #e4dbd0; padding: clamp(1.1rem, 2.5vw, 1.6rem);
}
.buy__price { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem .9rem; }
.buy__pricebits { flex: 1 1 10rem; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; }
.buy__amount { font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.3; color: var(--ink); }
.buy__unit { font-size: var(--fs-xs); color: var(--muted); line-height: 1.9; }
.buy__vat { margin-top: .45rem; font-size: var(--fs-xs); line-height: 1.9; color: var(--muted); }
.buy__block { margin-top: 1.15rem; }
.buy__label { font: 600 var(--fs-xs)/1.8 var(--font-body); color: var(--ink); margin-bottom: .5rem; }
.buy__label em { font-style: normal; font-weight: 400; color: var(--muted); margin-inline-start: .3rem; }
.buy__lead { margin: -.15rem 0 .55rem; font-size: var(--fs-xs); line-height: 1.85; color: var(--muted); }
.buy__count { margin: .55rem 0 0; font-size: var(--fs-xs); color: var(--honey-dark); font-weight: 500; }

/* --- a live campaign on the chosen combination (1.42.2) ---
   The engine always took the campaign off; now the page says so: the badge and how long it
   lasts on top, the old price struck through beside the new one, the saving under it. */
.buy__promo {
  display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; padding: .6rem .75rem;
  border-radius: 14px; background: var(--sale-soft); border: 1px solid rgba(180, 50, 31, .22);
}
.buy__promo[hidden] { display: none; }
.buy__promo-off {
  flex: none; background: var(--sale); color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.6;
  border-radius: 10px; padding: .35rem .75rem; white-space: nowrap; box-shadow: 0 6px 14px rgba(180, 50, 31, .25);
}
.buy__promo-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.65; }
.buy__promo-t strong { font-size: var(--fs-sm); font-weight: 600; color: var(--sale-dark); }
.buy__promo-left { display: inline-flex; align-items: center; gap: .4rem; font-style: normal; font-size: var(--fs-xs); color: var(--ink-soft); }
.buy__promo-left::before {   /* a small clock face */
  content: ""; flex: none; width: .8rem; height: .8rem; border-radius: 50%; border: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) 50% 30% / 1.5px 35% no-repeat,
              linear-gradient(currentColor, currentColor) 62% 50% / 30% 1.5px no-repeat;
}
.buy__promo-left.is-urgent { color: var(--sale); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .buy__promo-left.is-urgent::before { animation: promo-tick 1.6s ease-in-out infinite; }
  @keyframes promo-tick { 50% { transform: scale(1.18); } }
}
.buy--promo .buy__amount { color: var(--sale); }
.buy__was {   /* the price before the campaign, on its own line above the new one */
  order: -1; flex-basis: 100%; margin-bottom: -.55rem; font-size: var(--fs-body); color: var(--muted);
  text-decoration-line: line-through; text-decoration-color: rgba(180, 50, 31, .75); text-decoration-thickness: 1.5px;
}
.buy__was[hidden] { display: none; }
.buy__less {   /* the saving, as a small pill on its own line under the price */
  flex-basis: 100%; margin-top: -.2rem; color: var(--sale); font-weight: 600;
}
.buy__less[hidden] { display: none; }
.buy__promohint {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem;
  margin: .75rem 0 0; padding: .5rem .5rem .5rem .75rem; border: 1px dashed rgba(180, 50, 31, .4); border-radius: 12px;
  background: rgba(251, 235, 230, .6); font-size: var(--fs-xs); line-height: 1.8; color: var(--sale-dark);
}
.buy__promohint[hidden] { display: none; }
.buy__promohint em { font-style: normal; color: var(--ink-soft); }
.buy__promopick {
  font: inherit; font-size: var(--fs-xs); font-weight: 600; color: #fff; background: var(--sale);
  border: 0; border-radius: var(--pill); padding: .3rem 1rem; cursor: pointer;
}
.buy__promopick:hover { background: var(--sale-dark); }
.opt[data-off]::after {   /* the option that carries the discount */
  content: attr(data-off); position: absolute; top: -.55rem; inset-inline-end: .4rem; z-index: 1; pointer-events: none;
  background: var(--sale); color: #fff; font-size: .64rem; font-weight: 700; line-height: 1.55;
  padding: 0 .45rem; border-radius: var(--pill); box-shadow: 0 2px 6px rgba(180, 50, 31, .3);
}
.product__photo { position: relative; }
.product__promo {   /* the sticker on the photo */
  position: absolute; top: 1rem; inset-inline-end: 1rem; z-index: 2;
  width: 4.7rem; height: 4.7rem; border-radius: 50%; background: var(--sale); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2;
  box-shadow: 0 10px 24px rgba(120, 30, 15, .3); transform: rotate(-8deg); pointer-events: none;
}
.product__promo b { font-size: 1.4rem; font-weight: 700; }
.product__promo small { font-size: .68rem; }
.buy__profit {   /* under the total, on the total's side */
  display: flex; justify-content: flex-end; gap: .3rem; margin: .3rem 0 0; font-size: var(--fs-xs); line-height: 1.8; color: var(--sale-dark);
}
.buy__profit[hidden] { display: none; }
.buy__profit b { color: var(--sale); }
/* two numbers side by side are one run of digits to the browser's bidi: each is its own box */
.buy__total s, .pcard__price s { display: inline-block; }
.buy__total .buy__now { display: inline-block; font-size: inherit; color: inherit; }
.buy__total s { font-family: var(--font-body); }
.pcard__promo {   /* on a product card in a list: the same sticker, smaller */
  position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 2; display: flex; flex-direction: column; align-items: center;
  background: var(--sale); color: #fff; border-radius: 12px; padding: .3rem .65rem; line-height: 1.5;
  box-shadow: 0 6px 16px rgba(120, 30, 15, .28);
}
.pcard__promo b { font-size: .9rem; font-weight: 700; }
.pcard__promo small { font-size: .64rem; opacity: .92; }
.pcard__price s { font-weight: 400; font-size: .8em; color: var(--muted); text-decoration-color: rgba(180, 50, 31, .7); margin-inline-end: .3rem; }
.pcard__price--promo { color: var(--sale); }

/* --- one row of options; every option the same size, whatever its name --- */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .45rem; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer;
  min-height: 2.6rem; padding: .35rem .6rem; border-radius: 10px; background: var(--white);
  border: 1px solid #e4dace; font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-soft);
  transition: border-color .2s, background .2s, color .2s;
}
.opt input:hover + span { border-color: var(--honey); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.opt input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }
/* the only option this product has: shown the same way, but there is nothing to pick */
.opt input:disabled:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; cursor: default; }
.opt input:disabled:checked:hover + span { border-color: var(--ink); }
/* switched off because the limit is reached */
.opt input:disabled:not(:checked) + span { opacity: .45; cursor: not-allowed; }
.opt input:disabled:not(:checked):hover + span { border-color: #e4dace; }

/* 1.54.0 — an option the product is made in, but not with what is chosen in another row:
   it stays, switched off (dashed, faded), instead of disappearing; tapping it says why */
.opt.is-off input { pointer-events: none; }
.opt.is-off span,
.opt.is-off input:disabled:not(:checked) + span {   /* above the «limit reached» rule (.45) */
  cursor: not-allowed; color: var(--muted); background: rgba(255, 255, 255, .45);
  border-style: dashed; border-color: #cbbba8; opacity: .75;
}
.opt.is-off:hover span, .opt.is-off input:disabled:not(:checked):hover + span { border-color: #cbbba8; }
.buy__offnote {
  margin: .55rem 0 0; padding: .5rem .8rem; border-radius: 10px; background: var(--white, #fff);
  border: 1px solid #e4dace; border-inline-start: 3px solid var(--honey, #c8963e);
  font-size: var(--fs-xs); line-height: 1.8; color: var(--ink-soft);
}
.buy__offnote[hidden] { display: none; }
/* 1.54.0 — the discount ladder counts what is already in the basket: said under its title */
.ladder__basket { margin: .2rem 0 .45rem; font-size: var(--fs-xs); line-height: 1.8; color: var(--ink-soft); }
.ladder__basket b { color: var(--ink); }
.ladder__basket[hidden] { display: none; }

/* --- the customer's own note --- */
.onote {
  width: 100%; font: inherit; font-size: var(--fs-xs); line-height: 1.9; color: var(--ink);
  background: var(--white); border: 1px solid #e4dace; border-radius: 12px; padding: .7rem .9rem;
  resize: vertical; min-height: 3.4rem;
}
.onote::placeholder { color: var(--muted); }
.onote:focus { outline: 2px solid var(--honey); outline-offset: 1px; border-color: var(--honey); }
.onote__count { margin: .4rem 0 0; font-size: .74rem; color: var(--muted); text-align: end; }
.chosen { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid #e0d5c7; font-size: var(--fs-xs); line-height: 2; color: var(--ink-soft); }
.chosen b { color: var(--ink); }
.chosen--note { margin-top: .35rem; padding-top: 0; border-top: 0; }

/* --- «کارتن انتخابی»: the dishes and the thing that adds one --- */
.dishes { display: grid; gap: .4rem; }
.dish { display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  background: var(--white); border: 1px solid #e4dace; border-radius: 10px; padding: .55rem .8rem; font-size: var(--fs-xs); }
.dish__n { color: var(--muted); margin-inline-end: .4rem; }
.dish__t { color: var(--ink); font-weight: 600; }
.dish__x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: .2rem .3rem; }
.dish__x:hover { color: #9c3b2a; }
.dish--empty { border-style: dashed; color: var(--muted); justify-content: center; }
.adder { margin-top: .7rem; border: 1px solid #e4dace; border-radius: 12px; background: var(--white); padding: .85rem .9rem; }
.adder:empty { display: none; }
.adder--done { border: 0; background: none; padding: .2rem 0 0; }
.adder--done .buy__count { margin: 0; }
.adder__row { margin-bottom: .7rem; }
.adder__row > p { margin: 0 0 .4rem; font-size: .76rem; font-weight: 600; color: var(--ink-soft); }
.adder .opts { gap: .35rem; grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); }
.adder .opt span { min-height: 2.2rem; font-size: .78rem; padding: .3rem .5rem; }
.adder__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; justify-content: space-between; }
.adder__foot .btn { flex: 1 1 9rem; justify-content: center; padding: .6rem 1rem; font-size: var(--fs-xs); min-height: 0; }
.cstep { display: flex; align-items: center; gap: .1rem; }
.cstep button { width: 2rem; height: 2rem; border: 1px solid #e4dace; background: var(--white);
  border-radius: 8px; font-size: 1rem; cursor: pointer; color: var(--ink); line-height: 1; }
.cstep button:disabled { opacity: .35; cursor: not-allowed; }
.cstep b { min-width: 1.8rem; text-align: center; font-weight: 600; }

/* --- the discount ladder --- */
.ladder { margin-top: 1rem; padding: 1rem 1.1rem 1.1rem; background: var(--white); border-radius: 14px; }
.ladder__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.ladder__title { font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.ladder__save { font-size: var(--fs-xs); font-weight: 600; color: var(--pistachio-ink); background: var(--pistachio); border-radius: var(--pill); padding: .2rem .7rem; }
.ladder__track { position: relative; height: 7px; border-radius: var(--pill); background: var(--sand); overflow: hidden; }
.ladder__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0;
  background: linear-gradient(to left, var(--honey), var(--pistachio-ink)); border-radius: var(--pill); transition: width .45s ease; }
.ladder__steps { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; justify-content: space-between; gap: .4rem; }
.ladder__steps li { flex: 1; text-align: center; font-size: .74rem; line-height: 1.6; color: var(--muted); }
.ladder__steps b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.ladder__steps li.is-on { color: var(--ink-soft); }
.ladder__steps li.is-on b { color: var(--pistachio-ink); }
.ladder__steps li.is-next b { color: var(--honey-dark); }
.ladder__hint { margin: .8rem 0 0; font-size: var(--fs-xs); line-height: 1.9; color: var(--ink-soft); }
.ladder__hint strong { color: var(--honey-dark); }

/* --- «راهنمای سفارش» --- */
.helpbtn { margin-inline-start: auto; margin-top: .35rem; display: inline-flex; align-items: center; gap: .35rem;
  font: inherit; font-size: var(--fs-xs); font-weight: 500; cursor: pointer; color: var(--honey-dark);
  background: var(--white); border: 1px solid #e4dace; border-radius: var(--pill); padding: .35rem .85rem; }
.helpbtn:hover { border-color: var(--honey); background: #fff8ea; }
.helpbtn:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.helpbtn .icon { width: 16px; height: 16px; flex: none; }
dialog.help { width: min(100% - 1.5rem, 34rem); max-height: min(86vh, 42rem); color: var(--ink);
  border: 0; border-radius: 18px; padding: 0; overflow: hidden; background: var(--cream);
  box-shadow: 0 24px 60px rgba(26, 16, 7, .3); flex-direction: column; }
dialog.help[open] { display: flex; }
dialog.help::backdrop { background: rgba(26, 16, 7, .55); }
.help__body { overflow: auto; outline: 0; padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.3rem, 3vw, 1.9rem) 1.2rem; }
.help__x { position: absolute; inset-inline-end: .75rem; top: .75rem; margin: 0; }
.help__x button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: .25rem; line-height: 0; }
.help__x button:hover { color: var(--ink); }
.help__x .icon { width: 20px; height: 20px; }
.help__kicker { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--honey); }
.help__title { font-family: var(--font-display); font-weight: 400; margin: .15rem 0 .45rem;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem); line-height: 1.5; padding-inline-end: 1.6rem; }
.help__lead { margin: 0; font-size: var(--fs-xs); line-height: 2; color: var(--ink-soft); }
.help__steps { list-style: none; counter-reset: s; margin: 1.15rem 0 0; padding: 0; }
.help__steps li { counter-increment: s; position: relative; padding-inline-start: 2.7rem; padding-bottom: 1.1rem; }
.help__steps li::before { content: counter(s, persian); position: absolute; inset-inline-start: 0; top: -.1rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 600; }
.help__steps li::after { content: ""; position: absolute; inset-inline-start: .95rem; top: 2.1rem; bottom: .1rem; width: 1px; background: #e0d5c7; }
.help__steps li:last-child { padding-bottom: 0; }
.help__steps li:last-child::after { display: none; }
.help__steps b { display: block; font-size: var(--fs-sm); color: var(--ink); font-weight: 600; margin-bottom: .1rem; }
.help__steps em { display: block; font-style: normal; font-size: var(--fs-xs); line-height: 2; color: var(--ink-soft); }
.help__foot { flex: none; padding: 1rem clamp(1.3rem, 3vw, 1.9rem) clamp(1.1rem, 2.4vw, 1.4rem);
  border-top: 1px solid #e0d5c7; background: var(--sand); }
.help__foot p { margin: 0 0 .75rem; font-size: var(--fs-xs); line-height: 1.95; color: var(--muted); }
.help__acts { display: flex; flex-wrap: wrap; gap: .6rem; }
.help__acts .btn { flex: 1 1 10rem; justify-content: center; min-height: 0; padding: .6rem 1rem; }

.qty { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.qty__box { display: inline-flex; align-items: center; background: var(--white); border: 1px solid #ded4c8; border-radius: var(--pill); }
.qty__btn { width: 42px; height: 42px; border: 0; background: none; color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; border-radius: var(--pill); }
.qty__btn:hover { color: var(--honey); }
.qty__btn[disabled] { opacity: .35; cursor: not-allowed; }
.qty__input { width: 64px; border: 0; background: none; text-align: center; font: 500 1rem var(--font-body); color: var(--ink); padding: .4rem 0; }
.qty__input:focus { outline: none; }
.qty__unit { font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; text-align: center; }
.qty__min { margin-top: .5rem; font-size: var(--fs-xs); color: var(--muted); }
.qty__min strong { color: var(--honey-dark); font-weight: 500; }

.buy__total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e4dbd0; }
.buy__total s { color: var(--muted); font-size: var(--fs-xs); margin-inline-end: .5rem; }
.buy__total span { font-size: var(--fs-sm); color: var(--ink-soft); }
.buy__total strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--ink); }
.buy__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.buy__actions .btn, .buy__actions button.btn { flex: 1 1 12rem; justify-content: center; min-height: 50px; font-size: var(--fs-body); }
.buy__actions button.btn:disabled { opacity: .45; cursor: not-allowed; }
.buy__stock { display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; font-size: var(--fs-xs); color: var(--pistachio-ink); }
.buy__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4a7a3a; }
.buy__stock--low { color: #8a5a00; }
.buy__stock--low::before { background: #d4a017; }

/* trust row under the buy box */
.trust { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; font-size: var(--fs-xs); color: var(--ink-soft); }
.trust li { display: flex; align-items: flex-start; gap: .45rem; line-height: 1.7; }
.trust .icon { width: 16px; height: 16px; color: var(--honey); flex: none; margin-top: .25rem; }

/* price on category cards */
.pcard__price { display: block; margin-top: .55rem; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.pcard__price small { font-weight: 400; color: var(--muted); }

/* --- mini basket (slides in from the side) --- */
.mini { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.mini.is-open { visibility: visible; }
.mini__scrim { position: absolute; inset: 0; background: rgba(26, 16, 7, .45); opacity: 0; transition: opacity .25s; }
.mini.is-open .mini__scrim { opacity: 1; }
.mini__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%);
  background: var(--cream); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
[dir="ltr"] .mini__panel { transform: translateX(100%); }
.mini.is-open .mini__panel { transform: none; }
.mini__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid #e6ddd2; }
.mini__head h2 { font-size: 1.3rem; }
.mini__close { background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--ink-soft); }
.mini__close .icon { width: 22px; height: 22px; }
.mini__list { flex: 1; overflow-y: auto; margin: 0; padding: .5rem 1.25rem; list-style: none; }
.mini__foot { padding: 1.1rem 1.25rem 1.4rem; border-top: 1px solid #e6ddd2; }
.mini__sum { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: .9rem; }
.mini__sum strong { color: var(--ink); font-size: 1.1rem; font-weight: 500; }
.mini__foot .btn { width: 100%; }
.mini__foot .btn + .btn { margin-top: .5rem; }

/* one line in the mini basket / basket page */
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .9rem; align-items: start; padding: .9rem 0; border-bottom: 1px solid #e6ddd2; }
.line__img { width: 64px; aspect-ratio: 1; object-fit: cover; background: var(--sand); }
.line__name { font-size: var(--fs-sm); color: var(--ink); font-weight: 500; line-height: 1.6; }
.line__meta { margin-top: .2rem; font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; }
.line__price { font-size: var(--fs-sm); color: var(--ink); white-space: nowrap; }
.line__remove { background: none; border: 0; padding: .2rem; color: var(--muted); cursor: pointer; font-size: 1rem; }
.line__remove:hover { color: #8a2a1d; }

/* --- basket page --- */
.basket { padding: clamp(2.5rem, 5vw, 4rem) var(--pad) clamp(3.5rem, 6vw, 5rem); }
.basket__layout { max-width: 1140px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.basket__title { font-size: var(--fs-xl); line-height: 1.3; margin-bottom: 1.5rem; }
.basket__table { width: 100%; border-collapse: collapse; }
.basket__table th { text-align: start; font: 500 var(--fs-xs)/1.8 var(--font-body); letter-spacing: .03em; color: var(--honey); padding-bottom: .6rem; border-bottom: 1px solid #e6ddd2; }
.basket__table td { padding: 1rem 0; border-bottom: 1px solid #e6ddd2; vertical-align: middle; font-size: var(--fs-sm); color: var(--ink-soft); }
.basket__product { display: flex; align-items: center; gap: .9rem; }
.basket__product img { width: 72px; aspect-ratio: 1; object-fit: cover; background: var(--sand); }
.basket__product strong { display: block; font-weight: 500; color: var(--ink); font-size: var(--fs-sm); }
.basket__product span { display: block; margin-top: .2rem; font-size: var(--fs-xs); color: var(--muted); }
.basket__table .qty__box { transform: scale(.92); }
.basket__sum { border: 1px solid #e0d6ca; padding: 1.4rem 1.3rem 1.6rem; position: sticky; top: 1.5rem; }
.basket__sum h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.basket__row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: var(--fs-sm); color: var(--ink-soft); border-bottom: 1px solid #efe8df; }
.basket__row--total { border-bottom: 0; padding-top: .9rem; font-size: 1rem; color: var(--ink); }
.basket__row--total strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.basket__sum .btn { width: 100%; margin-top: 1.1rem; min-height: 50px; }
.basket__note { margin-top: .9rem; font-size: var(--fs-xs); line-height: 1.9; color: var(--muted); }
.basket__empty { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 0; color: var(--ink-soft); }
@media (max-width: 900px) {
  .basket__layout { grid-template-columns: 1fr; }
  .basket__sum { position: static; }
  .basket__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .basket__table tr { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: 1rem 0; border-bottom: 1px solid #e6ddd2; }
  .basket__table td { border: 0; padding: 0; }
  .basket__table td:first-child { grid-column: 1 / -1; }
}

/* --- checkout --- */
.checkout { padding: clamp(2.5rem, 5vw, 4rem) var(--pad) clamp(3.5rem, 6vw, 5rem); }
.checkout__layout { max-width: 1140px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.checkout__title { font-size: var(--fs-xl); line-height: 1.3; margin-bottom: 1.5rem; }
.checkout__panel { background: var(--sand); padding: clamp(1.5rem, 3vw, 2.25rem); }
.checkout__panel + .checkout__panel { margin-top: 1.25rem; }
.checkout__panel h2 { font-size: 1.3rem; color: var(--honey); padding-bottom: .7rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line-honey); }
.ship { display: grid; gap: .6rem; border: 0; margin: 0; padding: 0; }
.ship legend { padding: 0; }
.ship .pack__row { background: var(--white); }
.checkout__terms { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.9; }
.checkout__terms input { margin-top: .45rem; }
.checkout .basket__sum { background: var(--white); }
.checkout__lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.checkout__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #efe8df; font-size: var(--fs-sm); color: var(--ink-soft); }
.checkout__lines strong { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .checkout__layout { grid-template-columns: 1fr; } .checkout .basket__sum { position: static; } }

/* tiered prices in the buy box */
.tiers { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); background: var(--white); border: 1px solid #e4dbd0; border-radius: 10px; overflow: hidden; }
.tiers th { text-align: start; font-weight: 500; color: var(--muted); padding: .5rem .75rem; background: #faf6f1; }
.tiers th:last-child, .tiers td:last-child { text-align: end; white-space: nowrap; }
.tiers td { padding: .5rem .75rem; color: var(--ink-soft); border-top: 1px solid #efe8df; }
.tiers tr.is-active td { background: var(--pistachio); color: var(--pistachio-ink); font-weight: 500; }
.buy__bulk { margin-top: .9rem; font-size: var(--fs-xs); line-height: 1.95; color: var(--ink-soft); }
.buy__bulk a { color: var(--honey); }
.product-card__price { display: block; margin-top: .4rem; font-size: var(--fs-sm); color: rgba(255, 255, 255, .92); }

/* sticky buy bar on phones (appears once the buy box scrolls away) */
.buybar { display: none; }
@media (max-width: 767px) {
  .buybar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .7rem var(--pad) calc(.7rem + env(safe-area-inset-bottom));
    background: var(--cream); border-top: 1px solid #e6ddd2; box-shadow: 0 -6px 18px rgba(26, 16, 7, .08);
    transform: translateY(115%); transition: transform .25s; will-change: transform;
  }
  .buybar.is-on { transform: none; }
  .buybar__price { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); line-height: 1.5; }
  .buybar__price small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
  .buybar .btn { min-height: 46px; padding-inline: 1.1rem; flex: none; }
}

/* --- header: account + basket sit together; «مشتری ما شوید» moves into the menu --- */
.nav-primary > ul > li.nav-cta > a {
  padding: .4rem .95rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--pill); background-image: none;
}
.nav-primary > ul > li.nav-cta > a:hover { background-color: rgba(255, 255, 255, .14); }
.acct summary .icon { width: 20px; height: 20px; }
.acct ul { min-width: 190px; }
.acct .acct__sep { border-top: 1px solid #eee6dc; margin: .35rem .4rem; }

/* made to order, not from stock */
.buy__stock--fresh { color: var(--honey-dark); }
.buy__stock--fresh::before { background: var(--honey); }

/* quantity discount */
.tier-hint { margin-top: .6rem; font-size: var(--fs-xs); line-height: 1.8; color: var(--honey-dark); }
.buy__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: .55rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.buy__row--off { color: var(--pistachio-ink); }
.line__off, .basket__off { display: block; margin-top: .2rem; font-size: var(--fs-xs); color: var(--pistachio-ink); }
.pack__price small { display: block; margin-top: .15rem; font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.pack__unit { display: inline-block; margin-inline-end: .45rem; padding: .1rem .5rem; border-radius: var(--pill); background: var(--pistachio); color: var(--pistachio-ink); font-size: var(--fs-xs); font-weight: 500; }

/* 24. SOLUTION PAGES — buying online ---------------------------------------
   Product cards with a price and a way straight into the buy box, a ready-made
   basket for cafés and restaurants, and the three steps of an online order. */

.sol-products__head .buy-lead { margin-top: 1rem; font-size: var(--fs-sm); line-height: 2; color: var(--ink-soft); }
.sol-products__all { text-align: center; margin-top: clamp(1.5rem, 3vw, 2rem); }
.buycards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gutter);
  max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.buycard { display: flex; flex-direction: column; background: var(--white); border: 1px solid #e6ddd2; }
.buycard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.buycard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.buycard:hover .buycard__media img { transform: scale(1.04); }
.buycard__body { display: flex; flex-direction: column; flex: 1; gap: .55rem; padding: 1.1rem 1.15rem 1.25rem; }
.buycard h3 { font-size: var(--fs-md); line-height: 1.5; }
.buycard h3 a { color: inherit; text-decoration: none; }
.buycard h3 a:hover { color: var(--honey); }
.buycard p { font-size: var(--fs-sm); line-height: 1.95; color: var(--ink-soft); }
.buycard__price { margin-top: auto; padding-top: .8rem; border-top: 1px solid #efe8df; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.buycard__price small { font-weight: 400; color: var(--muted); }
.buycard__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.buycard__actions .btn { flex: 1 1 auto; min-height: 44px; }
.buycard__sample { font-size: var(--fs-xs); color: var(--honey-dark); text-underline-offset: 4px; }

/* ready-made basket */
.starter { background: var(--sand); padding: clamp(2.5rem, 5vw, 4rem) var(--pad); }
.starter__inner { max-width: 820px; margin-inline: auto; background: var(--cream); border: 1px solid #e0d6ca; padding: clamp(1.4rem, 3vw, 2.1rem); }
.starter h2 { font-size: var(--fs-lg); line-height: 1.4; color: var(--honey); }
.starter__lead { margin-top: .7rem; font-size: var(--fs-sm); line-height: 2.05; color: var(--ink-soft); }
.starter__list { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.starter__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .75rem 0; border-bottom: 1px solid #e6ddd2; font-size: var(--fs-sm); color: var(--ink); }
.starter__list span { display: block; margin-top: .15rem; font-size: var(--fs-xs); color: var(--muted); }
.starter__list b { font-weight: 500; white-space: nowrap; }
.starter__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.starter__sum span { font-size: var(--fs-sm); color: var(--ink-soft); }
.starter__sum strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--ink); }
.starter .btn { width: 100%; margin-top: 1.1rem; min-height: 52px; }
.starter__note { margin-top: .9rem; font-size: var(--fs-xs); line-height: 1.95; color: var(--muted); }

/* three steps of an online order */
.buysteps { background: var(--sand); padding: clamp(2.5rem, 5vw, 4rem) var(--pad); }
.buysteps__inner { max-width: 1000px; margin-inline: auto; }
.buysteps h2 { text-align: center; font-size: var(--fs-lg); line-height: 1.4; color: var(--ink-soft); }
.buysteps ol { list-style: none; counter-reset: s; margin: clamp(1.5rem, 3vw, 2.2rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.buysteps li { counter-increment: s; background: var(--white); padding: 1.3rem 1.3rem 1.5rem; font-size: var(--fs-sm); line-height: 1.95; color: var(--ink-soft); }
.buysteps li::before { content: counter(s, persian); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--honey); color: var(--white); font-weight: 500; font-size: var(--fs-sm); margin-bottom: .8rem; }
.buysteps h3 { font-size: 1.05rem; margin-bottom: .35rem; color: var(--ink); }
.buysteps__note { margin-top: 1.3rem; text-align: center; font-size: var(--fs-xs); color: var(--muted); line-height: 2; }
@media (max-width: 700px) { .buysteps ol { grid-template-columns: 1fr; } }

/* a quiet line under a button row */
.alt-line { margin-top: 1.1rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.alt-line a { color: var(--honey); text-underline-offset: 4px; }
.alt-line--light { color: rgba(255, 255, 255, .82); }
.alt-line--light a { color: var(--white); }

/* the two sections trade grounds: the steps sit on sand, the products on cream */
.solution-page .sol-products { background: var(--cream); }

@media (max-width: 700px) { .opts { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); } }
/* on a phone the price keeps the line to itself; the help button sits under it */
@media (max-width: 480px) {
  .buy__pricebits { flex: 1 1 100%; }
  .helpbtn { margin-inline-start: 0; }
}

/* what the buy box says after «افزودن به سبد خرید» */
.buy__said { margin: .9rem 0 0; font-size: var(--fs-xs); line-height: 1.9; color: var(--pistachio-ink); }
.buy__said.is-bad { color: #9c3b2a; }
.buy__said a { margin-inline-start: .4rem; color: var(--honey-dark); font-weight: 600; text-decoration: underline; }


/* 25. SHOP PAGES — basket, checkout, order received, sign-in/up, «حساب من» ----
   These are the designs you approved as HTML mock-ups. The classes are grouped
   the same way the pages are: shared page frame → basket → checkout → order
   received → account → order templates → sign-in card → sign-up page. */

/* --- shared page frame (basket, checkout, order received) --- */
.shop-page { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.shop-page__in { width: min(100% - 2*var(--pad), var(--container)); margin-inline: auto; }
.shop-page__in--narrow { max-width: 38rem; }
.shop-page__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: .3rem 0 .4rem; }
.shop-page__lead { margin: 0 0 1.6rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.shop-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: start; }
.shop-page__back { margin: 1.2rem 0 0; font-size: var(--fs-xs); }
.shop-page__back a { display: inline-flex; align-items: center; gap: .35rem; color: var(--honey-dark); font-weight: 600; }
.shop-page__back .icon { width: 15px; height: 15px; }

.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--honey-dark); font-weight: 600; cursor: pointer; text-decoration: underline; }
.linkbtn--bad { color: #9c3b2a; }
.btn--sm { min-height: 38px; padding: .35rem 1rem; font-size: var(--fs-xs); }

/* --- one line in the basket: the photo, the full spec, the count, the sum --- */
.clines { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cline { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto auto; gap: 1rem; align-items: start;
  background: var(--sand); border-radius: 16px; padding: 1rem 1.1rem; }
.cline__img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 10px; display: block; background: var(--white); }
.cline__name { margin: 0 0 .35rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.cline__name a { color: inherit; text-decoration: none; }
.cline__name a:hover { color: var(--honey-dark); }
.cline__specs { margin: 0; display: grid; gap: .15rem; }
.cline__spec { font-size: var(--fs-xs); line-height: 1.85; color: var(--ink-soft); }
.cline__per { margin: .3rem 0 0; font-size: .76rem; color: var(--muted); }
.cline__note { margin: .45rem 0 0; font-size: .76rem; line-height: 1.85; color: var(--ink-soft);
  background: var(--white); border-radius: 8px; padding: .4rem .7rem; }
.cline__note b { color: var(--ink); }
.cline__qty-wrap { display: grid; justify-items: center; gap: .35rem; }
.cline__unit { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.cline__qty { font-size: var(--fs-xs); color: var(--ink-soft); white-space: nowrap; }
.cline__sum { text-align: end; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); white-space: nowrap; }
.cline__x { display: block; margin: .4rem 0 0 auto; border: 0; background: none; color: var(--muted);
  cursor: pointer; font-size: 1.1rem; line-height: 1; padding: .1rem .3rem; text-decoration: none; }
.cline__x:hover { color: #9c3b2a; }
.clines--read .cline { background: var(--white); padding: .8rem .9rem; }
.qty__box--sm { border-radius: var(--pill); }
.qty__box--sm .qty__btn { width: 2rem; height: 2rem; font-size: 1rem; }
.qty__box--sm .qty__input { width: 2.3rem; font-size: .9rem; }

/* --- the order summary that follows the page down --- */
.sum { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--sand); border-radius: 18px; padding: 1.2rem 1.3rem 1.4rem; }
.sum__t { margin: 0 0 1rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.sum__list { margin: 0; font-size: var(--fs-xs); }
.sum__list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.sum__list dt { color: var(--muted); }
.sum__list dd { margin: 0; color: var(--ink); }
.sum__list .minus { color: var(--pistachio-ink); }
.sum__list .soft { color: var(--muted); font-size: .76rem; }
.sum__total { border-top: 1px solid #e0d5c7; margin-top: .5rem; padding-top: .7rem !important; }
.sum__total dt { color: var(--ink); font-weight: 600; }
.sum__total dd { font-family: var(--font-display); font-size: 1.3rem; }
.sum__go { width: 100%; justify-content: center; min-height: 52px; margin-top: 1.1rem; }
.sum__note { margin: .9rem 0 0; font-size: .74rem; line-height: 1.9; color: var(--muted); }

/* «with this much more, the discount goes up» — the same ladder as the buy box */
.nudge { margin-top: 1rem; background: var(--white); border-radius: 12px; padding: .8rem .9rem; }
.nudge__t { margin: 0 0 .5rem; font-size: .76rem; line-height: 1.8; color: var(--ink-soft); }
.nudge__t b { color: var(--honey-dark); }
.nudge__bar { height: 6px; border-radius: var(--pill); background: var(--sand); overflow: hidden; }
.nudge__bar span { display: block; height: 100%; border-radius: var(--pill);
  background: linear-gradient(to left, var(--honey), var(--pistachio-ink)); }

/* «save this basket for next time» */
.saveas { margin: 1rem 0 0; background: var(--sand); border-radius: 16px; padding: .9rem 1.1rem 1rem; }
.saveas__t { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.saveas__t .icon { width: 17px; height: 17px; flex: none; color: var(--honey); }
.saveas__x { margin: .35rem 0 0; font-size: var(--fs-xs); line-height: 1.95; color: var(--ink-soft); }
.saveas__act { margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.saveas__name { flex: 1 1 12rem; min-width: 0; }

/* --- checkout: one page, one block per decision --- */
.block { background: var(--sand); border-radius: 16px; padding: 1.1rem 1.2rem; margin-bottom: .9rem; }
.block__t { margin: 0 0 .9rem; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.block__t em { font-style: normal; font-weight: 400; color: var(--muted); margin-inline-start: .4rem; }
.block__act { margin: .8rem 0 0; font-size: var(--fs-xs); }
.picks { display: grid; gap: .5rem; }
.pick2 { position: relative; display: block; cursor: pointer; }
.pick2 input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pick2 > span { display: block; background: var(--white); border: 1px solid #e4dace; border-radius: 12px; padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s; }
.pick2 b { display: block; font-size: var(--fs-xs); color: var(--ink); margin-bottom: .2rem; }
.pick2 em { display: block; font-style: normal; font-size: .76rem; line-height: 1.85; color: var(--muted); }
.pick2 input:checked + span { border-color: var(--honey); box-shadow: inset 0 0 0 1px var(--honey); }
.pick2 input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }
.kvbox { background: var(--white); border-radius: 12px; padding: .9rem 1rem; }
.kv { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .4rem; font-size: var(--fs-xs); }
.kv:last-child { margin-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { color: var(--ink); font-weight: 600; }
.ta { width: 100%; font: inherit; font-size: var(--fs-xs); line-height: 1.9; color: var(--ink);
  background: var(--white); border: 1px solid #e4dace; border-radius: 12px; padding: .7rem .9rem; resize: vertical; }
.ta:focus { outline: 2px solid var(--honey); outline-offset: 1px; border-color: var(--honey); }
/* the yellow box: something is not wired up yet (the payment gateway, for now) */
.paynote { margin: .8rem 0 0; font-size: .76rem; line-height: 1.85; color: #6b4a00;
  background: #fff7e0; border: 1px dashed #d4a017; border-radius: 10px; padding: .5rem .8rem; }

/* --- the empty basket --- */
.empty { text-align: center; padding: clamp(2rem, 6vw, 4.5rem) 1rem; background: var(--sand); border-radius: 20px; }
.empty__icon { display: flex; justify-content: center; margin: 0 0 1rem; }
.empty__icon .icon { display: block; width: 44px; height: 44px; color: var(--honey); }
.empty__t { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .6rem; }
.empty__x { margin: 0 auto 1.4rem; max-width: 30rem; font-size: var(--fs-sm); line-height: 2; color: var(--ink-soft); }
.empty__acts { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* --- «سفارشتان ثبت شد» --- */
.done { text-align: center; background: var(--sand); border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.2rem, 3vw, 2rem); }
.done__tick { display: flex; justify-content: center; margin: 0 0 .8rem; }
.done__tick .icon { display: block; width: 40px; height: 40px; color: var(--pistachio-ink); background: var(--pistachio);
  border-radius: 50%; padding: 8px; }
.done__t { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 0 0 .5rem; }
.done__x { margin: 0 0 1.6rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.done__x b { color: var(--ink); }
.done__now { margin: 1.2rem 0 1.4rem; font-size: var(--fs-xs); line-height: 2; color: var(--ink-soft); }
.done__acts { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.done__note { margin: 1.2rem 0 0; font-size: .76rem; line-height: 1.9; color: var(--muted); }

/* --- the five stages, used on the thank-you page and in the account --- */
.track { list-style: none; display: flex; margin: 0 0 1rem; padding: 0; }
.track li { flex: 1; min-width: 0; position: relative; text-align: center; font-size: .74rem; line-height: 1.6;
  color: var(--muted); padding: 1.4rem .15rem 0; }
.track li::before { content: ""; position: absolute; top: .45rem; inset-inline-start: 50%; width: 100%; height: 2px; background: #e0d5c7; }
.track li:last-child::before { display: none; }
.track__dot { position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%);
  width: .9rem; height: .9rem; border-radius: 50%; background: #e0d5c7; }
.track li.is-done { color: var(--ink-soft); }
.track li.is-done .track__dot, .track li.is-now .track__dot { background: var(--pistachio-ink); }
.track li.is-done::before { background: var(--pistachio-ink); }
.track li.is-now { color: var(--ink); font-weight: 600; }
.track li.is-now .track__dot { box-shadow: 0 0 0 4px rgba(69,81,26,.18); }
.track--off li.is-now { color: #9c3b2a; }
.track--off li.is-now .track__dot { background: #9c3b2a; box-shadow: 0 0 0 4px rgba(156,59,42,.15); }

.tag { font-size: .74rem; font-weight: 600; border-radius: var(--pill); padding: .2rem .7rem; white-space: nowrap; }
.tag--now { background: #fff3d6; color: #7a5600; }
.tag--done { background: var(--pistachio); color: var(--pistachio-ink); }
.tag--soft { background: var(--white); color: var(--muted); font-weight: 500; }
.tag--off { background: #f6e3df; color: #9c3b2a; }

/* --- «حساب من» --- */
.acc { padding-block: clamp(1.8rem, 3.5vw, 3rem) clamp(3rem, 6vw, 5rem); }
.acc__in { width: min(100% - 2*var(--pad), var(--container)); margin-inline: auto; }
.acc__kicker { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--honey); }
.acc__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: .2rem 0 .3rem; }
.acc__lead { margin: 0 0 1.8rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.acc__grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: start; }
.acc__grid > * { min-width: 0; }   /* the scrolling nav must not stretch the page */

/* ================================================================
   «حساب من» — the account's menu (1.48.1)
   One card; every item the same height, its words starting on the same line;
   «خروج از حساب» a quiet button at the foot, lined up with the rest.
   Theme 1.56.0: in place of the old .anav rules (desktop and ≤860px).
   ================================================================ */
.anav { background: var(--sand); border-radius: 18px; padding: .5rem; }
.anav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.anav li { margin: 0; }
.anav__btn { display: flex; align-items: center; width: 100%; box-sizing: border-box; min-height: 44px; margin: 0;
  padding: .55rem 1rem; border: 0; border-radius: 12px; background: none; cursor: pointer; text-align: start;
  font: inherit; font-size: .86rem; line-height: 1.6; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: background .15s, color .15s; }
.anav__btn:hover { background: rgba(255, 255, 255, .75); color: var(--ink); }
.anav__btn.on, .anav__btn.on:hover { background: var(--ink); color: #fff; font-weight: 700; }
.anav__btn:focus-visible, .anav__out a:focus-visible { outline: 2px solid var(--honey); outline-offset: 1px; }
.anav__out { margin: .5rem 0 0; padding: .5rem 0 0; border-top: 1px solid #e3d8ca; font-size: inherit; }
.anav__out a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; box-sizing: border-box; width: 100%; min-height: 44px;
  padding: .55rem 1rem; border: 1px solid #ddd0c0; border-radius: 12px; background: var(--white);
  font-size: .86rem; line-height: 1.6; font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: border-color .15s, color .15s; }
.anav__out a::after { content: '←'; font-weight: 400; opacity: .55; }
.anav__out a:hover { border-color: #9c3b2a; color: #9c3b2a; }

/* phone and tablet: the menu is one row of equal pills that slides sideways, «خروج» at its end */
@media (max-width: 860px) {
  .anav { display: flex; align-items: center; gap: .5rem; padding: 0; background: none; border-radius: 0; }
  .anav ul { flex: 1; min-width: 0; display: flex; gap: .4rem; overflow-x: auto; padding: 0 0 .1rem; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.6rem); mask-image: linear-gradient(to right, transparent 0, #000 1.6rem); }
  .anav ul::-webkit-scrollbar { display: none; }
  .anav li { flex: none; }
  .anav li:last-child { padding-inline-end: 1.4rem; }
  .anav__btn { width: auto; min-height: 40px; padding: 0 1rem; white-space: nowrap; border-radius: 99px; background: var(--sand); font-size: .82rem; }
  .anav__btn:hover { background: #ebe1d3; }
  .anav__out { flex: none; margin: 0; padding: 0; border: 0; }
  .anav__out a { width: auto; min-height: 40px; padding: 0 .95rem; border-radius: 99px; font-size: .8rem; white-space: nowrap; }
  .anav__out a::after { display: none; }
}

/* the empty notices box above the page pushed every page 1rem below the menu — the menu and the page now start on one line */
.acc__content > .woocommerce-notices-wrapper:empty { display: none; }


.card { background: var(--sand); border-radius: 18px; padding: clamp(1.1rem, 2.4vw, 1.7rem); margin-bottom: 1.1rem; }
.card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.card__kicker { margin: 0 0 .2rem; font-size: var(--fs-xs); font-weight: 600; color: var(--honey); }
.card__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); }
.card__meta { margin: .3rem 0 0; font-size: var(--fs-xs); line-height: 1.9; color: var(--muted); }
.card__acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.card__acts .btn { min-height: 44px; }
.card__note { margin: .9rem 0 0; font-size: .78rem; line-height: 1.9; color: var(--muted); }
.card .field input { background: transparent; }

/* the year panel: three figures, each with last year's comparison and a month strip */
.year__head { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; flex-wrap: wrap; margin: 0 0 .85rem; }
.year__t { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.year__sub { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.year__foot { margin: .9rem 0 0; font-size: var(--fs-xs); line-height: 1.9; color: var(--ink-soft); }
.year__foot b { color: var(--ink); font-weight: 600; }
.ystats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; }
.ystat { background: var(--white); border-radius: 14px; padding: .9rem 1rem 1rem; min-width: 0; }
.ystat__label { display: block; font-size: var(--fs-xs); color: var(--muted); }
.ystat__v { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.25; color: var(--ink); margin: .1rem 0 0; }
.ystat__d { display: flex; align-items: center; gap: .3rem; margin: .15rem 0 .8rem; font-size: .72rem; color: var(--pistachio-ink); }
.ystat__d--flat { color: var(--muted); }
.ystat__ar { width: 9px; height: 9px; flex: none; fill: currentColor; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 42px; border-bottom: 1px solid #e6dbcb; }
.spark__b { position: relative; flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.spark__b i { display: block; width: 100%; max-width: 11px; height: var(--h); min-height: 3px; background: #ded1be; border-radius: 4px 4px 0 0; }
.spark__b.is-now i { background: var(--honey); }
.spark__b em { position: absolute; bottom: calc(100% + 7px); inset-inline-start: 50%; transform: translateX(50%);
  font-style: normal; white-space: nowrap; font-size: .68rem; padding: .3rem .55rem; border-radius: 9px;
  background: var(--ink); color: var(--cream); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.spark__b:hover em, .spark__b:focus-visible em { opacity: 1; }
.spark__b:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; border-radius: 4px; }

/* a plain list of items — used inside orders and order templates */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
  background: var(--white); border-radius: 10px; padding: .65rem .9rem; font-size: var(--fs-xs); }
.row b { display: block; color: var(--ink); }
.row em { display: block; font-style: normal; color: var(--muted); line-height: 1.85; margin-top: .1rem; }
.row > span:first-child { flex: 1 1 14rem; min-width: 0; }
.row__q { color: var(--ink-soft); white-space: nowrap; }
.row__p { color: var(--ink); font-weight: 600; white-space: nowrap; }
.row__x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: .1rem .3rem; text-decoration: none; }
.row__x:hover { color: #9c3b2a; }
.row--off b, .row--off em { color: var(--muted); }
.row--off b { text-decoration: line-through; }
.row__off { font-size: .74rem; font-weight: 600; color: #9c3b2a; white-space: nowrap; }

/* one past order, folded shut until it is clicked */
.order { background: var(--white); border-radius: 12px; margin-bottom: .5rem; overflow: hidden; }
.order__head { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; cursor: pointer;
  border: 0; background: none; font: inherit; text-align: start; padding: .9rem 1rem; }
.order__id { font-weight: 600; color: var(--ink); font-size: var(--fs-xs); }
.order__date, .order__total { font-size: var(--fs-xs); color: var(--muted); }
.order__total { margin-inline-start: auto; color: var(--ink); font-weight: 600; }
.order__chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.order.is-open .order__chev { transform: rotate(180deg); }
.order__body { display: none; padding: 0 1rem 1rem; }
.order.is-open .order__body { display: block; }
.order__body .rows { gap: .35rem; }
.order__body .row { background: var(--cream); }
.order__note { margin: .7rem 0 0; font-size: var(--fs-xs); line-height: 1.9; color: var(--ink-soft); }
.order__note b { color: var(--ink); }

/* --- order templates: a ready basket the customer keeps --- */
.tpls { display: grid; gap: .8rem; }
.tpl { background: var(--white); border-radius: 16px; padding: 1rem 1.1rem 1.1rem; }
.tpl__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 .8rem; }
.tpl__id { min-width: 0; }
.tpl__name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--ink);
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tpl__meta { margin: .25rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
.tpl__sum { margin: 0; text-align: end; }
.tpl__sum b { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tpl__sum em { font-style: normal; font-size: .72rem; color: var(--muted); }
.tpl__warn { display: flex; align-items: flex-start; gap: .5rem; margin: .8rem 0 0;
  font-size: .78rem; line-height: 1.85; color: #6b4a00; background: #fff7e0; border-radius: 12px; padding: .6rem .8rem; }
.tpl__warn .icon { width: 16px; height: 16px; flex: none; margin-top: .25rem; color: #b07d00; }
.tpl__more { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin: .9rem 0 0; font-size: .78rem; }
.tpl__rename { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .9rem 0 0; }
.tpl__rename input { flex: 1 1 12rem; min-width: 0; }
.tpl .row { background: var(--cream); }

/* --- addresses --- */
.addrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .8rem; }
.addr { background: var(--white); border-radius: 12px; padding: 1rem 1.1rem; font-size: var(--fs-xs); line-height: 1.9; }
.addr.is-default { box-shadow: inset 0 0 0 2px var(--pistachio); }
.addr__name { margin: 0 0 .3rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.addr__who { margin: 0 0 .4rem; color: var(--ink-soft); }
.addr__text { margin: 0 0 .3rem; color: var(--ink-soft); }
.addr__post { margin: 0; color: var(--muted); }
.addr__acts { margin: .7rem 0 0; display: flex; gap: .8rem; flex-wrap: wrap; }

/* a row of pill choices inside a card (حقیقی/حقوقی and the like) */
.pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.2rem; }
.pick-row .buy__label { margin: 0 .4rem 0 0; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.pick-row .opt span { display: inline-flex; align-items: center; justify-content: center; min-height: 0;
  padding: .4rem .9rem; border-radius: var(--pill); background: var(--white); border: 1px solid #e4dace;
  font-size: var(--fs-xs); color: var(--ink-soft); }
.pick-row .opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }

/* notifications table */
.bells { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.bells th { text-align: start; font-weight: 600; color: var(--muted); padding: .5rem .6rem; border-bottom: 1px solid #e0d5c7; }
.bells th:not(:first-child), .bells td:not(:first-child) { text-align: center; width: 6rem; }
.bells td { padding: .8rem .6rem; border-bottom: 1px solid #e8dfd4; vertical-align: top; }
.bells b { display: block; color: var(--ink); }
.bells em { font-style: normal; color: var(--muted); line-height: 1.85; }
.bells input { width: 1.1rem; height: 1.1rem; }

/* --- form bits the sign-in card and the sign-up page add --- */
.field__opt { font-weight: 400; color: var(--muted); }
.field__hint { display: block; margin-top: .1rem; font-size: .76rem; line-height: 1.85; color: var(--muted); }
.field__err { margin: -.7rem 0 .9rem; font-size: .78rem; color: #9c3b2a; }
.field input::placeholder { color: #bcae9e; }
.field--eye { position: relative; }
.field__eye { position: absolute; inset-inline-end: 0; top: 1.9rem;
  border: 0; background: none; color: var(--honey-dark); font: inherit; font-size: .76rem; cursor: pointer; padding: .3rem .2rem; }
.field--with { position: relative; }
.field__side { position: absolute; inset-inline-end: 0; top: 1.9rem; font-size: .76rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; margin: .4rem 0 1.1rem; font-size: var(--fs-xs); line-height: 1.9; color: var(--ink-soft); }
.check input { margin-top: .45em; flex: none; }

/* --- the sign-in card --- */
dialog.auth { width: min(100% - 1.5rem, 26rem); border: 0; border-radius: 18px; padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--cream); color: var(--ink); box-shadow: 0 24px 60px rgba(26,16,7,.3);
  position: fixed; inset: auto; top: 50%; inset-inline-start: 50%; transform: translate(50%, -50%);
  max-height: 86vh; overflow: auto; z-index: 65; margin: 0; }
dialog.auth:not([open]) { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(26,16,7,.55); z-index: 60; }
.scrim[hidden] { display: none; }
.auth__x { position: absolute; inset-inline-end: .75rem; top: .75rem; margin: 0; }
.auth__x button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: .25rem; line-height: 0; }
.auth__x .icon { width: 20px; height: 20px; }
.auth__kicker { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--honey); }
.auth__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  margin: .15rem 0 .5rem; line-height: 1.5; padding-inline-end: 1.6rem; }
.auth__lead { margin: 0 0 1.1rem; font-size: var(--fs-xs); line-height: 2; color: var(--ink-soft); }
.auth__lead b { color: var(--ink); }
.auth__go { width: 100%; justify-content: center; min-height: 48px; }
.auth__go:disabled { opacity: .45; cursor: not-allowed; }
.auth__alt { margin: .9rem 0 0; font-size: var(--fs-xs); line-height: 1.9; color: var(--muted); text-align: center; }
.auth__dot { margin: 0 .4rem; color: #cdbfae; }
.auth__foot { margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid #e0d5c7; font-size: var(--fs-xs); color: var(--ink-soft); text-align: center; }
.auth__foot a { color: var(--honey-dark); font-weight: 600; }
.auth__err { margin: 0 0 1rem; font-size: var(--fs-xs); line-height: 1.9; color: #9c3b2a;
  background: #f9ece9; border-radius: 10px; padding: .6rem .8rem; }

/* --- the sign-up page --- */
/* 1.56.5: a mistake shows under its own field, the field marked; the list of them above the form */
.field__bad { display: block; margin-top: .25rem; font-size: .78rem; line-height: 1.8; color: #9c3b2a; font-weight: 500; }
.su-form > .field__bad { margin: -.6rem 0 1rem; }
.field [aria-invalid="true"], .check input[aria-invalid="true"] { border-color: #c4553f !important; box-shadow: 0 0 0 3px rgba(196, 85, 63, .12); }
.su-errs b { display: block; font-weight: 600; margin-bottom: .2rem; }
.su-errs ul { margin: 0; padding-inline-start: 1.1rem; }
.su-errs:focus { outline: none; }
.su-page .rbox .field [data-geoother] { margin-top: .5rem; }
.auth__go.is-busy, .rbox__submit.is-busy { opacity: .7; cursor: progress; }
.auth-page { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.auth-page__inner { width: min(100% - 2*var(--pad), var(--container)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.auth-page__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .3rem 0 .6rem; }
.auth-page__lead { margin: 0 0 1.6rem; font-size: var(--fs-sm); line-height: 2; color: var(--ink-soft); max-width: 34rem; }
.auth-page__alt { margin-top: 1.4rem; font-size: var(--fs-xs); color: var(--ink-soft); }
.rbox { background: var(--sand); border-radius: 18px; padding: clamp(1.2rem, 2.5vw, 1.8rem); }
.rbox__label { margin: 1.4rem 0 .9rem; font-size: var(--fs-xs); font-weight: 600; color: var(--honey); }
.rbox__label:first-child { margin-top: 0; }
.rbox__submit { width: 100%; justify-content: center; min-height: 50px; }
.rbox__note { margin: .9rem 0 0; font-size: .78rem; line-height: 1.9; color: var(--muted); }
.auth-page__side { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--sand); border-radius: 18px; overflow: hidden; }
.auth-page__side img { width: 100%; height: 11rem; object-fit: cover; display: block; }
.side__body { padding: 1.2rem 1.3rem 1.4rem; }
.side__t { margin: 0 0 .9rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.side__list li { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--fs-xs); line-height: 1.9; color: var(--ink-soft); }
.side__list .icon { width: 15px; height: 15px; color: var(--pistachio-ink); flex: none; margin-top: .45em; }

/* --- small screens --- */
@media (max-width: 960px) { .shop-page__grid { grid-template-columns: 1fr; } .sum { position: static; } }
@media (max-width: 900px) { .auth-page__inner { grid-template-columns: 1fr; } .auth-page__side { position: static; } }
@media (max-width: 860px) {
  .acc__grid { grid-template-columns: 1fr; }
  .track li { font-size: .66rem; }
  .field-pair { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cline { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .cline__img { width: 3.5rem; height: 3.5rem; }
  .cline__qty-wrap { grid-column: 2; justify-items: start; }
  .cline__sum { grid-column: 2; text-align: start; }
  .cline__x { margin-inline: 0; }
}
@media (max-width: 600px) { .ystats { grid-template-columns: 1fr; } .spark { height: 40px; } }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } }

/* WooCommerce's own wrappers, made to sit inside our blocks */
.ta-wrap { margin: 0; }
.ta-wrap label { display: none; }
.woocommerce-privacy-policy-text { display: none; }
.rbox__done { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: .45rem;
  font-size: var(--fs-xs); line-height: 1.9; color: var(--pistachio-ink);
  background: var(--pistachio); border-radius: 12px; padding: .6rem .9rem; margin: 0 0 1.1rem; }
.rbox__done .icon { width: 16px; height: 16px; flex: none; margin-top: .3rem; }
.rbox__done b { color: var(--ink); }
.cart__update { margin: .8rem 0 0; }
.acc__content > .woocommerce-notices-wrapper { margin-bottom: 1rem; }
/* Tick boxes and radios in the brand's colour, not the browser's blue */
input[type="checkbox"], input[type="radio"] { accent-color: var(--honey); }
/* «ورود» in the header — the same shape as the language and account buttons beside it */
.acct-in { display: flex; align-items: center; gap: .35rem; cursor: pointer;
  border: 0; background: none; color: inherit; font: inherit; font-size: var(--fs-sm); padding: .4rem .3rem; }
.acct-in .icon { width: 18px; height: 18px; }
.acct-in:hover { color: var(--pistachio); }


/* 26. جستجو — the header panel, the results page and the filter above a long list ----
   The panel is a sheet, not a full-width drawer: it opens over the page (the header is
   not sticky, so it must stand on its own), and it holds ONE group before you type —
   the categories, drawn in the same shape as a result, so the panel never jumps. */

/* ---------- the magnifier in the header ---------- */
.search-btn { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  border: 0; background: none; color: inherit; font: inherit; font-size: var(--fs-sm);
  text-decoration: none; padding: .45rem .8rem; border-radius: var(--pill);
  transition: background .18s ease, color .18s ease; }
.search-btn .icon { width: 18px; height: 18px; }
.search-btn:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.site-header--solid .search-btn:hover { background: rgba(255, 255, 255, .1); }

/* ---------- the sheet ---------- */
.find { position: fixed; inset: 0; z-index: 60; overflow: auto;
  padding: calc(var(--header-h) + .6rem) var(--pad) 2rem; pointer-events: none; }
.find[hidden] { display: none; }
.find__sheet { pointer-events: auto; width: min(100%, 44rem); margin-inline: auto;
  display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 2.6rem);
  background: var(--white); color: var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(26, 16, 7, .05), 0 30px 70px -22px rgba(26, 16, 7, .45);
  animation: find-in .22s cubic-bezier(.2, .75, .3, 1) both; }
@keyframes find-in { from { opacity: 0; transform: translateY(-10px); } }

.find__bar { display: flex; align-items: center; gap: .85rem;
  padding-inline: 1.3rem .55rem; padding-block: .25rem; border-bottom: 1px solid #f0e9e0; }
.find__bar .icon { width: 20px; height: 20px; color: var(--honey); flex: none; }
.find__input { flex: 1; min-width: 0; border: 0; background: none; font: inherit;
  font-size: 1.02rem; color: var(--ink); padding: 1.05rem .1rem; }
.find__input:focus { outline: none; }
.find__input::-webkit-search-cancel-button, .find__input::-webkit-search-decoration { display: none; }
.find__input::placeholder { color: var(--muted); font-size: .95rem; }
.find__x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.15rem;
  line-height: 1; padding: .55rem .65rem; border-radius: 50%; }
.find__x:hover { color: var(--ink); background: var(--sand); }

/* the one teaching line, gone the moment something is typed */
.find__tip { margin: 0; padding: .85rem 1.3rem .1rem; font-size: .78rem; line-height: 1.9; color: var(--muted); }
.find__tip b { color: var(--ink-soft); font-weight: 600; }
.find.has-q .find__tip { display: none; }

.find__body { overflow: auto; padding: .4rem .6rem .55rem; }
.find__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .8rem .7rem .3rem; }
.find__label { margin: 0; font: 600 .72rem/1.8 var(--font-body); letter-spacing: .06em; color: var(--honey); }
.find__count { font-size: .72rem; color: var(--muted); }
.find__list { list-style: none; margin: 0; padding: 0; }
.find__row { display: flex; align-items: center; gap: .9rem; padding: .55rem .7rem; border-radius: 14px;
  text-decoration: none; color: inherit; transition: background .15s ease; }
.find__row:hover, .find__row.on { background: var(--cream); }
.find__row img { width: 3.1rem; height: 3.1rem; border-radius: 12px; object-fit: cover; flex: none; background: var(--sand); }
.find__text { min-width: 0; flex: 1; }
.find__name { display: block; font-size: .95rem; line-height: 1.7; font-weight: 600; color: var(--ink); }
.find__name mark { background: linear-gradient(transparent 60%, var(--pistachio) 0); color: inherit; padding: 0 .06em; }
.find__why { display: block; font-size: .76rem; line-height: 1.75; color: var(--muted); }
.find__why b { color: var(--honey-dark); font-weight: 600; }
.find__go { flex: none; color: var(--muted); opacity: 0; transition: opacity .15s ease; }
.find__row:hover .find__go, .find__row.on .find__go, .find__row:focus-visible .find__go { opacity: 1; }
.find__go .icon { width: 15px; height: 15px; }
.find__more { display: block; padding: .6rem .7rem .2rem; font-size: .78rem; color: var(--honey-dark);
  text-decoration: none; font-weight: 600; }
.find__more:hover { text-decoration: underline; }

.find__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .7rem 1.3rem .75rem; border-top: 1px solid #f0e9e0; background: var(--cream);
  font-size: .76rem; color: var(--muted); }
.find__foot a { color: var(--honey-dark); text-decoration: none; font-weight: 600; }
.find__foot a:hover { text-decoration: underline; }
.find__foot kbd { background: var(--white); border: 1px solid #e7ded2; border-radius: 5px;
  padding: .05rem .4rem; font: inherit; font-size: .7rem; }

.find__none { text-align: center; padding: 2.1rem 1.3rem 1.7rem; }
.find__none .icon { display: block; margin-inline: auto; width: 30px; height: 30px; color: var(--honey); }
.find__none p { margin: .85rem 0 0; font-size: .92rem; line-height: 1.9; color: var(--ink-soft); }
.find__none b { color: var(--ink); }
.find__none a { color: var(--honey-dark); font-weight: 600; text-decoration: none; }
.find__none a:hover { text-decoration: underline; }
.find__ask { font-size: .78rem !important; color: var(--muted) !important; }

.find__scrim { position: fixed; inset: 0; z-index: 59; background: rgba(26, 16, 7, .34);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.find__scrim[hidden] { display: none; }
body.is-finding { overflow: hidden; }

/* ---------- the filter above a long product list ---------- */
.plp-find { width: min(100% - 2 * var(--pad), 34rem); margin: 0 auto 2rem;
  background: var(--white); border: 1px solid #ece3d8; border-radius: 18px;
  padding: .1rem .3rem; box-shadow: 0 1px 2px rgba(26, 16, 7, .04); }
.plp-find .find__bar { border-bottom: 0; }
.plp-find__n { margin: 0; padding: 0 1.3rem .85rem; font-size: .78rem; color: var(--muted); }
.plp-find__n b { color: var(--ink); font-weight: 600; }

/* ---------- the results page ---------- */
.find-page { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem); }
.find-page__in { width: min(100% - 2 * var(--pad), var(--container)); margin-inline: auto; }
.find-page__t { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .4rem; }
.find-page__n { margin: 0 0 2rem; font-size: var(--fs-sm); color: var(--muted); }
.find-page__n b { color: var(--ink); font-weight: 600; }
.find-page__label { font: 600 .74rem/1.8 var(--font-body); letter-spacing: .06em; color: var(--honey);
  margin: 2.5rem 0 .8rem; }
.find-page__pages { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem;
  background: var(--sand); border-radius: 16px; padding: .5rem; }
.find-page__pages .find__row:hover { background: var(--white); }
.find-page__empty { background: var(--sand); border-radius: 18px; padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center; }
.find-page__empty .icon { display: block; margin-inline: auto; width: 34px; height: 34px; color: var(--honey); }
.find-page__empty p { margin: 1rem auto 0; max-width: 34rem; font-size: var(--fs-sm); line-height: 2; color: var(--ink-soft); }
.find-page__empty b { color: var(--ink); }
.find-page__form { display: flex; margin: 1.6rem auto 0; width: min(100%, 30rem);
  background: var(--white); border: 1px solid #ece3d8; border-radius: 18px; padding: .1rem .3rem; }
.find-page__form .find__bar { flex: 1; border-bottom: 0; }
/* «چرا این محصول آمد» on a search result card */
.pcard__why { display: block; margin-top: .25rem; font-size: var(--fs-xs); color: var(--honey-dark); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .find__sheet { animation: none; } }

@media (max-width: 900px) {
  .search-btn { padding: .45rem .4rem; }
  .search-btn__t { display: none; }        /* on a narrow header the magnifier speaks for itself */
}
@media (max-width: 767px) {
  /* Four buttons do not fit beside the logo on a phone. The language switcher goes
     (the phone menu lists every language at the bottom) and «ورود» keeps its icon
     only — search is worth more than either of those words on a small screen. */
  .header-actions .lang:not(.acct) { display: none; }   /* the language goes; the account stays (1.56.4: signed in, it had gone too) */
  .acct-in__t { display: none; }
  .acct-in { gap: 0; padding-inline: .25rem; }
  .acct summary { gap: 0; padding-inline: .25rem; }
  .acct summary .acct__t, .acct summary .icon:last-child { display: none; }
  .acct summary .icon:first-child { width: 22px; height: 22px; }
  .acct summary { position: relative; }
  .acct summary::after { content: ""; position: absolute; top: .35rem; inset-inline-start: .15rem; width: 8px; height: 8px; border-radius: 50%;
    background: var(--pistachio); box-shadow: 0 0 0 2px var(--ink); }   /* a dot: signed in */
}
@media (max-width: 700px) {
  .find { padding: 0; }
  .find__sheet { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; animation: none; }
  .find__body { flex: 1; }
  .find__go { opacity: 1; }
  .find__scrim { display: none; }
}


/* 27. «در حال به‌روزرسانی» — the holding page (template-parts/soon.php) --------
   A whole page on its own: it never appears beside anything else, so it carries
   its own background and needs nothing from the sections above. */
.soon-body { margin: 0; background: var(--ink); }
.soon {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; place-items: center;
  padding: clamp(2rem, 6vw, 4rem) var(--pad);
  background: radial-gradient(120% 90% at 50% 0%, #3a2513 0%, #2a1a0c 45%, #1c1108 100%);
  color: var(--cream); text-align: center;
}
/* the lozenge of the brand mark, at 5%, as the page's own texture */
.soon::before {
  content: ""; position: absolute; inset: -10%; z-index: -1; opacity: .05;
  background-image:
    linear-gradient(45deg, var(--cream) 1px, transparent 1px),
    linear-gradient(-45deg, var(--cream) 1px, transparent 1px);
  background-size: 54px 54px;
}
.soon__in { width: min(100%, 34rem); display: grid; justify-items: center; gap: 0; }
.soon__logo { width: auto; height: clamp(74px, 13vw, 104px); display: block; }
.soon__word { font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0; }
.soon__rule { width: 52px; height: 1px; background: var(--honey); opacity: .8; margin-block: clamp(1.8rem, 4vw, 2.6rem) 0; }
.soon__t {
  font-family: var(--font-display); font-weight: 400; line-height: 1.85;
  font-size: clamp(1.3rem, 4vw, 2rem); margin: clamp(1.6rem, 4vw, 2.2rem) 0 0;
  text-wrap: balance;
}
.soon__x { margin: .9rem 0 0; font-size: var(--fs-sm); line-height: 2.1; color: rgba(252, 249, 247, .72); max-width: 26rem; }

.soon__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: clamp(2rem, 5vw, 2.8rem); }
.soon__btn {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; flex: none;
  border-radius: var(--pill); padding: .78rem 1.5rem; font-size: var(--fs-sm); font-weight: 500;
  border: 1px solid rgba(252, 249, 247, .28); color: var(--cream);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.soon__btn .icon { width: 18px; height: 18px; }
.soon__btn:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.soon__btn--wa { background: var(--whatsapp); border-color: var(--whatsapp); }
.soon__btn--wa:hover { background: #128c4a; border-color: #128c4a; color: var(--white); }
.soon__num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

.soon__foot { margin-top: clamp(2.4rem, 6vw, 3.4rem); display: grid; gap: .5rem;
  font-size: var(--fs-xs); line-height: 2; color: rgba(252, 249, 247, .42); }
.soon__en { font-size: .72rem; letter-spacing: .04em; color: rgba(252, 249, 247, .34); direction: ltr; }

/* on a phone each number becomes a full-width target, so nobody taps the wrong one */
@media (max-width: 520px) {
  .soon__acts { flex-direction: column; align-items: stretch; width: min(100%, 17rem); }
  .soon__btn { justify-content: center; }
}

/* 1.53.0 — a product «میز کار» stopped making (or deleted): its page stays, with no buy box */
.product__stopped { margin: 1.25rem 0; padding: .9rem 1.1rem; border-radius: 12px; background: #f4ece4; color: #5a3b22; font-size: .95rem; }
.product__stopped b { display: inline-block; margin-inline-end: .5rem; padding: .15rem .6rem; border-radius: 999px; background: #8a5a35; color: #fff; font-size: .85rem; }

/* ================================================================
   A signed-in wholesaler, on a phone (1.48.4): no «درخواست نمونه (رایگان)» bar stuck to the foot of every page —
   only the WhatsApp button in the bottom-left corner, as WhatsApp's own round icon (assets/images/whatsapp.png).
   Theme 1.56.0: body class 'is-trade' (inc/quick-order.php), footer.php skips the .mobile-cta for them.
   ================================================================ */
.float-chat__wa { display: none; }
@media (max-width: 767px) {
  body.is-trade .mobile-cta { display: none !important; }
  body.is-trade .site-footer { padding-bottom: 5.5rem; }
  body.is-trade .float-chat { display: block; width: 56px; height: 56px; padding: 0; gap: 0; border-radius: 50%; background: none;
    inset-inline-end: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); font-size: 0; line-height: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
  body.is-trade .float-chat svg { display: none; }
  body.is-trade .float-chat__wa { display: block; width: 56px; height: 56px; }
}

/* ==========================================================================
   1.56.3 — the thank-you card after a form (sample request, become a customer)
   One card, no frame around it: a mark, the tracking number, a short title, the page's sentence,
   «what happens next» as three steps, where the confirmation went, the buttons.
   ========================================================================== */
.rs-form__layout--done { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.rs-form__panel--done, .apply__panel--done { background: none; padding: 0; margin-top: 0; }
.ldone { max-width: 680px; margin-inline: auto; background: var(--white); border: 1px solid #ece3d8; border-radius: 28px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3rem); text-align: center; box-shadow: 0 18px 50px rgba(42, 26, 12, .07); outline: none; }
.ldone__mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--pistachio);
  color: var(--pistachio-ink); margin-bottom: 1rem; }
.ldone__mark svg { width: 30px; height: 30px; }
.ldone__kicker { margin: 0 0 .4rem; font-size: var(--fs-xs); color: var(--honey-dark); }
.ldone__kicker b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ldone__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.6; color: var(--ink); }
.ldone__text { margin: .55rem auto 0; max-width: 34rem; font-size: var(--fs-sm); line-height: 2; color: var(--ink-soft); }
.ldone__steps { list-style: none; margin: 1.9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: center; }
.ldone__steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: .55rem; font-size: var(--fs-xs); line-height: 1.85; color: var(--muted); }
.ldone__steps li::before { content: ""; position: absolute; top: 17px; inset-inline-start: 50%; width: calc(100% + 1rem); height: 2px; background: #e6dccd; z-index: 0; }
.ldone__steps li:last-child::before { display: none; }
.ldone__steps li.is-done::before { background: var(--pistachio-ink); }
.ldone__steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-style: normal;
  font-weight: 700; font-size: .9rem; background: var(--sand); color: var(--ink); border: 3px solid var(--white); }
.ldone__steps li.is-done i { background: var(--pistachio-ink); color: var(--white); }
.ldone__steps b { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); }
.ldone__sent { margin: 1.6rem auto 0; display: inline-block; padding: .5rem 1rem; border-radius: var(--pill); background: #f6f1ea; font-size: var(--fs-xs); color: var(--ink-soft); }
.ldone__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
@media (max-width: 600px) {
  .ldone__steps { grid-template-columns: 1fr; gap: 0; text-align: start; }
  .ldone__steps li { grid-template-columns: 36px 1fr; justify-items: start; align-items: start; gap: .8rem; padding-bottom: 1.1rem; }
  .ldone__steps li::before { top: 36px; inset-inline-start: 17px; width: 2px; height: calc(100% - 36px); }
  .ldone__acts .btn { flex: 1 1 100%; justify-content: center; }
}

/* ==========================================================================
   1.56.3 — «رمز عبور را فراموش کرده‌اید؟»: the sign-up page's layout, three steps beside the form
   ========================================================================== */
.rp-page .auth-page__inner { align-items: start; max-width: 62rem; grid-template-columns: minmax(0, 1fr) 20rem; }
.rp-page .auth-page__form { min-width: 0; }
.rp-page .breadcrumb ol { justify-content: flex-start; }
.rp-page .rbox { padding: clamp(1.3rem, 3vw, 2rem); }
.rp-page .rbox .field input { min-height: 50px; }
.rp-page .rbox .field { margin: 0 0 1.25rem; }   /* the button never sits on the last field's line */
.rp-page .rbox .rbox__submit { margin-top: .75rem; }
.rp-page .rbox .rbox__label { margin-top: .4rem; }
.rp-code input { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.6rem; letter-spacing: .55em;
  text-align: center; padding-inline: .6em 0; min-height: 60px !important; font-weight: 700; color: var(--ink); }
.rp-code input::placeholder { color: #cdbfae; letter-spacing: .35em; }
.rp-again { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin-top: 1.1rem; font-size: var(--fs-xs); color: var(--ink-soft); }
.rp-again .linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.rp-sep { color: #cdbfae; margin-inline: .2rem; }
.rp-call { margin: .7rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
.rp-call a { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
/* 1.57.14: «کد تأیید را از کدام راه بفرستیم؟» on the sign-up form (and the way of the sign-in code, inc/twostep.php) */
.su-via { border: 0; padding: 0; margin: 0 0 1.1rem; min-inline-size: 0; flex-direction: row; flex-wrap: wrap; row-gap: .5rem; }
.su-via legend { font-size: var(--fs-sm); font-weight: 600; margin-bottom: .45rem; padding: 0; }
.su-via__o { display: inline-flex; align-items: center; gap: .4rem; margin-inline-end: 1.4rem; cursor: pointer; font-size: var(--fs-sm); }
.su-via__o input, .rp-page .rbox .su-via__o input { flex: none; width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; padding: 0; border: 0;
  border-radius: 50%; background: none; box-shadow: none; accent-color: var(--ink, #2a1a0c); cursor: pointer; }
.su-via__o input:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.rp-side .side__body { padding: 1.4rem 1.4rem 1.5rem; }
.tf-page .su-via { flex-direction: column; }
.tf-page .su-via__o { display: flex; margin: 0; }
.tf-page .su-via__o bdi { color: var(--ink-soft); }
.tf-rc { list-style: none; margin: 0 0 1.2rem; padding: 1rem 1.1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem;
  background: #f6f1ea; border: 1px dashed #d9c7ad; border-radius: var(--radius, 12px); counter-reset: tf; }
.tf-rc li { counter-increment: tf; display: flex; align-items: baseline; gap: .5rem; font-size: var(--fs-sm); }
.tf-rc li::before { content: counter(tf) "."; color: var(--muted); font-size: var(--fs-xs); min-width: 1.4em; }
.tf-rc code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.tf-rec { margin-top: 1.4rem; font-size: var(--fs-xs); color: var(--ink-soft); }
.tf-rec summary { cursor: pointer; color: var(--honey-dark); font-weight: 600; }
.tf-rec .rbox { margin-top: .8rem; }
.tf-rec .rp-code input { font-size: 1.25rem; letter-spacing: .2em; }
.tf-later { margin: 0; }
.tf-why { margin: 0; font-size: var(--fs-xs); line-height: 1.9; color: var(--ink-soft); }

/* 1.57.16 — a personal code in «خلاصهٔ سفارش» (inc/vouchers.php) */
.vbox { margin: .9rem 0 0; padding-top: .85rem; border-top: 1px dashed #dccdb9; font-size: var(--fs-xs); }
.vbox__t { margin: 0; color: var(--ink-soft); line-height: 1.9; }
.vbox__d summary { cursor: pointer; color: var(--honey-dark); font-weight: 600; list-style-position: inside; }
.vbox__f { display: flex; gap: .5rem; margin-top: .65rem; }
.vbox__f input { flex: 1; min-width: 0; border: 1px solid #d9c7ad; border-radius: 10px; padding: .5rem .7rem; background: var(--white);
  font: 700 .95rem/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.vbox__f input::placeholder { color: #cdbfae; font-weight: 400; text-transform: none; }
.vbox__f input:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px rgba(185, 122, 30, .14); }
.vbox__on { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; }
.vbox__code { font: 700 .9rem/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--white); border: 1px dashed #c9b392;
  border-radius: 8px; padding: .1rem .55rem; letter-spacing: .05em; color: var(--ink); }
.vbox__w { color: var(--pistachio-ink); flex: 1 1 8rem; }
.vbox__w.is-bad { color: #9c3b2a; }
/* … and «لغو دریافت ایمیل‌های تبلیغاتی» (inc/comm-mkt.php) */
.un-page .auth-page__inner { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
.un-page .rbox { margin-top: 1.2rem; }
.un-home { margin: 1.6rem 0 0; font-size: var(--fs-xs); }
.un-home a { color: var(--honey-dark); }
@media (max-width: 420px) { .tf-rc { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .rp-page.tf-page .auth-page__side { order: 2; } }   /* the code first on a phone; «چرا کد؟» under it */
.rp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rp-steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: .8rem; padding-bottom: 1.1rem;
  font-size: var(--fs-xs); line-height: 1.85; color: var(--muted); }
.rp-steps li::before { content: ""; position: absolute; top: 34px; inset-inline-start: 16px; width: 2px; height: calc(100% - 34px); background: #e2d6c5; }
.rp-steps li:last-child { padding-bottom: 0; }
.rp-steps li:last-child::before { display: none; }
.rp-steps li.is-done::before { background: var(--pistachio-ink); }
.rp-steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: .88rem;
  background: var(--white); color: var(--ink-soft); border: 1px solid #e2d6c5; }
.rp-steps li.is-done i { background: var(--pistachio-ink); border-color: var(--pistachio-ink); color: var(--white); }
.rp-steps li.is-now i { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: 0 0 0 5px rgba(42, 26, 12, .1); }
.rp-steps b { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); }
.rp-steps li:not(.is-now):not(.is-done) b { color: var(--ink-soft); }
.rp-help { margin: 1.3rem 0 0; padding-top: 1rem; border-top: 1px solid #e2d6c5; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem;
  font-size: var(--fs-xs); color: var(--ink-soft); }
.rp-help a { display: inline-flex; align-items: center; gap: .3rem; color: var(--honey-dark); font-weight: 600; text-decoration: none; }
.rp-help .icon { width: 15px; height: 15px; }
@media (max-width: 900px) { .rp-page .auth-page__inner { grid-template-columns: minmax(0, 1fr); } .rp-page .auth-page__side { order: -1; } .rp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-bottom: 0; gap: .35rem; }
  .rp-steps li::before { top: 16px; inset-inline-start: 50%; width: 100%; height: 2px; }
  .rp-steps li span { font-size: .72rem; } .rp-steps li span b { font-size: .8rem; }
  .rp-steps li span { display: block; } .rp-steps li span:not(b) { line-height: 1.6; }
  .rp-help { justify-content: center; } }

/* ==========================================================================
   1.56.4 — the account in the phone menu: «حساب من» / «میز کار», or «ورود» and «ثبت‌نام»
   ========================================================================== */
.mobile-nav__acct { display: grid; gap: .55rem; margin: 0 0 1.2rem; padding: 0 0 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.mobile-nav__acct .btn { justify-content: center; }
.mobile-nav__acct .btn .icon { width: 18px; height: 18px; }
.mobile-nav__out { justify-self: center; font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: .3em; }
/* staff see WordPress's admin bar: the header over a photo starts below it, or the bar covered the header's buttons (1.56.4) */
.admin-bar .site-header:not(.site-header--solid) { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header:not(.site-header--solid) { top: 46px; } }
