:root {
  --red: #b11d2a;
  --red-dark: #82131d;
  --green: #247348;
  --blue: #075aa3;
  --blue-dark: #073a67;
  --gold: #f4b52d;
  --cream: #f5f7fb;
  --paper: #ffffff;
  --ink: #17191f;
  --muted: #667085;
  --line: #dde3ea;
  --soft: #eef3f8;
  --success: #21784f;
  --warning: #b85c00;
  --danger: #b4232f;
  --shadow: 0 18px 44px rgba(14, 23, 38, 0.12);
  --tight-shadow: 0 10px 28px rgba(14, 23, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
}

.top-strip {
  background: var(--blue-dark);
  color: white;
  padding: 0.5rem 1rem;
}

.top-strip-inner,
.main-header,
.content-grid,
.store-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.top-strip a,
.main-header a,
.store-header a {
  color: inherit;
}

.main-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  padding: 1.35rem 0 1rem;
}

.brand-lockup {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-lockup h1,
.store-title h1 {
  margin: 0;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  line-height: 0.95;
}

.store-title h1 {
  font-size: 3rem;
}

.tagline {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.button,
.icon-button,
.secondary-button,
.danger-button {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.button {
  background: var(--red);
  color: white;
  box-shadow: 0 10px 24px rgba(177, 29, 42, 0.22);
}

.button:hover,
.button:focus-visible {
  background: var(--red-dark);
}

.secondary-button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--red);
}

.danger-button {
  background: #fff1f1;
  color: var(--danger);
  border: 1px solid #f3bbbb;
}

.icon-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 2rem;
}

.menu-column,
.cart-panel,
.store-panel,
.order-card,
.success-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.menu-column {
  overflow: hidden;
}

.customer-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0, #f5f7fb 420px),
    var(--cream);
}

.customer-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.customer-nav-inner,
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.customer-nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-lockup {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  text-decoration: none;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 950;
  border-bottom: 5px solid var(--blue);
}

.logo-lockup strong,
.logo-lockup small {
  display: block;
}

.logo-lockup strong {
  font-size: 1.05rem;
}

.logo-lockup small {
  color: var(--muted);
  font-weight: 750;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  color: var(--ink);
  min-height: 40px;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft);
}

.customer-hero {
  color: white;
  background:
    linear-gradient(90deg, rgba(130, 19, 29, 0.98), rgba(177, 29, 42, 0.92)),
    var(--red);
  border-bottom: 6px solid var(--gold);
}

.hero-inner {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0;
}

.hero-copy {
  max-width: 680px;
}

.hero-copy .eyebrow {
  color: var(--gold);
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: 4.2rem;
  line-height: 0.94;
}

.hero-copy p {
  margin: 1rem 0 0;
  max-width: 570px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.14rem;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.hero-primary:hover,
.hero-primary:focus-visible {
  background: #ffd568;
}

.hero-actions .secondary-button {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hero-facts span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 850;
}

.hero-facts strong {
  margin-right: 0.25rem;
}

.hero-media {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.35);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: center;
  opacity: 0.95;
}

.hero-offer {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: var(--tight-shadow);
}

.hero-offer span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-offer strong {
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
}

.hero-offer small {
  color: var(--muted);
  font-weight: 800;
}

.customer-order-grid {
  margin-top: 1.25rem;
}

.customer-menu-column {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.spotlight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.spotlight-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: white;
  box-shadow: var(--tight-shadow);
}

.spotlight-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 90, 163, 0.13), var(--tight-shadow);
}

.spotlight-card:hover,
.spotlight-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--blue);
}

.spotlight-icon,
.section-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-weight: 950;
  font-size: 1.05rem;
  border-bottom: 5px solid var(--gold);
}

.spotlight-card strong,
.spotlight-card small {
  display: block;
}

.spotlight-card strong {
  font-size: 1rem;
}

.spotlight-card small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.customer-category-tabs {
  position: sticky;
  top: 74px;
  z-index: 8;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(245, 247, 251, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--tight-shadow);
  backdrop-filter: blur(14px);
}

.customer-category-section {
  padding: 1.15rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.customer-category-section .section-heading > div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: center;
}

.customer-category-section .section-heading h2 {
  font-size: 2rem;
  line-height: 1.05;
}

.menu-photo-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fffdf8 0%, #f7ead7 100%);
}

.menu-photo-band h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.menu-photo-band p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.menu-photo {
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.category-tabs,
.store-tabs,
.source-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-tabs {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.tab-button,
.source-button,
.topping-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  font-weight: 850;
}

.tab-button[aria-selected="true"],
.source-button[aria-pressed="true"],
.topping-button[aria-pressed="true"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.category-section {
  padding: 1rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.65rem;
}

.section-heading p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.item-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: white;
  display: grid;
  gap: 0.75rem;
  min-height: 174px;
  box-shadow: 0 8px 20px rgba(14, 23, 38, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 90, 163, 0.45);
  box-shadow: var(--tight-shadow);
}

.item-card h3,
.pizza-builder h3,
.cart-panel h2,
.store-panel h2,
.order-card h3 {
  margin: 0;
}

.item-card p,
.cart-muted,
.fine-print,
.order-meta {
  color: var(--muted);
}

.item-card p {
  margin: -0.35rem 0 0;
  line-height: 1.45;
}

.item-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 0.45rem;
  padding: 0.18rem 0.55rem;
  background: #fff4d6;
  color: #7a4a00;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.price-row,
.cart-line-top,
.order-top,
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price {
  color: var(--red);
  font-weight: 900;
  font-size: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span,
.field label,
.field-title {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-height: 44px;
  padding: 0.7rem 0.75rem;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(7, 90, 163, 0.18);
  border-color: var(--blue);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.pizza-builder {
  border: 2px solid var(--blue);
  border-radius: 8px;
  padding: 1.05rem;
  background: #f7fbff;
  margin-bottom: 1rem;
  display: grid;
  gap: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.pizza-builder-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.pizza-builder-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.pizza-total {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 142px;
  padding: 0.75rem 0.85rem;
  text-align: right;
}

.pizza-total strong {
  display: block;
  color: var(--red);
  font-size: 1.4rem;
}

.topping-grid {
  display: grid;
  gap: 0.55rem;
}

.topping-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topping-name {
  font-weight: 800;
}

.topping-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, auto));
  gap: 0.35rem;
}

.topping-button {
  min-width: 54px;
  padding: 0.45rem 0.5rem;
}

.cart-panel {
  position: sticky;
  top: 90px;
  padding: 0;
  overflow: hidden;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--blue-dark);
  color: white;
}

.cart-count {
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.cart-lines {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1rem 0;
}

.cart-panel .empty-state {
  margin: 1rem;
}

.cart-panel .checkout-form {
  padding: 0 1rem 1rem;
}

.cart-panel .cart-total {
  margin-left: 1rem;
  margin-right: 1rem;
}

.store-panel .cart-header,
.order-layout .cart-header {
  background: var(--paper);
  color: var(--ink);
}

.store-panel .cart-count,
.order-layout .cart-count {
  background: var(--blue);
  color: white;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.cart-line {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line h3 {
  margin: 0;
  font-size: 1rem;
}

.option-list,
.order-items {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.quantity-controls strong {
  min-width: 2ch;
  text-align: center;
}

.cart-total {
  border-top: 2px solid var(--ink);
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.estimate-panel,
.pickup-notice {
  display: grid;
  gap: 0.1rem;
  margin: 0.9rem 1rem 0;
  border: 1px solid #bed8f4;
  border-radius: 8px;
  padding: 0.75rem;
  background: #f3f8ff;
}

.pickup-notice {
  margin: 0;
}

.estimate-panel span,
.pickup-notice span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.estimate-panel strong,
.pickup-notice strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.estimate-panel small,
.pickup-notice small {
  color: var(--muted);
  font-weight: 700;
}

.checkout-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.success-panel {
  padding: 1rem;
  margin-bottom: 1rem;
  border-color: #a8d9bd;
  background: #f3fff7;
}

.success-panel h2 {
  margin: 0;
  color: var(--success);
}

.success-panel p {
  margin: 0.4rem 0 0;
}

.store-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.staff-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(7, 58, 103, 0.96), rgba(177, 29, 42, 0.9)),
    var(--blue-dark);
}

.staff-login-panel {
  width: min(430px, 100%);
  display: grid;
  gap: 1.25rem;
  border-radius: 8px;
  padding: 1.2rem;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.staff-login-panel h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.staff-login-panel .checkout-form {
  margin-top: 0;
}

.store-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.store-shell {
  padding: 1rem 0 2rem;
}

.store-status-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.65rem;
}

.store-panel {
  padding: 1rem;
}

.store-tabs {
  margin-bottom: 1rem;
}

.store-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.45fr);
  gap: 1rem;
  align-items: start;
}

.live-orders-panel {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(14, 23, 38, 0.08);
}

.live-orders-panel .section-heading {
  margin-bottom: 0.8rem;
}

.live-orders-panel .current-order-row {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.live-orders-panel .order-actions.compact .button {
  width: 100%;
}

.orders-list {
  display: grid;
  gap: 0.8rem;
}

.current-order-list {
  display: grid;
  gap: 0.65rem;
}

.current-order-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(112px, 0.65fr) minmax(180px, 1.2fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  background: white;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(14, 23, 38, 0.06);
}

.current-order-row.new {
  border-left-color: var(--red);
}

.current-order-row.ready {
  border-left-color: var(--success);
}

.current-order-row h3,
.current-order-row p {
  margin: 0.25rem 0 0;
}

.current-order-row p,
.current-order-items,
.out-time small,
.settings-field small {
  color: var(--muted);
}

.current-order-items {
  font-weight: 750;
  line-height: 1.35;
}

.out-time {
  display: grid;
  gap: 0.1rem;
}

.out-time span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.out-time strong {
  color: var(--red);
  font-size: 1.35rem;
  line-height: 1;
}

.order-actions.compact {
  margin: 0;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.settings-form .button {
  grid-column: 1 / -1;
}

.settings-field small {
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.fixed-rule {
  display: grid;
  gap: 0.25rem;
  min-height: 100%;
  padding: 0.85rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fixed-rule span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.fixed-rule strong {
  color: var(--ink);
}

.fixed-rule small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.order-card {
  padding: 1rem;
  box-shadow: none;
}

.order-card.new {
  border-color: var(--red);
}

.order-card.ready {
  border-color: var(--success);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.new {
  background: #ffe7e9;
  color: var(--danger);
}

.badge.accepted {
  background: #e8f3ff;
  color: var(--blue);
}

.badge.cooking {
  background: #fff3dd;
  color: var(--warning);
}

.badge.ready {
  background: #e4f8ed;
  color: var(--success);
}

.badge.completed {
  background: #ececec;
  color: #444;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 1rem;
}

.source-toggle {
  margin-bottom: 1rem;
}

.empty-state {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  max-width: min(360px, calc(100% - 32px));
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast.success {
  background: var(--success);
}

.toast.warning {
  background: var(--warning);
}

.error-text {
  color: var(--danger);
  font-weight: 800;
}

.fine-print {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
}

@media (max-width: 920px) {
  .content-grid,
  .order-layout,
  .store-dashboard-grid,
  .store-header-inner,
  .main-header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .cart-panel {
    position: static;
  }

  .live-orders-panel {
    position: static;
  }

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

  .current-order-row,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
    max-width: 640px;
  }

  .hero-media {
    min-height: 260px;
  }

  .hero-media img {
    min-height: 260px;
  }

  .spotlight-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-strip-inner,
  .price-row,
  .section-heading,
  .order-top,
  .pizza-builder-header {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .content-grid,
  .top-strip-inner,
  .main-header,
  .store-shell,
  .store-header-inner,
  .customer-nav-inner,
  .hero-inner {
    width: min(100% - 20px, 1180px);
  }

  .item-grid,
  .menu-photo-band,
  .store-status-bar {
    grid-template-columns: 1fr;
  }

  .menu-photo {
    max-height: 160px;
    width: 100%;
  }

  .topping-row {
    grid-template-columns: 1fr;
  }

  .topping-controls {
    grid-template-columns: repeat(4, 1fr);
  }

  .topping-button {
    min-width: 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .brand-lockup h1,
  .store-title h1 {
    font-size: 2.55rem;
  }

  .customer-nav-inner {
    min-height: 0;
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .logo-lockup {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0.45rem 0.35rem;
    background: var(--soft);
    text-align: center;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-category-tabs {
    top: 132px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .customer-category-tabs::-webkit-scrollbar {
    display: none;
  }

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

  .customer-category-section .section-heading > div {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .section-icon,
  .spotlight-icon {
    width: 46px;
    height: 46px;
  }

  .customer-category-section .section-heading h2 {
    font-size: 1.55rem;
  }

  .customer-hero {
    border-bottom-width: 4px;
  }

  .hero-inner {
    padding: 1.35rem 0;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
    line-height: 1;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-actions .button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .hero-media {
    min-height: 220px;
  }

  .hero-media img {
    min-height: 220px;
  }

  .cart-panel {
    top: 0;
  }
}
