/* css/shop-menu.css — the UI the client's menu brought to the shop (written by builder M, brand pass by builder L). Builds on css/tokens.css
   (charter: blanc cassé page, sage, black; Questrial only — one weight, hierarchy by size / case / letter-spacing; no
   shadows, no gradients; .label and .dots are the menu's own vocabulary) + css/shop.css (.step, .card, .cta, .link).
   Linked after the page CSS on: fruits-givres/ (+ the 24 fruit pages, from _dev/templates/fruit.html), fruit-cups/,
   cafe-boissons/. Every control ≥ 44 px; AA contrast (ink 20:1, ink-2 8.4:1 on blanc cassé, line-ui 4.7:1).

   Contents: option picker (.opt) · menu details (.mn-*) · carte cards + fruit page (half fruits) · fruit cups ·
   the café page (.dk-*) · reduced motion */

/* ───────── option picker: js/shop/markup.js optHTML (whole / half fruit, a drink's flavour, hot / iced…) ─────────
   <fieldset class="opt opt--compact js-only" data-opt="ct-ananas" data-opt-base="fruit:ananas">
     <legend class="opt__l">…</legend>
     <div class="opt__list"><label class="opt__i"><input class="opt__r" type="radio" …><span class="opt__t">Entier<small class="opt__s">220 DH</small></span></label>…</div>
   </fieldset>
   Native radios: arrow keys move between the options, Tab leaves the group. */
.opt { min-width: 0; margin: 0; padding: 0; border: 0; font-family: var(--font-sans); }
.opt__l { margin: 0 0 6px; padding: 0; font: 400 12.5px/1.3 var(--font-sans); letter-spacing: var(--tr-caps, .14em); text-transform: uppercase; color: var(--ink-2); }
.opt__list { display: flex; flex-wrap: wrap; gap: 6px; }
.opt__i { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.opt__r { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt__t { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 44px; padding: 5px 14px;
  border: 1px solid var(--line-ui); border-radius: var(--r-pill, 999px); background: var(--ivoire); color: var(--ink);
  font: 400 14.5px/1.15 var(--font-sans); text-align: center; transition: background .15s, color .15s, border-color .15s; }
.opt__s { font: 400 12.5px/1.2 var(--font-sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.opt__r:hover + .opt__t { border-color: var(--ink); }
.opt__r:checked + .opt__t { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt__r:checked + .opt__t .opt__s { color: inherit; opacity: .82; }
.opt__r:focus-visible + .opt__t { outline: 2px solid var(--focus-ring, var(--ink)); outline-offset: 2px; }
.opt--compact .opt__i { flex: 0 1 auto; }
.opt--compact .opt__t { padding: 4px 14px; font-size: 14px; }
.opt--wide .opt__i { flex: 1 1 0; }
.opt--wide .opt__t { min-height: 52px; font-size: 15.5px; }

/* ───────── menu details ───────── */
/* « Frümee créations »: the menu's small sage label */
.mn-tag { display: inline-block; justify-self: start; margin: 0; padding: .45em .9em .42em calc(.9em + .2em); background: var(--sauge); color: var(--ink);
  font: 400 11px/1.3 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
/* how a drink is served (the menu's snowflake / steam): the words say it, the icons echo the menu */
.mn-serve { display: inline-flex; align-items: center; gap: 4px; }
.mn-serve__ico { width: 17px; height: 17px; stroke-width: 1.4; color: var(--ink-2); }
.mn-serve__ico + .mn-serve__ico { margin-left: -2px; }
.mn-half { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.mn-allergens__k { margin-right: .5em; color: var(--ink); letter-spacing: var(--tr-caps, .14em); text-transform: uppercase; font-size: .92em; }

/* ───────── carte cards (.ct) and the fruit page: the fruits the menu also sells by the half ───────── */
.ct__actions .opt, .card__actions .opt { flex: 1 1 100%; }
.ct__actions .opt__i, .carte-stage__step .opt__i { flex: 1 1 0; }
.ct__w[hidden] + .ct__price::before { content: none; }
.carte-stage__step { display: grid; gap: 10px; }
.fp-actions .opt { grid-column: 1 / -1; }
.fp-price .mn-half { margin-top: 2px; }
.fp-bar__opt { color: var(--ink-2); }

/* ───────── fruit cups (fruit-cups/, and the café page's « Fruits cup & Coco Experience ») ───────── */
.cups-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
.cup .mn-tag { margin-bottom: 2px; }
.cup--contain .cup__media { display: grid; place-items: center; }
.cup--contain .cup__media { position: relative; isolation: isolate; background: var(--paper); }
.cup--contain .cup__media::before { content: ""; position: absolute; z-index: -1; inset: 10% 18% 0; border-radius: var(--r-niche); background: var(--field-hi); } /* the niche */
.cup--contain .cup__media img { width: 74%; height: 84%; object-fit: contain; }
.cup__foot .opt { order: -1; flex: 1 1 100%; }
.cup__foot .opt__i { flex: 1 1 0; }
.cup__price { font-size: 18px; font-variant-numeric: tabular-nums; }
.cups-list__notes { display: grid; gap: 8px; max-width: 72ch; margin-top: 20px; }
.cups-list__notes .cups-list__note { margin: 0; font-size: 14.5px; line-height: 1.55; }
@media (max-width: 599.98px) { .cups-grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* ═════════════════ CAFÉ & BOISSONS (cafe-boissons/: html.sc, css/shop-content.css for the page frame) ═════════════════ */
.dk-hero__label { margin-bottom: 20px; }
.dk-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
/* the same jump pills as the coffrets page (.cof-jump__a): black hairline, capitals, filled black on hover */
.dk-jump__a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 17px; border: 1px solid var(--ink); border-radius: var(--r-pill, 999px);
  color: var(--ink); font: 400 12px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s; }
.dk-jump__a:hover { background: var(--ink); color: var(--cta-ink); }
.dk-hero__note { margin: 18px 0 0; max-width: 60ch; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* the menu: two columns like the printed carte (hot + iced | matcha & ube + cold), one on phones */
.dk-menu { padding-top: clamp(44px, 6vw, 88px); }
@media (min-width: 960px) { .dk-menu { column-count: 2; column-gap: clamp(48px, 6vw, 104px); } }
.dk-sec { break-inside: avoid; margin: 0 0 clamp(48px, 6vw, 80px); scroll-margin-top: calc(var(--top-h, 84px) + 16px); }
.dk-sec__head { display: grid; justify-items: center; gap: 10px; margin: 0 0 18px; text-align: center; }
.dk-sec__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sauge); color: var(--ink); }
.dk-sec__svg { width: 28px; height: 28px; stroke-width: 1.25; }
.dk-sec__title { font-size: clamp(14px, .8rem + .3vw, 16px); }
.dk-sec__size { margin: 0; font: 400 13px/1.2 var(--font-sans); letter-spacing: .14em; color: var(--ink-2); }
.dk-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dk-item { display: grid; gap: 4px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--top-h, 84px) + 16px); }
.dk-item__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dk-item__name { margin: 0; font: 400 clamp(16px, .95rem + .2vw, 18px)/1.25 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.dk-item__price { flex: none; margin: 0; font: 400 18px/1.2 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dk-item__line { margin: 0; max-width: 54ch; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.dk-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 2px 0 0; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); }
.dk-item__size { letter-spacing: .06em; }
.dk-item__order { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 10px; }
.dk-item__order .opt { flex: 1 1 260px; }
.dk-item__order .step { margin-left: auto; }
.dk-item__wa { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font: 400 14.5px/1.25 var(--font-sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.dk-cups { scroll-margin-top: calc(var(--top-h, 84px) + 16px); }
.dk-cups__head { display: grid; justify-items: start; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.dk-cups__head .sc-text { margin: 0; }
.dk-notes { display: grid; gap: 8px; max-width: 72ch; margin: 0 0 clamp(28px, 4vw, 48px); padding-top: 16px; border-top: 1px solid var(--line); }
.dk-notes p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ───────── reduced motion ───────── */
@media (prefers-reduced-motion: reduce) { .opt__t, .dk-jump__a { transition: none; } }
