/* ==========================================================
   Cocopure: quiet, premium, product-first
   ========================================================== */
:root {
  --bg: #fbfaf7;
  --surface: #f2f0eb;
  --surface-2: #ebe8e1;
  --sage: #e7ebdc;
  --sand: #f1e9dc;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #a1a1a6;
  --line: #e3e0d9;
  --brown: #3b2a20;
  --leaf: #6f8a23;
  --gold: #d9a441;
  --night: #0c0b0a;
  --night-2: #1a1816;
  --r: 22px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; letter-spacing: inherit; }
input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -.035em; }
h3 { font-size: 1.5rem; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.muted-h { color: var(--ink-3); }
.wrap { width: min(1180px, 100% - 44px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 44px); }
.center { text-align: center; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.tint { background: var(--surface); }
.kicker { font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--leaf); margin-bottom: 12px; }
.kicker.gold { color: var(--gold); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); margin-top: 14px; }
.fine { font-size: .78rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 0 22px; border-radius: 980px; font-size: .95rem; font-weight: 500;
  transition: background .25s var(--ease), transform .2s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.full { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a3a3c; }
.btn-light { background: #f5f5f7; color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.link { color: var(--leaf); font-size: 1rem; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.link span { transition: transform .25s var(--ease); display: inline-block; }
.link:hover span, .tile:hover .link span { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link.light { color: var(--gold); }
.links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.center-links { justify-content: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; position: relative; color: var(--ink); opacity: .85; transition: opacity .2s, background .2s; }
.icon-btn:hover { opacity: 1; background: rgba(0,0,0,.04); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- Ribbon & header ---------- */
.ribbon { background: var(--surface); text-align: center; font-size: .78rem; color: var(--ink-2); padding: 9px 16px; }
.ribbon a { color: var(--leaf); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: rgba(0,0,0,.07); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--brown); }
.logo-mark { width: 28px; height: 28px; }
.logo-mark .ring-outer { stroke: var(--leaf); stroke-width: 2.6; }
.logo-mark .ring-inner { stroke: var(--brown); stroke-width: 4; }
.logo-mark .arc { stroke: var(--brown); stroke-width: 2.8; }
.logo-text { font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: .8rem; color: var(--ink); opacity: .8; transition: opacity .2s; }
.nav a:hover, .nav a.active { opacity: 1; }
.header-actions { display: flex; align-items: center; }
.cart-count { position: absolute; bottom: 5px; right: 5px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .6rem; font-weight: 600; display: grid; place-items: center; }
.cart-count.bump { animation: bump .4s var(--ease-out); }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 0; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.4rem); letter-spacing: -.045em; line-height: 1; }
.hero h1 .serif { letter-spacing: -.02em; }
.hero .kicker { font-size: 1.05rem; color: var(--brown); font-weight: 600; letter-spacing: -.01em; }
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-2); max-width: 620px; margin: 22px auto 0; }
.hero .links { justify-content: center; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease-out) forwards; }
.fade-up:nth-child(2) { animation-delay: .08s; }
.fade-up:nth-child(3) { animation-delay: .16s; }
.fade-up:nth-child(4) { animation-delay: .24s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.lineup { display: block; width: min(1240px, 100%); margin: clamp(30px, 4vw, 48px) auto 0; }
.lineup img { width: 100%; height: auto; opacity: 0; transform: translateY(40px) scale(.98); animation: rise 1.4s var(--ease-out) .35s forwards; transition: transform .8s var(--ease-out); }
.lineup:hover img { transform: translateY(-4px); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Category strip ---------- */
.cat-strip { padding: 64px 0 0; }
.cats { display: flex; justify-content: center; gap: clamp(18px, 4vw, 48px); overflow-x: auto; scrollbar-width: none; padding: 4px 4px 8px; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; width: 96px; }
.cat-img { height: 84px; display: flex; align-items: flex-end; justify-content: center; }
.cat-img img { max-height: 84px; width: auto; filter: drop-shadow(0 8px 10px rgba(40,30,20,.14)); transition: transform .4s var(--ease-out); }
.cat-img .art { width: 64px; height: 84px; background: none; }
.cat:hover .cat-img img, .cat:hover .cat-img .art { transform: translateY(-4px); }
.cat span { font-size: .8rem; font-weight: 500; text-align: center; line-height: 1.25; }

/* ---------- Shop ---------- */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.head-row h2 { max-width: 980px; }
.segmented { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 10px; position: relative; }
.segmented button { padding: 7px 18px; border-radius: 8px; font-size: .85rem; font-weight: 500; color: var(--ink-2); transition: all .25s var(--ease); }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.segmented.full { display: flex; }
.segmented.full button { flex: 1; }
.mode-note { color: var(--ink-2); font-size: .9rem; margin-bottom: 28px; min-height: 1.4em; }
.filter-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border-radius: 980px; font-size: .85rem; font-weight: 500; color: var(--ink-2); background: transparent; border: 1px solid var(--line); transition: all .2s; }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort select, .field select, .field input, .field textarea {
  appearance: none; -webkit-appearance: none; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.sort select, .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.sort select { width: auto; border-radius: 980px; font-size: .85rem; padding: 8px 36px 8px 16px; background-color: transparent; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(111,138,35,.15); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), transform .4s var(--ease); animation: cardIn .6s var(--ease-out) both; }
.card:hover { box-shadow: 0 20px 40px -18px rgba(40,30,20,.22); transform: translateY(-3px); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card-media { position: relative; aspect-ratio: 1; background: var(--surface); display: block; width: 100%; overflow: hidden; }
.card-media img, .card-media .art { position: absolute; inset: 0; margin: auto; }
.card-media img { max-height: 72%; max-width: 72%; width: auto; height: auto; filter: drop-shadow(0 14px 16px rgba(40,30,20,.16)); transition: transform .6s var(--ease-out); }
.card-media .art { width: 62%; height: 78%; }
.card:hover .card-media img { transform: scale(1.04); }
.flag { position: absolute; top: 14px; left: 16px; font-size: .72rem; font-weight: 600; color: #b2581b; }
.flag.green { color: var(--leaf); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.02rem; letter-spacing: -.015em; line-height: 1.25; }
.card-desc { font-size: .84rem; color: var(--ink-2); margin-top: 4px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.size { font-size: .78rem; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); transition: all .2s; }
.size:hover { border-color: var(--ink-3); color: var(--ink); }
.size.active { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.size em { font-style: normal; color: var(--ink-3); margin-left: 3px; font-size: .7rem; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; }
.price { font-size: .98rem; font-weight: 600; }
.price small { display: block; font-size: .7rem; color: var(--ink-3); font-weight: 400; }
.add { font-size: .82rem; font-weight: 500; padding: 8px 16px; border-radius: 980px; background: var(--ink); color: #fff; transition: background .2s, transform .2s; white-space: nowrap; }
.add:hover { background: #3a3a3c; }
.add:active { transform: scale(.96); }
.add.ghost { background: transparent; color: var(--leaf); padding: 8px 4px; }
.add.ghost:hover { text-decoration: underline; }

/* Illustrated items */
.art { display: block; }
.art svg { width: 100%; height: 100%; stroke: none; filter: drop-shadow(0 14px 16px rgba(40,30,20,.14)); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.tile { background: #fff; border-radius: 28px; padding: 44px 44px 0; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; min-height: 520px; transition: transform .5s var(--ease-out); }
.tile:hover { transform: scale(1.008); }
.tile-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; padding: 56px 64px; min-height: 460px; gap: 40px; }
.tile-sage { background: var(--sage); }
.tile-sand { background: var(--sand); }
.tile-copy h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.tile-copy p:not(.kicker) { color: var(--ink-2); margin: 12px 0 18px; max-width: 420px; }
.tile-wide .tile-copy { flex: 1; }
.tile-media { flex: 1; display: flex; align-items: flex-end; justify-content: center; margin-top: 28px; }
.tile-media img { max-height: 280px; width: auto; filter: drop-shadow(0 20px 24px rgba(40,30,20,.18)); transition: transform .8s var(--ease-out); }
.tile:hover .tile-media img { transform: translateY(-6px); }
.tile-wide .tile-media { margin: 0; align-items: center; gap: 0; }
.tile-media.duo img { max-height: 330px; }
.tile-media.duo img + img { margin-left: -36px; transform: translateY(18px); }
.tile:hover .tile-media.duo img + img { transform: translateY(10px); }

/* ---------- Dark (Zanzibar) ---------- */
.dark { background: var(--night); color: #f5f5f7; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.dark h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -.045em; }
.z-sub { font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: #a1a1a6; margin-top: 10px; letter-spacing: -.02em; }
.z-sub .serif { color: var(--gold); }
.z-stage { position: relative; height: clamp(360px, 48vw, 560px); display: grid; place-items: center; margin: 30px 0 10px; }
.z-glow { position: absolute; width: min(760px, 90vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(217,120,40,.38), rgba(217,120,40,.08) 45%, transparent 68%); filter: blur(10px); }
.z-jar { position: absolute; inset: 0; margin: auto; height: 92%; width: auto; max-width: 80%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0,0,0,.6)); transform: translateY(30px) scale(.94); opacity: 0; transition: transform 1.4s var(--ease-out), opacity 1.2s var(--ease-out); }
.z-stage.in .z-jar { transform: none; opacity: 1; }
.z-statement { font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; max-width: 900px; margin: 40px auto 70px; text-align: center; color: #86868b; }
.z-statement span { color: #f5f5f7; }
.ingredients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ing { background: var(--night-2); border-radius: 20px; padding: 26px 16px 22px; text-align: center; transition: background .3s; }
.ing:hover, .ing.open { background: #24211e; }
.ing img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.ing h4 { font-size: .95rem; letter-spacing: -.01em; }
.ing p { font-size: .8rem; color: #86868b; margin-top: 4px; }
.ing .more { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out), margin .3s; color: #d2d2d7; }
.ing.open .more { max-height: 140px; margin-top: 10px; }
.ing .plus { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #424245; margin-top: 12px; font-size: .9rem; color: #a1a1a6; transition: transform .3s var(--ease); }
.ing.open .plus { transform: rotate(45deg); }
.z-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.z-card { background: var(--night-2); border-radius: 24px; padding: 40px; }
.z-card h3 { font-size: 1.8rem; letter-spacing: -.03em; margin-bottom: 22px; }
.uses { list-style: none; padding: 0; margin: 6px 0 28px; }
.uses li { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.03em; padding: 12px 0; border-bottom: 1px solid #2c2a27; display: flex; align-items: baseline; gap: 16px; }
.uses span { font-size: .8rem; color: var(--gold); font-weight: 500; letter-spacing: 0; }
.dark .fine { color: #6e6e73; }
.dark .field > span { color: #a1a1a6; }
.dark .field select { background-color: #2a2724; border-color: #2a2724; color: #f5f5f7; }
.dark-seg { background: #2a2724; }
.dark-seg button { color: #a1a1a6; }
.dark-seg button.active { background: #4a4540; color: #fff; box-shadow: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: #3a3632; padding: 0; border: 0; margin: 12px 0 4px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #f5f5f7; box-shadow: 0 2px 6px rgba(0,0,0,.4); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #f5f5f7; border: 0; cursor: pointer; }
input[type=range]:focus { box-shadow: none; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2c2a27; border-radius: 16px; overflow: hidden; margin: 22px 0; }
.calc-out div { background: var(--night-2); padding: 16px 8px; text-align: center; }
.calc-out strong { display: block; font-size: 1.7rem; font-weight: 600; letter-spacing: -.03em; color: #f5f5f7; }
.calc-out span { font-size: .75rem; color: #86868b; }

/* ---------- Fields ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field > span b { font-weight: 600; color: inherit; }

/* ---------- Swap ---------- */
.swap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; margin-top: 48px; }
.swap-in { background: var(--surface); border-radius: 28px; padding: 40px; }
.amount { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.swap-out { background: var(--surface); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: center; }
.swap-out .img { display: grid; place-items: center; height: 190px; }
.swap-out img { max-height: 190px; width: auto; filter: drop-shadow(0 16px 18px rgba(40,30,20,.18)); animation: pop .6s var(--ease-out); }
.swap-out .art { width: 120px; height: 170px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.swap-qty { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; animation: pop .5s var(--ease-out); }
.swap-out h3 { font-size: 1.15rem; margin-top: 8px; }
.swap-out p { color: var(--ink-2); font-size: .92rem; margin-top: 10px; }
.swap-out .extra { color: var(--ink); font-weight: 500; }
.swap-out .link { margin-top: 14px; }

/* ---------- Recipes ---------- */
.recipes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.recipe { text-align: left; display: flex; flex-direction: column; }
.recipe-img { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; position: relative; }
.recipe-img img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.recipe-img img.cut { position: absolute; inset: 0; margin: auto; max-height: 62%; max-width: 70%; width: auto; height: auto; filter: drop-shadow(0 18px 20px rgba(40,30,20,.2)); transition: transform .8s var(--ease-out); }
.recipe:hover .recipe-img img { transform: scale(1.04); }
.recipe-meta { font-size: .75rem; color: var(--ink-2); margin-top: 16px; text-transform: uppercase; letter-spacing: .06em; }
.recipe h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.65rem; letter-spacing: -.01em; line-height: 1.1; margin-top: 6px; }

/* ---------- Story ---------- */
.statement { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.statement .serif { font-weight: 400; color: var(--leaf); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 80px; }
.pillar { border-top: 1px solid var(--line); padding-top: 22px; }
.pillar .num { font-size: .8rem; color: var(--ink-3); }
.pillar h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.pillar p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Wholesale ---------- */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0 40px; }
.terms div { border-top: 1px solid var(--line); padding-top: 16px; }
.terms strong { display: block; font-weight: 600; font-size: 1.05rem; }
.terms span { color: var(--ink-2); font-size: .9rem; }
.table-wrap { position: relative; background: #fff; border-radius: var(--r); overflow: auto; }
.price-table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: .92rem; }
.price-table th { text-align: left; font-size: .72rem; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; padding: 18px 24px 12px; }
.price-table td { padding: 12px 24px; border-top: 1px solid #f0eee9; }
.price-table tr.group td { font-weight: 600; padding-top: 22px; border-top: 1px solid var(--line); }
.price-table tbody tr:first-child td { border-top: 0; }
.price-table td:nth-child(3) { font-variant-numeric: tabular-nums; font-weight: 500; }
.price-table td:last-child { text-align: right; }
.price-table tr.group td { text-align: left; }
.tbl-add { color: var(--leaf); font-size: .85rem; font-weight: 500; }
.tbl-add:hover { text-decoration: underline; }
.tag { font-size: .68rem; color: var(--ink-3); margin-left: 6px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- FAQ ---------- */
.faq { margin-top: 50px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 26px 0; animation: pop .4s var(--ease-out); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.details { margin: 30px 0; }
.details div { display: grid; grid-template-columns: 90px 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.details dt { color: var(--ink-2); font-size: .9rem; }
.details dd { margin: 0; font-weight: 500; }
.details a:hover { color: var(--leaf); }
.map { margin-top: 30px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(.95); }
.form { background: #fff; border-radius: 28px; padding: 40px; }
.form h3 { margin-bottom: 24px; }
.form-msg { font-size: .88rem; margin-top: 12px; min-height: 1.3em; color: var(--ink-2); }
.form-msg.ok { color: var(--leaf); }
.form-msg.err { color: #c4321b; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); font-size: .8rem; color: var(--ink-2); padding: 60px 0 30px; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.newsletter h3 { font-size: 1.6rem; color: var(--ink); }
.newsletter p { font-size: .95rem; margin-top: 6px; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input { flex: 1; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 980px; padding: 0 20px; min-height: 44px; font-size: .95rem; }
.newsletter .form-msg { flex-basis: 100%; margin: 4px 0 0 4px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: -.01em; }
.footer-cols a, .footer-cols button, .footer-cols p { display: block; margin-bottom: 9px; text-align: left; font-size: .8rem; }
.footer-cols a:hover, .footer-cols button:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; flex-wrap: wrap; }
.footer-base p:last-child { max-width: 560px; color: var(--ink-3); }

/* ---------- Overlays ---------- */
.backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.backdrop.show { opacity: 1; visibility: visible; }
body.locked { overflow: hidden; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 90; background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease-out), visibility .5s; }
.drawer.open { transform: none; visibility: visible; box-shadow: -30px 0 60px rgba(0,0,0,.12); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 12px; }
.drawer-head h3 { font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.pill { font-size: .7rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); background: var(--surface-2); padding: 4px 10px; border-radius: 980px; }
.ship-meter { padding: 4px 24px 16px; font-size: .85rem; color: var(--ink-2); }
.ship-meter b { color: var(--ink); font-weight: 600; }
.meter { height: 3px; background: var(--surface-2); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--leaf); border-radius: 3px; transition: width .7s var(--ease-out); }
.cart-items { flex: 1; overflow-y: auto; padding: 0 24px; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; animation: pop .4s var(--ease-out); }
.line-img { width: 76px; height: 76px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; }
.line-img img { max-width: 70%; max-height: 80%; width: auto; }
.line-img .art { width: 44px; height: 60px; }
.line h4 { font-size: .92rem; letter-spacing: -.01em; line-height: 1.3; }
.line .meta { font-size: .78rem; color: var(--ink-2); margin-top: 2px; }
.line .warn { font-size: .74rem; color: #c4321b; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; border: 1px solid var(--line); border-radius: 980px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; color: var(--ink-2); font-size: 1rem; }
.qty button:hover { color: var(--ink); }
.qty input { width: 34px; border: 0; background: none; text-align: center; font-size: .85rem; font-weight: 500; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.line-right { text-align: right; font-size: .92rem; font-weight: 500; }
.remove { display: block; margin-top: 6px; font-size: .75rem; color: var(--ink-3); font-weight: 400; }
.remove:hover { color: var(--ink); }
.empty { text-align: center; padding: 70px 10px; color: var(--ink-2); }
.empty h4 { font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.empty .btn { margin-top: 22px; }
.drawer-foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: var(--bg); }
.drawer-foot .segmented { margin-bottom: 14px; }
.small-field textarea { resize: vertical; font-size: .88rem; padding: 9px 12px; }
.row { display: flex; justify-content: space-between; font-size: .9rem; padding: 3px 0; }
.row.muted { color: var(--ink-2); }
.row.total { font-size: 1.1rem; font-weight: 600; padding: 12px 0 16px; }
.cart-warning { font-size: .82rem; color: #c4321b; margin-bottom: 12px; }
.drawer-foot .fine { margin-top: 10px; }

.search { position: fixed; inset: 0 0 auto 0; z-index: 90; background: var(--bg); padding: 26px 0 50px; transform: translateY(-100%); visibility: hidden; transition: transform .5s var(--ease-out), visibility .5s; max-height: 90vh; overflow-y: auto; }
.search.open { transform: none; visibility: visible; box-shadow: 0 30px 60px rgba(0,0,0,.1); }
.search-bar { display: flex; align-items: center; gap: 12px; }
.search-bar svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.03em; outline: none; }
.search-bar input::placeholder { color: var(--ink-3); }
.search-label { font-size: .75rem; color: var(--ink-2); margin: 28px 0 12px; }
.search-results { display: grid; gap: 4px; }
.s-item { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 14px; text-align: left; transition: background .2s; width: 100%; }
.s-item:hover { background: var(--surface); }
.s-img { width: 52px; height: 52px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; flex: none; }
.s-img img { max-height: 80%; max-width: 70%; width: auto; }
.s-img .art { width: 30px; height: 42px; }
.s-item strong { display: block; font-weight: 500; font-size: .95rem; }
.s-item span { font-size: .8rem; color: var(--ink-2); }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.modal.open { visibility: visible; pointer-events: auto; }
.modal-card { position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--bg); border-radius: 28px; opacity: 0; transform: scale(.96) translateY(14px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.8); backdrop-filter: blur(8px); }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; }
.pd-media { background: var(--surface); display: grid; place-items: center; min-height: 520px; padding: 40px; }
.pd-media img { max-height: 420px; width: auto; filter: drop-shadow(0 26px 30px rgba(40,30,20,.2)); animation: pop .7s var(--ease-out); }
.pd-media .art { width: 220px; height: 320px; }
.pd-info { padding: 48px 40px 40px; display: flex; flex-direction: column; }
.pd-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.pd-info .desc { color: var(--ink-2); margin-top: 14px; }
.pd-info ul { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.pd-info li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pd-label { font-size: .8rem; font-weight: 500; color: var(--ink-2); margin: 24px 0 8px; }
.pd-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pd-size { border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: left; transition: border-color .2s, box-shadow .2s; }
.pd-size b { display: block; font-weight: 600; font-size: .9rem; }
.pd-size small { color: var(--ink-2); font-size: .75rem; }
.pd-size.active { border-color: var(--leaf); box-shadow: 0 0 0 1px var(--leaf); }
.pd-buy { display: flex; gap: 10px; align-items: center; margin-top: 26px; }
.pd-buy .qty { margin: 0; }
.pd-buy .qty button { width: 40px; height: 44px; }
.pd-buy .btn { flex: 1; }
.pd-note { font-size: .8rem; color: var(--ink-2); margin-top: 12px; }
.pd-note .link { font-size: .8rem; }
.recipe-modal .rm-hero { height: 320px; display: grid; place-items: center; overflow: hidden; }
.recipe-modal .rm-hero img.photo { width: 100%; height: 100%; object-fit: cover; }
.recipe-modal .rm-hero img.cut { max-height: 240px; width: auto; filter: drop-shadow(0 20px 24px rgba(40,30,20,.2)); }
.rm-body { padding: 40px 48px 48px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.rm-title { grid-column: 1 / -1; }
.rm-title h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.01em; }
.rm-title p { color: var(--ink-2); font-size: .85rem; margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.rm-body h4 { font-size: .8rem; font-weight: 600; margin-bottom: 14px; color: var(--ink-2); }
.ing-check { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ing-check li { border-bottom: 1px solid var(--line); }
.ing-check label { display: flex; gap: 12px; padding: 10px 0; cursor: pointer; font-size: .92rem; }
.ing-check input { accent-color: var(--leaf); width: 17px; height: 17px; margin-top: 2px; flex: none; }
.ing-check input:checked + span { color: var(--ink-3); text-decoration: line-through; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; padding-bottom: 18px; font-size: .95rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: .8rem; color: var(--ink-3); padding-top: 3px; }
.rm-body .btn { margin-top: 22px; }
.flyer-modal { background: var(--night); padding: 20px; }
.flyer-modal img { margin: 0 auto; max-height: calc(100vh - 80px); width: auto; border-radius: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 160%); background: rgba(29,29,31,.92); backdrop-filter: blur(12px); color: #fff; font-size: .88rem; padding: 12px 20px; border-radius: 980px; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); transition: transform .5s var(--ease-out); }
.toast.show { transform: translate(-50%, 0); }
.toast button { color: #b6d36a; font-weight: 500; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .grid, .recipes { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 22px; }
  .ingredients { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0; padding: 18px 28px; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font-size: 1.7rem; font-weight: 600; letter-spacing: -.03em; opacity: 1; padding: 10px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { flex-direction: column; align-items: stretch; padding: 40px 32px 0; }
  .tile-wide .tile-media { margin-top: 24px; }
  .tile { min-height: 0; padding: 36px 32px 0; }
  .tile-media { padding-bottom: 0; }
  .tile-media img { max-height: 240px; }
  .tile-media.duo img { max-height: 260px; }
  .z-grid, .swap, .contact, .newsletter { grid-template-columns: 1fr; }
  .pillars, .terms { grid-template-columns: 1fr; gap: 0; }
  .pillar, .terms div { padding: 20px 0; }
  .pillars { margin-top: 50px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .pd { grid-template-columns: 1fr; }
  .pd-media { min-height: 0; padding: 40px 20px; }
  .pd-media img { max-height: 300px; }
  .rm-body { grid-template-columns: 1fr; padding: 30px 26px 36px; gap: 30px; }
  .recipe-modal .rm-hero { height: 240px; }
  .contact { gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { border-radius: 18px; }
  .card-body { padding: 14px 14px 16px; }
  .card-desc { display: none; }
  .sizes { margin-top: 10px; }
  .price-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .add { text-align: center; }
  .recipes { grid-template-columns: 1fr 1fr; gap: 14px; }
  .recipe h3 { font-size: 1.3rem; }
  .ingredients { grid-template-columns: 1fr 1fr; }
  .ingredients .ing:last-child { grid-column: 1 / -1; }
  .z-card, .swap-in, .swap-out, .form { padding: 28px 22px; }
  .swap-out { grid-template-columns: 90px 1fr; gap: 18px; }
  .swap-out .img { height: 130px; }
  .swap-out img { max-height: 130px; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-row .chips { margin: 0 -16px; padding: 0 16px; }
  .sort select { width: 100%; }
  .head-row .segmented { width: 100%; }
  .head-row .segmented button { flex: 1; }
  .lineup { width: 124%; margin-left: -12%; }
  .cats { justify-content: flex-start; margin: 0 -16px; padding: 4px 16px 8px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .newsletter form { flex-direction: column; }
  .newsletter input { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
