:root {
  --bg: #17332B;
  --bg-2: #1E3D34;
  --ink: #F3EAD1;
  --ink-soft: #C5B896;
  --accent: #D9A868;
  --warn: #E48B65;
  --warn-bg: rgba(228, 139, 101, 0.16);
  --rule: rgba(243, 234, 209, 0.14);
  --chip: rgba(243, 234, 209, 0.08);
  /* Fonty: nazwy rodzin ustawia motyw (theme.json); tu domyślne i zapasowe */
  --font-heading-fallback: ui-serif, Georgia, serif;
  --font-text-fallback: ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-heading: 'Fraunces', var(--font-heading-fallback);
  --font-text: 'Manrope', var(--font-text-fallback);
  --radius: 12px;
  --spicy: #E48B65;
  --gutter: 22px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; }

button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Lista ---------- */
.menu {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 0 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.brand-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.brand-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.brand-sub {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.brand-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
}
.brand-address svg { color: var(--accent); flex-shrink: 0; }

.tabs {
  display: flex;
  gap: 6px;
  margin: 0 calc(-1 * var(--gutter)) 8px;
  padding: 2px var(--gutter) 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.tab:hover { color: var(--ink); border-color: var(--ink-soft); }

.section { scroll-margin-top: 16px; }
.section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 26px 0 4px;
}
.section-h h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-h span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dishes { list-style: none; margin: 0; padding: 0; }
.dishes li { border-bottom: 1px solid var(--rule); }
.dishes li:last-child { border-bottom: none; }

.dish {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.dish:active { opacity: 0.7; }
.dish-body { min-width: 0; }
.dish-title {
  display: block;
  margin: 0 0 3px;
  line-height: 1.15;
}
.dish-title .spicy {
  margin-left: 5px;
  vertical-align: -2px;
  white-space: nowrap;
}
.dish-name {
  display: inline;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.dish-short {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.dish-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.price {
  align-self: start;
  padding-top: 1px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.allergens .a {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--warn-bg);
  color: var(--warn);
}
.allergens .a.none { background: var(--chip); color: var(--ink-soft); }

/* ---------- Zdjęcia i placeholdery ---------- */
.thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
}
.thumb img, .detail-hero img { width: 100%; height: 100%; object-fit: cover; }

.ph {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--ph, #6B3A2A);
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(243, 234, 209, 0.16) 52.5% 54%, transparent 54.5%),
    radial-gradient(circle at 35% 30%, rgba(255, 240, 210, 0.18), transparent 60%);
  color: var(--ink);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
}
.thumb .ph {
  font-size: 30px;
  line-height: 1;
}
.detail-hero .ph {
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  padding: 0 18%;
  text-wrap: balance;
}

/* ---------- Szczegół dania ---------- */
.detail {
  position: fixed;
  inset: 0;
  z-index: 10;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.9, 0.3, 1);
}
.detail.open { transform: translateY(0); }

.back {
  /* sticky: zostaje na górze podczas przewijania szczegółu, nie zajmuje miejsca */
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  margin: calc(env(safe-area-inset-top, 0px) + 16px) 0 -60px 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 22, 18, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
}
.back:focus-visible { border-radius: 50%; }

.detail-hero {
  position: relative;
  aspect-ratio: 1 / 1; /* pełny kwadrat: zdjęcie nie jest dodatkowo przycinane */
  width: 100%;
  background: var(--bg-2); /* widoczne, zanim duże zdjęcie się wczyta */
}
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 -1px; /* -1px: bez prześwitu na krawędzi przy ułamkowej wysokości */
  background: linear-gradient(to bottom, rgba(23, 51, 43, 0) 86%, var(--bg) 99%);
  pointer-events: none;
}

.detail-inner {
  position: relative;
  padding: 0 var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px);
  margin-top: -12px;
}
.detail-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: balance;
}
.detail-title:focus { outline: none; }
.detail-title em {
  font-style: italic;
  color: var(--accent);
}
.detail-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.detail-price-row .meta {
  font-size: 15px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.price-lg {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.detail-desc {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.block-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.block-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ing {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.ing:last-child { border-bottom: 0; }
.ing-allergen {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.warn-callout {
  padding: 14px 16px;
  border: 1px solid rgba(228, 139, 101, 0.4);
  border-radius: 12px;
  background: rgba(228, 139, 101, 0.08);
  font-size: 14px;
  line-height: 1.55;
}
.warn-callout p { margin: 0; }
.warn-callout p + p { margin-top: 8px; }
.warn-callout b { color: var(--warn); font-weight: 700; }
.warn-callout .trace { color: var(--ink-soft); }

/* ---------- Wartości odżywcze ---------- */
.nutrition {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.nutrition-item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
  padding: 12px 0 12px 12px;
  border-left: 1px solid var(--rule);
}
.nutrition-item:first-child { padding-left: 0; border-left: 0; }
.nutrition dd {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nutrition .unit {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nutrition .is-kcal dd { color: var(--accent); }
.nutrition dt {
  font-size: 12px;
  color: var(--ink-soft);
}
.nutrition-note {
  margin: 8px 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Stan wczytywania / błąd ---------- */
.status {
  margin: 30vh 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}
.status.error {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
}
.status.error small {
  display: block;
  margin-top: 10px;
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .detail { transition: none; }
}

/* ---------- Przełącznik języka i wyjaśnienia nazw ---------- */
.brand { position: relative; }
.lang-switch {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.lang-btn {
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.lang-btn:focus-visible { border-radius: 999px; }

.dish-explain {
  display: block;
  margin: -1px 0 4px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 14px;
  line-height: 1.25;
  color: var(--accent);
}
.detail-title-sub {
  margin: -4px 0 12px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink-soft); /* inaczej niż kursywa w tytule, żeby się nie zlewały */
}

/* ---------- Ostrość i naklejki ---------- */
.spicy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--spicy);
}
.peppers { display: inline-flex; }
.peppers .pepper + .pepper { margin-left: -3px; }
.detail-spicy {
  display: flex;
  margin: 0 0 12px;
}
.detail-spicy .spicy {
  padding: 4px 11px 4px 8px;
  border-radius: 999px;
  background: var(--warn-bg);
}
.spicy-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Naklejka „Nowość” / „Hit”: w klasycznym stylu mała etykieta nad nazwą */
.dish { position: relative; }
.dish > .badge {
  position: absolute;
  top: 8px;
  left: -4px;
  z-index: 1;
}
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* =====================================================================
   Wycięte zdjęcia ("photos": "cutout" w theme.json):
   danie bez tła, bez ramki, z miękkim cieniem pod spodem
   ===================================================================== */
[data-photos="cutout"] .thumb {
  position: relative;
  border-radius: 0;
  overflow: visible;
}
[data-photos="cutout"] .thumb::after,
[data-photos="cutout"] .detail-hero::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 3%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--dark, #000) 45%, transparent), transparent);
  pointer-events: none;
}
[data-photos="cutout"] .detail-hero {
  display: flow-root; /* margines zdjęcia nie wypycha całego bloku w dół */
}
[data-photos="cutout"] .thumb img,
[data-photos="cutout"] .detail-hero img {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

/* =====================================================================
   Preset "pop" (Burgway): kolorowe tło, kremowe karty z przesuniętym
   cieniem, gruby zaokrąglony nagłówek. Kolory i fonty z theme.json.
   Na kolorowym tle tylko duży tekst; drobny tekst zawsze na kremie.
   ===================================================================== */
[data-preset="pop"] {
  --font-heading-fallback: ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-text-fallback: ui-sans-serif, system-ui, -apple-system, sans-serif;
  --bg-2: var(--bg);
  color-scheme: light;
  /* Lilita One nie ma liter ą ć ę ń ś ź ż: przeglądarka bierze je z fontu tekstu (Rubik Black).
     Bez sztucznego pogrubiania Lility. */
  font-synthesis: none;
}
[data-preset="pop"] :focus-visible {
  outline: 3px solid var(--dark);
  outline-offset: 3px;
}
[data-preset="pop"] .detail-title:focus-visible { outline: none; }

/* Nagłówek */
/* logo i adres na kremowym banerze, jak karta dania */
[data-preset="pop"] .brand {
  padding: 22px 18px 20px;
  margin-bottom: 46px;
  border-bottom: 0;
  background: var(--card);
  color: var(--card-ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--shadow);
}
/* falista linia jak „sałata” w logo, pod banerem */
[data-preset="pop"] .brand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -32px;
  width: 132px;
  height: 12px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 12'%3E%3Cpath d='M3 7c5-3 9-4 14-1s9 3 14 0 9-4 14-1 9 3 14 0' fill='none' stroke='%23F4B33A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-preset="pop"] .brand-logo {
  width: auto; /* stała wysokość: układ nie skacze, szerokość wynika z proporcji logo */
  height: 132px;
  margin-bottom: 14px;
}
/* logo zawiera już nazwę: nagłówek tylko dla czytników ekranu */
[data-logo-name] .brand-name {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[data-preset="pop"][data-logo-name] .brand-logo { height: 150px; }
[data-preset="pop"] .brand-name {
  font-weight: 900; /* Lilita ma jedną grubość; 900 dla liter z Rubik */
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
[data-preset="pop"] .brand-name em,
[data-preset="pop"] .detail-title em {
  font-style: normal;
  color: inherit;
}
[data-preset="pop"] .brand-sub {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
[data-preset="pop"] .brand-address {
  margin-top: 4px;
  padding: 6px 14px;
  border: 0;
  background: var(--pill);
  color: var(--card-ink);
  font-weight: 500;
}
[data-preset="pop"] .brand-address svg { color: var(--warn); }

[data-preset="pop"] .lang-switch {
  top: 12px;
  right: 12px;
  border: 0;
  background: var(--dark);
}
[data-preset="pop"] .lang-btn {
  color: var(--card);
  font-weight: 800;
}
[data-preset="pop"] .lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Kategorie: kolorowe pigułki jak lista na stojaku */
[data-preset="pop"] .tab {
  padding: 9px 16px;
  border: 0;
  background: var(--card);
  color: var(--card-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
[data-preset="pop"] .tab:nth-child(4n+2) { background: var(--accent); color: var(--accent-ink); }
[data-preset="pop"] .tab:nth-child(4n+3) { background: var(--dark); color: var(--card); }
[data-preset="pop"] .tab:nth-child(4n+4) { background: var(--pill); color: var(--card-ink); }
[data-preset="pop"] .tab:hover { filter: brightness(0.96); }
[data-preset="pop"] .tab:active { transform: translateY(1px); }

/* Sekcje */
[data-preset="pop"] .section-h {
  align-items: center;
  margin: 30px 0 16px;
}
[data-preset="pop"] .section-h h2 {
  font-weight: 900; /* Lilita ma jedną grubość; 900 dla liter z Rubik */
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
[data-preset="pop"] .section-h span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--card);
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Karta dania */
[data-preset="pop"] .dishes li,
[data-preset="pop"] .dishes li:last-child {
  border-bottom: 0;
  margin-bottom: 36px; /* miejsce na zdjęcie wystające z następnej karty */
}
[data-preset="pop"] .dishes li:first-child { margin-top: 34px; }
[data-preset="pop"] .dish {
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 14px 16px 8px;
  background: var(--card);
  color: var(--card-ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--shadow);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}
[data-preset="pop"] .dish:active {
  opacity: 1;
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--shadow);
}
[data-preset="pop"] .dish:focus-visible { border-radius: var(--radius); }
[data-preset="pop"] .thumb {
  width: 96px;
  height: 96px;
  align-self: center;
}
/* wycięte danie lekko wyskakuje z karty: w górę i w lewo, cień pada na kartę */
[data-preset="pop"][data-photos="cutout"] .thumb {
  width: 124px;
  height: 124px;
  align-self: start;
  margin: -40px 0 0 -30px; /* przezroczysty margines zdjęcia ~5%, więc danie wystaje o ~15 px */
}
[data-preset="pop"] .dish-title {
  margin-bottom: 4px;
  padding-right: 70px; /* miejsce na cenę w rogu */
  line-height: 1.05;
}
[data-preset="pop"] .dish-name {
  font-weight: 900; /* Lilita ma jedną grubość; 900 dla liter z Rubik */
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
[data-preset="pop"] .dish-explain {
  margin: 0 0 4px;
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--warn);
}
[data-preset="pop"] .dish-short {
  font-size: 13.5px;
  color: var(--card-ink-soft);
}
[data-preset="pop"] .dish-meta {
  margin-top: 4px;
  font-weight: 600;
  color: var(--card-ink-soft);
  opacity: 1;
}
[data-preset="pop"] .price {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px 3px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900; /* Lilita ma jedną grubość; 900 dla liter z Rubik */
  font-size: 17px;
  line-height: 1.1;
}
[data-preset="pop"] .allergens .a {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 800;
}
[data-preset="pop"] .allergens .a.none {
  background: var(--pill);
  color: var(--card-ink-soft);
}

/* Naklejki: przekrzywione, przyklejone do krawędzi karty */
[data-preset="pop"] .badge {
  padding: 5px 11px 4px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 3px 0 var(--shadow);
}
[data-preset="pop"] .badge-hit { background: var(--accent); color: var(--accent-ink); }
[data-preset="pop"] .badge-nowosc { background: var(--dark); color: var(--card); }
/* naklejka nad kolumną z nazwą, z dala od wystającego zdjęcia */
[data-preset="pop"] .dish > .badge {
  top: -16px;
  left: 112px;
  transform: rotate(-4deg);
}

/* Placeholdery: musztardowe koło z nazwą, w miejscu przyszłego zdjęcia */
[data-preset="pop"] .ph {
  width: 84%;
  height: 84%;
  margin: 4% auto 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-heading);
  font-style: normal;
  text-transform: uppercase;
}
[data-preset="pop"] .ph { font-weight: 900; }
[data-preset="pop"] .thumb .ph { font-size: 34px; }
[data-preset="pop"] .detail-hero .ph {
  position: relative;
  z-index: 1;
  width: 76%;
  height: 76%;
  margin-top: 10%;
  padding: 0 10%;
  font-size: clamp(30px, 10vw, 44px);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Ostrość */
[data-preset="pop"] .detail-spicy .spicy { background: var(--warn-bg); color: var(--warn); }
[data-preset="pop"] .detail-spicy .pepper { color: var(--spicy); }
[data-preset="pop"] .spicy-label { font-weight: 900; }

/* Szczegół: danie na kolorowym tle, treść na kremowym arkuszu */
[data-preset="pop"] .detail { background: var(--bg); }
[data-preset="pop"] .back {
  background: var(--dark);
  color: var(--card);
  box-shadow: 0 3px 0 var(--shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
[data-preset="pop"] .detail-hero::after { display: none; }
/* zdjęcie leży nad kremową kartą i dolną częścią na nią nachodzi */
[data-preset="pop"] .detail-hero {
  z-index: 2;
  background: transparent;
  pointer-events: none;
}
[data-preset="pop"] .back { z-index: 4; }
[data-preset="pop"][data-photos="cutout"] .detail-hero img {
  width: 84%;
  height: 84%;
  margin: 6% auto 0;
}
[data-preset="pop"] .detail-hero::before { bottom: 15%; height: 7%; } /* pod podstawą dania, na karcie */
[data-preset="pop"] .detail-inner {
  min-height: 60vh;
  /* karta podjeżdża pod zdjęcie: danie (dół na ~82% wysokości) nachodzi na nią o ~18% */
  margin-top: -30%;
  padding-top: calc(14% + 24px);
  background: var(--card);
  color: var(--card-ink);
  border-radius: 30px 30px 0 0;
}
[data-preset="pop"] .detail-title {
  padding-right: 88px; /* miejsce na naklejkę z ceną */
  font-weight: 900; /* Lilita ma jedną grubość; 900 dla liter z Rubik */
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
[data-preset="pop"] .detail-title-sub {
  margin: -2px 0 12px;
  padding-right: 88px;
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  color: var(--warn);
}
[data-preset="pop"] .detail-price-row .meta {
  color: var(--card-ink-soft);
  font-weight: 600;
}
/* cena jako okrągła naklejka na krawędzi zdjęcia */
[data-preset="pop"] .price-lg {
  position: absolute;
  z-index: 3; /* nad zdjęciem */
  top: calc(min(100vw, 480px) * 0.14 + 2px); /* obok tytułu, pod podstawą dania (od szerokości, nie wysokości) */
  right: 18px;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900; /* Lilita ma jedną grubość; 900 dla liter z Rubik */
  font-size: 22px;
  transform: rotate(-8deg);
  box-shadow: 0 4px 0 var(--shadow);
}
[data-preset="pop"] .detail-desc {
  color: var(--card-ink);
}
[data-preset="pop"] .block-label {
  margin-top: 26px;
  font-family: var(--font-heading);
  font-weight: 900; /* Lilita ma jedną grubość; 900 dla liter z Rubik */
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--card-ink);
}
[data-preset="pop"] .ing-allergen {
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 800;
}
[data-preset="pop"] .warn-callout {
  border: 2px solid var(--warn);
  border-radius: 18px;
  background: var(--warn-bg);
}
[data-preset="pop"] .warn-callout b { color: var(--warn); font-weight: 800; }
[data-preset="pop"] .warn-callout .trace { color: var(--card-ink); }
[data-preset="pop"] .nutrition dd {
  font-weight: 900; /* Lilita ma jedną grubość; 900 dla liter z Rubik */
  font-size: 22px;
}
[data-preset="pop"] .nutrition .is-kcal dd { color: var(--warn); }
[data-preset="pop"] .nutrition .unit,
[data-preset="pop"] .nutrition dt,
[data-preset="pop"] .nutrition-note { color: var(--card-ink-soft); }

[data-preset="pop"] .status.error,
[data-preset="pop"] .status { font-family: var(--font-heading); font-size: 22px; color: var(--ink); }
