/* «دُردونه · آتلیه‌ی شیرینی» — the customer store, luxury-minimal.
   Learned from the great houses (Pierre Hermé, Cédric Grolet, Bateel, Fauchon) and the owner's references (DELORSIM, VERONA, MAYLAB):
   · one deep colour field per moment (wine for the brand, matcha for the season), everything else warm ivory with hairlines
   · the photograph is the hero: large, quiet, no frames or stickers; products sit on a soft neutral ground
   · thin, large Persian type (Kalameh 200/300) and tiny letter-spaced Latin captions; prices set small and calm
   · hairline annotations with a dot (VERONA) for details; slow fades, slow image drift, nothing bounces
   Mobile first. Motion respects reduced motion. */
:root {
  --ivory: #f6f1ea; --paper: #fbf8f3; --stone: #ece5db; --stone-2: #e2d9cc; --ink: #1d1411; --ink-2: #5b4a42; --mute: #8d7b71;
  --wine: #4a1525; --wine-2: #5c1d30; --wine-3: #36101b; --cream: #f3e9dc; --gold: #b8955f; --gold-2: #d6b98a; --matcha: #8a945f; --matcha-2: #a6ae7d;
  --line: rgba(29, 20, 17, 0.12); --line-2: rgba(29, 20, 17, 0.22); --line-w: rgba(243, 233, 220, 0.22);
  --ok: #4d6b33; --ok-bg: rgba(138, 148, 95, 0.16); --warn: #8a5a1c; --warn-bg: rgba(184, 149, 95, 0.16); --bad: #9c2a2a; --bad-bg: rgba(156, 42, 42, 0.08);
  --f: 'Kalameh', Tahoma, system-ui, sans-serif; --latin: Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1); --slow: 900ms; --hdr: 76px; --tab: 0px; --wrap: 1280px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; background: var(--ivory); color: var(--ink); font-family: var(--f); font-weight: 300; font-size: 15.5px; line-height: 2; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; } button, input, select, textarea { font: inherit; color: inherit; letter-spacing: 0; } button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; } b, strong { font-weight: 500; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; }
::selection { background: var(--stone-2); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 99; padding: 8px 14px; background: var(--ink); color: var(--ivory); } .skip:focus { top: 10px; }
.num { font-variant-numeric: tabular-nums; } .mute { color: var(--mute); } .sm { font-size: 13px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.view { min-height: calc(100dvh - var(--hdr)); outline: none; }
.boot { min-height: 70vh; display: grid; place-items: center; } .boot b { font-weight: 200; font-size: 40px; color: var(--mute); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.35; } }
.latin { font-family: var(--latin); font-weight: 400; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; direction: ltr; unicode-bidi: isolate; }
.eyebrow { display: block; font-size: 12.5px; font-weight: 500; color: var(--gold); }
.rv { opacity: 0; transform: translateY(26px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); } .rv.in { opacity: 1; transform: none; }

/* ---------- header: ivory, hairline, centred wordmark ---------- */
.hdr { position: sticky; top: 0; z-index: 40; height: var(--hdr); background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transition: background 500ms, color 500ms, border-color 500ms; }
.hdr .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand { display: grid; justify-items: center; line-height: 1.1; } .brand b { font-weight: 300; font-size: 27px; } .brand small { margin-top: 4px; font-size: 9px; color: var(--mute); }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); } .nav a { position: relative; font-size: 14px; font-weight: 400; color: var(--ink-2); padding: 6px 0; transition: color 300ms; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform 500ms var(--ease); } .nav a:hover, .nav a.on { color: var(--ink); } .nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.hdr .acts { display: flex; justify-content: flex-end; gap: 6px; }
.ib { position: relative; width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); transition: opacity 300ms; } .ib:hover { opacity: 0.6; } .ib svg { width: 22px; height: 22px; }
.ib em { position: absolute; top: 5px; inset-inline-end: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--wine); color: var(--cream); font-style: normal; font-size: 10.5px; font-weight: 500; line-height: 17px; text-align: center; } .ib em:empty { display: none; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.on-wine .hdr { background: color-mix(in srgb, var(--wine) 94%, transparent); color: var(--cream); border-bottom-color: var(--line-w); }
.on-wine .hdr .brand small, .on-wine .nav a { color: rgba(243, 233, 220, 0.72); } .on-wine .nav a:hover, .on-wine .nav a.on, .on-wine .ib { color: var(--cream); } .on-wine .ib em { background: var(--cream); color: var(--wine); }

/* ---------- phone tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  :root { --hdr: 62px; --tab: 66px; }
  .hdr .wrap { grid-template-columns: auto 1fr auto; } .nav { display: none; } .brand { justify-items: start; } .brand b { font-size: 24px; } .brand small { display: none; } .hdr .nav-sp { display: none; }
  .tabbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px max(8px, env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ivory) 95%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; display: grid; justify-items: center; padding: 4px 0; font-size: 11px; font-weight: 400; color: var(--mute); transition: color 300ms; } .tabbar a svg { width: 23px; height: 23px; } .tabbar a.on { color: var(--ink); }
  .tabbar a.on::after { content: ""; position: absolute; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--wine); } .tabbar a .disc { display: contents; }
  .tabbar em { position: absolute; top: 0; inset-inline-start: calc(50% + 5px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--wine); color: var(--cream); font-style: normal; font-size: 10px; line-height: 16px; text-align: center; } .tabbar em:empty { display: none; }
  .view { padding-bottom: calc(var(--tab) + 10px); }
}

/* ---------- buttons & controls: quiet, rectangular, hairlines ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 30px; border-radius: 2px; font-weight: 400; font-size: 15px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); transition: background 400ms var(--ease), color 400ms var(--ease), opacity 300ms; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--ivory); } .btn svg { width: 19px; height: 19px; }
.btn.pri { background: var(--ink); color: var(--ivory); } .btn.pri:hover { background: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.btn.light { color: var(--cream); box-shadow: inset 0 0 0 1px rgba(243, 233, 220, 0.55); } .btn.light:hover { background: var(--cream); color: var(--wine); }
.btn.cream { background: var(--cream); color: var(--wine); box-shadow: none; } .btn.cream:hover { background: #fff; }
.btn.ghost { box-shadow: none; padding: 0 6px; height: 40px; } .btn.ghost:hover { background: none; color: var(--wine); }
.btn.sm { height: 40px; padding: 0 18px; font-size: 14px; } .btn.block { width: 100%; } .btn:disabled { opacity: 0.35; pointer-events: none; }
.chips { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; position: relative; padding: 6px 0; font-size: 14.5px; font-weight: 400; color: var(--mute); transition: color 300ms; white-space: nowrap; } .chip:hover { color: var(--ink); }
.chip.on { color: var(--ink); } .chip.on::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--ink); }
.chip svg { width: 15px; height: 15px; vertical-align: -2px; margin-inline-end: 5px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--gold); } .tag svg { width: 14px; height: 14px; } .tag.dark { color: var(--ink); } .tag.pist { color: var(--ok); } .tag.cara { color: var(--warn); }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea { height: 50px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; font-weight: 300; font-size: 16px; color: var(--ink); transition: border-color 300ms; }
.field textarea { height: auto; min-height: 84px; padding: 10px 2px; resize: vertical; line-height: 1.9; } .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); } .field small { color: var(--mute); font-size: 12px; }
.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--line-2); } .seg button { flex: 1 1 0; min-height: 54px; padding: 8px 14px; font-size: 14.5px; font-weight: 400; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.5; transition: background 300ms, color 300ms; }
.seg button + button { box-shadow: inset -1px 0 0 var(--line-2); } .seg button small { font-size: 11.5px; color: var(--mute); } .seg button.on { background: var(--ink); color: var(--ivory); box-shadow: none; } .seg button.on small { color: rgba(246, 241, 234, 0.7); }
.seg button:has(> svg) { flex-direction: row; gap: 8px; } .seg button svg { width: 19px; height: 19px; } .seg button:disabled { opacity: 0.35; }
.stepper { display: inline-flex; align-items: center; height: 52px; border: 1px solid var(--line-2); } .stepper button { width: 48px; height: 100%; font-size: 20px; font-weight: 200; transition: background 300ms; } .stepper button:hover { background: var(--stone); }
.stepper b { min-width: 86px; text-align: center; font-weight: 400; font-size: 15px; }
[hidden] { display: none !important; }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 9vw, 120px) 0 0; } .sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-h h2 { font-weight: 200; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.2; } .sec-h small { display: block; margin-bottom: 8px; }
.sec-h a.more { font-size: 14px; font-weight: 400; white-space: nowrap; } .ttl { font-weight: 200; }
.link { font-weight: 400; font-size: 14px; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 500ms var(--ease); } .link:hover { background-size: 0 1px; }

/* ---------- photo frames ---------- */
.ph { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(70% 60% at 50% 45%, var(--paper), var(--stone) 80%); }
.ph svg { width: 34%; height: auto; stroke: var(--gold); stroke-width: 0.9; opacity: 0.9; } .ph b { position: absolute; bottom: 9%; inset-inline: 10%; text-align: center; font-weight: 300; font-size: 13px; color: var(--mute); }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 3px 3px; background: var(--stone); } .arch img { width: 100%; height: 100%; object-fit: cover; }
.stamp { display: block; overflow: hidden; } .stamp > span, .stamp > span > span { display: contents; } .stamp img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- home: the wine hero with three cakes, like a patisserie poster ---------- */
.hero { position: relative; background: var(--wine); color: var(--cream); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 50% 70%, rgba(255, 215, 195, 0.11), transparent 70%); }
.hero-in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 96px); }
.hero .latin { color: var(--gold-2); } .hero h1 { margin-top: 18px; font-weight: 200; font-size: clamp(44px, 7.5vw, 104px); line-height: 1.1; } .hero h1 em { font-style: normal; font-weight: 300; color: var(--gold-2); }
.hero p { margin-top: 16px; max-width: 46ch; font-size: clamp(15px, 1.5vw, 17.5px); color: rgba(243, 233, 220, 0.78); }
.stage3 { position: relative; width: min(100%, 1060px); display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: clamp(16px, 4vw, 64px); margin-top: clamp(34px, 5vw, 64px); }
.stage3 figure { position: relative; display: grid; justify-items: center; gap: 16px; }
.stage3 .arch { width: 100%; aspect-ratio: 3 / 4; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.55); }
.stage3 .arch img { transition: transform 1.8s var(--ease); } .stage3 figure:hover .arch img { transform: scale(1.05); }
.stage3 figcaption { display: grid; gap: 2px; } .stage3 figcaption b { font-weight: 400; font-size: 15.5px; } .stage3 figcaption small { font-size: 12.5px; color: rgba(243, 233, 220, 0.62); } .stage3 figcaption .pr { font-size: 13px; color: var(--gold-2); }
.note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(243, 233, 220, 0.88); white-space: nowrap; }
.note i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); flex: none; } .note s { display: block; width: 46px; height: 1px; background: var(--gold-2); opacity: 0.6; }
.hero .acts { margin-top: clamp(34px, 4vw, 52px); display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 760px) { .stage3 { grid-template-columns: 1fr; max-width: 300px; } .stage3 figure:not(:nth-child(2)) { display: none; } .note { display: none; } }

/* ---------- occasions: tall arches ---------- */
.occ { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.occ a { display: grid; gap: 14px; } .occ .arch { aspect-ratio: 3 / 4.4; } .occ .arch img { transition: transform 1.6s var(--ease); } .occ a:hover .arch img { transform: scale(1.06); }
.occ a > span:last-child { display: grid; font-weight: 400; font-size: 16px; } .occ a > span:last-child small { font-weight: 300; font-size: 12.5px; color: var(--mute); }
@media (max-width: 980px) { .occ { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; } } @media (max-width: 560px) { .occ { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 26px); }
@media (max-width: 1050px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; } }
.pcard { position: relative; display: grid; gap: 14px; align-content: start; }
.pcard .pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); border-radius: 2px; }
.pcard .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); } .pcard:hover .pic img { transform: scale(1.05); }
.pcard .pic .tags { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.pcard .pic .tags .tag { padding: 3px 10px; background: rgba(251, 248, 243, 0.92); color: var(--ink); font-weight: 400; font-size: 11px; }
.pcard .bd { display: grid; gap: 2px; } .pcard h3 { font-weight: 400; font-size: 16px; line-height: 1.6; }
.pcard p { font-size: 13px; color: var(--mute); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.price { font-weight: 400; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.4; } .price small { display: block; font-weight: 300; font-size: 11.5px; color: var(--mute); }
.add { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: background 400ms, color 400ms, box-shadow 400ms; } .add:hover { background: var(--ink); color: var(--ivory); box-shadow: none; } .add svg { width: 18px; height: 18px; }
.add.alt { color: var(--wine); }
.ready { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); } .ready i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 270px); gap: 24px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; } .shelf > * { scroll-snap-align: start; }
@media (max-width: 700px) { .shelf { grid-auto-columns: 64%; gap: 14px; } }

/* ---------- the builder teaser on a matcha field ---------- */
.teaser { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); padding: clamp(44px, 6vw, 90px) clamp(22px, 5vw, 72px); overflow: hidden; background: var(--matcha); color: #f8f5ea; }
.teaser::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 25% 55%, rgba(255, 255, 240, 0.16), transparent 70%); }
.teaser > * { position: relative; z-index: 1; } .teaser .latin { color: rgba(248, 245, 234, 0.8); }
.teaser h2 { margin-top: 12px; font-weight: 200; font-size: clamp(34px, 5vw, 64px); line-height: 1.18; } .teaser h2 em { font-style: normal; font-weight: 300; }
.teaser p { margin-top: 14px; max-width: 42ch; opacity: 0.85; } .teaser .btn { margin-top: 28px; }
.teaser .cakebox { justify-self: center; width: min(100%, 460px); }
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; text-align: center; } .teaser p { margin-inline: auto; } .teaser .cakebox { width: 92%; order: -1; } }

/* category tiles (full-bleed photo, white caption) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tiles a { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); } .tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); } .tiles a:hover img { transform: scale(1.06); }
.tiles a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29, 20, 17, 0.58), transparent 55%); }
.tiles span { position: absolute; z-index: 1; inset: auto 22px 18px; color: #fff; font-weight: 300; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; } .tiles span small { display: block; font-size: 12.5px; opacity: 0.8; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* branches as a typographic list; hover reveals the shop */
.blist { position: relative; display: grid; padding: clamp(40px, 6vw, 80px) 0; }
.blist a { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-w); }
.blist a b { font-weight: 200; font-size: clamp(30px, 5vw, 62px); line-height: 1.25; color: rgba(243, 233, 220, 0.45); transition: color 500ms; } .blist a small { font-size: 13px; color: rgba(243, 233, 220, 0.6); text-align: end; }
.blist a:hover b, .blist a:focus-visible b { color: var(--cream); }
.blist .peek { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 800ms var(--ease); background-size: cover; background-position: center; } .blist .peek::after { content: ""; position: absolute; inset: 0; background: rgba(54, 16, 27, 0.74); } .blist.show .peek { opacity: 1; }

/* ---------- page band (category, branches) ---------- */
.ph-band { padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 34px); display: grid; gap: 8px; }
.ph-band h1 { font-weight: 200; font-size: clamp(40px, 6vw, 80px); line-height: 1.12; } .ph-band p { max-width: 56ch; color: var(--ink-2); } .ph-band .stamp { display: none; }
.toolbar { position: sticky; top: var(--hdr); z-index: 30; padding: 10px 0 12px; background: color-mix(in srgb, var(--ivory) 95%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.search { display: flex; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid var(--line-2); } .search svg { width: 19px; height: 19px; color: var(--mute); flex: none; } .search input { flex: 1; border: 0; background: transparent; font-size: 16px; font-weight: 300; outline: none; min-width: 0; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 70px 20px; color: var(--mute); } .empty svg { width: 54px; height: 54px; stroke: var(--gold); stroke-width: 0.9; } .empty b { color: var(--ink); font-weight: 300; font-size: 24px; }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(26px, 5vw, 80px); padding-top: clamp(24px, 4vw, 48px); align-items: start; }
.pd .media { position: sticky; top: calc(var(--hdr) + 24px); } .pd .media .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); } .pd .media .frame img { width: 100%; height: 100%; object-fit: cover; }
.pd h1 { font-weight: 200; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.15; } .pd .lead { margin-top: 10px; font-size: 16.5px; color: var(--ink-2); }
.pd .bigprice { margin-top: 18px; font-weight: 300; font-size: 22px; } .pd .bigprice small { font-size: 13px; color: var(--mute); }
.pd .box { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 16px; } .pd .box h3 { font-weight: 400; font-size: 13px; color: var(--mute); }
.facts { display: grid; } .facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .facts small { color: var(--mute); font-size: 13.5px; } .facts b { font-weight: 400; text-align: end; }
.buybar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .buybar .total { margin-inline-start: auto; text-align: end; } .buybar .total small { display: block; font-size: 12px; color: var(--mute); } .buybar .total b { font-weight: 400; font-size: 19px; }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; } .pd .media { position: static; margin-inline: calc(-1 * clamp(18px, 4vw, 48px)); } .pd .media .frame { aspect-ratio: 1; } }
.sticky-buy { display: none; }
@media (max-width: 900px) { .sticky-buy { position: fixed; inset: auto 0 var(--tab) 0; z-index: 35; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: color-mix(in srgb, var(--ivory) 96%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .sticky-buy .total { flex: 1; } .sticky-buy .total small { display: block; font-size: 12px; color: var(--mute); line-height: 1.3; } .sticky-buy .total b { font-weight: 400; font-size: 16px; } .sticky-buy .btn { height: 46px; padding: 0 22px; } .pd .buybar .btn.pri { display: none; } }

/* ---------- the vitrine: Dordooneh's own language (glass, porcelain, lace, brass and a price tag) ---------- */
/* the card, everywhere a product is shown */
.vi { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 26px; justify-items: center; text-align: center; padding: 0 clamp(8px, 1.2vw, 18px) 30px; }
.vi .cl { position: relative; display: block; width: 100%; max-width: 250px; }
.vi .pic { position: relative; display: block; overflow: hidden; background: var(--stone); }
.vi .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); } .vi:hover .pic img { transform: scale(1.05); }
.vi .ph svg { width: 40%; } .vi .ph b { display: none; }

/* the glass cloche on a porcelain plate: it settles on as the card arrives, and lifts when you reach for it */
.f-cloche .cl { padding: 14% 7% 0; }
.f-cloche .pic { aspect-ratio: 4 / 5; border-radius: 50% 50% 3px 3px / 30% 30% 3px 3px; }
.f-cloche .cl::after { content: ""; display: block; height: 16px; margin: -3px -9% 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #fffefb 30%, #efe7da 62%, #d9cdbb 72%); box-shadow: 0 14px 20px -12px rgba(43, 27, 22, 0.5); }
.dome { position: absolute; top: 3%; bottom: 10px; left: 2%; right: 2%; border-radius: 50% 50% 8px 8px / 34% 34% 8px 8px; pointer-events: none;
  background: radial-gradient(30% 20% at var(--gx, 34%) var(--gy, 22%), rgba(255, 255, 255, var(--ga, 0)), transparent 72%), linear-gradient(103deg, transparent 16%, rgba(255, 255, 255, 0.5) 21%, rgba(255, 255, 255, 0.06) 28%, transparent 33%), linear-gradient(258deg, transparent 72%, rgba(255, 255, 255, 0.3) 77%, transparent 82%), radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 -14px 26px -14px rgba(255, 255, 255, 0.5), 0 0 0 1px rgba(43, 27, 22, 0.05); transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }
.dome::before { content: ""; position: absolute; top: -13px; left: 50%; width: 20px; height: 17px; margin-left: -10px; border-radius: 50% 50% 42% 42%; background: radial-gradient(circle at 38% 32%, #fff, #eee4d4 55%, #c4ad83); box-shadow: 0 3px 6px rgba(43, 27, 22, 0.25); }
.dome::after { content: ""; position: absolute; top: -2px; left: 50%; width: 10px; height: 4px; margin-left: -5px; border-radius: 50%; background: rgba(196, 173, 131, 0.9); }
.f-cloche.rv .dome { transform: translateY(-34%); opacity: 0; } .f-cloche.rv.in .dome { transform: none; opacity: 1; transition-delay: calc(0.25s + var(--i) * 90ms); }
.f-cloche.rv.in:hover .dome, .f-cloche.rv.in .cl:focus-visible .dome { transform: translateY(-16%) rotate(-5deg); opacity: 0.55; transition-delay: 0s; }

/* the lace doily: cookies and sweets sit on it; it turns a little when you reach for one */
.f-doily .cl { aspect-ratio: 1; display: grid; place-items: center; }
.f-doily .cl::before { content: ""; position: absolute; inset: 0; background: var(--doily) center / contain no-repeat; filter: drop-shadow(0 8px 10px rgba(43, 27, 22, 0.14)); transition: transform 1.6s var(--ease); }
.f-doily:hover .cl::before { transform: rotate(18deg); }
.f-doily .pic { width: 66%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 8px 16px -8px rgba(43, 27, 22, 0.45); }
.f-doily.rv .cl::before { transform: rotate(-40deg) scale(0.9); } .f-doily.rv.in .cl::before { transform: none; transition-delay: calc(var(--i) * 80ms); } .f-doily.rv.in:hover .cl::before { transform: rotate(18deg); }

/* the wooden board: bread and croissants */
.f-board .cl { padding-top: 8%; } .f-board .pic { aspect-ratio: 5 / 4; border-radius: 3px; box-shadow: 0 10px 16px -12px rgba(43, 27, 22, 0.5); }
.f-board .cl::after { content: ""; display: block; height: 13px; margin: 4px -7% 0; border-radius: 7px; background: linear-gradient(180deg, #c99a66, #9c6a3c 55%, #7c522c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 16px -10px rgba(43, 27, 22, 0.5); }

/* the gift box: a satin ribbon ties itself when the card arrives */
.f-giftbox .cl { padding-top: 8%; } .f-giftbox .pic { aspect-ratio: 1; border-radius: 2px; box-shadow: 0 14px 24px -14px rgba(43, 27, 22, 0.5); }
.f-giftbox .rb { position: absolute; top: 8%; bottom: 0; left: 0; right: 0; pointer-events: none; }
.f-giftbox .rb::before, .f-giftbox .rb::after { content: ""; position: absolute; box-shadow: 0 0 6px rgba(0, 0, 0, 0.18); transition: transform 1.1s var(--ease) calc(0.5s + var(--i) * 90ms); }
.f-giftbox .rb::before { top: 0; bottom: 0; left: 64%; width: 9px; background: linear-gradient(90deg, #9b7434, #d6b98a 40%, #fff3d6 52%, #d6b98a 64%, #9b7434); transform: scaleY(0); transform-origin: top; }
.f-giftbox .rb::after { left: 0; right: 0; top: 34%; height: 9px; background: linear-gradient(180deg, #9b7434, #d6b98a 40%, #fff3d6 52%, #d6b98a 64%, #9b7434); transform: scaleX(0); transform-origin: right; }
.f-giftbox.in .rb::before { transform: none; } .f-giftbox.in .rb::after { transform: none; }

/* the silver tray: ceremony */
.f-tray .cl { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #f5f3ef 57%, #d8d4cc 58.5%, #f8f7f4 61%, #c7c2b9 68%, #e9e6e0 70%, #d9d5ce 72%); box-shadow: 0 14px 22px -14px rgba(43, 27, 22, 0.45); }
.f-tray .pic { width: 70%; aspect-ratio: 1; border-radius: 50%; }

/* the price tag on its brass pin */
.vtag { position: relative; width: min(100%, 220px); display: grid; align-content: start; gap: 1px; padding: 15px 12px 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 14px 22px -18px rgba(43, 27, 22, 0.45); }
.vtag::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6e7c4, #b8955f 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.vtag h3 { font-weight: 400; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vtag .pr { font-size: 12px; color: var(--mute); } .vtag .pr b { font-weight: 400; font-size: 15.5px; color: var(--ink); } .vtag .pr small { font-size: 11px; }
.vtag .stk { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; } .vtag .stk::before { flex: none; }
.vtag .stk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .vtag .stk.on { color: var(--ok); } .vtag .stk.ord { color: var(--wine); } .vtag .stk.off { color: var(--mute); }
.vtag .add { position: absolute; bottom: -16px; inset-inline-end: -12px; width: 38px; height: 38px; background: var(--ink); color: var(--ivory); box-shadow: 0 6px 12px -4px rgba(43, 27, 22, 0.45); }
.vtag .add:hover { background: var(--wine); color: var(--cream); } .vtag .add.alt { background: var(--wine); color: var(--cream); }
/* the badge sits on the photo like a little paper flag */
.bdg { position: absolute; z-index: 2; top: 10%; inset-inline-start: 0; padding: 3px 12px 3px 10px; font-size: 11px; font-weight: 400; color: var(--wine); background: rgba(251, 248, 243, 0.94); box-shadow: 0 2px 6px -2px rgba(43, 27, 22, 0.3); }
.f-cloche .bdg { top: 22%; } .f-doily .bdg, .f-tray .bdg { top: 8%; inset-inline-start: 4%; border-radius: 999px; padding-inline: 10px; }
/* suspended: the tag hangs from a gold thread under the plate and sways a little while its shelf is on screen */
.vtag::after { content: ""; position: absolute; top: -22px; left: 50%; width: 1px; height: 19px; background: linear-gradient(#d6b98a, #b8955f); }
.vi.in .vtag { transform-origin: 50% -22px; animation: sway 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); }
.vi.in:hover .vtag { animation-duration: 2.4s; }
@keyframes sway { 0%, 100% { transform: rotate(-1.1deg); } 50% { transform: rotate(1.1deg); } }
/* the pastry floats up a little when the cloche lifts */
.f-cloche .pic, .f-doily .pic { transition: transform 1.2s var(--ease); } .f-cloche.in:hover .pic { transform: translateY(-8px); } .f-doily:hover .pic { transform: translateY(-5px) scale(1.02); }
/* the floating layer behind the glass */
.vfloat { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; } .vitrine > .wrap { position: relative; z-index: 1; }
.fl { position: absolute; display: block; width: var(--w); animation: drift var(--t) ease-in-out var(--dl) infinite alternate; } .fl svg { display: block; width: 100%; height: auto; transform: rotate(var(--r)); }
.fl.far { opacity: 0.45; filter: blur(1.2px); transform: scale(0.7); } .fl.near { opacity: 0.85; filter: drop-shadow(0 10px 8px rgba(43, 27, 22, 0.18)); }
@keyframes drift { from { translate: 0 -10px; rotate: -8deg; } to { translate: 6px 14px; rotate: 10deg; } }
@supports (animation-timeline: scroll()) { .fl.near { animation: drift var(--t) ease-in-out var(--dl) infinite alternate, rise-n linear both; animation-timeline: auto, scroll(root); } @keyframes rise-n { to { transform: translateY(-420px); } } }
@media (max-width: 760px) { .fl { --w: 20px !important; } .fl.far { display: none; } }
.fly { position: fixed; z-index: 95; pointer-events: none; overflow: hidden; border-radius: 50%; box-shadow: 0 12px 30px rgba(43, 27, 22, 0.3); background: var(--stone); } .fly img { width: 100%; height: 100%; object-fit: cover; }
@media (pointer: fine) { .vi .cl { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg fill='none' stroke='%23b8955f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 5c6 3 11 9 16 17M5 5c3 6 9 11 17 16'/%3E%3Cpath d='M21 22l5 6M22 21l6 5'/%3E%3Ccircle cx='5' cy='5' r='2.4' fill='%23fbf8f3'/%3E%3C/g%3E%3C/svg%3E") 4 4, pointer; } }

/* the product page: the pastry in its frame, large; the cloche is lifted for you */
.pd-stage { position: relative; display: grid; place-items: center; padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 60px) clamp(26px, 4vw, 44px); background: radial-gradient(70% 60% at 50% 45%, #fffdf9, var(--stone) 90%); }
.pd-stage .cl { position: relative; display: block; width: min(100%, 460px); } .pd-stage .pic { position: relative; display: block; overflow: hidden; background: var(--stone); } .pd-stage .pic img { width: 100%; height: 100%; object-fit: cover; }
.pd-stage.f-doily .cl, .pd-stage.f-tray .cl { width: min(100%, 520px); } .pd-stage .ph b { display: none; }
.pd-stage.f-cloche .dome { transition: transform 1.6s var(--ease), opacity 1.6s var(--ease); } .pd-stage.f-cloche .dome::before { width: 30px; height: 26px; margin-left: -15px; top: -20px; }
.pd-stage.lift .dome { transform: translateY(-22%) rotate(-6deg); opacity: 0.7; } .pd-stage.f-giftbox .rb::before, .pd-stage.f-giftbox .rb::after { transform: none; }
.pd .media .frame { display: none; }
/* the scale */
.scale { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: 22px; }
.scale svg { width: 100%; height: auto; overflow: visible; } .scale line { stroke: var(--ink-2); stroke-width: 0.8; } .scale line.big { stroke: var(--ink); stroke-width: 1.4; }
.scale text { font-family: var(--f); font-size: 10.5px; fill: var(--ink-2); } .scale text.u { font-size: 9px; fill: var(--mute); }
.scale .needle { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(-90deg); transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1); } .scale .needle path { fill: var(--wine); }
.scr { display: grid; gap: 2px; } .scr b { font-weight: 200; font-size: 34px; line-height: 1.15; } .scr span { font-size: 15px; color: var(--ink-2); } .scr small { font-size: 12px; color: var(--mute); }
@media (max-width: 900px) { .scale { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 16px; } .scr b { font-size: 28px; } }

.qbox { display: grid; gap: 4px; padding: 14px 16px; margin: 6px 0; background: var(--warn-bg); color: var(--ink-2); font-size: 13.5px; line-height: 1.8; } .qbox b { font-weight: 400; color: var(--warn); }
/* the cart: an open pastry box seen from above */
.pbox { position: relative; margin: 6px 0 26px; padding: 16px 16px 16px 30px; background: #fffdf9; border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 20px 32px -24px rgba(43, 27, 22, 0.5); }
.pb-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 16px); padding: clamp(12px, 2vw, 20px); background: linear-gradient(135deg, #f7efe3, #eee2cf); box-shadow: inset 0 2px 10px rgba(43, 27, 22, 0.14); border-radius: 2px; }
.cup { position: relative; display: block; aspect-ratio: 1; border-radius: 50%; padding: 9%; background: repeating-conic-gradient(#fdf9f2 0 5deg, #e8dac2 5deg 10deg); box-shadow: 0 5px 10px -5px rgba(43, 27, 22, 0.35); animation: cupIn 0.8s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.cup img, .cup .ph { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(43, 27, 22, 0.06); } .cup .ph b { display: none; } .cup .ph svg { width: 48%; }
.cup.empty { opacity: 0.5; animation: none; box-shadow: none; } @keyframes cupIn { from { opacity: 0; transform: translateY(-18px) scale(0.88); } }
.pbox::before { content: ""; position: absolute; top: 0; bottom: 0; left: 9px; width: 10px; background: linear-gradient(90deg, #6e1c34, #b8465f 42%, #e7a0b2 52%, #b8465f 62%, #6e1c34); box-shadow: 0 0 6px rgba(0, 0, 0, 0.15); }
.pbox .bow { position: absolute; top: -10px; left: 0; width: 28px; height: 20px; } .pbox .bow::before, .pbox .bow::after { content: ""; position: absolute; top: 0; width: 13px; height: 13px; border: 3.5px solid #b8465f; border-radius: 60% 60% 60% 0; }
.pbox .bow::before { left: 0; transform: rotate(-30deg); } .pbox .bow::after { right: 0; transform: scaleX(-1) rotate(-30deg); }

/* the menu page: today's vitrine */
.vt-head { padding: clamp(46px, 7vw, 100px) 0 clamp(24px, 3vw, 36px); } .vt-head .latin { color: var(--gold); }
.vt-head h1 { margin-top: 14px; font-weight: 200; font-size: clamp(48px, 8vw, 112px); line-height: 1.05; } .vt-head p { margin-top: 16px; max-width: 58ch; color: var(--ink-2); }
.vbr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(26px, 3vw, 40px); border: 1px solid var(--line-2); }
.vbr button { display: grid; gap: 0; padding: 14px 10px; text-align: center; transition: background 400ms, color 400ms; } .vbr button + button { box-shadow: inset -1px 0 0 var(--line-2); }
.vbr b { font-weight: 300; font-size: 19px; } .vbr small { font-size: 12px; color: var(--mute); }
.vbr [aria-checked="true"] { background: var(--ink); color: var(--ivory); box-shadow: none; } .vbr [aria-checked="true"] small { color: rgba(246, 241, 234, 0.7); }
.mn-tools { display: grid; gap: 10px; margin-top: 22px; }
.chnav { position: sticky; top: var(--hdr); z-index: 30; background: color-mix(in srgb, var(--ivory) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.chnav .chips { padding: 10px 0; } .chnav[hidden], .vitrine[hidden] { display: none; }
#res { padding-bottom: 80px; } .res-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 26px; } .res-h b { font-weight: 300; font-size: 20px; }
.vgrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 0; }

/* the glass case: a soft sheen travels across it as you scroll */
.vitrine { position: relative; padding: 10px 0 clamp(70px, 9vw, 120px); background: linear-gradient(180deg, var(--ivory), #f1eadf 40%, #efe7da); }
@supports (animation-timeline: scroll()) {
  .vitrine::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, 0.34) 47%, rgba(255, 255, 255, 0.08) 51%, transparent 55%) 0 0 / 300% 100% no-repeat; animation: sheen linear both; animation-timeline: scroll(root); mix-blend-mode: soft-light; }
  @keyframes sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }
}
.vshelf { position: relative; padding-top: clamp(46px, 6vw, 80px); scroll-margin-top: calc(var(--hdr) + 60px); }
.sh-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: clamp(26px, 3vw, 38px); }
.sh-plate { position: relative; display: inline-flex; align-items: center; padding: 6px 28px; font-size: 17px; font-weight: 400; color: #4a3517; background: linear-gradient(180deg, #f3e6c6, #dcc18a 52%, #c9a86c); border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(120, 88, 40, 0.35), 0 3px 8px -3px rgba(43, 27, 22, 0.35); }
.sh-plate::before, .sh-plate::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6df, #9b7a45); } .sh-plate::before { right: 9px; } .sh-plate::after { left: 9px; }
.sh-meta { font-size: 13px; color: var(--mute); } .sh-head .link { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-size: 14px; color: var(--wine); } .sh-head .link svg { width: 17px; height: 17px; }
/* items stand on a brass rail; on a wide screen the rows wrap, each row on its own rail */
.sh-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 54px 0; }
.shelf:has(.vi) { gap: 0; grid-auto-columns: minmax(220px, 250px); scrollbar-width: none; } .shelf:has(.vi)::-webkit-scrollbar { display: none; } .grid:has(.vi) { column-gap: 0; }
.sh-row .vi, .shelf .vi, .grid .vi { padding-bottom: 40px; } .sh-row .vi::after, .shelf .vi::after, .grid .vi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: linear-gradient(180deg, #fff6df, #dcc18a 30%, #b8955f 65%, #8f7040); box-shadow: 0 9px 14px -8px rgba(43, 27, 22, 0.5); }
.sh-row .vi .vtag .add { bottom: -14px; }

@media (max-width: 760px) {
  .vbr { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vbr button:nth-child(3) { box-shadow: inset 0 1px 0 var(--line-2); } .vbr button:nth-child(4) { box-shadow: inset -1px 0 0 var(--line-2), inset 0 1px 0 var(--line-2); }
  .vbr b { font-size: 17px; }
  /* a phone holds one shelf at a time: it slides sideways like walking along the case */
  .sh-row { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * clamp(18px, 4vw, 48px)); padding-inline: clamp(18px, 4vw, 48px); }
  .sh-row::-webkit-scrollbar { display: none; } .sh-row .vi { flex: 0 0 62%; scroll-snap-align: center; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; } .vgrid .vi { padding-inline: 6px; } .vgrid .vtag { padding-inline: 8px; } .vgrid .vtag .add { inset-inline-end: -6px; }
  .sh-head .link { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { .vi.in .vtag { animation: none; } .fl { animation: none !important; } .f-cloche.rv .dome { transform: none; opacity: 1; } .f-giftbox .rb::before, .f-giftbox .rb::after { transform: none; } .vitrine::before { display: none; } }

/* ---------- cake atelier: the cake on its stand in a wine room (sticky); the order sheet on ivory; the price bar under both ---------- */
.cbx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cbx-stage { position: sticky; top: var(--hdr); height: calc(100dvh - var(--hdr) - 78px); margin-bottom: 78px; background: var(--wine); color: var(--cream); display: flex; flex-direction: column; overflow: hidden; }
.cbx-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 45% at 50% 58%, rgba(255, 215, 190, 0.13), transparent 70%); pointer-events: none; }
.vt { position: relative; z-index: 1; display: flex; justify-content: center; gap: 28px; padding-top: 18px; }
.vt button { position: relative; padding: 6px 0; font-size: 13.5px; font-weight: 400; color: rgba(243, 233, 220, 0.55); transition: color 300ms; }
.vt button:hover, .vt button.on { color: var(--cream); } .vt button.on::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold-2); }
.vis { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 6px clamp(10px, 3vw, 40px); }
.vis > svg { position: absolute; inset: 4px clamp(8px, 2vw, 30px); width: calc(100% - 2 * clamp(8px, 2vw, 30px)); height: calc(100% - 8px); }
.cbx-cap { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 16px clamp(18px, 3vw, 40px) 20px; border-top: 1px solid var(--line-w); }
.cbx-cap b { display: block; font-weight: 300; font-size: 21px; line-height: 1.4; } .cbx-cap small { color: rgba(243, 233, 220, 0.62); font-size: 12.5px; line-height: 1.7; }
.cbx-cap .p { text-align: end; flex: none; } .cbx-cap .p b { font-size: 20px; color: var(--gold-2); } .cbx-cap .p b small { color: inherit; font-size: 12px; } .cbx-cap .p > small { display: block; }
.cake .lbl, .slice text { font-family: var(--f); }
.slice { overflow: visible; } .slice text { font-size: 13px; font-weight: 300; fill: rgba(243, 233, 220, 0.94); } .slice .b { font-size: 11px; fill: rgba(243, 233, 220, 0.6); }
.slice .lbl2 polyline { fill: none; stroke: var(--gold-2); stroke-width: 0.7; }
.slice .lbl2 line, .slice .dim line { stroke: var(--gold-2); stroke-width: 0.7; } .slice .lbl2 circle { fill: var(--gold-2); } .slice .dim text { fill: var(--gold-2); font-size: 12px; }
.slice .mini rect { fill: none; stroke: rgba(214, 185, 138, 0.8); stroke-width: 0.8; } .slice .mini text { font-size: 10.5px; fill: rgba(243, 233, 220, 0.7); }

.cbx-form { padding: clamp(26px, 3.4vw, 56px) clamp(18px, 3.4vw, 56px) 40px; display: grid; align-content: start; gap: 6px; }
.cbx-head { padding-bottom: 24px; } .cbx-head .latin { color: var(--gold); }
.cbx-head h1 { margin-top: 12px; font-weight: 200; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.2; } .cbx-head p { margin-top: 10px; max-width: 52ch; font-size: 14.5px; line-height: 1.9; }
.cbx-head .when { color: var(--wine); font-weight: 400; } .cbx-head .when:empty { display: none; } .cbx-head .when::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 9px; border-radius: 50%; background: var(--gold); vertical-align: 2px; }
.sx { display: grid; gap: 20px; padding: 30px 0 34px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 12px); }
.sx > header { display: flex; align-items: baseline; gap: 14px; } .sx > header .eyebrow { font-size: 15px; font-weight: 300; min-width: 14px; }
.sx > header h2 { font-weight: 200; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.3; }
.sx .field > .seg, .sx .field > .stepper, .sx .field > .pal, .sx .field > .xs { margin-top: 4px; }

/* 1 · templates: real cakes in arches */
.tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
.tpl { display: grid; justify-items: center; gap: 2px; text-align: center; color: var(--ink); }
.tpl .ti { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 10px; overflow: hidden; border-radius: 999px 999px 3px 3px; background: var(--stone); box-shadow: 0 0 0 1px transparent; transition: box-shadow 400ms var(--ease); }
.tpl .ti img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); } .tpl:hover .ti img { transform: scale(1.05); }
.tpl b { font-weight: 400; font-size: 15px; line-height: 1.5; } .tpl small { font-size: 12.5px; color: var(--mute); line-height: 1.6; } .tpl small.from { color: var(--ink-2); }
.tpl.on .ti { box-shadow: 0 0 0 1px var(--ivory), 0 0 0 2px var(--wine); } .tpl.on b { color: var(--wine); }
.tpl.on b::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-inline-end: 7px; border-radius: 50%; background: var(--gold); vertical-align: 3px; }

/* 2 · size */
.gq { display: flex; flex-wrap: wrap; gap: 6px 22px; } .gq .chip { padding: 4px 0; }
.guests { display: grid; gap: 8px; } .guests input[type=range] { width: 100%; accent-color: var(--wine); }
.gout { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; } .gout b { font-weight: 200; font-size: 54px; line-height: 1; } .gout span { font-size: 14px; } .gout .mute { margin-inline-start: auto; font-size: 13.5px; }
.cbx .row2 { align-items: end; }
.cbx .stepper { width: 100%; justify-content: space-between; } .cbx .stepper b { flex: 1; }

/* 3 · flavour pairings */
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.pair { position: relative; display: grid; justify-items: start; gap: 2px; padding: 16px 14px 14px; text-align: start; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background 300ms; }
.pair span { display: flex; margin-bottom: 6px; } .pair span i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ivory), inset 0 0 0 1px rgba(0, 0, 0, 0.12); } .pair span i + i { margin-inline-start: -7px; }
.pair b { font-weight: 400; font-size: 14.5px; line-height: 1.5; } .pair small { font-size: 12px; color: var(--mute); line-height: 1.6; }
.pair:hover { background: var(--paper); } .pair.on { background: var(--paper); } .pair.on::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: -1px; width: 2px; background: var(--wine); }
.pair.on span i { box-shadow: 0 0 0 2px var(--paper), inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.toggles { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.tg { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.tg input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 10px; background: var(--stone-2); position: relative; cursor: pointer; transition: background 300ms; flex: none; }
.tg input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); transition: inset-inline-start 300ms var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.tg input:checked { background: var(--wine); } .tg input:checked::after { inset-inline-start: 17px; }
.tg input:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

/* 4 · finish */
.seg .sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); margin-bottom: 4px; } .seg button.on .sw { box-shadow: 0 0 0 1px rgba(246, 241, 234, 0.6); }
.decs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.dec { position: relative; display: grid; gap: 2px; align-content: start; padding: 16px 14px; text-align: start; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background 300ms; }
.dec b { font-weight: 400; font-size: 15px; } .dec small { font-size: 12.5px; color: var(--mute); line-height: 1.7; } .dec small.from { color: var(--ink-2); }
.dec:hover, .dec.on { background: var(--paper); } .dec.on::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: -1px; width: 2px; background: var(--wine); }
.pal { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.pc { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: box-shadow 300ms, transform 300ms var(--ease); }
.pc:hover { transform: scale(1.08); } .pc.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 3px var(--ivory), 0 0 0 4px var(--ink); }
.pc.custom { display: grid; place-items: center; overflow: hidden; cursor: pointer; background: conic-gradient(#e48aa0, #c9a45c, #9fb873, #9db8ea, #b8465f, #e48aa0); }
.pc.custom::after { content: "+"; position: absolute; inset: 7px; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; font-size: 17px; font-weight: 300; line-height: 1; color: var(--ink); pointer-events: none; }
.pc.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

/* 5 · photo & idea */
.ups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.up { display: grid; gap: 10px; align-content: start; }
.drop { display: grid; justify-items: center; gap: 4px; padding: 24px 16px; min-height: 128px; align-content: center; text-align: center; border: 1px dashed var(--line-2); background: var(--paper); transition: border-color 300ms, background 300ms; }
.drop::before { content: ""; width: 26px; height: 26px; margin-bottom: 6px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M3 17l5-5 4 4 3-3 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M3 17l5-5 4 4 3-3 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.drop:hover { border-color: var(--ink); background: var(--ivory); } .drop b { font-weight: 400; font-size: 14.5px; } .drop small { font-size: 12px; color: var(--mute); line-height: 1.7; }
.prev:empty, .refs:empty { display: none; } .refs { display: flex; flex-wrap: wrap; gap: 8px; }
.th { position: relative; display: block; width: 76px; height: 76px; overflow: hidden; background: var(--stone); } .prev .th { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.th img { width: 100%; height: 100%; object-fit: cover; } .prev .th img { border-radius: 0; }
.th button { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(29, 20, 17, 0.72); color: var(--ivory); } .th button svg { width: 13px; height: 13px; }

/* 6 · message & details */
.xs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.cbx .x { position: relative; display: grid; gap: 1px; padding: 12px; text-align: start; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background 300ms; }
.cbx .x b { font-weight: 400; font-size: 14px; color: var(--ink); line-height: 1.6; } .cbx .x small { font-size: 12px; color: var(--mute); }
.cbx .x:hover { background: var(--paper); } .cbx .x.on { background: var(--ink); } .cbx .x.on b { color: var(--ivory); } .cbx .x.on small { color: rgba(246, 241, 234, 0.7); }
#secret + small { display: block; margin-top: 6px; }

/* 7 · production plan */
.ptab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptab th { padding: 0 0 8px; font-size: 12px; font-weight: 400; color: var(--mute); text-align: start; border-bottom: 1px solid var(--line-2); }
.ptab td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; } .ptab td:first-child { font-weight: 400; white-space: nowrap; padding-inline-start: 0; }
.ptab th + th, .ptab td + td { padding-inline-start: 12px; }
.cbx .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.cbx .facts > div { padding: 14px 0; display: grid; gap: 2px; border: 0; } .cbx .facts > div + div { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.cbx .facts small { font-size: 12px; color: var(--mute); } .cbx .facts b { font-weight: 300; font-size: 17px; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* the stage: dimension lines on the finished cake, the «inside» medallion, calm motion when the inside changes */
.cake .body { transform-box: view-box; transform-origin: 200px 300px; }
.cake .dims line { stroke: var(--gold-2); stroke-width: 0.7; } .cake .dims .gd { stroke-dasharray: 2 3; opacity: 0.55; } .cake .dims text { fill: var(--gold-2); font-family: var(--f); font-size: 11.5px; font-weight: 300; }
.cbx-peek { position: absolute; z-index: 2; inset-inline-end: clamp(14px, 2.4vw, 30px); top: 62px; width: 92px; display: grid; justify-items: center; gap: 4px; color: rgba(243, 233, 220, 0.75); transition: transform 600ms var(--ease); }
.cbx-peek svg { width: 92px; height: 92px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3)); } .cbx-peek small { font-size: 11px; } .cbx-peek:hover { transform: translateY(-3px); } .cbx-peek[hidden] { display: none; }
.pb, .band { transform-box: fill-box; }
.flav .pb, .vis.flav .band { animation: bandIn 900ms var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes bandIn { from { opacity: 0; transform: translateX(-18px); } }
.sx.flash > header h2 { animation: flash 1.6s var(--ease); } @keyframes flash { 0%, 100% { color: inherit; } 25% { color: var(--wine); } }

/* section marks from the checklist */
.sst { margin-inline-start: auto; font-size: 12px; font-weight: 400; white-space: nowrap; }
.sst.ok::before { content: ""; display: inline-block; width: 15px; height: 15px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fbf8f3' stroke-width='1.5'/%3E%3C/svg%3E") center / 15px no-repeat; vertical-align: -3px; }
.sst.ask { color: var(--warn); } .sst.bad { color: var(--bad); }
.sst.ask::before, .sst.bad::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 7px; border-radius: 50%; background: currentColor; vertical-align: 2px; }

/* 2 · size: diameters, heights drawn to scale, the size line */
.dms { display: flex; flex-wrap: wrap; gap: 8px; }
.dm { display: grid; justify-items: center; min-width: 66px; padding: 8px 10px 6px; box-shadow: inset 0 0 0 1px var(--line-2); line-height: 1.3; transition: background 300ms, color 300ms; }
.dm b { font-weight: 300; font-size: 19px; } .dm small { font-size: 10.5px; color: var(--mute); } .dm:hover { background: var(--paper); } .dm.on { background: var(--ink); color: var(--ivory); box-shadow: none; } .dm.on small { color: rgba(246, 241, 234, 0.7); }
.seg.hts button { flex-direction: column; gap: 0; padding: 10px 6px 8px; line-height: 1.35; } .hts button small { text-align: center; } .hts button span { font-size: 14px; }
.hi { width: 30px; height: 30px; margin-bottom: 2px; } .hi ellipse, .hi rect { fill: var(--stone-2); stroke: var(--ink-2); stroke-width: 0.8; } .hi rect { stroke-width: 0; } .hts button.on .hi ellipse, .hts button.on .hi rect { fill: var(--gold-2); stroke: var(--ivory); }
.dimline { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13.5px; color: var(--ink-2); padding: 12px 0; border-block: 1px solid var(--line); } .dimline:empty { display: none; }
.dimline span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 12px; border-radius: 50%; background: var(--gold); vertical-align: 3px; }

/* 3 · flavour: house pairings, then the composer */
.sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; font-weight: 400; color: var(--mute); }
.pair span i + i + i { margin-inline-start: -7px; }
.comp { display: grid; gap: 18px; padding-top: 8px; }
.grp { display: grid; gap: 8px; transition: opacity 400ms; } .grp.off { opacity: 0.4; } .grp.off .fls { pointer-events: none; }
.gl { font-size: 13px; font-weight: 400; color: var(--ink-2); } .gl small { font-size: 12px; color: var(--mute); font-weight: 300; }
.fls { display: flex; flex-wrap: wrap; gap: 8px; }
.flc { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 12px; font-size: 13.5px; font-weight: 400; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background 300ms var(--ease), color 300ms, box-shadow 300ms; }
.flc .sw { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); } .flc small { font-size: 11px; color: var(--mute); }
.flc:hover { background: var(--paper); } .flc.on { background: var(--ink); color: var(--ivory); box-shadow: none; } .flc.on small { color: rgba(246, 241, 234, 0.65); } .flc.on .sw { box-shadow: 0 0 0 1.5px var(--ivory); }
.tiersel { display: inline-flex; gap: 14px; } .tiersel:empty { display: none; }
.tiersel button { position: relative; padding: 2px 0; font-size: 13px; color: var(--mute); } .tiersel button.on { color: var(--wine); } .tiersel button.on::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--wine); }
.seg.sm button { min-height: 46px; font-size: 13.5px; padding: 6px 10px; }
.allerg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); } .allerg em { font-style: normal; padding: 1px 10px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 999px; }

.flc.alg span, .pair.alg b { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 1px; } .flc.alg::after, .pair.alg::after { content: "حساسیت"; font-size: 10.5px; color: var(--bad); }
.pair.alg::after { position: absolute; top: 12px; inset-inline-end: 12px; }
/* 6 · details */
.cnt { justify-self: start; } .cnt.over { color: var(--warn); }
.alg { display: flex; align-items: flex-end; gap: 14px; } .alg input { flex: 1; min-width: 0; } .alg .chip { padding-bottom: 12px; }

/* 7 · the workshop facts */
.wk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.wk > div { display: grid; gap: 1px; padding: 10px 0; border-bottom: 1px solid var(--line); } .wk dt { font-size: 12px; color: var(--mute); } .wk dd { font-size: 14px; line-height: 1.7; }

/* the checklist: a ring in the bar, a sheet with every point */
.chkb { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.chkb svg { width: 34px; height: 34px; transform: rotate(-90deg); flex: none; } .chkb circle { fill: none; stroke: var(--line-2); stroke-width: 2; }
.chkb .pg { stroke: var(--gold); stroke-dasharray: var(--pg) 100; transition: stroke-dasharray 800ms var(--ease), stroke 400ms; } .chkb.ask .pg { stroke: var(--warn); } .chkb.bad .pg { stroke: var(--bad); }
.chkb.ok span { color: var(--ok); } .chkb.bad span { color: var(--bad); } .chkb:hover span { text-decoration: underline; text-underline-offset: 4px; }
.chkb i { position: absolute; inset-inline-start: 0; top: 50%; width: 34px; margin-top: -10px; line-height: 20px; text-align: center; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.chkb.ok i { inset-inline-start: 9px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fbf8f3' stroke-width='1.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
#add.dim { opacity: 0.55; }
.chk { display: grid; } .ci { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.ci > i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.ci.ok > i { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fbf8f3' stroke-width='1.5'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: none; } .ci.ok span { color: var(--mute); }
.ci.ask > i { box-shadow: inset 0 0 0 1.5px var(--warn); } .ci.bad > i { box-shadow: inset 0 0 0 1.5px var(--bad); } .ci.bad span { color: var(--bad); }
.ci .btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* the custom shape: what shape, a number for the preview, and the estimate explained */
.cshape { display: grid; gap: 10px; } .qnote { padding: 12px 14px; background: var(--warn-bg); color: var(--ink-2); font-size: 13px; line-height: 1.85; }
.cbx-bar .qmin, .cbx-bar .qfrom { display: none; } .cbx-bar.quote .qmin { display: block; color: var(--warn); } .cbx-bar.quote .qdep { display: none; } .cbx-bar.quote .qfrom { display: inline; font-size: 14px; color: var(--ink-2); }
/* the price bar, across both columns */
.cbx-bar { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 22px; min-height: 78px; padding: 12px clamp(18px, 3.4vw, 56px); background: color-mix(in srgb, var(--ivory) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); }
.cbx-bar .b1 { display: grid; line-height: 1.4; } .cbx-bar .b1 small { font-size: 12px; color: var(--mute); } .cbx-bar .b1 b { font-weight: 300; font-size: 24px; } .cbx-bar .b1 b small { font-size: 12.5px; color: var(--ink-2); }
.cbx-bar .b2 { flex: 1; font-size: 13px; color: var(--ink-2); text-align: center; } .cbx-bar .warn { flex: 1; padding: 0; border: 0; text-align: center; }
.cbx-bar .btn { height: 52px; padding: 0 34px; }

@media (max-width: 1180px) { .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .cbx { grid-template-columns: 1fr; }
  .cbx-stage { z-index: 5; height: clamp(250px, 37vh, 440px); margin-bottom: 0; transition: height 600ms var(--ease); } .cbx-stage.is-slice { height: clamp(330px, 58vh, 560px); }
  .slice text { font-size: 18px; } .slice .b { font-size: 15px; } .slice .dim text { font-size: 16px; } .cake .dims text { font-size: 17px; } .cbx-bar .lg-only { display: none; }
  .vt { padding-top: 8px; gap: 22px; } .vt button { font-size: 12.5px; padding: 3px 0; }
  .vis { padding: 0 8px; }
  .cbx-cap { padding: 8px 18px 10px; align-items: center; } .cbx-cap b { font-size: 16px; } .cbx-cap small { font-size: 11.5px; } .cbx-cap .p b { font-size: 16px; } .cbx-cap .p > small { display: none; }
  .cbx-form { padding: 26px 18px 30px; }
  .tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; } .tpl b { font-size: 13.5px; } .tpl small { font-size: 11.5px; } .tpl small:not(.from) { display: none; }
  .cbx-bar { bottom: var(--tab); gap: 12px; min-height: 66px; padding: 8px 18px; }
  .cbx-bar .b1 b { font-size: 19px; } .cbx-bar .b1 > small { font-size: 11px; } .cbx-bar .b2 { display: none; } .cbx-bar .warn { font-size: 12px; text-align: start; line-height: 1.6; }
  .cbx-bar .btn { height: 46px; padding: 0 16px; margin-inline-start: auto; }
  .cbx-peek { top: 40px; width: 62px; } .cbx-peek svg { width: 62px; height: 62px; } .cbx-peek small { display: none; }
  .chkb span { display: none; } .cbx-bar .b1 > small { white-space: nowrap; font-size: 10.5px; }
}
@media (max-width: 560px) {
  .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pairs, .decs { grid-template-columns: 1fr 1fr; } .xs { grid-template-columns: 1fr 1fr; }
  .ups { grid-template-columns: 1fr; } .drop { min-height: 104px; padding: 18px 14px; }
  .ptab thead { display: none; } .ptab tr { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ptab td { border: 0; padding: 0 !important; } .ptab td:first-child { grid-row: span 4; } .ptab td + td { font-size: 13px; }
  .cbx .facts > div + div { padding-inline-start: 10px; } .cbx .facts b { font-size: 14.5px; } .cbx .facts small { font-size: 11px; }
  .wk { grid-template-columns: 1fr; } .dimline { font-size: 12.5px; } .flc { min-height: 36px; padding: 4px 11px 4px 10px; font-size: 13px; }
  .gout b { font-size: 44px; } .gout .mute { margin-inline-start: 0; width: 100%; }
  #shape { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); } #shape button { background: var(--ivory); box-shadow: none; } #shape button.on { background: var(--ink); }
}

.sum { display: grid; } .sum .l { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; } .sum .l b { font-weight: 400; }
.sum .tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-size: 14px; } .sum .tot b { font-weight: 300; font-size: 26px; }
.warn { padding: 12px 0; color: var(--warn); font-size: 13.5px; border-block: 1px solid var(--warn-bg); } .warn.bad { color: var(--bad); }
.note-ok { padding: 12px 0; color: var(--ok); font-size: 13.5px; border-block: 1px solid var(--ok-bg); }

/* ---------- cart & checkout ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-top: clamp(30px, 5vw, 60px); }
@media (max-width: 980px) { .two { grid-template-columns: 1fr; } }
.panel { display: grid; gap: 20px; padding-bottom: 34px; border-bottom: 1px solid var(--line); } .two > div > .panel:last-child, .panel.last { border-bottom: 0; }
.panel h2 { font-weight: 200; font-size: clamp(28px, 3vw, 40px); line-height: 1.25; } .panel h2 small { display: block; margin-bottom: 4px; font-weight: 500; font-size: 12px; color: var(--gold); }
.aside { position: sticky; top: calc(var(--hdr) + 24px); padding: clamp(22px, 3vw, 34px); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); } .aside .panel { border: 0; padding: 0; }
.cline { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); } .cline:last-child { border-bottom: 0; }
.cline .thumb { width: 88px; height: 110px; overflow: hidden; background: var(--stone); } .cline .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cline b { font-weight: 400; font-size: 16px; } .cline small { display: block; color: var(--mute); font-size: 13px; line-height: 1.8; } .cline .end { display: grid; justify-items: end; gap: 8px; } .cline .x { color: var(--mute); font-size: 12.5px; } .cline .x:hover { color: var(--bad); }
.cline .stepper { height: 38px; margin-top: 8px; } .cline .stepper button { width: 36px; font-size: 17px; } .cline .stepper b { min-width: 64px; font-size: 13.5px; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 78px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line-2); } .days::-webkit-scrollbar { display: none; }
.days button { display: grid; justify-items: center; padding: 12px 0 10px; transition: background 300ms, color 300ms; } .days button + button { box-shadow: inset -1px 0 0 var(--line); }
.days button small { font-size: 11.5px; color: var(--mute); } .days button b { font-weight: 200; font-size: 28px; line-height: 1.3; } .days button i { font-style: normal; font-size: 11px; color: var(--mute); }
.days button.on { background: var(--ink); color: var(--ivory); } .days button.on small, .days button.on i { color: rgba(246, 241, 234, 0.7); } .days button:disabled { opacity: 0.32; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); }
.slots button { min-height: 60px; display: grid; place-items: center; line-height: 1.4; border-inline-end: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 14.5px; font-weight: 400; transition: background 300ms; } .slots button small { font-size: 10.5px; color: var(--mute); font-weight: 300; }
.slots button:hover:not(:disabled) { background: var(--paper); } .slots button.on { background: var(--ink); color: var(--ivory); } .slots button:disabled { color: var(--mute); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(29, 20, 17, 0.035) 6px 7px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } @media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.secure { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.8; color: var(--mute); } .secure svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }

/* simulated bank page */
.gw { max-width: 480px; margin: clamp(40px, 8vw, 90px) auto; padding: 34px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 18px; }
.gw .demo { padding: 12px 0; color: var(--warn); font-size: 13px; text-align: center; border-block: 1px solid var(--warn-bg); }
.gw .amt { text-align: center; } .gw .amt b { font-weight: 200; font-size: 44px; } .gw .bank { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }

/* success: the candle, gold line on wine */
.okwrap { background: var(--wine); color: var(--cream); padding: clamp(40px, 7vw, 90px) 0; min-height: calc(100dvh - var(--hdr)); }
.okpg { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 14px; justify-items: center; } .okpg h1 { font-weight: 200; font-size: clamp(38px, 6vw, 60px); line-height: 1.2; } .okpg .mute { color: rgba(243, 233, 220, 0.72); }
.candle { width: 120px; height: 150px; } .candle .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flick 0.2s ease-in-out infinite alternate; } .candle.out .flame { animation: blowout 700ms forwards; } .candle .smoke { opacity: 0; } .candle.out .smoke { animation: smoke 1.8s ease-out forwards 300ms; }
@keyframes blowout { to { transform: scale(0.1, 0.3) translateX(12px); opacity: 0; } } @keyframes smoke { 25% { opacity: 0.7; } to { opacity: 0; transform: translateY(-36px) scale(1.5); } }
.receipt { width: 100%; padding: 26px 28px; background: var(--paper); color: var(--ink); display: grid; gap: 8px; text-align: start; }
.receipt .code { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; } .receipt .code b { font-weight: 300; font-size: 24px; direction: ltr; }
.bars { height: 40px; width: 100%; margin-top: 8px; opacity: 0.85; }

/* tracking */
.track { display: grid; } .tstep { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.tstep::before { content: ""; position: absolute; top: 28px; bottom: 0; inset-inline-start: 14.5px; width: 1px; background: var(--line-2); } .tstep:last-child::before { display: none; }
.tstep .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--mute); background: var(--ivory); } .tstep .dot svg { width: 15px; height: 15px; }
.tstep.is-done .dot { background: var(--ink); color: var(--ivory); box-shadow: none; } .tstep.is-done::before { background: var(--ink); }
.tstep.now .dot { background: var(--wine); color: var(--cream); box-shadow: 0 0 0 6px rgba(74, 21, 37, 0.1); }
.tstep b { font-weight: 400; font-size: 15.5px; } .tstep small { display: block; color: var(--mute); font-size: 12.5px; } .tstep:not(.is-done):not(.now) b { color: var(--mute); font-weight: 300; }

/* account */
.otp { max-width: 460px; margin: clamp(40px, 8vw, 100px) auto; } .otp .code { display: flex; gap: 14px; justify-content: center; direction: ltr; }
.otp .code input { width: 58px; height: 66px; text-align: center; font-size: 28px; font-weight: 200; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; } .otp .code input:focus { outline: none; border-bottom-color: var(--ink); }
.demo-code { padding: 12px 0; color: var(--warn); font-size: 13px; text-align: center; border-block: 1px solid var(--warn-bg); }
.me-head { display: flex; align-items: center; gap: 18px; } .me-head .av { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); color: var(--cream); font-weight: 200; font-size: 28px; flex: none; }
.me-head h1 { font-weight: 200; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.club { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); } .club div { padding: 18px 8px; text-align: center; } .club div + div { box-shadow: inset -1px 0 0 var(--line); }
.club b { display: block; font-weight: 200; font-size: 28px; } .club small { color: var(--mute); font-size: 12.5px; }
.ord { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); } .ord b { font-weight: 400; font-size: 15px; } .ord small { display: block; color: var(--mute); font-size: 12.5px; }
.person { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.person .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--wine); } .person .ic svg { width: 18px; height: 18px; } .person.soon .ic { background: var(--wine); color: var(--cream); box-shadow: none; }
@media (max-width: 560px) { .me-head .av { width: 52px; height: 52px; font-size: 24px; } }

/* branches page */
.brs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); } @media (max-width: 760px) { .brs { grid-template-columns: 1fr; } }
.br { display: grid; gap: 16px; } .br .stamp { aspect-ratio: 16 / 10; background: var(--stone); } .br h3 { font-weight: 200; font-size: 32px; line-height: 1.3; } .br p { color: var(--ink-2); font-size: 14.5px; }
.br .meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; }

/* footer */
.ftr { background: var(--wine-3); color: rgba(243, 233, 220, 0.75); padding: clamp(50px, 7vw, 90px) 0 calc(var(--tab) + 40px); }
.ftr .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; } .ftr b.big { display: block; font-weight: 200; font-size: 44px; color: var(--cream); line-height: 1.2; }
.ftr h4 { color: var(--gold-2); font-weight: 400; font-size: 13px; margin-bottom: 10px; } .ftr a { display: block; font-size: 14px; padding: 3px 0; transition: color 300ms; } .ftr a:hover { color: var(--cream); } .ftr p { font-size: 14px; max-width: 40ch; }
.ftr .sim { margin-top: 20px; font-size: 12px; opacity: 0.6; } .ftr .latin { display: block; margin-top: 10px; color: var(--gold-2); }
/* the Latin name as a lockup under the Persian wordmark: the name in italic serif, a gold hairline, the trade in small letter-spaced caps */
.ftr .ftr-mark { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 16px; width: fit-content; margin-top: 8px; direction: ltr; line-height: 1.3; }
.ftr-mark i { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 27px; color: var(--cream); letter-spacing: 0.01em; }
.ftr-mark s { width: 34px; height: 1px; background: var(--gold); } .ftr .ftr-mark .latin { margin: 0; font-size: 10.5px; }
@media (max-width: 760px) { .ftr .wrap { grid-template-columns: 1fr 1fr; } .ftr .wrap > :first-child { grid-column: 1 / -1; } }

/* dialog & toast */
#layer:empty { display: none; }
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(29, 20, 17, 0.45); display: grid; place-items: center; padding: 16px; animation: fade 400ms ease both; }
.sheet { width: min(520px, 100%); max-height: 88dvh; overflow: auto; padding: 32px; background: var(--ivory); display: grid; gap: 16px; animation: rise 600ms var(--ease) both; } .sheet h2 { font-weight: 200; font-size: 32px; line-height: 1.25; }
@media (max-width: 640px) { .scrim { place-items: end stretch; padding: 0; } .sheet { width: 100%; padding: 26px 20px max(24px, env(safe-area-inset-bottom)); } }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(30px); } }
#toast { position: fixed; z-index: 90; inset: auto 0 calc(var(--tab) + 20px) 0; display: grid; justify-items: center; pointer-events: none; }
#toast div { padding: 14px 22px; background: var(--ink); color: var(--ivory); font-weight: 300; font-size: 14px; animation: rise 500ms var(--ease) both; } #toast div.bad { background: var(--bad); }
.view > * { animation: viewIn 700ms var(--ease) both; } @keyframes viewIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } .rv { opacity: 1; transform: none; } }
.tstep.skip { display: none; }
.arch { display: block; width: 100%; } .stage3 figure > a { display: block; width: 100%; } .occ .arch { width: 100%; }

/* ---------- the hero's entrance: caption → words rise → the arches open like a curtain → gold hairlines draw; gold dust drifts ---------- */
.hero .latin, .hero p, .hero .acts { animation: heroUp 1.1s var(--ease) both; } .hero .latin { animation-delay: 0.1s; } .hero p { animation-delay: calc(var(--hd, 0.95s) - 0.2s); } .hero .acts { animation-delay: calc(var(--hd, 0.95s) + 0.5s); }
/* piped icing: each word is drawn in from the right behind a glowing bead of cream (the nozzle), in the order the hand writes */
.hero h1 .w { position: relative; display: inline-block; animation: pipe var(--t, 0.6s) cubic-bezier(0.45, 0.05, 0.4, 1) both var(--d, 0.3s); }
.hero h1 .w::after { content: ""; position: absolute; top: 56%; right: 0; width: 0.13em; height: 0.13em; margin: -0.065em -0.065em 0 0; border-radius: 50%; background: #fff7ea; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0.2em 0.05em rgba(255, 238, 210, 0.95), 0 0 0.9em 0.1em rgba(214, 185, 138, 0.75); animation: nozzle var(--t, 0.6s) cubic-bezier(0.45, 0.05, 0.4, 1) both var(--d, 0.3s); }
@keyframes pipe { from { clip-path: inset(-0.45em 0 -0.45em 100%); } to { clip-path: inset(-0.45em -0.25em -0.45em -0.25em); } }
@keyframes nozzle { 0% { right: 0; opacity: 0; } 10%, 85% { opacity: 1; } 100% { right: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .w { animation: none; } .hero h1 .w::after { display: none; } }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } }
.stage3 .arch { animation: archIn 1.5s var(--ease) both; animation-delay: calc(0.7s + var(--i, 0) * 0.16s); } .stage3 .arch img { animation: archImg 2.6s var(--ease) both; animation-delay: calc(0.7s + var(--i, 0) * 0.16s); }
@keyframes archIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } } @keyframes archImg { from { transform: scale(1.16); } }
.stage3 figcaption { animation: heroUp 1s var(--ease) both; animation-delay: calc(1.3s + var(--i, 0) * 0.16s); }
.note s { transform-origin: var(--from, right); animation: draw 1s var(--ease) both 1.8s; } .note span { animation: heroUp 0.9s var(--ease) both 2.1s; } .note i { animation: heroUp 0.6s var(--ease) both 1.7s; }
@keyframes draw { from { transform: scaleX(0); } }
.dust { position: absolute; z-index: 0; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-2); opacity: 0; pointer-events: none; animation: dust var(--d, 14s) linear infinite; animation-delay: var(--dl, 0s); box-shadow: 0 0 6px rgba(214, 185, 138, 0.8); }
@keyframes dust { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: 0.75; } 85% { opacity: 0.5; } 100% { opacity: 0; transform: translate(var(--dx, 20px), -220px); } }

/* ---------- the first visit: a pastry box on wine unties, opens, and the name rises out of it (app.js splash) ---------- */
.splash { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; cursor: pointer; background: radial-gradient(110% 80% at 50% 42%, var(--wine-2), var(--wine) 52%, var(--wine-3)); animation: spOut 0.75s var(--ease) forwards 2.5s; }
.splash.skip { animation: spOut 0.35s ease forwards; }
@keyframes spOut { to { opacity: 0; visibility: hidden; } }
.splashing { overflow: hidden; } .splashing .hero, .splashing .hero *, .splashing .hero *::after { animation-play-state: paused !important; }
.sp-stage { position: relative; width: 240px; height: 290px; }
.sp-base { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 0; height: 120px; border-radius: 2px 2px 4px 4px; background: linear-gradient(180deg, #f1e6d6, #e3d2bb); box-shadow: 0 34px 44px -20px rgba(0, 0, 0, 0.6); animation: spSink 0.6s var(--ease) forwards 2.05s; }
.sp-base::before, .sp-lid::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(184, 149, 95, 0.6); }
.sp-base::after { content: ""; position: absolute; inset: 0 0 auto; height: 12px; background: linear-gradient(rgba(60, 25, 20, 0.28), transparent); animation: fadeAway 0.5s ease forwards 1.05s; }
.sp-lid { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 114px; height: 42px; border-radius: 3px; background: linear-gradient(180deg, #fbf3e7, #eadcc6); box-shadow: 0 7px 10px -5px rgba(40, 10, 15, 0.45); transform-origin: 30% 100%; animation: lidOff 0.7s cubic-bezier(0.5, 0, 0.3, 1) forwards 0.95s; }
.sp-lid::before { inset: 7px 9px; }
.sp-rib { position: absolute; left: 50%; top: 0; bottom: 0; width: 20px; margin-left: -10px; background: linear-gradient(90deg, #9c7845, #e3c899 42%, #caa86f 62%, #9c7845); transform-origin: 50% 0; animation: ribOff 0.4s cubic-bezier(0.6, 0, 0.4, 1) forwards 0.5s; }
.sp-lid .sp-rib { animation-delay: 0.78s; animation-duration: 0.25s; }
.sp-bow { position: absolute; left: 50%; top: -3px; }
.sp-bow i { position: absolute; top: -25px; width: 46px; height: 29px; border: 5px solid #d6b98a; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 2px 3px rgba(0, 0, 0, 0.25); }
.sp-bow i:first-child { right: 2px; transform-origin: 100% 75%; transform: rotate(-20deg); animation: loopR 0.4s cubic-bezier(0.5, 0, 0.6, 1) forwards 0.3s; }
.sp-bow i:nth-child(2) { left: 2px; transform-origin: 0 75%; transform: rotate(20deg); animation: loopL 0.4s cubic-bezier(0.5, 0, 0.6, 1) forwards 0.3s; }
.sp-bow::before, .sp-bow::after { content: ""; position: absolute; top: -6px; width: 8px; height: 32px; background: linear-gradient(#e3c899, #a8834f); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); transform-origin: 50% 0; animation: fadeAway 0.3s ease forwards 0.42s; }
.sp-bow::before { left: -11px; transform: rotate(30deg); } .sp-bow::after { left: 3px; transform: rotate(-30deg); }
.sp-bow b { position: absolute; z-index: 1; left: -9px; top: -15px; width: 18px; height: 17px; border-radius: 5px; background: linear-gradient(#e8cfa2, #b08a55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); animation: fadeAway 0.3s ease forwards 0.5s; }
@keyframes loopR { to { transform: rotate(-80deg) scale(0.3); opacity: 0; } } @keyframes loopL { to { transform: rotate(80deg) scale(0.3); opacity: 0; } }
@keyframes ribOff { to { transform: scaleY(0); } } @keyframes fadeAway { to { opacity: 0; } }
@keyframes lidOff { 30% { transform: translateY(-16px) rotate(-2deg); } 55% { opacity: 1; } to { transform: translate(-200px, -6px) rotate(-24deg); opacity: 0; } }
@keyframes spSink { to { transform: translateY(18px); opacity: 0; } }
.sp-glow { position: absolute; z-index: 0; left: 24px; right: 24px; bottom: 76px; height: 96px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 228, 176, 0.8), rgba(214, 185, 138, 0.25) 62%, transparent); opacity: 0; animation: spGlow 1.4s ease forwards 1.05s; }
@keyframes spGlow { 35% { opacity: 1; } to { opacity: 0.55; transform: translateY(-20px) scale(1.3); } }
.sp-word { position: absolute; z-index: 1; inset: 172px 0 auto; display: grid; justify-items: center; line-height: 1.1; color: var(--cream); opacity: 0; animation: spRise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards 1.3s; }
.sp-word b { font-weight: 200; font-size: 60px; } .sp-word small { margin-top: 10px; font-size: 10px; color: var(--gold-2); }
@keyframes spRise { 25% { opacity: 1; } to { opacity: 1; transform: translateY(-150px); } }
.sp-spark { position: absolute; z-index: 1; left: 50%; bottom: 116px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 6px rgba(255, 222, 165, 0.95); opacity: 0; transform: translateX(var(--x)); animation: spSpark 1.3s ease-out forwards var(--dl); }
@keyframes spSpark { 15% { opacity: 1; } to { opacity: 0; transform: translate(calc(var(--x) * 1.7), calc(var(--h) * -1)); } }

/* ---------- page changes: a palette knife spreads the new page on from the right with a soft wavy edge (View Transitions, app.js route) ---------- */
:root { --knife: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 210 100' preserveAspectRatio='none'%3E%3Cpath d='M105,0 C110,4 110,8.5 105,12.5 C100,16.5 100,21 105,25 C110,29 110,33.5 105,37.5 C100,41.5 100,46 105,50 C110,54 110,58.5 105,62.5 C100,66.5 100,71 105,75 C110,79 110,83.5 105,87.5 C100,91.5 100,96 105,100 L210,100 L210,0 Z'/%3E%3C/svg%3E"); }
.hdr { view-transition-name: hdr; } .tabbar { view-transition-name: tabbar; }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
::view-transition-old(root) { animation: vtOld 0.7s ease both; }
::view-transition-new(root) { animation: vtNew 0.7s cubic-bezier(0.65, 0, 0.35, 1) both; -webkit-mask: var(--knife) 0 0 / 210% 100% no-repeat; mask: var(--knife) 0 0 / 210% 100% no-repeat; }
@keyframes vtNew { from { -webkit-mask-position: 0% 0; mask-position: 0% 0; } to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes vtOld { to { opacity: 0.55; } }
.view.wiped > * { animation: none; }

/* ---------- the cloche leans toward the mouse and its glass light follows; sugar puffs where a pastry is lifted (views.js, core.js sugar) ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .vi .cl { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.9s var(--ease); }
  .vi .cl.tilt { --ga: 0.4; transition-duration: 0.2s; }
}
.sugar { position: fixed; z-index: 96; width: 0; height: 0; pointer-events: none; }
.sugar b { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(246, 239, 229, 0.6) 55%, rgba(246, 239, 229, 0)); }
.sugar i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(120, 100, 80, 0.25); }

/* ---------- the wax seal pressed onto the receipt after the candle goes out (checkout.js seal) ---------- */
.receipt { position: relative; } .receipt .code { padding-inline-end: 96px; min-height: 64px; }
.seal { position: absolute; top: 14px; inset-inline-end: 16px; width: 84px; height: 84px; opacity: 0; transform: rotate(-12deg); animation: stamp 0.6s cubic-bezier(0.3, 1.35, 0.5, 1) forwards 2.2s; pointer-events: none; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-32deg); filter: drop-shadow(0 26px 16px rgba(0, 0, 0, 0.3)); } 55% { opacity: 1; transform: scale(0.92) rotate(-10deg); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)); } 100% { opacity: 1; transform: rotate(-12deg); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); } }
.okpg .receipt { animation: thud 0.3s ease 2.52s; } @keyframes thud { 40% { transform: translateY(3px) scale(0.997); } }
@media (max-width: 640px) { .seal { width: 70px; height: 70px; top: 12px; inset-inline-end: 12px; } .receipt .code { padding-inline-end: 78px; } }

/* ---------- tracking: a small scene for where the order is now (account.js scene) ---------- */
.scene { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: clamp(14px, 3vw, 28px); padding: 16px clamp(16px, 3vw, 28px); background: var(--wine); color: var(--cream); }
.scene svg { width: 150px; height: 94px; } .scene .latin { color: var(--gold-2); font-size: 10px; } .scene b { display: block; margin-top: 4px; font-weight: 300; font-size: clamp(17px, 2.3vw, 22px); line-height: 1.6; }
@media (max-width: 420px) { .scene { grid-template-columns: 112px minmax(0, 1fr); } .scene svg { width: 112px; height: 70px; } }
.scene .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sWrite 4.5s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 0.45s); }
@keyframes sWrite { 0% { stroke-dashoffset: 1; opacity: 1; } 16%, 86% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.scene .hand { transform-origin: 80px 42px; animation: spin 4s linear infinite; } .scene .hand2 { transform-origin: 80px 42px; animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene .glow { animation: ovenGlow 1.4s ease-in-out infinite alternate; } @keyframes ovenGlow { from { opacity: 0.45; } to { opacity: 1; } }
.scene .heat { opacity: 0; animation: heat 2.2s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 0.5s); } @keyframes heat { 0% { opacity: 0; transform: translateY(5px); } 40% { opacity: 0.85; } 100% { opacity: 0; transform: translateY(-6px); } }
.scene .pipe { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sPipe 3.4s linear infinite; } @keyframes sPipe { 0% { stroke-dashoffset: 1; opacity: 1; } 78% { stroke-dashoffset: 0; } 92% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.scene .bag { animation: sBag 3.4s linear infinite; } @keyframes sBag { 0% { transform: translateX(0); } 78%, 92% { transform: translateX(-56px); opacity: 1; } 100% { transform: translateX(-56px); opacity: 0; } }
.scene .lens { animation: lens 2.6s ease-in-out infinite alternate; } @keyframes lens { from { transform: translateX(-6px); } to { transform: translateX(26px); } }
.scene .bow { transform-origin: 80px 40px; animation: bowIn 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) both 0.2s, bowSway 3s ease-in-out 1s infinite alternate; } @keyframes bowIn { from { transform: scale(0); } } @keyframes bowSway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.scene .tw { animation: tw 1.8s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 0.6s); } @keyframes tw { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
.scene .road { animation: road 0.6s linear infinite; } @keyframes road { to { stroke-dashoffset: -19; } }
.scene .ride { animation: bob 0.35s ease-in-out infinite alternate; } @keyframes bob { to { transform: translateY(-1.2px); } }
.scene .spin { transform-box: fill-box; transform-origin: center; animation: spin 0.5s linear infinite reverse; }
.scene .heart { transform-box: fill-box; transform-origin: center; animation: heartUp 2.4s ease-out infinite; } @keyframes heartUp { 0% { opacity: 0; transform: translateY(10px) scale(0.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .scene * { animation: none !important; } .scene .ln, .scene .pipe { stroke-dashoffset: 0; } .scene .heat, .scene .heart { opacity: 0.8; } }
