/* ============================================================
   NGON — Vietnamese Kitchen, Mae Rim, Chiang Mai
   Shared stylesheet — "Vietnamese Heritage Luxury" design system:
   deep burgundy, dark natural wood, antique gold, warm cream,
   with small notes of forest green
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap');

@font-face {
  font-family: 'MN Maha Heng';
  src: url('fonts/mn-maha-heng-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MN Maha Heng';
  src: url('fonts/mn-maha-heng-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MN Maha Heng';
  src: url('fonts/mn-maha-heng-italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'MN Maha Heng';
  src: url('fonts/mn-maha-heng-bolditalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---- reds ---- */
  --red-deep: #6E0F0F;
  --red-heritage: #851414;
  --red-primary: #A71916;
  --red-accent: #C3261D;

  /* ---- terracotta (botanical accent) ---- */
  --terracotta-deep: #6E3A24;
  --terracotta-warm: #9C5B3E;
  --terracotta-light: #C98A63;

  /* ---- wood / brown ---- */
  --wood-black: #1B100A;
  --wood-dark: #2A170E;
  --wood-medium: #3B2014;
  --wood-warm: #5A321E;

  /* ---- green ---- */
  --green-deep: #123D27;
  --green-primary: #1D5233;
  --green-leaf: #3E6B42;
  --green-muted: #69864B;

  /* ---- gold / brass ---- */
  --gold-dark: #B78A45;
  --gold-primary: #C9A05C;
  --gold-light: #DFC38B;

  /* ---- cream / neutral ---- */
  --cream: #F4E8D2;
  --cream-soft: #EAD8B9;
  --beige: #CDBA99;

  /* ---- text ---- */
  --text-light: #F4E8D2;
  --text-muted: #CDBA99;
  --text-dark: #28170F;

  --border-gold: rgba(183,138,69,0.45);
  --border-gold-soft: rgba(183,138,69,0.28);
  --border-cream-soft: rgba(244,232,210,0.15);

  /* ---- type ---- */
  --font-display: 'MN Maha Heng', ui-sans-serif, sans-serif;
  --font-body: 'MN Maha Heng', ui-sans-serif, system-ui, sans-serif;
  --font-elegant: 'Cormorant Garamond', 'Times New Roman', serif;

  /* ---- rhythm ---- */
  --header-h: 84px;
  --edge: clamp(1.5rem, 4vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
section { position: relative; }

::selection { background: var(--gold-primary); color: var(--wood-black); }

/* ---------- texture overlays ---------- */
/* light film grain — used on dark (wood/red) sections */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* handmade-paper grain — used on cream sections, kept very subtle for readability */
.about::before,
.menu-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-primary);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-dark);
}

.divider {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: clamp(2.5rem, 6vw, 4rem) var(--edge);
  color: var(--gold-dark);
}
.divider svg { width: 160px; height: 32px; }
.divider--on-dark { color: var(--gold-light); }
.divider--category { padding: 1rem var(--edge); }

/* thin wood-grain accent strip — used as a rule/border, never a full background */
.wood-grain {
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.18) 0px, transparent 1.5px, transparent 3px, rgba(0,0,0,0.06) 4.5px),
    linear-gradient(90deg, var(--wood-black), var(--wood-warm) 45%, var(--gold-dark) 70%, var(--wood-medium));
}

/* ---------- buttons: refined, architectural, low radius ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 2.1em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--red-primary);
  border-radius: 3px;
  background: var(--red-primary);
  color: var(--text-light);
  overflow: hidden;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: var(--red-accent); border-color: var(--red-accent); }
.btn:disabled {
  background: rgba(40,23,15,0.1);
  border-color: rgba(40,23,15,0.1);
  color: rgba(40,23,15,0.35);
  cursor: not-allowed;
}
.btn:disabled:hover { background: rgba(40,23,15,0.1); border-color: rgba(40,23,15,0.1); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
}
.btn--ghost:hover { background: var(--gold-dark); color: var(--wood-black); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 220;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--edge);
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.35s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(110, 15, 15, 0.94);
  backdrop-filter: blur(10px);
  height: 68px;
  box-shadow: 0 1px 0 var(--border-gold-soft);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--text-light);
  position: absolute;
  top: 50%;
  left: var(--edge);
  transform: translateY(-50%);
  opacity: 1;
  transition: opacity 0.5s var(--ease) 0.35s;
}
.site-header.is-scrolled .brand,
.site-header.is-solid .brand {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease) 0s;
}
.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.brand .brand-sub {
  margin-top: 4px;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.brand-logo,
.brand-full-logo {
  height: 68px;
  width: auto;
  display: block;
  transition: height 0.35s var(--ease);
}
.site-header.is-scrolled .brand-logo,
.site-header.is-solid .brand-logo,
.site-header.is-scrolled .brand-full-logo,
.site-header.is-solid .brand-full-logo {
  height: 54px;
}

/* Header brand lockup: the full logo stays put on the left and simply
   fades away (no movement) once scrolled; the circle-only mark fades
   in on its own at the header's center a beat later, and reverses the
   same way scrolling back up. */
.brand-circle-only {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease) 0s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.site-header.is-scrolled .brand-circle-only,
.site-header.is-solid .brand-circle-only {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s var(--ease) 0.35s;
}
.brand-circle-only img {
  height: 48px;
  width: auto;
  display: block;
}

/* Language toggle: hidden while the full logo occupies the left side,
   fades in there once the header is scrolled (same beat as the
   circle-only mark fading in at center). */
.lang-toggle {
  position: absolute;
  top: 50%;
  left: var(--edge);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease) 0s;
}
.site-header.is-scrolled .lang-toggle,
.site-header.is-solid .lang-toggle {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s var(--ease) 0.35s;
}
.lang-toggle button {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-toggle button.is-active {
  background: var(--gold-primary);
  color: var(--wood-black);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2.6rem;
  margin-left: auto;
}
.nav-desktop a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4em 0;
  transition: color 0.3s var(--ease);
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: right 0.35s var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a.is-active { color: var(--text-light); }
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { right: 0; }

.nav-desktop .btn { padding: 0.7em 1.6em; font-size: 0.74rem; }

.nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 210;
  margin-left: auto;
}
.nav-toggle .bar {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle .bar::before { top: -8px; }
.nav-toggle .bar::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 6rem 1.5rem 2rem;
  overflow-y: auto;
  background: var(--red-deep);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--text-light);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav-mobile.is-open a { opacity: 1; transform: translateY(0); }
.nav-mobile.is-open a:nth-child(1),
.nav-mobile.is-open .nav-mobile-group:nth-child(1) { transition-delay: 0.08s; }
.nav-mobile.is-open a:nth-child(2),
.nav-mobile.is-open .nav-mobile-group:nth-child(2) { transition-delay: 0.15s; }
.nav-mobile.is-open a:nth-child(3),
.nav-mobile.is-open .nav-mobile-group:nth-child(3) { transition-delay: 0.22s; }
.nav-mobile.is-open a:nth-child(4),
.nav-mobile.is-open .nav-mobile-group:nth-child(4) { transition-delay: 0.29s; }
.nav-mobile.is-open a:nth-child(5),
.nav-mobile.is-open .nav-mobile-group:nth-child(5) { transition-delay: 0.36s; }

.nav-mobile-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav-mobile.is-open .nav-mobile-group { opacity: 1; transform: translateY(0); }
.nav-mobile-parent {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--text-light);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-mobile-parent .caret {
  font-size: 0.5em;
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.nav-mobile-group.is-expanded .nav-mobile-parent .caret { transform: rotate(180deg); }
.nav-mobile-submenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin-top 0.4s var(--ease);
}
.nav-mobile-group.is-expanded .nav-mobile-submenu {
  max-height: 20rem;
  opacity: 1;
  margin-top: 1.3rem;
}
.nav-mobile-submenu a {
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  color: var(--gold-light);
  opacity: 1;
  transform: none;
  transition: color 0.25s var(--ease);
}
.nav-mobile-submenu a:hover { color: var(--text-light); }

/* ============================================================
   HERO — dark natural wood
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) var(--edge) 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 15%, rgba(201,160,92,0.14), transparent 60%),
    linear-gradient(180deg, var(--wood-medium) 0%, var(--wood-black) 100%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border-gold-soft);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { justify-content: center; margin-bottom: 1.6rem; opacity: 0; animation: rise 0.7s var(--ease) 0.1s forwards; }
.hero .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold-dark); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.2rem, 15vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--text-light);
  opacity: 0;
  animation: rise 0.7s var(--ease) 0.2s forwards;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-primary);
}
.hero--full .hero-title {
  font-family: var(--font-elegant);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  max-width: 16ch;
  margin: 0 auto;
}
.hero-tagline {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: rise 0.6s var(--ease) 0.35s forwards;
}
.hero-actions {
  margin-top: 2.8rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.6s var(--ease) 0.48s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* small hero variant (menu page) */
.hero--small {
  min-height: 52vh;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
}
.hero--small .hero-title { font-size: clamp(3rem, 9vw, 5.5rem); }

/* ============================================================
   MENU PROMO STRIP (index page) — deep red, the bold moment
   ============================================================ */
.promo {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7rem) var(--edge);
  background: var(--red-primary);
  background-image: linear-gradient(135deg, var(--red-deep), var(--red-heritage) 50%, var(--red-primary));
  text-align: center;
  overflow: hidden;
}
.promo::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.promo-content { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.promo .eyebrow { justify-content: center; color: var(--gold-light); }
.promo .eyebrow::before { background: var(--gold-light); }
.promo h2 {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-light);
  line-height: 1.15;
}
.promo-actions { margin-top: 2.2rem; }
.promo .btn { background: transparent; border-color: var(--cream); color: var(--cream); }
.promo .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--red-deep); }

/* ============================================================
   FOOTER — dark natural wood
   ============================================================ */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--wood-dark), var(--wood-black));
  color: var(--text-muted);
  padding: clamp(4rem, 9vw, 6rem) var(--edge) 2rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.18) 0px, transparent 1.5px, transparent 3px, rgba(0,0,0,0.06) 4.5px),
    linear-gradient(90deg, var(--wood-black), var(--gold-dark) 45%, var(--wood-warm) 70%, var(--wood-black));
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-gold-soft);
}
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-light);
}
.footer-brand .brand-logo {
  height: 64px;
  width: auto;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 32ch;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--green-leaf); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.76rem;
  color: rgba(244,232,210,0.4);
  letter-spacing: 0.02em;
}

/* ============================================================
   MENU PAGE
   ============================================================ */
.category-nav-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(244, 232, 210, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-gold-soft);
  box-shadow: 0 10px 18px -16px rgba(27,16,10,0.3);
}
.category-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.85rem var(--edge);
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  font-family: var(--font-display);
  flex: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood-warm);
  white-space: nowrap;
  padding: 0.65em 1.2em;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.category-nav a:hover { color: var(--text-dark); }
.category-nav a.is-active {
  background: var(--red-primary);
  color: var(--cream);
}

.menu-section {
  padding: clamp(4rem, 8vw, 5.5rem) var(--edge) 1rem;
  max-width: 1280px;
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-h) + 70px);
}
.menu-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  margin-bottom: 2.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-gold-soft);
}
.menu-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
}
.menu-section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--text-dark);
}
.title-flourish {
  flex: none;
  display: flex;
  color: var(--gold-dark);
}
.title-flourish svg {
  width: clamp(32px, 6vw, 60px);
  height: 24px;
}
.title-flourish--right {
  transform: scaleX(-1);
}
.menu-section-head .native {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--red-primary);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.menu-section-head .native::before {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--border-gold);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 3vw, 2.4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.menu-subgroup-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-align: left;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}
.menu-subgroup-title::before {
  content: '';
  flex: none;
  width: 4px;
  align-self: stretch;
  min-height: 1.4em;
  background: var(--red-primary);
  border-radius: 1px;
}
.menu-subgroup-end {
  width: 28px;
  height: 2px;
  background: var(--red-primary);
  border-radius: 1px;
  margin: -1.4rem auto clamp(1.4rem, 3vw, 2rem);
}

.dish {
  display: flex;
  flex-direction: column;
}
.dish--full {
  grid-column: 1 / -1;
}
.dish--tall {
  grid-row: span 2;
}
/* Fallback sizing (used before JS measures and pins an explicit height,
   and if a tall dish has no valid pair of "half" dishes to match) — the
   shape rules below (square/horizontal/vertical) apply an aspect-ratio
   as normal. JS in menu-render.js overrides with an explicit px height
   when a valid pair exists, since percentage/flex-based stretching
   inside an auto-sized grid row miscomputes the section's own height
   and causes content after it to overlap. */
.dish--square .dish-photo { aspect-ratio: 1 / 1; }
.dish--horizontal .dish-photo { aspect-ratio: 16 / 9; }
.dish--vertical .dish-photo { aspect-ratio: 4 / 5; }
.dish-photo {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--cream-soft), var(--gold-light) 140%);
  margin-bottom: 1.1rem;
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 20px -16px rgba(27,16,10,0.4);
}
.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dish-photo--double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: none;
}
.dish-photo-half {
  position: relative;
  overflow: hidden;
}
.dish-photo-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dish-photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(40,23,15,0.06) 0 2px, transparent 2px 14px);
}
.dish-photo .icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(40,23,15,0.25);
  transition: color 0.4s var(--ease);
}
.dish-photo .icon svg { width: 26%; height: 26%; }
.dish:hover .dish-photo .icon { color: rgba(40,23,15,0.32); }

.dish-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}
.dish-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-dark);
  transition: opacity 0.42s var(--ease);
}
.dish-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--red-primary);
  white-space: nowrap;
  transition: opacity 0.42s var(--ease);
}
.dish-desc {
  font-family: var(--font-display);
  margin-top: 0.55rem;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-dark);
  line-height: 1.6;
  transition: opacity 0.42s var(--ease);
}
.dish--full .dish-head h3 { font-size: 1.7rem; }
.dish--full .dish-price { font-size: 1.4rem; }
.dish--full .dish-desc { font-size: 1.2rem; }
.dish-price-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.6rem;
}

.menu-note {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--edge) 4rem;
  font-size: 0.82rem;
  color: var(--wood-warm);
  font-style: italic;
}

/* ============================================================
   HERO — full-bleed photo (index page)
   ============================================================ */
.hero--full {
  background: var(--wood-black);
}
.hero--full::after { display: none; }
.hero-full-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-full-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,16,10,0.4) 0%, rgba(27,16,10,0.6) 50%, rgba(27,16,10,0.88) 100%);
  z-index: 1;
}
.hero--full .hero-content { z-index: 2; }

/* ============================================================
   SECTION DIVIDERS — curvy cuts between homepage bands
   ============================================================ */
.section-divider {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}
.section-divider svg { display: block; width: 100%; height: 60px; }

/* ============================================================
   2. OUR STORY — cream, paper-grain texture
   ============================================================ */
.story-band {
  position: relative;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge) clamp(5.5rem, 10vw, 8rem);
}
.story-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.story-inner .eyebrow { justify-content: center; }
.story-inner h2 {
  margin-top: 0.6rem;
  font-family: var(--font-elegant);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--text-dark);
}
.story-inner p {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--wood-warm);
}
.story-inner .story-lede {
  margin-top: 1rem;
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--terracotta-warm);
}
/* ============================================================
   3. OUR PHILOSOPHY — subtle brown, bamboo texture
   ============================================================ */
.philosophy-band {
  position: relative;
  background-color: var(--wood-medium);
  background-image:
    repeating-linear-gradient(90deg,
      rgba(27,16,10,0.55) 0px, rgba(27,16,10,0.55) 2px,
      rgba(223,195,139,0.06) 2px, rgba(223,195,139,0.06) 4px,
      transparent 4px, transparent 22px),
    repeating-linear-gradient(180deg,
      transparent 0px, transparent 96px,
      rgba(27,16,10,0.4) 96px, rgba(27,16,10,0.4) 100px);
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge) clamp(5.5rem, 10vw, 8rem);
  text-align: center;
}
.philosophy-band .eyebrow { justify-content: center; color: var(--gold-light); }
.philosophy-band .eyebrow::before { background: var(--gold-light); }
.philosophy-band h2 {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--cream);
}
.philosophy-lede {
  margin-top: 1rem;
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-light);
}
.philosophy-intro {
  max-width: 640px;
  margin: 1.6rem auto 0;
}
.philosophy-intro p {
  margin-top: 1rem;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream-soft);
}
.philosophy-intro p:first-child { margin-top: 0; }
.philosophy-grid {
  max-width: 1100px;
  margin: 2.8rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.philosophy-item {
  background: rgba(244,232,210,0.06);
  border: 1px solid rgba(223,195,139,0.25);
  border-radius: 6px;
  padding: 2rem 1.5rem;
}
.philosophy-icon { display: block; width: 34px; height: 34px; margin: 0 auto; color: var(--gold-light); }
.philosophy-icon svg { width: 100%; height: 100%; }
.philosophy-item h3 {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
}
.philosophy-item p {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(244,232,210,0.8);
}

/* ============================================================
   4. SIGNATURE CREATIONS — cream, dot-grain texture
   ============================================================ */
.signature-creations {
  position: relative;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(90,50,30,0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge) clamp(6rem, 11vw, 8.5rem);
  text-align: center;
}
.signature-creations .eyebrow { justify-content: center; }
.signature-creations h2 {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-dark);
}
.creations-grid {
  max-width: 1280px;
  margin: 2.8rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  text-align: left;
}
.creation-photo {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
}
.creation-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creation-card h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}
.creation-card p {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--wood-warm);
}
.creations-cta { margin-top: 2.8rem; }

/* ============================================================
   5. DRINKS — terracotta, watercolor-wash texture
   ============================================================ */
.drinks-band {
  position: relative;
  background-color: var(--terracotta-warm);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(110,58,36,0.25), transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(29,82,51,0.12), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(183,138,69,0.15), transparent 40%);
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge) clamp(5.5rem, 10vw, 8rem);
  text-align: center;
}
.drinks-band .eyebrow { justify-content: center; color: var(--gold-light); }
.drinks-band .eyebrow::before { background: var(--gold-light); }
.drinks-band h2 {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--cream);
}
.drinks-grid {
  max-width: 1280px;
  margin: 2.8rem auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.drink-photo {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(223,195,139,0.3);
}
.drink-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drink-card h3 {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
}
.drink-price {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-light);
}
.drinks-cta { margin-top: 2.8rem; }

/* ============================================================
   6. THE NGON EXPERIENCE — dark wood, linen texture
   ============================================================ */
.experience-band {
  position: relative;
  background-color: var(--wood-dark);
  background-image:
    repeating-linear-gradient(45deg, rgba(244,232,210,0.04) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(244,232,210,0.04) 0 2px, transparent 2px 6px);
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge) clamp(6rem, 11vw, 8.5rem);
  text-align: center;
}
.experience-band .eyebrow { justify-content: center; color: var(--gold-light); }
.experience-band .eyebrow::before { background: var(--gold-light); }
.experience-band h2 {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--cream);
}
.experience-lede {
  max-width: 620px;
  margin: 1.4rem auto 0;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(244,232,210,0.8);
}
.experience-grid {
  max-width: 800px;
  margin: 2.8rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.experience-item {
  padding: 1.6rem 0.5rem;
  border-top: 1px solid var(--gold-dark);
}
.experience-item span {
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-light);
}

/* ============================================================
   7. THE SPACE — cream, large photo + gallery
   ============================================================ */
.space-section {
  position: relative;
  background: var(--cream);
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge) clamp(5.5rem, 10vw, 8rem);
  text-align: center;
}
.space-section .eyebrow { justify-content: center; }
.space-section h2 {
  margin-top: 0.6rem;
  font-family: var(--font-elegant);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--text-dark);
}
.space-photo {
  max-width: 1100px;
  margin: 2.4rem auto 0;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
}
.space-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.space-copy {
  max-width: 480px;
  margin: 1.8rem auto 0;
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--wood-warm);
}
.space-cta { margin-top: 1.6rem; }
.space-gallery {
  max-width: 1100px;
  margin: 2.6rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.space-gallery img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(180deg, var(--wood-black), var(--wood-dark));
  padding: clamp(3.5rem, 7vw, 5rem) var(--edge);
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cream);
  margin-bottom: 1.8rem;
}

/* ============================================================
   VISIT BAND — real hours / contact / CTA
   ============================================================ */
.visit-band {
  background: linear-gradient(180deg, var(--wood-dark), var(--wood-black));
  padding: clamp(3.5rem, 7vw, 5rem) var(--edge);
  text-align: center;
}
.visit-band-eyebrow { justify-content: center; }
.visit-band-heading {
  margin: 0.6rem auto 3rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--cream);
}
.visit-band-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}
.visit-band-item { text-align: center; }
.visit-band-item .eyebrow { justify-content: center; margin-bottom: 0.8rem; }
.visit-band-item > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.2rem; }
.visit-band-item a:not(.btn) { color: var(--gold-light); font-size: 1rem; }

/* ============================================================
   MAP — interactive Google Map embed + directions link
   ============================================================ */
.map-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 6.5rem) var(--edge);
  text-align: center;
}
.map-section-head { margin-bottom: 2.4rem; }
.map-section-head .eyebrow { justify-content: center; }
.map-section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--text-dark);
}
.map-frame {
  position: relative;
  aspect-ratio: 16 / 8;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 40px -28px rgba(27,16,10,0.5);
}
.map-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.map-section-cta { margin-top: 2.2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .philosophy-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .creations-grid { grid-template-columns: repeat(2, 1fr); }
  .drinks-grid { grid-template-columns: repeat(3, 1fr); }
  .experience-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .space-gallery { grid-template-columns: repeat(2, 1fr); }
  .visit-band-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .map-frame { aspect-ratio: 4 / 5; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .dish-head h3 { font-size: 1.25rem; }
  .dish-price { font-size: 1.15rem; }
  .dish-desc { font-size: 1rem; }
  .creations-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .drinks-grid { grid-template-columns: repeat(2, 1fr); }
  .space-photo { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -0.02em; }
}

/* .menu-grid is 2 columns by default at every width, which is right for
   mobile but leaves each photo enormous on a real desktop screen (the
   1280px content area / 2 = ~600px-wide photos, and a "full width" hero
   dish stretching the entire 1280px). On wide screens, switch to 3
   columns so photos land closer to ~400px — a normal, scannable size —
   and cap "full" dishes to a comfortable width instead of edge-to-edge,
   while still keeping the row exclusively theirs (grid-column: 1 / -1
   is untouched, so nothing else shares that row). */
@media (min-width: 1150px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .dish--full {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: var(--cream); min-height: 100vh; }

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--wood-medium), var(--wood-black));
}
.admin-login[hidden] { display: none; }
.admin-login-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(360px, 90vw);
  padding: 2.5rem;
  background: var(--cream);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  text-align: center;
}
.admin-login-card .brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-dark);
}
.admin-login-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wood-warm);
}
.admin-login-card input {
  padding: 0.8em 1em;
  border: 1px solid var(--beige);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}
.admin-error { color: var(--red-accent); font-size: 0.85rem; }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--edge);
  background: var(--red-deep);
  color: var(--text-light);
}
.admin-header-brand { display: flex; align-items: center; gap: 0.7rem; }
.admin-header .brand-logo { height: 40px; width: auto; }
.admin-header-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}
.admin-header-actions { display: flex; gap: 0.8rem; }
.admin-header .btn { padding: 0.6em 1.2em; font-size: 0.75rem; }
.admin-header .btn--ghost { border-color: var(--border-cream-soft); color: var(--text-light); }
.admin-header .btn--ghost:hover { background: var(--gold-dark); color: var(--wood-black); border-color: var(--gold-dark); }

.admin-main { max-width: 900px; margin: 0 auto; padding: 2.5rem var(--edge); }
.admin-panel { margin-bottom: 3rem; }
.admin-panel:last-child { margin-bottom: 0; }
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.admin-panel-head h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--text-dark); }
.admin-panel-hint { font-size: 0.85rem; color: var(--wood-warm); line-height: 1.5; margin-bottom: 1.2rem; }

.admin-panel-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-gold-soft);
}
.admin-save-status { font-size: 0.85rem; color: var(--gold-dark); }

.admin-category {
  border: 1px solid var(--border-gold-soft);
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.admin-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--cream-soft);
  cursor: pointer;
}
.admin-category-head h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-dark); }
.admin-mass-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  border: 1px solid var(--gold-primary);
  border-radius: 3px;
  padding: 0.1em 0.5em;
  vertical-align: middle;
}
.admin-empty-hint { font-size: 0.85rem; color: var(--wood-warm); font-style: italic; padding: 0.4rem 0; }
.admin-category-controls { display: flex; gap: 0.4rem; align-items: center; }
.admin-category-controls button {
  padding: 0.3em 0.6em;
  font-size: 0.75rem;
  border: 1px solid var(--beige);
  border-radius: 3px;
  background: var(--cream);
  color: var(--text-dark);
}
.admin-category-body { padding: 1rem 1.2rem; display: none; }
.admin-category-body.is-open { display: block; }

.admin-form { display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem 0; }
.admin-form input, .admin-form textarea, .admin-form select {
  padding: 0.7em 0.9em;
  border: 1px solid var(--beige);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text-dark);
}
.admin-form-actions { display: flex; gap: 0.6rem; }
.admin-form-actions .btn { padding: 0.5em 1.2em; font-size: 0.78rem; }

.admin-item-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.admin-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-gold-soft);
  border-radius: 3px;
}
.admin-item-row.is-hidden { opacity: 0.55; background: var(--cream-soft); }
.item-hidden-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--wood-warm);
  white-space: nowrap;
  cursor: pointer;
}
.item-hidden-toggle input { cursor: pointer; }
.admin-item-thumb {
  width: 44px; height: 44px;
  border-radius: 3px;
  background: var(--cream-soft);
  flex-shrink: 0;
  object-fit: cover;
}
.admin-item-info { flex: 1; }
.admin-item-info .item-name { font-weight: 600; color: var(--text-dark); }
.admin-item-info .item-name-th { color: var(--wood-warm); font-size: 0.85rem; }
.admin-item-info .item-price { color: var(--red-primary); font-size: 0.85rem; }
.admin-item-controls { display: flex; gap: 0.3rem; }
.admin-item-controls button {
  padding: 0.3em 0.6em;
  font-size: 0.72rem;
  border: 1px solid var(--beige);
  border-radius: 3px;
  background: var(--cream);
  color: var(--text-dark);
}
.item-form label { font-size: 0.8rem; color: var(--wood-warm); display: flex; flex-direction: column; gap: 0.3rem; }
.item-form-photo2 { display: none; }
.item-form.mode-double .item-form-photo2 { display: flex; }
/* This form gets long (photo focus picker, Category, Also-feature-in
   checklist, etc.) — pin Save/Cancel to the bottom of the screen so
   they're reachable immediately, from wherever you're scrolled to,
   instead of only once you've scrolled all the way down past the photo
   picker (whose drag-to-pan gesture also blocks the page's own touch
   scroll on a phone, making "just scroll further" not always possible). */
.item-form { padding-bottom: 4.5rem; }
.item-form .admin-form-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem var(--edge);
  margin: 0;
  background: var(--cream);
  border-top: 1px solid var(--border-gold-soft);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  z-index: 20;
}
.item-subcategory-field { font-size: 0.8rem; color: var(--wood-warm); display: flex; flex-direction: column; gap: 0.3rem; }
.item-mass-categories-field {
  font-size: 0.8rem;
  color: var(--wood-warm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid var(--beige);
  border-radius: 3px;
  padding: 0.7em 0.9em;
}
.item-mass-categories-label { font-weight: 600; }
.item-mass-category-option { display: flex; align-items: center; gap: 0.5rem; color: var(--text-dark); font-size: 0.85rem; }
.item-mass-category-option input { width: auto; }
.add-item-btn { padding: 0.5em 1.2em; font-size: 0.78rem; }

.admin-subcategory-group {
  border-left: 3px solid var(--gold-primary);
  padding-left: 0.8rem;
  margin-bottom: 1rem;
}
.admin-subcategory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.admin-subcategory-head h4 { font-family: var(--font-display); font-size: 1rem; color: var(--text-dark); }
.admin-subcategory-controls { display: flex; gap: 0.4rem; align-items: center; }
.admin-subcategory-controls button {
  padding: 0.3em 0.6em;
  font-size: 0.72rem;
  border: 1px solid var(--beige);
  border-radius: 3px;
  background: var(--cream);
  color: var(--text-dark);
}
.admin-ungrouped-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood-warm);
  margin: 0.4rem 0 0.5rem;
}
.admin-item-list-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; }

.photo-field { display: flex; flex-direction: column; gap: 0.3rem; }
.focus-picker {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-gold-soft);
  cursor: crosshair;
  touch-action: none;
  margin-top: 0.3rem;
  background: var(--cream-soft);
}
.focus-picker[hidden] { display: none; }
.focus-picker.square { aspect-ratio: 1 / 1; }
.focus-picker.horizontal { aspect-ratio: 16 / 9; }
.focus-picker.vertical { aspect-ratio: 4 / 5; }
.focus-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.focus-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  left: 50%;
  top: 50%;
}
.focus-hint { font-size: 0.72rem; color: var(--wood-warm); margin: 0; }
.focus-hint[hidden] { display: none; }
.focus-zoom {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--wood-warm);
  max-width: 280px;
}
.focus-zoom[hidden] { display: none; }
.focus-zoom-slider { flex: 1; }
