/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

:root {
  /* Light warm base — white/cream like the logo plate */
  --bg:        #fbf7ef;
  --bg-alt:    #f3e9d7;
  --surface:   #ffffff;

  /* Ink — dark wine-brown text, never pure black */
  --ink:       #271512;
  --ink-soft:  #4d322c;
  --ink-mute:  #8c7568;

  /* Brand — dark wine red (primary) + cheese yellow (secondary accent) */
  --wine:      #7c1420;
  --wine-2:    #52080f;
  --cheese:    #e2ac41;
  --cheese-deep: #b07f24;

  --line:      rgba(39, 21, 18, 0.12);

  /* Scoped light tokens for text sitting over the dark hero photo / wine bands */
  --on-dark:      #fdf8ec;
  --on-dark-soft: rgba(253, 248, 236, 0.82);
  --on-dark-mute: rgba(253, 248, 236, 0.6);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 78px;
  --container: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; letter-spacing: -0.01em; font-family: var(--display); font-weight: 700; text-transform: uppercase; }
ul { list-style: none; padding: 0; }
::selection { background: var(--wine); color: var(--on-dark); }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10001;
  padding: .7rem 1.2rem; background: var(--wine); color: var(--on-dark);
  border-radius: 8px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =============================================================
   3. Reveal / split utilities
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

.split-word, .split-line { display: inline-block; }
[data-split] .split-word { opacity: 0; transform: translateY(22px); }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: .9rem;
  display: block;
}
h2 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin-bottom: 1rem; color: var(--ink); }
.section-sub {
  font-family: var(--sans); text-transform: none; font-weight: 400;
  color: var(--ink-mute); max-width: 46ch; font-size: 1.05rem;
}
.section-head { max-width: 62ch; margin-bottom: 3rem; }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.9rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), background-color .3s, border-color .3s;
}
.btn-small { padding: .7rem 1.4rem; font-size: .85rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--wine), var(--wine-2));
  color: var(--on-dark);
  box-shadow: 0 10px 30px -8px rgba(124, 20, 32, .45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -10px rgba(124, 20, 32, .55); }
.btn-ghost {
  border: 1px solid rgba(39, 21, 18, .28); color: var(--ink);
  background: rgba(255,255,255,.5);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--wine); background: rgba(124,20,32,.06); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

/* Ghost buttons placed over the dark hero need light styling */
.hero .btn-ghost {
  border-color: rgba(253,248,236,.4); color: var(--on-dark); background: rgba(253,248,236,.06);
}
.hero .btn-ghost:hover { border-color: var(--cheese); background: rgba(226,172,65,.12); }

.has-magnetic { display: inline-flex; }
.magnetic-inner { display: inline-flex; align-items: center; gap: inherit; will-change: transform; }

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease-out), clip-path 1s var(--ease-soft);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.splash-logo { width: 120px; height: auto; animation: splashPulse 1.6s var(--ease-soft) infinite; filter: drop-shadow(0 10px 30px rgba(124,20,32,.18)); }
@keyframes splashPulse { 0%,100% { opacity: .55; transform: scale(.97); } 50% { opacity: 1; transform: scale(1); } }
.splash-line { width: 64px; height: 2px; background: linear-gradient(90deg, transparent, var(--wine), transparent); animation: splashLine 1.6s ease-in-out infinite; }
@keyframes splashLine { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* =============================================================
   7. Scroll progress
   ============================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 999; background: rgba(39,21,18,.08); pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--cheese));
  transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear;
}

/* =============================================================
   8. Nav — light text over the hero, flips dark once solid
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200; height: var(--nav-h);
  color: var(--on-dark);
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s, color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.nav-solid {
  background: linear-gradient(135deg, var(--wine), var(--wine-2));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 4px 24px -8px rgba(20,10,8,.4);
}
.nav-inner {
  max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
@media (min-width: 720px) { .nav-inner { padding-inline: 2rem; } }
.nav-brand { display: flex; align-items: center; gap: .7rem; }
.nav-brand img { width: auto; height: 58px; border-radius: 6px; }
.nav-brand-text { font-family: var(--display); font-size: 1.15rem; letter-spacing: .01em; text-transform: uppercase; color: inherit; }
.nav-brand-text em { color: var(--cheese); font-style: normal; }
.nav-links { display: none; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-size: .92rem; font-weight: 500; padding: .3rem 0; color: inherit; opacity: .82; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--cheese);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: none; align-items: center; gap: 1.1rem; }
@media (min-width: 720px) { .nav-actions { display: flex; } }
.nav-phone { display: flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: inherit; opacity: .88; }
.nav-phone:hover { opacity: 1; color: var(--cheese); }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; align-items: center;
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span { width: 22px; height: 2px; background: currentColor; transition: transform .35s var(--ease-out), opacity .35s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: linear-gradient(165deg, var(--wine), var(--wine-2));
  color: var(--on-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.nav-mobile nav a { font-family: var(--display); font-size: 1.9rem; text-transform: uppercase; }
.nav-mobile nav a:hover { color: var(--cheese); }
.nav-mobile .btn-ghost { border-color: rgba(253,248,236,.4); color: var(--on-dark); }
.nav-mobile .btn-ghost:hover { border-color: var(--cheese); background: rgba(226,172,65,.14); }

/* =============================================================
   9. Hero — stays a dark, photo-driven island within the light site
   ============================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,10,8,.55) 0%, rgba(20,10,8,.35) 32%, rgba(20,10,8,.55) 68%, rgba(20,10,8,.96) 100%),
    linear-gradient(90deg, rgba(20,10,8,.75) 0%, rgba(20,10,8,.15) 55%);
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 45% at var(--mesh-x) var(--mesh-y), rgba(124,20,32,.5), transparent 65%),
    conic-gradient(from var(--mesh-angle), rgba(226,172,65,.18), rgba(82,8,15,.12), rgba(226,172,65,.18));
  filter: blur(90px) saturate(120%);
  opacity: .85; mix-blend-mode: screen;
  animation: meshShift 24s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 25%; --mesh-y: 30%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 68%; --mesh-y: 55%; }
  100% { --mesh-angle: 360deg; --mesh-x: 25%; --mesh-y: 30%; }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner { position: relative; z-index: 1; padding: 8rem 1.25rem 5rem; max-width: 760px; margin-inline: auto; width: 100%; }
@media (min-width: 720px)  { .hero-inner { padding-inline: 2rem; } }
@media (min-width: 1280px) { .hero-inner { padding-inline: 2.5rem; margin-inline: 3rem 0; max-width: 820px; } }

.hero-kicker { font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cheese); margin-bottom: 1.3rem; }
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: .96; margin-bottom: 1.4rem;
  color: var(--on-dark);
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero-sub { font-family: var(--sans); font-size: 1.15rem; color: var(--on-dark-soft); max-width: 46ch; margin-bottom: 2.2rem; text-transform: none; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .85rem; color: var(--on-dark-mute); }
.hero-meta-item { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd88c; box-shadow: 0 0 0 3px rgba(127,216,140,.25); animation: dotPulse 2.4s ease-in-out infinite; }
.hero-meta .dot.is-closed { background: #c9836f; box-shadow: 0 0 0 3px rgba(201,131,111,.25); animation: none; opacity: .8; }
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.hero-scroll {
  position: absolute; bottom: 1.6rem; right: 1.6rem; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(253,248,236,.3);
  display: none; align-items: center; justify-content: center; color: var(--on-dark);
  animation: scrollBob 2.2s ease-in-out infinite;
}
@media (min-width: 720px) { .hero-scroll { display: flex; } }
@keyframes scrollBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* =============================================================
   10. About
   ============================================================= */
.about { padding: 7rem 0; background: var(--bg); position: relative; }
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; align-items: center; } }
.about-figure { border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; isolation: isolate; box-shadow: 0 40px 80px -30px rgba(39,21,18,.35); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-text { font-size: 1.08rem; color: var(--ink-mute); max-width: 56ch; margin-bottom: 2.4rem; }
.about-pillars { display: grid; gap: 1.8rem; }
@media (min-width: 540px) { .about-pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { border-top: 2px solid var(--wine); padding-top: 1rem; }
.pillar-num { font-family: var(--mono); color: var(--cheese-deep); font-size: .85rem; }
.pillar h3 { font-size: 1.05rem; margin: .5rem 0 .4rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.pillar p { font-size: .92rem; color: var(--ink-mute); }

/* =============================================================
   11. Marquee — a bold wine band running through the light page
   ============================================================= */
.marquee {
  overflow: hidden; position: relative; padding: 1.6rem 0;
  background: linear-gradient(90deg, var(--wine-2), var(--wine));
  border-block: 1px solid rgba(0,0,0,.15);
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 1.6rem; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; color: var(--on-dark); }
.marquee-track .sep { color: var(--cheese); opacity: .9; }

/* =============================================================
   12. Menu section — category nav, product cards, add-to-cart panel
   ============================================================= */
.menu-section { padding: 7rem 0; background: var(--bg); }

.cat-nav {
  display: flex; gap: .6rem; overflow-x: auto; margin-bottom: 2.5rem;
  scrollbar-width: thin;
  position: sticky; top: var(--nav-h); z-index: 150;
  background: var(--bg); padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.cat-nav a {
  flex: 0 0 auto; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
  transition: background-color .3s, border-color .3s, color .3s;
}
.cat-nav a:hover { border-color: var(--wine); color: var(--wine); background: rgba(124,20,32,.05); }

.menu-noscript { padding: 2rem; border: 1px dashed var(--line); border-radius: 16px; color: var(--ink-mute); }

.menu-category { margin-bottom: 4rem; scroll-margin-top: calc(var(--nav-h) + 76px); }
.menu-category:last-child { margin-bottom: 0; }
.menu-category-photo {
  border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem;
  aspect-ratio: 16/7; box-shadow: 0 30px 60px -30px rgba(39,21,18,.4);
}
.menu-category-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-category-head { margin-bottom: 1.5rem; }
.menu-category-head h3 { font-size: 1.7rem; color: var(--ink); }
.menu-category-note { font-size: .88rem; color: var(--ink-mute); font-family: var(--sans); text-transform: none; margin-top: .3rem; }

.prod-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }

.prod-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.25rem 1.3rem; box-shadow: 0 14px 32px -24px rgba(39,21,18,.28);
  transition: border-color .3s, box-shadow .3s;
}
.prod-card:hover { border-color: rgba(226,172,65,.5); box-shadow: 0 24px 50px -26px rgba(39,21,18,.32); }
.prod-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.prod-card > .prod-field { margin-bottom: .9rem; }
.prod-title-row { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .3rem; }
.prod-num {
  flex-shrink: 0; font-family: var(--mono); font-size: .68rem; font-weight: 700;
  color: var(--cheese-deep); background: rgba(226,172,65,.16); border-radius: 6px;
  padding: .1rem .4rem; white-space: nowrap;
}
.prod-info h4 { font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.prod-desc { font-size: .84rem; color: var(--ink-mute); line-height: 1.45; }
.prod-price { font-family: var(--mono); font-weight: 600; color: var(--wine); white-space: nowrap; font-size: .92rem; }

.prod-toggle {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  transition: background-color .3s, border-color .3s;
  margin-bottom: .9rem;
}
.prod-toggle:hover { border-color: var(--wine); background: rgba(124,20,32,.05); color: var(--wine); }
.prod-toggle-error { border-color: #c0392b; color: #c0392b; animation: prod-toggle-shake .4s; }
.prod-toggle-error:hover { border-color: #c0392b; color: #c0392b; }
@keyframes prod-toggle-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.prod-toggle span { font-size: 1.1rem; line-height: 1; }

.prod-field { display: flex; flex-direction: column; gap: .5rem; }
.prod-field-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); font-weight: 600; }

.size-select { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-opt {
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; color: var(--ink-soft); transition: all .25s var(--ease-out);
}
.size-opt.is-active { background: var(--wine); border-color: var(--wine); color: var(--on-dark); }

.extra-chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--ink-soft);
  cursor: pointer; transition: border-color .25s, color .25s, background-color .25s;
}
.extra-chip:has(input:checked) { border-color: var(--cheese-deep); background: rgba(226,172,65,.14); color: var(--ink); }
.extra-chip input { accent-color: var(--wine); }
.extra-chip.is-disabled { opacity: .4; cursor: not-allowed; }
.extra-chip.is-disabled input { cursor: not-allowed; }

.prod-notes {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: .88rem;
}
.prod-notes:focus-visible { border-color: var(--wine); }

.prod-confirm { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.qty-stepper {
  display: inline-flex; align-items: center; gap: .8rem; border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .9rem;
}
.qty-stepper button { font-size: 1.1rem; line-height: 1; color: var(--wine); font-weight: 700; }
.qty-stepper span { min-width: 1.2ch; text-align: center; font-family: var(--mono); font-size: .9rem; }
.qty-stepper-sm { padding: .2rem .6rem; gap: .6rem; }

.btn.is-added { background: #3f8a52; box-shadow: none; }

.combo-add { display: flex; flex-direction: column; gap: .7rem; margin-top: .4rem; }

/* =============================================================
   13. Combos
   ============================================================= */
.combos { position: relative; padding: 7rem 0; background: var(--bg-alt); overflow: hidden; isolation: isolate; }
.hero-mesh-combos {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 40% at 70% 30%, rgba(124,20,32,.14), transparent 65%);
  filter: blur(100px);
}
.combo-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .combo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .combo-grid { grid-template-columns: repeat(3, 1fr); } }
.combo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem;
  display: flex; flex-direction: column; gap: .8rem;
  box-shadow: 0 14px 34px -22px rgba(39,21,18,.28);
  transition: transform .5s var(--ease-soft), border-color .4s, box-shadow .5s var(--ease-soft);
}
.combo-card:hover { transform: translateY(-6px); border-color: rgba(226,172,65,.5); box-shadow: 0 30px 60px -20px rgba(39,21,18,.3); }
.combo-card-featured { border-color: var(--wine); background: linear-gradient(160deg, var(--surface), rgba(124,20,32,.06)); }
.combo-num { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; color: var(--wine); }
.combo-desc { font-size: .95rem; color: var(--ink-soft); flex-grow: 1; }
.combo-price { font-family: var(--mono); font-size: 1.4rem; color: var(--ink); font-weight: 600; }

/* =============================================================
   14. Gallery
   ============================================================= */
.gallery { padding: 7rem 0; background: var(--bg); }
.bento { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 190px; }
  .bento-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .bento-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
  .bento-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
  .bento-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
  .bento-item:nth-child(5) { grid-column: span 2; grid-row: span 1; }
  .bento-item:nth-child(6) { grid-column: span 2; grid-row: span 1; }
  .bento-item:nth-child(7) { grid-column: span 6; grid-row: span 1; }
}
.bento-item { border-radius: 16px; overflow: hidden; isolation: isolate; box-shadow: 0 20px 50px -26px rgba(39,21,18,.4); }
.bento-item img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; transition: transform .9s var(--ease-soft), filter .5s; }
@media (min-width: 960px) { .bento-item img { min-height: 100%; } }
.bento-item:hover img { transform: scale(1.08); filter: saturate(1.15) brightness(1.03); }

/* =============================================================
   15. Delivery
   ============================================================= */
.delivery { padding: 7rem 0; background: var(--bg-alt); }
.delivery-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .delivery-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; } }
.delivery-facts { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }
.delivery-facts li { display: flex; flex-direction: column; gap: .2rem; border-left: 2px solid var(--wine); padding-left: 1rem; }
.delivery-facts strong { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.delivery-facts span { font-size: .92rem; color: var(--ink-mute); }
.delivery-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.delivery-or { font-size: .92rem; color: var(--ink-mute); }
.delivery-or a { color: var(--wine); font-weight: 600; }
.delivery-or a:hover { text-decoration: underline; color: var(--cheese-deep); }
.delivery-figure { border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 40px 80px -30px rgba(39,21,18,.35); }
.delivery-figure img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   16. Location
   ============================================================= */
.location { padding: 7rem 0; background: var(--bg); }
.location-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .location-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; } }
.location-address { font-style: normal; font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.location-facts { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2rem; }
.location-facts li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; color: var(--ink-soft); }
.location-facts svg { color: var(--wine); flex-shrink: 0; }
.location-facts a:hover { color: var(--wine); }
.location-map { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(39,21,18,.3); }
@media (min-width: 960px) { .location-map { aspect-ratio: 16/11; } }
.location-map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.08) saturate(1.05); }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: var(--bg-alt); padding: 4.5rem 0 0; border-top: 3px solid var(--wine); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand img { border-radius: 6px; }
.footer-brand p { font-size: .88rem; color: var(--ink-mute); max-width: 30ch; }
.footer-col h4 { font-size: .82rem; letter-spacing: .1em; color: var(--wine); margin-bottom: 1rem; text-transform: uppercase; }
.footer-col p { font-size: .88rem; color: var(--ink-mute); margin-bottom: .5rem; line-height: 1.5; }
.footer-col a:hover { color: var(--wine); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 1.5rem 1.25rem; font-size: .8rem; color: var(--ink-mute);
  display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

/* =============================================================
   18. Cart — floating button, overlay, drawer, order form
   ============================================================= */
.cart-floating-btn {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 250;
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.3rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--wine), var(--wine-2)); color: var(--on-dark);
  box-shadow: 0 16px 36px -10px rgba(124,20,32,.55);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
  font-weight: 600; font-size: .9rem;
}
.cart-floating-btn:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -10px rgba(124,20,32,.65); }
.cart-floating-btn span:not(.cart-badge) { display: none; }
@media (min-width: 640px) { .cart-floating-btn span:not(.cart-badge) { display: inline; } }

.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  background: var(--cheese); color: var(--ink); font-family: var(--mono); font-size: .74rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.cart-badge[hidden] { display: none; }
.cart-badge.pulse { animation: badgePulse .5s var(--ease-bounce); }
@keyframes badgePulse { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }

.cart-overlay {
  position: fixed; inset: 0; z-index: 260; background: rgba(20,10,8,.5);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out);
}
.cart-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 270;
  width: min(420px, 100vw); background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s var(--ease-soft);
  box-shadow: -20px 0 60px -20px rgba(39,21,18,.4);
}
.cart-drawer[data-open="true"] { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.cart-header h3 { font-size: 1.3rem; color: var(--ink); }
.cart-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-mute); }
.cart-close:hover { border-color: var(--wine); color: var(--wine); }

.cart-body { flex: 1 1 auto; overflow-y: auto; padding: 1.2rem 1.5rem; }
.cart-empty { color: var(--ink-mute); font-size: .92rem; }
.cart-empty a { color: var(--wine); font-weight: 600; }
.cart-list { display: flex; flex-direction: column; gap: 1rem; }

.cart-line { display: flex; justify-content: space-between; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-line-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cart-line-info strong { font-size: .92rem; color: var(--ink); }
.cart-line-desc { font-size: .78rem; color: var(--ink-mute); }
.cart-line-notes { font-size: .78rem; color: var(--cheese-deep); font-style: italic; }
.cart-line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; flex-shrink: 0; }
.cart-line-price { font-family: var(--mono); font-size: .85rem; color: var(--ink); font-weight: 600; }
.cart-line-remove { font-size: .8rem; color: var(--ink-mute); }
.cart-line-remove:hover { color: var(--wine); }

.cart-footer { flex-shrink: 0; border-top: 1px solid var(--line); padding: 1.2rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; max-height: 60vh; overflow-y: auto; }
.cart-subtotal-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.cart-subtotal-row strong { font-family: var(--mono); font-size: 1.3rem; color: var(--wine); }
.min-order-note { font-size: .8rem; color: var(--cheese-deep); background: rgba(226,172,65,.12); border-radius: 8px; padding: .6rem .8rem; }

.order-details { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.order-details-summary {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  list-style: none; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink); font-weight: 600;
}
.order-details-summary::-webkit-details-marker { display: none; }
.order-details-icon { flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.order-details-icon::before, .order-details-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink);
  transform: translate(-50%, -50%); transition: transform .25s var(--ease-out);
}
.order-details-icon::before { width: 12px; height: 2px; }
.order-details-icon::after { width: 2px; height: 12px; }
.order-details[open] .order-details-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.order-details-fields { display: flex; flex-direction: column; gap: .9rem; margin-top: .9rem; }

.order-field { display: flex; flex-direction: column; gap: .4rem; }
.order-field-row { display: flex; flex-direction: column; gap: .9rem; }
.order-field-row[hidden] { display: none; }
.order-field label, .order-field-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); font-weight: 600; }
.order-field input[type="text"], .order-field input[type="tel"], .order-field select {
  padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: .9rem;
}
.order-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='%23271512' stroke-width='1.8' d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px; padding-right: 2.2rem; }
.order-field select:disabled { opacity: .6; cursor: not-allowed; }
.order-field input:focus-visible, .order-field select:focus-visible { border-color: var(--wine); }
.field-hint { font-size: .76rem; color: var(--ink-mute); }

.toggle-group { display: flex; gap: .6rem; flex-wrap: wrap; }
.toggle-opt { position: relative; }
.toggle-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-opt span {
  display: inline-flex; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-soft); cursor: pointer; transition: all .25s var(--ease-out);
}
.toggle-opt input:checked + span { background: var(--wine); border-color: var(--wine); color: var(--on-dark); }
.toggle-opt input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }

.cart-submit { width: 100%; }
.cart-legal { font-size: .74rem; color: var(--ink-mute); text-align: center; }

.extras-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(20,10,8,.55);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.extras-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }

.extras-modal {
  position: fixed; top: 50%; left: 50%; z-index: 310;
  width: min(440px, 90vw); max-height: 82vh; overflow-y: auto;
  background: var(--surface); border-radius: 20px; padding: 1.6rem;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.5);
  transform: translate(-50%, -50%) scale(.94); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-soft), opacity .3s;
}
.extras-modal[data-open="true"] { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }

.extras-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.extras-modal-header h3 { font-size: 1.3rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.extras-modal-note { font-size: .84rem; color: var(--ink-mute); margin-bottom: 1.2rem; }
.extras-modal-body { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.extras-modal-done { width: 100%; }

/* =============================================================
   19. Allergens — notice banner, per-item icons, legend
   ============================================================= */
.allergen-notice {
  display: flex; gap: .8rem; align-items: flex-start;
  background: rgba(226,172,65,.12); border: 1px solid rgba(226,172,65,.35);
  border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 2rem;
  color: var(--ink-soft); font-size: .88rem; line-height: 1.5;
}
.allergen-notice svg { flex-shrink: 0; color: var(--cheese-deep); margin-top: .1rem; }
.allergen-notice a { color: var(--wine); font-weight: 600; }
.allergen-notice a:hover { text-decoration: underline; }

.prod-allergens { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.allergen-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-alt); color: var(--ink-mute);
  cursor: default;
}

.allergens { padding: 6rem 0; background: var(--bg-alt); }
.allergen-legend {
  display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .allergen-legend { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px)  { .allergen-legend { grid-template-columns: repeat(5, 1fr); } }
.legend-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1rem;
}
.legend-icon {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(124,20,32,.08); color: var(--wine);
}
.legend-icon svg { width: 22px; height: 22px; }
.legend-num { font-family: var(--mono); font-size: .74rem; color: var(--cheese-deep); font-weight: 700; }
.legend-name { font-size: .82rem; color: var(--ink-soft); }

/* =============================================================
   20. Page header (carta.html) + view transitions
   ============================================================= */
.page-header {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
  background: linear-gradient(165deg, var(--wine), var(--wine-2));
  color: var(--on-dark);
}
.page-header h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem); margin-bottom: 1rem; color: var(--on-dark);
  text-shadow: 0 4px 30px rgba(0,0,0,.25);
}
.page-header .hero-kicker { color: var(--cheese); }
.page-header-sub { font-family: var(--sans); font-size: 1.05rem; font-weight: 400; color: var(--on-dark-soft); max-width: 52ch; margin-bottom: 1.6rem; }
.page-header-facts { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .88rem; color: var(--on-dark-mute); }
.page-header-facts a { color: var(--on-dark); font-weight: 600; }
.page-header-facts a:hover { color: var(--cheese); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   20b. Legal pages
   ============================================================= */
.legal-content { padding: 4rem 0 6rem; }
.legal-content .container { max-width: 780px; }
.legal-updated { font-size: .82rem; color: var(--ink-mute); margin-bottom: 2.6rem; }
.legal-content h2 {
  font-size: 1.35rem; color: var(--wine); margin-top: 2.6rem; margin-bottom: .9rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { font-family: var(--sans); font-size: .96rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: .9rem; }
.legal-content ul { padding-left: 1.3rem; margin-bottom: .9rem; }
.legal-content li { margin-bottom: .4rem; }
.legal-content strong { color: var(--ink); }
.legal-content a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--wine-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: center; }
.footer-legal a { color: var(--ink-mute); }
.footer-legal a:hover { color: var(--wine); }

/* =============================================================
   20. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .hero-mesh-combos { animation: none; }
  .splash-logo { animation: none; }
  .hero-scroll { animation: none; }
  .hero-meta .dot { animation: none; }
}
