@import url("tokens.css?v=8");

/* ============================================================ BASE ==== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  /* Fraunces variable axes: gentle optical softening, no wobble */
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

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

/* Any component that sets `display` outranks the UA rule for [hidden], which
   would otherwise leave the empty-cart notice and the drawer footer visible. */
[hidden] { display: none !important; }
a { color: var(--sea-deep); text-underline-offset: 3px; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--sea-deep);
  outline-offset: 2px;
  border-radius: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 999;
  background: var(--ink); color: var(--cream);
  padding: var(--s-3) var(--s-5); border-radius: var(--radius);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: var(--s-4); }

/* ========================================================== LAYOUT ==== */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--cream-deep); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2, .section--ink h3 { color: var(--cream); }

.section__head { max-width: var(--maxw-text); margin-bottom: var(--s-6); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-meta); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ember-deep); margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor; flex: none;
}
.eyebrow--sea { color: var(--sea-deep); }
.eyebrow--cream { color: var(--gold); }

h2.section__title { font-size: var(--t-h2); }
.lede {
  font-size: var(--t-lede); color: var(--ink-70);
  margin-top: var(--s-4); max-width: var(--maxw-text);
}
.section--ink .lede { color: #C9BCAE; }

/* ========================================================= BUTTONS ==== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--touch); padding: 0 var(--s-5);
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: var(--t-body); line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Ember = order. Never used for anything else. */
.btn--order { background: var(--ember); color: #fff; box-shadow: var(--shadow-1); }
.btn--order:hover { background: var(--ember-deep); box-shadow: var(--shadow-2); }

/* Green = WhatsApp, exclusively. */
.btn--wa { background: var(--wa); color: #06301B; }
.btn--wa:hover { background: #1FBE5B; }

.btn--sea { background: var(--sea); color: #fff; }
.btn--sea:hover { background: var(--sea-deep); }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(36, 26, 18, 0.04); }

.section--ink .btn--ghost { border-color: rgba(251, 246, 238, 0.32); color: var(--cream); }
.section--ink .btn--ghost:hover { border-color: var(--cream); background: rgba(251, 246, 238, 0.08); }

.btn--lg { min-height: 54px; padding: 0 var(--s-6); font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ============================================================= NAV ==== */

.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-3);
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.0625rem; line-height: 1.05; letter-spacing: -0.02em;
}
.brand__tag {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sea-deep);
}

.nav__links { display: none; gap: var(--s-5); align-items: center; }
.nav__links a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  font-size: 0.9375rem; padding: var(--s-2) 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ember); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--touch); height: var(--touch);
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }

.nav__drawer {
  display: none; flex-direction: column; gap: var(--s-1);
  padding: var(--s-3) 0 var(--s-5);
  border-top: 1px solid var(--line);
}
.nav__drawer[data-open="true"] { display: flex; }
.nav__drawer a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: var(--s-3) var(--s-2); border-radius: var(--radius-sm);
  min-height: var(--touch); display: flex; align-items: center;
}
.nav__drawer a:hover { background: rgba(36, 26, 18, 0.05); }
.nav__drawer .btn { margin-top: var(--s-3); }

@media (min-width: 900px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle { display: none; }
  .nav__drawer { display: none !important; }
}

/* ============================================================ HERO ==== */

.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero__inner {
  display: grid; gap: var(--s-6);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}
/* Measure is set in rem, not ch: `ch` here resolves against the 16px body
   font, which would strangle the 4rem+ headline into ragged four-line wraps. */
.hero__copy { max-width: 38rem; }
.hero h1 {
  font-size: var(--t-hero);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  text-wrap: balance;
}
.hero .lede { max-width: 38ch; }
.hero h1 em {
  font-style: normal; color: var(--ember);
  display: block;
}
.hero .lede { margin-top: var(--s-5); }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6);
}
.hero__note {
  margin-top: var(--s-4); font-size: var(--t-small); color: var(--ink-45);
  display: flex; align-items: center; gap: var(--s-2);
}
.hero__note svg { width: 16px; height: 16px; color: var(--sea-deep); flex: none; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; height: clamp(260px, 52vw, 560px); object-fit: cover;
  /* The sub sits low in the frame — bias the crop away from the empty counter. */
  object-position: center 78%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
}
.hero__badge {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  background: var(--paper); border-radius: var(--radius);
  padding: var(--s-3) var(--s-4); box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: var(--s-3);
  max-width: calc(100% - var(--s-6));
}
.hero__badge strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.hero__badge span { font-size: var(--t-meta); color: var(--ink-70); line-height: 1.3; }

/* "78% recommend" is a recommendation rate, not a star rating — so it gets a
   thumbs-up, not stars. Stars would imply a score they have never published. */
.recommend-mark {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-wash); color: var(--gold-deep);
}
.recommend-mark svg { width: 21px; height: 21px; }
.rating-card .recommend-mark { width: 62px; height: 62px; }
.rating-card .recommend-mark svg { width: 30px; height: 30px; }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.22fr 1fr; align-items: center; gap: var(--s-8); }
}

/* ======================================================== SPECIALS ==== */

.specials {
  background: var(--ink); color: var(--cream);
  padding-block: var(--s-6);
}
.specials__inner { display: grid; gap: var(--s-5); }
.specials__label {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-meta); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.specials__list {
  display: grid; gap: var(--s-4); list-style: none; margin: 0; padding: 0;
}
.specials__list li {
  display: flex; align-items: baseline; gap: var(--s-3);
  padding-bottom: var(--s-4); border-bottom: 1px solid rgba(251, 246, 238, 0.14);
}
.specials__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.specials__list h3 { font-size: 1.125rem; }
.specials__list p { font-size: var(--t-small); color: #B9AC9E; }
.specials__price {
  margin-left: auto; font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; color: var(--gold); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 780px) {
  .specials__inner { grid-template-columns: auto 1fr; align-items: center; gap: var(--s-7); }
  .specials__list { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .specials__list li { border-bottom: 0; padding-bottom: 0; flex-direction: column; align-items: flex-start; gap: var(--s-1); }
  .specials__price { margin-left: 0; }
}

/* ====================================================== CATEGORIES ==== */

.cat-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.cat {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--ink);
  text-decoration: none; color: var(--cream);
  aspect-ratio: 4 / 3;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cat img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.72; transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
}
.cat:hover img { transform: scale(1.06); opacity: 0.62; }
.cat__body {
  position: absolute; inset: auto 0 0 0; padding: var(--s-5) var(--s-4) var(--s-4);
  background: linear-gradient(to top, rgba(20, 14, 9, 0.92), rgba(20, 14, 9, 0));
}
.cat__body h3 { font-size: var(--t-h3); }
.cat__body span { font-size: var(--t-meta); color: #C9BCAE; }
.cat__count {
  position: absolute; top: var(--s-3); right: var(--s-3);
  background: rgba(251, 246, 238, 0.92); color: var(--ink);
  font-size: var(--t-meta); font-weight: 700;
  padding: 2px var(--s-2); border-radius: 999px;
}

/* =========================================================== COMBO ==== */

.combo { display: grid; gap: var(--s-6); align-items: center; }
.combo__media img {
  width: 100%; height: clamp(240px, 46vw, 440px); object-fit: cover;
  border-radius: var(--radius-lg);
}
.combo__steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-4); }
.combo__steps li { display: flex; gap: var(--s-4); align-items: flex-start; }
.combo__num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ember-wash); color: var(--ember-deep);
  display: grid; place-items: center; font-weight: 800; font-size: 0.9375rem;
}
.combo__steps h3 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 700; }
.combo__steps p { font-size: var(--t-small); color: var(--ink-70); }
@media (min-width: 900px) { .combo { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

/* ======================================================== CATERING ==== */

.catering-promo {
  display: grid; gap: var(--s-6); align-items: center;
  background: var(--sea); color: #fff;
  border-radius: var(--radius-lg); overflow: hidden;
}
.catering-promo__copy { padding: var(--s-7) var(--s-6); }
.catering-promo h2 { color: #fff; font-size: var(--t-h2); }
.catering-promo p { color: rgba(255, 255, 255, 0.88); margin-top: var(--s-4); max-width: 44ch; }
.catering-promo ul {
  list-style: none; margin: var(--s-5) 0 var(--s-6); padding: 0;
  display: grid; gap: var(--s-2);
}
.catering-promo li { display: flex; gap: var(--s-3); align-items: center; font-size: var(--t-small); }
.catering-promo li svg { width: 18px; height: 18px; flex: none; }
.catering-promo .btn--order { background: #fff; color: var(--ember-deep); }
.catering-promo .btn--order:hover { background: var(--cream); }
.catering-promo__media { align-self: stretch; }
.catering-promo__media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
@media (min-width: 900px) {
  .catering-promo { grid-template-columns: 1.1fr 1fr; }
  .catering-promo__copy { padding: var(--s-8) var(--s-7); }
}

/* ======================================================= LOCATIONS ==== */

.loc-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.loc {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.loc h3 { font-size: var(--t-h3); }
.loc__meta { font-size: var(--t-small); color: var(--ink-70); display: grid; gap: var(--s-1); }
.loc__meta div { display: flex; gap: var(--s-2); align-items: flex-start; }
.loc__meta svg { width: 16px; height: 16px; margin-top: 3px; color: var(--ink-45); flex: none; }
.loc__actions { display: flex; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); flex-wrap: wrap; }
.loc__actions .btn { min-height: var(--touch); padding: 0 var(--s-4); font-size: var(--t-small); }

.hours {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-2); font-size: var(--t-small);
}
.hours li { display: flex; justify-content: space-between; gap: var(--s-4); }
.hours li[data-today="true"] { font-weight: 700; color: var(--ember-deep); }
.hours dt { color: var(--ink-70); }

/* ========================================================= REVIEWS ==== */

.rating-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-6);
  display: grid; gap: var(--s-5); text-align: center; justify-items: center;
}
.rating-card__score {
  font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
  line-height: 1; color: var(--ember);
}
.rating-card .stars { color: var(--gold); display: flex; gap: 3px; }
.rating-card .stars svg { width: 22px; height: 22px; }
.rating-card__source { font-size: var(--t-small); color: var(--ink-70); }

.notice {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--gold-wash); padding: var(--s-5);
  display: flex; gap: var(--s-4); align-items: flex-start;
  font-size: var(--t-small); color: var(--ink-70);
}
.notice svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; margin-top: 2px; }
.notice strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* ========================================================== FOOTER ==== */

.footer { background: var(--ink); color: #C9BCAE; padding-block: var(--s-8) var(--s-6); }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s-6); }
.footer h4 {
  font-family: var(--font-body); font-size: var(--t-meta); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--s-3);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-small); }
.footer__bar {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(251, 246, 238, 0.14);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between;
  font-size: var(--t-meta);
}
@media (min-width: 780px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* =========================================================== MENU ==== */

.menu-layout { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 960px) { .menu-layout { grid-template-columns: 220px 1fr; gap: var(--s-8); } }

.cat-rail {
  position: sticky; top: 68px; z-index: 20;
  background: var(--cream); margin-inline: calc(var(--gutter) * -1);
  padding: var(--s-3) var(--gutter);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-rail ul { display: flex; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.cat-rail a {
  display: inline-flex; align-items: center; min-height: var(--touch);
  padding: 0 var(--s-4); border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: var(--t-small);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.cat-rail a:hover { border-color: var(--ink); }
.cat-rail a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

@media (min-width: 960px) {
  .cat-rail {
    position: sticky; top: 92px; margin-inline: 0; padding: 0;
    border-bottom: 0; overflow: visible;
  }
  .cat-rail ul { flex-direction: column; gap: var(--s-1); }
  .cat-rail a { width: 100%; border: 0; border-left: 3px solid transparent; border-radius: 0; padding-left: var(--s-4); }
  .cat-rail a:hover { background: var(--cream-deep); border-left-color: var(--line-strong); }
  .cat-rail a[aria-current="true"] { background: transparent; color: var(--ember-deep); border-left-color: var(--ember); }
}

.menu-group { scroll-margin-top: 130px; }
.menu-group + .menu-group { margin-top: var(--s-8); }
.menu-group__head {
  display: flex; align-items: baseline; gap: var(--s-4);
  padding-bottom: var(--s-3); margin-bottom: var(--s-5);
  border-bottom: 2px solid var(--ink);
}
.menu-group__head h2 { font-size: var(--t-h2); }
.menu-group__head p { font-size: var(--t-small); color: var(--ink-45); margin-left: auto; text-align: right; }

.items { display: grid; gap: var(--s-3); }
.item {
  display: grid; grid-template-columns: 76px 1fr; gap: var(--s-4);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-4);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.item__img {
  width: 76px; height: 76px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--cream-deep);
}
.item__body { display: grid; gap: var(--s-2); align-content: start; }
.item__top { display: flex; align-items: baseline; gap: var(--s-3); }
.item__name { font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; }
.item__price {
  margin-left: auto; font-weight: 700; color: var(--ember-deep);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.item__desc { font-size: var(--t-small); color: var(--ink-70); }
.item__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px var(--s-2); border-radius: var(--radius-sm);
  background: var(--cream-deep); color: var(--ink-70);
}
.tag--fresh { background: var(--sea-wash); color: var(--sea-deep); }
.tag--hot   { background: var(--ember-wash); color: var(--ember-deep); }
.tag--star  { background: var(--gold-wash); color: var(--gold-deep); }

.item__foot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-1); }
.item__opts {
  min-height: var(--touch); padding: 0 var(--s-3); border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: var(--t-small); max-width: 190px;
}
.item .btn { min-height: var(--touch); padding: 0 var(--s-4); font-size: var(--t-small); margin-left: auto; }

@media (min-width: 560px) {
  .item { grid-template-columns: 104px 1fr; gap: var(--s-5); }
  .item__img { width: 104px; height: 104px; }
}

/* ------------------------------------------------- placeholder price */

.is-placeholder {
  border-bottom: 1px dotted currentColor; cursor: help;
}
body[data-demo="off"] .is-placeholder { border-bottom: 0; cursor: auto; }

/* ====================================================== ORDER BAR ==== */

.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  background: var(--ink); color: var(--cream);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: var(--s-4);
  box-shadow: 0 -8px 32px rgba(36, 26, 18, 0.28);
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-back);
}
.order-bar[data-open="true"] { transform: translateY(0); }
.order-bar__count {
  font-size: var(--t-meta); color: var(--gold);
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}
.order-bar__total {
  font-family: var(--font-display); font-size: 1.375rem; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.order-bar .btn { margin-left: auto; }

/* ==================================================== ORDER DRAWER ==== */

.scrim {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(20, 14, 9, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.scrim[data-open="true"] { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: calc(var(--z-drawer) + 1);
  width: min(100%, 460px); background: var(--cream);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  box-shadow: var(--shadow-3);
}
.drawer[data-open="true"] { transform: translateX(0); }

.drawer__head {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--line); flex: none;
}
.drawer__head h2 { font-size: 1.5rem; margin-right: auto; }
.icon-btn {
  width: var(--touch); height: var(--touch); flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.icon-btn:hover { background: rgba(36, 26, 18, 0.05); }
.icon-btn svg { width: 20px; height: 20px; }

/* The form spans body and footer: order details scroll with the items, and
   only the total and the send button stay pinned. Keeping the whole form in
   the footer squeezed the item list to nothing on short screens. */
.drawer__form { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.drawer__body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--s-5); display: grid; gap: var(--s-5); align-content: start; }
.drawer__details { display: grid; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.drawer__details h3 { font-family: var(--font-body); font-size: var(--t-small); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); }
.drawer__foot {
  flex: none; padding: var(--s-5) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--paper);
  display: grid; gap: var(--s-3);
}

.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.cart-line {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-2) var(--s-3);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
}
.cart-line__name { font-weight: 700; font-size: var(--t-small); }
.cart-line__opt { font-size: var(--t-meta); color: var(--ink-45); grid-column: 1; }
.cart-line__price { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--t-small); }
.cart-line__controls { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-2); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button {
  width: var(--touch); height: var(--touch); display: grid; place-items: center;
  background: var(--paper); border: 0; cursor: pointer; color: var(--ink);
}
.stepper button:hover { background: var(--cream-deep); }
.stepper button svg { width: 14px; height: 14px; }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.link-danger {
  display: inline-flex; align-items: center;
  min-height: var(--touch); padding: 0 var(--s-3); cursor: pointer;
  background: none; border: 0;
  color: var(--danger); font-size: var(--t-meta); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; margin-left: auto;
}

.totals { display: grid; gap: var(--s-2); font-size: var(--t-small); }
.totals div { display: flex; justify-content: space-between; gap: var(--s-4); }
.totals .totals__grand {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--ember-deep);
  padding-top: var(--s-3); border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.empty-cart { text-align: center; padding: var(--s-8) var(--s-4); color: var(--ink-45); display: grid; gap: var(--s-4); justify-items: center; }
.empty-cart svg { width: 44px; height: 44px; color: var(--line-strong); }

/* =========================================================== FORM ==== */

.field { display: grid; gap: var(--s-2); }
.field > label { font-weight: 700; font-size: var(--t-small); }
.field .req { color: var(--ember-deep); }
.field .hint { font-size: var(--t-meta); color: var(--ink-45); }

.field input, .field select, .field textarea {
  width: 100%; min-height: var(--touch);
  padding: var(--s-3); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sea-deep); box-shadow: 0 0 0 3px var(--sea-wash); outline: none;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--danger); }
.field[data-invalid="true"] input:focus { box-shadow: 0 0 0 3px #FBE4E1; }

.field__error {
  display: none; font-size: var(--t-meta); font-weight: 700; color: var(--danger);
  align-items: center; gap: var(--s-2);
}
.field[data-invalid="true"] .field__error { display: flex; }
.field__error svg { width: 14px; height: 14px; flex: none; }

.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}

.chip-set { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: var(--touch);
  padding: 0 var(--s-4); border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: var(--t-small); font-weight: 600;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip input:checked + span { background: var(--sea); border-color: var(--sea); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--sea-deep); outline-offset: 2px; }

.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-6);
}
@media (min-width: 780px) { .form-card { padding: var(--s-7); } }

.form-status {
  display: none; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4); border-radius: var(--radius); font-size: var(--t-small);
}
.form-status[data-show="true"] { display: flex; }
.form-status--ok { background: var(--sea-wash); color: var(--sea-deep); }
.form-status--err { background: #FBE4E1; color: var(--danger); }
.form-status svg { width: 20px; height: 20px; flex: none; }

/* =========================================================== DEMO ==== */

.demo-banner {
  background: var(--gold-wash); border-bottom: 1px solid #E6C88A;
  color: var(--ink); font-size: var(--t-meta); line-height: 1.45;
}
.demo-banner__inner {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding-block: var(--s-3);
}
.demo-banner svg { width: 18px; height: 18px; color: var(--gold-deep); flex: none; margin-top: 1px; }
.demo-banner strong { font-weight: 800; }
.demo-banner button {
  margin-left: auto; flex: none; background: transparent; border: 0;
  text-decoration: underline; cursor: pointer; font-size: var(--t-meta);
  font-weight: 700; color: var(--ink-70); padding: var(--s-1) var(--s-2);
}
body[data-demo="off"] .demo-banner { display: none; }

/* ========================================================== TOAST ==== */

.toast {
  position: fixed; left: 50%; bottom: 104px; z-index: calc(var(--z-bar) + 1);
  transform: translate(-50%, 12px);
  background: var(--ink); color: var(--cream);
  padding: var(--s-3) var(--s-5); border-radius: 999px;
  font-size: var(--t-small); font-weight: 600;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; pointer-events: none;
  max-width: calc(100vw - 2rem); text-align: center;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-back), visibility var(--dur);
}
.toast[data-show="true"] {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}

/* ======================================================== UTILITIES ==== */

.stack-6 { display: grid; gap: var(--s-6); }
.mt-6 { margin-top: var(--s-6); }
.has-bar { padding-bottom: 88px; }

/* Scroll-reveal — opacity/transform only */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
