/* ==========================================================================
   Pizza Bellizzi · zákaznický web
   Design systém: „Apple minimal“ — porcelánové pozadí, bílé karty s velkým
   rádiusem, hairline linky, černé pill CTA, jemné vrstvené stíny, Geist.
   ========================================================================== */

:root {
  /* neutrály */
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #86868b;
  --faint: #b8b5b0;
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --line: rgba(29, 29, 31, 0.08);
  --line-strong: rgba(29, 29, 31, 0.16);

  /* brand */
  --rosso: #e1232b;
  --rosso-dark: #b81c22;
  --rosso-soft: #fdeeec;
  --verde: #0a8a3e;
  --verde-dark: #0a6e34;
  --verde-soft: #e8f4ec;
  --gold: #f5b325;
  --gold-soft: #fdf3d7;

  /* aliasy (zpětná kompatibilita) */
  --nero: var(--ink);
  --nero-soft: var(--ink-2);
  --bianco: #ffffff;
  --grigio-50: var(--surface-2);
  --grigio-100: #f1efeb;
  --grigio-200: #e7e4df;
  --grigio-300: #d5d2cc;
  --grigio-500: var(--muted);
  --grigio-700: var(--ink-2);

  /* stíny — měkké, vrstvené, „vzduchové“ */
  --shadow-xs: 0 1px 2px rgba(29, 29, 31, 0.05);
  --shadow-sm: 0 1px 2px rgba(29, 29, 31, 0.04), 0 4px 12px -4px rgba(29, 29, 31, 0.06);
  --shadow-md: 0 2px 6px rgba(29, 29, 31, 0.05), 0 14px 32px -14px rgba(29, 29, 31, 0.14);
  --shadow-lg: 0 4px 12px rgba(29, 29, 31, 0.06), 0 32px 64px -24px rgba(29, 29, 31, 0.22);
  --shadow-pop: 0 6px 14px rgba(29, 29, 31, 0.06), 0 28px 56px -20px rgba(29, 29, 31, 0.20);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --font-display: "Pacifico", "Brush Script MT", cursive;
  --font-heading: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --ease-spring: cubic-bezier(0.32, 0.72, 0.24, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* jemné světelné pozadí místo hrubé textury */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(90rem 42rem at 82% -12%, rgba(225, 35, 43, 0.045), transparent 60%),
    radial-gradient(70rem 36rem at -10% 6%, rgba(10, 138, 62, 0.04), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: none; }

::selection { background: rgba(225, 35, 43, 0.14); }

/* ===== Statusbar ===== */
.statusbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.statusbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.statusbar-left,
.statusbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.statusbar-left span { opacity: 0.72; }

.pill-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(48, 209, 88, 0.16);
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.pill-open::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.22);
  animation: openPulse 2.2s infinite;
}

@keyframes openPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.pill-open.closed {
  background: rgba(255, 69, 58, 0.16);
  color: #ff6961;
}
.pill-open.closed::before {
  background: #ff453a;
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.22);
  animation: none;
}

/* ===== Header — glass bar ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 247, 0.78);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  backdrop-filter: saturate(1.8) blur(22px);
  border-bottom: 1px solid var(--line);
  transition: background 0.28s ease, border-color 0.28s ease;
}

/* nahoře nad hero fotkou: průhledný header, bílé texty */
.header.at-top {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.header.at-top .brand-word span:first-child,
.header.at-top .brand-word span:last-child { color: #fff; }
.header.at-top .brand-sub { color: rgba(255, 255, 255, 0.72); }
.header.at-top .brand-mark {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
}

.header.at-top .nav a { color: rgba(255, 255, 255, 0.82); }
.header.at-top .nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.header.at-top .nav a.active { background: #fff; color: var(--ink); }

.header.at-top .header-call {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header.at-top .header-cart {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.5);
}
.header.at-top .header-cart:hover { background: #f2f0ec; }

.header.at-top .mobile-open {
  background: rgba(8, 8, 10, 0.38);
  color: #4ade80;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header.at-top .mobile-open.closed {
  background: rgba(8, 8, 10, 0.38);
  color: #ff6b64;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  padding: 5px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text { display: inline-flex; flex-direction: column; }

.brand-word {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
  display: inline-flex;
  gap: 7px;
}

.brand-word span:first-child { color: var(--verde); }
.brand-word span:last-child { color: var(--rosso); }

.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-open { display: none; }

/* desktop pořadí: brand | nav | call | cart */
.brand { order: 1; }
.nav { order: 2; }
.header-call { order: 3; }
.header-cart { order: 4; margin-left: auto; }

.nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}

.nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover { background: rgba(29, 29, 31, 0.05); color: var(--ink); }
.nav a.active { background: var(--ink); color: #fff; }

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.header-call:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px 10px 15px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px -8px rgba(29, 29, 31, 0.45);
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s ease, background 0.16s ease;
}

.header-cart:hover {
  transform: translateY(-1px);
  background: #000;
  box-shadow: 0 12px 26px -8px rgba(29, 29, 31, 0.5);
}
.header-cart:active { transform: scale(0.97); }

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--rosso);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.header-cart:hover .cart-count { background: var(--rosso); color: #fff; }

/* ===== Hero — fotka až do hrany, zaoblení jen dole ===== */
/* Hero se podsouvá pod průhledný header (záporný margin o výšku headeru). */
.hero {
  max-width: none;
  margin: calc(-1 * var(--header-h, 77px)) 0 0;
  padding: 0;
}

.hero-banner {
  position: relative;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
  background: #141416;
  box-shadow: var(--shadow-lg);
}

.hero-banner > img {
  width: 100%;
  height: clamp(380px, 44vw, 560px);
  object-fit: cover;
  object-position: center 62%;
  display: block;
  filter: saturate(0.95) brightness(0.62);
}

.hero-stripe {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0) 30%),
    linear-gradient(
      to right,
      rgba(10, 10, 12, 0.82) 0%,
      rgba(10, 10, 12, 0.55) 44%,
      rgba(10, 10, 12, 0.12) 78%,
      rgba(10, 10, 12, 0) 100%
    );
  pointer-events: none;
}

.hero-stripe::after { content: none; }

.hero-overlay {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h, 77px) + 10px) 40px 36px;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-eyebrow.dark {
  background: var(--rosso-soft);
  border: 0;
  color: var(--rosso-dark);
}

.hero h1 {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
  margin: 4px 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82em;
}

.hero p {
  margin: 12px 0 0;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 14px;
}

/* na tmavém hero: primární = bílý pill */
.hero-actions .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.55);
}
.hero-actions .btn-primary:hover { background: #f2f0ec; }

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-actions .btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== Tlačítka ===== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.16s var(--ease-spring), background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(29, 29, 31, 0.5);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(29, 29, 31, 0.55);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary.dark {
  background: transparent;
  border-color: var(--line-strong);
}

.btn-secondary:hover { background: var(--grigio-100); transform: translateY(-1px); }
.btn-secondary:active { transform: scale(0.97); }

/* ===== Sekce ===== */
.section {
  max-width: 1280px;
  margin: 72px auto 0;
  padding: 0 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.contact-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head h2 span {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

/* ===== Slevy — karty polední akce ===== */
.deals-section { margin-top: 44px; }

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* legacy barevné dlaždice */
.deal-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--r-lg);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.deal-card.red { background: linear-gradient(140deg, var(--rosso) 0%, var(--rosso-dark) 100%); }
.deal-card.green { background: linear-gradient(140deg, var(--verde) 0%, var(--verde-dark) 100%); }
.deal-card.black { background: linear-gradient(140deg, #232326 0%, #0e0e10 100%); }
.deal-card::after { content: none; }

.deal-tag {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deal-card h3 {
  position: relative;
  z-index: 1;
  margin: 14px 0 4px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.deal-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.9);
}

.deal-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
}

.deal-price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.deal-price s { opacity: 0.55; font-size: 14px; font-weight: 600; margin-right: 6px; }
.deal-cta { min-height: 38px; padding: 9px 16px; font-size: 13px; }

.deal-card.green .btn-secondary.dark,
.deal-card.black .btn-secondary.dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.deal-card.green .btn-secondary.dark:hover,
.deal-card.black .btn-secondary.dark:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* — akční pizza karty: výrazná červená jako promo modal — */
.deal-pizza {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 10px 10px 0;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
    linear-gradient(135deg, #ec3c34 0%, var(--rosso) 40%, #a3161c 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 24px 52px -20px rgba(160, 20, 26, 0.5);
  text-align: left;
  transition: transform 0.24s var(--ease-spring), box-shadow 0.24s ease;
}

.deal-pizza::after { content: none; }

.deal-pizza:hover,
.deal-pizza:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 34px 68px -22px rgba(160, 20, 26, 0.62);
  outline: none;
}

.deal-pizza-flag {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(15, 15, 17, 0.55);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.deal-pizza-disc {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: #ffd84d;
  color: #7a1013;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.35);
  transform: none;
  width: auto;
  height: auto;
  flex-direction: row;
  font-family: var(--font-heading);
}
.deal-pizza-disc b { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.deal-pizza-disc i { font-size: 12px; font-weight: 800; font-style: normal; margin-top: 0; }

.deal-pizza-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 6px);
  background: #8f1519;
  box-shadow: 0 14px 30px -12px rgba(90, 10, 14, 0.55);
}
.deal-pizza-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transition: transform 0.5s var(--ease-spring);
}
.deal-pizza:hover .deal-pizza-media img { transform: scale(1.045); }

.deal-pizza-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
  padding: 15px 8px 16px;
}
.deal-pizza-body h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.deal-pizza-body > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 500;
}
.deal-pizza-body > .deal-pizza-meta {
  width: fit-content;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}
.deal-pizza-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
}
.deal-pizza-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-heading);
}
.deal-pizza-price s {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 600;
}
.deal-pizza-price b {
  font-size: 23px;
  font-weight: 800;
  color: #ffd84d;
  letter-spacing: -0.03em;
}
.deal-pizza-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 17px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--rosso-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s var(--ease-spring), box-shadow 0.16s ease;
}
.deal-pizza-cta svg { width: 15px; height: 15px; color: var(--rosso); }
.deal-pizza-cta:hover {
  background: #fff4f0;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.45);
}
.deal-pizza-cta:active { transform: scale(0.96); }
.deal-pizza:hover .deal-pizza-cta { background: #fff4f0; }

/* ===== Polední akce — modal ===== */
.lunch-deal {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 34px 36px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    linear-gradient(135deg, #ec3c34 0%, var(--rosso) 40%, #a3161c 100%);
  color: #fff;
  box-shadow: 0 40px 90px -30px rgba(160, 20, 26, 0.55);
  display: grid;
  grid-template-columns: minmax(290px, 0.92fr) minmax(0, 1.35fr);
  gap: 30px;
  align-items: center;
}

.lunch-deal::before,
.lunch-deal::after { content: none; }

.lunch-deal-info { position: relative; z-index: 1; }
.lunch-deal-pizzas { position: relative; z-index: 1; }

.lunch-mark {
  position: absolute;
  right: -55px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  z-index: 0;
  background: url("assets/logo-watermark.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.1;
  pointer-events: none;
}

.lunch-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lunch-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: lunchPulse 1.9s infinite;
}
@keyframes lunchPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 179, 37, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(245, 179, 37, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 179, 37, 0); }
}

.lunch-title {
  margin: 16px 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.lunch-title span {
  display: block;
  margin-top: 4px;
  color: #ffd84d;
}

.lunch-sub {
  margin: 0;
  max-width: 430px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
}

.lunch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}
.lunch-chip {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  font-weight: 700;
}
.lunch-chip-save {
  background: #fff;
  color: var(--rosso-dark);
}

.lunch-cta {
  background: #fff;
  color: var(--rosso-dark);
  box-shadow: var(--shadow-md);
}
.lunch-cta:hover { background: #fff4f0; }

.lunch-deal-pizzas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lunch-pizza {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 18px 12px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(90, 10, 14, 0.5);
  cursor: pointer;
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s ease, background 0.16s ease;
}
.lunch-pizza:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 22px 44px -18px rgba(90, 10, 14, 0.58);
}
.lunch-pizza:active { transform: scale(0.985); }
.lunch-pizza:focus-visible {
  outline: 3px solid #ffd84d;
  outline-offset: 3px;
}
.lunch-pizza-img {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: #e8e8e8;
}
.lunch-pizza-img img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.35);
}
.lunch-save {
  position: absolute;
  top: -6px;
  right: -10px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--verde);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.lunch-pizza-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lunch-pizza-text strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lunch-pizza-text small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  min-height: 30px;
  font-weight: 500;
}
.lunch-price {
  margin-top: 2px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--rosso);
  letter-spacing: -0.02em;
}
.lunch-price s {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  margin-right: 5px;
}

.lunch-modal {
  align-items: center;
  justify-content: center;
}
.lunch-modal .modal {
  width: min(920px, 100%);
  min-width: 0;
  max-height: 94vh;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: auto;
}
.lunch-modal .lunch-deal-info { min-width: 0; }
.lunch-modal .lunch-deal {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  animation: lunchModalIn 0.34s var(--ease-spring);
}
@keyframes lunchModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.lunch-modal .modal-close {
  top: 16px;
  right: 16px;
  z-index: 5;
}

/* Narrow windows and tablets: readable horizontal cards instead of tiny circles. */
@media (min-width: 641px) and (max-width: 820px) {
  .lunch-modal .lunch-deal {
    max-height: 88vh;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .lunch-modal .lunch-deal::-webkit-scrollbar { display: none; }
  .lunch-modal .lunch-deal-pizzas {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 18px;
  }
  .lunch-modal .lunch-pizza {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 9px;
    border-radius: 18px;
    text-align: left;
  }
  .lunch-modal .lunch-pizza-img {
    width: 160px;
    height: 112px;
  }
  .lunch-modal .lunch-pizza-img img {
    border-radius: 0;
    object-position: center 48%;
    box-shadow: none;
  }
  .lunch-modal .lunch-pizza-text {
    min-width: 0;
    align-items: flex-start;
    gap: 4px;
  }
  .lunch-modal .lunch-pizza-text small {
    min-height: 0;
    font-size: 12px;
  }
  .lunch-modal .lunch-save {
    top: 7px;
    right: 7px;
  }
}

/* ===== Mimo provozní dobu — modal ===== */
.modal-backdrop.closed-modal {
  display: none;
  place-items: center;
  place-content: center;
  padding: 32px;
  z-index: 95;
}
.modal-backdrop.closed-modal.open {
  display: grid;
}
.closed-modal .modal {
  width: min(420px, 100%);
  max-height: none;
  height: auto;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  align-self: center;
  justify-self: center;
}
.closed-card {
  position: relative;
  overflow: hidden;
  padding: 40px 36px 32px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px -20px rgba(29, 29, 31, 0.28);
  text-align: center;
  animation: lunchModalIn 0.34s var(--ease-spring);
}
.closed-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rosso) 0%, #f06a4a 55%, var(--gold) 100%);
}
.closed-mark {
  position: absolute;
  right: -36px;
  bottom: -46px;
  width: 180px;
  height: 180px;
  background: url("assets/logo-watermark.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--rosso-soft);
  color: var(--rosso-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.closed-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rosso);
}
.closed-card h2 {
  margin: 18px 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}
.closed-sub {
  margin: 0 auto;
  max-width: 320px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}
.closed-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px auto 0;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(29, 29, 31, 0.04);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}
.closed-next strong {
  color: var(--ink);
  font-weight: 800;
}
.closed-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}
.closed-actions .btn-primary,
.closed-actions .btn-secondary {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  padding-inline: 14px;
}
.closed-modal .modal-close {
  top: 14px;
  right: 14px;
  z-index: 5;
}

/* Zamčené objednávání mimo provozní dobu */
body.ordering-closed .btn-quick-add,
body.ordering-closed .deal-pizza-cta,
body.ordering-closed .drink-add,
body.ordering-closed .modal-add,
body.ordering-closed #checkoutBtn {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.35);
  box-shadow: none !important;
  pointer-events: none;
}
body.ordering-closed .btn-quick-add:hover,
body.ordering-closed .deal-pizza-cta:hover,
body.ordering-closed .drink-add:hover,
body.ordering-closed .modal-add:hover {
  transform: none;
  background: inherit;
}
body.ordering-closed .btn-quick-add {
  background: #9a9a9e;
}
body.ordering-closed .deal-pizza-cta {
  background: rgba(255, 255, 255, 0.72);
  color: #6a6a6e;
}
body.ordering-closed .deal-pizza-cta svg { color: #8a8a8e; }
body.ordering-closed .drink-add {
  background: #9a9a9e;
}

/* ===== Filtry + přepínač zobrazení ===== */
.head-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.view-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(29, 29, 31, 0.05);
  border: 0;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.view-btn:hover { color: var(--ink); }
.view-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.chip {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s var(--ease-spring);
}

.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 8px 18px -8px rgba(29, 29, 31, 0.45);
}

/* ===== Pizza karty ===== */
.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.pizza-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease, border-color 0.2s ease;
}

.pizza-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-pop);
}

.pizza-card:hover .pizza-img img { transform: scale(1.05); }

.pizza-card.view-list:hover .pizza-img img,
.view-list .pizza-card:hover .pizza-img img { transform: none; }

.pizza-img img { transition: transform 0.5s var(--ease-spring); }

.pizza-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--grigio-100);
  overflow: hidden;
}

.pizza-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pizza-num { display: none; }

.pizza-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pizza-badge {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pizza-badge.veg { background: var(--verde); color: #fff; }
.pizza-badge.spicy { background: var(--rosso); color: #fff; }
.pizza-badge.cream { background: #fdf3d7; color: #8a6410; }
.pizza-badge.hit { background: var(--gold); color: #3d2c02; }

.pizza-body {
  padding: 17px 17px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pizza-body h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pizza-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  min-height: 55px;
}

.pizza-allerg {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pizza-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pizza-price-row {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
}

.price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
  letter-spacing: -0.01em;
}

.pizza-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-top: 12px;
}

.btn-edit,
.btn-quick-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s var(--ease-spring), box-shadow 0.16s ease;
}

.btn-edit {
  background: rgba(29, 29, 31, 0.05);
  color: var(--ink);
  border: 0;
}
.btn-edit:hover { background: rgba(29, 29, 31, 0.09); }
.btn-edit:active { transform: scale(0.96); }
.btn-edit svg { color: var(--muted); }

.btn-quick-add {
  background: linear-gradient(135deg, #ec3c34 0%, var(--rosso) 55%, #c2181f 100%);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(190, 25, 32, 0.6);
}
.btn-quick-add:hover {
  background: linear-gradient(135deg, #f04a42 0%, #e6353d 55%, #cc1f26 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(190, 25, 32, 0.66);
}
.btn-quick-add:active { transform: scale(0.96); }
.btn-quick-add svg { color: #fff; }

/* legacy */
.card-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ===== Zobrazení seznam ===== */
.pizza-grid.view-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.view-list .pizza-card {
  flex-direction: row;
  align-items: stretch;
  border-radius: var(--r-md);
}

.view-list .pizza-img {
  width: 110px;
  height: auto;
  aspect-ratio: auto;
  flex: 0 0 110px;
  border-radius: 0;
  align-self: stretch;
  min-height: 100%;
}

.view-list .pizza-img img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.view-list .pizza-badges { display: none; }

.view-list .pizza-body {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
}

.view-list .pizza-body h3 { font-size: 17px; flex: 0 0 auto; min-width: 140px; }
.view-list .pizza-desc { margin: 0; min-height: 0; font-size: 13px; flex: 1; }
.view-list .pizza-allerg { margin: 0; flex: 0 0 auto; }

.view-list .pizza-price-row {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.view-list .pizza-actions {
  margin: 0;
  flex: 0 0 auto;
  grid-template-columns: auto auto;
  width: auto;
}
.view-list .btn-edit,
.view-list .btn-quick-add { min-height: 36px; padding: 0 12px; font-size: 12px; }
.view-list .price { font-size: 21px; }

@media (max-width: 760px) {
  .view-list .pizza-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
  }
  .view-list .pizza-body h3 { min-width: 0; }
  .view-list .pizza-actions { width: 100%; grid-template-columns: 1fr 1.4fr; }
  .view-list .pizza-allerg { font-size: 10px; }
}

/* ===== Nápoje ===== */
.drink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.drink-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.24s var(--ease-spring), border-color 0.18s ease, box-shadow 0.24s ease;
}

.drink-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.drink-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: calc(var(--r-lg) - 6px);
  background: var(--grigio-100);
}

.drink-img img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.14));
  transition: transform 0.3s var(--ease-spring);
}
.drink-card:hover .drink-img img { transform: translateY(-3px) scale(1.03); }

.drink-card h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.drink-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.drink-card .price { margin-top: 11px; font-size: 18px; }

.drink-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.drink-add {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec3c34 0%, var(--rosso) 55%, #c2181f 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(190, 25, 32, 0.6);
  transition: background 0.16s ease, transform 0.16s var(--ease-spring), box-shadow 0.16s ease;
}
.drink-add:hover {
  background: linear-gradient(135deg, #f04a42 0%, #e6353d 55%, #cc1f26 100%);
  transform: scale(1.06);
  box-shadow: 0 12px 22px -8px rgba(190, 25, 32, 0.66);
}
.drink-add:active { transform: scale(0.94); }

/* ===== Rozvoz ===== */
.delivery-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.delivery-copy {
  border-radius: calc(var(--r-xl) - 8px);
  background: var(--surface-2);
  padding: 32px;
}

.delivery-copy h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.delivery-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 10px no-repeat;
  box-shadow: 0 0 0 4px var(--verde-soft);
}

.map-card {
  overflow: hidden;
  min-height: 360px;
  border: 0;
  border-radius: calc(var(--r-xl) - 8px);
  background: var(--grigio-100);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* ===== Kontakt ===== */
.contact-section { margin-bottom: 72px; }

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #232326 0%, #101012 100%);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 26rem at 90% -20%, rgba(225, 35, 43, 0.22), transparent 55%),
    radial-gradient(46rem 22rem at -8% 118%, rgba(10, 138, 62, 0.16), transparent 55%);
  pointer-events: none;
}

.contact-card > div { position: relative; z-index: 1; }

.contact-card h2 {
  margin: 16px 0 8px;
  color: #fff;
}

.contact-card p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 500;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.contact-actions .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
}
.contact-actions .btn-primary:hover { background: #f2f0ec; }

.contact-actions .btn-secondary.dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.contact-actions .btn-secondary.dark:hover { background: rgba(255, 255, 255, 0.1); }

.hours-card {
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.hours-card h3 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hours-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.hours-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hours-card dt { color: var(--muted); font-weight: 500; font-size: 14.5px; }
.hours-card dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.hours-card p { margin: 16px 0 0; color: var(--muted); font-size: 13px; font-weight: 500; }

/* ===== Alergeny ===== */
.allergens-section { margin-bottom: 72px; }

.allergens-details {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.allergens-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  transition: background 0.16s ease;
}

.allergens-summary::-webkit-details-marker { display: none; }
.allergens-summary:hover { background: var(--surface-2); }

.allergens-head-text h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.allergens-head-text h2 span {
  color: var(--muted);
  font-weight: 800;
}
.allergens-head-text p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.toggle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.05);
  color: var(--ink);
  transition: transform 0.28s var(--ease-spring), background 0.16s ease, color 0.16s ease;
}
.allergens-details[open] .toggle-arrow {
  transform: rotate(180deg);
  background: var(--ink);
  color: #fff;
}

.allergens-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0 26px 26px;
  list-style: none;
  counter-reset: allergen;
}

.allergens-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink-2);
}

.allergens-list li .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 60px 0 28px;
  margin-top: 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.footer-brand { font-size: 28px; margin-bottom: 14px; }
.footer p { max-width: 380px; margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 14.5px; }
.footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer a {
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14.5px;
  transition: color 0.15s ease;
}
.footer a:hover { color: #fff; }

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 22px 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-privacy {
  display: block;
  margin: 9px 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.66);
  font: inherit;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-privacy:hover { color: #fff; }

/* ===== To-top ===== */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform 0.16s var(--ease-spring);
}
.to-top:hover { transform: translateY(-2px); }
.to-top.show { display: inline-flex; }

/* ===== Modal — společné ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 18, 16, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open { display: flex; }

.modal {
  position: relative;
  width: min(640px, 100%);
  max-height: 94vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 0;
  animation: modalIn 0.32s var(--ease-spring);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.modal-hero,
.modal-foot { flex: 0 0 auto; }
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* vodoznak s logem v prázdném prostoru modálů */
#pizzaModal .modal,
#checkoutModal .modal { isolation: isolate; }

#pizzaModal .modal::after,
#checkoutModal .modal::after {
  content: "";
  position: absolute;
  right: -9%;
  bottom: -7%;
  width: min(380px, 66%);
  aspect-ratio: 1;
  background: url("assets/logo-watermark.png") center / contain no-repeat;
  opacity: 0.05;
  filter: grayscale(1);
  pointer-events: none;
  z-index: -1;
}

/* ===== Pizza modal — hero fotka ===== */
.modal-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 56vh;
  overflow: hidden;
  background: #141416;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  will-change: height;
}

.modal-hero .modal-title,
.modal-hero .modal-tag {
  opacity: calc(1 - var(--collapse, 0));
  transition: opacity 0.12s linear;
}
.modal-hero .modal-title { pointer-events: none; }

.modal-hero .modal-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hero-full-h, 100%);
  border-radius: 0;
}

.modal-hero .modal-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 32%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
}

.modal-hero .modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-hero .modal-img-half {
  position: absolute;
  inset: 0;
}
.modal-img.is-split .modal-img-half.left { clip-path: inset(0 50% 0 0); }
.modal-img.is-split .modal-img-half.right { clip-path: inset(0 0 0 50%); }
.modal-img:not(.is-split) .modal-img-half.right { display: none; }

.modal-img-divider {
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0.9) 80%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  z-index: 2;
  display: none;
  pointer-events: none;
}
.modal-img.is-split .modal-img-divider { display: block; }

.modal-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.42) 55%,
    rgba(0, 0, 0, 0.82) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.modal-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-hero .modal-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 74px;
  z-index: 3;
  padding: 0 22px;
  color: #fff;
}

.modal-hero .modal-title h2 {
  margin: 0 0 5px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.modal-hero .modal-desc {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  max-width: 90%;
}

/* výběr základu — segment na fotce */
.modal-base-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--r-pill);
  padding: 5px;
  box-shadow: 0 14px 34px -8px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.base-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.base-pill:hover { background: rgba(29, 29, 31, 0.06); }

.base-pill.sel {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(29, 29, 31, 0.5);
}

.base-pill .base-px {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.6;
}

.base-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 11px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.base-dot.tomato { background: var(--rosso); }
.base-dot.cream { background: #f4e8c4; border-color: #d4c98a; }
.base-pill.sel .base-dot { border-color: rgba(255, 255, 255, 0.4); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s var(--ease-spring), background 0.16s ease;
}
.modal-close:hover { transform: scale(1.06); background: #fff; }
.modal-close:active { transform: scale(0.94); }

.modal-kicker {
  display: none;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--rosso-soft);
  color: var(--rosso-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-title h2 {
  margin: 10px 0 6px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.modal-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  display: grid;
  gap: 14px;
}

.opt-group {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 16px;
}

.opt-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.opt-group-head h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.opt-group-head .hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.hint-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.opt-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.opt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  color: var(--ink-2);
  font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.opt-pill .px {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.opt-pill:hover { border-color: var(--ink); }
.opt-pill.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt-pill.sel .px { color: rgba(255, 255, 255, 0.7); }

.halves-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.half-block {
  display: grid;
  gap: 6px;
  max-width: 50%;
}
.half-block[hidden] { display: none; }
@media (max-width: 560px) {
  .half-block { max-width: 100%; }
}
.half-block label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.half-block select {
  width: 100%;
  padding: 12px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.half-block select:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

.extras-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.extra-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-align: left;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s var(--ease-spring);
}
.extra-opt:active { transform: scale(0.98); }

.extra-opt .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1.5px solid var(--grigio-300);
  background: var(--surface);
  color: transparent;
  font-size: 12px;
  flex: 0 0 auto;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.extra-opt .name { flex: 1; }
.extra-opt .px { color: var(--muted); font-size: 12px; font-weight: 600; }

.extra-opt:hover { border-color: var(--ink); }
.extra-opt.sel { border-color: var(--verde); background: var(--verde-soft); }
.extra-opt.sel .check { background: var(--verde); border-color: var(--verde); color: #fff; }
.extra-opt.sel .px { color: var(--verde-dark); }

.modal-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(250, 249, 247, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 4px;
  background: var(--surface);
}

.qty button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.05);
  font-size: 17px;
  font-weight: 600;
  transition: background 0.14s ease, transform 0.14s var(--ease-spring);
}
.qty button:hover { background: rgba(29, 29, 31, 0.1); }
.qty button:active { transform: scale(0.9); }

.qty .v {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.modal-add {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 30px -12px rgba(29, 29, 31, 0.55);
  transition: background 0.16s ease, transform 0.16s var(--ease-spring), box-shadow 0.16s ease;
}

.modal-add:hover { background: #000; transform: translateY(-1px); }
.modal-add:active { transform: scale(0.98); }
.modal-add .total {
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

/* ===== Košík (drawer) ===== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 18, 16, 0.36);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.cart-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 85;
  width: min(420px, calc(100% - 20px));
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.34s var(--ease-spring);
}

.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.05);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.14s ease, transform 0.14s var(--ease-spring);
}
.cart-close:hover { background: rgba(29, 29, 31, 0.1); }
.cart-close:active { transform: scale(0.92); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}

.cart-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
  padding: 60px 12px;
  color: var(--muted);
  font-weight: 500;
}

.cart-empty-icon {
  font-size: 34px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--grigio-100);
  display: grid;
  place-items: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--grigio-100);
}

.cart-item-info { display: grid; gap: 4px; min-width: 0; align-content: start; }
.cart-item-info strong { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.cart-item-info .meta { font-size: 12px; color: var(--muted); line-height: 1.35; font-weight: 500; }
.cart-item-deal {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--rosso);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.cart-item-side .price-row {
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 2px;
  background: var(--surface);
}
.cart-qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.05);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.14s ease;
}
.cart-qty button:hover { background: rgba(29, 29, 31, 0.1); }
.cart-qty .v { min-width: 22px; text-align: center; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }

.cart-remove {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.14s ease;
}
.cart-remove:hover { color: var(--rosso); }

.cart-foot {
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  display: grid;
  gap: 14px;
  flex: 0 0 auto;
}

.cart-body { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }

.totals { display: grid; gap: 7px; }
.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.totals-row.total {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.free-shipping { color: var(--verde); font-weight: 700; }

.checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 30px -12px rgba(29, 29, 31, 0.55);
  transition: background 0.16s ease, transform 0.16s var(--ease-spring);
}
.checkout-btn:hover { background: #000; transform: translateY(-1px); }
.checkout-btn:active { transform: scale(0.98); }

.cart-actions {
  display: grid;
  gap: 8px;
}

.cart-continue-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s var(--ease-spring);
}
.cart-continue-btn:hover { background: var(--surface-2); border-color: var(--ink); }
.cart-continue-btn:active { transform: scale(0.98); }

.cart-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  line-height: 1.45;
}

/* ===== Checkout modal ===== */
.checkout-modal {
  width: min(640px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  flex: 0 0 auto;
}

.checkout-steps .step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 6px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.checkout-steps .step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grigio-100);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease;
}

.checkout-steps .step.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.checkout-steps .step.active span { background: rgba(255, 255, 255, 0.2); color: #fff; }
.checkout-steps .step.done span { background: var(--verde); color: #fff; }

.checkout-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.checkout-body.address-search-active {
  padding-bottom: min(410px, 55dvh);
}

.step-panel { display: none; }
.step-panel.active { display: block; animation: stepIn 0.28s var(--ease-spring); }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.step-panel h2 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step-panel h3 {
  margin: 14px 0 10px;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-tag {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: #8a6410;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full { grid-column: 1 / -1; }

.form-field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3.5px rgba(29, 29, 31, 0.08);
}

.form-field input.invalid {
  border-color: var(--rosso);
  background: #fff7f6;
  box-shadow: 0 0 0 3.5px rgba(225, 35, 43, 0.08);
}

/* ===== Ověření doručovací adresy ===== */
.address-search-wrap {
  position: relative;
}

.address-input-shell {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.address-input-shell:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3.5px rgba(29, 29, 31, 0.08);
}

.address-input-shell:has(input.invalid) {
  border-color: var(--rosso);
  background: #fff7f6;
  box-shadow: 0 0 0 3.5px rgba(225, 35, 43, 0.08);
}

.form-field .address-input-shell input {
  min-width: 0;
  flex: 1;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.form-field .address-input-shell input:focus,
.form-field .address-input-shell input.invalid {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.address-clear {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--grigio-100);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.address-clear:hover { color: var(--ink); background: var(--grigio-200); }
.address-clear[hidden] { display: none; }

.address-help {
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

.address-help.is-error { color: var(--rosso); }
.address-help.is-valid { color: var(--verde); }

.address-suggestions {
  position: absolute;
  z-index: 40;
  top: 72px;
  left: 0;
  right: 0;
  max-height: var(--address-results-max-height, min(390px, 52dvh));
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: 0 18px 46px -18px rgba(29, 29, 31, 0.42);
}

.address-suggestions[hidden] { display: none; }

.address-result {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
}

.address-result:hover,
.address-result.is-active { background: var(--surface-2); }

.address-result-pin {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--address-zone) 12%, white);
  color: var(--address-zone);
}

.address-result-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.address-result-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.address-result-copy small { color: var(--muted); font-size: 11px; font-weight: 500; }
.address-result-fee { color: var(--address-zone); font-family: var(--font-heading); font-size: 13px; font-weight: 800; white-space: nowrap; }
.address-empty { padding: 13px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: center; }

.delivery-address-card {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.delivery-address-card[hidden] { display: none; }

.delivery-address-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
}

.delivery-address-pin {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--delivery-zone, var(--verde));
  background: color-mix(in srgb, var(--delivery-zone, var(--verde)) 12%, white);
}

.delivery-address-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.delivery-address-copy small { color: var(--verde); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.delivery-address-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.delivery-address-copy span { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.delivery-address-fee { color: var(--delivery-zone, var(--verde)); font-family: var(--font-heading); font-size: 16px; font-weight: 800; white-space: nowrap; }

.checkout-delivery-map {
  width: 100%;
  height: 190px;
  background: #e8ece7;
}

.checkout-delivery-map .leaflet-control-attribution { font-size: 8px; }
.checkout-delivery-map .leaflet-control-zoom a { color: var(--ink); }
.checkout-address-marker {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--marker);
  box-shadow: 0 4px 12px rgba(29, 29, 31, 0.42);
}

.delivery-fee-free { color: var(--verde); font-weight: 700; }

.checkout-price-summary {
  display: grid;
  gap: 7px;
  margin: -2px 0 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.checkout-price-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.checkout-price-summary strong { color: var(--ink); font-family: var(--font-heading); font-weight: 700; }
.checkout-price-summary .checkout-price-total { margin-top: 2px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.checkout-price-summary .checkout-price-total strong { font-size: 17px; font-weight: 800; }

.pay-methods {
  display: grid;
  gap: 10px;
}
.pay-opt {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.pay-opt:hover { border-color: var(--ink); }
.pay-opt.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  background: var(--surface-2);
}
.pay-opt.is-disabled:hover { border-color: var(--line-strong); }
.pay-opt input {
  accent-color: var(--ink);
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}
.pay-opt-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.pay-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-opt-text strong { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.pay-opt-text small { font-size: 12px; color: var(--muted); font-weight: 500; }
.pay-opt:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-sm);
}
.pay-visual { color: var(--verde); flex: 0 0 auto; display: inline-flex; }

.pay-brands {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.pay-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 27px;
  padding: 0 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.pay-brand svg { display: block; }

.card-form {
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed var(--grigio-300);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.checkout-legal {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf8;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.checkout-legal input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--verde);
}

.checkout-legal a { color: var(--ink); font-weight: 750; text-underline-offset: .16em; }
.checkout-legal.invalid { border-color: var(--rosso); background: #fff1ef; }
.checkout-legal-error { margin: 7px 3px 0; color: var(--rosso); font-size: 11px; font-weight: 700; }

/* ===== Spropitné (jen u online platby kartou) ===== */
.pay-tip {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}
.pay-tip-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.pay-tip-head strong { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.pay-tip-head small { font-size: 12px; color: var(--muted); font-weight: 500; }
.pay-tip-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pay-tip-chip {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 700 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.pay-tip-chip:hover { border-color: var(--ink); }
.pay-tip-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== Doručení / vyzvednutí přepínač ===== */
.deliver-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.deliver-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.deliver-opt svg { color: var(--muted); flex: 0 0 auto; transition: color 0.15s ease; }
.deliver-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.deliver-txt strong { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.deliver-txt small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.deliver-opt:hover { border-color: var(--ink); }
.deliver-opt.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-sm);
}
.deliver-opt.active svg { color: var(--ink); }

/* ===== Čas doručení (co nejdříve / vybrat čas) ===== */
.time-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.time-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.time-opt svg { color: var(--muted); flex: 0 0 auto; transition: color 0.15s ease; }
.time-opt-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.time-opt-txt strong { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.time-opt-txt small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.time-opt:hover { border-color: var(--ink); }
.time-opt.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-sm);
}
.time-opt.active svg { color: var(--ink); }

.time-picker { margin-top: 12px; }
.time-select-shell {
  position: relative;
  display: flex;
  align-items: center;
}
.time-select-shell > svg {
  position: absolute;
  left: 13px;
  color: var(--muted);
  pointer-events: none;
}
.time-select-shell select {
  width: 100%;
  padding: 13px 14px 13px 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}
.time-select-shell select:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.time-picker-help {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.time-picker-help.is-error { color: #c0392b; }

/* ===== Rozestupy panelu kontaktu ===== */
.step-panel[data-step="1"] > .form-grid,
.step-panel[data-step="1"] > .addr-fields,
.step-panel[data-step="1"] > .pickup-info,
.step-panel[data-step="1"] > .switch-row { margin-top: 14px; }

.form-field em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}

/* ===== Vyzvednutí — info karta ===== */
.pickup-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.pickup-info[hidden] { display: none; }
.pickup-info svg { color: var(--verde); flex: 0 0 auto; margin-top: 1px; }
.pickup-info > div { display: flex; flex-direction: column; gap: 3px; }
.pickup-info strong { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.pickup-info span { font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ===== Zapamatovat údaje — Apple přepínač ===== */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  cursor: pointer;
}
.switch-txt { display: flex; flex-direction: column; gap: 2px; }
.switch-txt strong { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.switch-txt small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--grigio-300);
  border-radius: 999px;
  transition: background 0.22s ease;
}
.switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s var(--ease-spring);
}
.switch input:checked + .switch-slider { background: var(--verde); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }
.switch input:focus-visible + .switch-slider { box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.15); }

@media (max-width: 560px) {
  /* Doručit / Vyzvednout i Co nejdříve / Vybrat čas zůstávají vedle sebe v jednom řádku */
  .deliver-toggle,
  .time-choice { grid-template-columns: 1fr 1fr; gap: 6px; }
  .deliver-opt,
  .time-opt { padding: 11px 10px; gap: 8px; }
  .deliver-opt svg,
  .time-opt svg { width: 18px; height: 18px; }
  .deliver-txt strong,
  .time-opt-txt strong { font-size: 13px; }
  .deliver-txt small,
  .time-opt-txt small { font-size: 10.5px; line-height: 1.25; }
  .pay-opt-body { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pay-brands { flex-wrap: wrap; }
}

.checkout-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(250, 249, 247, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  flex: 0 0 auto;
}

.checkout-total {
  flex: 1;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.checkout-total strong {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--ink);
  margin-left: 8px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.checkout-foot .btn-secondary.dark,
.checkout-foot .modal-add {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  box-shadow: none;
}

.checkout-foot .btn-secondary.dark {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.checkout-foot .modal-add {
  justify-content: center;
  gap: 0;
}

.thanks {
  text-align: center;
  padding: 18px 0 22px;
}

.thanks-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px -12px rgba(10, 138, 62, 0.55);
  animation: thanksPop 0.5s var(--ease-spring);
}

@keyframes thanksPop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.thanks h2 { font-size: 24px; margin: 0 0 8px; letter-spacing: -0.02em; }
.thanks p { margin: 0 auto 16px; max-width: 420px; color: var(--muted); font-weight: 500; }

.thanks-summary {
  margin: 18px auto 0;
  max-width: 420px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-align: left;
  font-size: 13px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
}
.thanks-summary strong { color: var(--ink); font-weight: 700; }

/* ===== Mobilní plovoucí tab bar ===== */
.mobile-tabbar {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .statusbar-left { gap: 10px; }
  .header-inner { gap: 14px; }
  .nav {
    order: 5;
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .header-call { order: 3; }
  .header-cart { order: 4; margin-left: auto; }
  .deals-grid,
  .delivery-panel,
  .contact-card,
  .footer-inner { grid-template-columns: 1fr; }
  .deals-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lunch-deal { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .lunch-sub { max-width: none; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .head-controls { align-items: flex-start; width: 100%; }
  .filters { justify-content: flex-start; }
  .hero-overlay { padding: calc(var(--header-h, 77px) + 10px) 24px 30px; }
  .mobile-tabbar { display: none; }
}

@media (max-width: 640px) {
  .statusbar { display: none; }

  .statusbar-inner,
  .header-inner,
  .section,
  .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner { padding: 10px 16px; gap: 10px; row-gap: 8px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-word { font-size: 21px; }
  .brand-sub { letter-spacing: 0.12em; font-size: 9.5px; }
  .header-cart .cart-label { display: none; }
  .header-cart {
    padding: 8px 13px;
    min-height: 40px;
    gap: 6px;
    order: 2;
    margin-left: auto;
  }
  .mobile-open {
    display: inline-flex;
    order: 6;
    width: 100%;
    justify-content: center;
    font-size: 11px;
    background: var(--verde-soft);
    color: var(--verde-dark);
  }
  .mobile-open::before { background: var(--verde); box-shadow: 0 0 0 3px rgba(10, 138, 62, 0.16); }
  .mobile-open.closed { background: var(--rosso-soft); color: var(--rosso-dark); }
  .mobile-open.closed::before { background: var(--rosso); box-shadow: 0 0 0 3px rgba(225, 35, 43, 0.14); }
  .header-call { display: none; }

  /* horní nav skrýt — nahrazuje ho plovoucí tab bar */
  .header .nav { display: none; }

  /* plovoucí pill navigace dole (jako v referenci) */
  .mobile-tabbar {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 60;
    width: min(420px, calc(100% - 24px));
    justify-content: space-between;
    gap: 0;
    padding: 7px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(1.8) blur(22px);
    backdrop-filter: saturate(1.8) blur(22px);
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px -14px rgba(29, 29, 31, 0.4);
  }
  .mobile-tabbar a {
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    border-radius: var(--r-pill);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .mobile-tabbar a svg { width: 19px; height: 19px; }
  .mobile-tabbar a:hover { background: transparent; color: var(--ink); }
  .mobile-tabbar a.active {
    background: var(--ink);
    color: #fff;
  }

  /* rezerva pod obsahem, ať tab bar nepřekrývá footer */
  .footer { padding-bottom: 92px; }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* Hero — fotka do hrany, zaoblení jen dole */
  .hero { margin: calc(-1 * var(--header-h, 106px)) 0 0; padding: 0; }
  .hero-overlay {
    padding: calc(var(--header-h, 106px) + 8px) 18px 24px;
    max-width: 100%;
    justify-content: flex-end;
  }
  .hero-banner { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .hero-banner > img { height: 350px; }
  .hero h1 { font-size: 26px; }
  .hero h1 span { display: block; margin: 4px 0 0; font-size: 0.9em; }
  .hero p { display: none; }
  .hero-call { display: none; }
  .hero-actions { margin-top: 14px; }

  /* Slevy — horizontální slider */
  .deals-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 16px 14px;
    margin: 0 -16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .deals-grid::-webkit-scrollbar { display: none; }
  .deal-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
    min-height: 180px;
  }
  .deal-pizza {
    flex: 0 0 76%;
    scroll-snap-align: center;
  }

  /* Closed modal na mobilu */
  .modal-backdrop.closed-modal {
    place-items: center;
    place-content: center;
    padding: 20px 16px;
    align-items: center;
  }
  .closed-modal .modal {
    width: min(420px, 100%);
    max-width: 100%;
    height: auto;
    max-height: none;
  }
  .closed-card {
    padding: 32px 22px 24px;
    border-radius: 24px;
  }
  .closed-card h2 { font-size: 23px; }
  .closed-actions {
    grid-template-columns: 1fr;
  }

  .modal-backdrop.lunch-modal {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .lunch-modal .modal {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    max-height: 94vh;
  }
  .lunch-modal .lunch-deal {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 86vh;
    padding: 20px 18px;
    border-radius: var(--r-lg);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .lunch-modal .lunch-deal::-webkit-scrollbar { display: none; }
  .lunch-modal .lunch-deal-info { min-width: 0; }
  .lunch-modal .lunch-mark {
    right: -42px;
    top: -6px;
    bottom: auto;
    width: 190px;
    height: 190px;
    opacity: 0.12;
  }
  .lunch-modal .lunch-deal::before,
  .lunch-modal .lunch-deal::after { content: none; }
  .lunch-modal .lunch-deal-pizzas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  .lunch-modal .lunch-pizza {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    text-align: left;
    box-shadow: 0 14px 32px -20px rgba(72, 6, 10, 0.7);
  }
  .lunch-modal .lunch-pizza-img {
    width: 120px;
    height: 96px;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 14px;
    background: #e8e8e8;
  }
  .lunch-modal .lunch-pizza-img img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: center 48%;
    box-shadow: none;
  }
  .lunch-modal .lunch-pizza-text {
    min-width: 0;
    align-items: flex-start;
    gap: 4px;
  }
  .lunch-modal .lunch-pizza-text small {
    min-height: 0;
    font-size: 11.5px;
    line-height: 1.35;
  }
  .lunch-title { font-size: 28px; }
  .lunch-pizza-text strong { font-size: 16px; line-height: 1.15; }
  .lunch-price { margin-top: 2px; font-size: 18px; }
  .lunch-price s { font-size: 11px; margin-right: 3px; }
  .lunch-save {
    top: 7px;
    right: 7px;
    padding: 4px 8px;
    font-size: 10px;
    box-shadow: 0 7px 16px -8px rgba(0, 0, 0, 0.55);
  }

  /* Filtry — jeden řádek se scrollem */
  .filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    width: 100%;
    padding: 2px 16px 8px;
    margin: 0 -16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; white-space: nowrap; }

  /* Dlaždice 2 sloupce */
  .pizza-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pizza-grid.view-list { grid-template-columns: 1fr; gap: 8px; }

  .pizza-grid:not(.view-list) .pizza-card { border-radius: 20px; }
  .pizza-grid:not(.view-list) .pizza-card:hover { transform: none; }
  .pizza-grid:not(.view-list) .pizza-badges { top: 8px; right: 8px; gap: 4px; }
  .pizza-grid:not(.view-list) .pizza-badge { padding: 3px 7px; font-size: 9px; }
  .pizza-grid:not(.view-list) .pizza-body { padding: 12px 12px 13px; }
  .pizza-grid:not(.view-list) .pizza-body h3 { font-size: 15.5px; line-height: 1.12; }
  .pizza-grid:not(.view-list) .pizza-desc {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.35;
    min-height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pizza-grid:not(.view-list) .pizza-allerg { display: none; }
  .pizza-grid:not(.view-list) .pizza-price-row { padding-top: 9px; }
  .pizza-grid:not(.view-list) .price { font-size: 21px; }
  .pizza-grid:not(.view-list) .price small { font-size: 12px; }
  .pizza-grid:not(.view-list) .pizza-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 11px;
  }
  .pizza-grid:not(.view-list) .btn-edit,
  .pizza-grid:not(.view-list) .btn-quick-add {
    width: 100%;
    min-height: 40px;
    font-size: 13px;
  }

  .view-list .pizza-card {
    height: 128px;
    align-items: stretch;
    overflow: hidden;
  }
  .view-list .pizza-img {
    width: 128px;
    height: 128px;
    flex: 0 0 128px;
    aspect-ratio: 1;
    align-self: stretch;
    overflow: hidden;
    background: var(--grigio-100);
  }
  .view-list .pizza-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .view-list .pizza-body {
    padding: 8px 10px;
    gap: 2px;
    justify-content: space-between;
    overflow: hidden;
    min-width: 0;
  }
  .view-list .pizza-body h3 { font-size: 15px; line-height: 1.1; margin: 0; }
  .view-list .pizza-desc {
    font-size: 11.5px;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .view-list .pizza-allerg { display: none; }
  .view-list .pizza-price-row { padding-top: 0; }
  .view-list .price { font-size: 18px; }
  .view-list .price small { font-size: 11px; }
  .view-list .pizza-actions {
    margin-top: 2px;
    grid-template-columns: 1fr 1.3fr;
    gap: 5px;
  }
  .view-list .btn-edit,
  .view-list .btn-quick-add {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
    gap: 4px;
  }
  .view-list .btn-edit svg,
  .view-list .btn-quick-add svg { width: 13px; height: 13px; }
  .drink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Kontakt */
  .delivery-panel { padding: 8px; }
  .contact-card { padding: 24px 20px; }

  /* Modal — fullscreen na mobilu (closed modal zůstává centrovaný box) */
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal-backdrop.closed-modal {
    display: none;
    padding: 20px 16px;
    place-items: center;
    place-content: center;
    align-items: center;
    justify-content: center;
  }
  .modal-backdrop.closed-modal.open { display: grid; }
  .modal {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .modal-hero {
    aspect-ratio: 1;
    max-height: 52vh;
    border-radius: 0;
  }
  .modal-hero .modal-title { bottom: 76px; padding: 0 18px; }
  .modal-hero .modal-title h2 { font-size: 27px; }
  .modal-hero .modal-desc { font-size: 13px; }
  .modal-base-overlay {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .base-pill { padding: 10px 10px; font-size: 12px; }
  .modal-tag { top: 14px; left: 14px; font-size: 10px; padding: 4px 10px; }

  .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .modal-body .opt-group { padding: 14px; }
  .modal-body .opt-group-head h4 { font-size: 16px; }
  .modal-body .half-block select {
    padding: 13px 14px;
    font-size: 15px;
  }
  .extras-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .extra-opt { padding: 12px; font-size: 14px; }
  .extra-opt .check { width: 20px; height: 20px; }
  .extra-opt .px { font-size: 12.5px; }

  .modal-foot { flex: 0 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot .modal-add { font-size: 15px; padding: 14px 18px; }
  .modal-foot .qty button { width: 38px; height: 38px; font-size: 18px; }

  .modal-close {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  }

  /* Drawer + checkout */
  .halves-grid { grid-template-columns: 1fr; }
  .cart-drawer {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: calc(100dvh - 20px);
    height: min(88dvh, 720px);
    transform: translateY(calc(100% + 24px));
  }
  .cart-drawer.open { transform: translateY(0); }
  .extras-list { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .checkout-modal {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
    height: 100dvh;
  }
  .checkout-foot {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }
  .checkout-total {
    order: -1;
    flex: 1 1 100%;
    text-align: left;
  }
  .checkout-foot .btn-secondary.dark,
  .checkout-foot .modal-add {
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 0;
    width: auto;
    padding: 10px 16px;
    font-size: 13.5px;
  }
  .checkout-foot .btn-secondary.dark {
    margin-right: auto;
  }

  .cart-actions {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px;
  }
  .checkout-btn,
  .cart-continue-btn {
    flex: 1 1 0;
    width: auto;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: var(--r-pill);
    box-shadow: none;
    white-space: nowrap;
  }
  .checkout-btn {
    justify-content: center;
  }

  .view-toggle .view-btn span { display: none; }
}

/* scroll-lock pod modálem/drawerem (iOS-safe) */
body.no-scroll {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* ===== Pizza modal ===== */
/* Mobil zůstává jako spodní sheet, na PC je modal široká dvousloupcová karta. */
#pizzaModal {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

#pizzaModal .modal {
  /* šířka omezená i výškou obrazovky, aby se čtvercová fotka vždy vešla
     a pod ní zbylo místo na obsah a patičku */
  width: min(720px, 100%, calc(100dvh - 220px));
  height: calc(100dvh - 16px);
  max-height: none;
  border-radius: 28px 28px 0 0;
  border: 0;
  animation: sheetIn 0.42s var(--ease-spring);
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(56px); }
  to   { opacity: 1; transform: none; }
}

#pizzaModal .modal-hero {
  aspect-ratio: 1 / 1;
  max-height: none;
  border-radius: 28px 28px 0 0;
}

@media (min-width: 769px) {
  #pizzaModal {
    align-items: center;
    padding: 24px;
  }

  #pizzaModal .modal {
    width: min(1180px, calc(100vw - 48px));
    height: min(720px, calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);
    display: grid;
    grid-template-columns: minmax(280px, 0.94fr) minmax(420px, 1.06fr);
    grid-template-rows: minmax(0, 1fr) auto;
    border-radius: 30px;
    animation: modalIn 0.32s var(--ease-spring);
  }

  #pizzaModal .modal-hero {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 30px 0 0 30px;
  }

  #pizzaModal .modal-body {
    grid-column: 2;
    grid-row: 1;
    padding: 28px 28px 20px;
    overflow: hidden;
    align-content: center;
    gap: 14px;
  }

  #pizzaModal .modal-body .opt-group {
    padding: 15px;
  }

  #pizzaModal .extras-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  #pizzaModal .extra-opt {
    min-width: 0;
    min-height: 40px;
    gap: 7px;
    padding: 8px 10px;
    font-size: 12.5px;
  }

  #pizzaModal .extra-opt .name {
    min-width: 0;
  }

  #pizzaModal .extra-opt .px {
    flex: 0 0 auto;
    font-size: 10.5px;
  }

  #pizzaModal .half-block {
    max-width: none;
  }

  #pizzaModal .modal-foot {
    grid-column: 2;
    grid-row: 2;
    padding: 14px 28px 18px;
    border-top-color: rgba(29, 29, 31, 0.08);
    border-radius: 0 0 30px 0;
  }

  #pizzaModal .modal-close {
    top: 18px;
    right: 18px;
  }
}

@media (min-width: 769px) and (max-width: 920px) {
  #pizzaModal .modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  #pizzaModal .extras-list {
    gap: 5px;
  }

  #pizzaModal .extra-opt {
    gap: 5px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 11.5px;
  }

  #pizzaModal .extra-opt .check {
    width: 17px;
    height: 17px;
  }

  #pizzaModal .extra-opt .px {
    display: none;
  }

  #pizzaModal .modal-base-overlay {
    left: 10px;
    right: 10px;
  }

  #pizzaModal .base-pill {
    gap: 5px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 11.5px;
  }

  #pizzaModal .base-pill .base-px {
    display: none;
  }

  #pizzaModal .modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 769px) and (max-height: 700px) {
  #pizzaModal {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #pizzaModal .modal {
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }

  #pizzaModal .modal-body {
    padding: 18px 24px 12px;
    gap: 8px;
  }

  #pizzaModal .modal-body .opt-group {
    padding: 10px 12px;
  }

  #pizzaModal .opt-group-head {
    margin-bottom: 7px;
  }

  #pizzaModal .hint-note {
    margin-top: 5px;
  }

  #pizzaModal .half-block select {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  #pizzaModal .extras-list {
    gap: 5px;
  }

  #pizzaModal .extra-opt {
    min-height: 34px;
    padding: 6px 9px;
  }

  #pizzaModal .extra-opt .check {
    width: 17px;
    height: 17px;
  }

  #pizzaModal .modal-foot {
    padding: 10px 24px 12px;
  }
}

@media (max-width: 640px) {
  #pizzaModal .modal {
    width: 100%;
    height: calc(100dvh - 14px);
    border-radius: 24px 24px 0 0;
  }
  #pizzaModal .modal-hero {
    border-radius: 24px 24px 0 0;
  }
}

/* ==========================================================================
   Živý stav objednávky po odeslání
   Bílá stavová karta nahoře, animovaná scéna dole na celou šířku.
   ========================================================================== */
@keyframes pbcel-drift { from { transform: translateX(0); } to { transform: translateX(140px); } }
@keyframes pbcel-sway { 0%,100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
@keyframes pbcel-puff { 0% { transform: translate(0,0) scale(.4); opacity:.75; } 100% { transform: translate(90px,-40px) scale(1.7); opacity:0; } }
@keyframes pbcel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pbcel-cardin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pbcel-check { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

.pb-cel {
  position: fixed; inset: 0; z-index: 120;
  display: none; flex-direction: column;
  background: var(--bg, #f5f3ef);
}
.pb-cel.open { display: flex; animation: pbcel-in .28s ease; }

/* logo nahoře – čisté, plně viditelné */
.pb-cel-logo {
  position: absolute; top: clamp(22px, 3.4vh, 42px); left: 50%; transform: translateX(-50%);
  width: clamp(82px, 10vw, 112px); height: auto; z-index: 4; pointer-events: none;
  animation: pbcel-in .7s .1s both;
}

/* horní bílý „apple" kontejner – zaoblené rohy, téměř k okrajům displeje */
.pb-cel-card {
  --pbcel-status-bg: #fff3d9;
  --pbcel-status-fg: #9a5a12;
  --pbcel-status-ring: rgba(190, 119, 22, .09);
  --pbcel-chip-bg: #fff4df;
  --pbcel-chip-fg: #9a5a12;
  flex: 1; min-height: 0; position: relative; z-index: 3;
  margin: clamp(12px, 1.6vw, 20px) clamp(12px, 1.6vw, 20px) clamp(12px, 1.6vw, 18px);
  background: var(--surface, #fff);
  border-radius: clamp(24px, 2.6vw, 36px);
  box-shadow: 0 1px 2px rgba(29,31,33,.05), 0 34px 64px -26px rgba(18,20,26,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(98px, 13vh, 152px) 24px 34px;
  animation: pbcel-cardin .5s var(--ease-spring) both;
}
.pb-cel-check {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--pbcel-status-bg); color: var(--pbcel-status-fg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  box-shadow: 0 0 0 8px var(--pbcel-status-ring);
  animation: pbcel-check .55s .14s var(--ease-spring) both;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.pb-cel-badge {
  font: 700 11.5px/1 var(--font-heading); letter-spacing: .16em;
  text-transform: uppercase; color: var(--pbcel-status-fg);
  transition: color .25s ease;
}
.pb-cel-title {
  margin: 12px 0 0; letter-spacing: -.025em; color: var(--ink);
  font: 800 clamp(23px, 3.4vw, 36px)/1.04 var(--font-heading);
}
.pb-cel-num { margin-top: 12px; font: 500 13.5px var(--font-body); color: var(--muted); }
.pb-cel-num b { font: 700 14.5px var(--font-mono); color: var(--ink); letter-spacing: .01em; }
.pb-cel-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pb-cel-chip { padding: 9px 16px; border-radius: var(--r-pill); font: 700 13px var(--font-heading); border: 1px solid var(--line); }
.pb-cel-eta { background: var(--pbcel-chip-bg); color: var(--pbcel-chip-fg); border-color: transparent; transition: background .25s ease, color .25s ease; }
.pb-cel-total { background: var(--bg, #f5f3ef); color: var(--ink); }
.pb-cel-sub { margin: 16px auto 0; width: 100%; max-width: 430px; box-sizing: border-box; color: var(--muted); font: 500 13.5px/1.55 var(--font-body); }
.pb-cel-track {
  margin-top: 13px;
  color: var(--ink);
  font: 700 13px/1.3 var(--font-heading);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.pb-cel-track:hover { color: var(--rosso); }

.pb-cel-card[data-order-state="accepted"],
.pb-cel-card[data-order-state="ready"],
.pb-cel-card[data-order-state="done"] {
  --pbcel-status-bg: var(--verde-soft, #e8f4ec);
  --pbcel-status-fg: var(--verde-dark, #0a6e34);
  --pbcel-status-ring: rgba(10, 138, 62, .07);
  --pbcel-chip-bg: #edf8f1;
  --pbcel-chip-fg: #08713a;
}
.pb-cel-card[data-order-state="preparing"] {
  --pbcel-status-bg: #fff0dc;
  --pbcel-status-fg: #a6500a;
  --pbcel-status-ring: rgba(196, 92, 10, .08);
  --pbcel-chip-bg: #fff3e3;
  --pbcel-chip-fg: #9b4b09;
}
.pb-cel-card[data-order-state="route"] {
  --pbcel-status-bg: #e8f2ff;
  --pbcel-status-fg: #1262a8;
  --pbcel-status-ring: rgba(18, 98, 168, .08);
  --pbcel-chip-bg: #edf5ff;
  --pbcel-chip-fg: #125e9f;
}
.pb-cel-card[data-order-state="rejected"],
.pb-cel-card[data-order-state="cancelled"] {
  --pbcel-status-bg: var(--rosso-soft, #fdeeec);
  --pbcel-status-fg: var(--rosso-dark, #b81c22);
  --pbcel-status-ring: rgba(184, 28, 34, .07);
  --pbcel-chip-bg: #fff0ef;
  --pbcel-chip-fg: #ae1c22;
}

/* tlačítko úplně dole „na silnici" – apple černé */
.pb-cel-done {
  position: absolute; left: 50%; bottom: clamp(16px, 3.4vh, 30px); transform: translateX(-50%);
  z-index: 6; padding: 14px 40px; border: none; border-radius: var(--r-pill); cursor: pointer;
  background: var(--ink); color: #fff; font: 700 14px var(--font-heading);
  box-shadow: 0 14px 34px rgba(8,10,18,.55), inset 0 0 0 1px rgba(255,255,255,.09);
  transition: transform .18s var(--ease-spring), background .18s;
  animation: pbcel-in .5s .35s both;
}
.pb-cel-done:hover { transform: translateX(-50%) translateY(-2px); background: #000; }
.pb-cel-done:active { transform: translateX(-50%) scale(.97); }

/* spodní animovaná scéna ~1/3 obrazovky, přes celou šířku */
.pb-cel-stage-wrap {
  position: relative; flex: none; width: 100%;
  height: clamp(240px, 36vh, 430px);
  overflow: hidden; background: linear-gradient(#7fb5e0, #cfe4f2);
}
.pb-cel-stage {
  position: absolute; left: 0; top: 0; width: 1600px; height: 900px;
  transform-origin: 0 0; transform: translate(50%,58%) scale(.6) translate(-800px,-560px);
  will-change: transform;
}
/* stín kontejneru dopadající na animaci „pod" – efekt hloubky */
.pb-cel-vignette {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 30px 44px -18px rgba(8,10,18,.5);
}

@media (max-width: 640px) {
  .pb-cel-card { padding-top: clamp(90px, 13vh, 118px); border-radius: 26px; }
  .pb-cel-title { font-size: clamp(21px, 6.2vw, 29px); }
  .pb-cel-num { margin-top: 10px; }
  .pb-cel-meta { margin-top: 15px; }
}
@media (max-height: 620px) {
  .pb-cel-sub { display: none; }
  .pb-cel-stage-wrap { height: 32vh; }
  .pb-cel-card { padding-top: 78px; }
}
