@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #222;
  font-size: 16px;
}

/* ---- Topbar ---- */
.topbar {
  background: #1a1a1a;
  color: white;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.topbar h1 { font-size: 16px; margin: 0; flex: 1 1 auto; }

.burger-btn {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
}
.burger-btn:hover, .burger-btn:active { background: rgba(255, 255, 255, 0.08); }

.topbar-nav {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.topbar-nav.open { max-height: 220px; }

.topbar-link {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  padding: 12px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar-link:hover, .topbar-link:active { color: white; background: rgba(255, 255, 255, 0.08); }

main { margin: 16px auto; padding: 0 12px; }

section.category, section.add-category {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.category-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.category-header h2 { margin: 0; font-size: 17px; }

/* ---- Item cards ---- */
.item-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid #eee;
}

.item-card.sold-out { opacity: 0.5; }

.item-info strong { font-size: 15px; display: block; }
.item-info .price { color: #555; font-size: 14px; }
.item-info p { margin: 4px 0 0; font-size: 13px; color: #777; }

.item-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.item-actions a, .sold-out-btn { flex: 1 1 auto; text-align: center; }
.item-actions a {
  color: #1a73c7;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid #1a73c7;
  border-radius: 6px;
}
.item-actions a:active { background: #eaf3fb; }

.add-item {
  display: inline-block;
  margin-top: 10px;
  color: #1a73c7;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
}

/* ---- Buttons / forms ---- */
button, .sold-out-btn {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 15px;
  min-height: 44px;
  background: #1a73c7;
  color: white;
}

button:hover, button:active { background: #155a9c; }

.sold-out-btn.is-sold-out { background: #c77b1a; }

button.danger { background: #c0392b; }
button.danger:hover, button.danger:active { background: #992d22; }
button.danger.small { padding: 8px 12px; font-size: 13px; min-height: 36px; }

form.inline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

form.inline-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
form.inline-form input, form.inline-form select { width: 100%; }
form.inline-form button { width: 100%; }

input, select, textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 16px;
  width: 100%;
}

label { display: block; margin-bottom: 14px; font-size: 14px; color: #444; }
label input, label select, label textarea { display: block; margin-top: 4px; }

.checkbox-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.checkbox-label input { width: auto; }

.option-group {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.option-group-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.option-group-header strong { font-size: 15px; }
.option-group-header .tag { font-size: 12px; color: #6b6b6b; }
.option-group-header form { margin-left: auto; }

.options { list-style: none; padding: 0; margin: 0 0 8px; }
.options li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; gap: 8px; }

.empty { color: #999; font-size: 14px; }
.hint { color: #999; font-size: 14px; }

/* ---- Order form (public) ---- */
.option-choice { margin-top: 10px; }
.option-choice .tag { display: block; margin-bottom: 4px; color: #6b6b6b; font-size: 12px; }
.option-choice .checkbox-label { display: flex; margin-bottom: 4px; }

.item-qty { margin-top: 10px; }
.item-qty label { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.item-qty input { width: 80px; flex: none; }

/* ---- Order status (admin) ---- */
.status-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  background: #eee;
  color: #333;
}
.status-badge.status-received { background: #fdecea; color: #c0392b; }
.status-badge.status-preparing { background: #fff4e5; color: #c77b1a; }
.status-badge.status-ready { background: #e6f4ea; color: #1e7e34; }
.status-badge.status-completed { background: #eee; color: #666; }
.status-badge.status-cancelled { background: #fdecea; color: #c0392b; font-weight: 700; }

/* ---- Settings sub-navigation ---- */
.settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.settings-tab {
  color: #1a73c7;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  background: white;
  border: 1px solid #dde3ea;
}
.settings-tab.active { background: #1a73c7; color: white; border-color: #1a73c7; }

/* ---- Opening hours (admin settings) ---- */
.opening-hour-day { padding: 12px 0; border-top: 1px solid #eee; }
.opening-hour-day:first-of-type { border-top: none; padding-top: 0; }
.opening-hour-day-header { margin-bottom: 6px; }
.opening-hour-day-header .tag { margin-left: 8px; font-size: 12px; color: #6b6b6b; }
.opening-hour-add-form { align-items: stretch; }
.opening-hour-times { display: flex; align-items: center; gap: 8px; }
.opening-hour-times input[type="time"] { width: auto; flex: 1 1 90px; }
.opening-hour-sep { color: #999; }

.item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}

.logo-preview {
  display: block;
  max-width: 160px;
  max-height: 80px;
  margin: 6px 0 10px;
  border: 1px solid #eee;
  border-radius: 6px;
}

/* ---- Tablet / Desktop ---- */
@media (min-width: 640px) {
  .topbar { padding: 16px 24px; }
  .topbar h1 { font-size: 18px; flex: none; }

  .burger-btn { display: none; }

  .topbar-nav {
    flex-direction: row;
    flex-basis: auto;
    max-height: none;
    overflow: visible;
  }
  .topbar-link { border-top: none; padding: 8px 10px; }

  main { max-width: 900px; margin: 30px auto; padding: 0 20px; }

  section.category, section.add-category { padding: 18px 22px; }

  .item-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .item-actions { flex-wrap: nowrap; }
  .item-actions a, .sold-out-btn { flex: none; }

  form.inline-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  form.inline-form input, form.inline-form select { width: auto; }
  form.inline-form button { width: auto; }

  input, select, textarea { width: auto; }
  label input, label select, label textarea { width: 100%; }

  .option-group-header form { margin-left: 0; }
}

/* ================================================================
   Public storefront — "Imbiss" theme
   Bold, fast, snack-bar coded: dark header, one brand accent color
   (configurable per install via --accent), dense compact cards.
   Every selector is scoped under body.site so the admin panel
   (plain body, no .site class) keeps its own look untouched.
   ================================================================ */

body.site {
  --ink: #18130f;
  --ink-soft: #2b241f;
  --paper: #f6f4f1;
  --line: #e3ddd4;

  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  /* Footer always sits at the bottom, even on short pages */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.text-link, .back-link { color: var(--accent); text-decoration: none; }
.text-link:hover, .text-link:active, .back-link:hover, .back-link:active { color: var(--ink); }
.back-link { display: inline-block; margin-top: 4px; }

body.site h1, body.site h2, body.site .page-title {
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
body.site .page-title { font-size: 22px; }

body.site .site-header {
  background: var(--accent);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
body.site .site-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}
body.site .site-logo img { height: 40px; width: auto; max-width: 60vw; display: block; }
body.site .site-nav { display: flex; gap: 16px; flex-wrap: wrap; }
body.site .site-nav a { color: rgba(255, 255, 255, 0.88); text-decoration: none; font-size: 14px; font-weight: 600; }
body.site .site-nav a:hover, body.site .site-nav a:active { color: #fff; text-decoration: underline; }

/* ---- Status + trust strips (site-wide, right under the header) ---- */
body.site .status-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 13px;
}
body.site .status-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
}
body.site .status-strip { justify-content: space-between; }
body.site .status-pill.status-open { background: #e6f4ea; color: #1e7e34; }
body.site .status-pill.status-preorder { background: #fff4d6; color: #8a5a00; }
body.site .status-pill.status-paused { background: #fdecea; color: #c0392b; }
body.site .status-pill.status-closed { background: #eee; color: #666; }
body.site .status-address { color: #6b6b6b; text-decoration: none; }
body.site a.status-address:hover, body.site a.status-address:active { color: var(--accent); text-decoration: underline; }

body.site .trust-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 18px 12px;
}
body.site .trust-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
body.site .trust-pill.trust-rating { border-color: var(--accent); color: var(--accent); }

body.site .promo-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
}

/* ---- Two-column shell: content + persistent cart sidebar ---- */
body.site .site-shell {
  display: flex;
  gap: 24px;
  max-width: 1120px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 18px;
  align-items: flex-start;
  flex: 1 0 auto;
}
body.site .site-main { flex: 1 1 auto; min-width: 0; padding: 20px 0 40px; }

body.site .cart-sidebar { display: none; }
@media (min-width: 900px) {
  body.site .cart-sidebar {
    display: block;
    flex: none;
    width: 260px;
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
  }
  body.site .cart-sidebar h2 { font-size: 15px; margin: 0 0 10px; }
  body.site .cart-sidebar-count { margin: 0; font-size: 13px; color: #6b6b6b; }
  body.site .cart-sidebar-total { margin: 2px 0 12px; font-size: 20px; font-weight: 800; color: var(--accent); }
  body.site .cart-sidebar-empty { color: #6b6b6b; font-size: 13px; }
  body.site .cart-sidebar .btn-primary { display: block; text-align: center; }
  body.site .cart-bar { display: none; }
}

/* ---- Hero ---- */
body.site .hero {
  background: #ffe9c2; /* warm cream-yellow: appetite colour, readable dark text */
  color: var(--ink);
  padding: 32px 20px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
body.site .hero-copy { max-width: 34ch; }
body.site .hero-copy .hero-heading {
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
}
body.site .hero-sub { margin: 0 0 20px; font-size: 15px; color: #5c4a35; }
body.site .hero-photo {
  align-self: flex-start;
  border-radius: 14px;
  overflow: hidden;
  max-width: 220px;
  box-shadow: 0 8px 20px rgba(120, 70, 10, 0.25);
}
body.site .hero-photo img { display: block; width: 100%; }

body.site .hero-promo { display: block; }
body.site .promo-slide { display: none; }
body.site .promo-slide.is-active { display: flex; flex-direction: column; gap: 18px; animation: promo-fade 0.4s ease; }
@keyframes promo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.site .promo-photo {
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(120, 70, 10, 0.25);
}
body.site .promo-photo img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
body.site .promo-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
}
body.site .promo-text .hero-heading {
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
}
body.site .promo-price { margin: 0 0 16px; font-size: 26px; font-weight: 800; color: var(--accent); }

body.site .btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 15px;
}
body.site .btn-primary:active { opacity: 0.85; }

/* ---- Facts strip ---- */
body.site .info-strip {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 18px 2px 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
body.site .info-chip { display: flex; flex-direction: column; gap: 2px; }
body.site .info-chip-label { font-size: 12px; color: #6b6b6b; }
body.site .info-chip-value { font-size: 17px; font-weight: 700; }

body.site .badge-new {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
  vertical-align: middle;
}

body.site .notice {
  background: #fdecea;
  color: #c0392b;
  border-left: 3px solid #c0392b;
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

body.site .category { background: transparent; box-shadow: none; border-radius: 0; padding: 0; margin-bottom: 30px; }
body.site .category h1 {
  font-size: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
body.site .option-choice .tag { color: #6b6b6b; }

/* ---- Menu search + category pills ---- */
body.site .menu-search {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
}
body.site .category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px; /* keeps the horizontal scrollbar off the pills */
  margin-bottom: 14px;
}
body.site .category-pill {
  flex: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
body.site .category-pill:hover, body.site .category-pill:active { border-color: var(--accent); color: var(--accent); }

/* ---- Menu grid: compact horizontal cards, not tall tiles ---- */
body.site .menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
body.site .menu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
body.site .menu-card.is-hidden, body.site .category.is-hidden { display: none; }
body.site .menu-card-media {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
body.site .menu-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.site .menu-card-placeholder { width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #ece7e0 0 10px, #e0d9cd 10px 20px); }
body.site .menu-card-media .badge-new { position: absolute; top: 4px; left: 4px; }
body.site .menu-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.site .menu-card-body strong { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
body.site .menu-card-body p {
  color: #6b6b6b;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.site .menu-card-body .price { color: var(--accent); font-weight: 800; font-size: 14px; margin-top: 2px; }
body.site .menu-card-action { flex: none; align-self: center; position: relative; }
body.site .add-btn {
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.site .add-btn:hover, body.site .add-btn:active { opacity: 0.85; background: var(--accent); }
body.site .add-form-instant .add-feedback-slot,
body.site .menu-card-action .add-feedback-slot {
  position: absolute;
  top: 100%;
  right: 0;
  white-space: nowrap;
  margin-top: 4px;
}

/* ---- Item options dialog (native <dialog>, no JS library) ---- */
body.site .item-dialog {
  border: none;
  border-radius: 16px;
  padding: 18px 16px 0;
  max-width: 440px;
  width: calc(100vw - 20px);
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
@media (max-width: 600px) {
  body.site .item-dialog { margin: auto auto 10px; }
}
body.site .item-dialog .option-choice .checkbox-label { padding: 7px 0; min-height: 36px; font-size: 15px; margin: 0; }
body.site .item-dialog .option-choice input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--accent); }
body.site .item-dialog .option-choice.many { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
body.site .item-dialog .option-choice.many .tag { grid-column: 1 / -1; }
body.site .add-footer { position: sticky; bottom: 0; background: #fff; margin: 12px -16px 0; padding: 10px 16px 12px; border-top: 1px solid var(--line); }
body.site .add-footer .add-row { margin-top: 0; }
body.site .add-footer .add-feedback-slot { margin-top: 4px; min-height: 18px; }
body.site .option-extras {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
}
body.site .extras-tag {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.03em;
}
body.site .item-dialog::backdrop { background: rgba(20, 15, 10, 0.55); }
body.site .item-dialog h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
body.site .item-dialog .price { color: var(--accent); font-weight: 800; font-size: 14px; }
body.site .dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #999;
  font-size: 22px;
  min-height: auto;
  padding: 4px;
}
body.site .dialog-close:hover, body.site .dialog-close:active { background: none; color: var(--ink); }

body.site input, body.site select, body.site textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
body.site input:focus, body.site select:focus, body.site textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
body.site input[type="radio"], body.site input[type="checkbox"] { accent-color: var(--accent); }
body.site label { color: #4a4a4a; }

body.site button {
  background: var(--ink);
  color: #fdfbf8;
  border-radius: 8px;
  font-weight: 600;
}
body.site button:hover, body.site button:active { background: var(--ink-soft); }
body.site button.danger { background: #c0392b; }
body.site button.danger:hover, button.danger:active { background: #992d22; }

/* ---- Menu add-to-cart ---- */
body.site .add-form { margin-top: 10px; }
body.site .add-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
body.site .qty-label { display: flex; align-items: center; gap: 8px; margin: 0; flex: none; }
body.site .qty-label input { width: 70px; }
body.site .add-feedback-slot { margin-top: 8px; min-height: 20px; }
body.site .add-feedback { font-size: 13px; }
body.site .add-feedback.ok { color: #1e7e34; display: inline-block; animation: add-pop 0.35s ease; font-weight: 700; }
body.site .add-feedback.error { color: #c0392b; }
@keyframes add-pop {
  from { opacity: 0; transform: translateY(3px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Cart bar (fixed, mobile) ---- */
body.site .cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
body.site .cart-bar-link {
  display: block;
  line-height: 22px; /* 22 + 2*14 padding = 50px, keep in sync with the body padding below */
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
}
body.site .cart-bar-link:active { opacity: 0.9; }
/* Room for the fixed bar only while it is actually shown, so the footer
   sits flush on it instead of leaving a gap. */
@media (max-width: 899px) {
  body.site:has(.cart-bar-link) { padding-bottom: 50px; }
}

/* ---- Cart / Kasse ---- */
body.site .cart-list { list-style: none; padding: 0; margin: 0 0 14px; }
body.site .cart-line { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
body.site .cart-line:first-child { border-top: none; }
body.site .cart-line-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
body.site .cart-line-head strong { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
body.site .cart-line-total { flex: none; font-size: 15px; font-weight: 700; color: var(--ink); }
body.site .cart-line-options { display: block; font-size: 13px; color: #6b6b6b; line-height: 1.35; }
body.site .cart-line-foot { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
body.site .cart-line-unit { flex: 1 1 auto; font-size: 12.5px; color: #6b6b6b; }
body.site .qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
body.site .qty-stepper button {
  width: 36px; height: 34px; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--ink); font-size: 20px; line-height: 1; font-weight: 600; cursor: pointer;
}
body.site .qty-stepper button:active { background: var(--paper); }
body.site .qty-stepper span { min-width: 28px; text-align: center; font-weight: 700; font-size: 15px; }
body.site .cart-remove {
  min-height: 0; padding: 4px 2px; background: none; border: 0; color: #6b6b6b; font-size: 12.5px;
  text-decoration: underline; cursor: pointer; font-family: inherit; font-weight: 500;
}
body.site .cart-remove:active { color: var(--accent); }
body.site .cart-total { font-size: 17px; font-weight: 800; border-top: 2px solid var(--ink); padding-top: 10px; margin: 4px 0 14px; }

/* Cart top bar: total + the two main actions */
body.site .cart-actions { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 10px; }
body.site .cart-actions-total { margin: 0; font-size: 18px; display: flex; justify-content: space-between; align-items: baseline; }
body.site .cart-actions-total strong { font-weight: 800; color: var(--accent); font-size: 22px; }
body.site .cart-actions-buttons { display: flex; gap: 8px; }
body.site .cart-actions-buttons > * { flex: 1 1 0; text-align: center; padding: 9px 8px; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; line-height: 1.2; }
body.site .btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); display: inline-block; cursor: pointer; font-family: inherit; }
body.site .btn-secondary:active { background: var(--paper); }
body.site .btn-primary.is-disabled { opacity: 0.4; cursor: not-allowed; }
body.site .btn-block { display: block; text-align: center; padding: 10px 16px; font-size: 15px; }

/* ---- Status / order-type labels (tracking, confirmation) ---- */
body.site .status-badge { border-radius: 6px; font-size: 13px; padding: 6px 10px; }
body.site .type-label { font-size: 13px; color: #6b6b6b; margin-left: 6px; }

/* ---- Footer ---- */
body.site .site-footer {
  background: #5c0a18; /* fallback */
  background: color-mix(in srgb, var(--accent) 55%, #000); /* deep shade of the brand colour */
  color: #f1dede;
  padding: 18px 18px 16px;
  margin-top: auto;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
body.site .site-footer strong { color: #fff; font-size: 16px; }
body.site .site-footer-logo { max-height: 36px; display: block; }
body.site .site-footer-info { line-height: 1.5; display: flex; flex-direction: column; gap: 2px; }
body.site .site-footer-info a { color: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 2px 0; }
body.site .site-footer-info a:hover, body.site .site-footer-info a:active { color: #fff; }
body.site .site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
body.site .site-footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
body.site .site-footer-links a:hover, body.site .site-footer-links a:active { text-decoration: underline; }
body.site .site-footer-hours { list-style: none; margin: 0; padding: 0; font-size: 12px; line-height: 1.55; color: #e6c9c9; }
body.site .site-footer-note { margin: -4px 0 0; font-size: 12px; font-style: italic; color: #f1dede; }
body.site .footer-day { display: inline-block; min-width: 38px; font-weight: 700; color: #fff; text-align: right; margin-right: 4px; }
body.site .site-footer-credit { margin: 0; font-size: 11px; color: #c9a3a3; }

@media (min-width: 640px) {
  body.site .site-header { padding: 16px 26px; }
  body.site .status-strip, body.site .trust-strip { padding-left: 26px; padding-right: 26px; }
  body.site .hero { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 40px; }
  body.site .hero-copy .hero-heading { font-size: 36px; }
  body.site .promo-slide.is-active { flex-direction: row; align-items: center; gap: 36px; }
  body.site .promo-photo { flex: 0 0 42%; }
  body.site .promo-text .hero-heading { font-size: 36px; }
  body.site .site-footer { padding: 26px; }
  body.site .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Customer history / order tracking ---- */
body.site .order-bar {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; padding: 9px 18px; text-decoration: none; font-size: 14px; font-weight: 600;
}
body.site .order-bar:hover, body.site .order-bar:active { background: var(--ink-soft); }
body.site .order-bar-go { text-decoration: underline; }
body.site .order-date { font-size: 13px; font-weight: 500; color: #6b6b6b; margin-left: 6px; }
body.site .progress { display: flex; gap: 4px; list-style: none; padding: 0; margin: 12px 0; font-size: 12px; }
body.site .progress li { flex: 1; text-align: center; padding: 6px 2px; border-top: 4px solid var(--line); color: #6b6b6b; }
body.site .progress li.done { border-top-color: var(--accent); color: var(--ink); }
body.site .progress li.now { border-top-color: var(--accent); color: var(--accent); font-weight: 700; }
body.site .notice.ok { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
body.site .hp-field { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---- Admin: link request log ---- */
.link-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.link-table th, .link-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e3ddd4; }
.link-table .row-alert td { background: #fde8e8; color: #8a1212; font-weight: 600; }

/* ---- Legal / FAQ pages: tap a heading to open its text ---- */
body.site .legal-intro { margin: 0 0 12px; }
body.site .accordion { display: flex; flex-direction: column; gap: 8px; }
body.site .accordion details { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
body.site .accordion summary {
  cursor: pointer; list-style: none; padding: 14px 44px 14px 14px; font-weight: 700; font-size: 15px;
  line-height: 1.3; position: relative; color: var(--ink);
}
body.site .accordion summary::-webkit-details-marker { display: none; }
body.site .accordion summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 600; color: var(--accent); line-height: 1;
}
body.site .accordion details[open] summary::after { content: "−"; }
body.site .accordion details[open] summary { border-bottom: 1px solid var(--line); }
body.site .accordion .accordion-body { padding: 4px 14px 12px; }
body.site .accordion .accordion-body p { margin: 10px 0 0; line-height: 1.5; font-size: 14.5px; }

body.site .cart-sub { display: flex; justify-content: space-between; margin: 4px 0; font-size: 14px; color: #4a4a4a; }
body.site .cart-fee-note { margin: -6px 0 0; font-size: 12.5px; color: #6b6b6b; text-align: right; }

/* ---- Time-based availability (e.g. pizza oven off 14-17) ---- */
body.site .menu-card.is-blocked .menu-card-media { opacity: 0.45; filter: grayscale(1); }
body.site .block-pill { display: inline-block; background: var(--paper); border: 1px solid var(--line); color: #6b6b6b; font-size: 12px; font-weight: 700; padding: 6px 9px; border-radius: 999px; max-width: 92px; text-align: center; line-height: 1.2; }
body.site .category-block-note { margin: -4px 0 10px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
body.site .cart-line-blocked { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---- Checkout (compact, mobile first) ---- */
body.site .checkout { display: flex; flex-direction: column; gap: 12px; }
body.site .co-summary { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
body.site .co-summary summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 15px; }
body.site .co-summary summary::-webkit-details-marker { display: none; }
body.site .co-summary summary::after { content: "▾"; margin-left: 8px; color: #6b6b6b; }
body.site .co-summary summary strong { margin-left: auto; font-size: 17px; color: var(--accent); }
body.site .co-summary .options { margin: 0; padding: 0 14px 10px; }
body.site .co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.site .co-grid label { margin: 0; font-size: 13px; font-weight: 600; color: #4a4a4a; display: flex; flex-direction: column; gap: 4px; }
body.site .co-grid .co-full { grid-column: 1 / -1; }
body.site .co-grid input { margin: 0; min-height: 42px; padding: 8px 10px; font-size: 16px; }
body.site .co-grid[hidden] { display: none; }
body.site .co-zip-hint { grid-column: 1 / -1; margin: 0; color: var(--accent); font-weight: 700; font-size: 13.5px; }
body.site .co-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
body.site .co-seg label { margin: 0; cursor: pointer; position: relative; display: block; }
body.site .co-seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; padding: 0; left: 0; top: 0; }
body.site .co-seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; font-size: 14.5px; line-height: 1.2; }
body.site .co-seg small { font-weight: 500; font-size: 11.5px; color: #6b6b6b; }
body.site .co-seg input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fff7f7; color: var(--accent); }
body.site .co-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
body.site .co-note summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); padding: 4px 0; }
body.site .co-note textarea { width: 100%; margin-top: 6px; min-height: 60px; font-size: 16px; }
body.site .co-hint { margin: -4px 0 0; text-align: center; }
body.site #co-submit:disabled { opacity: 0.4; cursor: not-allowed; }
body.site .co-pay-info { margin: 0 0 -4px; padding: 9px 12px; background: #fff7e0; border: 1px solid #f0dca0; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: #6b5200; }
body.site .badge-new.inline { position: static; display: inline-block; vertical-align: middle; margin-left: 4px; }
body.site .cart-removed-note { max-width: 1120px; margin: 10px auto 0; }
body.site .menu-card.is-blocked .menu-card-body { opacity: 0.45; }

/* ---- Order confirmation ---- */
body.site .thanks { text-align: center; padding: 6px 0 10px; }
body.site .thanks-mark { margin: 0 auto 6px; width: 52px; height: 52px; line-height: 52px; border-radius: 50%; background: #e6f4ea; color: #1e7e34; font-size: 28px; font-weight: 800; }
body.site .thanks .page-title { margin: 0 0 4px; }
body.site .thanks-sub { margin: 0; color: #6b6b6b; }
body.site .thanks-eta { margin: 8px 0; }
body.site .thanks-note { text-align: center; margin: 10px 0 4px; }
body.site .cart-total small { font-weight: 500; color: #6b6b6b; font-size: 12px; }

/* Safety net: the page must never scroll sideways on phones */
html { overflow-x: hidden; }
body.site { overflow-x: clip; max-width: 100vw; }

/* ================= Admin: order board ================= */
.ord-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ord-top h2 { margin: 0; }
.sound-btn { background: #eee; color: #444; border: 1px solid #ccc; border-radius: 20px; padding: 8px 14px; font-weight: 600; cursor: pointer; min-height: 0; }
.sound-btn.is-on { background: #e6f4ea; color: #1e7e34; border-color: #a5d6a7; }
.ord-section { margin: 16px 0 8px; font-size: 16px; }
.ord-count { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 12px; background: #1a73c7; color: #fff; font-size: 13px; text-align: center; }
.nav-badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: #ff3b30; color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.ord { background: #fff; border: 1px solid #e0e4ea; border-left: 6px solid #9aa4b2; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.ord-received { border-left-color: #ff3b30; background: #fffafa; }
.ord-preparing { border-left-color: #f0a030; }
.ord-ready { border-left-color: #2e9d4f; }
.ord-completed, .ord-cancelled { border-left-color: #c8ccd2; opacity: 0.8; }
.ord-late { box-shadow: 0 0 0 2px #ff3b3055; }
.ord-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ord-id { font-size: 24px; font-weight: 800; }
.ord-time { font-size: 18px; font-weight: 700; margin-right: 6px; }
.ord-ago { color: #6b6b6b; font-size: 14px; }
.ord-ago.is-late { color: #d92d20; font-weight: 700; }
.ord-chips { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .3px; background: #eee; color: #333; }
.chip-delivery { background: #e8f0fe; color: #1a56c4; }
.chip-pickup { background: #fff4e5; color: #b45f06; }
.chip-pay-cash { background: #fff3cd; color: #7a5b00; }
.chip-pay-card { background: #e0f2fe; color: #075985; }
.chip-pay-online { background: #dcfce7; color: #166534; }
.ord-who { margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.ord-who a { color: #1a56c4; text-decoration: none; }
.ord-addr { flex-basis: 100%; }
.ord-items { list-style: none; margin: 8px 0; padding: 0; }
.ord-items li { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid #f0f2f5; font-size: 16px; }
.ord-qty { font-weight: 800; min-width: 30px; }
.ord-name small { display: block; color: #6b6b6b; font-size: 14px; margin-top: 1px; }
.ord-note { margin: 6px 0; padding: 8px 10px; background: #fff3cd; border-radius: 6px; font-weight: 600; }
.ord-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.ord-total strong { font-size: 18px; }
.ord-total small { display: block; color: #6b6b6b; }
.ord-actions .item-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ord-next { font-size: 16px; padding: 12px 18px; min-height: 48px; }
.ord-done { margin-top: 18px; }
.ord-done summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
@media (max-width: 600px) { .ord-chips { margin-left: 0; } .ord-actions { width: 100%; } .ord-next { flex: 1; } }

/* Order lines (confirmation, tracking, checkout): name + options on two lines, prices in one column */
body.site .lines { list-style: none; margin: 8px 0; padding: 0; }
body.site .lines li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
body.site .lines li:first-child { border-top: 0; }
body.site .lines-main { flex: 1 1 auto; min-width: 0; }
body.site .lines-main strong { display: block; font-size: 15px; line-height: 1.3; }
body.site .lines-main small { display: block; margin-top: 2px; font-size: 13px; color: #6b6b6b; line-height: 1.35; }
body.site .lines-price { flex: none; min-width: 74px; text-align: right; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.site .co-summary .lines { padding: 0 14px 6px; }

/* The hidden attribute must always win over component display rules */
body.site [hidden] { display: none !important; }

/* Cancelled orders must be impossible to overlook */
.ord-cancelled { border-left-color: #d92d20; background: #fff1f0; opacity: 1; }
.ord-cancelled-note { margin: 6px 0; padding: 8px 10px; background: #d92d20; color: #fff; border-radius: 6px; font-weight: 800; }
.cancel-box { display: inline-block; }
.cancel-box summary { list-style: none; cursor: pointer; display: inline-block; background: #c0392b; color: #fff; border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.cancel-box summary::-webkit-details-marker { display: none; }
.cancel-box[open] summary { background: #eee; color: #444; }
.cancel-box form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; min-width: 240px; padding: 10px; background: #fff; border: 1px solid #e0e4ea; border-radius: 8px; }
.cancel-box select, .cancel-box input { width: 100%; }
body.site .cancel-banner { display: flex; flex-direction: column; gap: 3px; margin: 10px 0; padding: 12px 14px; background: #fdecea; border: 2px solid #d92d20; border-radius: 10px; color: #8a1212; font-size: 15px; }
body.site .cancel-banner a { color: #8a1212; font-weight: 700; }
body.site .order-card:has(.cancel-banner) { border-color: #d92d20; }

/* Options dialog: lock the page behind it, scroll only inside the dialog */
body.site:has(dialog[open]) { overflow: hidden; }
body.site .item-dialog { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Admin: delivery-area chips */
.zip-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0; }
.zip-chips li { display: inline-flex; align-items: center; gap: 2px; background: #e8f0fe; color: #1a56c4; border-radius: 20px; padding: 4px 4px 4px 14px; font-weight: 700; }
.zip-chips form { margin: 0; }
.zip-x { background: none; border: 0; color: #1a56c4; font-size: 20px; line-height: 1; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; cursor: pointer; }
.zip-x:hover, .zip-x:active { background: #c62828; color: #fff; }
.zip-add { margin-top: 14px; }

/* Vegetarian seal on menu cards */
body.site .veg-badge { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; margin-left: 4px; padding: 2px 7px; border-radius: 10px; background: #e3f4e6; color: #1e7e34; font-size: 11px; font-weight: 700; white-space: nowrap; }

/* ---- Hero: popular articles as a swipe row (no background, cards carry the look) ---- */
body.site .badge-top { background: var(--ink); }
body.site .badge-hot { background: #e8590c; }
body.site .hero-top { padding: 0 0 6px; }
body.site .top-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
body.site .top-head h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
body.site .top-nav { display: none; gap: 6px; }
body.site .top-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
body.site .top-arrow:hover { border-color: var(--ink); }
body.site .top-row {
  display: flex; gap: 14px; margin: 0 -16px; padding: 4px 16px 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
body.site .top-row::-webkit-scrollbar { display: none; }
body.site .top-card {
  flex: 0 0 62%; max-width: 250px; scroll-snap-align: start;
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
body.site .top-photo { position: relative; aspect-ratio: 4 / 3; background: #eceae5; }
body.site .top-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.site .top-photo .badge-new { position: absolute; top: 8px; left: 8px; }
body.site .top-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
body.site .top-body strong { font-size: 16px; line-height: 1.25; }
body.site .top-body p { margin: 0; font-size: 13px; color: #6b6b6b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.site .top-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
body.site .top-buy form { margin: 0; }
body.site .top-price { font-size: 16px; font-weight: 800; color: var(--accent); white-space: nowrap; }
body.site .top-buy .btn-primary { padding: 8px 12px; font-size: 13.5px; white-space: nowrap; }
@media (min-width: 720px) {
  body.site .top-nav { display: flex; }
  body.site .top-row { margin: 0; padding: 4px 2px 14px; scroll-padding: 0; }
  body.site .top-card { flex: 0 0 calc((100% - 42px) / 4); max-width: none; }
}
