:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d7dee8;
  --surface: #ffffff;
  --page: #f4f7fb;
  --red: #dd3f2f;
  --red-dark: #b72d22;
  --green: #207a58;
  --green-soft: #e6f3ed;
  --yellow: #f4b53f;
  --yellow-soft: #fff5da;
  --accent: var(--red);
  --accent-strong: var(--red-dark);
  --support: var(--green);
  --support-soft: var(--green-soft);
  --highlight: var(--yellow);
  --highlight-soft: var(--yellow-soft);
  --hero-filter: none;
  --radius: 8px;
  --panel-radius: 8px;
  --border-width: 1px;
  --font-main: Arial, Helvetica, sans-serif;
  --hero-height: 315px;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.12);
}

body[data-theme="lieferapp"] {
  --page: #f3f5f8;
  --surface: #ffffff;
  --ink: #1b2733;
  --muted: #61707f;
  --line: #e2e8f0;
  --accent: #ff6a13;
  --accent-strong: #e2540a;
  --support: #0d9f6e;
  --support-soft: #e2f6ee;
  --highlight: #ffb020;
  --highlight-soft: #fff3d6;
  --radius: 12px;
  --panel-radius: 16px;
  --shadow: 0 14px 40px rgba(27, 39, 51, 0.1);
  --font-main: "Segoe UI", Roboto, Arial, sans-serif;
}

body[data-theme="imbiss"] {
  --page: #f5f6f8;
  --surface: #ffffff;
  --ink: #20262e;
  --muted: #5f6b78;
  --line: #d8dee7;
  --accent: #d8261c;
  --accent-strong: #ad1a12;
  --support: #1f7a4d;
  --support-soft: #e6f3ec;
  --highlight: #f3b53f;
  --highlight-soft: #fff4d8;
  --radius: 8px;
  --panel-radius: 8px;
  --shadow: 0 16px 44px rgba(32, 38, 46, 0.12);
  --font-main: Arial, Helvetica, sans-serif;
}

body[data-theme="restaurant"] {
  --page: #ece3d2;
  --surface: #fbf6ec;
  --ink: #3a2c22;
  --muted: #7c6a57;
  --line: #d8c7a8;
  --accent: #7a1f2b;
  --accent-strong: #5c121c;
  --support: #6b5b3e;
  --support-soft: #efe6d2;
  --highlight: #b08a3e;
  --highlight-soft: #f3e9cf;
  --hero-filter: saturate(0.92) contrast(1.02);
  --radius: 4px;
  --panel-radius: 6px;
  --shadow: 0 18px 50px rgba(58, 44, 34, 0.18);
  --font-main: Georgia, "Times New Roman", serif;
}

body[data-theme="tafel"] {
  color-scheme: dark;
  --page: #1b231e;
  --surface: #24302a;
  --ink: #f3efe2;
  --muted: #b9c4ba;
  --line: #3a4940;
  --accent: #f2d65c;
  --accent-strong: #e2c23f;
  --support: #9bd8a2;
  --support-soft: #2c3a31;
  --highlight: #f0a35e;
  --highlight-soft: #332a1c;
  --hero-filter: saturate(0.9) brightness(0.85);
  --radius: 6px;
  --panel-radius: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --font-main: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}

body[data-theme="magazin"] {
  --page: #f1ede8;
  --surface: #ffffff;
  --ink: #1a1614;
  --muted: #6f655d;
  --line: #e3dbd2;
  --accent: #b5642a;
  --accent-strong: #91491a;
  --support: #2f6f5b;
  --support-soft: #e3f0ea;
  --highlight: #caa24a;
  --highlight-soft: #f6edd6;
  --hero-filter: saturate(1.05) contrast(1.03);
  --radius: 6px;
  --panel-radius: 10px;
  --shadow: 0 20px 56px rgba(26, 22, 20, 0.16);
  --font-main: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

#speisekarte,
#versionen,
#info,
#bestellen {
  scroll-margin-top: 96px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  gap: 10px;
}

.topnav a,
.secondary-action,
.ghost-button {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.cart-toggle {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cart-icon {
  width: 18px;
  height: 14px;
  border: 2px solid var(--ink);
  border-top: 0;
}

.cart-icon::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin-left: -4px;
  background: var(--ink);
  transform: rotate(-12deg);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--support);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.order-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  align-items: start;
}

.restaurant-panel {
  min-height: 520px;
  overflow: hidden;
  border: var(--border-width) solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

body[data-layout="split"] .restaurant-panel,
body[data-layout="editorial"] .restaurant-panel,
body[data-layout="restaurant"] .restaurant-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
}

body[data-layout="split"] .hero-media,
body[data-layout="editorial"] .hero-media,
body[data-layout="restaurant"] .hero-media {
  height: auto;
  min-height: 520px;
  order: 2;
}

body[data-layout="split"] .restaurant-copy,
body[data-layout="editorial"] .restaurant-copy,
body[data-layout="restaurant"] .restaurant-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
}

body[data-layout="app"] .restaurant-panel,
body[data-layout="minimal"] .restaurant-panel,
body[data-layout="night"] .restaurant-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
}

body[data-layout="app"] .hero-media,
body[data-layout="minimal"] .hero-media,
body[data-layout="night"] .hero-media {
  height: auto;
  min-height: 520px;
}

body[data-layout="app"] .restaurant-copy,
body[data-layout="minimal"] .restaurant-copy,
body[data-layout="night"] .restaurant-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
}

body[data-layout="tiles"] .restaurant-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

body[data-layout="tiles"] .hero-media {
  height: auto;
  min-height: 520px;
}

body[data-layout="tiles"] .restaurant-copy {
  min-height: 520px;
}

body[data-layout="street"] .restaurant-panel {
  transform: rotate(-0.4deg);
}

body[data-layout="street"] .menu-card:nth-child(even) {
  transform: rotate(0.35deg);
}

body[data-layout="street"] .menu-card:nth-child(odd) {
  transform: rotate(-0.25deg);
}

body[data-layout="friendly"] .menu-card,
body[data-layout="friendly"] .restaurant-panel {
  border-radius: 18px;
}

.hero-media {
  height: var(--hero-height);
  background: #d8dde4;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: var(--hero-filter);
}

.restaurant-copy {
  padding: clamp(22px, 4vw, 34px);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.open-badge {
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--support-soft);
  color: var(--support);
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.02;
}

body[data-layout="editorial"] h1,
body[data-layout="restaurant"] h1 {
  font-size: clamp(42px, 6vw, 74px);
  letter-spacing: 0;
}

body[data-layout="street"] h1 {
  text-transform: uppercase;
}

body[data-layout="minimal"] h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 500;
}

.restaurant-copy p,
.info-band p {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-action,
.checkout-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.primary-action:hover,
.checkout-button:hover {
  background: var(--accent-strong);
}

.cart-panel {
  position: sticky;
  top: 86px;
  border: var(--border-width) solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-header h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.mobile-close {
  display: none;
}

.fulfillment-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 18px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f6;
}

.fulfillment-switch button,
.category-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.fulfillment-switch button.active,
.category-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(31, 41, 51, 0.08);
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 76px;
  max-height: 250px;
  overflow: auto;
  padding-right: 4px;
}

.empty-cart,
.demo-note {
  color: var(--muted);
  font-size: 14px;
}

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

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-weight: 800;
}

.cart-summary {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.cart-summary strong,
.total-row span {
  color: var(--ink);
}

.total-row {
  font-size: 20px;
  font-weight: 800;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
}

.menu-section,
.version-section,
.info-band {
  width: min(1180px, calc(100% - 32px));
  margin: 44px auto;
}

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

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head h2,
.info-band h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.section-note {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f6;
}

.category-tabs button {
  padding: 0 12px;
}

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

.version-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.version-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 14px;
  border: var(--border-width) solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: left;
}

.version-card.active {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.version-preview {
  position: relative;
  height: 118px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--preview-page);
  border: 1px solid var(--preview-line);
}

.version-preview::before {
  display: none;
}

/* Dezenter Theme-Farbton als kleiner Akzent-Punkt unten rechts */
.version-preview::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--preview-accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.preview-hero {
  display: none;
}

.preview-menu {
  display: none;
}

.preview-photo {
  position: absolute;
  inset: 0;
  background-image: var(--preview-image);
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.version-card strong {
  display: block;
  font-size: 17px;
}

.version-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.version-card[data-theme-option="tafel"] {
  color-scheme: dark;
  background: #232c26;
  color: #f3efe2;
  border-color: #3a4940;
}

.version-card[data-theme-option="tafel"] span {
  color: #c2ccc2;
}

.menu-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 242px;
  border: var(--border-width) solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  overflow: hidden;
}

.menu-image {
  height: 8px;
  background: var(--accent);
}

.menu-card[data-category="pizza"] .menu-image {
  background: var(--highlight);
}

.menu-card[data-category="grill"] .menu-image {
  background: var(--support);
}

.menu-card[data-category="drinks"] .menu-image {
  background: #4a83d8;
}

.menu-body {
  padding: 18px;
  position: relative;
  z-index: 1;
  background: var(--surface);
}

.menu-body h3 {
  margin: 0 0 9px;
  font-size: 22px;
}

.menu-body p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.menu-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
  position: relative;
  z-index: 1;
  background: var(--surface);
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: var(--support);
  white-space: nowrap;
}

.add-button {
  min-width: 44px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.info-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 34px;
  border: var(--border-width) solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list span {
  color: var(--muted);
}

.cart-backdrop {
  display: none;
}

.order-dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.order-dialog::backdrop {
  background: rgba(31, 41, 51, 0.36);
}

.order-dialog p {
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Menüstil: Liste (Lieferdienst-App) ---------- */
body[data-menu-style="list"] .menu-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border: var(--border-width) solid var(--line);
  border-radius: var(--panel-radius);
  overflow: hidden;
  background: var(--surface);
}

.menu-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.menu-row:last-child {
  border-bottom: 0;
}

.row-photo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--support-soft);
  font-size: 30px;
}

img.row-photo {
  object-fit: cover;
}

.row-body h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

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

.row-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Menüstil: Nummern (Imbiss) ---------- */
body[data-menu-style="numbered"] .menu-card {
  position: relative;
  grid-template-rows: auto 1fr auto;
}

body[data-menu-style="numbered"] .menu-body {
  padding-top: 18px;
}

.card-photo {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

span.card-photo.placeholder {
  display: grid;
  place-items: center;
  background: var(--support-soft);
  font-size: 48px;
}

.dish-no {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Menüstil: Speisekarte (Restaurant) & Tafel ---------- */
body[data-menu-style="menucard"] .menu-grid,
body[data-menu-style="chalkboard"] .menu-grid {
  display: block;
  column-gap: 48px;
  padding: clamp(22px, 4vw, 46px);
  border: var(--border-width) solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
}

body[data-menu-style="chalkboard"] .menu-grid {
  border: 7px solid #6b4e2e;
  border-radius: 12px;
  background-image: radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.05), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.04), transparent 55%);
  background-color: var(--surface);
}

body[data-menu-style="menucard"] .category-tabs,
body[data-menu-style="chalkboard"] .category-tabs {
  display: none;
}

.menu-group {
  break-inside: avoid;
  margin-bottom: 26px;
}

.group-title {
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-listing {
  break-inside: avoid;
  margin-bottom: 16px;
}

.listing-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.listing-name {
  font-weight: 700;
  font-size: 18px;
}

.leader {
  flex: 1;
  align-self: center;
  border-bottom: 2px dotted var(--line);
}

.listing-price {
  font-weight: 800;
  color: var(--support);
  white-space: nowrap;
}

.add-link {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.add-link:hover {
  background: var(--accent);
  color: #fff;
}

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

body[data-menu-style="chalkboard"] .listing-price {
  color: var(--highlight);
}

body[data-menu-style="chalkboard"] .leader {
  border-bottom-color: rgba(243, 239, 226, 0.35);
}

/* ---------- Menüstil: Magazin (große Fotos) ---------- */
body[data-menu-style="magazine"] .menu-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.menu-feature {
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  border: var(--border-width) solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--support-soft), var(--highlight-soft));
  font-size: 86px;
}

img.feature-photo {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.feature-body {
  padding: 22px;
  position: relative;
  z-index: 1;
  background: var(--surface);
}

.feature-body h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.feature-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.feature-body footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu-feature .add-button {
  width: auto;
  padding: 0 18px;
}

/* ---------- Bestellleiste + Overlay-Warenkorb (Lieferdienst-App) ---------- */
.order-bar {
  display: none;
}

body[data-cart-style="bottombar"] .order-bar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

.order-bar-info {
  display: flex;
  flex-direction: column;
}

.order-bar-count {
  color: var(--muted);
  font-size: 13px;
}

.order-bar-total {
  font-size: 20px;
}

.order-bar-button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.order-bar-button:hover {
  background: var(--accent-strong);
}

body[data-cart-style="bottombar"] .order-shell {
  grid-template-columns: 1fr;
}

body[data-cart-style="bottombar"] .cart-panel {
  position: fixed;
  inset: auto 16px 88px auto;
  z-index: 50;
  width: min(390px, calc(100% - 32px));
  max-height: calc(100vh - 130px);
  overflow: auto;
  opacity: 0;
  transform: translateY(calc(100% + 40px));
  pointer-events: none;
  transition: transform 200ms ease, opacity 200ms ease;
}

body[data-cart-style="bottombar"].cart-open .cart-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body[data-cart-style="bottombar"].cart-open .cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: block;
  background: rgba(15, 23, 42, 0.4);
}

body[data-cart-style="bottombar"] .cart-panel .mobile-close {
  display: inline-flex;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    display: none;
  }

  .order-shell,
  .info-band {
    grid-template-columns: 1fr;
  }

  body[data-layout] .restaurant-panel {
    display: block;
    transform: none;
  }

  body[data-layout] .hero-media {
    min-height: 0;
    height: 315px;
    order: initial;
  }

  body[data-layout] .restaurant-copy {
    min-height: 0;
  }

  .cart-panel {
    position: fixed;
    inset: auto 12px 12px;
    z-index: 40;
    max-height: calc(100vh - 34px);
    overflow: auto;
    transform: translateY(calc(100% + 24px));
    transition: transform 180ms ease;
  }

  body.cart-open .cart-panel {
    transform: translateY(0);
  }

  body.cart-open .cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(31, 41, 51, 0.38);
  }

  .mobile-close {
    display: inline-flex;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .topbar {
    padding: 12px;
  }

  .brand small {
    display: none;
  }

  .order-shell,
  .menu-section,
  .info-band {
    width: min(100% - 20px, 1180px);
  }

  .restaurant-panel {
    min-height: auto;
  }

  .hero-media {
    height: 235px;
  }

  .restaurant-copy {
    padding: 20px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .category-tabs button {
    flex: 0 0 auto;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  body[data-menu-style="magazine"] .menu-grid {
    grid-template-columns: 1fr;
  }

  .version-grid {
    grid-template-columns: 1fr;
  }

  .info-band {
    padding: 22px;
  }
}
