/* ==================================================================
   Lellathom — shared design system
   Editorial, photography-led, restrained motion.
   Inspired by diasporaco.com's editorial structure but using
   Lellathom's own deep red (#A60900), grandmother mark, and slogan.
   ================================================================== */

:root {
  /* ----- Color ----- */
  --brand: #A60900;
  --brand-deep: #7A0700;
  --brand-soft: #D45A4F;
  --cream: #FBF6EC;
  --paper: #FFFFFF;
  --sand: #F1E6D2;
  --oat:  #F5E6C2;
  --butter: #FBE9B6;
  --ink: #1F1410;
  --ink-soft: #5C4438;
  --ink-muted: #8A7568;            /* between ink-soft and line for de-emphasized text */
  --heading: #4A1B0E;
  --terracotta: #C44A1F;
  --olive: #6B6420;
  --line: #E4D7C0;
  --line-strong: #C9B898;

  /* Alpha tokens — replace inline rgba(...) calls. */
  --brand-08: rgba(166, 9, 0, 0.08);
  --brand-12: rgba(166, 9, 0, 0.12);
  --brand-25: rgba(166, 9, 0, 0.25);
  --ink-04:   rgba(31, 20, 16, 0.04);
  --ink-06:   rgba(31, 20, 16, 0.06);
  --ink-10:   rgba(31, 20, 16, 0.10);
  --ink-30:   rgba(31, 20, 16, 0.30);
  --ink-55:   rgba(31, 20, 16, 0.55);
  --ink-85:   rgba(31, 20, 16, 0.85);
  --cream-40: rgba(251, 246, 236, 0.40);
  --cream-78: rgba(251, 246, 236, 0.78);
  --cream-92: rgba(251, 246, 236, 0.92);

  /* ----- Type ----- */
  --serif: "Cormorant Garamond", "Amiri", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --arabic-display: "Amiri", "Cairo", serif;
  --arabic-ui: "Cairo", "Amiri", sans-serif;

  /* Type scale — one source of truth. Sizes use clamp() for fluid response. */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   17px;
  --fs-lg:   clamp(18px, 1.4vw, 20px);
  --fs-xl:   clamp(22px, 2vw, 26px);
  --fs-2xl:  clamp(26px, 2.6vw, 32px);
  --fs-3xl:  clamp(28px, 3.5vw, 40px);
  --fs-4xl:  clamp(32px, 4vw, 48px);
  --fs-5xl:  clamp(36px, 5vw, 64px);
  --fs-hero: clamp(44px, 6vw, 88px);

  --lh-tight: 1.1;
  --lh-snug:  1.25;
  --lh-base:  1.55;
  --lh-loose: 1.7;

  --tracking-tight:   -0.01em;
  --tracking-base:    0;
  --tracking-buttons: 0.04em;
  --tracking-nav:     0.14em;
  --tracking-eyebrow: 0.16em;

  /* ----- Spacing ----- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px;

  /* ----- Radius / elevation ----- */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px var(--ink-06);
  --shadow-2: 0 8px 24px var(--ink-10);
  --shadow-3: 0 20px 50px -20px var(--ink-30);
  --shadow-card: 0 4px 12px var(--ink-06);

  /* ----- Motion ----- */
  --ease: cubic-bezier(.2,.6,.2,1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 600ms;

  /* ----- Layout ----- */
  --max: 1180px;             /* tightened from 1280 for editorial feel */
  --max-narrow: 880px;
  --max-wide: 1280px;        /* legacy alias for sections that still need full width */

  /* ----- Focus ----- */
  --focus-ring: 0 0 0 2px var(--cream), 0 0 0 4px var(--brand);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--arabic-ui); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ----- Accessibility: keyboard focus ----- */
/* Suppress :focus styles for mouse users. Only :focus-visible (keyboard / programmatic) shows the ring. */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}
/* Pill / round elements should keep their pill radius when focused */
.btn:focus-visible,
.icon-btn:focus-visible,
.lang-toggle button:focus-visible,
.product__wish:focus-visible,
.pill-tab:focus-visible,
.cart__close:focus-visible,
.cart__checkout:focus-visible,
.product__add:focus-visible,
.product__cta:focus-visible {
  border-radius: var(--r-pill);
}
.product--v4:focus-visible {
  border-radius: var(--r-md);
}
/* Form fields keep their existing red ring on focus-visible (handled by individual rules), but make sure :focus-visible doesn't double up */
input:focus-visible, textarea:focus-visible, select:focus-visible {
  box-shadow: none;
}

/* ----- Motion preferences ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal--d1, .reveal--d2, .reveal--d3 {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ----- Skip link for keyboard users ----- */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--s-3);
  background: var(--brand);
  color: var(--cream);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  z-index: 100;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--s-3); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-5); }
.wrap--narrow { max-width: var(--max-narrow); }
.center-text { text-align: center; }

/* ==================================================================
   ANNOUNCEMENT BAR — slim, scrolls with page
   ================================================================== */
.announce {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px var(--s-4);
}
.announce span { opacity: .8; margin: 0 var(--s-3); }
.announce span::after {
  content: "·";
  margin-inline-start: var(--s-3);
  opacity: .4;
}
.announce span:last-child::after { content: ""; }

/* ==================================================================
   TOPBAR — sticky, transparent on light backgrounds
   ================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-5);
  height: 72px;
}
.brand-mini { display: flex; align-items: center; gap: var(--s-3); }
.brand-mini img { width: 38px; height: 38px; object-fit: contain; }
.brand-mini__wordmark {
  width: auto !important;
  height: 50px !important;
  max-width: none;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .brand-mini__wordmark { height: 38px !important; }
}
.brand-mini span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-lg);
  letter-spacing: var(--tracking-base);
  color: var(--ink);
}

.nav {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-7);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
}
.nav a {
  padding: 8px 0;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--brand); }

.topbar__actions {
  display: flex; align-items: center; gap: var(--s-3); justify-self: end;
}
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn .badge {
  position: absolute; top: 4px; inset-inline-end: 4px;
  background: var(--brand); color: var(--cream);
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
}
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  font-size: 11px; font-weight: 700;
  background: var(--paper);
  letter-spacing: .1em;
}
.lang-toggle button {
  padding: 7px 12px;
  color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-toggle button.is-active { background: var(--brand); color: var(--cream); }

@media (max-width: 920px) {
  .nav { display: none; }
  .topbar__row { grid-template-columns: auto 1fr auto; }
  .topbar__row .lang-toggle,
  .topbar__row .icon-btn[aria-label="Recherche"] { display: none; }
}

/* ==================================================================
   MOBILE NAV (hamburger + slide-in drawer) — auto-injected by shared.js
   ================================================================== */
.menu-btn {
  width: 38px; height: 38px;
  display: none;
  place-items: center;
  border-radius: var(--r-pill);
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease);
}
.menu-btn:hover { background: var(--sand); }
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast) var(--ease);
}
.menu-btn span { position: relative; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after  { position: absolute; top: 6px; }

@media (max-width: 920px) {
  .menu-btn { display: grid; }
}

.nav-overlay {
  position: fixed; inset: 0;
  background: var(--ink-55);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
  z-index: 60;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0;
  width: min(86vw, 360px);
  background: var(--cream);
  z-index: 70;
  transform: translateX(-100%);
  transition: transform var(--dur-base) var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-3);
}
html[dir="rtl"] .nav-drawer { transform: translateX(100%); }
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.nav-drawer__head .brand-mini img { width: 32px; height: 32px; }
.nav-drawer__close {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 18px;
  transition: background var(--dur-fast) var(--ease);
}
.nav-drawer__close:hover { background: var(--sand); }
.nav-drawer__body {
  flex: 1; overflow-y: auto;
  padding: var(--s-5);
}
.nav-drawer__section + .nav-drawer__section { margin-top: var(--s-6); }
.nav-drawer__section h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--heading);
  margin: 0 0 var(--s-3);
}
.nav-drawer__section ul { list-style: none; padding: 0; margin: 0; }
.nav-drawer__section li + li { margin-top: var(--s-1); }
.nav-drawer__section a {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: var(--fs-md);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-drawer__section a:hover {
  background: var(--paper);
  color: var(--brand);
}
.nav-drawer__section a .emoji { font-size: 18px; }
.nav-drawer__primary a {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--ink);
}
.nav-drawer__foot {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-drawer__foot .lang-toggle { font-size: var(--fs-xs); }

/* ==================================================================
   BUTTONS, EYEBROW
   ================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-buttons);
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--brand); color: var(--cream); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--invert { background: var(--cream); color: var(--ink); }
.btn--invert:hover { background: var(--paper); }
.btn--sm { padding: var(--s-2) var(--s-5); font-size: var(--fs-xs); }
.btn--lg { padding: var(--s-4) var(--s-7); font-size: var(--fs-base); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-3);
}
.eyebrow--ink { color: var(--ink-soft); }
.eyebrow--cream { color: var(--cream); }

/* ==================================================================
   SECTION SHELL & EDITORIAL TYPE
   ================================================================== */
.section { padding: var(--s-10) 0; }
.section--lg { padding: var(--s-11) 0; }
.section--tight { padding: var(--s-8) 0; }

.section__head { margin-bottom: var(--s-7); max-width: 60ch; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  margin: 0 0 var(--s-3);
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
}
.section__head h2 em { font-style: italic; color: var(--brand); }
.section__head p {
  color: var(--ink-soft);
  font-size: var(--fs-md);
  margin: 0;
  max-width: 56ch;
}
.rule {
  display: block; height: 1px;
  background: var(--line);
  width: 60px; margin: 0 0 var(--s-5);
}
.section__head--center .rule { margin-inline: auto; }

/* ==================================================================
   HERO — editorial, image-led
   ================================================================== */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 88vh;
  align-items: stretch;
}
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
}

.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-9) var(--s-7);
  position: relative;
}
@media (max-width: 920px) { .hero__copy { padding: var(--s-8) var(--s-5); } }

.hero__copy .hero-logo { width: clamp(72px, 8vw, 108px); margin-bottom: var(--s-5); }

.hero__slogan {
  font-family: var(--arabic-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 1.2;            /* relaxed from 1.1 — Amiri reads better with breathing room */
  color: var(--brand);
  direction: rtl;
  text-align: start;
  margin: 0 0 var(--s-5);
  letter-spacing: 0;
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-xl);
  color: var(--ink);
  max-width: 28ch;
  margin: 0 0 var(--s-7);
  line-height: var(--lh-snug);
}
html[dir="rtl"] .hero__sub { font-family: var(--arabic-ui); font-style: normal; }

.hero__cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.hero__serial {
  position: absolute;
  bottom: var(--s-7); inset-inline-start: var(--s-7);
  font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 920px) { .hero__serial { position: static; margin-top: var(--s-7); } }

.hero__photo {
  background: var(--sand);
  position: relative;
  display: grid; place-items: center;
  min-height: 440px;
  background-image:
    radial-gradient(60% 80% at 50% 40%, rgba(166,9,0,0.08), transparent 70%),
    linear-gradient(180deg, rgba(31,20,16,0.04), rgba(166,9,0,0.10));
}
.hero__photo .placeholder-text {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); opacity: .55;
  font-size: 14px;
}

/* Page hero (smaller, used on inner pages) */
.page-hero {
  background: var(--cream);
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  margin: var(--s-2) 0 var(--s-3);
  letter-spacing: var(--tracking-tight);
}
.page-hero h1 em { font-style: italic; color: var(--brand); }
.page-hero p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto; font-size: var(--fs-md); }
.breadcrumb {
  font-size: var(--fs-xs); letter-spacing: var(--tracking-nav); text-transform: uppercase; color: var(--ink-soft);
  display: flex; gap: var(--s-2); justify-content: center; align-items: center;
  margin-bottom: var(--s-3);
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .4; }

/* ==================================================================
   BUNDLE FEATURE (Diaspora-style "starter pack")
   ================================================================== */
.bundle { background: var(--ink); color: var(--cream); }
.bundle__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 600px;
}
@media (max-width: 920px) { .bundle__inner { grid-template-columns: 1fr; } }
.bundle__photo {
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(166,9,0,0.4), transparent 60%),
    linear-gradient(135deg, #2A1A12, #1A0E08);
  display: grid; place-items: center;
  color: rgba(251,246,236,0.4);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  min-height: 440px;
}
.bundle__copy {
  padding: var(--s-9) var(--s-7);
  display: flex; flex-direction: column; justify-content: center;
}
.bundle__copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  margin: 0 0 var(--s-4);
}
.bundle__copy h2 em { font-style: italic; color: var(--brand-soft); }
.bundle__copy p { color: rgba(251,246,236,0.78); max-width: 42ch; margin: 0 0 var(--s-5); font-size: 16px; }
.bundle__list { list-style: none; padding: 0; margin: 0 0 var(--s-6); }
.bundle__list li {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid rgba(251,246,236,0.1);
  font-size: 15px;
  color: rgba(251,246,236,0.92);
}
.bundle__list li::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.bundle__price {
  display: flex; align-items: baseline; gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.bundle__price .now { font-family: var(--serif); font-size: 36px; font-weight: 600; color: var(--cream); }
.bundle__price .was { color: rgba(251,246,236,0.5); text-decoration: line-through; font-size: 18px; }
.bundle__price .save {
  background: var(--brand); color: var(--cream);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* ==================================================================
   CATEGORIES
   ================================================================== */
.cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 720px) { .cats { grid-template-columns: 1fr; } }
.cat {
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  display: flex; flex-direction: column;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cat__img {
  aspect-ratio: 16/10;
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(166,9,0,0.10), transparent 70%),
    var(--sand);
  display: grid; place-items: center;
  color: var(--ink-soft);
  font-family: var(--serif); font-style: italic; font-size: 13px;
}
.cat--mix .cat__img {
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(176,112,32,0.18), transparent 70%),
    var(--oat);
}
.cat__body { padding: var(--s-6); }
.cat__body h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 0 0 var(--s-2); color: var(--ink); }
.cat__body p { margin: 0 0 var(--s-4); color: var(--ink-soft); font-size: 14px; }
.cat__link { color: var(--brand); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.cat__link { transition: gap var(--dur-base) var(--ease); }
.cat:hover .cat__link { gap: 12px; }

/* ==================================================================
   PRODUCTS
   ================================================================== */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  /* Allow tracks to shrink below content min-width so cards never
     blow out the parent column on narrow viewports. */
  min-width: 0;
}
.products > * { min-width: 0; }
@media (max-width: 1080px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .products { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); } }

.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.product__img {
  aspect-ratio: 1/1;
  background: var(--oat);          /* unified — etiquette PNGs blend, emoji fallbacks read clearly */
  position: relative;
  display: grid; place-items: center;
  color: var(--ink-soft);
  font-family: var(--serif); font-style: italic; font-size: var(--fs-xs);
}
.product__wish {
  position: absolute; top: var(--s-2); inset-inline-end: var(--s-2);
  width: 34px; height: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.product__wish:hover { color: var(--brand); border-color: var(--brand); }
.product__badge {
  position: absolute; top: var(--s-2); inset-inline-start: var(--s-2);
  background: var(--ink); color: var(--cream);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--tracking-nav);
  padding: 4px var(--s-2); border-radius: var(--r-sm);
}
.product__badge--out { background: var(--ink-soft); }
.product__badge--new { background: var(--brand); }
.product__body { padding: var(--s-4) var(--s-5) var(--s-5); flex: 1; display: flex; flex-direction: column; }
.product__cat { font-size: 11px; letter-spacing: var(--tracking-nav); text-transform: uppercase; color: var(--ink-soft); margin: 0 0 var(--s-1); }
.product__name { font-family: var(--serif); font-weight: 600; font-size: var(--fs-lg); margin: 0; color: var(--ink); }
.product__row { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-4); }
.product__price { font-weight: 700; font-size: var(--fs-base); color: var(--ink); }
.product__add {
  color: var(--brand);
  font-weight: 600; font-size: var(--fs-sm);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--brand);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.product__add:hover { background: var(--brand); color: var(--cream); }

/* ==================================================================
   MISSION / EDITORIAL SPLIT
   ================================================================== */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 920px) { .editorial { grid-template-columns: 1fr; gap: var(--s-6); } }
.editorial--reverse > *:first-child { order: 2; }
@media (max-width: 920px) { .editorial--reverse > *:first-child { order: 0; } }
.editorial__photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(31,20,16,0.05), rgba(31,20,16,0.18)),
    var(--oat);
  box-shadow: var(--shadow-2);
  display: grid; place-items: center;
  color: var(--ink-soft);
  font-family: var(--serif); font-style: italic; font-size: 13px;
}
.editorial__text h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
}
.editorial__text h2 em { font-style: italic; color: var(--brand); }
.editorial__text p { color: var(--ink-soft); font-size: 17px; max-width: 50ch; margin: 0 0 var(--s-4); line-height: 1.6; }
.pull-quote {
  font-family: var(--arabic-display);
  color: var(--brand);
  font-size: clamp(22px, 2.5vw, 32px);
  direction: rtl;
  text-align: start;
  margin: var(--s-5) 0;
  line-height: 1.4;
}

/* ==================================================================
   STORY BANDEAU — full-bleed dark with overlay text
   ================================================================== */
.story-bleed {
  position: relative;
  min-height: 70vh;
  display: grid; place-items: center;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(15,8,5,0.55), rgba(15,8,5,0.85)),
    radial-gradient(60% 80% at 30% 30%, rgba(166,9,0,0.25), transparent 60%),
    #1a0e08;
  text-align: center;
  padding: var(--s-10) var(--s-5);
}
.story-bleed::before {
  content: "[ Photo lifestyle : grand-mère / mortier / médina ]";
  position: absolute;
  bottom: var(--s-4); inset-inline-end: var(--s-5);
  font-size: 11px; opacity: .35;
  font-style: italic;
  letter-spacing: .1em;
}
.story-bleed h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-inline: auto;
}
.story-bleed h2 em { font-style: italic; color: var(--brand-soft); }
.story-bleed p { max-width: 50ch; margin: 0 auto var(--s-5); color: rgba(251,246,236,0.85); font-size: 17px; }

/* ==================================================================
   EDUCATION CARDS
   ================================================================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 920px) { .edu-grid { grid-template-columns: 1fr; } }
.edu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.edu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.edu-card__img {
  aspect-ratio: 16/10;
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(166,9,0,0.10), transparent 70%),
    var(--oat);
  display: grid; place-items: center;
  color: var(--ink-soft);
  font-family: var(--serif); font-style: italic; font-size: 13px;
}
.edu-card__body { padding: var(--s-5); }
.edu-card__cat {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
  margin: 0 0 var(--s-2);
}
.edu-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 var(--s-2);
}
.edu-card__excerpt { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ==================================================================
   NEWSLETTER
   ================================================================== */
.newsletter { background: var(--brand); color: var(--cream); }
.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  padding: var(--s-9) 0;
}
@media (max-width: 720px) { .newsletter__inner { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-8) 0; } }
.newsletter h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
}
.newsletter p { color: rgba(251,246,236,0.85); margin: 0; max-width: 42ch; font-size: 16px; }
.newsletter__form {
  display: flex; gap: var(--s-2);
  background: rgba(251,246,236,0.12);
  border: 1px solid rgba(251,246,236,0.35);
  border-radius: var(--r-pill);
  padding: 6px;
}
.newsletter__form input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--cream);
  padding: 12px 18px;
  font: inherit;
  outline: none;
}
.newsletter__form input::placeholder { color: rgba(251,246,236,0.6); }
.newsletter__form button {
  background: var(--cream);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--dur-fast) var(--ease);
}
.newsletter__form button:hover { background: var(--paper); }

/* ==================================================================
   TRUST STRIP
   ================================================================== */
.trust { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s-7) 0; }
.trust__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 720px) { .trust__row { grid-template-columns: 1fr; } }
.trust-item { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-2) 0; }
.trust-item__ico {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--brand);
  flex-shrink: 0;
}
.trust-item h4 { font-family: var(--serif); font-weight: 600; margin: 0; font-size: 17px; color: var(--ink); }
.trust-item p { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }

/* ==================================================================
   FOOTER
   ================================================================== */
footer {
  background: var(--ink);
  color: rgba(251,246,236,0.7);
  padding: var(--s-9) 0 var(--s-5);
  font-size: 14px;
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
}
@media (max-width: 840px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
footer .brand-mini span { color: var(--cream); }
footer h5 { color: var(--cream); font-family: var(--serif); font-weight: 600; font-size: 15px; margin: 0 0 var(--s-3); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer a:hover { color: var(--brand-soft); }
.footer__bottom {
  border-top: 1px solid rgba(251,246,236,0.08);
  margin-top: var(--s-7); padding-top: var(--s-4);
  display: flex; justify-content: space-between;
  font-size: 12px;
  opacity: .6;
}
@media (max-width: 540px) { .footer__bottom { flex-direction: column; gap: var(--s-2); text-align: center; } }

/* ==================================================================
   WHATSAPP FAB
   ================================================================== */
.wa-fab {
  position: fixed;
  bottom: 20px; inset-inline-end: 20px;
  width: 54px; height: 54px;
  border-radius: var(--r-pill);
  background: #25D366;
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 40;
  transition: transform var(--dur-fast) var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }

/* ==================================================================
   CATALOGUE PAGE — filters + grid
   ================================================================== */
.catalogue-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-7);
  /* Only vertical padding — preserve .wrap's horizontal inset (24px on each side). */
  padding-top: var(--s-8);
  padding-bottom: var(--s-8);
}
@media (max-width: 920px) {
  .catalogue-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    /* Only override vertical padding — preserve .wrap's horizontal padding. */
    padding-top: var(--s-5);
    padding-bottom: var(--s-5);
  }
}
.filters { position: sticky; top: 90px; align-self: start; }
@media (max-width: 920px) {
  /* On mobile, the filter sidebar should stack cleanly above the products,
     not stick (sticky + tall content causes the toolbar/products to render
     over the filter labels on iPhone). */
  .filters {
    position: static;
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line);
  }
  /* The Catégorie filter group is redundant with the pill-tabs above the
     grid (same 4 categories), so hide it on mobile to save scroll. */
  .filters .filters__group:first-child { display: none; }
}
.filters h3 {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft);
  margin: 0 0 var(--s-3); padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.filters__group { margin-bottom: var(--s-6); }
.filters__group label {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
}
.filters__group label:hover { color: var(--brand); }
.filters__count { color: var(--ink-soft); font-size: 12px; margin-inline-start: auto; }

.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-5); padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: var(--s-3);
}
.toolbar__count { font-size: 14px; color: var(--ink-soft); }
.toolbar select {
  font: inherit;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 13px;
}
.pagination { display: flex; gap: var(--s-2); justify-content: center; margin-top: var(--s-7); }
.pagination button {
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper); font-weight: 600; font-size: 13px;
  display: grid; place-items: center;
}
.pagination button.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pagination button:hover:not(.is-active) { border-color: var(--brand); color: var(--brand); }

/* ==================================================================
   PRODUCT DETAIL PAGE
   ================================================================== */
.pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  padding: var(--s-8) 0;
  align-items: start;
}
@media (max-width: 920px) { .pdp { grid-template-columns: 1fr; gap: var(--s-6); } }

.pdp__gallery { display: block; }
.pdp__gallery--with-thumbs { display: grid; grid-template-columns: 80px 1fr; gap: var(--s-3); }
@media (max-width: 540px) { .pdp__gallery--with-thumbs { grid-template-columns: 1fr; } }
.pdp__thumbs { display: grid; gap: var(--s-2); }
@media (max-width: 540px) { .pdp__thumbs { grid-template-columns: repeat(4, 1fr); grid-auto-flow: column; } }
.pdp__thumb {
  aspect-ratio: 1/1;
  background:
    radial-gradient(70% 70% at 50% 60%, rgba(166,9,0,0.06), transparent 70%),
    var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.pdp__thumb.is-active { border-color: var(--brand); border-width: 2px; }
.pdp__main {
  aspect-ratio: 1/1;
  width: 100%;
  background:
    radial-gradient(70% 70% at 50% 50%, var(--brand-08), transparent 70%),
    var(--oat);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--ink-soft);
  font-family: var(--serif); font-style: italic;
  overflow: hidden;
}
.pdp__main img { width: 90%; height: 90%; object-fit: contain; }

.pdp__info h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: var(--s-2) 0 var(--s-3);
  letter-spacing: -0.01em;
}
.pdp__cat {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
}
.pdp__price-row { display: flex; align-items: baseline; gap: var(--s-3); margin: var(--s-4) 0 var(--s-5); }
.pdp__price { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--ink); }
.pdp__weight { font-size: 13px; color: var(--ink-soft); }
.pdp__short { color: var(--ink-soft); font-size: 16px; max-width: 50ch; margin: 0 0 var(--s-5); line-height: 1.6; }

.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  overflow: hidden;
}
.qty-stepper button { width: 38px; height: 42px; font-size: 18px; }
.qty-stepper button:hover { background: var(--sand); }
.qty-stepper input { width: 44px; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 600; }

.pdp__actions { display: flex; gap: var(--s-3); align-items: center; margin: var(--s-5) 0; }

.pdp__meta { display: grid; gap: var(--s-2); margin: var(--s-5) 0; padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp__meta-item { display: flex; gap: var(--s-3); font-size: 14px; color: var(--ink-soft); }
.pdp__meta-item strong { color: var(--ink); min-width: 110px; }

.tabs { margin-top: var(--s-5); }
.tabs__bar {
  display: flex; gap: var(--s-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-4);
}
.tabs__bar button {
  padding: 12px 0;
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tabs__bar button.is-active { color: var(--brand); border-color: var(--brand); }
.tabs__panel { display: none; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.tabs__panel.is-active { display: block; }
.tabs__panel ul { padding-inline-start: 18px; }

/* ==================================================================
   ABOUT PAGE — long-form editorial
   ================================================================== */
.about-hero {
  background: var(--cream);
  padding: var(--s-10) 0 var(--s-8);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.about-hero img.brand-logo { width: 120px; margin: 0 auto var(--s-5); }
.about-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
  max-width: 18ch;
  margin-inline: auto;
}
.about-hero h1 em { font-style: italic; color: var(--brand); }
.about-hero .ar-quote {
  font-family: var(--arabic-display); color: var(--brand);
  font-size: clamp(24px, 3vw, 36px);
  margin-top: var(--s-3); direction: rtl;
}

.long-form { max-width: 720px; margin: 0 auto; padding: var(--s-9) var(--s-5); font-size: 17px; line-height: 1.75; color: var(--ink); }
.long-form h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 36px); margin: var(--s-7) 0 var(--s-3); }
.long-form h2 em { font-style: italic; color: var(--brand); }
.long-form p { margin: 0 0 var(--s-4); color: var(--ink-soft); }
.long-form .lead { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); }
.long-form figure { margin: var(--s-7) 0; }
.long-form figure .ph {
  aspect-ratio: 4/3;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(166,9,0,0.10), transparent 60%),
    var(--oat);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--ink-soft);
  font-family: var(--serif); font-style: italic; font-size: 13px;
}
.long-form figcaption { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: var(--s-2); letter-spacing: .1em; text-transform: uppercase; }

.values {
  background: var(--sand);
  padding: var(--s-9) 0;
}
.values__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
}
@media (max-width: 920px) { .values__grid { grid-template-columns: 1fr; } }
.value h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 600;
  margin: 0 0 var(--s-2);
}
.value h3 .num {
  display: inline-block; color: var(--brand); font-style: italic; font-weight: 500;
  margin-inline-end: var(--s-2);
}
.value p { color: var(--ink-soft); margin: 0; }

/* ==================================================================
   REVEAL ANIMATION
   ================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 80ms; }
.reveal--d2 { transition-delay: 160ms; }
.reveal--d3 { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==================================================================
   RTL ADJUSTMENTS
   ================================================================== */
html[dir="rtl"] .section__head h2,
html[dir="rtl"] .section__head p,
html[dir="rtl"] .editorial__text h2,
html[dir="rtl"] .editorial__text p,
html[dir="rtl"] .story-bleed h2,
html[dir="rtl"] .story-bleed p,
html[dir="rtl"] .product__name,
html[dir="rtl"] .product__cat,
html[dir="rtl"] .cat__body h3,
html[dir="rtl"] .cat__body p,
html[dir="rtl"] .trust-item h4,
html[dir="rtl"] .trust-item p,
html[dir="rtl"] footer h5,
html[dir="rtl"] footer li,
html[dir="rtl"] .hero__sub,
html[dir="rtl"] .bundle__copy h2,
html[dir="rtl"] .bundle__copy p,
html[dir="rtl"] .bundle__list li,
html[dir="rtl"] .newsletter h2,
html[dir="rtl"] .newsletter p,
html[dir="rtl"] .edu-card__title,
html[dir="rtl"] .edu-card__excerpt,
html[dir="rtl"] .pdp__info h1,
html[dir="rtl"] .pdp__short,
html[dir="rtl"] .tabs__panel,
html[dir="rtl"] .long-form,
html[dir="rtl"] .long-form h2,
html[dir="rtl"] .long-form p,
html[dir="rtl"] .about-hero h1,
html[dir="rtl"] .value h3,
html[dir="rtl"] .value p,
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .page-hero p {
  font-family: var(--arabic-ui);
  font-style: normal;
}

/* ==================================================================
   v4 — Diaspora-structure / Lellathom-retro additions
   ================================================================== */

/* --- Topbar v4 (cream with red brand) --- */
.topbar--v4 { background: var(--cream); border-bottom: 1px solid var(--line); }
.topbar--v4 .nav a { color: var(--heading); }
.topbar--v4 .nav a:hover, .topbar--v4 .nav a.is-active { color: var(--brand); }

/* --- Mega menu (Diaspora-style 3-column with emoji-prefixed items) --- */
.has-mega { position: relative; }
.has-mega > a { display: inline-flex; align-items: center; gap: 4px; }
.has-mega > a::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px,-1px);
  margin-inline-start: 4px;
  transition: transform var(--dur-fast) var(--ease);
}
.has-mega.is-open > a::after { transform: rotate(-135deg); }
.mega {
  position: fixed;
  top: 96px;                        /* announce (32) + topbar (72ish) — opens just below the topbar */
  left: 0; right: 0;
  width: 100vw;
  transform: translateY(-8px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  padding: var(--s-7) 0 var(--s-6);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility 0s var(--dur-base);
  z-index: 60;
}
.has-mega.is-open .mega {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility 0s;
}
.mega__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-7);
  padding: 0 var(--s-7) var(--s-5);
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
/* Épices simples column has 14 items — let it use 2 sub-columns so nothing scrolls */
.mega__col--simples ul {
  column-count: 2;
  column-gap: var(--s-5);
}
.mega__col--simples li { break-inside: avoid; }
.mega__col h4 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: var(--fs-xs);
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.mega__col ul { list-style: none; padding: 0; margin: 0; }
.mega__col li { padding: 0; }
.mega__col li + li { margin-top: var(--s-1); }
.mega__col a {
  display: block;
  padding: var(--s-2) 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-md);
  letter-spacing: var(--tracking-base);
  transition: color var(--dur-fast) var(--ease), padding-inline-start var(--dur-fast) var(--ease);
  position: relative;
}
.mega__col a:hover {
  color: var(--brand);
  padding-inline-start: var(--s-2);
}
.mega__col a:hover::before {
  opacity: 1; transform: translateX(0);
}
.mega__col a::before {
  content: "→";
  position: absolute; inset-inline-start: 0;
  top: 50%; transform: translate(-8px, -50%);
  color: var(--brand);
  font-size: var(--fs-sm);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.mega__col__more a {
  font-size: var(--fs-sm);
  color: var(--brand);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: var(--tracking-buttons);
}
.mega__col__more a::before { display: none; }

.mega__cta-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s-5);
  gap: var(--s-4);
}
.mega__cta-row p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: var(--fs-md);
}
/* Higher-specificity selector beats .nav a's inherited dark color */
.nav .mega__cta,
.has-mega .mega__cta {
  display: inline-block;
  margin-top: var(--s-5);
  background: var(--brand);
  color: var(--cream);
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: var(--tracking-buttons);
  font-size: var(--fs-sm);
  text-transform: none;
  text-align: center;
  transition: background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav .mega__cta:hover,
.has-mega .mega__cta:hover { background: var(--brand-deep); color: var(--cream); }

/* --- Hero v4 (brand illustration + slogan over warm cream) --- */
.hero--v4 {
  background:
    radial-gradient(80% 90% at 100% 0%, var(--butter) 0%, transparent 55%),
    radial-gradient(60% 80% at 0% 100%, #F8DDB0 0%, transparent 60%),
    var(--cream);
  position: relative;
  overflow: hidden;
}
.hero--v4 .hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--s-6);
  min-height: clamp(560px, 70vh, 760px);
  align-items: center;
  padding: var(--s-8) 0;
}
@media (max-width: 920px) { .hero--v4 .hero__inner { grid-template-columns: 1fr; padding: var(--s-6) 0 var(--s-7); min-height: 0; } }
.hero--v4 .hero__copy { padding: 0 var(--s-5); position: relative; }
.hero--v4 .hero-logo { width: clamp(80px, 9vw, 120px); margin-bottom: var(--s-5); }
.hero--v4 .hero__slogan {
  font-family: var(--arabic-display); font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 1.2;                  /* was 1.05 — Amiri reads better with breathing */
  color: var(--brand);
  direction: rtl; text-align: start;
  margin: 0 0 var(--s-4);
}
.hero--v4 .hero__sub {
  font-family: var(--serif); font-style: italic;
  font-size: var(--fs-xl);
  color: var(--heading);
  max-width: 30ch;
  margin: 0 0 var(--s-6);
}
html[dir="rtl"] .hero--v4 .hero__sub { font-family: var(--arabic-ui); font-style: normal; }
.hero--v4 .hero__visual {
  position: relative;
  display: grid; place-items: center;
  padding: var(--s-5);
}
.hero--v4 .hero__visual img.crate {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 30px 40px rgba(74,27,14,0.18));
}
.hero--v4 .pepper-bunch {
  position: absolute;
  top: 0; inset-inline-end: 6%;
  width: 110px;
  transform: rotate(8deg);
  filter: drop-shadow(0 10px 20px var(--brand-25));
  pointer-events: none;
}
@media (max-width: 920px) { .hero--v4 .pepper-bunch { width: 80px; inset-inline-end: 4%; top: -10px; } }
.hero--v4 .stars-row {
  display: flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.hero--v4 .stars { color: #E2A23B; letter-spacing: 1px; }

/* --- Trust strip v4 (4-column, illustrated) --- */
.trust--v4 {
  background: var(--heading);     /* deep brown band */
  border: 0;
  padding: var(--s-6) 0;
  position: relative;
  color: var(--cream);
}
.trust--v4 .trust__row {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 920px) { .trust--v4 .trust__row { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
@media (max-width: 600px) { .trust--v4 .trust__row { grid-template-columns: 1fr; } }
.trust--v4 .trust-item__ico {
  border: 0; background: transparent;
  width: 44px; height: 44px;
  font-size: 28px;
  display: grid; place-items: center;
  color: var(--cream);            /* SVG icons inherit currentColor */
}
.trust--v4 .trust-item h4 { font-family: var(--serif); color: var(--cream); font-weight: 600; }
.trust--v4 .trust-item p { color: var(--cream-78); }

/* --- Filter pill tabs (Diaspora-style) --- */
.pill-tabs {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-bottom: var(--s-5);
}
@media (max-width: 560px) {
  /* On narrow phones, scroll horizontally instead of wrapping into tall stacks
     that overlap with the filters above. */
  .pill-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .pill-tabs::-webkit-scrollbar { display: none; }
  .pill-tab { flex-shrink: 0; }
}
.pill-tab {
  padding: var(--s-2) var(--s-5);
  border: 1px solid var(--brand);
  border-radius: var(--r-pill);
  color: var(--brand);
  background: transparent;
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: var(--tracking-buttons);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.pill-tab:hover { background: var(--brand-08); }
.pill-tab.is-active { background: var(--brand); color: var(--cream); }

/* --- Product card v4 (real label img, ribbon corner, full-width CTA) --- */
.product--v4 {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.product--v4:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.product--v4 .product__img {
  aspect-ratio: 1/1;
  background: var(--oat);
  background-image:
    radial-gradient(70% 70% at 50% 60%, var(--brand-08), transparent 70%);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.product--v4 .product__img img {
  width: 86%; height: 86%; object-fit: contain;
}
/* Editorial monogram placeholder for products without photo */
.product__monogram {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(72px, 9vw, 120px);
  color: var(--brand);
  opacity: 0.32;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
  text-align: center;
}
.product__monogram::after {
  content: "";
  display: block;
  width: 36px; height: 1px;
  background: var(--brand);
  opacity: 0.5;
  margin: var(--s-2) auto 0;
}

.ribbon {
  position: absolute;
  top: 0; inset-inline-start: 0;
  background: var(--olive);
  color: var(--cream);
  font-size: 11px; font-weight: 700;
  letter-spacing: var(--tracking-nav); text-transform: uppercase;
  padding: 6px var(--s-3) 6px var(--s-3);
  border-radius: 0 0 var(--r-sm) 0;
  box-shadow: var(--shadow-1);
  z-index: 2;
}
.ribbon--out { background: var(--ink-soft); }
.ribbon--limited { background: var(--terracotta); }
.product--v4 .product__body {
  padding: var(--s-4) var(--s-5) 0;
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 168px;
}
.product--v4 .product__name {
  font-family: var(--serif);
  color: var(--heading);
  font-weight: 600;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  margin: 0 0 var(--s-2);
}
.product--v4 .product__cat {
  font-size: 11px; letter-spacing: var(--tracking-nav); text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 var(--s-2);
}
.product--v4 .product__short { color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-snug); margin: 0 0 var(--s-3); flex: 1; }
.product--v4 .product__price-row {
  display: flex; align-items: baseline; gap: var(--s-2);
  margin-top: auto;
  padding-bottom: var(--s-3);
}
.product--v4 .product__price { color: var(--ink); font-weight: 700; font-size: var(--fs-lg); }
/* CTA inset from card edges so it never touches the rounded border */
.product--v4 .product__cta {
  display: block;
  width: calc(100% - var(--s-5) * 2);
  margin: 0 var(--s-5) var(--s-5);
  padding: var(--s-3) var(--s-4);
  background: var(--brand);
  color: var(--cream);
  text-align: center;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-buttons);
  text-transform: none;
  transition: background var(--dur-fast) var(--ease);
  border: 0;
  cursor: pointer;
}
.product--v4 .product__cta:hover { background: var(--brand-deep); }
.product--v4 .product__cta--wait { background: var(--terracotta); }
.product--v4 .product__cta--wait:hover { background: #A23914; }

/* --- "Toutes nos épices" emoji-list section (Diaspora-style mega list) --- */
.spice-index {
  background: var(--cream);
  padding: var(--s-9) 0;
}
.spice-index__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
  margin-top: var(--s-6);
}
@media (max-width: 920px) { .spice-index__cols { grid-template-columns: 1fr; gap: var(--s-5); } }
.spice-col h3 {
  font-family: var(--serif);
  color: var(--heading);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-strong);
}
.spice-col ul { list-style: none; padding: 0; margin: 0; }
.spice-col li { padding: 7px 0; }
.spice-col a {
  display: flex; align-items: center; gap: 12px;
  color: var(--brand);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--dur-fast) var(--ease);
}
.spice-col a:hover { color: var(--brand-deep); }
.spice-col .emoji { font-size: 20px; line-height: 1; flex-shrink: 0; }

/* --- Lifestyle photo bandeau (full-bleed dish hero) --- */
.dish-bleed {
  position: relative;
  min-height: 60vh;
  display: grid; place-items: center;
  color: var(--cream);
  text-align: center;
  padding: var(--s-10) var(--s-5);
  background-color: var(--brand);
  background-position: center;
  background-size: cover;
  background-repeat: repeat;
}
.dish-bleed::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(122,7,0,0.35), rgba(122,7,0,0.55));
}
.dish-bleed > .wrap { position: relative; z-index: 2; }
.dish-bleed h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin: 0 0 var(--s-4);
  max-width: 22ch;
  margin-inline: auto;
}
.dish-bleed h2 em { font-style: italic; color: var(--butter); }
.dish-bleed p { max-width: 50ch; margin: 0 auto var(--s-5); color: rgba(251,246,236,0.9); font-size: 17px; }

/* --- Cart drawer --- */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(31,20,16,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease), visibility 0s var(--dur-base);
  z-index: 70;
}
.cart-overlay.is-open {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-base) var(--ease), visibility 0s;
}
.cart {
  position: fixed; top: 0;
  inset-inline-end: 0;
  width: min(420px, 92vw);
  height: 100dvh;
  background: var(--cream);
  z-index: 71;
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(31,20,16,0.2);
}
html[dir="rtl"] .cart { transform: translateX(-100%); inset-inline-end: 0; }
.cart.is-open { transform: translateX(0); }
.cart__head {
  background: var(--brand);
  color: var(--cream);
  padding: var(--s-5) var(--s-5) var(--s-4);
}
.cart__head-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-3);
}
.cart__head h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; }
.cart__close { color: var(--cream); font-size: 22px; line-height: 1; }
.cart__progress {
  font-size: 12px; opacity: .85;
  margin-bottom: 6px;
}
.cart__progress-bar {
  height: 6px;
  background: rgba(251,246,236,0.25);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.cart__progress-fill {
  height: 100%;
  width: 60%;
  background: var(--butter);
  border-radius: var(--r-pill);
}
.cart__items { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-5); }
.cart-item { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.cart-item__img {
  width: 64px; height: 64px;
  background: var(--oat);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: grid; place-items: center;
  overflow: hidden;
}
.cart-item__img img { width: 90%; height: 90%; object-fit: contain; }
.cart-item__body { flex: 1; }
.cart-item__name { font-family: var(--serif); color: var(--heading); font-weight: 600; font-size: 15px; margin: 0; }
.cart-item__price { color: var(--ink); font-weight: 600; font-size: 14px; margin-top: 2px; }
.cart-item__qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  margin-top: 6px;
}
.cart-item__qty button { width: 28px; height: 28px; font-size: 14px; }
.cart-item__qty span { padding: 0 10px; font-size: 13px; font-weight: 600; }
.cart__foot { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); background: var(--paper); }
.cart__sub-row { display: flex; justify-content: space-between; margin-bottom: var(--s-3); font-size: 14px; }
.cart__sub-row.total { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--heading); }
.cart__checkout {
  width: 100%;
  background: var(--brand); color: var(--cream);
  padding: 16px;
  border-radius: var(--r-pill);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
  display: flex; justify-content: center; align-items: center; gap: var(--s-2);
  transition: background var(--dur-fast) var(--ease);
}
.cart__checkout:hover { background: var(--brand-deep); }
.cart__ship-note { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: var(--s-2); }

/* --- Decorative pattern bands (illustrated spice motifs) --- */
.spice-band {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  gap: var(--s-7);
  height: var(--s-9);
  overflow: hidden;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-md);
  letter-spacing: var(--tracking-base);
  background-size: cover;
  background-repeat: repeat-x;
  background-position: center;
}
.spice-band__inner {
  display: flex; align-items: center; gap: var(--s-7);
  padding: var(--s-3) var(--s-5);
  background: var(--cream);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
}
.spice-band--red {
  background-image: url("assets/pattern-red.png");
  background-color: var(--brand);
  color: var(--cream);
}
.spice-band--red .spice-band__inner {
  background: var(--brand);
  color: var(--cream);
  box-shadow: none;
  border: 1px solid var(--cream-40);
}
.spice-band--cream {
  background-image: url("assets/pattern-cream.png");
  background-color: var(--paper);
  color: var(--heading);
}
.spice-band__dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex-shrink: 0; opacity: .6; }
@media (max-width: 720px) {
  .spice-band { height: var(--s-8); gap: var(--s-3); font-size: var(--fs-sm); }
  .spice-band__inner { gap: var(--s-3); padding: var(--s-2) var(--s-4); }
  .spice-band__inner .spice-band__hide-sm { display: none; }
}

/* Legacy yellow strip — kept in case any page still references it. */
.veil {
  position: relative;
  height: var(--s-7);
  background: var(--butter);
  display: flex; justify-content: center; align-items: center; gap: var(--s-7);
  font-size: var(--fs-sm); color: var(--brand); font-family: var(--serif); font-style: italic;
  overflow: hidden;
}
.veil .dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; flex-shrink: 0; }
@media (max-width: 720px) { .veil { gap: var(--s-3); font-size: var(--fs-xs); padding: 0 var(--s-3); } }

/* RTL fixes for v4 additions */
html[dir="rtl"] .hero--v4 .hero__sub,
html[dir="rtl"] .product--v4 .product__name,
html[dir="rtl"] .product--v4 .product__short,
html[dir="rtl"] .spice-col h3,
html[dir="rtl"] .spice-col a,
html[dir="rtl"] .mega__col h4,
html[dir="rtl"] .dish-bleed h2,
html[dir="rtl"] .dish-bleed p,
html[dir="rtl"] .cart-item__name,
html[dir="rtl"] .veil {
  font-family: var(--arabic-ui);
  font-style: normal;
}

/* ----- Wishlist (favoris) ----- */
button.product__wish {
  background: var(--paper);
  cursor: pointer;
  padding: 0;
}
.product__wish.is-fav,
button[data-toggle-wishlist].is-fav {
  color: var(--brand);
  border-color: var(--brand);
}
.product__wish.is-fav svg,
button[data-toggle-wishlist].is-fav svg {
  fill: var(--brand);
}
@keyframes heartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
[data-toggle-wishlist].is-pop { animation: heartPop 280ms ease; }

/* Empty wishlist state */
.fav-empty {
  text-align: center;
  padding: var(--s-9) var(--s-5);
  max-width: 520px;
  margin: 0 auto;
}
.fav-empty .fav-empty__heart {
  font-size: 64px;
  color: var(--line-strong);
  margin-bottom: var(--s-4);
}
.fav-empty h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--heading);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 var(--s-3);
}
.fav-empty p { color: var(--ink-soft); margin: 0 0 var(--s-5); }

/* ----- Search overlay (public site) ----- */
.search-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }
.search-overlay__backdrop {
  position: absolute; inset: 0;
  background: var(--ink-55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.search-overlay__panel {
  position: relative;
  margin: 8vh auto 0;
  width: min(640px, 92vw);
  max-height: 76vh;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform var(--dur-base) var(--ease);
}
.search-overlay.is-open .search-overlay__panel { transform: translateY(0); }
.search-overlay__head {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.search-overlay__icon { color: var(--ink-soft); flex-shrink: 0; }
.search-overlay__input {
  flex: 1;
  border: 0; background: transparent;
  font: inherit;
  font-family: var(--serif);
  font-size: var(--fs-xl);
  color: var(--ink);
  padding: var(--s-2) 0;
}
.search-overlay__input:focus { outline: none; }
.search-overlay__input::placeholder { color: var(--ink-soft); opacity: 0.6; font-style: italic; }
.search-overlay__close {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--ink-soft);
  font-size: 22px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.search-overlay__close:hover { background: var(--sand); color: var(--ink); }
.search-overlay__status {
  padding: var(--s-3) var(--s-5);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.search-overlay__list {
  list-style: none; padding: 0; margin: 0;
  overflow-y: auto;
  flex: 1;
}
.search-overlay__list li + li { border-top: 1px solid var(--line); }
.search-overlay__list a {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease);
}
.search-overlay__list a:hover { background: var(--sand); }
.search-result__img {
  width: 56px; height: 56px;
  background: var(--oat);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.search-result__img img { width: 90%; height: 90%; object-fit: contain; }
.search-result__monogram {
  font-family: var(--serif); font-style: italic;
  color: var(--brand); opacity: 0.5;
  font-size: 28px; line-height: 1;
}
.search-result__body { flex: 1; min-width: 0; }
.search-result__name { font-family: var(--serif); font-weight: 600; color: var(--heading); font-size: var(--fs-md); display: block; }
.search-result__name mark { background: var(--butter); color: inherit; padding: 0 2px; border-radius: 2px; }
.search-result__meta { font-size: var(--fs-xs); letter-spacing: var(--tracking-nav); text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: 2px; }
.search-result__price { font-family: var(--serif); font-weight: 600; color: var(--ink); flex-shrink: 0; }

