/* ============================================
   SLICE PIZZA v4.0 — WORLD-CLASS DESIGN SYSTEM
   Pasquale Jones × Dribbble × Apple-grade UX
   Video hero · 3D cards · iOS spring physics
   ============================================ */

/* === TOKENS === */
:root {
  /* Colors */
  --bg: #FFF7EF;
  --bg-alt: #FFE8D6;
  --bg-warm: #FFD5A8;
  --bg-dark: #1A120F;
  --bg-dark-alt: #100907;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-hover: rgba(255, 255, 255, 0.92);
  --surface-active: rgba(255, 248, 240, 0.96);
  --primary: #FF5B2E;
  --primary-hover: #FF3D00;
  --primary-light: rgba(255, 91, 46, 0.16);
  --accent: #12C7FF;
  --accent-hover: #06ABDF;
  --accent-light: rgba(18, 199, 255, 0.16);
  --highlight: #FFD75A;
  --success: #18B86A;
  --ink: #17110D;
  --ink-secondary: #513C31;
  --ink-muted: #7D6458;
  --ink-faint: #B29486;
  --ink-ghost: #D8C4B8;
  --border: rgba(87, 56, 41, 0.14);
  --border-hover: rgba(87, 56, 41, 0.28);
  --overlay: rgba(23, 17, 13, 0.55);

  /* Typography */
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Source Code Pro', 'SF Mono', monospace;
  --font-ui: 'Inter', system-ui, sans-serif;

  /* Sizing */
  --h1: clamp(3rem, 8vw, 5.5rem);
  --h2: clamp(2rem, 5vw, 3rem);
  --h3: 1.25rem;
  --body: 0.8125rem;
  --small: 0.75rem;
  --tiny: 0.6875rem;

  /* Spacing */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 40px;
  --s-2xl: 64px;
  --s-3xl: 96px;
  --s-4xl: 140px;

  /* Radius — editorial sharp */
  --r: 0px;

  /* Shadows */
  --shadow-sm: 0 6px 16px rgba(116, 67, 34, 0.06);
  --shadow-md: 0 12px 30px rgba(116, 67, 34, 0.08);
  --shadow-lg: 0 28px 60px rgba(116, 67, 34, 0.12);
  --shadow-card-hover: 0 30px 70px rgba(90, 44, 20, 0.16);

  /* iOS Spring physics */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-ios: cubic-bezier(.25,.46,.45,.94);
  --dur: 200ms;
  --dur-md: 350ms;
  --dur-lg: 500ms;
  --dur-xl: 800ms;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 64px;
  --cart-w: 440px;
}

/* === RESET === */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-snap-type: y proximity;
  overscroll-behavior-y: none;
}
body {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 215, 90, 0.38), transparent 28%),
    radial-gradient(circle at top right, rgba(18, 199, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #FFF7EF 0%, #FFF8F3 36%, #FFF1E6 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
body.no-scroll { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--primary); color: #fff; }

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -2;
  filter: blur(70px);
}
body::before {
  top: -120px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: rgba(255, 91, 46, 0.16);
}
body::after {
  top: 18vh;
  left: -120px;
  width: 300px;
  height: 300px;
  background: rgba(18, 199, 255, 0.14);
}

/* === TYPOGRAPHY === */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
.text-muted { color: var(--ink-muted); }
.text-small { font-size: var(--small); }
.text-tiny { font-size: var(--tiny); }
.text-uppercase { text-transform: uppercase; letter-spacing: .1em; }

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-lg); }
@media (max-width: 768px) { .container { padding: 0 var(--s-md); } }
.section { padding: var(--s-3xl) 0; scroll-snap-align: start; }

/* ============================================
   NAVIGATION — fixed, minimal
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,247,239,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(87, 56, 41, 0.06);
  transition: all var(--dur-md) var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 250, 244, 0.92);
  box-shadow: 0 18px 48px rgba(116, 67, 34, 0.08);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-lg);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
}
.nav-brand span { color: var(--primary); }
.nav-links { display: flex; gap: var(--s-xl); align-items: center; }
.nav-links a {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-muted);
  transition: color var(--dur);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--dur-md) var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: var(--s-md); }
.nav-cart-btn {
  position: relative;
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--ink), #443229); color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(23, 17, 13, 0.18);
  transition: all var(--dur-md) var(--ease);
}
.nav-cart-btn:hover {
  background: linear-gradient(135deg, var(--primary), #FF942A);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(255, 91, 46, 0.26);
}
.cart-badge {
  position: absolute; top: -7px; right: -7px;
  width: 20px; height: 20px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease-spring);
}
.cart-badge.pop { animation: badgePop .35s var(--ease-spring); }
@keyframes badgePop { 0% { transform: scale(1); } 50% { transform: scale(1.5); } 100% { transform: scale(1); } }
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

/* Status */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: var(--tiny);
  color: var(--ink-secondary);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(87, 56, 41, 0.1);
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--success); border-radius: 50%;
  animation: dotPulse 2s infinite;
}
.status-dot.closed { background: var(--primary); animation: none; }
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Mobile nav */
.nav-hamburger {
  display: none; width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  transition: all var(--dur-md) var(--ease);
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================
   HERO — Full-screen video background
   ============================================ */
.hero {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: transparent;
  scroll-snap-align: start;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero::before {
  top: 8%;
  right: 4%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 215, 90, 0.24) 0%, rgba(255, 215, 90, 0) 72%);
}
.hero::after {
  bottom: -60px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(18, 199, 255, 0.16) 0%, rgba(18, 199, 255, 0) 72%);
}

/* Video background */
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .16;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.08);
  will-change: transform;
}
.hero-video-fallback {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .18;
  display: none;
}
.hero-video-wrap.fallback .hero-video { display: none; }
.hero-video-wrap.fallback .hero-video-fallback { display: block; }

/* Gradient overlays */
.hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.2) 0%, rgba(255, 248, 240, 0.7) 38%, rgba(255, 244, 233, 0.96) 100%),
    radial-gradient(circle at 18% 18%, rgba(255, 215, 90, 0.24), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(18, 199, 255, 0.18), transparent 24%);
}

/* Content */
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-2xl) var(--s-lg) var(--s-3xl);
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: var(--s-2xl);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: var(--s-lg);
}
.hero-kicker-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-kicker {
  font-family: var(--font-body); font-size: 10px;
  text-transform: uppercase; letter-spacing: .25em;
  color: var(--ink-secondary);
  margin-bottom: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(87, 56, 41, 0.12);
  box-shadow: var(--shadow-sm);
}
.hero-badge-live {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink), #443229);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 244, 233, 0.92);
  border: 1px solid rgba(87, 56, 41, 0.1);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-secondary);
}
.hero-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(255, 91, 46, 0.12);
  animation: dotPulseWarm 2.2s infinite;
}
.hero-pulse-pill span:last-child {
  display: inline-block;
  transition: opacity var(--dur-md) var(--ease), transform var(--dur-md) var(--ease);
}
.hero-pulse-pill span:last-child.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}
@keyframes dotPulseWarm {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: .55; }
}
.hero-signal-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--s-lg);
}
.hero-signal-card {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(87, 56, 41, 0.12);
  box-shadow: var(--shadow-sm);
}
.hero-signal-label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-signal-card strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800; line-height: .92;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-lg);
  max-width: 760px;
}
.hero-title em {
  font-style: normal;
  color: var(--primary);
  display: inline-block;
  text-shadow: 0 18px 40px rgba(255, 91, 46, 0.16);
}
.hero-desc {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  max-width: 540px;
  margin-bottom: var(--s-xl);
}
.hero-actions {
  display: flex; gap: var(--s-md); flex-wrap: wrap;
}
.hero-note {
  margin-top: 14px;
  max-width: 560px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-muted);
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: var(--s-xl);
}
.hero-metric {
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,245,237,.74));
  border: 1px solid rgba(87, 56, 41, 0.12);
  box-shadow: var(--shadow-md);
}
.hero-metric-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-metric-value {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: .95;
  text-transform: uppercase;
}
.hero-metric-copy {
  color: var(--ink-secondary);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.55;
}
.hero-stage {
  position: relative;
  min-height: 560px;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 40px 20px 40px 20px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 248, 240, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stage-card {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(87, 56, 41, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,246,238,.74));
  box-shadow: 0 30px 80px rgba(93, 44, 19, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero-stage-card-main {
  top: 30px;
  right: 0;
  width: min(100%, 420px);
  animation: floatCard 7s ease-in-out infinite;
}
.hero-stage-card-ticket {
  left: 18px;
  bottom: 56px;
  width: 290px;
  padding: 24px 22px;
  animation: floatCardSecondary 6.2s ease-in-out infinite;
}
.hero-stage-card-loyalty {
  right: 26px;
  bottom: -8px;
  width: 250px;
  padding: 24px 22px;
  animation: floatCardTertiary 6.8s ease-in-out infinite;
}
.hero-stage-visual {
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  background: linear-gradient(135deg, #1A120F, #3F1F14);
}
.hero-stage-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero-stage-content {
  padding: 18px 20px 22px;
}
.hero-stage-eyebrow {
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-stage-title {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 2.7vw, 2.2rem);
  line-height: .98;
}
.hero-stage-meta,
.hero-stage-card-ticket p,
.hero-stage-card-loyalty p {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.hero-stage-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23,17,13,.06);
  border: 1px solid rgba(87, 56, 41, 0.08);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-stage-card-ticket h3,
.hero-stage-card-loyalty h3 {
  margin-bottom: 10px;
  font-size: 1.7rem;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes floatCardSecondary {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}
@keyframes floatCardTertiary {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute; bottom: var(--s-lg); left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
}
.hero-scroll-indicator span {
  font-family: var(--font-ui); font-size: 9px;
  text-transform: uppercase; letter-spacing: .2em;
  color: rgba(23,17,13,.35);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(23,17,13,.42), transparent);
  animation: scrollPulse 2s infinite ease-in-out;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: .4; }
  50% { transform: scaleY(.5); opacity: 1; }
}

@media (max-width: 768px) {
  .hero { min-height: calc(100svh - var(--nav-h)); }
  .hero-content { padding: var(--s-2xl) var(--s-md) var(--s-2xl); }
}
@media (max-width: 980px) {
  .hero-shell { grid-template-columns: 1fr; }
  .hero-stage {
    min-height: 460px;
    margin-top: var(--s-lg);
  }
  .hero-stage-card-main {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 420px);
    margin-left: auto;
  }
  .hero-stage-card-ticket {
    left: 0;
    bottom: 16px;
  }
  .hero-stage-card-loyalty {
    right: 0;
    bottom: -10px;
  }
}
@media (max-width: 680px) {
  .hero-title { font-size: clamp(3rem, 18vw, 4.6rem); }
  .hero-marquee,
  .hero-signal-bar { gap: 10px; }
  .hero-signal-card { min-width: calc(50% - 10px); }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-stage {
    min-height: auto;
    display: grid;
    gap: 14px;
  }
  .hero-stage::before { inset: 12px 0; }
  .hero-stage-card,
  .hero-stage-card-main,
  .hero-stage-card-ticket,
  .hero-stage-card-loyalty {
    position: relative;
    inset: auto;
    width: 100%;
    animation: none;
  }
  .hero-stage-card-main { margin-left: 0; }
  .hero-scroll-indicator { display: none; }
}

/* ============================================
   BUTTONS — sharp, bold
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 14px 30px;
  border: 1.5px solid transparent;
  transition: all var(--dur-md) var(--ease);
  cursor: pointer; position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  transform: translateX(-101%);
  transition: transform var(--dur-lg) var(--ease);
}
.btn:hover::after { transform: translateX(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #FF942A); color: #fff; border-color: transparent; }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hover), var(--primary)); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255,91,46,.24); }
.btn-dark { background: linear-gradient(135deg, var(--ink), #443229); color: #fff; border-color: transparent; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23,17,13,.18); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #8CE8FF); color: #08131A; border-color: transparent; }
.btn-accent:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(18,199,255,.2); color: #fff; }
.btn-outline { background: rgba(255,255,255,.48); color: var(--ink); border-color: rgba(87, 56, 41, 0.14); }
.btn-outline:hover { border-color: rgba(23,17,13,.2); background: rgba(255,255,255,.72); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.48); }
.btn-sm { padding: 10px 20px; font-size: 10px; }
.btn-lg { padding: 16px 36px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============================================
   VIDEO DIVIDER — parallax horizontal video strip
   ============================================ */
.video-divider {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: var(--bg-dark);
}
.video-divider video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
}
.video-divider-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.8) 0%, rgba(10,10,10,.2) 50%, rgba(10,10,10,.8) 100%);
  z-index: 1;
}
.video-divider-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 0 var(--s-lg);
}
.video-divider-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 600px;
}
.video-divider-content h2 em { font-style: normal; color: var(--accent); }
@media (max-width: 768px) { .video-divider { height: 280px; } }

/* ============================================
   CATEGORY NAV — sticky horizontal scroll
   ============================================ */
.category-nav-wrap {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: rgba(255,248,240,.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: var(--s-sm) 0;
  box-shadow: 0 16px 40px rgba(116, 67, 34, 0.06);
}
.category-nav {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-lg);
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-chip {
  flex-shrink: 0;
  font-family: var(--font-ui); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.72);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--dur-md) var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  border-radius: 999px;
}
.category-chip:hover { border-color: var(--ink); color: var(--ink); }
.category-chip.active {
  background: linear-gradient(135deg, var(--ink), #443229);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 28px rgba(23,17,13,.18);
}

/* ============================================
   MENU SECTION
   ============================================ */
#menu-container {
  position: relative;
  isolation: isolate;
  padding-top: var(--s-xl);
  padding-bottom: var(--s-2xl);
}
#menu-container::before {
  content: "";
  position: absolute;
  inset: 0 var(--s-lg);
  z-index: -2;
  border-radius: 40px;
  border: 1px solid rgba(87, 56, 41, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.7), rgba(255, 245, 236, 0.54)),
    radial-gradient(circle at 18% 18%, rgba(18, 199, 255, 0.14), transparent 22%),
    radial-gradient(circle at 84% 26%, rgba(255, 145, 72, 0.18), transparent 28%),
    url('/images/generated/menu_grid_luxe_2026.jpg') center/cover no-repeat;
  box-shadow: 0 34px 90px rgba(96, 55, 29, 0.12);
  pointer-events: none;
  transform-origin: center;
  animation: menu-backdrop-float 18s var(--ease-ios) infinite alternate;
}
#menu-container::after {
  content: "";
  position: absolute;
  inset: 22px calc(var(--s-lg) + 12px);
  z-index: -1;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.08)),
    radial-gradient(circle at top left, rgba(255,255,255,.4), transparent 34%);
  pointer-events: none;
}
.menu-section { padding: var(--s-xl) 0; }
.menu-section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--s-lg);
}
.menu-section-title {
  font-family: var(--font-heading); font-size: var(--h2);
  text-transform: uppercase;
}
.menu-section-count {
  font-family: var(--font-body); font-size: var(--tiny);
  color: var(--ink-faint); text-transform: uppercase;
  letter-spacing: .12em;
}

/* ============================================
   PRODUCT CARDS — 3D hover, video overlay
   ============================================ */
.menu-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-md);
}
@keyframes menu-backdrop-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1) contrast(1);
  }
  100% {
    transform: translate3d(0, -10px, 0) scale(1.018);
    filter: saturate(1.05) contrast(1.02);
  }
}
@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 768px) {
  #menu-container {
    padding-top: var(--s-md);
    padding-bottom: var(--s-xl);
  }
  #menu-container::before {
    inset: 0 10px;
    border-radius: 28px;
  }
  #menu-container::after {
    inset: 14px 20px;
    border-radius: 22px;
  }
}

.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,247,239,.78));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all var(--dur-lg) var(--ease-out);
  /* 3D transform setup */
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform, box-shadow;
}
.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* 3D tilt on mousemove (JS sets --rx --ry) */
.product-card.tilt-active {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
}

/* Image container with video hover */
.product-image-wrap {
  position: relative; aspect-ratio: 1/1;
  overflow: hidden; background: var(--bg-alt);
}
.product-media-meta {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 56px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-media-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(87, 56, 41, 0.08);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.product-media-chip.muted {
  background: rgba(23,17,13,.08);
  color: #fff;
}
.product-badges {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(87, 56, 41, 0.08);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.product-badge.spicy {
  background: linear-gradient(135deg, var(--primary), #FF942A);
  color: #fff;
  border-color: transparent;
}
.product-image {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-xl) var(--ease-out);
}
.product-card:hover .product-image { transform: scale(1.08); }
.product-image.loading { opacity: 0; }
.product-image:not(.loading) { opacity: 1; transition: opacity .5s var(--ease), transform var(--dur-xl) var(--ease-out); }

/* Video overlay on hover */
.product-video-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease);
  pointer-events: none;
}
.product-video-overlay video,
.product-video-overlay img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-card:hover .product-video-overlay { opacity: 1; }

/* 3D badge effect */
.product-3d-badge {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-ui); font-size: 9px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--primary), #FF942A);
  color: #fff; z-index: 3;
}

/* Product info */
.product-info { padding: var(--s-md); }
.product-ingredients {
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.product-name {
  font-family: var(--font-heading); font-size: 1rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; margin-bottom: 4px;
  line-height: 1.2;
}
.product-desc {
  font-size: var(--tiny); color: var(--ink-muted);
  line-height: 1.5; margin-bottom: var(--s-sm);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.product-price-wrap { display: grid; gap: 2px; }
.product-price {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
}
.product-price-currency { font-weight: 400; font-size: .9em; }
.product-price-note {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-muted);
}
.product-detail-hint {
  padding: 0 var(--s-md) var(--s-md);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Add button */
.add-btn {
  font-family: var(--font-ui); font-size: 10px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--ink), #443229); color: #fff;
  border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
  border-radius: 999px;
}
.add-btn:hover { background: linear-gradient(135deg, var(--primary), #FF942A); border-color: transparent; }
.add-btn:active { transform: scale(.95); }

/* Quantity controls */
.cart-controls {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
}
.qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--ink); background: var(--surface);
  transition: all var(--dur) var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover { background: var(--bg-alt); }
.qty-btn:active { transform: scale(.9); }
.qty-val {
  min-width: 28px; text-align: center;
  font-family: var(--font-ui); font-size: var(--small); font-weight: 700;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  padding: 6px 0;
}

/* ============================================
   ABOUT SECTION — dark editorial
   ============================================ */
.about-section {
  background: var(--bg-dark);
  color: #fff;
  padding: var(--s-4xl) 0;
  position: relative;
  overflow: hidden;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-2xl); align-items: center;
}
.about-kicker {
  font-family: var(--font-body); font-size: var(--tiny);
  text-transform: uppercase; letter-spacing: .25em;
  color: var(--accent); margin-bottom: var(--s-md);
}
.about-title { margin-bottom: var(--s-lg); }
.about-text {
  color: rgba(255,255,255,.5); margin-bottom: var(--s-md);
  line-height: 1.8;
}
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-lg); margin-top: var(--s-xl);
}
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800; color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-body); font-size: var(--tiny);
  text-transform: uppercase; letter-spacing: .15em;
  color: rgba(255,255,255,.3); margin-top: 4px;
}
.about-image-wrap {
  overflow: hidden; position: relative;
}
.about-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; aspect-ratio: 3/4;
  transition: transform var(--dur-xl) var(--ease);
}
.about-image-wrap:hover img { transform: scale(1.03); }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { order: -1; }
  .about-section { padding: var(--s-3xl) 0; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  background:
    radial-gradient(circle at center top, rgba(18, 199, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,248,240,.72));
  padding: var(--s-4xl) 0;
}
.cta-kicker {
  font-family: var(--font-body); font-size: var(--tiny);
  text-transform: uppercase; letter-spacing: .25em;
  color: var(--accent); margin-bottom: var(--s-md);
}
.cta-title { margin-bottom: var(--s-md); }
.cta-desc {
  color: var(--ink-muted);
  max-width: 400px; margin: 0 auto var(--s-xl);
}
.cta-actions {
  display: flex; gap: var(--s-md);
  justify-content: center; flex-wrap: wrap;
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-lg) var(--ease-out), visibility var(--dur-lg) var(--ease-out);
}
.product-detail-overlay.open {
  opacity: 1;
  visibility: visible;
}
.product-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23,17,13,.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.product-detail-sheet {
  position: relative;
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,246,238,.86));
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 34px 120px rgba(71, 33, 13, 0.24);
  transform: translateY(22px) scale(.98);
  transition: transform var(--dur-lg) var(--ease-out);
}
.product-detail-overlay.open .product-detail-sheet {
  transform: translateY(0) scale(1);
}
.pd-media {
  position: relative;
  min-height: 100%;
  background: linear-gradient(135deg, #291913, #5E2E1E);
}
.pd-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-media-overlay {
  position: absolute;
  inset: 18px 18px auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.pd-close-btn,
.pd-floating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pd-close-btn { width: 42px; padding: 0; }
.pd-body {
  padding: 28px 28px 16px;
  overflow: auto;
}
.pd-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.pd-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(87, 56, 41, 0.12);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.pd-kicker.muted {
  background: rgba(23,17,13,.06);
  color: var(--ink-secondary);
}
.pd-title {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: .92;
}
.pd-description {
  margin-bottom: 18px;
  max-width: 48ch;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
}
.pd-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.pd-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(87, 56, 41, 0.1);
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink);
}
.pd-chip.muted { color: var(--ink-secondary); }
.pd-chip.spicy {
  background: linear-gradient(135deg, var(--primary), #FF942A);
  border-color: transparent;
  color: #fff;
}
.pd-chip.allergen {
  background: rgba(23,17,13,.08);
  color: var(--ink-secondary);
}
.pd-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pd-reason {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(87, 56, 41, 0.1);
  box-shadow: var(--shadow-sm);
}
.pd-reason span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pd-reason strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: .95;
}
.pd-reason p {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.pd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px 28px;
  border-top: 1px solid rgba(87, 56, 41, 0.08);
}
.pd-price-block {
  display: grid;
  gap: 4px;
}
.pd-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: .92;
}
.pd-price-copy {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pd-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pd-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #FF942A);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 18px 36px rgba(255,91,46,.24);
}
@media (max-width: 860px) {
  .product-detail-sheet {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    grid-template-columns: 1fr;
  }
  .pd-media {
    min-height: 40vh;
    max-height: 40vh;
  }
  .pd-reasons { grid-template-columns: 1fr; }
  .pd-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .pd-cta-row { justify-content: space-between; }
}

/* ============================================
   CART PANEL — iOS Native Feel (Glassmorphism & Bottom Sheet on Mobile)
   ============================================ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: all var(--dur-lg) var(--ease);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: var(--cart-w); max-width: 100vw;
  z-index: 201; 
  background: rgba(15, 15, 15, 0.85); /* Deep dark glass */
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  border-left: 1px solid rgba(255,255,255,0.1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform var(--dur-lg) var(--ease-spring);
  display: flex; flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-lg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-title {
  font-family: var(--font-heading); font-size: 1.4rem;
  font-weight: 700; text-transform: uppercase;
}
.cart-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--ink-muted);
  border: 1.5px solid var(--border);
  transition: all var(--dur) var(--ease-spring);
}
.cart-close:hover { color: var(--ink); border-color: var(--ink); }
.cart-close:active { transform: scale(.9); }
.cart-body { flex: 1; overflow-y: auto; padding: var(--s-lg); -webkit-overflow-scrolling: touch; }
.cart-empty { text-align: center; padding: var(--s-3xl) var(--s-lg); color: var(--ink-muted); font-family: var(--font-ui); font-size: var(--small); }
.cart-empty-icon { font-size: 3.5rem; margin-bottom: var(--s-md); opacity: .2; }
.cart-intel {
  display: grid;
  gap: 10px;
  margin-bottom: var(--s-md);
}
.cart-intel-card {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.cart-intel-card.accent {
  background: linear-gradient(135deg, rgba(255, 91, 46, 0.18), rgba(255, 148, 42, 0.12));
}
.cart-intel-kicker {
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.56);
}
.cart-intel-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: .95;
  color: #fff;
}
.cart-intel-card p {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
}
.cart-item {
  display: flex; align-items: center; gap: var(--s-md);
  padding: var(--s-md) 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--dur-md) var(--ease-out);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--bg-alt); overflow: hidden;
  border-radius: 18px;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cart-item-name {
  font-family: var(--font-heading); font-size: var(--body);
  font-weight: 600; text-transform: uppercase;
}
.cart-item-line-total {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
}
.cart-item-price { font-size: var(--small); color: var(--ink-muted); }
.cart-item-meta {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(255,255,255,.54);
}
.cart-footer {
  border-top: 1px solid var(--border);
  padding: var(--s-lg);
  flex-shrink: 0;
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-ui); font-size: var(--small);
  margin-bottom: var(--s-sm); color: var(--ink-secondary);
}
.cart-summary-row.total {
  font-size: 1.1rem; font-weight: 800; color: #fff;
  margin-top: var(--s-sm); padding-top: var(--s-sm);
  border-top: 1.5px solid var(--border); margin-bottom: var(--s-md);
}

@media (max-width: 768px) { 
  .cart-panel { 
    width: 100%; 
    height: 90vh; /* Bottom sheet height */
    top: auto; bottom: 0; right: 0; left: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  } 
  .cart-panel.open { transform: translateY(0); }
  
  /* Mobile drag handle */
  .cart-panel::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    z-index: 202;
  }
}

/* ============================================
   CHECKOUT FORM
   ============================================ */
.checkout-section { padding: var(--s-md) 0; border-bottom: 1px solid var(--border); }
.checkout-section:last-child { border-bottom: none; }
.checkout-section-title {
  font-family: var(--font-heading); font-size: 1rem;
  font-weight: 700; text-transform: uppercase;
  margin-bottom: var(--s-md);
}
.form-group { margin-bottom: var(--s-md); }
.form-label {
  display: block;
  font-family: var(--font-ui); font-size: var(--tiny);
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-muted); margin-bottom: var(--s-xs);
}
.form-input {
  width: 100%; padding: 12px 14px;
  font-family: var(--font-body); font-size: var(--body);
  color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--border);
  transition: border-color var(--dur-md), box-shadow var(--dur-md);
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-input::placeholder { color: var(--ink-ghost); }
.payment-options { display: flex; gap: var(--s-sm); flex-wrap: wrap; }
.payment-option { flex: 1; min-width: 120px; position: relative; }
.payment-option input { position: absolute; opacity: 0; }
.payment-option label {
  display: block; padding: 12px;
  border: 1.5px solid var(--border);
  font-family: var(--font-ui); font-size: var(--tiny);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; text-align: center; cursor: pointer;
  transition: all var(--dur-md);
}
.payment-option input:checked + label {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary);
}
.time-slots { display: flex; gap: var(--s-xs); flex-wrap: wrap; }
.time-slot-btn {
  font-family: var(--font-ui); font-size: var(--tiny);
  font-weight: 600; text-transform: uppercase;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  color: var(--ink-muted);
  transition: all var(--dur);
}
.time-slot-btn:hover { border-color: var(--ink); color: var(--ink); }
.time-slot-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.promo-row { display: flex; gap: var(--s-sm); }
.promo-row .form-input { flex: 1; }
.promo-result { font-size: var(--tiny); margin-top: var(--s-xs); }
.promo-result.success { color: var(--success); }
.promo-result.error { color: var(--accent); }
.min-order-hint {
  font-family: var(--font-ui); font-size: var(--tiny);
  color: var(--accent); text-align: center;
  padding: var(--s-sm); background: var(--accent-light);
  margin-bottom: var(--s-md);
}
.min-order-hint[hidden] { display: none; }
.closed-banner {
  text-align: center; padding: var(--s-lg);
  background: var(--bg-alt); margin-bottom: var(--s-md);
}
.closed-banner .title {
  font-family: var(--font-heading); font-size: 1rem;
  font-weight: 700; text-transform: uppercase;
}
.closed-banner .sub { font-size: var(--small); color: var(--ink-muted); margin-top: 4px; }

/* ============================================
   CONFIRMATION MODAL
   ============================================ */
.confirmation-modal {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--dur-lg) var(--ease-out);
}
.confirmation-modal.open { opacity: 1; visibility: visible; }
.confirmation-content { text-align: center; padding: var(--s-xl); max-width: 420px; }
.confirmation-icon {
  width: 80px; height: 80px;
  margin: 0 auto var(--s-lg);
  border: 2px solid var(--success);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem; color: var(--success);
}
.confirmation-title {
  font-family: var(--font-heading); font-size: var(--h2);
  text-transform: uppercase; margin-bottom: var(--s-sm);
}
.confirmation-order-num {
  font-family: var(--font-body); font-size: var(--body);
  color: var(--ink-muted); margin-bottom: var(--s-lg);
}
.confirmation-order-num strong { color: var(--primary); font-weight: 700; }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 500;
  padding: 14px 28px;
  background: var(--ink); color: #fff;
  font-family: var(--font-ui); font-size: var(--small); font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all var(--dur-lg) var(--ease-out);
}
.toast.visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============================================
   FOOTER — dark, editorial
   ============================================ */
.footer {
  background: var(--bg-dark); color: rgba(255,255,255,.6);
  padding: var(--s-4xl) 0 var(--s-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-xl);
}
.footer-brand {
  font-family: var(--font-heading); font-size: 1.8rem;
  font-weight: 800; color: #fff; text-transform: uppercase;
  margin-bottom: var(--s-sm);
}
.footer-brand span { color: var(--accent); }
.footer-tagline {
  font-size: var(--small); color: rgba(255,255,255,.3);
  font-style: italic; max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-ui); font-size: 10px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; color: rgba(255,255,255,.3);
  margin-bottom: var(--s-lg);
}
.footer-col li { margin-bottom: var(--s-sm); }
.footer-col a {
  font-family: var(--font-ui); font-size: var(--small);
  transition: color var(--dur);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: var(--s-3xl); padding-top: var(--s-lg);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-md);
}
.footer-copy {
  font-family: var(--font-ui); font-size: var(--tiny);
  color: rgba(255,255,255,.2);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 0%, #eee 50%, var(--bg-alt) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { border: 1px solid var(--border); overflow: hidden; }
.skeleton-img { aspect-ratio: 1/1; }
.skeleton-text { height: 14px; margin: var(--s-md); }
.skeleton-text-sm { height: 10px; margin: 0 var(--s-md) var(--s-md); width: 60%; }

/* ============================================
   PIZZA BUILDER
   ============================================ */
.builder-section {
  background: var(--bg);
  padding: var(--s-4xl) 0;
}
.builder-header { text-align: center; margin-bottom: var(--s-2xl); }
.builder-grid {
  display: grid; grid-template-columns: 1fr 340px;
  gap: var(--s-xl); align-items: center;
}
.builder-canvas-wrap {
  width: 100%; aspect-ratio: 16/9; background: var(--bg-alt);
  border-radius: 24px; position: relative; overflow: hidden;
  border: 1px solid var(--border);
  cursor: grab;
}
.builder-canvas-wrap:active { cursor: grabbing; }
#pizza-builder-canvas {
  width: 100%; height: 100%; display: block;
}
.builder-price-tag {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(15, 15, 15, 0.85); padding: 12px 24px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 100px; font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700; color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-md);
}
.builder-ingredients { display: flex; flex-direction: column; gap: var(--s-sm); }
.builder-ing-btn {
  padding: 16px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  text-align: left; transition: all var(--dur) var(--ease);
}
.builder-ing-btn:hover { border-color: var(--ink); }
.builder-ing-btn.active {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary);
}

@media (max-width: 900px) {
  .builder-grid { grid-template-columns: 1fr; }
  .builder-canvas-wrap { aspect-ratio: 1; }
}

/* ============================================
   SCROLL REVEAL — iOS-grade
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity var(--dur-xl) var(--ease-out), transform var(--dur-xl) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Directional reveals for GSAP */
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(.92); }
.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1; transform: none;
  transition: all var(--dur-xl) var(--ease-out);
}

/* ============================================
   iOS SAFE AREAS
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  .nav { padding-top: env(safe-area-inset-top); }
  .cart-footer { padding-bottom: calc(var(--s-lg) + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(var(--s-xl) + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #webgl-canvas { display: none; }
}

/* ============================================
   UTILITIES
   ============================================ */
.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; }
[hidden] { display: none !important; }
