/* ily — Pâtisserie · Agadir
   Rose gold + cream satin, kraft, chocolate. Logical properties throughout (RTL-ready). */

:root {
  --rose-1: #E3C1B9;
  --rose-2: #CA9992;
  --rose-3: #C28F88;
  --blush: #F3DEDA;
  --cream: #FBF4F0;
  --paper: #FFFBF8;
  --choc: #33221E;
  --muted: #6E5A55;
  --rose-text: #8E5049;
  --noir: #141110;
  --gold: #D4B26E;
  --wa: #12704A;
  --ganache: #24150F;

  --satin-x: linear-gradient(90deg, #C28F88 0%, #F7E6DF 22%, #CA9992 46%, #FFF4EE 68%, #E3C1B9 84%, #C28F88 100%);
  --satin-y: linear-gradient(180deg, #C28F88 0%, #EBD2CA 20%, #FFF6F0 46%, #F3DEDA 62%, #CA9992 88%, #B98078 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Noto Naskh Arabic", "DM Sans", serif;
  --hand: "Caveat", "Segoe Script", cursive;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --line: rgba(142, 80, 73, .18);
  --shadow: 0 1px 2px rgba(51, 34, 30, .06), 0 14px 32px -18px rgba(51, 34, 30, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
html.intro-running { overflow: hidden; }
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--choc);
  font: 400 1rem/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.has-bar { padding-block-end: 92px; }

html[lang="ar"] body { font-family: var(--arabic); line-height: 1.75; }

img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--rose-text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
html[lang="ar"] :is(h1, h2, h3) { font-family: var(--arabic); font-weight: 700; line-height: 1.35; letter-spacing: 0; }
p { margin: 0; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--rose-text); outline-offset: 3px; }
#main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 60;
  background: var(--choc); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ───────────────────────── Intro: satin ribbon ───────────────────────── */
#intro {
  position: fixed; inset: 0; z-index: 100;
  overflow: hidden; cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none;
  /* failsafe: if the script never runs, never leave a blocking layer */
  animation: intro-failsafe 1ms linear 7s forwards;
}
.no-intro #intro { display: none; }
@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }

.intro-paper {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 46%, rgba(255, 240, 220, .32) 0%, transparent 60%),
    radial-gradient(140% 110% at 50% 50%, rgba(215, 182, 144, .18) 0%, rgba(168, 127, 90, .1) 58%, rgba(120, 82, 52, .38) 100%),
    url("img/gen/kraft.jpg") center / cover #C59D76;
  will-change: opacity, transform;
}
.intro-paper::after {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background:
    radial-gradient(100% 100% at 50% 50%, transparent 55%, rgba(60, 35, 20, .28) 100%);
}
.intro-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-bow {
  position: absolute; left: 50%; top: 50%; width: 300px; height: auto; max-width: none;
  transform: translate(-50%, -44%) scale(0); opacity: 0;
  filter: drop-shadow(0 12px 14px rgba(51, 34, 30, .35));
  will-change: transform, opacity;
}
.intro-seal {
  position: absolute; left: 50%; top: 50%;
  width: 120px; height: 120px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  box-shadow: 0 10px 24px -6px rgba(51, 34, 30, .45), 0 0 0 3px rgba(255, 246, 240, .5);
  will-change: transform, opacity;
}
.intro-hint {
  position: absolute; inset-inline: 0; inset-block-end: calc(28px + env(safe-area-inset-bottom));
  text-align: center; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(51, 34, 30, .72);
  opacity: 0;
}
html[lang="ar"] .intro-hint { letter-spacing: 0; text-transform: none; font-size: .95rem; }

#intro.is-reduced .intro-cv { display: none; }
#intro.is-reduced .intro-seal { opacity: 1; transform: translate(-50%, -50%); }
#intro.is-reduced .intro-bow { opacity: 1; transform: translate(-50%, -44%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #intro .intro-cv { display: none; }
  #intro .intro-seal { opacity: 1; transform: translate(-50%, -50%); }
  #intro .intro-bow { opacity: 1; transform: translate(-50%, -44%); }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scroll-cue i::after, .drop-ribbon::after, .drop-stock .dot, .chip::after { animation: none !important; }
  .card:hover .card-media img { scale: none; }
}

/* ───────────────────────── Top bar ───────────────────────── */
.topbar {
  position: sticky; inset-block-start: 0; z-index: 30;
  background: rgba(251, 244, 240, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-block-end: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--choc); min-height: 44px; border-radius: 999px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 2px 6px -2px rgba(51, 34, 30, .35); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: italic 600 1.75rem/1 var(--serif); }
.brand-sub { font-size: .74rem; letter-spacing: .08em; color: var(--muted); }
html[lang="ar"] .brand-sub { letter-spacing: 0; font-size: .8rem; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(142, 80, 73, .28); background: var(--paper); color: var(--choc);
  transition: background-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--blush); }
.icon-btn:active { transform: scale(.95); }
.lang-btn { font: 600 1.05rem/1 var(--sans); }
.lang-btn:lang(ar) { font: 700 1.25rem/1 var(--arabic); }
.badge {
  position: absolute; inset-block-start: -5px; inset-inline-end: -5px;
  min-width: 21px; height: 21px; padding-inline: 5px; border-radius: 999px;
  background: var(--rose-text); color: #fff; font: 700 .72rem/21px var(--sans); text-align: center;
  box-shadow: 0 0 0 2px var(--cream);
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--choc); color: var(--cream); box-shadow: 0 10px 22px -12px rgba(51, 34, 30, .7); }
.btn-primary:hover { background: #4a322c; }
.btn-ghost { background: transparent; color: var(--rose-text); border-color: rgba(142, 80, 73, .45); }
.btn-ghost:hover { background: var(--blush); }
.btn-gold { background: var(--gold); color: var(--noir); }
.btn-gold:hover { background: #e0c07f; }
.btn-gold:focus-visible { outline-color: var(--gold); }
.btn-cream { background: var(--cream); color: var(--choc); min-height: 46px; padding: 0 18px; }
.btn-wa { background: var(--wa); color: #fff; width: 100%; }
.btn-wa:hover { background: #0e5e3d; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

.btn-rose { background: var(--rose-1); color: var(--ganache); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8); }
.btn-rose:hover { background: #F0D3CC; }
.btn-rose:focus-visible { outline-color: var(--rose-1); }
.linkish { border: 0; background: none; padding: 0 2px; min-height: 44px; color: var(--rose-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ───────────────────────── Shared editorial type ───────────────────────── */
.display {
  font: 600 clamp(2.3rem, 9.5vw, 4.6rem)/.95 var(--serif);
  text-transform: uppercase; letter-spacing: .04em;
}
html[lang="ar"] .display { font: 700 clamp(1.9rem, 7.5vw, 3.2rem)/1.3 var(--arabic); text-transform: none; letter-spacing: 0; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--rose-text); margin-block-end: 12px; }
html[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.sec-head { margin-block-end: 26px; }
.sec-head--center { text-align: center; }
.sec-head .alt { display: inline-block; font: 600 .42em/1 var(--arabic); color: var(--rose-text); margin-inline-start: .3em; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.sec-head .alt:lang(fr) { font: italic 500 .5em/1 var(--serif); }
.sec-head p { margin-block-start: 12px; color: var(--muted); max-width: 52ch; }

/* handwritten annotations */
.note { position: absolute; z-index: 5; display: flex; align-items: flex-end; gap: 2px; margin: 0; font: 700 1.4rem/1 var(--hand); color: var(--rose-text); pointer-events: none; white-space: nowrap; }
html[lang="ar"] .note { font: 600 1.1rem/1.2 var(--arabic); }
.note-arrow { width: 64px; height: 38px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .note-arrow { transform: scaleX(-1); }

/* ───────────────────────── Hero ─────────────────────────
   Phone: promise + CTAs first, then the composition. Desktop: copy left, composition right.
   Composition layers (bottom → top): giant satin word · tape A · back ingredients · arch photo
   · tape B · front ingredients · sticker/note. */
.hero {
  --art-h: min(120vw, 560px);
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  padding-block: 22px 36px;
  background:
    radial-gradient(70% 45% at 50% 62%, #F7E3DE 0%, transparent 70%),
    var(--cream);
}
.hero-in { display: grid; gap: 14px; }
.hero-copy { position: relative; z-index: 6; order: -1; }
.hero-art { position: relative; height: var(--art-h); display: grid; place-items: end center; }

.hero-word {
  position: absolute; z-index: 0; inset-inline: -24px; margin: 0; pointer-events: none; user-select: none;
  font-family: var(--serif); font-weight: 700; text-align: center; white-space: nowrap;
  color: rgba(202, 153, 146, .7);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-word {
    /* satin photo, tinted rose-gold, clipped to the letters */
    background: linear-gradient(180deg, rgba(202, 153, 146, .66) 0%, rgba(176, 116, 108, .74) 100%), url("img/gen/satin-rose.jpg") center / 560px auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
}
.hero-word--sm {
  top: 6%;
  font-size: min(64vw, 330px); line-height: .78; letter-spacing: -.03em;
}
.hero-word--lg { display: none; }
/* the product floats free over the word (ref2/ref4): a real cutout, a soft contact shadow, no frame */
.hero-media {
  position: relative; z-index: 2; margin: 0 0 9%;
  width: min(72vw, 330px);
}
.hero-media::before { /* warm halo, not a frame */
  content: ""; position: absolute; z-index: -2; inset: -18% -14% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 246, 242, .85), rgba(243, 222, 218, .5) 55%, transparent);
}
.hero-media img {
  position: relative; width: 100%; height: auto;
  filter: drop-shadow(0 22px 18px rgba(36, 21, 15, .26)) drop-shadow(0 4px 5px rgba(36, 21, 15, .18));
}
[dir="rtl"] .hero-media img { scale: -1 1; }
.hero-shadow {
  position: absolute; z-index: -1; inset-inline: 10%; bottom: -9%; height: 17%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 21, 15, .46), rgba(36, 21, 15, .16) 62%, transparent);
  filter: blur(7px);
}

/* floating ingredients (ref2): wrapper = position + scroll parallax, img = idle bob */
.fl { position: absolute; z-index: 1; width: var(--w, 80px); pointer-events: none; }
.fl-front { z-index: 4; }
.fl img { width: 100%; height: auto; transform: rotate(var(--r, 0deg)); }
.fl-back img { filter: drop-shadow(0 10px 10px rgba(36, 21, 15, .22)) blur(.6px); }
.fl-front img { filter: drop-shadow(0 18px 16px rgba(36, 21, 15, .34)) drop-shadow(0 3px 3px rgba(36, 21, 15, .2)); }
[dir="rtl"] .fl { scale: -1 1; }
.fl-wide { display: none; }
.fl-1 { --w: 60px; --r: -18deg; --dur: 6.5s; top: -3%; inset-inline-start: -5%; }
.fl-4 { --w: 116px; --r: 14deg; --dur: 7.5s; --dl: -2s; top: 44%; inset-inline-end: -7%; }
.fl-5 { --w: 104px; --r: -8deg; --dur: 6s; --dl: -4s; bottom: 1%; inset-inline-start: -3%; }
.fl-6 { --w: 78px; --r: 10deg; --dur: 8s; --dl: -1s; bottom: 3%; inset-inline-end: 2%; }

.sticker {
  position: absolute; z-index: 5; inset-block-start: 60%; inset-inline-end: -4px; margin: 0;
  display: flex; align-items: center; gap: 6px; max-width: 138px; padding: 9px 11px;
  background: #FFFBF4; color: var(--choc); border-radius: 4px;
  font: 700 .72rem/1.2 var(--sans); letter-spacing: .02em;
  box-shadow: 0 10px 20px -10px rgba(36, 21, 15, .55), 0 1px 0 rgba(0, 0, 0, .04);
  rotate: 7deg;
}
.sticker::before { /* paper tape holding the sticker */
  content: ""; position: absolute; inset-block-start: -9px; left: 50%; width: 46px; height: 16px; translate: -50% 0; rotate: -6deg;
  background: rgba(227, 193, 185, .75);
}
.sticker svg { width: 20px; height: 20px; flex: none; color: var(--rose-text); }
[dir="rtl"] .sticker { rotate: -7deg; }
html[lang="ar"] .sticker { font: 700 .8rem/1.3 var(--arabic); letter-spacing: 0; }
.note-hero { inset-block-start: 47%; inset-inline-start: -4px; flex-direction: column; align-items: flex-start; font-size: 1.25rem; }
.note-hero span { rotate: -6deg; }
[dir="rtl"] .note-hero span { rotate: 6deg; }
.note-hero .note-arrow { width: 62px; height: 36px; margin-inline-start: 8px; rotate: 18deg; }
[dir="rtl"] .note-hero .note-arrow { rotate: -18deg; }
@media (max-width: 559px) { .note-hero { display: none; } } /* no free space beside the product on phones */

.hero h1 { font-weight: 700; }
.hero h1 .script { display: block; font: 700 clamp(1.9rem, 8vw, 2.8rem)/1 var(--hand); color: var(--rose-text); rotate: -2deg; margin-block-end: 4px; }
.hero h1 .bold { display: block; font: 700 clamp(2.4rem, 11vw, 5rem)/.92 var(--serif); text-transform: uppercase; letter-spacing: .01em; color: var(--choc); }
html[lang="ar"] .hero h1 .script { font: 600 clamp(1.4rem, 6vw, 2rem)/1.4 var(--arabic); rotate: 0deg; }
html[lang="ar"] .hero h1 .bold { font: 700 clamp(2rem, 9vw, 3.6rem)/1.3 var(--arabic); text-transform: none; }
.hero-sub { margin-block-start: 12px; font-size: 1.04rem; color: #5A4642; max-width: 36ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 18px; }
.hero-ctas .btn { flex: 1 1 auto; padding-inline: 20px; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-block-start: 10px;
  color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
html[lang="ar"] .scroll-cue { letter-spacing: 0; font-size: .95rem; }
.scroll-cue i { position: relative; width: 1px; height: 34px; background: rgba(110, 90, 85, .3); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset-inline: 0; top: -40%; height: 40%; background: var(--rose-text); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ───────────────────────── Satin marquee tapes ───────────────────────── */
.tape {
  position: absolute; z-index: 1; inset-inline: -30%;
  height: var(--th, 40px); display: flex; align-items: center; overflow: hidden;
  direction: ltr; pointer-events: none; user-select: none;
  rotate: var(--ang);
  box-shadow: 0 14px 22px -14px rgba(36, 21, 15, .6);
}
.tape::after { /* satin edge light + shade */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0, transparent 2px, transparent calc(100% - 2px), rgba(0, 0, 0, .2) 100%);
}
.tape-satin, .tape-a, .tape-cta {
  /* static fallback / CTA band: the real satin strip photo (same texture the canvas ribbon uses) */
  background: url("img/gen/ribbon-strip.png") 0 50% / auto 100% repeat-x #D9A89D;
  color: var(--ganache);
}
.tape-b {
  /* chocolate satin: the same strip, multiplied down to ganache */
  background:
    linear-gradient(180deg, rgba(42, 23, 18, .55), rgba(42, 23, 18, .3) 45%, rgba(42, 23, 18, .6)),
    url("img/gen/ribbon-strip.png") 0 50% / auto 100% repeat-x #3A2119;
  background-color: #4E2C22;
  background-blend-mode: multiply, multiply;
  color: var(--rose-1);
}
/* canvas ribbon renderer active: the satin is painted on a canvas under the marquee text */
.rib .hero .tape { background: none; box-shadow: none; overflow: visible; }
.rib .hero .tape::after { display: none; }
.tape-cv { position: absolute; left: 0; pointer-events: none; z-index: 0; }
.tape-track { position: relative; z-index: 1; }
/* hero tapes live in the composition and cross it edge to edge */
.hero .tape { inset-inline: auto; left: calc(50% - 90vw); width: 180vw; margin-block-start: calc(var(--th, 40px) / -2); }
.tape-a { --ang: -9deg; z-index: 1; top: 58%; }
.tape-b { --ang: 6deg; z-index: 3; top: 82%; }
[dir="rtl"] .tape-a { --ang: 9deg; }
[dir="rtl"] .tape-b { --ang: -6deg; }
html.intro-running .hero .tape { opacity: 0; }
.tape-track { display: flex; width: max-content; will-change: transform; }
.tape-seq { display: flex; align-items: center; flex: none; white-space: nowrap; }
.tape-seq > span { padding-inline: 16px; font: 700 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 240, 234, .35); }
.tape-b .tape-seq > span { text-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
.tape-seq > span:lang(ar) { font: 700 .95rem/1 var(--arabic); letter-spacing: 0; }
.tape-star { width: 13px; height: 13px; flex: none; fill: currentColor; opacity: .85; }

/* sprinkled ingredients in the dark bands */
.sprinkle { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mood > .wrap, .cta-in { position: relative; z-index: 1; }
.sp { position: absolute; width: var(--w, 80px); pointer-events: none; }
.sp img { width: 100%; height: auto; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)); }
[dir="rtl"] .sp { scale: -1 1; }
.sp-m1 { --w: 74px; --r: 24deg; top: 22px; inset-inline-start: -14px; }
.sp-m2 { --w: 70px; --r: -12deg; --dl: -3s; top: 64px; inset-inline-end: -10px; }
.sp-m3 { --w: 120px; --r: 160deg; --dl: -5s; bottom: 6px; inset-inline-end: 8%; opacity: .9; }
.sp-c1 { --w: 110px; --r: -22deg; --dl: -2s; bottom: 18px; inset-inline-start: -26px; }
.sp-c2 { --w: 86px; --r: 14deg; top: 66px; inset-inline-end: -12px; }
.sp-c3 { --w: 96px; --r: -30deg; --dl: -4s; bottom: 22px; inset-inline-end: 6%; display: none; }

/* ───────────────────────── Dark bands + edges ───────────────────────── */
.band { position: relative; isolation: isolate; }
.band-dark { background: var(--ganache); color: var(--cream); }
.band-dark .kicker { color: var(--rose-1); }
.edge { position: absolute; inset-inline: 0; width: 100%; display: block; fill: var(--ganache); pointer-events: none; }
.edge-curve { bottom: calc(100% - 1px); height: 44px; }
/* photographic chocolate drip: its top band continues the band colour (blended below) */
.mood { background: linear-gradient(180deg, var(--ganache) 0, var(--ganache) calc(100% - 120px), #3B1508 100%); }
.drip { position: absolute; z-index: 2; inset-inline: 0; top: calc(100% - 2px); pointer-events: none; }
.drip-in { display: flex; transform-origin: 50% 0; }
.drip-pane { position: relative; flex: 1 1 100%; min-width: 0; }
.drip-pane > img { width: 100%; height: auto; filter: drop-shadow(0 10px 10px rgba(36, 21, 15, .22)); }
.drip-pane::before { /* seam killer: band colour fades into the drip's own top band */
  content: ""; position: absolute; z-index: 1; inset-inline: 0; top: 0; height: 5%;
  background: linear-gradient(180deg, #3B1508, rgba(59, 21, 8, 0));
}
.drip-pane-2 { display: none; }
[dir="rtl"] .drip-in { scale: -1 1; }
.bead {
  position: absolute; z-index: 2; overflow: hidden; opacity: 0;
  left: calc(var(--x) * 1% - var(--wn) * .5%); top: calc(var(--y) * 1% - var(--hn) * .5%);
  width: calc(var(--wn) * 1%); height: calc(var(--hn) * 1%);
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
}
.bead img {
  position: absolute; left: 0; top: 0; max-width: none;
  width: calc(100% * 100 / var(--wn)); height: auto;
  transform: translate(calc(var(--wn) * .5% - var(--x) * 1%), calc(var(--hn) * .5% - var(--y) * 1%));
}

/* ───────────────────────── Mood ───────────────────────── */
.mood { padding-block: 36px 48px; margin-block-start: 30px; }
.mood .display { color: var(--cream); }
.moods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mood-card {
  position: relative; width: 100%; height: 100%; min-height: 230px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 18px 12px 60px; border-radius: 999px 999px 22px 22px;
  border: 1px solid rgba(227, 193, 185, .28);
  background: linear-gradient(180deg, #3A2620 0%, #2C1B15 100%);
  color: var(--cream);
  transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
.mood-card:hover { border-color: rgba(227, 193, 185, .7); }
.mood-card:focus-visible { outline-color: var(--rose-1); }
.mood-pic { width: 86px; height: 86px; border-radius: 50%; overflow: hidden; margin-block: 8px 6px; border: 3px solid var(--rose-1); flex: none; }
.mood-pic img { width: 100%; height: 100%; object-fit: cover; }
.mood-name { font: 600 1.28rem/1.08 var(--serif); }
html[lang="ar"] .mood-name { font: 700 1.02rem/1.4 var(--arabic); }
.mood-sub { font-size: .8rem; color: #D8C3BC; }
.mood-go {
  position: absolute; inset-block-end: 12px; inset-inline-start: 50%; translate: -50% 0;
  height: 42px; padding: 3px 12px 3px 3px; border-radius: 999px; display: flex; align-items: center; gap: 6px;
  background: var(--rose-1); color: var(--ganache); transition: transform .3s var(--ease);
}
.mood-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ganache); color: var(--rose-1); }
.mood-ic svg { width: 22px; height: 22px; stroke-width: 1.6; }
[dir="rtl"] .mood-go { translate: 50% 0; padding: 3px 3px 3px 12px; }
[dir="rtl"] .mood-go svg.go { transform: scaleX(-1); }
.mood-go svg.go { width: 16px; height: 16px; }
.mood-card:hover .mood-go { transform: translateX(3px); }
[dir="rtl"] .mood-card:hover .mood-go { transform: translateX(-3px); }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding-block: 52px; }

/* ───────────────────────── Featured ───────────────────────── */
.feat { display: grid; gap: 30px; align-items: center; padding-block-start: calc(34vw + 24px); }
.feat-media { position: relative; }
.feat-media img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 48% 48% 40px 40px / 40% 40% 40px 40px;
  box-shadow: 0 34px 60px -44px rgba(36, 21, 15, .55);
}
.feat-media::before { /* subtle inner warmth */
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  border-radius: 48% 48% 40px 40px / 40% 40% 40px 40px;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 232, .35), inset 0 -60px 80px -50px rgba(150, 80, 50, .35);
}
.feat-media::after { /* satin ribbon wrapped round the photo: the same strip as the hero ribbons */
  content: ""; position: absolute; z-index: 2; inset-inline: -12px; top: 64%; height: 26px; rotate: -4deg;
  background: url("img/gen/ribbon-strip.png") 0 50% / auto 100% repeat-x #D9A89D;
  box-shadow: 0 10px 14px -10px rgba(36, 21, 15, .55);
}
[dir="rtl"] .feat-media::after { rotate: 4deg; }
.feat-media .feat-bow {
  position: absolute; z-index: 3; top: 50%; inset-inline-end: -6%; width: min(46%, 230px); height: auto;
  aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none;
  rotate: -10deg; pointer-events: none;
  filter: drop-shadow(0 12px 12px rgba(36, 21, 15, .35));
}
[dir="rtl"] .feat-media .feat-bow { rotate: 10deg; scale: -1 1; }
.note-feat { inset-block-end: -30px; inset-inline-end: 4px; align-items: center; }
.note-feat .note-arrow { transform: scale(-1, -1) rotate(-12deg); translate: 0 -10px; }
[dir="rtl"] .note-feat .note-arrow { transform: scale(1, -1) rotate(-12deg); }
.note-feat span { rotate: -4deg; }
.feat-desc { margin-block-start: 14px; color: var(--muted); max-width: 44ch; font-size: 1.04rem; }
.feat-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-block-start: 22px; }
.feat-price { font: 600 2.4rem/1 var(--serif); color: var(--rose-text); }
html[lang="ar"] .feat-price { font: 700 1.8rem/1.2 var(--arabic); }
.feat-qty { flex: 1 1 100%; font-size: .92rem; color: var(--muted); }
.feat-list { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-block-start: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feat-list li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .84rem; font-weight: 600; }
.feat-ic svg { width: 26px; height: 26px; stroke-width: 1.6; }
.feat-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--rose-text); }

/* ───────────────────────── Menu ───────────────────────── */
.menu-head { position: relative; padding-inline-end: 104px; }
.menu-cut {
  position: absolute; inset-inline-end: -4px; top: -26px; width: 118px; height: auto; rotate: 8deg; pointer-events: none;
  filter: drop-shadow(0 16px 12px rgba(36, 21, 15, .26)) drop-shadow(0 3px 3px rgba(36, 21, 15, .16));
}
[dir="rtl"] .menu-cut { rotate: -8deg; scale: -1 1; }
.menu-bar { display: flex; align-items: center; gap: 10px; margin-block-end: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 4px 12px; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(142, 80, 73, .3); background: var(--paper); color: var(--choc); font-weight: 600;
  transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--blush); }
.chip[aria-pressed="true"] { background: var(--choc); border-color: var(--choc); color: var(--cream); }
.chip[aria-pressed="true"]::after {
  content: ""; position: absolute; inset-inline: 12px; inset-block-end: -7px; height: 6px;
  background: var(--satin-x); background-size: 220% 100%;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 50%, 100% 100%, 0 100%, 5px 50%);
  animation: ribbon-sheen 3s linear infinite;
}
@keyframes ribbon-sheen { to { background-position: -220% 0; } }
.see-all {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; margin-block-end: 8px;
  border: 1px solid var(--choc); background: transparent; color: var(--choc); font-weight: 700; font-size: .9rem;
}
.see-all:hover { background: var(--blush); }

.grid {
  list-style: none; margin: 0 -16px; padding: 8px 16px 18px; min-height: 280px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--rose-2) transparent;
}
.grid > li { scroll-snap-align: start; }
.grid.is-all { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 12px; }
.card {
  display: flex; flex-direction: column; padding: 10px;
  background: linear-gradient(180deg, var(--paper) 0%, #FCF1EC 100%); border-radius: 34px; border: 1px solid rgba(142, 80, 73, .1);
  transition: box-shadow .4s var(--ease);
}
.card:hover { box-shadow: 0 30px 40px -34px rgba(51, 34, 30, .45); }
.card-media { position: relative; aspect-ratio: 1; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--blush); }
.card-media::after { /* subtle inner warmth instead of a boxed shadow */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 232, .3), inset 0 -40px 60px -40px rgba(150, 80, 50, .35);
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 220, 200, .12), transparent 60%);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.card:hover .card-media img { scale: 1.04; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px 4px; flex: 1; }
.card-name { font-size: 1.35rem; line-height: 1.05; }
html[lang="ar"] .card-name { font-size: 1.05rem; }
.card-unit { font-size: .84rem; color: var(--muted); }
.card-foot { margin-block-start: auto; padding-block-start: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 1.05rem; color: var(--rose-text); white-space: nowrap; }
.card-act.has-qty { flex: 1 1 100%; }
.add {
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--choc); color: var(--cream); box-shadow: 0 8px 16px -8px rgba(36, 21, 15, .7);
  transition: transform .2s var(--ease), background-color .2s;
}
.add:hover { background: var(--rose-text); }
.add:active { transform: scale(.92); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0; border-radius: 999px; background: var(--blush); }
.stepper .step { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: var(--choc); }
.stepper .step:hover { background: var(--rose-1); }
.stepper .step[data-act="inc"] { background: var(--choc); color: var(--cream); }
.stepper .qty { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ───────────────────────── Drop card ───────────────────────── */
.drop {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 34px 22px 24px; border-radius: 30px;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(212, 178, 110, .22), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(212, 178, 110, .12), transparent 60%),
    var(--noir);
  color: #F4ECDF;
  border: 1px solid rgba(212, 178, 110, .45);
  box-shadow: 0 40px 70px -36px rgba(20, 17, 16, .95), inset 0 0 0 6px rgba(212, 178, 110, .06);
}
.drop-ribbon {
  position: absolute; z-index: 2; inset-block-start: 30px; inset-inline-end: -74px;
  width: 270px; height: 36px; rotate: 45deg;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, #9C7A3C 0%, #E9D29B 30%, #FFF0C9 48%, #D4B26E 64%, #8F6E33 100%);
  color: var(--noir); font: 700 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .8);
}
html[lang="ar"] .drop-ribbon { font: 700 .82rem/1 var(--arabic); letter-spacing: 0; }
.drop-ribbon::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  background-size: 250% 100%; animation: sheen 3.6s ease-in-out infinite;
}
[dir="rtl"] .drop-ribbon { rotate: -45deg; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.drop-kicker { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
html[lang="ar"] .drop-kicker { letter-spacing: 0; font-size: .95rem; }
.drop-title { margin-block-start: 10px; font-size: clamp(2.4rem, 10vw, 4rem); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: .95; color: #FBF4E6; padding-inline-end: 84px; }
html[lang="ar"] .drop-title { font-family: var(--serif); font-weight: 600; }
.drop-ar { margin-block-start: 10px; font-family: var(--arabic); font-size: 1.12rem; color: var(--gold); }
.drop-desc { margin-block-start: 10px; color: #D9CDBB; max-width: 46ch; }
.drop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-block: 20px 22px; }
.drop-stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #F4ECDF; }
.drop-stock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(212, 178, 110, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(212, 178, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 178, 110, 0); } }
.countdown { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cd-label { font-size: .85rem; color: #CDBFA9; }
.cd-boxes { display: flex; gap: 6px; direction: ltr; }
.cd-box { min-width: 54px; padding: 8px 6px 5px; text-align: center; border-radius: 12px; border: 1px solid rgba(212, 178, 110, .4); background: rgba(212, 178, 110, .08); }
.cd-box b { display: block; font: 600 1.7rem/1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.cd-box small { font-size: .7rem; color: #CDBFA9; }
.drop .btn { width: 100%; }

/* ───────────────────────── Cakes ───────────────────────── */
.cakes { display: grid; gap: 30px; align-items: center; }
/* floating cutouts on soft blush blobs, overlapping, each with a contact shadow */
.cake-pics { position: relative; height: clamp(300px, 88vw, 480px); }
.cake-blob { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.cake-blob-1 { width: 66%; aspect-ratio: 1; inset-inline-start: -2%; top: -2%; background: radial-gradient(closest-side, #F7DCD6, rgba(243, 222, 218, .55) 70%, transparent); }
.cake-blob-2 { width: 62%; aspect-ratio: 1; inset-inline-end: -2%; bottom: -4%; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; background: radial-gradient(closest-side, #F2CFC8, rgba(227, 193, 185, .45) 72%, transparent); }
.cut { position: absolute; margin: 0; }
.cut > img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 18px 16px rgba(36, 21, 15, .22)) drop-shadow(0 3px 4px rgba(36, 21, 15, .14)); }
.cut-red { z-index: 2; width: 60%; inset-inline-start: 2%; top: 6%; }
.cut-pink { z-index: 3; width: 66%; inset-inline-end: 0; bottom: 7%; }
.cut-shadow {
  position: absolute; z-index: 0; inset-inline: 8%; bottom: -6%; height: 16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 21, 15, .42), rgba(36, 21, 15, .12) 65%, transparent);
  filter: blur(6px);
}
.cake-tape { /* satin ribbon tied round the base: hides the flat-cropped bottom of the photo */
  position: absolute; z-index: 2; inset-inline-start: -6%; bottom: -3%; width: 112%; max-width: none; height: clamp(22px, 5.4vw, 34px);
  object-fit: fill; rotate: -3deg;
  filter: drop-shadow(0 8px 8px rgba(36, 21, 15, .3));
}
[dir="rtl"] .cake-tape { rotate: 3deg; scale: -1 1; }
.cakes-copy > p:not(.kicker):not(.from) { margin-block-start: 14px; color: var(--muted); max-width: 46ch; }
.cakes .from { margin-block-start: 16px; font: italic 600 1.9rem/1 var(--serif); color: var(--rose-text); }
html[lang="ar"] .cakes .from { font-family: var(--arabic); font-style: normal; font-size: 1.3rem; }
.cakes .btn { margin-block-start: 20px; }

/* ───────────────────────── Reviews + steps ───────────────────────── */
.duo { display: grid; }
.duo .section { padding-block: 40px; }
.duo .display { font-size: clamp(2rem, 8vw, 3.2rem); }
html[lang="ar"] .duo .display { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
.review { position: relative; margin: 0; padding: 30px 24px 22px; border-radius: 30px; background: var(--blush); }
.review svg.q { width: 44px; height: 44px; color: var(--rose-text); margin-block-end: 8px; }
.review blockquote { margin: 0; font: italic 500 1.45rem/1.35 var(--serif); color: var(--muted); }
.review a { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 16px; min-height: 44px; font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 74px 1fr; gap: 2px 14px; align-items: baseline;
  padding-block: 18px; border-block-end: 1px solid var(--line);
}
.steps li:first-child { border-block-start: 1px solid var(--line); }
.steps li::before {
  content: counter(s, decimal-leading-zero); grid-row: span 2;
  font: 600 3.4rem/.9 var(--serif); color: var(--rose-text); letter-spacing: -.02em;
}
.steps h3 { font-size: 1.45rem; }
html[lang="ar"] .steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ───────────────────────── Final CTA ───────────────────────── */
.cta { margin-block-start: 70px; padding-block: 96px 64px; text-align: center; }
.tape-cta {
  --ang: -3deg; --th: 38px; top: 10px; inset-inline: -10%;
}
[dir="rtl"] .tape-cta { --ang: 3deg; }
.cta-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.script-line { font: 700 1.6rem/1 var(--hand); color: var(--rose-1); rotate: -2deg; }
html[lang="ar"] .script-line { font: 600 1.2rem/1.4 var(--arabic); rotate: 0deg; }
.cta .display { margin-block-start: 14px; font-size: clamp(2.3rem, 10vw, 5.4rem); color: var(--cream); max-width: 16ch; margin-inline: auto; }
.cta .btn { margin-block-start: 28px; }
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: #D8C3BC; font-size: .86rem; }
.trust li { display: inline-flex; align-items: center; gap: 18px; }
.trust li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rose-2); }

/* ───────────────────────── Footer ───────────────────────── */
.footer { padding-block: 40px 48px; background: var(--ganache); color: #E9DAD4; text-align: center; border-block-start: 1px solid rgba(227, 193, 185, .15); }
.footer img { width: 76px; height: 76px; border-radius: 50%; margin-inline: auto; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8); }
.footer .tagline { margin-block-start: 16px; font: italic 500 1.75rem/1.2 var(--serif); color: var(--cream); }
.footer .made { margin-block-start: 6px; color: #CDB8B0; font-size: .92rem; }
.footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-block-start: 10px; font-weight: 600; text-decoration: none; color: var(--rose-1); }
.footer a:hover { text-decoration: underline; }
.footer a:focus-visible { outline-color: var(--rose-1); }

/* Scroll reveals, parallax, bobbing, marquee, sheet and drip motion are all driven by GSAP (app.js). */

/* ───────────────────────── Floating basket bar ───────────────────────── */
.floatbar {
  position: fixed; z-index: 40; inset-inline: 12px; inset-block-end: calc(12px + env(safe-area-inset-bottom));
  max-width: 560px; margin-inline: auto;
  animation: bar-up .35s var(--ease);
}
.floatbar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px; padding-inline-start: 20px; border-radius: 999px;
  background: var(--choc); color: var(--cream);
  box-shadow: 0 16px 34px -14px rgba(20, 17, 16, .75);
}
.floatbar-text { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes bar-up { from { transform: translateY(120%); opacity: 0; } }

/* ───────────────────────── Sheets (dialog) ───────────────────────── */
dialog.sheet {
  margin: auto 0 0; inset-inline: 0; width: 100%; max-width: 100%;
  max-height: 92dvh; max-height: 92vh;
  padding: 0; border: 0; border-radius: 26px 26px 0 0;
  background: var(--cream); color: var(--choc);
  box-shadow: 0 -20px 50px -20px rgba(20, 17, 16, .5);
}
@supports (height: 1dvh) { dialog.sheet { max-height: 92dvh; } }
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop { background: rgba(20, 17, 16, .5); opacity: var(--bd, 1); }

.sheet-head {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 18px 12px; border-block-end: 1px solid var(--line);
}
.sheet-head::before {
  content: ""; position: absolute; inset-block-start: 7px; inset-inline-start: 50%; translate: -50% 0;
  width: 42px; height: 4px; border-radius: 4px; background: var(--rose-1);
}
.sheet-head h2 { font-size: 1.9rem; }
html[lang="ar"] .sheet-head h2 { font-size: 1.4rem; }
.sheet-body { overflow-y: auto; padding: 16px 18px 20px; overscroll-behavior: contain; flex: 1 1 auto; }
.sheet-foot { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); background: var(--paper); }

.empty { padding: 18px; text-align: center; color: var(--muted); border: 1px dashed rgba(142, 80, 73, .35); border-radius: var(--r-sm); margin-block-end: 16px; }
.lines { list-style: none; margin: 0 0 8px; padding: 0; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-block: 10px; border-block-end: 1px solid var(--line); }
.line img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.line-name { display: block; font-weight: 600; line-height: 1.25; }
.line-unit { display: block; font-size: .84rem; color: var(--muted); }

.field { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.field > legend, .field > label, .label { display: block; padding: 0; margin-block-end: 8px; font-weight: 700; font-size: .95rem; }
.field .opt-note { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="date"] {
  width: 100%; min-height: 50px; padding: 10px 14px; font-size: 16px;
  border: 1px solid #D9C3BD; border-radius: var(--r-sm); background: #fff; color: var(--choc);
}
.field input:focus-visible { outline-offset: 1px; border-color: var(--rose-text); }
.field input::placeholder { color: #8C7A75; }
.field .note { position: static; display: block; margin-block-start: 6px; font: 400 .86rem/1.4 var(--sans); color: var(--muted); white-space: normal; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; flex: 1 1 auto; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt > span {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  min-height: 48px; padding: 6px 14px; border-radius: var(--r-sm);
  border: 1px solid rgba(142, 80, 73, .3); background: var(--paper); line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.opt > span b { font-weight: 600; }
.opt > span small { font-size: .78rem; color: var(--muted); }
.opt input:hover + span { border-color: var(--rose-text); }
.opt input:checked + span { background: var(--choc); border-color: var(--choc); color: var(--cream); }
.opt input:checked + span small { color: var(--rose-1); }
.opt input:focus-visible + span { outline: 3px solid var(--rose-text); outline-offset: 2px; }

.chat { padding: 14px; border-radius: var(--r-md); background: #EAE2D6; }
.bubble {
  position: relative; max-width: 92%; margin-inline-start: auto;
  padding: 10px 12px 8px; border-radius: 14px; border-end-end-radius: 4px;
  background: #D9FDD3; color: #111B21; font: 400 .93rem/1.45 var(--sans);
  white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}
html[lang="ar"] .bubble { font-family: var(--arabic); }

.totals { margin: 0 0 8px; display: grid; gap: 2px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--muted); }
.totals dt, .totals dd { margin: 0; }
.totals .grand { color: var(--choc); font-weight: 700; font-size: 1.1rem; padding-block-start: 4px; }
.hint { min-height: 1.4em; margin-block-end: 8px; font-size: .88rem; color: var(--rose-text); font-weight: 500; }
.hint.ok { color: var(--muted); font-weight: 400; }

.sheet-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-pics img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--r-sm); }
.sheet-lead { margin-block-start: 12px; color: var(--muted); }
.photo-note { display: flex; gap: 10px; align-items: flex-start; margin-block-start: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--blush); font-size: .92rem; }
.photo-note svg { color: var(--rose-text); margin-block-start: 1px; }

/* ───────────────────────── Larger screens ───────────────────────── */
@media (min-width: 560px) {
  .moods { gap: 16px; }
  .mood-card { min-height: 260px; }
}
@media (min-width: 720px) {
  .hero { --art-h: min(78vw, 600px); }
  .hero-word--sm { top: 1%; font-size: min(52vw, 360px); }
  .hero-media { width: min(46vw, 380px); }
  .note-hero { inset-block-start: 52%; inset-inline-start: 4%; }
  .fl-wide { display: block; }
  .fl-2 { --w: 110px; --r: 28deg; --dur: 9s; --dl: -3s; top: 40%; inset-inline-start: 10%; }
  .fl-3 { --w: 130px; --r: -30deg; --dur: 8s; --dl: -6s; bottom: 24%; inset-inline-end: 6%; }
  .sp-c3 { display: block; }
  .grid { grid-auto-columns: 40%; }
  .grid.is-all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drop { padding: 48px 48px 40px; display: grid; grid-template-columns: 1.3fr 1fr; column-gap: 40px; align-items: end; }
  .drop > * { grid-column: 1; }
  .drop .drop-ribbon { grid-column: auto; }
  .drop .drop-meta, .drop .btn { grid-column: 2; }
  .drop .drop-meta { grid-row: 1 / span 3; align-self: end; flex-direction: column; align-items: flex-start; margin: 0; }
  .drop .btn { grid-row: 4 / span 2; align-self: end; }
  .cakes { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feat { grid-template-columns: 1fr 1fr; gap: 56px; }
  .duo { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  dialog.sheet { margin: auto; width: min(580px, 94vw); max-height: 88vh; border-radius: 26px; }
  .sheet-head::before { display: none; }
  .edge-curve { height: 70px; }
  .drip-pane-2 { display: block; }
  .feat { padding-block-start: calc(18vw + 40px); }
  .menu-head { padding-inline-end: 190px; }
  .menu-cut { width: 180px; top: -44px; }
  .cake-pics { height: clamp(380px, 46vw, 520px); }
}
@media (min-width: 1024px) {
  .hero {
    --art-h: min(660px, calc(100vh - 130px));
    min-height: min(880px, calc(100vh - 66px)); padding-block: 20px 36px;
    display: flex; align-items: center;
  }
  .hero-in { width: min(1200px, 100% - 64px); grid-template-columns: 1.05fr .95fr; align-items: start; gap: 40px; }
  .hero-copy { padding-block-start: calc(var(--art-h) * .07); }
  .hero-sub { font-size: 1.1rem; }
  .scroll-cue { display: none; }
  .hero-word--sm { display: none; }
  .hero-word--lg {
    display: block; top: -3%; inset-inline: -8%;
    font-size: calc(var(--art-h) * .27); line-height: .76; letter-spacing: -.035em; text-transform: uppercase;
  }
  .hero-word--lg span { display: block; }
  .hero-media { width: min(450px, 80%); margin-block-end: 9%; }
  .hero-art { height: var(--art-h); }
  .tape { --th: 52px; }
  .tape-a { top: 55%; --ang: -8deg; }
  .tape-b { top: 81%; --ang: 5deg; }
  [dir="rtl"] .tape-a { --ang: 8deg; }
  [dir="rtl"] .tape-b { --ang: -5deg; }
  .fl-1 { --w: 92px; top: 31%; inset-inline-start: 4%; }
  .fl-2 { --w: 118px; top: 46%; inset-inline-start: -6%; }
  .fl-3 { --w: 150px; bottom: 19%; inset-inline-end: -8%; }
  .fl-4 { --w: 168px; top: 38%; inset-inline-end: -2%; }
  .fl-5 { --w: 150px; bottom: 0; inset-inline-start: 2%; }
  .fl-6 { --w: 116px; bottom: 1%; inset-inline-end: 6%; }
  .note-hero { inset-inline-start: -10%; inset-block-start: 66%; font-size: 1.6rem; }
  .sticker { inset-inline-end: -6%; inset-block-start: 53%; max-width: 170px; font-size: .84rem; padding: 12px 14px; }
  .tape-seq > span { font-size: .9rem; padding-inline: 22px; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .section { padding-block: 84px; }
  .mood { padding-block: 40px 64px; }
  .moods { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .mood-card { min-height: 330px; padding-block-start: 28px; }
  .mood-pic { width: 120px; height: 120px; }
  .mood-name { font-size: 1.6rem; }
  .feat { padding-block-start: calc(18vw + 60px); }
  .menu-head { padding-inline-end: 260px; }
  .menu-cut { width: 240px; top: -70px; }
  .see-all { display: none; }
  .grid, .grid.is-all {
    grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto;
    overflow: visible; margin-inline: 0; padding-inline: 0; gap: 22px;
  }
  .cta { padding-block: 130px 90px; }
  .sp-m1 { --w: 110px; top: 40px; inset-inline-start: 3%; }
  .sp-m2 { --w: 96px; top: 70px; inset-inline-end: 4%; }
  .sp-m3 { --w: 170px; bottom: 20px; inset-inline-end: 10%; }
  .sp-c1 { --w: 170px; inset-inline-start: 4%; bottom: 40px; }
  .sp-c2 { --w: 120px; inset-inline-end: 8%; top: 110px; }
  .sp-c3 { --w: 130px; inset-inline-end: 16%; bottom: 36px; }
  .tape-cta { --th: 46px; }
}
@media (hover: none) {
  .card:hover { box-shadow: none; }
}
