:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --surface: #ffffff;
  --ink: #243029;
  --muted: #6b716a;
  --olive: #586047;
  --olive-dark: #333b2c;
  --tomato: #b54634;
  --gold: #c9a15d;
  --line: #e6dccd;
  --shadow: 0 18px 45px rgba(36, 48, 41, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(251, 247, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--olive);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.phone-link {
  color: var(--surface);
  background: var(--olive-dark);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(20px, 3vw, 34px);
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 54px) 56px;
}

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

.section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.muted,
.form-note {
  color: var(--muted);
}

.cart-jump {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--tomato);
  color: var(--surface);
  font-weight: 900;
}

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

.pizza-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pizza-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  background: #eee8de;
}

.pizza-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

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

.pizza-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.price-pill {
  color: var(--tomato);
  font-weight: 900;
  white-space: nowrap;
}

.ingredients {
  margin-bottom: 14px;
  color: #4f574e;
  line-height: 1.42;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: auto 0 15px;
}

.meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--olive-dark);
  font-size: 13px;
  font-weight: 800;
}

.quantity-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
}

.quantity-row button,
.ghost-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4eee4;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.quantity-row button {
  min-height: 44px;
  font-size: 22px;
}

.quantity-row output {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.cart-panel {
  min-width: 0;
}

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

.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cart-heading h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.ghost-button {
  padding: 9px 11px;
}

.cart-lines {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

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

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

.cart-line span {
  color: var(--muted);
  font-size: 14px;
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding-top: 14px;
  border-top: 2px solid var(--olive-dark);
  font-size: 18px;
}

.cart-total strong {
  font-size: 24px;
}

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

.order-form label {
  display: grid;
  gap: 6px;
  color: var(--olive-dark);
  font-weight: 800;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 161, 93, 0.18);
}

.form-actions {
  display: grid;
  gap: 10px;
}

.primary-button {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 0;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  background: var(--tomato);
  color: var(--surface);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-note {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  .cart-sticky {
    position: static;
  }

  .cart-jump {
    display: inline-grid;
  }
}

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

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

@media (max-width: 620px) {
  .page-shell {
    padding-bottom: 32px;
  }

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

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

  .phone-link,
  .cart-jump {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
