/* Public site layout */

.muted { color: var(--ink-muted); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
/* Logo: image (assets/logo.png) with a text fallback when the file is missing.
   Fixed heights so nothing shifts when the image loads. */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
/* multiply: the logo file's near-white background disappears on any light background */
.logo-img { height: 100%; width: auto; mix-blend-mode: multiply; }
.logo-text { display: none; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo.is-text .logo-text { display: inline-flex; }
.logo-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo-tag {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
}
.logo--header { height: 32px; }
.logo--header .logo-name { font-size: 24px; }
@media (min-width: 768px) {
  .logo--header { height: 40px; }
  .logo--header .logo-name { font-size: 28px; }
}
.logo--hero { height: 96px; }
.logo--hero .logo-name { font-size: 48px; }
.logo--hero .logo-tag { font-size: 11px; margin-top: 6px; }
@media (min-width: 900px) {
  .logo--hero { height: 120px; }
}
.header-actions { display: flex; align-items: center; gap: 4px; }
.call-link { font-size: 15px; }
.call-link svg { width: 18px; height: 18px; }

.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--cta);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: var(--s-4);
  padding-top: var(--s-5);
  padding-bottom: var(--s-5);
}
/* Opaque background so the racing line never runs behind hero text */
.hero-text { display: grid; gap: var(--s-2); justify-items: start; background: var(--bg); }
.hero-title {
  font-size: 44px;
  font-weight: 500;
}
.hero-title em { font-style: italic; }
.hero-sub { max-width: 34em; color: var(--ink); }
.hero-text .btn { margin-top: var(--s-1); }
.btn-hero { padding-right: 10px; gap: 10px; }
.new-tag {
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--s-6);
    padding-top: var(--s-8);
    padding-bottom: var(--s-8);
  }
  .hero-title { font-size: 64px; }
  .hero-sub { font-size: 17px; }
}

/* ---------- Info strip ---------- */
.info { --sec-bg: var(--cream); padding: var(--s-4) 0; }
.info-grid { display: grid; gap: var(--s-3); }
.info-col { display: grid; gap: 6px; align-content: start; background: var(--sec-bg); }
.info-col .label { margin-bottom: 2px; }
.info-link, .info-phone {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.info-link:hover, .info-phone:hover { text-decoration-color: var(--red); }
.info-phone { font-size: 18px; font-variant-numeric: tabular-nums; }
.info-hours-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

.hours-list { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.hours-list dt { font-weight: 600; }
.hours-list dd { margin: 0; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .info-grid { grid-template-columns: 1fr 1fr 1.3fr; gap: var(--s-4); }
}

/* ---------- Category nav ---------- */
.catnav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  height: var(--catnav-h);
  background: var(--bg);
  border-top: var(--border);
  border-bottom: var(--border);
}
.catnav .container { height: 100%; padding: 0; }
.catnav-track {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;   /* swiping the bar never drags the page sideways */
  touch-action: pan-x;              /* a swipe on the bar is horizontal only: no vertical jump */
  scroll-behavior: auto;
}
.catnav-track::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: var(--border);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  background: var(--bg);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
/* 36px visual chip, 44px tap area */
.chip { position: relative; }
.chip::after { content: ""; position: absolute; inset: -4px 0; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--cta); border-color: var(--cta); color: #fff; }

/* ---------- Menu ---------- */
.menu { padding-top: 0; padding-bottom: 0; }
.menu-status { text-align: center; color: var(--ink-muted); padding: var(--s-6) 0; }
.menu-status a { font-weight: 600; }

/* Sections alternate white / cream. */
/* Sections alternate (white hero · cream info · white O nama · cream first menu section …).
   Spacing between sections: 64px mobile / 96px desktop (--section-y). */
:root { --section-y: 64px; }
@media (min-width: 900px) { :root { --section-y: 96px; } }
.menu-section { --sec-bg: var(--cream); padding: var(--section-y) 0; scroll-margin-top: calc(var(--header-h) + var(--catnav-h) + 8px); }
.menu-section:nth-child(even) { --sec-bg: var(--bg); }

/* Layering (inside <main>, which is its own stacking context):
   band backgrounds (z -2)  <  racing line (z -1)  <  cards / text blocks.
   Text blocks get an opaque background equal to their band, so the line
   shows in gutters and gaps but never behind text. */
main { position: relative; z-index: 0; }
.band, .menu-section { position: relative; }
.band::before, .menu-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--sec-bg);
}
.section-head {
  width: fit-content;
  margin: 0 auto var(--s-5);
  padding: 4px var(--s-2);
  text-align: center;
  background: var(--sec-bg);
}
.section-title { font-size: var(--fs-section); font-weight: 500; }

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

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  background: var(--sec-bg);
}

/* "Popularno" badge on the image */
.media { position: relative; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}

/* "Offset print" frame: 2px outline offset 8px down-right, behind the image */
.frame { isolation: isolate; }
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 2px solid var(--frame-color);
  border-radius: var(--radius-card);
  transform: translate(8px, 8px);
  transition: transform .2s ease;
}
.frame-red { --frame-color: var(--red); }
.frame-yellow { --frame-color: var(--yellow); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .frame::before,
  .hero-media:hover::before { transform: translate(4px, 4px); }
}
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name {
  font-family: var(--font-display);
  font-size: var(--fs-dish);
  font-weight: 600;
  line-height: 1.15;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.tag {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  border: var(--border);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.card-ingredients { font-size: 15px; color: var(--ink-muted); line-height: 1.5; }
.card-when { font-size: 13px; color: var(--ink-muted); font-weight: 600; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: 6px;
  min-height: var(--tap);
}
.card-price { font-size: 17px; color: var(--red-text); }
.card-state {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card.is-unavailable .ph,
.card.is-unavailable .card-body { opacity: .5; }
.card.is-unavailable .card-state { opacity: 1; }

/* ---------- Footer: matte yellow with red details ---------- */
.site-footer {
  background: var(--yellow);
  color: var(--ink);
  border-top: 6px solid var(--red);           /* red stripe where the racing line ends */
  padding: var(--s-6) 0 var(--s-4);
}
.footer-inner {
  display: grid;
  gap: var(--s-4);
}
.footer-inner p { margin-top: 4px; }
/* Navy text on yellow = 7.5:1. Red is used for lines/underlines only (red text on yellow fails AA). */
.footer-inner a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.footer-inner a:hover { text-decoration-thickness: 3px; }
.site-footer .label {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer .label::before {                 /* small red diamond, like the section divider */
  content: "";
  width: 6px; height: 6px;
  background: var(--red);
  transform: rotate(45deg);
}
.site-footer .muted,
.site-footer .hours-list dd { color: var(--ink); }
.logo--footer {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
  justify-content: center;
  padding: 16px;
  margin-bottom: var(--s-1);
}
.logo--footer .logo-img { height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.logo--footer .logo-text { align-items: center; }
.logo--footer .logo-name { font-size: 22px; }
.logo--footer .logo-tag { font-size: 7px; }
.footer-copy {
  margin-top: var(--s-5);
  padding-top: var(--s-2);
  border-top: 1px solid rgba(201, 80, 58, 0.45);
  font-size: 12px;
  color: var(--ink);
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1.3fr; }
}

/* ---------- Mobile cart bar ---------- */
.cartbar {
  position: fixed;
  z-index: 40;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(12px + env(safe-area-inset-bottom));
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  text-align: left;
}
.cartbar[hidden] { display: none; }
.cartbar-sum { display: grid; line-height: 1.3; }
.cartbar-sum > span:first-child { font-size: 13px; color: #CFC9BD; }
.cartbar-cta { font-size: 15px; font-weight: 700; white-space: nowrap; }
.cartbar-total {
  background: var(--cta);
  color: var(--cream);
  border-radius: var(--radius-pill);
  padding: 0 18px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
}
/* Room under the footer so the bar never covers it (navy, no white strip) */
body.has-cartbar .site-footer { padding-bottom: calc(var(--s-4) + 80px); }
@media (min-width: 1024px) {
  .cartbar { display: none; }
  body.has-cartbar .site-footer { padding-bottom: var(--s-4); }
}

/* ---------- Racing line (js/line.js draws the path) ---------- */
.race-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}
.race-line path {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.race-line-y { stroke: var(--yellow); }
.race-line-r { stroke: var(--red); }
@media (max-width: 767px) {
  .race-line path { stroke-width: 4; }
}

/* ---------- Sheets: cart drawer + checkout modal (native <dialog>) ---------- */
.sheet {
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: var(--bg);
  color: var(--ink);
}
.sheet::backdrop { background: rgba(30, 42, 68, 0.35); }
.sheet[open] { animation: sheet-in .2s ease-out; }
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.sheet-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.view { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.view[hidden] { display: none; }
.sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 8px 10px var(--gutter);
  border-bottom: var(--border);
}
.modal .sheet-head { justify-content: flex-start; padding-left: 8px; }
.sheet-head-end { justify-content: flex-end !important; border-bottom: 0; }
.sheet-title { font-size: 28px; font-weight: 600; }
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--s-2) var(--gutter) var(--s-3);
}
.sheet-foot {
  flex: none;
  display: grid;
  gap: 8px;
  padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom));
  border-top: var(--border);
  background: var(--bg);
}
.sheet-foot[hidden] { display: none; }

@media (min-width: 640px) {
  .drawer {
    margin-left: auto;
    width: 420px;
    box-shadow: var(--shadow-drawer);
  }
  .drawer[open] { animation-name: drawer-in; }
  @keyframes drawer-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: none; }
  }
  .modal {
    margin: auto;
    width: 520px;
    height: auto;
    max-height: min(92vh, 860px);
    border-radius: var(--radius-card);
  }
  .modal .sheet-inner { height: auto; max-height: min(92vh, 860px); }
  .modal .view { height: auto; max-height: min(92vh, 860px); }
}

/* Cart lines */
.cart-empty { text-align: center; padding: var(--s-6) 0; display: grid; gap: var(--s-2); justify-items: center; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: var(--s-2) 0;
  border-bottom: var(--border);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.cart-line-unit { font-size: 13px; color: var(--ink-muted); }
.cart-line-total { font-size: 16px; text-align: right; align-self: start; padding-top: 2px; }
.cart-line-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-line-warn { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--danger); }
.link-btn {
  min-height: var(--tap);
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--danger); }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: 18px;
}
.pay-note { font-size: 13px; text-align: center; }
.block-reason {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
  text-align: center;
}
.block-reason:empty { display: none; }

/* Checkout form */
.checkout-form { display: grid; gap: var(--s-3); align-content: start; }
.form-error {
  background: #FBEAE7;
  color: var(--danger);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
}
.form-error:empty { display: none; }
.turnstile-slot {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #D9D2C6;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
  padding: 8px;
}
.checkout-summary {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 18px;
  padding-top: var(--s-2);
  border-top: var(--border);
}
.confirm-note {
  background: var(--yellow-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}
.checkout-form .pay-note { margin: -8px 0 -12px; }  /* sits right above the submit button */

/* Success */
.success { display: grid; gap: var(--s-3); justify-items: center; text-align: center; padding-top: 0; }
.success:focus { outline: none; }
.success-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-check svg { width: 36px; height: 36px; }
.success-code { font-size: 14px; }
.success-code strong {
  display: block;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-top: 4px;
}
.success-title { font-size: 32px; font-weight: 500; }
.success-summary {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--s-2);
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.success-summary li { display: flex; justify-content: space-between; gap: 12px; }
.success-summary .total-row { border-top: var(--border); padding-top: 8px; font-size: 16px; }
.success-meta { font-size: 14px; color: var(--ink-muted); }
.success-fallback { font-size: 15px; }
.success-fallback a { font-weight: 700; white-space: nowrap; }

/* =====================================================================
   POLISH PASS — header nav, O nama, Galerija, lightbox
   ===================================================================== */

/* ---------- Header navigation ---------- */
.site-nav { display: none; gap: 4px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.site-nav a:hover { background: var(--yellow-soft); }
.menu-toggle { display: inline-flex; }
.mobile-nav {
  position: absolute;
  left: 0; right: 0; top: 100%;
  display: grid;
  padding: 8px var(--gutter) 16px;
  background: var(--bg);
  border-bottom: var(--border);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-nav.is-open { opacity: 1; transform: none; }
/* Closed menu must not exist for taps (it sits right over the category bar) */
.mobile-nav[hidden] { display: none; }
.mobile-nav:not(.is-open) { pointer-events: none; visibility: hidden; }
.mobile-nav a {
  display: flex; align-items: center;
  min-height: 52px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: var(--border);
}
.mobile-nav a:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- O nama ---------- */
.about { --sec-bg: var(--bg); padding: var(--section-y) 0; }
.about-grid { display: grid; gap: var(--s-5); align-items: center; }
.about-media .ph { aspect-ratio: 4 / 3; }
.about-media .ph img { object-fit: cover; }
.about-text { background: var(--sec-bg); display: grid; gap: var(--s-2); justify-items: start; }
.about-title { font-size: clamp(34px, 7vw, 56px); font-weight: 500; line-height: 1.08; }
.about-title em { font-style: italic; }
.about-p { font-size: 17px; line-height: 1.7; max-width: 60ch; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: var(--s-1) var(--s-4);
  margin-top: var(--s-1);
  padding-top: var(--s-2);
  border-top: var(--border);
}
.facts li { display: grid; gap: 2px; }
.facts strong { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.facts span { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 479px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); }
}

/* Typewriter: every char already takes its space (no layout shift), it just becomes visible */
.tw-word { white-space: nowrap; }
.js-anim .tw-char { opacity: 0; }
.js-anim .tw-char.is-typed { opacity: 1; }
.tw-char.is-caret { position: relative; }
.tw-char.is-caret::after {
  content: "";
  position: absolute;
  right: -4px; top: 12%; bottom: 8%;
  width: 2px;
  background: var(--red);
  animation: caret-blink .8s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Gentle fade-up for the text below the title */
.js-anim .fade-up { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js-anim .fade-up.is-in { opacity: 1; transform: none; }

/* ---------- Galerija ---------- */
.gallery { --sec-bg: var(--cream); padding: var(--section-y) 0; }
.gallery .section-title em { font-style: italic; }

.mosaic {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(8, 1fr);
  grid-template-areas:
    "big big" "big big"
    "tall a"  "tall b"
    "w1 w1"   "c d"
    "e f"     "w2 w2";
  aspect-ratio: 2 / 8;              /* fixed size before images load = no layout shift */
}
@media (min-width: 768px) {
  .mosaic {
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-template-areas:
      "big big tall a"
      "big big tall b"
      "w1  w1  c    d"
      "e   f   w2   w2";
    aspect-ratio: 1 / 1;
  }
}
@media (min-width: 1024px) { .mosaic { aspect-ratio: 4 / 3.4; } }
.tile[data-area="big"]  { grid-area: big; }
.tile[data-area="tall"] { grid-area: tall; }
.tile[data-area="w1"]   { grid-area: w1; }
.tile[data-area="w2"]   { grid-area: w2; }
.tile[data-area="a"] { grid-area: a; } .tile[data-area="b"] { grid-area: b; }
.tile[data-area="c"] { grid-area: c; } .tile[data-area="d"] { grid-area: d; }
.tile[data-area="e"] { grid-area: e; } .tile[data-area="f"] { grid-area: f; }

.tile { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--ink); }
.tile-btn {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: none;
  cursor: zoom-in;
}
.tile-btn img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
/* thin yellow outline on hover/focus */
.tile::after {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid var(--yellow);
  border-radius: inherit;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.tile:focus-within::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-btn img { transform: scale(1.05); }
  .tile:hover::after { opacity: 1; }
}

/* Reveal: wipe from the bottom, one tile after another */
.js-anim .tile {
  clip-path: inset(100% 0 0 0);
  transition: clip-path .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 80ms);
}
.js-anim .tile.is-in { clip-path: inset(0 0 0 0); }

/* Living tile: 3 photos crossfade, the visible one drifts slowly (Ken Burns) */
.tile--live img { opacity: 0; transition: opacity 1.2s ease, transform .7s ease; }
.tile--live img.is-active { opacity: 1; }
.tile--live .is-playing img.is-active { animation: ken-burns 6s ease-out both; }
@keyframes ken-burns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-2%, -1.5%); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: var(--cream);
}
.lightbox::backdrop { background: rgba(30, 42, 68, 0.94); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; animation: lb-in .25s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 0 24px; min-width: 0; }
.lb-img {
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  border-radius: var(--radius-card);
  object-fit: contain;
  transition: opacity .4s ease, transform .4s ease;
}
.lb-img.is-swapping { opacity: 0; transform: scale(.98); }
.lb-caption { font-family: var(--font-display); font-size: 26px; font-style: italic; text-align: center; }
.lb-btn {
  width: 48px; height: 48px;
  margin: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(251, 246, 236, .35);
  border-radius: 50%;
  background: rgba(30, 42, 68, .6);
  color: var(--cream);
}
.lb-btn:hover { background: rgba(251, 246, 236, .12); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { position: fixed; top: 12px; right: 12px; margin: 0; z-index: 2; }
@media (max-width: 599px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: fixed; bottom: 16px; z-index: 2; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-figure { padding: 64px 12px 88px; }
  .lb-img { max-height: calc(100dvh - 220px); }
}

/* Reduced motion: no wipe, no Ken Burns, no typing — simple fades only */
@media (prefers-reduced-motion: reduce) {
  .js-anim .tile { clip-path: none; opacity: 0; transition: opacity .3s ease; }
  .js-anim .tile.is-in { opacity: 1; }
  .tile--live .is-playing img.is-active { animation: none; }
}

/* Text-only dish card (no photo yet) */
.card--text {
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-card);
  padding: var(--s-3);
  align-self: start;
}

/* ---------- Add-on picker: bottom sheet on phones, modal on desktop ---------- */
.addon-sheet { height: auto; max-height: 88dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
.addon-sheet[open] { animation: addon-up .22s ease-out; }
@keyframes addon-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.addon-sheet .sheet-inner { height: auto; max-height: 88dvh; }
.addon-sheet .sheet-head { border-bottom: 0; padding-top: 14px; }
.addon-sheet .sheet-head::before {           /* grab handle */
  content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px;
  margin-left: -20px; border-radius: 2px; background: var(--line);
}
.addon-sheet .sheet-inner { position: relative; }
.addon-sheet .sheet-body { padding-top: 0; }
.addons-base { color: var(--ink-muted); font-size: 15px; margin-bottom: var(--s-2); }
.addons-base .price { color: var(--ink); font-weight: 700; }
.addons-list { border: 0; margin: 0; padding: 0; min-width: 0; }
.addons-list legend { margin-bottom: 8px; }
.addon {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 4px; border-bottom: var(--border); cursor: pointer;
}
.addon:last-child { border-bottom: 0; }
.addon input { width: 22px; height: 22px; flex: none; accent-color: var(--cta); margin: 0; }
.addon-name { flex: 1; font-size: 16px; }
.addon-price { font-size: 15px; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.addon:has(input:checked) .addon-price { color: var(--cta); }
.addon.is-off { opacity: .5; cursor: not-allowed; }
.addons-foot { gap: 6px; }
.addons-foot .form-error:empty { display: none; }
.addons-row { display: flex; gap: 12px; align-items: center; }
.addons-add { flex: 1; min-height: 52px; }
.addons-add .price { color: inherit; }
@media (min-width: 640px) {
  .addon-sheet { margin: auto; width: 520px; border-radius: var(--radius-card); max-height: min(88vh, 760px); box-shadow: var(--shadow-drawer); }
  .addon-sheet .sheet-inner { max-height: min(88vh, 760px); }
  .addon-sheet .sheet-head::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .addon-sheet[open] { animation: none; } }

/* Add-ons on cart lines, success screen, card */
.cart-line-addons { font-size: 14px; color: var(--ink); margin: 2px 0; }
.line-addons { display: block; font-size: 13px; color: var(--ink-muted); }
.card-actions { display: inline-flex; align-items: center; gap: 10px; }
.in-cart { font-size: 13px; font-weight: 700; color: var(--cta); white-space: nowrap; }
