:root {
  --olive-900: #1b2e1b;
  --olive-800: #2a3a2a;
  --olive-700: #3a4a30;
  --cream: #fdfbf5;
  --cream-warm: #faf6ee;
  --paper: #f3efe6;
  --gold: #b8924a;
  --gold-deep: #9e7a3e;
  --ink: #1b2e1b;
  --mute: #6a7a5a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(184,146,74,0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(58,74,48,0.1), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  min-height: 100vh;
}

.top { padding: 28px 20px 8px; }
.top-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.lede {
  margin: 10px 0 0;
  max-width: 46ch;
  color: var(--mute);
  line-height: 1.55;
}
.hours-chip {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(184,146,74,0.35);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 200px;
}
.hours-chip span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.hours-chip strong { font-size: 15px; }

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.checkout-pane {
  position: sticky;
  top: 16px;
  scroll-margin-top: 16px;
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .checkout-pane { position: static !important; }
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 4px;
}
.section-head p { margin: 0 0 18px; color: var(--mute); }

.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.pizza-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(58,74,48,0.12);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}
.pizza-card:hover,
.pizza-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(184,146,74,0.55);
  box-shadow: 0 18px 40px -24px rgba(27,46,27,0.35);
}
.pizza-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--olive-800);
}
.pizza-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.pizza-card:hover .pizza-visual img { transform: scale(1.06); }
.tags {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tags span {
  background: rgba(253,251,245,0.92);
  color: var(--olive-800);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
}
.pizza-body { padding: 14px 14px 16px; }
.pizza-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 6px;
}
.pizza-body > p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mute);
  min-height: 2.9em;
}

.size-row, .protein-row, .extras-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.field-label {
  display: block;
  margin: 8px 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.field-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(58,74,48,0.2);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--olive-900);
}
.addon-list {
  list-style: none;
  margin: 6px 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.addon-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  background: rgba(184,146,74,0.12);
  border: 1px solid rgba(184,146,74,0.28);
  border-radius: 999px;
  padding: 6px 10px;
}
.addon-list button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  padding: 0;
}

.size-btn {
  flex: 1 1 30%;
  appearance: none;
  border: 1px solid rgba(58,74,48,0.18);
  background: var(--cream);
  border-radius: 12px;
  padding: 8px 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  transition: 0.15s ease;
}
.size-btn em {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  color: var(--mute);
}
.size-btn.is-active {
  background: var(--olive-900);
  color: var(--cream);
  border-color: var(--olive-900);
}
.size-btn.is-active em { color: rgba(253,251,245,0.75); }

.chip, .extra-chip {
  appearance: none;
  border: 1px solid rgba(58,74,48,0.18);
  background: #fff;
  border-radius: 999px;
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: 0.15s ease;
}
.chip.is-active, .extra-chip.is-active {
  background: rgba(184,146,74,0.22);
  border-color: rgba(184,146,74,0.7);
  color: var(--olive-900);
}
.extra-chip span { color: var(--gold-deep); font-weight: 800; }

.add-btn {
  width: 100%;
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--olive-900);
  color: var(--cream);
  font: inherit;
  font-weight: 800;
  padding: 12px;
  border-radius: 999px;
  margin-top: 4px;
  transition: transform 0.15s, background 0.15s;
}
.add-btn:hover { background: var(--olive-800); transform: translateY(-1px); }
.add-btn.is-added { background: var(--gold-deep); }

.fulfill-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 10px;
}
.fulfill-btn {
  appearance: none;
  border: 1px solid rgba(58,74,48,0.22);
  background: #fff;
  border-radius: 12px;
  padding: 12px 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: var(--olive-800);
}
.fulfill-btn.is-active {
  background: var(--olive-900);
  color: var(--cream);
  border-color: var(--olive-900);
}
.pickup-place {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(184,146,74,0.12);
  border: 1px solid rgba(184,146,74,0.3);
  font-size: 14px;
  line-height: 1.45;
}
#addressFields[hidden],
.pickup-place[hidden] {
  display: none !important;
}

input, select, textarea {
  direction: ltr;
  unicode-bidi: plaintext;
}
#customerForm input {
  width: 100%;
}
.checkout-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(184,146,74,0.35);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(8px);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.checkout-card.is-focused {
  border-color: rgba(184,146,74,0.75);
  box-shadow: 0 0 0 3px rgba(184,146,74,0.22);
}
.checkout-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 12px;
  font-size: 26px;
}
.cart-empty { color: var(--mute); font-size: 14px; margin-bottom: 14px; }
.cart-list { list-style: none; margin: 0 0 14px; padding: 0; }
.cart-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(58,74,48,0.18);
  font-size: 14px;
}
.cart-list button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
}

.donate-box {
  background: rgba(184,146,74,0.1);
  border: 1px solid rgba(184,146,74,0.28);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}
.donate-box label { font-weight: 800; font-size: 13px; }
.donate-note { margin: 4px 0 10px; font-size: 12px; color: var(--mute); line-height: 1.45; }
.donate-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.donate-row input {
  width: 88px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(58,74,48,0.2);
  font: inherit;
}

.coupon-box {
  margin-bottom: 14px;
}
.coupon-box label { font-weight: 800; font-size: 13px; display: block; margin-bottom: 6px; }
.coupon-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.coupon-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(58,74,48,0.2);
  font: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.coupon-row .btn { white-space: nowrap; padding: 10px 14px; }
#discountRow strong { color: #2f6b3a; }

.totals { margin-bottom: 16px; }
.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 5px 0;
  color: var(--olive-700);
}
.total-row {
  margin-top: 6px;
  padding-top: 10px !important;
  border-top: 1px solid rgba(58,74,48,0.18);
  font-size: 18px !important;
  color: var(--olive-900) !important;
}
.total-row strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.form-title {
  font-family: var(--serif);
  font-weight: 500;
  margin: 8px 0 4px;
}
.form-req { margin: 0 0 10px; font-size: 12px; color: var(--mute); }
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0 5px;
}
input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid rgba(58,74,48,0.2);
  background: #fff;
  font: inherit;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status-line { min-height: 1.3em; font-size: 13px; margin: 8px 0 0; }
.status-line.ok { color: #2f6b2f; font-weight: 700; }
.status-line.err { color: #8a2f2f; font-weight: 700; }
.donate-note.ok { color: #2f6b2f; font-weight: 700; }
.donate-note.err { color: #8a2f2f; font-weight: 700; }


.actions { display: grid; gap: 8px; margin-top: 14px; }
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 13px 16px;
  border-radius: 999px;
}
.btn.primary { background: var(--olive-900); color: var(--cream); }
.btn.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.secondary {
  background: transparent;
  color: var(--olive-900);
  border: 1px solid rgba(58,74,48,0.3);
}
.stripe-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--mute);
  line-height: 1.45;
}
.payment-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(58,74,48,0.15);
  background: #fff;
}
.err { color: #8a2f2f; font-size: 13px; }
.out {
  margin-top: 12px;
  white-space: pre-wrap;
  font-size: 11px;
  background: rgba(27,46,27,0.05);
  padding: 10px;
  border-radius: 10px;
  max-height: 220px;
  overflow: auto;
}
