:root {
  --bg: #f7f9f6;
  --ink: #203035;
  --muted: #65737a;
  --panel: #ffffff;
  --line: #dce6e4;
  --accent: #c21f78;
  --accent-2: #149552;
  --blue: #178ec0;
  --logo-pink: #c92a86;
  --logo-green: #1a9b58;
  --logo-blue: #168fc1;
  --cream: #fff8ec;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247,249,246,0.96)),
    radial-gradient(circle at top left, rgba(194,31,120,0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(20,149,82,0.08), transparent 30%),
    var(--bg);
}

.shell {
  max-width: 980px;
  margin: 0 auto 32px;
  padding: 14px;
  display: grid;
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.hero {
  min-height: 240px;
  padding: 28px 24px;
  display: grid;
  align-content: end;
  color: white;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(105deg, rgba(87, 28, 72, 0.82), rgba(18, 96, 64, 0.74)),
    linear-gradient(180deg, rgba(14, 23, 28, 0.18), rgba(14, 23, 28, 0.58)),
    url("/static/main-outdoor.png") center 38% / cover no-repeat;
  box-shadow: 0 10px 30px rgba(36, 71, 66, 0.12);
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.86);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2 {
  margin: 8px 0 10px;
}

.hero h1 {
  margin-top: 10px;
  margin-bottom: 14px;
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(17px, 4.4vw, 24px);
  line-height: 1.18;
  font-weight: 500;
}

p { color: var(--muted); }

h2 {
  font-size: 22px;
  line-height: 1.15;
}

h3 {
  font-size: 18px;
}

label {
  font-size: 14px;
  font-weight: 700;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.branch-link {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: var(--logo-blue);
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(22, 143, 193, 0.16);
}

.stack {
  display: grid;
  gap: 10px;
}

input, select, button {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.order-surface {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.branch-switch {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--logo-blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.menu-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.menu-card h4 {
  margin: 0 0 8px;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef3f1;
}

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

.qty-control {
  display: grid;
  grid-template-columns: 34px 46px 34px;
  align-items: center;
  gap: 6px;
}

.qty-control button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: #f4f7f5;
  color: var(--ink);
  border: 1px solid #cad9d4;
  font-size: 18px;
  line-height: 1;
}

.qty-control input {
  width: 46px;
  padding: 8px 4px;
  text-align: center;
  background: #fff;
  border-color: #cad9d4;
}

.cart-panel {
  position: sticky;
  top: 8px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #c9dcd6;
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 8px 20px rgba(57, 77, 70, 0.08);
}

.cart-panel p {
  margin: 4px 0 0;
}

.function-calendar {
  padding: 12px;
  border: 1px solid #c9dcd6;
  border-radius: 8px;
  background: #f8fbfa;
}

.delivery-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c9dcd6;
  border-radius: 8px;
  background: #f8fbfa;
}

.location-button {
  width: 100%;
}

.location-status {
  margin: 0;
  font-size: 13px;
}

.location-status[data-state="ok"] {
  color: #147647;
  font-weight: 800;
}

.location-status[data-state="error"] {
  color: #9a315f;
  font-weight: 800;
}

.calendar-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.calendar-head p {
  margin: 4px 0 0;
  font-size: 13px;
}

#calendarMonth {
  color: var(--logo-blue);
  font-weight: 800;
  white-space: nowrap;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  min-height: 38px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.calendar-day:disabled {
  color: #a7b4b8;
  background: #f1f4f4;
}

.calendar-day.selected {
  background: var(--logo-blue);
  color: white;
  border-color: var(--logo-blue);
}

[hidden] {
  display: none !important;
}

.submit-order {
  min-height: 48px;
  background: var(--logo-blue);
  box-shadow: 0 8px 18px rgba(22, 143, 193, 0.22);
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 31, 35, 0.54);
}

.review-card {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: white;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(20, 31, 35, 0.28);
}

.review-list p {
  margin: 8px 0;
}

.review-total {
  margin-top: 12px !important;
  color: var(--ink);
  font-weight: 800;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.secondary-action {
  min-height: 48px;
  background: #eef5f7;
  color: var(--ink);
  border: 1px solid #cfdddf;
}

.adjustment-box {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #c9dcd6;
  border-radius: 8px;
  background: var(--cream);
}

.adjustment-box form {
  margin-top: 10px;
}

.adjust-row {
  display: grid;
  grid-template-columns: 1.5fr 90px 110px;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.adjust-row label {
  display: none;
}

@media (max-width: 640px) {
  .shell {
    padding: 0 0 18px;
  }

  .order-surface {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .hero {
    min-height: 268px;
    padding: 28px 24px 30px;
  }

  .hero h1 {
    font-size: 44px;
  }

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

  .menu-row strong {
    font-size: 14px;
  }

  .cart-panel {
    top: 0;
    border-radius: 0;
    margin: 0 -16px;
  }

  .review-actions {
    grid-template-columns: 1fr;
  }

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

  .adjust-row label {
    display: block;
  }
}
