/* ============================================================
   GALETTE BAKERY — Design System
   Persian-French Patisserie · RTL · Dark + Light
   ============================================================ */

/* ---------- FONTS (all self-hosted, no CDN) ---------- */
/* Persian display + body = Mahoor (the Galette brand Persian typeface) */
@font-face {
  font-family: 'Mahoor';
  src: url('/fonts/Mahoor-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mahoor';
  src: url('/fonts/Mahoor-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mahoor';
  src: url('/fonts/Mahoor-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mahoor';
  src: url('/fonts/Mahoor-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mahoor';
  src: url('/fonts/Mahoor-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
/* Estedad kept as a Persian fallback for full glyph coverage */
@font-face {
  font-family: 'Estedad';
  src: url('/fonts/Estedad.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* Latin display = Alienor Display (the Galette wordmark face) */
@font-face {
  font-family: 'Alienor Display';
  src: url('/fonts/AlienorDisplay-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Alienor Display';
  src: url('/fonts/AlienorDisplay-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Alienor Display';
  src: url('/fonts/AlienorDisplay-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Alienor Display';
  src: url('/fonts/AlienorDisplay-Heavy.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
/* Latin text / sub-wordmark = Gotu (pairs with Alienor in the logo lockup) */
@font-face {
  font-family: 'Gotu';
  src: url('/fonts/Gotu-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- BRAND TOKENS ---------- */
:root {
  /* brand palette — locked to the official Galette colour guide */
  --crimson-deep:  #6f0000;   /* تیره‌تر */
  --crimson-dark:  #8a0f12;
  --crimson:       #a31418;    /* رنگ اصلی */
  --crimson-warm:  #b8252b;
  --gold-deep:     #c4a26e;    /* تیره‌تر */
  --gold:          #d8b97f;
  --gold-light:    #e5c796;    /* رنگ اصلی */
  --gold-cream:    #f1e3c4;
  --cream:         #faf3e0;
  --cream-warm:    #f5ead0;
  --ink:           #2a0608;

  /* fonts — Mahoor (Persian) · Alienor Display + Gotu (Latin) */
  --font-fa:        'Mahoor', 'Estedad', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-fa-soft:   'Mahoor', 'Estedad', system-ui, sans-serif;
  --font-fa-display:'Mahoor', 'Estedad', sans-serif;
  --font-display:   'Alienor Display', 'Gotu', 'Mahoor', serif;
  --font-en:        'Gotu', 'Alienor Display', sans-serif;

  /* radii / shadows */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  /* spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* container */
  --container: 1240px;
}

/* ---------- DARK THEME (default — matches brand identity) ---------- */
:root,
[data-theme="dark"] {
  --bg:            #8a1014;
  --bg-deeper:     #6f0000;
  --bg-veil:       rgba(111, 0, 0, 0.7);
  --surface:       rgba(255, 245, 220, 0.05);
  --surface-hover: rgba(255, 245, 220, 0.09);
  --surface-elev:  rgba(255, 245, 220, 0.07);
  --border:        rgba(228, 197, 141, 0.22);
  --border-strong: rgba(228, 197, 141, 0.45);
  --text:          #f5e9c8;
  --text-muted:    rgba(245, 233, 200, 0.62);
  --text-dim:      rgba(245, 233, 200, 0.42);
  --accent:        var(--gold-light);
  --accent-strong: #efd6a5;
  --accent-bg:     rgba(228, 197, 141, 0.12);
  --shadow:        0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 8px 24px -6px rgba(0, 0, 0, 0.3);
  --hairline:      rgba(228, 197, 141, 0.18);
  --pattern-opacity: 0.075;
  --hero-noise: 0.04;
  color-scheme: dark;
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
  --bg:            #faf3e0;
  --bg-deeper:     #f3e6c2;
  --bg-veil:       rgba(251, 246, 233, 0.85);
  --surface:       #ffffff;
  --surface-hover: #fffdf5;
  --surface-elev:  #fffaee;
  --border:        rgba(168, 24, 29, 0.18);
  --border-strong: rgba(168, 24, 29, 0.4);
  --text:          #3a0a0d;
  --text-muted:    rgba(58, 10, 13, 0.66);
  --text-dim:      rgba(58, 10, 13, 0.42);
  --accent:        var(--crimson);
  --accent-strong: var(--crimson-dark);
  --accent-bg:     rgba(168, 24, 29, 0.07);
  --shadow:        0 20px 50px -20px rgba(74, 14, 18, 0.18), 0 6px 18px -6px rgba(74, 14, 18, 0.08);
  --hairline:      rgba(168, 24, 29, 0.15);
  --pattern-opacity: 0.08;
  --hero-noise: 0.02;
  color-scheme: light;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;             /* lock viewport, prevent any sideways drift */
  overflow-y: scroll;           /* always show scrollbar gutter to avoid layout shift */
}
html[lang="fa"] { direction: rtl; }

body {
  font-family: var(--font-fa);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(at 12% 8%, rgba(228, 197, 141, 0.06) 0px, transparent 50%),
    radial-gradient(at 88% 92%, rgba(228, 197, 141, 0.04) 0px, transparent 50%);
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
  font-feature-settings: 'ss01', 'ss03', 'kern';
  /* smoother touch experience */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* Suppress default tap-highlight on every interactive element */
a, button, [role="button"], input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

/* Subtle tactile press effect on tappable elements (mobile only) */
@media (hover: none) and (pointer: coarse) {
  a:active, button:active, [role="button"]:active {
    transform: scale(0.98);
    transition: transform .08s ease-out;
  }
  .btn:active, .chip:active { transform: scale(0.96); }
}

/* the vanilla-blossom pattern bg overlay (matches the Galette print materials) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--pattern-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 84'><g fill='%23e5c796'><path id='p' d='M42 42 C37.4 32.8 35.9 22.3 42 17.8 C48.1 22.3 46.6 32.8 42 42 Z'/><use href='%23p' transform='rotate(72 42 42)'/><use href='%23p' transform='rotate(144 42 42)'/><use href='%23p' transform='rotate(216 42 42)'/><use href='%23p' transform='rotate(288 42 42)'/><circle cx='42' cy='42' r='3.4'/></g></svg>");
  background-size: 84px 84px;
  transition: opacity .5s var(--ease-out);
}
[data-theme="light"] body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 84'><g fill='%23a31418'><path id='p' d='M42 42 C37.4 32.8 35.9 22.3 42 17.8 C48.1 22.3 46.6 32.8 42 42 Z'/><use href='%23p' transform='rotate(72 42 42)'/><use href='%23p' transform='rotate(144 42 42)'/><use href='%23p' transform='rotate(216 42 42)'/><use href='%23p' transform='rotate(288 42 42)'/><circle cx='42' cy='42' r='3.4'/></g></svg>");
}

main, header, footer, section { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease-out); }
a:hover { color: var(--accent); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection { background: var(--accent); color: var(--bg); }

/* visually hidden (accessible skip-link / sr-only) — no layout impact */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(100%);
  white-space: nowrap;
  border: 0;
}
.visually-hidden:focus {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip: auto;
  clip-path: none;
  background: var(--accent);
  color: var(--crimson-deep);
  border-radius: 8px;
  z-index: 9999;
}

/* numeric overrides for ltr inside rtl */
.ltr, [dir="ltr"] { direction: ltr; text-align: left; }
.font-latin { font-family: var(--font-display); }

/* persian numerals helper */
.fa-nums {
  font-variant-numeric: tabular-nums;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-fa-display);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--text);
}

.eyebrow {
  font-family: var(--font-fa-display);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(13px, 1.3vw, 15.5px);
  letter-spacing: 0.04em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
/* vanilla-blossom mark (leads the eyebrow → sits on the right in RTL) */
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  background-color: var(--accent);
  -webkit-mask: url('/images/blossom.svg') center / contain no-repeat;
  mask: url('/images/blossom.svg') center / contain no-repeat;
}

.h-display {
  font-family: var(--font-fa-display);
  font-weight: 400;
  font-size: clamp(34px, 6.2vw, 78px);
  line-height: 1.35;
  letter-spacing: 0;
}
.h-display em {
  font-family: var(--font-fa-display);
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0;
}

.h-section {
  font-family: var(--font-fa-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.35;
  letter-spacing: 0;
}
.h-section em {
  font-family: var(--font-fa-display);
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
}

.lead {
  font-family: var(--font-fa);
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  line-height: 1.9;
  font-weight: 400;
  max-width: 56ch;
}

.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}
@media (min-width: 768px)  { .container { padding-inline: 40px; } }
@media (min-width: 1100px) { .container { padding-inline: 56px; } }

.section { padding-block: clamp(48px, 10vw, 140px); }
.section-tight { padding-block: clamp(36px, 7vw, 96px); }

@media (max-width: 759px) {
  /* hide desktop-only ornaments on mobile to free vertical space */
  .backdrop-type { display: none; }
  .ribbon { padding-block: 32px; }
  .ribbon__content { font-size: 20px; line-height: 1.55; padding-inline: 4px; }
  .marquee { padding-block: 12px; }
  .marquee__item { font-size: 16px; }
  .stat-line { padding-top: 28px; gap: 18px 24px; }
  .stat-line__num { font-size: 24px; }
  .stat-line__label { font-size: 11.5px; }
}

/* ---------- ORNAMENTAL DIVIDER ---------- */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto;
  color: var(--accent);
  opacity: 0.85;
}
/* straight hairline either side of the vanilla blossom (no more slanted/wavy line) */
.flourish::before, .flourish::after {
  content: '';
  flex: 0 0 84px;
  height: 1px;
  background: linear-gradient(to right, transparent, currentColor 38%, currentColor 62%, transparent);
}
.flourish__bloom {
  width: 22px; height: 22px; flex: none;
  background-color: currentColor;
  -webkit-mask: url('/images/blossom.svg') center / contain no-repeat;
  mask: url('/images/blossom.svg') center / contain no-repeat;
}
.flourish-wide::before, .flourish-wide::after { flex-basis: 120px; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: var(--bg-veil);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), padding .3s var(--ease-out);
}
.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--hairline);
}
.site-header.is-scrolled .site-header__inner { min-height: 56px; padding-block: 8px; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
  min-height: 72px;
  transition: min-height .3s var(--ease-out), padding .3s var(--ease-out);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
}
.brand-link:hover { color: var(--accent-strong); }
.brand-mark {
  width: 40px; height: 49px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
/* transparent G-crest: gold on the dark theme, crimson on the light theme */
.brand-mark .crest--light { display: none; }
[data-theme="light"] .brand-mark .crest--dark  { display: none; }
[data-theme="light"] .brand-mark .crest--light { display: block; }
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.005em;
  line-height: 0.95;
}
.brand-tagline {
  display: block;
  font-family: var(--font-en);
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
  padding-inline-start: 0.34em;   /* optically balance the tracking */
}

.main-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 960px) { .main-nav { display: flex; } }
.main-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-sm);
}
.main-nav a::after {
  content: '';
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease-out);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* theme toggle */
.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .35s var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun  { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun  { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* mobile menu button */
.menu-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s var(--ease-out);
}
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 960px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 20px; height: 20px; }

/* mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform .45s var(--ease-out);
  overscroll-behavior: contain;
}
.mobile-drawer[data-open="true"] { transform: translateY(0); }
.mobile-drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 48px;
}
.mobile-drawer nav {
  display: flex; flex-direction: column;
  gap: 4px;
}
.mobile-drawer nav a {
  font-family: var(--font-fa);
  font-weight: 300;
  font-size: 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-inline-start .3s var(--ease-out), color .2s;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-drawer nav a:hover { color: var(--accent); padding-inline-start: 12px; }
.mobile-drawer__contact {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.mobile-drawer__contact strong { color: var(--accent); font-weight: 500; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.2fr 1fr; gap: 80px; }
}
.hero__text { max-width: 640px; }
.hero h1 { margin-block: 18px 24px; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  max-width: 440px;
  margin-inline: auto;
}
.hero__mark svg { width: 100%; height: auto; color: var(--accent); }
.hero__mark img {
  width: 86%;
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.28));
  transition: filter .4s var(--ease-out), transform .6s var(--ease-out);
}
[data-theme="light"] .hero__mark img {
  filter: drop-shadow(0 22px 44px rgba(111, 0, 0, 0.22));
}
.hero__mark:hover img { transform: translateY(-4px); }

/* hero stats strip */
.hero-strip {
  margin-top: clamp(48px, 8vw, 88px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  padding-block: 32px;
  border-block: 1px solid var(--hairline);
}
@media (min-width: 700px) { .hero-strip { grid-template-columns: repeat(4, 1fr); } }
.hero-strip__item { text-align: center; }
.hero-strip__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-strip__label { font-size: 13px; color: var(--text-muted); letter-spacing: 0.04em; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all .35s var(--ease-out);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent);
  color: var(--crimson-deep);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--crimson-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(228, 197, 141, 0.5);
}
[data-theme="light"] .btn-primary {
  background: var(--crimson);
  color: var(--cream);
  border-color: var(--crimson);
}
[data-theme="light"] .btn-primary:hover {
  background: var(--crimson-dark);
  color: var(--cream);
  box-shadow: 0 12px 30px -10px rgba(168, 24, 29, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap .25s var(--ease-out), border-color .25s;
  white-space: nowrap;
}
.btn-link:hover { gap: 14px; border-bottom-color: var(--accent); color: var(--accent); }
html[lang="fa"] .btn-link svg { transform: scaleX(-1); }

/* ---------- CARDS ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all .4s var(--ease-out);
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

/* ---------- CATEGORY CARDS — image-rich, horizontal-scroll on mobile ---------- */
.cat-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;  /* prevent horizontal momentum bleeding into page */
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  padding-inline: 24px;
  margin-inline: -24px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-card {
  position: relative;
  display: block;
  flex: 0 0 72%;
  max-width: 280px;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--bg-deeper);
  border: 1px solid var(--hairline);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  isolation: isolate;
}
.cat-card:active { transform: scale(0.985); }

.cat-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cat-card__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(1.05);
  transition: transform .9s var(--ease-out), filter .4s var(--ease-out);
}
.cat-card__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(170deg, rgba(106,12,17,0.05) 0%, rgba(106,12,17,0.85) 100%);
}
/* dark theme: keep the photos brighter and the overlay lighter (only enough for text) */
[data-theme="dark"] .cat-card__bg img { filter: brightness(0.86) saturate(1.05); }
[data-theme="dark"] .cat-card__overlay {
  background: linear-gradient(180deg, rgba(20,4,5,0) 38%, rgba(20,4,5,0.45) 70%, rgba(20,4,5,0.8) 100%);
}
[data-theme="dark"] .cat-card:hover .cat-card__bg img { filter: brightness(0.95) saturate(1.15); }
.cat-card__body {
  position: absolute; inset: 0; z-index: 2;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff8e0;
}
.cat-card__icon {
  width: 32px; height: 32px;
  flex: none;
  display: inline-block;
  background-color: var(--gold-light);
  -webkit-mask: url('/images/blossom.svg') center / contain no-repeat;
  mask: url('/images/blossom.svg') center / contain no-repeat;
  opacity: 0.95;
  margin-bottom: 0;
}
.cat-card__name {
  font-family: var(--font-fa-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  color: #fff8e0;
  margin-top: 6px;
}
.cat-card__count {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-top: 2px;
  opacity: 0.85;
}
.cat-card__arrow {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 248, 224, 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 248, 224, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff8e0;
  z-index: 3;
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.cat-card__arrow svg { width: 16px; height: 16px; }
html[lang="fa"] .cat-card__arrow svg { transform: scaleX(-1); }

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.4);
}
.cat-card:hover .cat-card__bg img { transform: scale(1.08); filter: brightness(0.7) saturate(1.15); }
.cat-card:hover .cat-card__arrow { background: var(--accent); border-color: var(--accent); color: var(--crimson-deep); transform: translateY(-2px); }

/* on tablet+ use a proper grid (no rail) */
@media (min-width: 760px) {
  .cat-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    overflow: visible;
    padding-inline: 0;
    margin-inline: 0;
  }
  .cat-card { flex: none; max-width: none; aspect-ratio: 4 / 5; }
}

/* ---------- PRODUCT CARDS ---------- */
.prod-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .45s var(--ease-out);
  cursor: pointer;
  position: relative;
}
.prod-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.prod-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--bg-deeper) 0%, var(--bg) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Galette highlight-vector fallback art (crimson bg blends into the media gradient) */
.illustration { display: flex; align-items: center; justify-content: center; }
.illustration img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.04); }

.prod-card__media .illustration,
.prod-card__media svg.illustration {
  width: 60%; height: 60%;
  color: var(--accent);
  opacity: 0.8;
  transition: transform .6s var(--ease-out);
  display: flex; align-items: center; justify-content: center;
}
.prod-card__media .illustration svg { width: 100%; height: 100%; }
.prod-card:hover .prod-card__media .illustration { transform: scale(1.08) rotate(-2deg); }
.prod-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.prod-card:hover .prod-card__media img { transform: scale(1.06); }

.prod-card__badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.badge-available {
  background: rgba(46, 160, 80, 0.18);
  color: #76e09b;
  border: 1px solid rgba(46, 160, 80, 0.4);
}
[data-theme="light"] .badge-available {
  background: rgba(46, 160, 80, 0.12);
  color: #1d6b34;
  border-color: rgba(46, 160, 80, 0.4);
}
.badge-unavailable {
  background: rgba(0, 0, 0, 0.28);
  color: rgba(245, 233, 200, 0.7);
  border: 1px solid var(--border);
}
[data-theme="light"] .badge-unavailable {
  background: rgba(58, 10, 13, 0.06);
  color: var(--text-muted);
  border-color: var(--hairline);
}

.prod-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.prod-card__cat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.prod-card__name {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-block: 2px 4px;
}
.prod-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.prod-card__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.prod-card__price small { font-size: 11px; font-weight: 400; font-style: italic; color: var(--text-muted); margin-inline-start: 4px; }

/* ---------- ARTICLE CARDS ---------- */
.art-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.art-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .45s var(--ease-out);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.art-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.art-card__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  position: relative;
}
.art-card__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.art-card:hover .art-card__cover img { transform: scale(1.05); }
.art-card__cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 50%);
}
.art-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.art-card__date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.art-card__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}
.art-card__excerpt {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.art-card__more { margin-top: auto; padding-top: 12px; }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-fa);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all .3s var(--ease-out);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ---------- BREADCRUMBS ---------- */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { opacity: 0.4; font-family: var(--font-display); font-style: italic; }

/* ---------- BADGES & TAGS ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

/* ---------- FILTER CHIPS ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.chip {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s var(--ease-out);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--crimson-deep);
  border-color: var(--accent);
}
[data-theme="light"] .chip[aria-pressed="true"] {
  background: var(--crimson);
  color: var(--cream);
  border-color: var(--crimson);
}

/* ---------- SEARCH ---------- */
.search-bar {
  position: relative;
  margin-bottom: 24px;
}
.search-bar input {
  width: 100%;
  padding: 14px 52px 14px 18px;
  font-family: var(--font-fa);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all .3s var(--ease-out);
}
html[lang="fa"] .search-bar input { padding: 14px 18px 14px 52px; }
.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.search-bar__icon {
  position: absolute;
  top: 50%;
  inset-inline-end: 20px;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
html[lang="fa"] .search-bar__icon { inset-inline-end: auto; inset-inline-start: 20px; }

/* ---------- PRODUCT DETAIL ---------- */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 920px) { .pd-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.pd-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--bg-deeper), var(--bg));
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media .illustration,
.pd-media svg.illustration {
  width: 60%; height: 60%;
  color: var(--accent);
  opacity: 0.85;
  display: flex; align-items: center; justify-content: center;
}
.pd-media .illustration svg { width: 100%; height: 100%; }
.pd-info { display: flex; flex-direction: column; gap: 14px; align-self: center; }
.pd-cat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
}
.pd-name {
  font-family: var(--font-fa);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pd-desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
}
.pd-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  padding-block: 24px;
  margin-block: 12px;
  border-block: 1px solid var(--hairline);
}
.pd-spec__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.pd-spec__value {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}
/* size options (tarts, croissants, …) */
.pd-sizes { margin-block: 8px 4px; }
.pd-sizes__label {
  font-family: var(--font-fa-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pd-sizes__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pd-size {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--accent-bg);
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.pd-size:hover { border-color: var(--accent); }
.pd-size__label {
  font-family: var(--font-fa-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.pd-size__price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.pd-ingredients h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.pd-ingredients ul {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pd-ingredients li {
  padding: 6px 14px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.pd-price-row {
  display: flex; align-items: baseline;
  gap: 12px; padding-top: 8px;
}
.pd-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pd-price small { font-size: 13px; font-style: italic; color: var(--text-muted); margin-inline-start: 6px; font-weight: 400; }
.pd-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding-top: 12px;
}
.notice {
  margin-top: 16px;
  padding: 14px 18px;
  font-size: 13.5px;
  background: var(--accent-bg);
  border: 1px solid var(--hairline);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-md);
  color: var(--text-muted);
}
.notice strong { color: var(--accent); font-weight: 500; }

/* ---------- FLASH MESSAGES ---------- */
.flash-stack {
  position: fixed;
  top: 84px;
  inset-inline: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-inline: 16px;
  pointer-events: none;
}
.flash {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-fa);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-strong);
  background: var(--surface-elev);
  color: var(--text);
  animation: flashIn .4s var(--ease-out) both;
}
.flash svg { width: 22px; height: 22px; flex: none; }
.flash--success { border-color: #4caf7d; }
.flash--success svg { color: #4caf7d; }
.flash--error { border-color: var(--crimson); }
.flash--error svg { color: var(--crimson-warm); }
.flash--info svg { color: var(--accent); }
.flash span { flex: 1; line-height: 1.7; }
.flash__close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--text-muted);
  padding: 0 4px; flex: none;
}
.flash__close:hover { color: var(--text); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.flash.is-hiding { opacity: 0; transform: translateY(-12px); transition: opacity .3s, transform .3s; }

/* ---------- ARTICLE DETAIL ---------- */
.article-hero {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}
.article-hero__date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
}
.article-hero__title {
  font-family: var(--font-fa);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-block: 16px;
}
.article-cover {
  max-width: 1080px;
  margin: 0 auto 64px;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hairline);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.95;
  color: var(--text);
}
.article-body p { margin-bottom: 1.4em; }
.article-body h2 {
  font-weight: 500;
  font-size: 28px;
  margin-block: 1.8em 0.6em;
  color: var(--accent);
}
.article-body h3 { font-weight: 500; font-size: 22px; margin-block: 1.4em 0.4em; }
.article-body blockquote {
  border-inline-start: 3px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin-block: 1.5em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
}
.article-body ul, .article-body ol { padding-inline-start: 28px; margin-bottom: 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body img { margin-block: 2em; border-radius: var(--r-lg); }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 920px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 88px; }
}
.about-stack { display: flex; flex-direction: column; gap: 22px; }
.values-grid {
  display: grid;
  gap: 18px;
  margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.value-card {
  padding: 28px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: all .35s var(--ease-out);
}
.value-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.value-card__icon {
  width: 38px; height: 38px;
  display: inline-block;
  background-color: var(--accent);
  -webkit-mask: url('/images/blossom.svg') center / contain no-repeat;
  mask: url('/images/blossom.svg') center / contain no-repeat;
  margin-bottom: 16px;
}

/* highlight-vector emblem rail (about page) */
.hl-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin-top: clamp(22px, 4vw, 40px);
}
.hl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out);
}
.hl-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.hl-card img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  border-radius: var(--r-md);
}
.hl-card figcaption {
  font-family: var(--font-fa-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- TESTIMONIALS ---------- */
.tst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.tst-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out);
}
.tst-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.tst-stars { color: var(--accent); letter-spacing: 2px; font-size: 16px; }
.tst-stars span { color: var(--border); }
.tst-body {
  font-family: var(--font-fa);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text);
  margin: 0;
}
.tst-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tst-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex: none;
  display: grid; place-items: center;
}
.tst-avatar--mono {
  background: var(--accent-bg); color: var(--accent);
  font-family: var(--font-fa-display); font-weight: 700; font-size: 20px;
  border: 1px solid var(--border-strong);
}
.tst-name { display: block; font-family: var(--font-fa-display); font-weight: 600; color: var(--text); }
.tst-role { display: block; font-size: 13px; color: var(--text-muted); }
.value-card__title {
  font-size: 17px; font-weight: 500;
  margin-bottom: 6px;
}
.value-card__text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  transition: all .3s var(--ease-out);
}
.contact-item:hover { border-color: var(--border-strong); }
.contact-item__icon {
  width: 22px; height: 22px;
  color: var(--accent);
  flex: none;
  margin-top: 4px;
}
.contact-item__label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; letter-spacing: 0.04em; }
.contact-item__value { font-size: 16px; color: var(--text); font-weight: 500; }
.contact-item__value.fa-nums { direction: ltr; text-align: start; }

/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: 80px;
  padding-block: 64px 32px;
  border-top: 1px solid var(--hairline);
  background: var(--bg-deeper);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand .brand-link { font-size: 22px; }
.footer-about { color: var(--text-muted); font-size: 14.5px; max-width: 32ch; margin-top: 18px; line-height: 1.8; }
.footer-h {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  transition: all .3s var(--ease-out);
}
.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.socials svg { width: 16px; height: 16px; }

/* ---------- UTILITIES ---------- */
.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.split-head > * { min-width: 0; }
.split-head .btn-link {
  white-space: nowrap;
  align-self: end;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .split-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .split-head .btn-link { align-self: flex-start; }
}
.center { text-align: center; }
.stack-tight { display: flex; flex-direction: column; gap: 14px; }

/* ---------- REVEAL ANIMATIONS ---------- */
/* visible by default; only hidden when JS is present (html.js) */
.reveal { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* hero entrance (no IntersectionObserver needed for above-fold) */
.hero .reveal { transition-delay: 0s; }
.hero .reveal.in[data-delay="1"] { transition-delay: .1s; }
.hero .reveal.in[data-delay="2"] { transition-delay: .25s; }
.hero .reveal.in[data-delay="3"] { transition-delay: .4s; }

/* ---------- EMPTY / NOT-FOUND ---------- */
.empty {
  text-align: center;
  padding-block: 80px;
  color: var(--text-muted);
}
.empty svg { width: 80px; height: 80px; color: var(--text-dim); margin: 0 auto 24px; }
.empty h3 { font-weight: 400; margin-bottom: 10px; color: var(--text); font-size: 24px; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deeper); }
::-webkit-scrollbar-thumb {
  background: rgba(228, 197, 141, 0.25);
  border-radius: 999px;
  border: 2px solid var(--bg-deeper);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   EDITORIAL — magazine-style primitives
   ============================================================ */

/* ---------- FILM GRAIN OVERLAY ---------- */
.grain::after,
.has-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0 0.55  0 0 0 0.10 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ---------- GIANT BACKDROP TYPE (hero word behind content) ---------- */
.backdrop-type {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-fa-display);
  font-weight: 800;
  font-size: clamp(180px, 36vw, 480px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.10;
  z-index: 0;
  white-space: nowrap;
}
[data-theme="light"] .backdrop-type { opacity: 0.07; color: var(--crimson); }

/* ---------- MARQUEE (gold scrolling tagline strip) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  background: var(--bg-deeper);
  padding-block: 18px;
  z-index: 5;
}
.marquee__track {
  display: inline-flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
  padding-inline-start: 56px;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--accent);
  letter-spacing: 0.02em;
}
.marquee__item--fa {
  font-family: var(--font-fa-display);
  font-style: normal;
  font-weight: 400;
}
.marquee__sep {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  display: inline-block;
  flex: none;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
html[lang="fa"] .marquee__track { animation-direction: reverse; }

/* ---------- SECTION NUMERAL HEAD (magazine-style) ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
  margin-bottom: clamp(36px, 6vw, 64px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.section-head__num { display: none; }   /* section numbers removed per brand direction */
.section-head__title {
  display: flex; flex-direction: column; gap: 10px;
}
.section-head__title .h-section { margin: 0; }
.section-head__title .eyebrow { align-self: flex-start; }
.section-head__cta { align-self: end; }

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 14px 18px;
  }
  .section-head__title  { grid-row: 1; }
  .section-head__cta    { grid-row: 2; justify-self: flex-start; }
}

/* ---------- FEATURE SPREAD (asymmetric product showcase) ---------- */
.feature-spread {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  padding-inline: 24px;
  margin-inline: -24px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.feature-spread::-webkit-scrollbar { display: none; }
.feature-spread > .feature-card {
  flex: 0 0 78%;
  max-width: 320px;
  scroll-snap-align: start;
}
@media (min-width: 880px) {
  .feature-spread {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    overflow: visible;
    padding-inline: 0;
    margin-inline: 0;
  }
  .feature-spread > .feature-card { flex: none; max-width: none; }
  .feature-spread > :nth-child(1) {  /* HERO product */
    grid-column: 1;
    grid-row: 1 / -1;
  }
  .feature-spread > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .feature-spread > :nth-child(3) { grid-column: 3; grid-row: 1; }
  .feature-spread > :nth-child(4) { grid-column: 2; grid-row: 2; }
  .feature-spread > :nth-child(5) { grid-column: 3; grid-row: 2; }
}

.feature-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-deeper);
  border: 1px solid var(--hairline);
  transition: all .5s var(--ease-out);
  isolation: isolate;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.feature-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter .5s var(--ease-out);
}
.feature-card:hover .feature-card__media img {
  transform: scale(1.08);
}
.feature-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(106, 12, 17, 0.85) 0%, rgba(106, 12, 17, 0.15) 45%, transparent 70%);
  z-index: 1;
}
[data-theme="dark"] .feature-card__overlay {
  background: linear-gradient(to top, rgba(20, 4, 5, 0.82) 0%, rgba(20, 4, 5, 0.30) 45%, transparent 72%);
}
.feature-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 24px 24px;
  z-index: 2;
  color: var(--cream);
}
.feature-card__cat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.feature-card__name {
  font-family: var(--font-fa-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  color: #fff8e0;
}
.feature-card--hero .feature-card__media { aspect-ratio: 4 / 5; }
.feature-card--hero .feature-card__name { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; }
.feature-card__badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 3;
}

/* ---------- MAGAZINE ARTICLE SPREAD ---------- */
.mag-spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) {
  .mag-spread { grid-template-columns: 1.4fr 1fr; gap: 40px; }
}
.mag-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-deeper);
  border: 1px solid var(--hairline);
  min-height: 480px;
  transition: all .5s var(--ease-out);
}
.mag-cover:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.mag-cover__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.mag-cover__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(1.1);
  transition: transform 1.2s var(--ease-out);
}
.mag-cover:hover .mag-cover__media img { transform: scale(1.05); }
.mag-cover__body {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 50%, transparent 80%);
  color: #fff8e0;
}
.mag-cover__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mag-cover__label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold-light);
}
.mag-cover__title {
  font-family: var(--font-fa-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  margin-bottom: 14px;
  color: #fff8e0;
}
.mag-cover__excerpt {
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(255, 248, 224, 0.85);
  max-width: 50ch;
}
.mag-cover__meta {
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold-light);
}

.mag-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mag-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: all .4s var(--ease-out);
}
.mag-item:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateX(-4px); }
html[lang="fa"] .mag-item:hover { transform: translateX(4px); }
.mag-item__media {
  width: 110px; height: 110px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-deeper);
}
.mag-item__media img { width: 100%; height: 100%; object-fit: cover; }
.mag-item__body { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.mag-item__date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--accent);
}
.mag-item__title {
  font-family: var(--font-fa-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text);
}

/* ---------- DIAGONAL ORNAMENTAL RIBBON ---------- */
.ribbon {
  position: relative;
  padding-block: 64px 56px;
  overflow: hidden;
}
.ribbon::before,
.ribbon::after {
  content: '';
  position: absolute;
  inset-inline: -10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.ribbon::before { top: 32px; }
.ribbon::after  { bottom: 32px; }
.ribbon__content {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 4vw, 56px);
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.4;
  max-width: 920px;
  margin-inline: auto;
}

/* ---------- DROP CAP ---------- */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 4.2em;
  line-height: 0.85;
  float: right;
  margin-inline-start: 10px;
  margin-inline-end: 0;
  margin-block: 6px 0;
  color: var(--accent);
}
html[lang="fa"] .drop-cap::first-letter {
  font-family: var(--font-fa-display);
  font-weight: 800;
  font-style: normal;
  margin-block: 8px 0;
  font-size: 3.4em;
}

/* ---------- MOBILE BOTTOM ACTION BAR ---------- */
.mobile-actions {
  position: fixed;
  inset-inline: 16px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 45;
  display: none;
  gap: 8px;
  padding: 10px;
  background: var(--bg-deeper);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.45), 0 4px 12px -2px rgba(0,0,0,0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mobile-actions a {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color .2s var(--ease-out), background .25s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.mobile-actions a svg {
  width: 22px;
  height: 22px;
  transition: transform .25s var(--ease-out);
}
.mobile-actions a:hover { color: var(--text); }
.mobile-actions a:hover svg { transform: translateY(-2px); }

/* ONLY the active page gets the gold fill */
.mobile-actions a[aria-current="page"] {
  background: var(--accent);
  color: var(--crimson-deep);
}
[data-theme="light"] .mobile-actions a[aria-current="page"] {
  background: var(--crimson);
  color: var(--cream);
}
.mobile-actions a[aria-current="page"] svg { transform: scale(1.05); }
[data-theme="light"] .mobile-actions a.primary { background: var(--crimson); color: var(--cream); }
[data-theme="light"] .mobile-actions a.primary:hover { background: var(--crimson-dark); }

@media (max-width: 759px) {
  .mobile-actions { display: flex; }
  body { padding-bottom: 88px; }
  .sticky-mono { display: none; }  /* mobile uses action bar instead */
}

/* ---------- STICKY MONOGRAM (floating watcher) ---------- */
.sticky-mono {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--crimson);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 36px -10px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  pointer-events: none;
}
.sticky-mono.in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.sticky-mono img {
  width: 30px; height: 30px;
  object-fit: contain;
}
.sticky-mono:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- DISPLAY MEGA ---------- */
.h-mega {
  font-family: var(--font-fa-display);
  font-weight: 800;
  font-size: clamp(54px, 11vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--text);
}
.h-mega em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}

/* ---------- HERO V2: editorial on desktop, content-first on mobile ---------- */
.hero-v2 {
  position: relative;
  padding-block: clamp(28px, 6vw, 84px) clamp(28px, 5vw, 64px);
  overflow: hidden;
}
.hero-v2__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-v2__grid { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}
.hero-v2__copy { max-width: 720px; }
.hero-v2 .h-display {
  font-size: clamp(34px, 7.5vw, 96px);
  line-height: 1.2;
  margin-block: 16px 18px;
}
.hero-v2 .lead { font-size: 15.5px; line-height: 1.75; }
.hero-v2__mark {
  position: relative;
  display: none;     /* hide huge logo card on mobile - logo is already in header */
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin-inline: auto;
}
@media (min-width: 760px) {
  .hero-v2__mark { display: flex; }
}
.hero-v2__mark img {
  width: 90%; height: auto; margin-inline: auto;
  filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.3));
}
[data-theme="light"] .hero-v2__mark img {
  filter: drop-shadow(0 24px 48px rgba(111, 0, 0, 0.24));
}

/* full-width primary CTA on mobile */
@media (max-width: 759px) {
  .hero-v2 .hero__cta { gap: 10px; }
  .hero-v2 .hero__cta .btn-primary {
    flex: 1;
    justify-content: center;
    padding-inline: 14px;
  }
}

/* tilt-down stats (no longer full-width boxes — feels editorial) */
.stat-line {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 700px) { .stat-line { grid-template-columns: repeat(4, 1fr); } }
.stat-line__item { display: flex; flex-direction: column; gap: 4px; }
.stat-line__num {
  font-family: var(--font-fa-display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.01em;
}
.stat-line__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ============================================================
   MENU PAGE — catalog browsing, mobile-first
   ============================================================ */

/* ---------- MENU HERO STRIP (compact title row) ---------- */
.menu-top {
  position: relative;
  padding-block: clamp(20px, 4vw, 36px) clamp(16px, 3vw, 28px);
  overflow: hidden;
}
.menu-top__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.menu-top__eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.menu-top__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.menu-top__title {
  font-family: var(--font-fa-display);
  font-weight: 800;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.015em;
}
.menu-top__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin-inline-start: 10px;
  font-size: 0.5em;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.menu-top__count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 14px;
  background: var(--accent-bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-fa);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.menu-top__count strong {
  font-family: var(--font-fa-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
}

/* ---------- STICKY FILTER SHELF ---------- */
.menu-shelf {
  position: sticky;
  top: 0;
  z-index: 30;
  /* match the page background per-theme so the sticky bar blends seamlessly */
  background: rgba(138, 16, 20, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  padding-block: 14px 12px;
  margin-bottom: 24px;
  overflow: hidden;             /* contain chip-rail's negative margins */
}
[data-theme="light"] .menu-shelf { background: rgba(250, 243, 224, 0.85); }
.site-header ~ * .menu-shelf,
.menu-shelf { top: 72px; }    /* sit below the site header */
@media (max-width: 759px) {
  .menu-shelf { top: 64px; padding-block: 12px 10px; }
}

.menu-search {
  position: relative;
  margin-bottom: 12px;
}
.menu-search input {
  width: 100%;
  padding: 14px 52px 14px 18px;
  font-family: var(--font-fa);
  font-size: 15.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all .25s var(--ease-out);
}
html[lang="fa"] .menu-search input { padding: 14px 18px 14px 52px; }
.menu-search input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.menu-search__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  inset-inline-end: 20px;
}
html[lang="fa"] .menu-search__icon { inset-inline-end: auto; inset-inline-start: 20px; }
.menu-search__clear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 20px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s var(--ease-out);
}
html[lang="fa"] .menu-search__clear { inset-inline-end: 6px; }
.menu-search input:not(:placeholder-shown) ~ .menu-search__icon { display: none; }
.menu-search input:not(:placeholder-shown) ~ .menu-search__clear { display: inline-flex; }
.menu-search__clear:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }
.menu-search__clear svg { width: 14px; height: 14px; }

/* horizontal scrolling chip rail */
.chip-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-inline: 24px;
  margin-inline: -24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.chip-rail::-webkit-scrollbar { display: none; }
.chip-rail .chip {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s var(--ease-out);
  white-space: nowrap;
  scroll-snap-align: start;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-rail .chip svg { width: 14px; height: 14px; }
.chip-rail .chip:hover { border-color: var(--accent); color: var(--accent); }
.chip-rail .chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--crimson-deep);
  border-color: var(--accent);
}
[data-theme="light"] .chip-rail .chip[aria-pressed="true"] {
  background: var(--crimson);
  color: var(--cream);
  border-color: var(--crimson);
}
.chip-rail .chip--toggle {
  margin-inline-start: auto;    /* push toggle to the far side */
}
.chip-rail .chip--toggle[aria-pressed="true"] {
  background: rgba(46, 160, 80, 0.18);
  color: #76e09b;
  border-color: rgba(46, 160, 80, 0.4);
}
[data-theme="light"] .chip-rail .chip--toggle[aria-pressed="true"] {
  background: rgba(46, 160, 80, 0.14);
  color: #1d6b34;
  border-color: rgba(46, 160, 80, 0.4);
}

/* ---------- MENU GRID — compact 2-col mobile, scaling up ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 540px) { .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 760px) { .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1080px) { .menu-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.m-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
  cursor: pointer;
  isolation: isolate;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
@media (hover: hover) {
  .m-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
}
.m-card:active { transform: scale(0.97); transition: transform .08s ease-out; }
.m-card.is-hidden { display: none; }

.m-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-deeper) 0%, var(--bg) 100%);
}
.m-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.m-card:hover .m-card__media img { transform: scale(1.06); }
.m-card__media .illustration {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  opacity: 0.6;
}
.m-card__media .illustration svg { width: 60%; height: 60%; }
.m-card__unavailable {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 1;
}

.m-card__badge {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.m-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.m-card__cat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.m-card__name {
  font-family: var(--font-fa-display);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-card__tagline {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-card__meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.m-card__price {
  font-family: var(--font-fa-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.m-card__price small {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 10px;
  color: var(--text-muted);
  margin-inline-start: 3px;
}
.m-card__weight {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.m-card.is-unavailable .m-card__price { color: var(--text-muted); }

@media (min-width: 760px) {
  .m-card__body { padding: 16px 18px 18px; }
  .m-card__name { font-size: 17px; }
  .m-card__tagline { font-size: 13px; }
  .m-card__price { font-size: 16px; }
}

/* ---------- EMPTY STATE ---------- */
.menu-empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  color: var(--text-muted);
  display: none;
}
.menu-empty.is-shown { display: block; }
.menu-empty__icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  color: var(--accent);
  opacity: 0.6;
}
.menu-empty h3 {
  font-family: var(--font-fa-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}
.menu-empty p { font-size: 14px; max-width: 36ch; margin-inline: auto; }
.menu-empty .btn { margin-top: 20px; }

/* ---------- SCROLL TO TOP FAB ---------- */
.scroll-top {
  position: fixed;
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 88px));
  inset-inline-end: 16px;
  z-index: 35;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--crimson-deep);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all .35s var(--ease-out);
  pointer-events: none;
}
.scroll-top.in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.scroll-top:hover { background: var(--accent-strong); transform: translateY(-3px); }
.scroll-top svg { width: 18px; height: 18px; }
[data-theme="light"] .scroll-top { background: var(--crimson); color: var(--cream); }
[data-theme="light"] .scroll-top:hover { background: var(--crimson-dark); }

@media (min-width: 760px) {
  .scroll-top { bottom: 28px; }
}

/* ---------- MEDIA: REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .marquee__track { animation: none !important; }
}

/* ============================================================
   ╭───────────────────────────────────────────────────────────╮
   │  APP-LIKE MOBILE LAYER — Patisserie Pocket                │
   │  Native-feeling overrides for the mobile experience.       │
   │  Crimson + cream + gold stay; surfaces get softer, motion  │
   │  gets springier, vertical rhythm gets tighter.            │
   ╰───────────────────────────────────────────────────────────╯
   ============================================================ */

/* ---- spring curves used throughout the app layer ---- */
:root {
  --spring-soft: cubic-bezier(0.34, 1.56, 0.64, 1);     /* gentle overshoot */
  --spring-snap: cubic-bezier(0.22, 1.4, 0.36, 1);      /* iOS-like settle */
  --ease-app:    cubic-bezier(0.32, 0.72, 0, 1);         /* iOS scroll/fade */
}

/* ============================================================
   1.  SLIM BOTTOM TAB BAR (replaces the chunky pill)
   ============================================================ */
@media (max-width: 759px) {
  .mobile-actions {
    inset-inline: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 6px;
    gap: 4px;
    border-radius: 22px;
    background: color-mix(in oklab, var(--bg-deeper) 78%, transparent);
    border-color: color-mix(in oklab, var(--border) 60%, transparent);
    box-shadow:
      0 1px 0 color-mix(in oklab, var(--accent) 8%, transparent) inset,
      0 14px 36px -14px rgba(0,0,0,0.55),
      0 4px 10px -2px rgba(0,0,0,0.25);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
  }
  .mobile-actions a {
    padding: 6px 4px 5px;
    gap: 2px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: color-mix(in oklab, var(--text-muted) 90%, transparent);
    border-radius: 16px;
    transition:
      color .25s var(--ease-app),
      background .35s var(--ease-app),
      transform .35s var(--spring-snap);
  }
  .mobile-actions a svg { width: 19px; height: 19px; stroke-width: 1.9; }
  .mobile-actions a[aria-current="page"] {
    background: transparent;
    color: var(--accent);
  }
  [data-theme="light"] .mobile-actions a[aria-current="page"] {
    background: transparent;
    color: var(--crimson);
  }
  .mobile-actions a[aria-current="page"] svg { transform: scale(1.04) translateY(-1px); }
  /* tiny iOS-tab-bar style indicator */
  .mobile-actions a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 4px; height: 4px;
    margin-inline-start: -2px;
    border-radius: 50%;
    background: var(--accent);
  }
  [data-theme="light"] .mobile-actions a[aria-current="page"]::after { background: var(--crimson); }
  .mobile-actions a { position: relative; }
  body { padding-bottom: 76px; }
}

/* ============================================================
   2.  MENU PAGE — slimmer hero strip, app-style search & chips
   ============================================================ */

@media (max-width: 759px) {
  /* tighter title row — less editorial print, more app density */
  .menu-top {
    padding-block: 18px 12px;
  }
  .menu-top__eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
  }
  .menu-top__eyebrow::before { width: 16px; }
  .menu-top__title {
    font-size: 30px;
    line-height: 1.05;
  }
  .menu-top__title em {
    font-size: 0.42em;
    opacity: 0.7;
    margin-inline-start: 6px;
  }
  .menu-top__count {
    padding: 4px 10px;
    font-size: 11.5px;
    background: color-mix(in oklab, var(--accent) 14%, transparent);
    border-color: color-mix(in oklab, var(--accent) 22%, transparent);
  }
  .menu-top__count strong { font-size: 13px; }

  /* sticky shelf — softer surface, no harsh border */
  .menu-shelf {
    top: 56px;
    padding-block: 10px 8px;
    margin-inline: -24px;   /* full-bleed on mobile */
    padding-inline: 24px;
    background: color-mix(in oklab, var(--bg) 72%, transparent);
    border-bottom-color: color-mix(in oklab, var(--hairline) 50%, transparent);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
  }

  /* search bar — iOS field with focus-spring */
  .menu-search { margin-bottom: 10px; }
  .menu-search input {
    height: 42px;
    padding: 0 44px 0 16px;
    font-size: 14.5px;
    background: color-mix(in oklab, var(--surface) 90%, transparent);
    border-color: color-mix(in oklab, var(--border) 50%, transparent);
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
    transition:
      background .25s var(--ease-app),
      border-color .25s var(--ease-app),
      box-shadow .35s var(--ease-app),
      transform .35s var(--spring-snap);
  }
  html[lang="fa"] .menu-search input { padding: 0 16px 0 44px; }
  .menu-search input::placeholder {
    color: color-mix(in oklab, var(--text-muted) 75%, transparent);
    font-size: 14px;
  }
  .menu-search input:focus {
    border-color: color-mix(in oklab, var(--accent) 55%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
    transform: translateY(-1px);
  }
  .menu-search__icon { width: 16px; height: 16px; opacity: 0.7; }

  /* chip rail — edge fade + springy active */
  .chip-rail {
    gap: 6px;
    padding-inline: 24px;
    margin-inline: -24px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }
  .chip-rail .chip {
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 12px;
    background: color-mix(in oklab, var(--surface) 80%, transparent);
    border-color: color-mix(in oklab, var(--hairline) 60%, transparent);
    transition:
      background .25s var(--ease-app),
      color .2s var(--ease-app),
      border-color .25s var(--ease-app),
      transform .4s var(--spring-soft);
  }
  .chip-rail .chip[aria-pressed="true"] {
    transform: scale(1.05);
    box-shadow: 0 4px 12px -4px color-mix(in oklab, var(--accent) 60%, transparent);
  }
  .chip-rail .chip--toggle {
    padding-inline: 12px 14px;
  }
  .chip-rail .chip--toggle svg { width: 12px; height: 12px; opacity: 0.6; }

  /* product card grid — tighter gutters, softer surface */
  .menu-grid { gap: 10px; }
  .m-card {
    border-radius: 16px;
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    border-color: color-mix(in oklab, var(--hairline) 50%, transparent);
    box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
  }
  .m-card__media { border-radius: 14px 14px 0 0; }
  .m-card__badge {
    top: 7px;
    inset-inline-end: 7px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
  }
  .m-card__body {
    padding: 10px 12px 12px;
    gap: 3px;
  }
  .m-card__cat { font-size: 10.5px; opacity: 0.8; }
  .m-card__name { font-size: 14px; line-height: 1.3; }
  .m-card__tagline { font-size: 11.5px; line-height: 1.45; }
  .m-card__meta { padding-top: 6px; }
  .m-card__price { font-size: 13.5px; }
  .m-card__price small { font-size: 9.5px; margin-inline-start: 2px; }
  .m-card__weight { font-size: 10px; }

  /* tactile press — pressed feel without bounce noise */
  .m-card:active {
    transform: scale(0.975);
    transition: transform .12s var(--ease-app);
  }
}

/* ============================================================
   3.  HOME HERO — desktop unchanged; mobile gets a full-bleed
       IMAGE hero (the editorial copy + stat-line are hidden on
       mobile because they read as "empty" without the photo).
   ============================================================ */

/* default: image-hero is desktop-hidden */
.hero-image { display: none; }

@media (max-width: 759px) {
  /* hero section: zero padding so the slider sits flush under the header */
  .hero-v2 { padding-block: 0 0; overflow: visible; }
  .hero-v2 .container { padding-inline: 0; max-width: none; }

  /* hide editorial copy + stats on mobile — image-hero replaces both */
  .hero-v2__grid,
  .hero-v2 .stat-line { display: none; }

  /* ---------- FULL-BLEED IMAGE HERO (flush with header) ---------- */
  .hero-image {
    display: block;
    position: relative;
    margin: 0 0 20px;
    height: 72vh;
    min-height: 460px;
    max-height: 640px;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    background: var(--bg-deeper);
    box-shadow:
      0 24px 50px -28px rgba(0,0,0,0.5),
      0 6px 16px -6px rgba(0,0,0,0.3);
    isolation: isolate;
  }

  /* ---- SLIDER STRIP ---- */
  .hero-slider {
    position: absolute;
    inset: 0;
    display: flex;
    direction: ltr;          /* keep slide order predictable regardless of doc dir */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
  .hero-slider::-webkit-scrollbar { display: none; }
  .hero-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
  }
  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    pointer-events: none;
  }
  /* shared veil sits on top of the strip so caption stays legible
     regardless of which slide is showing. The bottom must be DARK
     enough to make cream text + gold accents readable on any photo. */
  .hero-slider__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(
        to bottom,
        rgba(11, 5, 7, 0.30) 0%,
        rgba(11, 5, 7, 0.05) 18%,
        rgba(11, 5, 7, 0.10) 42%,
        rgba(11, 5, 7, 0.78) 70%,
        rgba(11, 5, 7, 0.96) 100%
      );
  }
  /* light mode: use deep, dark crimson (not the bright theme red) so
     cream text remains crisp. Start darkening earlier and reach near
     full opacity at the caption position. */
  [data-theme="light"] .hero-slider__veil {
    background:
      linear-gradient(
        to bottom,
        rgba(40, 6, 9, 0.32) 0%,
        rgba(40, 6, 9, 0.10) 20%,
        rgba(40, 6, 9, 0.35) 48%,
        rgba(40, 6, 9, 0.88) 70%,
        rgba(40, 6, 9, 0.98) 100%
      );
  }

  /* ---- CAPTION (overlay, fixed regardless of slide) ---- */
  .hero-image__caption {
    position: absolute;
    inset-inline: 22px;
    bottom: 118px;          /* leave room for dots + CTA */
    z-index: 5;
    color: var(--cream);
    text-align: right;
    pointer-events: none;
  }
  /* The hero overlay always reads as a dark surface — pin the
     caption colors to cream + gold so they don't follow the theme
     into low-contrast crimson. */
  .hero-image__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    font-family: var(--font-fa);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #e4c58d;                                /* fixed gold */
    background: rgba(228, 197, 141, 0.18);
    border: 1px solid rgba(228, 197, 141, 0.42);
    border-radius: 999px;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    margin-bottom: 14px;
    pointer-events: auto;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  }
  .hero-image__title {
    font-family: var(--font-fa-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: #fbf6e9;                                /* fixed cream */
    text-shadow:
      0 2px 24px rgba(0,0,0,0.6),
      0 1px 4px rgba(0,0,0,0.4);
    margin: 0;
    pointer-events: auto;
  }
  .hero-image__title em {
    font-style: normal;
    color: #e4c58d;                                /* fixed gold */
  }

  /* ---- PAGINATION DOTS ---- */
  .hero-dots {
    position: absolute;
    bottom: 84px;
    inset-inline: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    pointer-events: none;
  }
  .hero-dots__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition:
      width .35s var(--spring-snap),
      background .25s var(--ease-app);
    pointer-events: auto;
  }
  .hero-dots__dot.is-active {
    width: 22px;
    background: var(--accent);
  }
  .hero-dots__dot:focus { outline: none; }

  /* ---- CTA: ONE primary button, pinned to bottom of card ---- */
  .hero-image .hero-image__btn {
    position: absolute;
    inset-inline: 18px;
    bottom: 22px;
    z-index: 5;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    font-family: var(--font-fa);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    text-decoration: none;
    background: #e4c58d;                            /* fixed gold */
    color: #4a0e12;                                 /* fixed deep crimson */
    box-shadow:
      0 16px 32px -10px rgba(228, 197, 141, 0.6),
      0 4px 10px -2px rgba(0,0,0,0.25);
    transition:
      transform .35s var(--spring-snap),
      box-shadow .35s var(--ease-app);
  }
  .hero-image .hero-image__btn svg { width: 16px; height: 16px; }
  html[lang="fa"] .hero-image .hero-image__btn svg { transform: scaleX(-1); }
  .hero-image .hero-image__btn:active {
    transform: scale(0.97);
    box-shadow: 0 6px 14px -4px rgba(228, 197, 141, 0.5);
  }
}

/* ============================================================
   4.  MARQUEE — fix the "empty start" (RTL natural-flow bug)
       and add a soft edge fade
   ============================================================ */
.marquee {
  padding-inline: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  padding-inline-start: 0;
  gap: 32px;
}
.marquee__item { gap: 24px; }

/* RTL needs its own keyframe: the track's natural box already sits at
   the right edge extending left, so it's already visible at time=0.
   We scroll it OUT to the right (positive translateX). */
@keyframes marquee-scroll-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
html[lang="fa"] .marquee__track {
  animation-name: marquee-scroll-rtl;
  animation-direction: normal;     /* override the global "reverse" */
}
@media (max-width: 759px) {
  .marquee { padding-block: 10px; border-block-color: color-mix(in oklab, var(--hairline) 50%, transparent); }
  .marquee__track { gap: 24px; animation-duration: 32s; }
  .marquee__item { font-size: 14px; gap: 18px; }
  .marquee__sep { width: 5px; height: 5px; }
}

/* ============================================================
   5.  SECTION HEAD on mobile — quieter giant numeral, no harsh
       hairline cutting through the layout
   ============================================================ */
@media (max-width: 759px) {
  .section-head {
    gap: 10px 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom-color: color-mix(in oklab, var(--hairline) 50%, transparent);
  }
  .section-head__num { font-size: 40px; opacity: 0.75; }
  .section-head__title .h-section {
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.015em;
  }
  .section-head__cta {
    font-size: 12.5px;
    color: var(--accent);
  }
  .section-tight { padding-block: 32px; }
  .section { padding-block: 36px; }
}

/* ============================================================
   6.  Misc app-feel polish
   ============================================================ */

/* keep iOS Safari from showing the dotted focus outline on tap */
@media (hover: none) {
  *:focus:not(:focus-visible) { outline: none; }
}

/* smoother momentum on all horizontal rails */
.chip-rail, .cat-rail, .feature-spread {
  scroll-behavior: smooth;
}

/* tiny shimmer on press for primary buttons (mobile only) */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:active {
    transform: scale(0.97);
    transition: transform .12s var(--ease-app);
  }
}

/* the site-header on mobile is a touch too tall for the app feel */
@media (max-width: 759px) {
  .site-header__inner { min-height: 56px; padding-block: 8px; }
  .brand-wordmark { font-size: 22px; }
  .brand-tagline { font-size: 9px; letter-spacing: 0.15em; margin-top: 2px; }
  .brand-mark { width: 34px; height: 42px; }
  .menu-shelf { top: 56px; }    /* re-pin after the header shrinks */
}

/* ============================================================
   7.  MOBILE FOOTER — compact, app-style layout
       Hide the duplicate brand block (header already has it),
       compress link sections into a 2-col grid, lift contacts
       into prominent action chips, slim the credits row.
   ============================================================ */
@media (max-width: 759px) {
  .site-footer {
    margin-top: 32px;
    padding-block: 28px 18px;
    /* breathing room so the floating bottom nav doesn't cover credits */
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  /* shrink the outer grid: tight stack, smaller gaps */
  .site-footer .footer-grid {
    gap: 22px;
  }

  /* brand block: drop the duplicate logo, keep only the short tagline */
  .site-footer .footer-brand .brand-link { display: none; }
  .site-footer .footer-about {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.7;
    max-width: none;
    color: var(--text-muted);
    text-align: center;
    padding-inline: 4px;
  }

  /* nav + categories: side-by-side, half the vertical real estate */
  .site-footer .footer-grid > div:nth-child(2),
  .site-footer .footer-grid > div:nth-child(3) {
    display: inline-block;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand   brand"
      "nav     cats"
      "contact contact";
    column-gap: 16px;
    row-gap: 24px;
  }
  .site-footer .footer-grid > div:nth-child(1) { grid-area: brand; }
  .site-footer .footer-grid > div:nth-child(2) { grid-area: nav; }
  .site-footer .footer-grid > div:nth-child(3) { grid-area: cats; }
  .site-footer .footer-grid > div:nth-child(4) { grid-area: contact; }

  /* section headings: ditch the italic "eyebrow" feel — use a clean
     small caps label that reads as a section divider in app UIs */
  .site-footer .footer-h {
    font-family: var(--font-fa);
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: none;
    opacity: 0.9;
  }

  /* link lists: tighter, with subtle row dividers (iOS-list feel) */
  .site-footer .footer-links { gap: 0; }
  .site-footer .footer-links li {
    border-bottom: 1px solid color-mix(in oklab, var(--hairline) 50%, transparent);
  }
  .site-footer .footer-links li:last-child { border-bottom: none; }
  .site-footer .footer-links a {
    display: block;
    padding: 9px 0;
    font-size: 13.5px;
    color: var(--text);
    transition: color .2s var(--ease-app);
  }
  .site-footer .footer-links a:hover,
  .site-footer .footer-links a:active { color: var(--accent); }

  /* contact section: convert plain list into action chips */
  .site-footer .footer-grid > div:nth-child(4) .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 4px;
  }
  .site-footer .footer-grid > div:nth-child(4) .footer-links li {
    border: none;
  }
  .site-footer .footer-grid > div:nth-child(4) .footer-links a {
    padding: 11px 12px;
    text-align: center;
    background: color-mix(in oklab, var(--surface) 80%, transparent);
    border: 1px solid color-mix(in oklab, var(--hairline) 60%, transparent);
    border-radius: 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition:
      background .25s var(--ease-app),
      border-color .25s var(--ease-app),
      transform .35s var(--spring-snap);
  }
  .site-footer .footer-grid > div:nth-child(4) .footer-links a.ltr {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
  }
  .site-footer .footer-grid > div:nth-child(4) .footer-links a:active {
    transform: scale(0.97);
    background: color-mix(in oklab, var(--accent) 12%, transparent);
    border-color: color-mix(in oklab, var(--accent) 35%, transparent);
  }

  /* credits row: socials prominent, copyright quiet underneath */
  .site-footer .footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top-color: color-mix(in oklab, var(--hairline) 50%, transparent);
    flex-direction: column-reverse;
    gap: 14px;
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
  }
  .site-footer .socials {
    gap: 8px;
    justify-content: center;
  }
  .site-footer .socials a {
    width: 40px; height: 40px;
    border-color: color-mix(in oklab, var(--accent) 30%, transparent);
    color: var(--accent);
    background: color-mix(in oklab, var(--accent) 6%, transparent);
  }
  .site-footer .socials a:active {
    transform: scale(0.92);
    background: color-mix(in oklab, var(--accent) 15%, transparent);
  }
  .site-footer .socials svg { width: 17px; height: 17px; stroke-width: 1.6; }
}

/* ============================================================
   8.  RTL arrow correction — "follow link" arrows should point
       LEFT in Persian (forward in reading order). The legacy
       rule flips them right; undo that for cat-card.
   ============================================================ */
html[lang="fa"] .cat-card__arrow svg { transform: none; }

/* Polish the arrow chip itself — it had a slightly oversized
   look and a contrasty hover that doesn't translate to touch. */
.cat-card__arrow {
  width: 32px; height: 32px;
  background: rgba(11, 5, 7, 0.42);
  border-color: rgba(255, 248, 224, 0.22);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  /* place on the visual LEFT in RTL (= inline-end), opposite the title */
  inset-inline-start: auto;
  inset-inline-end: 20px;
}
.cat-card__arrow svg { width: 14px; height: 14px; stroke-width: 2.2; }
@media (hover: none) {
  .cat-card:active .cat-card__arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--crimson-deep);
  }
}
