/* Thai Mex Station — styles */

:root {
  --green: #173f32;
  --green-dark: #0f2c23;
  --green-soft: #e6efe9;
  --cream: #faf7f0;
  --sand: #f1ebdd;
  --orange: #e07a2f;
  --orange-dark: #c76722;
  --ink: #1d231f;
  --muted: #5f675f;
  --line: #e4e1d6;
  --white: #ffffff;
  --red: #b3261e;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(23, 63, 50, .08);
  --header-h: 72px;
  --mobile-bar-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 60px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: "Manrope", "DM Sans", sans-serif;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 10px;
  color: #6c7c5f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ─── Buttons ─── */

.button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--orange); border-color: var(--orange); }
.button-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.button-secondary { color: var(--green); background: #fff; border-color: var(--green); }
.button-secondary:hover { background: var(--green-soft); }
.button-large { min-height: 64px; padding: 14px 26px; font-size: 18px; border-radius: 14px; }
.button-sub { font-size: 13px; font-weight: 500; opacity: .85; }

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none !important; }
.brand-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #fff; }
.brand.has-logo .brand-mark { display: none; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -2px;
  padding-right: 2px;
}
.brand-mark span { color: #f4b16f; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; letter-spacing: .08em; color: var(--ink); }
.brand-name strong { font-size: 15px; font-weight: 800; }
.brand-name small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .22em; }

.header-nav { display: flex; gap: 22px; margin-left: 12px; }
.header-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--green); white-space: nowrap; }
.header-order { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* ─── Hero ─── */

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--orange-dark); }

.hero-lede { max-width: 520px; margin: 0 0 20px; color: var(--muted); font-size: 18px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 14px;
  font-weight: 700;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #999; }
.status-pill.is-open { background: #e3f3e7; color: #17502f; }
.status-pill.is-open .status-dot { background: #2f9e55; box-shadow: 0 0 0 4px rgba(47, 158, 85, .18); }
.status-pill.is-closed { background: #f8e8e5; color: #7c2d24; }
.status-pill.is-closed .status-dot { background: var(--red); }
.status-pill-inline { margin: 8px 0 16px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 24px;
}

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0; padding: 0;
  color: var(--muted);
  font-size: 15px;
}
.hero-facts a { color: inherit; }

.hero-card {
  background: var(--green);
  color: #fff;
  border-radius: 22px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 22px; margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li {
  position: relative;
  padding-left: 48px;
  counter-increment: step;
  display: grid;
  gap: 2px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
}
.steps strong { font-size: 17px; }
.steps span { color: #d4ded6; font-size: 15px; }
.steps b { color: #ffd2a7; font-weight: 700; }
.hero-card-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); color: #d4ded6; font-size: 15px; }
.hero-card-note a { color: #ffd2a7; font-weight: 700; }

/* ─── Section headings ─── */

.section-heading { margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; margin-bottom: 8px; }
.section-sub { margin: 0; color: var(--muted); font-size: 16px; max-width: 640px; }

/* ─── Menu ─── */

.menu-section { max-width: 1160px; margin: 0 auto; padding: 48px 24px 40px; }

.menu-tools { display: grid; gap: 14px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px 0 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--green); }
.search-icon { color: var(--green); font-size: 26px; line-height: 1; }
.search-box input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  outline: none !important;
  background: transparent;
  font-size: 17px;
}
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--green); }
.chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.chip-link { color: var(--green); }

.category-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px -24px 8px;
  padding: 8px 24px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.category-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-select-wrap { flex-shrink: 0; }
.category-select {
  min-height: 40px;
  max-width: 160px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.category-nav a:hover { background: var(--sand); }
.category-nav a.is-active { background: var(--green); color: #fff; }
.category-nav a.is-hidden { display: none; }

.results-count { min-height: 1.4em; margin: 10px 0 0; color: var(--muted); font-size: 15px; font-weight: 600; }

.menu-sections { display: grid; gap: 40px; margin-top: 16px; }

.menu-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
}
.menu-group-head h3 { font-size: 26px; font-weight: 800; color: var(--green); }
.menu-group-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 640px; }
.group-link { flex-shrink: 0; font-size: 14px; font-weight: 700; white-space: nowrap; }

.group-fold > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.group-fold > summary::-webkit-details-marker { display: none; }
.group-fold > summary::before { content: "＋"; }
.group-fold[open] > summary::before { content: "－"; }
.group-fold[open] > summary { margin-bottom: 16px; }

.menu-sub-head { margin: 26px 0 10px; }
.menu-sub-head:first-child { margin-top: 0; }
.menu-sub-head h4 { font-size: 19px; font-weight: 800; }
.menu-sub-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.menu-sub-head .group-link { display: inline-block; margin-top: 4px; }

.menu-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.menu-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow .15s, border-color .15s;
}
.menu-item:hover { border-color: #cfd9d1; box-shadow: var(--shadow); }

.item-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

.item-photo {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  margin: -2px 0 -2px -4px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sand);
}
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.item-title h4 { font-size: 18px; font-weight: 800; }
.item-code {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.item-desc { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.item-desc[hidden] { display: none; }

.item-tags { display: inline-flex; gap: 4px; }
.tag { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sand); font-size: 13px; }
.tag-spicy { background: #fde7df; }
.tag-vegan, .tag-vegetarian { background: #e3f3e7; }
.tag-popular { background: #fff1cc; }
.tag-new { background: #e9e5fb; }

.item-price { flex-shrink: 0; display: flex; align-items: flex-start; gap: 2px; padding-top: 2px; }
.price-from { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.price-ladder { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--cream); font-size: 14px; }
.price-ladder div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.price-ladder div + div { border-top: 1px dashed var(--line); }
.price-ladder dt { color: var(--muted); }
.price-ladder dd { margin: 0; font-family: "Manrope", sans-serif; font-weight: 800; white-space: nowrap; }

.item-options { margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 1.5; }
.item-options b { color: var(--ink); font-weight: 700; }

.item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.item-add {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.item-add:hover { background: var(--green-dark); }
.item-more { border: 0; background: transparent; padding: 0; color: var(--green); font-size: 14px; font-weight: 700; cursor: pointer; }
.item-more:hover { text-decoration: underline; }
.item-clover { font-size: 13px; font-weight: 600; color: var(--muted); }
.item-clover:hover { color: var(--green); }

.item-order {
  align-self: flex-start;
  margin-top: 10px;
  padding: 7px 12px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.item-order:hover { background: var(--green); color: #fff; }

.is-sold-out { opacity: .6; }
.is-sold-out .item-photo img { filter: grayscale(1); }
.sold-out { padding: 4px 9px; border-radius: 999px; background: #eee9dd; color: #6b655a; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.price { font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 800; white-space: nowrap; }
.price-note-inline { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.price-unknown { font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; white-space: normal; max-width: 90px; line-height: 1.3; }
.item-source { color: var(--orange-dark); font-weight: 800; }

.section-more { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.footnote { margin: -14px 0 0; color: var(--muted); font-size: 14px; }

.empty-state { padding: 48px 16px; text-align: center; }
.empty-title { margin: 0 0 6px; font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 800; }
.empty-state p { color: var(--muted); }
.empty-state .button { margin-top: 12px; }

.more-categories {
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
}
.more-categories h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.more-categories p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.more-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.price-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; }

/* ─── Pickup & delivery ─── */

.order-section { background: var(--cream); padding: 56px 24px; }
.order-section .section-heading, .order-grid, .help-box { max-width: 1112px; margin-left: auto; margin-right: auto; }

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

.order-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.order-card-featured { border: 2px solid var(--orange); box-shadow: var(--shadow); }
.order-icon { font-size: 34px; margin-bottom: 10px; }
.order-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.order-card p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.order-card p strong, .order-list strong { color: var(--ink); }
.order-list { margin: 0 0 20px; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.order-card .button { margin-top: auto; }

.payment-note { max-width: 1112px; margin: 18px auto 0; color: var(--muted); font-size: 15px; }

.help-box {
  margin-top: 22px;
  padding: 6px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.help-box summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  color: var(--green);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-box summary::-webkit-details-marker { display: none; }
.help-box summary::before { content: "＋"; font-size: 22px; line-height: 1; color: var(--orange-dark); }
.help-box[open] summary::before { content: "－"; }
.help-steps { margin: 4px 0 14px; padding-left: 22px; display: grid; gap: 10px; color: var(--muted); }
.help-steps strong, .help-steps b { color: var(--ink); }
.help-box > p { margin: 0 0 18px; }

/* ─── Hours & location ─── */

.hours-section { max-width: 1160px; margin: 0 auto; padding: 56px 24px; }
.hours-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.hours-section h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }

.hours-table { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 17px; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours-table th { font-weight: 700; width: 45%; }
.hours-table td { font-family: "Manrope", sans-serif; font-weight: 700; }
.hours-table .is-closed td { color: var(--muted); font-weight: 600; }
.hours-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; max-width: 460px; }

.location-card {
  padding: 26px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
}
.location-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.location-card address { font-style: normal; font-size: 17px; line-height: 1.6; margin-bottom: 18px; }
.location-card address strong { font-family: "Manrope", sans-serif; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.location-card .button-secondary { background: #fff; border-color: #fff; }
.location-links { margin: 18px 0 0; color: #d4ded6; font-size: 15px; }
.location-links a { color: #ffd2a7; font-weight: 700; }

/* ─── FAQ ─── */

.faq-section { max-width: 760px; margin: 0 auto; padding: 16px 24px 64px; }
.faq-section h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin-bottom: 18px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; background: #fff; }
.faq-list summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "＋"; color: var(--orange-dark); font-size: 20px; }
.faq-list details[open] summary::after { content: "－"; }
.faq-list p { margin: 0 0 18px; color: var(--muted); }
.faq-list p strong { color: var(--ink); }

/* ─── Footer ─── */

.site-footer { padding: 36px 24px 40px; border-top: 1px solid var(--line); background: var(--cream); }
.footer-inner { max-width: 1112px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; font-size: 15px; }
.footer-inner p { margin: 0 0 6px; color: var(--muted); }
.footer-brand { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 17px; color: var(--ink) !important; letter-spacing: .02em; }
.footer-label { font-weight: 800; color: var(--ink) !important; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.footer-note { max-width: 1112px; margin: 24px auto 0; color: var(--muted); font-size: 13px; }

/* ─── Mobile sticky order bar ─── */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.mobile-bar .button-secondary { flex: 0 0 auto; padding-inline: 16px; }
.mobile-bar .button-primary { flex: 1; }

/* ─── Responsive ─── */

@media (max-width: 960px) {
  .header-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .order-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: var(--mobile-bar-h); }
  .site-header { padding: 10px 16px; gap: 12px; }
  .header-phone { display: none; }
  .header-order { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .hero { padding: 28px 16px 32px; }
  .hero h1 { font-size: 36px; }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-card { padding: 24px 20px; border-radius: 18px; }
  .menu-section, .order-section, .hours-section, .faq-section { padding-left: 16px; padding-right: 16px; }
  .menu-section { padding-top: 36px; }
  .category-bar { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .menu-group-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .item-photo { flex-basis: 88px; width: 88px; height: 88px; }
  .menu-list { grid-template-columns: 1fr; }
  .menu-item { padding: 12px 14px; }
  .item-title h4 { font-size: 17px; }
  .menu-group-head h3 { font-size: 22px; }
  .order-section { padding-top: 40px; padding-bottom: 40px; }
  .help-box { padding-inline: 16px; }
  .mobile-bar { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .mobile-bar, .hero-card, .category-bar, .menu-tools, .order-section, .faq-section, .help-box, .item-actions, .group-link, .hero-actions, .toast, dialog { display: none !important; }
  .item-desc[hidden] { display: block !important; }
  .group-fold > summary { display: none; }
  .group-fold { display: block; }
  .menu-list { grid-template-columns: 1fr 1fr; }
  .menu-item { break-inside: avoid; border: 0; border-bottom: 1px solid #ddd; border-radius: 0; }
}

/* ─── Order builder ─── */

.cart-button { gap: 8px; flex-direction: row; white-space: nowrap; }
.cart-button.has-items { background: var(--green); border-color: var(--green); }
.button-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button-ghost:hover { color: var(--ink); background: var(--sand); transform: none; }

.dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: min(92vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  background: #fff;
  color: var(--ink);
}
.dialog::backdrop { background: rgba(20, 30, 24, .5); backdrop-filter: blur(2px); }
.dialog-form { position: relative; padding: 24px 24px 20px; }
.dialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: var(--sand); color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.dialog-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; padding-right: 36px; }
.dialog-photo { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.dialog-head h2 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.dialog-head .item-desc { margin-top: 6px; }
.dialog-price { margin: 8px 0 0; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 18px; }

.opt-group { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.opt-group legend { padding: 0 6px; font-weight: 800; font-size: 15px; }
.opt-group .req { margin-left: 4px; font-size: 11px; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .06em; }
.opt { display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-size: 15px; cursor: pointer; }
.opt + .opt { border-top: 1px dashed var(--line); }
.opt input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
.opt span { flex: 1; }
.opt em { font-style: normal; font-weight: 700; color: var(--muted); font-size: 14px; }
.opt-select { width: 100%; min-height: 46px; margin: 4px 0 2px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; color: var(--ink); }
.opt-select:focus { outline: none; border-color: var(--green); }
.note-field { display: grid; gap: 6px; margin: 4px 0 12px; font-size: 14px; font-weight: 600; }
.note-field input { min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; }
.note-field input:focus { outline: none; border-color: var(--green); }

.dialog-footer { position: sticky; bottom: -20px; display: flex; gap: 12px; align-items: center; margin: 8px -24px -20px; padding: 14px 24px; background: #fff; border-top: 1px solid var(--line); }
.dialog-footer .button-primary { flex: 1; min-height: 52px; font-size: 16px; }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; }
.qty-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.qty-btn:hover { background: var(--sand); }
.qty output { min-width: 28px; text-align: center; font-weight: 800; font-family: "Manrope", sans-serif; }
.qty-small { margin-top: 8px; }
.qty-small .qty-btn { width: 32px; height: 32px; font-size: 18px; }

.cart-dialog { width: min(600px, calc(100vw - 24px)); }
.cart-dialog h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; padding-right: 40px; }
.cart-count { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.cart-empty { color: var(--muted); font-size: 16px; }
.cart-lines { list-style: none; margin: 0 0 16px; padding: 0; }
.cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line-main { display: grid; gap: 2px; min-width: 0; }
.cart-line-main strong { font-size: 16px; }
.cart-line-opts { color: var(--muted); font-size: 13px; }
.cart-line-price { font-family: "Manrope", sans-serif; font-weight: 800; white-space: nowrap; }
.cart-remove { margin-left: 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }

.seg-group { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--sand); margin-bottom: 12px; }
.seg { flex: 1; min-height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink); }
.seg.is-on { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.delivery-box { margin-bottom: 8px; }
.hint { margin: 6px 0 12px; color: var(--muted); font-size: 14px; }
.warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff1e6; color: #8a3f10; font-size: 14px; font-weight: 600; }

.cart-totals { margin: 8px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--cream); }
.cart-totals div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; }
.cart-totals dt { color: var(--muted); }
.cart-totals dd { margin: 0; font-family: "Manrope", sans-serif; font-weight: 700; }
.cart-totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 18px; }
.cart-totals .grand dt { color: var(--ink); font-weight: 800; }
.cart-totals .grand dd { font-weight: 800; }
.cart-actions { display: grid; gap: 10px; margin-top: 14px; }
.cart-actions .button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.back-link { border: 0; background: transparent; color: var(--green); font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 10px; }
.handoff-intro { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.handoff-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.handoff-step { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.handoff-step .handoff-main::before { content: counter(step) ". "; font-weight: 800; color: var(--orange-dark); }
.handoff-main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.handoff-check input { width: 22px; height: 22px; accent-color: var(--green); }
.handoff-link { white-space: nowrap; min-height: 40px; padding: 8px 14px; font-size: 14px; }
.handoff-step.is-done { opacity: .55; }
.handoff-step.is-done .handoff-main strong { text-decoration: line-through; }
.handoff-final { display: grid; gap: 8px; margin: 16px 0 12px; padding: 16px; border-radius: 14px; background: var(--cream); border: 1.5px dashed var(--line); }
.handoff-final.is-ready { background: #e3f3e7; border-color: #2f9e55; }
.handoff-final span { color: var(--muted); font-size: 14px; }
.handoff-alt { padding: 10px 0; }
.handoff-alt summary { cursor: pointer; font-weight: 700; color: var(--green); }
.order-text { white-space: pre-wrap; margin: 10px 0; padding: 12px; border-radius: 10px; background: var(--cream); font-size: 13px; font-family: inherit; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--mobile-bar-h) + 16px); z-index: 70;
  transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--green-dark); color: #fff;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; border-radius: 8px; padding: 6px 10px; background: var(--orange); color: #fff; font-weight: 700; cursor: pointer; }
@media (min-width: 721px) { .toast { bottom: 24px; } }
@media (max-width: 720px) {
  .dialog { width: 100vw; max-width: none; max-height: 94vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .dialog-form { padding: 20px 16px 16px; }
  .dialog-footer { margin: 8px -16px -16px; padding: 12px 16px; }
  .handoff-step { flex-wrap: wrap; }
  .handoff-link { width: 100%; }
  .header-order { display: none; }
}

/* ─── Delivery timeline & checkout ─── */

.timeline { list-style: none; max-width: 1112px; margin: 0 auto 28px; padding: 0; display: grid; gap: 14px; counter-reset: tl; }
.timeline li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  counter-increment: tl;
  position: relative;
}
.timeline-icon { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--green-soft); font-size: 26px; }
.timeline h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.timeline h3::before { content: counter(tl) ". "; color: var(--orange-dark); }
.timeline p { margin: 0; color: var(--muted); font-size: 16px; }
.timeline p strong { color: var(--ink); }
.order-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cta-strip {
  max-width: 1112px; margin: 24px auto 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  padding: 22px; border-radius: 16px; background: var(--green); color: #fff;
}
.cta-strip strong { font-family: "Manrope", sans-serif; font-size: 20px; }
.cta-strip .button-ghost { color: #d4ded6; }
.cta-strip .button-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.hint-center { text-align: center; margin-top: 2px; }
.progress { display: flex; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; }
.progress li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--sand); font-size: 13px; font-weight: 700; color: var(--muted); }
.progress li span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--muted); font-family: "Manrope", sans-serif; }
.progress li.is-done { color: var(--green); }
.progress li.is-done span { background: var(--green); color: #fff; }
.progress li.is-current { background: #fde9d6; color: var(--orange-dark); }
.progress li.is-current span { background: var(--orange); color: #fff; }
.checkout-summary { margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--cream); }
.checkout-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.checkout-summary dt { color: var(--muted); }
.checkout-summary dd { margin: 0; font-family: "Manrope", sans-serif; font-weight: 700; }
.checkout-summary .grand { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-size: 16px; }
.checkout-summary .grand dt { color: var(--ink); font-weight: 800; }
.checkout-h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.step-count { margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pay-steps { margin: 6px 0 14px; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.pay-steps b { color: var(--ink); }
.handoff-final .button { width: 100%; }

@media (max-width: 720px) {
  .order-grid-2 { grid-template-columns: 1fr; }
  .timeline li { padding: 14px 16px; gap: 14px; }
  .timeline-icon { width: 44px; height: 44px; font-size: 22px; }
  .timeline h3 { font-size: 17px; }
  .timeline p { font-size: 15px; }
  .progress li { font-size: 12px; padding: 8px 6px; }
}
