/* ─────────────────────────────────────────────────────────
   Nina Cakes v2 — main.css
   ─────────────────────────────────────────────────────────
   Sections:
     1. Reset & base
     2. Design tokens
     3. Layout (page, main)
     4. Header (brand, nav)
     5. Footer + banner
     6. Typography
     7. Buttons (primary, dark, ghost)
     8. Forms (.field, label, input, textarea, .error, .status)
     9. Cards (.card)
    10. Hero
    11. Contact grid (info card + form card)
    12. Maintenance page
    13. Utilities
   ───────────────────────────────────────────────────────── */


/* ── 1. Reset & base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;

  /* Reserve space for the fixed footer so page content
     doesn't get hidden behind it. */
  padding-bottom: 10rem;
}

@media (min-width: 640px) {
  body { padding-bottom: 8rem; }
}

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


/* ── 2. Design tokens ────────────────────────────────── */
:root {
  --bg:           #fff8f2;
  --surface:      #ffffff;
  --text:         #2e1c1f;
  --text-muted:   #6b4a4d;
  --text-faint:   #8a7265;

  --pink:         #FF8FA3;
  --pink-hover:   #ff7a95;
  --pink-hot:     #ff3ca8;
  --pink-soft:    #ffecf0;

  --brown-dark:   #3b2523;
  --brown-hover:  #2a1a19;

  --border:       #F1E0D7;
  --border-soft:  #EDE0DA;

  --error:        #b3325a;
  --success:      #2f7a3e;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(46, 28, 31, 0.06);
  --shadow:    0 12px 32px rgba(46, 28, 31, 0.08);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.12);

  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-lg:    1.125rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   2.25rem;
  --fs-3xl:   3.25rem;
}


/* ── 3. Layout ───────────────────────────────────────── */
.page {
  max-width: 64rem;
  width: 100%;
  margin: var(--space-5) auto var(--space-6);
  padding: 0 var(--space-3);
}

@media (min-width: 640px) {
  .page {
    margin: var(--space-7) auto var(--space-8);
    padding: 0 var(--space-5);
  }
}


/* ── 4. Header ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: var(--space-3);
  z-index: 50;
  left: 0;
  right: 0;
  margin: var(--space-3) var(--space-3) 0;
  width: auto;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
}


@media (max-width: 639px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
}

.brand-text-accent { color: var(--pink-hot); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.15s ease;
}

@media (min-width: 640px) {
  .site-nav a {
    font-size: var(--fs-sm);
    padding: var(--space-2) var(--space-4);
  }
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--pink-soft);
  color: var(--text);
}


/* ── 5. Footer + banner ──────────────────────────────── */
/* v1 design: fixed-position floating component pinned to
   the bottom of the viewport. Pink "nut-free" pill floats
   just above a frosted-glass footer bar with rounded top
   corners. */

.site-footer-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;     /* let clicks fall through gaps */
}

.site-footer-wrapper > * {
  pointer-events: auto;     /* but interactive children stay clickable */
}

/* ── Banner ── */
.nut-banner-wrap {
  pointer-events: none;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.nut-banner {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #FF8FB1;       /* v1's exact pink */
  color: white;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

@media (min-width: 640px) { .nut-banner { font-size: var(--fs-sm); } }

.nut-banner svg { width: 1rem; height: 1rem; }

/* ── Footer bar ── */
.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border-top-left-radius: 1.5rem;     /* rounded-t-3xl */
  border-top-right-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
  padding: var(--space-3) var(--space-4);
  font-size: 0.625rem;
  color: var(--brown-dark);
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .site-footer {
    flex-direction: row;
    justify-content: center;
    padding: var(--space-4) var(--space-5);
    font-size: var(--fs-sm);
    gap: 0;
  }
}

/* Socials — pinned to the left edge on desktop */
.socials {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .socials {
    position: absolute;
    left: var(--space-5);
  }
}

.socials a {
  color: #d57a77;             /* v1's exact dusty rose */
  transition: color 0.15s ease;
}

.socials a:hover { color: #b96865; }

.socials a svg { width: 1.25rem; height: 1.25rem; display: block; }

/* Center: copyright */
.copy {
  margin: 0;
  text-align: center;
}

@media (min-width: 640px) { .copy { text-align: left; } }

.copy strong { font-weight: 700; }

/* Credit — pinned to the right edge on desktop */
.credit {
  font-size: 0.625rem;
  color: #8a7265;
  text-decoration: none;
  transition: color 0.15s ease;
}

.credit:hover { color: var(--brown-dark); }

.credit strong { font-weight: 700; }

@media (min-width: 640px) {
  .credit {
    position: absolute;
    right: var(--space-5);
    white-space: nowrap;
  }
}


/* ── 6. Typography ───────────────────────────────────── */
h1 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 var(--space-3);
}

h2 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--space-3);
}

h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--space-1);
}

p { margin: 0 0 var(--space-4); color: var(--text-muted); }

a { color: var(--pink-hot); }

.lede {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.fineprint {
  font-size: var(--fs-sm);
  color: var(--text-faint);
  margin-top: var(--space-5);
}


/* ── 7. Buttons ──────────────────────────────────────── */
button,
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: white;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
  box-shadow: var(--shadow-sm);
}

button:hover, .btn:hover { background: var(--pink-hover); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled, .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--dark {
  background: var(--brown-dark);
  color: white;
}

.btn--dark:hover { background: var(--brown-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--pink-soft);
  color: var(--text);
}


/* ── 8. Forms ────────────────────────────────────────── */
form { display: grid; gap: var(--space-5); }

.field {
  display: grid;
  gap: var(--space-2);
  border: none;
  padding: 0;
  margin: 0;
}

.field label,
.field legend {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  padding: 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
  font-family: inherit;
}

.field .radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-right: var(--space-5);
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}

.field .radio input { accent-color: var(--pink); }

.error {
  font-size: var(--fs-sm);
  color: var(--error);
  margin: 0;
  min-height: 1.25em;
}

.status {
  font-size: var(--fs-sm);
  margin: 0;
  min-height: 1.25em;
}

.status--success { color: var(--success); }
.status--error   { color: var(--error); }


/* ── 9. Cards ────────────────────────────────────────── */
.card {
  background: rgba(255, 255, 255, 0.55);   /* barely-there white */
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 2px 8px rgba(46, 28, 31, 0.03);   /* whisper of a shadow */
}


/* ── 10. Hero ────────────────────────────────────────── */
.hero {
  text-align: center;
  margin: var(--space-7) auto var(--space-7);
  max-width: 48rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, var(--fs-3xl));
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
}

.hero-sub {
  font-size: var(--fs-lg);
  color: var(--text-muted);
}


/* ── 10b. Eyebrow text (small uppercase label above hero) ── */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}


/* ── 10c. Story sections (About page alternating layout) ── */
.story-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  margin: var(--space-7) 0;
}

@media (min-width: 768px) {
  .story-section {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "image text";
    gap: var(--space-7);
  }

  .story-section--reverse {
    grid-template-areas: "text image";
  }

  .story-image { grid-area: image; }
  .story-text  { grid-area: text; }
}

/* The image card — soft, frosted, like v1 */
.story-image {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: 2rem;
  padding: var(--space-3);
  box-shadow: 0 12px 36px rgba(46, 28, 31, 0.06);
}

.story-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.5rem;
  background: var(--surface);
  display: block;
}

.story-image .caption {
  margin: var(--space-3) 0 var(--space-1);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-style: italic;
}

.story-text h2 {
  font-size: clamp(1.25rem, 3vw, var(--fs-xl));
  margin-bottom: var(--space-3);
}

.story-text p {
  color: var(--text-muted);
  line-height: 1.7;
}


/* ── 10d. Form sections (catering long form) ─────────── */
.form-section {
  padding-top: var(--space-5);
  margin-top: var(--space-5);
  border-top: 1px solid var(--border-soft);
}

/* First section sits flush — no top divider */
.form-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.form-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin: 0 0 var(--space-5);
}

/* Two-column field row (date+time, email+phone) */
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* Subtle "(optional)" hint after labels */
.optional {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 0.8em;
  margin-left: var(--space-1);
}

/* Wider form card for multi-section forms — keeps comfortable
   reading width on desktop without a sea of empty space. */
.form-card--wide {
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
}


/* ── 11. Contact grid ────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;          /* mobile default */
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;    /* side-by-side on tablet+ */
    gap: var(--space-6);
  }
}

.info-block {
  margin-top: var(--space-5);
}

.info-block p { margin: 0; }

.info-foot {
  margin-top: var(--space-6);
  color: var(--text);
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}

.bullets li {
  padding-left: var(--space-4);
  position: relative;
  margin-bottom: var(--space-1);
}

.bullets li::before {
  content: "•";
  color: var(--pink);
  position: absolute;
  left: 0;
  font-weight: bold;
}


/* ── 11b. Home page (feature cards) ──────────────────── */

/* Make the home hero a bit narrower so the subtitle reads well */
.hero--home {
  max-width: 56rem;
}

.hero--home .hero-sub {
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.hero--home .hero-sub:last-child {
  margin-bottom: 0;
}

/* Two-card grid on home: Menu + Reserve */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

/* The whole card is a link — soft white surface, image on top, content below */
.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(46, 28, 31, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 16px 50px rgba(46, 28, 31, 0.12);
  transform: translateY(-2px);
}

.feature-card-image {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  display: block;
  background: var(--bg);
}

.feature-card-body {
  padding: var(--space-6);
}

.feature-card-body h3 {
  font-size: var(--fs-xl);
  margin: 0 0 var(--space-3);
}

.feature-card-body p {
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
  line-height: 1.6;
}


/* ── 11c. Menu page (Step 1: Box & Flavor Selection) ──── */

/* Hide global footer on menu page for clean wizard experience */
body:has(.menu-wizard) .site-footer {
  display: none;
}

.hero--menu {
  max-width: 48rem;
}

.menu-wizard {
  max-width: 56rem;
  margin: 0 auto;
  padding-bottom: 8rem; /* space for menu footer only (global footer hidden on this page) */
}

/* ── Wizard Progress Indicator ── */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-5) 0 var(--space-7);
  padding: 0 var(--space-3);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.progress-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: all 0.3s ease;
}

.progress-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  transition: color 0.3s ease;
}

.progress-step.active .progress-num {
  background: var(--pink-hot);
  border-color: var(--pink-hot);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 60, 168, 0.3);
}

.progress-step.active .progress-label {
  color: var(--text);
  font-weight: 600;
}

.progress-step.completed .progress-num {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
}

.progress-step.completed .progress-label {
  color: var(--text);
}

.progress-line {
  flex: 1;
  max-width: 3rem;
  height: 2px;
  background: var(--border);
  margin-bottom: 1.5rem; /* aligns with circle center, not label */
}

@media (max-width: 640px) {
  .progress-label {
    display: none;
  }
  .progress-num {
    width: 2rem;
    height: 2rem;
    font-size: var(--fs-sm);
  }
  .progress-line {
    margin-bottom: 0;
  }
}

/* ── Wizard Step Containers ── */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Wizard contact form (Step 2) ── */
.contact-form-grid {
  display: grid;
  gap: var(--space-4);
  max-width: 32rem;
  margin: 0 auto;
}

/* Ensure [hidden] beats display:grid (CSS specificity workaround) */
.contact-form-grid[hidden],
.address-row[hidden] {
  display: none;
}

/* ── Step 3: Address row (two fields side by side, e.g. Phase + Lot) ── */
.address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 32rem;
  margin: 0 auto;
}

/* ── Step 3: Delivery method cards ── */
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 40rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .delivery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.delivery-option {
  cursor: pointer;
}

.delivery-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  height: 100%;
}

.delivery-option:hover .delivery-card {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.15);
}

.delivery-option input:checked + .delivery-card {
  border-color: var(--pink-hot);
  background: var(--pink-soft);
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.25);
}

.delivery-badge {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 0.125rem var(--space-2);
  border-radius: 999px;
  margin-bottom: var(--space-1);
}

.delivery-badge--fee {
  color: var(--pink-hot);
  background: var(--pink-soft);
}

.delivery-location {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.delivery-method-line {
  font-size: var(--fs-base);
  color: var(--text);
  font-weight: 500;
}

.delivery-meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ── Step 3: Date selection buttons ── */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .dates-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .dates-grid { grid-template-columns: repeat(4, 1fr); }
}

.date-btn {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-2);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  font: inherit;
  color: var(--text);
}

.date-btn:hover {
  border-color: var(--pink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 143, 163, 0.15);
}

.date-btn.selected {
  border-color: var(--pink-hot);
  background: var(--pink-soft);
  box-shadow: 0 4px 12px rgba(255, 143, 163, 0.25);
}

.date-btn-day {
  font-size: var(--fs-base);
  font-weight: 600;
}

.date-btn-time {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.date-btn.selected .date-btn-time {
  color: var(--pink-hot);
  font-weight: 500;
}

/* ── Cancel banner (when user returns from Stripe cancel) ── */
.cancel-banner {
  max-width: 48rem;
  margin: 0 auto var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--pink-soft);
  border: 1px solid var(--pink);
  border-radius: var(--radius-lg);
}

.cancel-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-base);
  color: var(--text);
}

.cancel-banner-icon {
  font-size: 1.5rem;
  color: var(--pink-hot);
  flex-shrink: 0;
}

/* ── Success page ── */
.hero--success {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-7) var(--space-5);
}

.hero-meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: var(--space-4) 0;
}

.hero-meta code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: var(--fs-xs);
  color: var(--text);
}

/* ── Order summary (success page) ── */
.order-summary {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  margin: var(--space-5) 0;
  text-align: left;
}

.summary-section {
  margin-bottom: var(--space-4);
}

.summary-section:last-child {
  margin-bottom: 0;
}

.summary-section h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--space-2) 0;
}

.summary-section p {
  margin: var(--space-1) 0;
  font-size: var(--fs-base);
  color: var(--text);
}

.summary-date {
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--pink-hot) !important;
}

.summary-total {
  font-size: var(--fs-sm);
  color: var(--text);
  margin-top: var(--space-2) !important;
}

.hero-error {
  background: #fff5f5;
  border: 1px solid #ffcccc;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: #c53030;
  font-size: var(--fs-sm);
  margin: var(--space-4) 0;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

/* ── Optional label styling ── */
.optional-label {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Step 4: Review summary ── */
.review-summary {
  display: grid;
  gap: var(--space-3);
  max-width: 36rem;
  margin: 0 auto;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.review-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  gap: var(--space-3);
}

.review-card-head h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0;
}

.review-edit {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--pink-hot);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-edit:hover {
  color: var(--text);
}

.review-line {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--text);
  line-height: 1.4;
}

.review-line + .review-line {
  margin-top: 0.25rem;
}

.review-line--muted {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.review-totals {
  max-width: 36rem;
  margin: var(--space-5) auto 0;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-base);
  color: var(--text);
  padding: var(--space-2) 0;
}

.totals-row--final {
  border-top: 1px solid var(--border);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  font-size: var(--fs-lg);
  font-weight: 700;
}

/* ── Accessibility: visually hidden labels ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.selection-section {
  margin: var(--space-7) 0;
}

.selection-section h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-4);
  text-align: center;
}

.selection-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: calc(-1 * var(--space-3)) 0 var(--space-5);
}

/* ── Box selection ── */
.box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 28rem;
  margin: 0 auto;
}

.box-option {
  cursor: pointer;
}

.box-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.box-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.box-option:hover .box-card {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.15);
}

.box-option input:checked + .box-card {
  border-color: var(--pink-hot);
  background: var(--pink-soft);
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.25);
}

.box-size {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.box-label {
  font-size: var(--fs-base);
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Quantity selection ── */
.quantity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  max-width: 28rem;
  margin: 0 auto;
}

.quantity-option {
  cursor: pointer;
}

.quantity-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quantity-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
}

.quantity-option:hover .quantity-card {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.15);
}

.quantity-option input:checked + .quantity-card {
  border-color: var(--pink-hot);
  background: var(--pink-soft);
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.25);
}

.quantity-num {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text);
}

/* ── Mode selection ── */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 36rem;
  margin: 0 auto;
}

.mode-option {
  cursor: pointer;
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mode-option:hover .mode-card {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.15);
}

.mode-option input:checked + .mode-card {
  border-color: var(--pink-hot);
  background: var(--pink-soft);
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.25);
}

.mode-label {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
}

.mode-price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--pink-hot);
}

.mode-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ── Flavor grid ── */
.flavor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .flavor-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .flavor-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.flavor-option {
  cursor: pointer;
}

.flavor-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.flavor-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flavor-option:hover .flavor-card {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.15);
}

.flavor-option.selected .flavor-card {
  border-color: var(--pink-hot);
  background: var(--pink-soft);
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.25);
}

.flavor-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  background: var(--bg);
}

.flavor-name {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  color: var(--text);
}

.flavor-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* ── Sticky footer with price + Next button ── */
.menu-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  z-index: 30; /* above global footer (z-index: 20) */
  padding: var(--space-4) var(--space-5);
}

.menu-footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
}

.menu-footer-inner .btn--ghost {
  justify-self: start;
}

.menu-footer-inner .price-display {
  justify-self: center;
}

.menu-footer-inner #nextBtn {
  justify-self: end;
}

.price-display {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.price-amount {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text);
}


/* ── 12. Maintenance page ────────────────────────────── */
body.maintenance {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--space-5);
}

.maintenance-card {
  text-align: center;
  max-width: 28rem;
  margin: 0;
}

.maintenance-logo {
  width: 6rem;
  height: 6rem;
  margin: 0 auto var(--space-5);
  object-fit: contain;
}

.maintenance-card h1 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}


/* ── 13. Utilities ───────────────────────────────────── */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-2);
  font-size: var(--fs-base);
}

.contact-list a { font-weight: 500; }

/* center small inline elements like the banner */
body > .nut-banner { align-self: center; margin-left: auto; margin-right: auto; }
