:root {
  --bg: #fff8ed;
  --ink: #201711;
  --muted: #75675d;
  --line: #ead8c2;
  --panel: #ffffff;
  --tomato: #c93424;
  --tomato-dark: #98271e;
  --basil: #197247;
  --cream: #fff2d8;
  --shadow: 0 18px 48px rgba(71, 36, 18, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}

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

button {
  cursor: pointer;
}

.topbar {
  align-items: center;
  background: rgba(255, 248, 237, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--tomato);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  width: 46px;
}

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

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

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 12px;
  text-decoration: none;
}

.nav a:hover {
  background: #f4e5d0;
  color: var(--ink);
}

.hero {
  background:
    linear-gradient(90deg, rgba(32, 23, 17, 0.9), rgba(32, 23, 17, 0.18)),
    url("https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1800&q=85") center/cover;
  color: white;
  min-height: min(650px, calc(100vh - 74px));
  padding: clamp(58px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

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

.eyebrow {
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffcf73;
}

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

h1 {
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 900px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.08;
  margin-bottom: 0;
}

.hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.6;
  max-width: 620px;
}

.primary-action,
.checkout {
  align-items: center;
  background: var(--tomato);
  border: 0;
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
}

.primary-action:hover,
.checkout:hover {
  background: var(--tomato-dark);
}

.status-strip {
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.status-strip span {
  background: rgba(255, 255, 255, 0.06);
  padding: 18px clamp(18px, 5vw, 72px);
}

.layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  padding: clamp(36px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter,
.ghost-button,
.qty-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.filter {
  min-height: 42px;
  padding: 0 14px;
}

.filter.active {
  background: var(--basil);
  border-color: var(--basil);
  color: white;
}

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

.menu-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(71, 36, 18, 0.08);
  display: grid;
  grid-template-rows: 170px 1fr;
  overflow: hidden;
}

.menu-item img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.item-title {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.item-title h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0;
}

.price {
  color: var(--basil);
  font-weight: 950;
  white-space: nowrap;
}

.description {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0;
}

.add-button {
  background: var(--cream);
  border: 1px solid #efc879;
  border-radius: 8px;
  color: #6f4407;
  font-weight: 900;
  min-height: 42px;
  margin-top: auto;
}

.order-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 20px;
  position: sticky;
  top: 92px;
}

.panel-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.order-number,
.empty-cart {
  color: var(--muted);
}

.order-number {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 8px 0 0;
}

.ghost-button {
  min-height: 38px;
  padding: 0 12px;
}

.continue-order {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 900;
  min-height: 44px;
  padding: 0 16px;
  width: 100%;
}

.order-panel.order-focus {
  animation: orderPulse 1.6s ease;
  border-color: var(--tomato);
}

@keyframes orderPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 52, 36, 0.32), var(--shadow);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(201, 52, 36, 0), var(--shadow);
  }
}

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

.cart-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
}

.cart-row-top,
.qty-controls,
.totals div {
  align-items: center;
  display: flex;
}

.cart-row-top,
.totals div {
  justify-content: space-between;
}

.qty-controls {
  gap: 8px;
}

.qty-button {
  aspect-ratio: 1;
  font-weight: 900;
  width: 34px;
}

.pizza-options,
.checkout-section,
.address-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.pizza-options,
.address-group {
  background: #fffaf2;
}

.checkout-section {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.option-title,
.checkout-title,
.field-title {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 950;
  margin: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr);
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.line-note {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.pizza-options .field select,
.pizza-options .line-note,
.address-group .field input {
  background: white;
}

.check-option {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
}

.check-option input {
  accent-color: var(--tomato);
}

.line-note,
.field textarea {
  resize: vertical;
}

.field input:invalid,
.field textarea:invalid {
  border-color: #da766d;
}

.hidden {
  display: none;
}

.totals {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin: 0;
  padding-top: 14px;
}

.totals dt {
  color: var(--muted);
}

.totals dd {
  font-weight: 900;
  margin: 0;
}

.grand-total {
  font-size: 1.2rem;
}

.checkout {
  width: 100%;
}

.checkout:disabled {
  background: #b9afa8;
  cursor: not-allowed;
}

.order-message,
.order-message a {
  color: var(--basil);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .order-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    overflow-x: auto;
    width: 100%;
  }

  .status-strip,
  .menu-grid,
  .field-row {
    grid-template-columns: 1fr;
  }
}
