/* ==========================================================================
   Eataly Toronto — theme.css
   Shared design system for the redesigned Shopify storefront prototype.
   Brand: Eataly Brown lead + Beige, cream canvas, Baskervville + Mulish.
   ========================================================================== */

:root {
  /* Brand palette (hex authoritative — see brand-spec.md) */
  --brown:  #633231;   /* lead: headlines, logo, primary CTA, accents */
  --brown-700: #4f2726;
  --beige:  #D3BC8D;
  --beige-soft: #E9DDC4;
  --bg:     #FBF7F1;   /* warm cream canvas */
  --bg-2:   #F5EFE4;   /* warm band */
  --surface:#FFFFFF;
  --fg:     #2E2724;   /* body ink */
  --muted:  #7A6E64;
  --border: #E7DFD3;
  --border-strong: #D8CDBB;

  /* Reserved — narrow jobs only */
  --classic-red: #9E2B2F;  /* campaign / Eataly Moment */
  --sale-red:    #ED2C39;  /* sale/discount signage only */

  /* Department accents (secondary — category tags only) */
  --dep-seafood:#002F6C; --dep-butcher:#215732; --dep-pasta:#F5D03E;
  --dep-gelato:#4698CA;  --dep-scuola:#005F61;

  /* Type */
  --serif: 'Baskervville', 'Mrs Eaves OT', 'Baskerville', 'Libre Baskerville', Georgia, serif;
  --serif-sc: 'Baskervville SC', 'Baskervville', Georgia, serif;
  --sans: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --lining: lining-nums proportional-nums;

  --radius: 8px;
  --radius-sm: 5px;
  --shadow-card: 0 1px 2px rgba(65,40,32,.05);
  --shadow-lift: 0 12px 30px -12px rgba(65,40,32,.28);
  --shadow-drawer: -14px 0 40px -12px rgba(65,40,32,.32);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 108px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  font-variant-numeric: var(--lining);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: 1rem; }

/* ---------- Typography ---------------------------------------------------- */
.eyebrow {
  font-family: var(--serif-sc);
  font-size: clamp(12px, 1.1vw, 13px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  display: inline-block;
}
h1, h2, h3, .u-serif { font-family: var(--serif); font-weight: 400; color: var(--brown); letter-spacing: -.01em; line-height: 1.08; }
.display { font-family: var(--serif); color: var(--brown); font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.015em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 23px); }
.italic { font-style: italic; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--fg); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.price { font-weight: 700; color: var(--brown); font-variant-numeric: var(--lining); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  --_bg: var(--brown); --_fg: #fff; --_bd: var(--brown);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  padding: 13px 22px; border-radius: var(--radius); font-weight: 700;
  letter-spacing: .01em; line-height: 1; min-height: 46px;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--brown-700); border-color: var(--brown-700); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --_bg: transparent; --_fg: var(--brown); --_bd: var(--border-strong); }
.btn--ghost:hover { --_bg: var(--bg-2); background: var(--bg-2); border-color: var(--brown); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; padding: 16px 28px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 10px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

.link-underline { color: var(--brown); font-weight: 600; border-bottom: 1.5px solid var(--beige); padding-bottom: 1px; transition: border-color .15s; }
.link-underline:hover { border-color: var(--brown); }

/* ---------- Section head -------------------------------------------------- */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 3vw, 30px); flex-wrap: wrap; }
.shead__t { display: flex; flex-direction: column; gap: 8px; }
.shead h2 { max-width: 20ch; }

/* ---------- Badges / tags ------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: var(--bg-2); color: var(--brown);
}
.badge--sale { background: #fff; color: var(--sale-red); border: 1.5px solid var(--sale-red); }
.badge--best { background: var(--brown); color: #fff; }
.badge--new  { background: var(--beige-soft); color: var(--brown-700); }
.dep { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.dep::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--_c, var(--beige)); flex: none; }
.dep--pasta   { --_c: var(--dep-pasta); }
.dep--butcher { --_c: var(--dep-butcher); }
.dep--seafood { --_c: var(--dep-seafood); }
.dep--scuola  { --_c: var(--dep-scuola); }
.dep--gelato  { --_c: var(--dep-gelato); }
.dep--pantry  { --_c: var(--beige); }
.dep--wine    { --_c: var(--brown-700); }

/* ---------- Placeholder media (art-direction stand-ins) ------------------- */
.ph-img {
  position: relative; overflow: hidden; background:
    radial-gradient(120% 90% at 78% 12%, rgba(211,188,141,.55), transparent 55%),
    linear-gradient(160deg, #efe6d4 0%, #f6f0e5 48%, #ece1cc 100%);
  display: grid; place-items: center; color: var(--brown-700); isolation: isolate;
}
.ph-img::after { /* faint tooth so it doesn't read as a flat AI block */
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(120,90,60,.10) 1px, transparent 1.4px);
  background-size: 7px 7px;
}
.ph-img__label {
  position: relative; z-index: 1; text-align: center; padding: 12px 16px;
  font-family: var(--serif-sc); text-transform: uppercase; letter-spacing: .14em;
  font-size: 12.5px; color: var(--brown); line-height: 1.6; opacity: .82;
}
.ph-img__label small { display: block; font-family: var(--sans); letter-spacing: .04em; text-transform: none; font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ==========================================================================
   Header (injected by theme.js)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 6px 20px -14px rgba(65,40,32,.4); }
.hdr__store { background: var(--brown); color: var(--beige); font-size: 12.5px; letter-spacing: .02em; }
.hdr__store .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding-block: 6px; }
.hdr__store a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
.hdr__store .sep { opacity: .5; }
.hdr__store .dot { color: #7ec98f; }
.hdr__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 74px; }
.brand { font-family: var(--serif); color: var(--brown); font-size: 30px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; padding-left: .26em; line-height: 1; white-space: nowrap; }
.brand--knockout { color: #fff; }
.hdr__nav { display: flex; gap: clamp(14px, 1.6vw, 26px); justify-self: center; }
.hdr__nav a { font-weight: 600; font-size: 15px; color: var(--fg); padding: 8px 2px; border-bottom: 2px solid transparent; letter-spacing: .01em; white-space: nowrap; }
.hdr__nav a:hover { color: var(--brown); border-color: var(--beige); }
.hdr__nav a[aria-current="page"] { color: var(--brown); border-color: var(--brown); }
.hdr__actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.iconbtn { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--brown); transition: background .15s; }
.iconbtn:hover { background: var(--bg-2); }
.iconbtn svg { width: 22px; height: 22px; stroke-width: 1.7; }
.cart-count { position: absolute; top: 6px; right: 5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brown); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cart-count[data-count="0"] { display: none; }
.hdr__menu { display: none; }

/* Header search (desktop inline / mobile sheet) */
.hdr__search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 999px; padding: 8px 14px; min-width: 220px; }
.hdr__search:focus-within { border-color: var(--brown); }
.hdr__search input { border: 0; outline: 0; width: 100%; background: none; font-size: 14.5px; }
.hdr__search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

@media (max-width: 960px) {
  .hdr__nav, .hdr__search.is-inline { display: none; }
  .hdr__bar { grid-template-columns: auto 1fr auto; min-height: 60px; }
  .brand { font-size: 24px; }
  .hdr__menu { display: grid; }
}

/* Mobile menu sheet */
.msheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.msheet.is-open { visibility: visible; }
.msheet__bd { position: absolute; inset: 0; background: rgba(46,39,36,.42); opacity: 0; transition: opacity .25s; }
.msheet.is-open .msheet__bd { opacity: 1; }
.msheet__panel { position: absolute; inset: 0 12% 0 0; max-width: 380px; background: var(--bg); box-shadow: var(--shadow-lift); transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding: 18px; overflow: auto; }
.msheet.is-open .msheet__panel { transform: none; }
.msheet a { display: block; padding: 14px 6px; font-family: var(--serif); font-size: 22px; color: var(--brown); border-bottom: 1px solid var(--border); }

/* ==========================================================================
   Footer (injected)
   ========================================================================== */
.site-footer { margin-top: clamp(50px, 8vw, 96px); background: var(--brown); color: var(--beige); }
.site-footer a { color: #fff; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; padding-block: clamp(40px, 6vw, 64px); }
.ftr__brand .brand { color: #fff; margin-bottom: 14px; }
.ftr h4 { color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.ftr ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ftr li a { color: rgba(255,255,255,.82); font-size: 14.5px; }
.ftr li a:hover { color: #fff; }
.ftr__store p { color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7; }
.ftr__store strong { color: #fff; font-weight: 700; }
.ftr__news { display: flex; gap: 8px; margin-top: 12px; }
.ftr__news input { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 12px 14px; color: #fff; }
.ftr__news input::placeholder { color: rgba(255,255,255,.6); }
.ftr__news .btn { --_bg: var(--beige); --_fg: var(--brown-700); --_bd: var(--beige); }
.ftr__news .btn:hover { --_bg: #fff; background: #fff; border-color: #fff; }
.ftr__bottom { border-top: 1px solid rgba(255,255,255,.18); padding-block: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.7); }
@media (max-width: 800px){ .ftr__grid { grid-template-columns: 1fr 1fr; gap: 26px; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 480px){ .ftr__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Product card (the protected add-to-cart pattern, everywhere)
   ========================================================================== */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.pgrid--dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); transition: transform .16s ease, box-shadow .16s ease, border-color .16s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.pcard__media { aspect-ratio: 1 / 1; }
.pcard__media .ph-img { position: absolute; inset: 0; }
.pcard__mediawrap { position: relative; aspect-ratio: 1/1; }
.pcard__flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.pcard__fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; color: var(--brown); }
.pcard__fav svg { width: 19px; height: 19px; stroke-width: 1.7; }
.pcard__fav.is-on { color: var(--brown-700); }
.pcard__fav.is-on svg { fill: currentColor; }
.pcard__body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__title { font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--fg); }
.pcard__meta { font-size: 12.5px; color: var(--muted); }
.pcard__pricerow { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.pcard__price { font-size: 17px; }
.pcard__was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.pcard__sale { color: var(--sale-red); }
.pcard__weight { font-size: 11.5px; color: var(--muted); }
.pcard__add { margin-top: 10px; width: 100%; }
.pcard__add.is-added { --_bg: var(--dep-butcher); --_bd: var(--dep-butcher); background: var(--dep-butcher); border-color: var(--dep-butcher); }

/* ==========================================================================
   Cart drawer + toast (injected)
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bd { position: absolute; inset: 0; background: rgba(46,39,36,.44); opacity: 0; transition: opacity .28s; }
.drawer.is-open .drawer__bd { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg); box-shadow: var(--shadow-drawer); transform: translateX(102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer__head h3 { font-size: 20px; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer__empty { text-align: center; color: var(--muted); padding: 48px 10px; }
.drawer__foot { border-top: 1px solid var(--border); padding: 16px 20px 20px; background: var(--surface); }
.drawer__row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14.5px; }
.drawer__row strong { color: var(--brown); }
.drawer__note { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }

.litem { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.litem__media { width: 62px; height: 62px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.litem__t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.litem__m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.litem__price { font-weight: 700; color: var(--brown); white-space: nowrap; font-variant-numeric: tabular-nums; }
.litem__rm { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border-strong); margin-top: 6px; }
.litem__rm:hover { color: var(--brown-700); border-color: var(--brown-700); }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--brown); font-size: 18px; }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 34px; text-align: center; border: 0; background: none; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Toast — the mobile add-to-cart confirmation */
.toast-wrap { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 8px; width: min(420px, 92vw); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--brown); color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-lift); transform: translateY(18px); opacity: 0; transition: transform .28s, opacity .28s; pointer-events: auto; }
.toast.is-in { transform: none; opacity: 1; }
.toast__ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; flex: none; }
.toast__ic svg { width: 19px; height: 19px; }
.toast__t { flex: 1; font-size: 14px; line-height: 1.3; }
.toast__t b { font-weight: 700; }
.toast__cta { font-weight: 700; color: var(--beige); border-bottom: 1px solid var(--beige); font-size: 13px; }

/* ---------- Reveal on scroll --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .toast, .drawer__panel, .msheet__panel { transition: none; }
}

/* ---------- Generic section spacing -------------------------------------- */
.section { padding-block: clamp(44px, 6vw, 84px); }
.section--tight { padding-block: clamp(30px, 4vw, 52px); }
.band { background: var(--bg-2); }
.band--beige { background: var(--beige-soft); }
.rule { height: 1px; background: var(--border); border: 0; }

/* ---------- Utilities JS depends on -------------------------------------- */
.is-hidden { display: none !important; }
.hide-md { display: none; }
@media (max-width: 960px){ .hide-md { display: grid; } }
@media (max-width: 560px){ .hide-sm { display: none; } }
.pcard__mediawrap > .ph-img { position: absolute; inset: 0; }

/* ==========================================================================
   Home — hero + intent + editorial
   ========================================================================== */
.hero { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1.35fr; gap: clamp(20px, 3vw, 44px); align-items: stretch; padding-block: clamp(28px, 4vw, 56px); }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 30ch; }
.hero__copy .display { text-wrap: balance; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero__media { position: relative; aspect-ratio: 16/11; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lift); }
.hero__media .ph-img { position: absolute; inset: 0; }
.hero__tag { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: rgba(99,50,49,.9); color: #fff; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; backdrop-filter: blur(4px); }
@media (max-width: 820px){ .hero__grid { grid-template-columns: 1fr; } .hero__copy { max-width: none; } .hero__media { aspect-ratio: 4/3; } }

.intent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.intent { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s; }
.intent:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.intent .ph-img { position: absolute; inset: 0; }
.intent__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(46,28,26,.78), rgba(46,28,26,.05) 62%); z-index: 1; }
.intent__body { position: relative; z-index: 2; padding: 18px; }
.intent__body .eyebrow { color: var(--beige); }
.intent__body h3 { color: #fff; font-size: clamp(20px, 2.1vw, 26px); margin: 4px 0 4px; }
.intent__body p { color: rgba(255,255,255,.85); font-size: 13.5px; }
.intent__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: 14px; color: #fff; border-bottom: 1.5px solid var(--beige); padding-bottom: 2px; }
@media (max-width: 720px){ .intent-grid { grid-template-columns: 1fr 1fr; } }

.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usp__item { display: flex; gap: 12px; align-items: flex-start; }
.usp__item svg { width: 26px; height: 26px; color: var(--brown); flex: none; stroke-width: 1.6; }
.usp__item h4 { font-family: var(--sans); font-size: 14.5px; font-weight: 700; color: var(--fg); }
.usp__item p { font-size: 13px; color: var(--muted); }
@media (max-width: 760px){ .usp { grid-template-columns: 1fr 1fr; gap: 22px 16px; } }

.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 50px); align-items: center; }
.editorial__media { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--shadow-lift); }
.editorial__media .ph-img { position: absolute; inset: 0; }
.pullquote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: var(--brown); }
@media (max-width: 760px){ .editorial { grid-template-columns: 1fr; } }

/* ==========================================================================
   Collection — sticky filters + toolbar
   ========================================================================== */
.collhead { padding-block: clamp(22px, 3vw, 34px) 8px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--brown); }
.filterbar { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-block: 1px solid var(--border); padding-block: 12px; margin-bottom: clamp(16px, 2vw, 24px); }
.filterbar__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--fg); white-space: nowrap; transition: .14s; }
.chip:hover { border-color: var(--brown); }
.chip.is-on { background: var(--brown); color: #fff; border-color: var(--brown); }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--_c, var(--beige)); }
.filterbar__spacer { flex: 1; }
.filter-clear { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border-strong); }
.filter-clear:hover { color: var(--brown-700); }
.result-count { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sortsel { border: 1.5px solid var(--border-strong); border-radius: 999px; padding: 8px 12px; background: var(--surface); font-weight: 600; font-size: 13.5px; color: var(--brown); }
.loadmore-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(24px, 4vw, 40px); }
.loadmore-wrap .small { color: var(--muted); }

/* ==========================================================================
   Product detail
   ========================================================================== */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(20px, 3vw, 36px); align-items: start; }
.pdp__gallery { display: grid; grid-template-columns: 64px 1fr; gap: 12px; position: sticky; top: calc(var(--header-h) + 12px); }
.pdp__thumbs { display: flex; flex-direction: column; gap: 10px; }
.pdp__thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--border); position: relative; }
.pdp__thumb.is-on { border-color: var(--brown); }
.pdp__main { aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.pdp__main .ph-img { position: absolute; inset: 0; }
.buybox { display: flex; flex-direction: column; gap: 16px; }
.buybox__price { display: flex; align-items: baseline; gap: 12px; }
.buybox__price .price { font-size: 30px; }
.buybox h1 { margin-top: 4px; }
.buybox__rating { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.stars { color: var(--brown-700); letter-spacing: 2px; }
.addbar { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.buybox__weightnote { background: var(--bg-2); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; }
.buybox__weightnote svg { width: 18px; height: 18px; color: var(--brown); flex: none; }
.buybox details { border-top: 1px solid var(--border); }
.buybox details summary { padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.buybox details summary::-webkit-details-marker { display: none; }
.buybox details summary::after { content: "+"; color: var(--brown); font-size: 20px; }
.buybox details[open] summary::after { content: "–"; }
.buybox details p { padding-bottom: 14px; color: var(--muted); font-size: 14.5px; max-width: 60ch; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.trust-row span { display: inline-flex; gap: 7px; align-items: center; }
.trust-row svg { width: 17px; height: 17px; color: var(--brown); }
@media (max-width: 820px){ .pdp { grid-template-columns: 1fr; } .pdp__gallery { position: static; } }

/* ==========================================================================
   Cart page
   ========================================================================== */
.cartgrid { display: grid; grid-template-columns: 1.5fr .9fr; gap: clamp(20px, 3vw, 40px); align-items: start; padding-block: clamp(18px, 3vw, 30px); }
.cartlist { border-top: 1px solid var(--border); }
.cartline { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: start; }
.cartline__media { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.cartline__t { font-weight: 700; font-size: 15.5px; }
.cartline__m { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cartline__ctl { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.cartline__price { font-weight: 700; color: var(--brown); font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cartline__rm { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border-strong); }
.cartline__rm:hover { color: var(--brown-700); border-color: var(--brown-700); }

.summary { position: sticky; top: calc(var(--header-h) + 12px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-card); }
.summary h3 { font-size: 20px; margin-bottom: 14px; }
.summary__row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 7px 0; }
.summary__row.tnum span:last-child { font-variant-numeric: tabular-nums; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--border); margin-top: 8px; padding-top: 14px; }
.summary__total .lbl { font-weight: 700; }
.summary__total .amt { font-family: var(--serif); font-size: 30px; color: var(--brown); font-variant-numeric: tabular-nums; }
.summary .btn--lg { margin-top: 14px; }
.disclosure { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 12px; background: var(--bg-2); border-radius: 8px; padding: 11px 13px; }
.disclosure b { color: var(--brown); }
.securow { display: flex; justify-content: center; gap: 14px; margin-top: 12px; color: var(--muted); font-size: 12px; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.slot { border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 12px; cursor: pointer; position: relative; transition: .14s; background: var(--surface); }
.slot:hover { border-color: var(--brown); }
.slot.is-picked { border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); background: var(--bg-2); }
.slot[disabled] { opacity: .5; cursor: not-allowed; background: var(--bg-2); }
.slot__day { font-size: 12px; color: var(--muted); }
.slot__time { font-weight: 700; font-size: 14px; color: var(--brown); margin-top: 3px; }
.slot__full { font-size: 11px; color: var(--brown-700); font-weight: 700; }
.slot input { position: absolute; opacity: 0; }

.upsells { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.upsell { display: flex; gap: 12px; align-items: center; border: 1px dashed var(--border-strong); border-radius: 10px; padding: 12px; }
.upsell__media { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; position: relative; flex: none; }
.upsell__t { font-weight: 700; font-size: 13.5px; }
.upsell__p { font-size: 12.5px; color: var(--muted); }
.upsell .btn { margin-left: auto; }
.giftnote { margin-top: 12px; }
.giftnote textarea { width: 100%; border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 12px; min-height: 74px; resize: vertical; margin-top: 8px; }
@media (max-width: 860px){ .cartgrid { grid-template-columns: 1fr; } .summary { position: static; } .slots { grid-template-columns: 1fr 1fr; } .upsells { grid-template-columns: 1fr; } }

/* ==========================================================================
   Search
   ========================================================================== */
.searchhero { padding-block: clamp(26px, 4vw, 44px) 6px; text-align: center; }
.searchbig { display: flex; align-items: center; gap: 12px; max-width: 620px; margin: 16px auto 0; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 999px; padding: 14px 20px; box-shadow: var(--shadow-card); }
.searchbig:focus-within { border-color: var(--brown); }
.searchbig input { border: 0; outline: 0; width: 100%; font-size: 17px; background: none; }
.searchbig svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.suggests { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.suggests a { font-size: 13px; color: var(--brown); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 12px; }
.suggests a:hover { background: var(--bg-2); }
.search-empty { text-align: center; padding: 40px 10px; color: var(--muted); }

/* ==========================================================================
   Account
   ========================================================================== */
.acct { display: grid; grid-template-columns: 240px 1fr; gap: clamp(20px, 3vw, 40px); padding-block: clamp(20px, 3vw, 34px); align-items: start; }
.acct__nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 12px); }
.acct__nav [data-tab] { text-align: left; padding: 12px 14px; border-radius: 8px; font-weight: 600; color: var(--fg); }
.acct__nav [data-tab]:hover { background: var(--bg-2); }
.acct__nav [data-tab][aria-selected="true"] { background: var(--brown); color: #fff; }
.authcard { max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px; box-shadow: var(--shadow-card); }
.field { display: block; margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 13px 14px; background: var(--surface); }
.field input:focus { outline: 0; border-color: var(--brown); }
.orderrow { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; background: var(--surface); }
.orderrow__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.orderrow__id { font-weight: 700; color: var(--brown); }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status--done { background: color-mix(in srgb, var(--dep-butcher) 14%, #fff); color: var(--dep-butcher); }
.status--transit { background: var(--beige-soft); color: var(--brown-700); }
.orderrow__items { display: flex; gap: 8px; margin-top: 12px; }
.orderrow__thumb { width: 46px; height: 46px; border-radius: 7px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.orderrow__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 760px){ .acct { grid-template-columns: 1fr; } .acct__nav { position: static; flex-direction: row; overflow: auto; } }

/* ==========================================================================
   Launcher (index.html — theme overview)
   ========================================================================== */
.launch { min-height: 100vh; background:
  radial-gradient(120% 80% at 85% -10%, rgba(211,188,141,.4), transparent 55%), var(--bg); }
.launch__head { padding: clamp(40px, 7vw, 84px) 0 clamp(20px, 3vw, 30px); }
.launch__badge { font-family: var(--serif-sc); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-size: 12.5px; }
.launch__brand { font-family: var(--serif); color: var(--brown); font-size: clamp(44px, 8vw, 96px); letter-spacing: .12em; text-transform: uppercase; padding-left: .12em; line-height: 1; }
.launch__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding-bottom: clamp(40px, 6vw, 72px); }
.tmpl { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .16s, box-shadow .16s; }
.tmpl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tmpl__media { aspect-ratio: 16/10; position: relative; border-bottom: 1px solid var(--border); }
.tmpl__media .ph-img { position: absolute; inset: 0; }
.tmpl__n { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--brown); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; font-family: var(--serif); }
.tmpl__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tmpl__body h3 { font-size: 21px; }
.tmpl__body p { font-size: 13.5px; color: var(--muted); flex: 1; }
.tmpl__fix { font-size: 12.5px; color: var(--brown-700); background: var(--bg-2); border-radius: 8px; padding: 9px 11px; margin-top: 4px; }
.tmpl__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brown); font-size: 14px; margin-top: 6px; }

/* ==========================================================================
   Mobile-first chrome — bottom tab nav + sticky CTA bars (injected by JS)
   ========================================================================== */
.botnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.botnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); position: relative; }
.botnav a[aria-current="page"] { color: var(--brown); }
.botnav svg { width: 23px; height: 23px; stroke-width: 1.7; }
.botnav .cart-count { position: absolute; top: 3px; right: calc(50% - 20px); }

.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 72; display: none; gap: 12px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -16px rgba(65,40,32,.4); }
.mobile-cta__price { display: flex; flex-direction: column; line-height: 1.15; }
.mobile-cta__price .price { font-size: 17px; white-space: nowrap; }
.mobile-cta__price small { font-size: 10.5px; color: var(--muted); }
.mobile-cta .btn { flex: 1; }

@media (max-width: 760px) {
  .botnav { display: grid; }
  body { padding-bottom: 62px; }
  body[data-page="product"] .mobile-cta, body[data-page="cart"] .mobile-cta { display: flex; }
  body[data-page="product"] .botnav, body[data-page="cart"] .botnav { display: none; }
  body[data-page="product"], body[data-page="cart"] { padding-bottom: 78px; }
  body[data-page="launcher"], body[data-page="404"] { padding-bottom: 62px; }
  .toast-wrap { bottom: 84px; }
}

/* Honeypot — hidden anti-bot field on every form (bots fill it, humans can't see it) */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ==========================================================================
   Delivery slot picker — the store's real selector, redesigned (cart)
   ========================================================================== */
.slotpicker { margin-top: 12px; }
.slotpicker__days { display: flex; gap: 8px; margin-bottom: 12px; }
.slotday { flex: 1; border: 1.5px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 9px 8px; font-weight: 700; font-size: 14px; color: var(--fg); display: flex; flex-direction: column; gap: 2px; align-items: center; transition: .14s; }
.slotday:hover { border-color: var(--brown); }
.slotday small { font-weight: 500; font-size: 11px; color: var(--muted); }
.slotday.is-on { border-color: var(--brown); background: var(--bg-2); color: var(--brown); }
.slotday.is-on small { color: var(--brown-700); }
.slotgroup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slotgroup.is-hidden { display: none; }
.slotchip { border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 11px 8px; cursor: pointer; text-align: center; position: relative; background: var(--surface); display: flex; flex-direction: column; gap: 3px; align-items: center; transition: .14s; }
.slotchip:hover { border-color: var(--brown); }
.slotchip.is-picked { border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); background: var(--bg-2); }
.slotchip__t { font-weight: 700; font-size: 14px; color: var(--brown); font-variant-numeric: var(--lining); }
.slotchip__meta { font-size: 10.5px; color: var(--dep-butcher); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.slotchip.is-full { opacity: .55; cursor: not-allowed; }
.slotchip.is-full:hover { border-color: var(--border-strong); }
.slotchip.is-full .slotchip__meta { color: var(--muted); }
.slotchip input { position: absolute; opacity: 0; pointer-events: none; }
.slotpicker__chosen { margin-top: 12px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.slotpicker__chosen svg { width: 16px; height: 16px; color: var(--brown); flex: none; }
.slotpicker__chosen b { color: var(--brown); }
@media (max-width: 560px) { .slotgroup { grid-template-columns: 1fr 1fr; } }

/* Managed human-verification note (invisible challenge lives at checkout) */
.human-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 10px; justify-content: center; }
.human-note svg { width: 15px; height: 15px; color: var(--dep-butcher); }
