/* ==========================================================================
   ครัวตามสั่ง — Design system
   Palette: deep charcoal + warm gold, light theme = warm ivory
   ========================================================================== */

:root {
  /* brand */
  --gold-300: #F0DCA9;
  --gold-400: #E2C27E;
  --gold-500: #C9A356;
  --gold-600: #A2803A;
  --gold-700: #7A5F27;
  --ember-500: #C2532C;
  --ember-600: #9E4021;

  /* dark surfaces (default) */
  --bg: #0B0A08;
  --bg-alt: #100E0B;
  --surface: #16130F;
  --surface-2: #1E1A14;
  --surface-3: #262019;
  --line: rgba(226, 199, 140, 0.16);
  --line-strong: rgba(226, 199, 140, 0.30);
  --text: #F5F0E6;
  --text-soft: #CFC6B4;
  --muted: #9C9384;
  --accent: var(--gold-400);
  --accent-strong: var(--gold-300);
  --on-accent: #1A1206;
  --scrim: rgba(8, 7, 5, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .8);
  --shadow-lg: 0 32px 64px -32px rgba(0, 0, 0, .9);

  /* type */
  --font-display: "Noto Serif Thai", "Times New Roman", serif;
  --font-body: "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* metrics */
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="light"] {
  --bg: #FAF6EE;
  --bg-alt: #F3EDE1;
  --surface: #FFFFFF;
  --surface-2: #FBF7EF;
  --surface-3: #F1E9D9;
  --line: rgba(38, 30, 18, 0.12);
  --line-strong: rgba(38, 30, 18, 0.24);
  --text: #1E1913;
  --text-soft: #4A4238;
  --muted: #6E6559;
  --accent: var(--gold-600);
  --accent-strong: var(--gold-700);
  --on-accent: #FFFDF7;
  --scrim: rgba(16, 13, 9, 0.55);
  --shadow-sm: 0 1px 2px rgba(60, 48, 26, .10);
  --shadow-md: 0 14px 28px -16px rgba(60, 48, 26, .28);
  --shadow-lg: 0 30px 60px -30px rgba(60, 48, 26, .34);
}

/* ---------- reset ---------- */
*, *::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(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-500); color: #14100A; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 68px); }
.section--alt { background: var(--bg-alt); }
.grid { display: grid; gap: 24px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- type helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.display-1 { font-size: clamp(2.35rem, 6vw, 4.1rem); line-height: 1.12; }
.display-2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
.display-3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--text-soft); }
.muted { color: var(--muted); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; }
.section-head--center .kicker::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: transparent; color: inherit;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent);
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- announcement + header ---------- */
.topbar {
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: .8rem; color: var(--text-soft);
}
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 38px; flex-wrap: wrap; text-align: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.topbar__sep { color: var(--line-strong); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 96%, transparent); }
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; color: var(--accent); }
.brand__name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; line-height: 1.1; }
.brand__sub { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 500; color: var(--text-soft);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px; background: currentColor;
}
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; color: var(--text-soft);
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
.nav-toggle { display: none; }

/* mobile drawer */
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-left: 1px solid var(--line);
    padding: calc(var(--header-h) + 22px) 20px 28px;
    transform: translateX(100%); transition: transform .32s var(--ease);
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: none; }
  .nav__link { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta { margin-top: 20px; }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 55;
  }
  .nav-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }
}
@media (min-width: 901px) { .nav__cta { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 92px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: saturate(.85); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 22%, rgba(226,194,126,.16), transparent 62%),
    linear-gradient(105deg, var(--bg) 6%, color-mix(in srgb, var(--bg) 78%, transparent) 52%, color-mix(in srgb, var(--bg) 92%, transparent) 100%);
}
:root[data-theme="light"] .hero__bg img { opacity: .22; }
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat__label { font-size: .82rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: inherit; pointer-events: none; }
.hero__outline {
  position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); z-index: 0;
}
.hero__frame { z-index: 1; }
.floating-card {
  position: absolute; left: -8px; bottom: 26px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 17px; box-shadow: var(--shadow-md);
  max-width: 280px;
}
.floating-card svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.floating-card strong { display: block; font-size: .92rem; }
.floating-card span { font-size: .78rem; color: var(--muted); }
.rating-chip {
  position: absolute; right: -10px; top: 22px; z-index: 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; box-shadow: var(--shadow-md); text-align: center;
}
.rating-chip__stars { display: flex; gap: 2px; color: var(--gold-400); justify-content: center; }
.rating-chip__stars svg { width: 13px; height: 13px; }
.rating-chip strong { font-size: .95rem; }
.rating-chip span { display: block; font-size: .72rem; color: var(--muted); }
@media (max-width: 600px) {
  .floating-card { left: 8px; bottom: 12px; padding: 10px 13px; }
  .rating-chip { right: 8px; top: 12px; }
  .hero__outline { display: none; }
}

/* ---------- page header (inner pages) ---------- */
.page-head { position: relative; padding-block: clamp(52px, 7vw, 92px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head__bg { position: absolute; inset: 0; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.page-head__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), var(--bg)); }
.page-head__inner { position: relative; max-width: 720px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 13px; height: 13px; }

/* ---------- feature strip ---------- */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--surface); padding: 28px 24px; }
.feature__icon { width: 38px; height: 38px; color: var(--accent); margin-bottom: 16px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: .9rem; color: var(--muted); }

/* ---------- dish cards ---------- */
.dish-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.dish {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.dish:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dish__media { position: relative; overflow: hidden; }
.dish__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.dish:hover .dish__media img { transform: scale(1.045); }
.dish__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: color-mix(in srgb, #0B0A08 74%, transparent); color: #F5F0E6;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.badge svg { width: 12px; height: 12px; }
.badge--gold { background: var(--gold-400); color: #1A1206; border-color: transparent; }
.badge--veg { color: #BFE3B4; }
.dish__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.dish__head { display: flex; align-items: baseline; gap: 12px; }
.dish__name { font-size: 1.08rem; flex: 1; }
.dish__en { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.dish__price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.dish__desc { font-size: .88rem; color: var(--muted); flex: 1; }
.dish__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.spice { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.spice__dots { display: inline-flex; gap: 3px; }
.spice__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.spice__dot.is-on { background: var(--ember-500); }

/* ---------- story ---------- */
.story { display: grid; gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; } }
.story__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story__media figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.story__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.story__media figure:first-child { margin-top: 34px; }
.story__text p { max-width: 60ch; }
.quote {
  margin: 26px 0 0; padding: 20px 24px; border-left: 2px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--text-soft);
}
.quote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-size: .82rem; font-style: normal; color: var(--muted); }
.check-list { display: grid; gap: 12px; margin-top: 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--text-soft); }
.check-list svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- quote band ---------- */
.band { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 132px); text-align: center; }
.band__bg { position: absolute; inset: 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.band__inner { position: relative; max-width: 760px; margin-inline: auto; }
.band blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.25rem); line-height: 1.4; color: #F7F2E6; }
.band__meta { margin-top: 20px; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }

/* ---------- testimonials / steps ---------- */
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.testimonial__stars { display: flex; gap: 3px; color: var(--gold-400); }
.testimonial__stars svg { width: 15px; height: 15px; }
.testimonial p { font-size: .95rem; color: var(--text-soft); flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 1rem; border: 1px solid var(--line); }
.testimonial__who strong { display: block; font-size: .9rem; }
.testimonial__who span { font-size: .78rem; color: var(--muted); }

.steps { counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent);
  display: block; margin-bottom: 12px; line-height: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 130% at 12% 8%, color-mix(in srgb, var(--gold-500) 16%, transparent), transparent 60%),
    var(--surface);
  padding: clamp(34px, 5vw, 60px); text-align: center;
}
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 54ch; margin-inline: auto; color: var(--text-soft); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- menu toolbar ---------- */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .toolbar { background: var(--bg); } }
.toolbar__inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.search { position: relative; flex: 1 1 260px; min-width: 0; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; padding: 12px 40px 12px 42px; font: inherit; font-size: .93rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .18s var(--ease);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); outline: none; }
.search__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: transparent; border-radius: var(--radius-sm); cursor: pointer; color: var(--muted); display: none; place-items: center; }
.search__clear svg { position: static; transform: none; width: 15px; height: 15px; }
.search__clear:hover { color: var(--text); background: var(--surface-2); }
.search.has-value .search__clear { display: grid; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--text-soft);
  padding: 9px 16px; border-radius: 999px; font-size: .87rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; font-size: .88rem; color: var(--muted); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; }
.legend__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

.empty-state { text-align: center; padding: clamp(48px, 8vw, 90px) 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state svg { width: 44px; height: 44px; color: var(--muted); margin-inline: auto; margin-bottom: 18px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
[hidden] { display: none !important; }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery__item {
  position: relative; border: 0; padding: 0; background: var(--surface-2); cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2;
  transition: transform .25s var(--ease);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none;
}
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 14px; text-align: left;
  background: linear-gradient(transparent, rgba(6,5,4,.86));
  color: #F5F0E6; font-size: .86rem; font-weight: 500;
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(6, 5, 4, .95); backdrop-filter: blur(6px);
  padding: clamp(16px, 4vw, 44px);
}
.lightbox[data-open="true"] { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #E9E2D3; }
.lightbox__count { font-size: .85rem; letter-spacing: .1em; color: var(--gold-300); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; position: relative; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__cap { text-align: center; color: #D8D0C0; font-size: .92rem; min-height: 1.7em; }
.lightbox__nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.lightbox__nav .icon-btn { pointer-events: auto; width: 46px; height: 46px; background: rgba(20,17,12,.7); border-color: rgba(255,255,255,.18); color: #F0EADC; }
.lightbox__nav .icon-btn:hover { background: rgba(30,26,18,.9); border-color: var(--gold-400); color: var(--gold-300); }
.lightbox .icon-btn { color: #E9E2D3; border-color: rgba(255,255,255,.2); }

/* ---------- events ---------- */
.event { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 700px) { .event { grid-template-columns: 96px 1fr auto; align-items: center; } }
.event__date { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 8px; background: var(--surface-2); }
.event__date strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--accent); }
.event__date span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.event h3 { font-size: 1.1rem; margin-bottom: 6px; }
.event p { font-size: .9rem; color: var(--muted); }
.event__tag { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---------- contact ---------- */
.contact-layout { display: grid; gap: clamp(32px, 4vw, 52px); }
@media (min-width: 940px) { .contact-layout { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 38px); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 620px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: .87rem; font-weight: 600; }
.field .req { color: var(--ember-500); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .93rem;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C9384' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 17px; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field__hint { font-size: .78rem; color: var(--muted); }
.field__error { display: none; font-size: .8rem; color: var(--ember-500); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--ember-500); }
.field.is-invalid .field__error { display: block; }
.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: .87rem; color: var(--text-soft); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--gold-500); }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-status { display: none; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); font-size: .9rem; }
.form-status[data-state="success"] { display: flex; background: color-mix(in srgb, var(--gold-500) 14%, var(--surface-2)); border: 1px solid var(--line-strong); }
.form-status[data-state="error"] { display: flex; background: color-mix(in srgb, var(--ember-500) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--ember-500) 40%, transparent); }
.form-status svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

.info-list { display: grid; gap: 2px; }
.info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.info-item strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.info-item p, .info-item a { font-size: .89rem; color: var(--muted); }
.info-item a:hover { color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; font-size: .89rem; }
.hours th { text-align: left; font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.hours td { padding: 9px 0; border-top: 1px solid var(--line); color: var(--text-soft); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--accent); font-weight: 600; }
.map-frame { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: clamp(280px, 34vw, 420px); border: 0; filter: saturate(.9); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: .96rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--accent); flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; font-size: .92rem; color: var(--muted); }

/* ---------- credits table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--surface-2); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
table.data td { color: var(--text-soft); }
table.data a { color: var(--accent); }
table.data a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 76px); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; font-size: .91rem; }
.footer-links a { color: var(--text-soft); }
.footer-links a:hover { color: var(--accent); }
.footer__about { font-size: .9rem; color: var(--muted); margin-top: 16px; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px); padding-block: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--muted);
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Admin (/admin) — หน้าจัดการเมนูหลังร้าน
   ========================================================================== */
.admin-lock {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(60% 60% at 20% 0%, color-mix(in srgb, var(--gold-500) 10%, transparent), transparent 60%),
    var(--bg);
}
.admin-lock__card {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 40px); box-shadow: var(--shadow-lg); text-align: center;
}
.admin-lock__icon { width: 44px; height: 44px; color: var(--accent); margin: 0 auto 18px; }
.admin-lock__card h1 { font-size: 1.3rem; margin-bottom: 8px; }
.admin-lock__card p { font-size: .88rem; color: var(--muted); margin-bottom: 26px; }
.pin-boxes { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.pin-boxes input {
  width: 44px; height: 54px; text-align: center; font-size: 1.4rem; font-weight: 700;
  font-family: var(--font-display); color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); caret-color: var(--accent);
}
.pin-boxes input:focus { border-color: var(--accent); outline: none; background: var(--surface); }
.admin-lock__error {
  display: none; align-items: center; gap: 8px; justify-content: center;
  font-size: .84rem; color: var(--ember-500); margin-bottom: 14px;
}
.admin-lock__error.is-shown { display: flex; }
.admin-lock__error svg { width: 16px; height: 16px; flex: none; }
.admin-lock__note { margin-top: 22px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

.admin-shell { display: none; min-height: 100vh; flex-direction: column; }
.admin-shell.is-active { display: flex; }
.admin-topbar {
  position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter);
}
.admin-topbar .brand { margin-right: auto; }
.admin-topbar__badge {
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px;
}
.admin-main { flex: 1; padding: clamp(20px, 3vw, 36px) var(--gutter) 60px; max-width: 1180px; margin-inline: auto; width: 100%; }
.admin-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.admin-head h1 { font-size: 1.5rem; }
.admin-head p { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.admin-toolbar .search { flex: 1 1 240px; }
.admin-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 18px; min-width: 120px;
}
.admin-stat strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); }
.admin-stat span { font-size: .78rem; color: var(--muted); }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.admin-table { width: 100%; border-collapse: collapse; min-width: 780px; font-size: .89rem; }
table.admin-table th, table.admin-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.admin-table th { background: var(--surface-2); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
table.admin-table tr:last-child td { border-bottom: 0; }
table.admin-table tr:hover td { background: var(--surface-2); }
.admin-thumb { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--line); flex: none; }
.admin-name strong { display: block; font-size: .92rem; }
.admin-name span { font-size: .76rem; color: var(--muted); }
.admin-row-actions { display: flex; gap: 6px; }
.admin-row-actions button {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: transparent; color: var(--text-soft); cursor: pointer;
}
.admin-row-actions button:hover { border-color: var(--accent); color: var(--accent); }
.admin-row-actions button svg { width: 15px; height: 15px; }
.admin-row-actions .is-danger:hover { border-color: var(--ember-500); color: var(--ember-500); }
.admin-cat-pill {
  font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-soft); white-space: nowrap;
}

.modal-scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(6,5,4,.72); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto;
}
.modal-scrim.is-open { display: flex; }
.modal {
  width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 32px);
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal__head h2 { font-size: 1.2rem; }
.spice-picker { display: flex; gap: 8px; }
.spice-picker button {
  flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-soft); font-size: .82rem; cursor: pointer;
}
.spice-picker button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 0);
  z-index: 100; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 13px 18px; box-shadow: var(--shadow-lg); font-size: .88rem; opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, -6px); }
.toast svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.toast.is-error svg { color: var(--ember-500); }
