@font-face {
  font-family: Cormorant Garamond;
  src: url('/fonts/cormorant-garamond.woff2') format('woff2');
  font-display: swap;
  font-weight: 300 700;
}

:root {
  color-scheme: light;
  --paper: #f3eddf;
  --white: #fbf7ef;
  --ink: #22362e;
  --muted: #555e51;
  --leaf: #30463a;
  --wash: #e9e2d1;
  --celadon: #dde4d5;
  --clay-wash: #eee2d3;
  --clay: #824331;
  --line: #cfc5b0;
  --dark: #182823;
  --accent: #67512d;
  --display: 'Cormorant Garamond', Georgia, serif;
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
select { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #67512d; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
.shell { width: min(calc(100% - 40px), 1120px); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 12px; background: var(--wash); }

.site-header { background: var(--dark); color: var(--paper); padding-top: env(safe-area-inset-top); }
.site-header :focus-visible, .action-bar :focus-visible { outline-color: var(--white); }
.header-inner, .header-controls { display: flex; align-items: center; }
.header-inner { min-height: 63px; justify-content: space-between; gap: 8px; }
.header-controls { gap: 12px; min-width: 0; }
.wordmark {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  font: 650 2.15rem/1 var(--display); letter-spacing: -.045em;
  min-width: 44px; min-height: 44px; white-space: nowrap;
}
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #d8c6a1; border-radius: 50%;
  display: grid; place-items: center; color: #d8c6a1; transform: rotate(-13deg);
}
.brand-mark i { position: relative; width: 17px; height: 9px; background: currentColor; border-radius: 55% 65% 65% 55%; margin-left: -3px; }
.brand-mark i::before { content: ''; position: absolute; width: 7px; height: 8px; background: currentColor; top: .5px; right: -4px; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.brand-mark i::after { content: ''; position: absolute; top: 3px; left: 4px; width: 2px; height: 2px; border-radius: 50%; background: var(--ink); }
.header-control { display: flex; align-items: center; gap: 9px; min-width: 0; }
.header-control select {
  max-width: 100%; min-width: 0; min-height: 44px; color: inherit;
  background: var(--dark); border: 0; font-weight: 625; font-size: .9rem;
}
.lang-control { padding-inline-start: 12px; border-inline-start: 1px solid #5d6c57; }
.pin-icon { width: 11px; height: 14px; flex: 0 0 11px; position: relative; border: 1.5px solid; border-radius: 60% 60% 60% 0; transform: rotate(-45deg); }
.pin-icon::after { content: ''; width: 3px; height: 3px; border: 1px solid; border-radius: 50%; position: absolute; left: 2.5px; top: 3.2px; }

.menu { padding-top: 21px; scroll-margin-top: 6px; }
.menu:focus { outline: 0; }
.menu-header {
  position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: end; gap: 16px;
  min-height: 208px; padding: clamp(23px, 4vw, 49px); color: var(--paper); background: var(--dark);
}
.menu-header::before {
  position: absolute; z-index: -1; inset: 0; content: '';
  background: linear-gradient(90deg, var(--dark) 33%, #1828238f 60%, #18282321),
    url('/images/thuy-son-1440.webp') 100% 33% / 68% auto no-repeat;
}
.menu-title-block { min-width: 0; }
.menu-place { display: block; color: #e5d3ad; font-size: .7rem; font-weight: 720; letter-spacing: .13em; }
.menu h1 { margin-top: 7px; font: 580 clamp(3.5rem, 8vw, 6.5rem)/.9 var(--display); letter-spacing: -.035em; }
.lunch-ticket {
  min-width: 0; width: min(42%, 280px); display: grid; gap: 8px;
  text-align: left; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  padding: 12px 14px 10px;
}
.lunch-ticket:hover { background: var(--white); }
.lunch-ticket:active { background: var(--clay-wash); }
.ticket-copy { display: grid; gap: 3px; }
.ticket-copy strong { color: var(--clay); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.14; }
.ticket-copy > span { color: var(--muted); font-size: .76rem; font-weight: 600; }
.ticket-link {
  display: flex; gap: 8px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 6px; font-size: .75rem; font-weight: 680;
}
.chevron { width: 8px; height: 8px; flex: 0 0 auto; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); margin-inline-end: 3px; }

.search {
  display: flex; align-items: center; gap: 13px; width: min(100%, 360px); margin: 15px 0 10px auto;
  min-height: 46px; border: 1px solid #a4987e; padding-inline: 11px; background: var(--white);
}
.search:focus-within { outline: 2px solid var(--leaf); outline-offset: 2px; }
.search input { background: transparent; width: 100%; min-width: 0; min-height: 44px; border: 0; outline: 0; color: var(--ink); }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search-icon { position: relative; border: 1.5px solid; border-radius: 50%; width: 13px; height: 13px; flex: 0 0 auto; }
.search-icon::after { content: ''; position: absolute; width: 6px; height: 1.5px; background: currentColor; right: -4px; bottom: -2px; transform: rotate(45deg); }
.catalog { display: grid; grid-template-columns: clamp(156px, 20vw, 216px) minmax(0, 1fr); gap: clamp(20px, 4vw, 54px); border-top: 1px solid var(--ink); }
.categories { position: sticky; top: 10px; display: grid; align-self: start; padding-block: 7px; }
.category {
  border: 0; border-bottom: 1px solid var(--line); background: transparent; min-height: 46px;
  padding: 8px 12px; font-size: .91rem; font-weight: 650; text-align: left;
}
.category[aria-pressed="true"] { color: var(--paper); background: var(--leaf); border-color: var(--leaf); }
.category[aria-pressed="false"]:hover { background: #e9e2d1; }
.notice {
  display: inline-block; margin-top: 12px; padding: 5px 10px;
  background: var(--clay-wash); color: var(--ink); font-weight: 700; font-size: .82rem;
}
.group-title {
  margin-top: 13px; padding: 0 0 7px; border-bottom: 1px solid var(--line);
  font: 660 1.75rem/1.06 var(--display); letter-spacing: -.025em;
}
.dish-group + .dish-group { margin-top: 20px; }
.dish {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  min-height: 69px; padding: 9px 2px 9px 0; border-bottom: 1px solid var(--line);
}
.dish:hover { background: var(--white); }
.dish-title {
  display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 0;
  overflow-wrap: anywhere; font-size: clamp(.97rem, 2.2vw, 1.15rem); line-height: 1.26; font-weight: 720;
}
.dish-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dish-original { margin-top: 3px; color: var(--muted); font-size: .81rem; line-height: 1.35; }
.dish-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; font-size: .68rem; font-weight: 730; }
.dish-meta span { color: var(--clay); }
.dish-end { display: flex; align-items: center; justify-content: end; gap: 12px; }
.dish-price { max-width: 140px; color: var(--ink); font-size: .91rem; text-align: end; font-weight: 750; font-variant-numeric: tabular-nums; }
.dish-button, .step-button {
  display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
  border: 1px solid #a39779; border-radius: 50%; background: var(--white); font-size: 1.3rem; line-height: 1;
}
.dish-button:hover, .step-button:not(:disabled):hover { color: var(--paper); background: var(--leaf); }
.dish-button:active, .step-button:not(:disabled):active { color: var(--paper); background: var(--ink); }
.empty { padding: 20px 0; }
.empty button { margin-top: 9px; }

.footer {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-block: 26px;
  margin-bottom: calc(72px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .86rem;
}
.footer-name { color: var(--ink); font: 700 1.55rem/1.2 var(--display); }
.footer p { margin-top: 5px; }
.studio-credit { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 13px; border-top: 1px solid var(--line); padding-top: 13px; font-size: .78rem; }
.studio-credit small { font-size: .71rem; }
.studio-link { color: inherit; font-weight: 720; text-underline-offset: 3px; }
.phones { display: grid; justify-items: end; gap: 4px; }
.phones a { display: grid; align-items: center; min-height: 30px; }
.action-bar {
  position: fixed; z-index: 2; inset: auto 0 0; background: var(--dark);
  color: var(--paper); border-top: 1px solid var(--ink);
}
.action-inner {
  display: flex; justify-content: space-between; gap: 9px; align-items: center;
  padding-block: 7px max(7px, env(safe-area-inset-bottom));
}
.phrases-button, .cart-button, .primary, .secondary {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 8px 12px; border: 1px solid transparent; font-size: .86rem; font-weight: 750; line-height: 1.2;
}
.phrases-button { background: transparent; padding-inline: 0; text-align: left; }
.phrases-button:hover { text-decoration: underline; }
.speech-icon { width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; flex: 0 0 auto; position: relative; }
.speech-icon::after { content: ''; position: absolute; bottom: -4px; left: 3px; width: 5px; height: 5px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; background: var(--dark); transform: skewY(-36deg); }
.cart-button { background: var(--celadon); color: var(--ink); flex-shrink: 0; }
.cart-button:hover { background: #f1f5f1; }
.cart-count { min-width: 24px; padding: 3px 5px; background: var(--ink); color: var(--paper); text-align: center; font-size: .77rem; }
.primary { background: var(--leaf); color: var(--white); }
.primary:hover { background: var(--ink); }
.secondary { border-color: var(--leaf); color: var(--ink); background: transparent; }
.secondary:hover { background: var(--wash); }

.panel {
  width: min(calc(100% - 24px), 570px); max-width: none; max-height: calc(100dvh - 24px);
  border: 1px solid var(--leaf); padding: 0; color: var(--ink); background: var(--paper);
  overscroll-behavior: contain;
}
.panel::backdrop { background: #12201bc4; }
.panel.full { width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; }
.panel-inner { padding: clamp(14px, 5vw, 28px); }
.panel.full .panel-inner { max-width: 720px; margin: auto; padding-top: max(18px, env(safe-area-inset-top)); }
.panel-header {
  display: flex; justify-content: space-between; align-items: start; gap: 10px;
  padding-bottom: 9px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.panel-title { font-size: clamp(1.38rem, 4.8vw, 2.05rem); line-height: 1.17; letter-spacing: -.025em; overflow-wrap: anywhere; }
.close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--leaf); background: transparent; font-size: 1.35rem; }
.close:hover { background: var(--wash); }
.panel .hint { color: var(--muted); font-size: .85rem; margin-block: 8px 0; }
.panel .detail-price { margin-top: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.panel form { margin-top: 13px; }
.panel fieldset { padding: 0; margin: 0 0 12px; border: 0; }
.panel legend, .note-label { font-size: .83rem; font-weight: 750; }
.panel .choice { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .92rem; }
.choice input { width: 18px; height: 18px; margin-inline-start: 0; accent-color: var(--leaf); }
.note-label { display: grid; gap: 6px; }
.note-label textarea { font-size: 16px; font-weight: 400; resize: vertical; width: 100%; min-height: 64px; padding: 8px; border: 1px solid #a4987e; background: var(--white); }
.panel-actions { margin-top: 14px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.panel-actions .primary { min-width: 145px; }
.panel ol { padding-inline-start: 22px; line-height: 1.5; }
.set-contents { border-top: 1px solid var(--line); margin-top: 11px; padding-top: 8px; }
.set-contents h3 { font-size: .9rem; }
.phrase-list, .cart-lines { display: grid; padding: 0; margin: 0; list-style: none; }
.phrase-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.phrase-list b { font-size: 1.1rem; }
.phrase-list p { color: var(--muted); margin-top: 4px; }
.cart-line { padding-block: 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.cart-line h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
.cart-line p { font-size: .88rem; margin-top: 4px; overflow-wrap: anywhere; }
.cart-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 7px; }
.quantity { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.step-button { background: transparent; }
.cart-tools { display: flex; gap: 12px; justify-content: space-between; }
.text-action { min-height: 44px; border: 0; padding-inline: 0; background: transparent; text-decoration: underline; color: var(--muted); font-size: .83rem; }
.subtotal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 7px; margin-top: 14px; font-size: .88rem; }
.subtotal strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.waiter-line { display: grid; grid-template-columns: 42px 1fr; gap: 12px; }
.waiter-count { background: var(--celadon); height: fit-content; padding: 5px; text-align: center; font-weight: 800; }
.waiter-line h3 { font-size: 1.22rem; line-height: 1.28; }
.waiter-address { margin-bottom: 12px; }
body:has(.panel[open]) { overflow: hidden; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .header-controls { gap: 7px; }
  .lang-control { padding-inline-start: 7px; }
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .categories {
    z-index: 1; top: 0; display: flex; gap: 6px; padding-block: 6px;
    overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .category { flex: 0 0 auto; white-space: nowrap; border-bottom: 0; font-size: .82rem; }
  .category:focus-visible { outline-offset: -3px; }
}

@media (max-width: 540px) {
  .header-inner { min-height: 55px; }
  .wordmark { gap: 6px; font-size: 1.65rem; }
  .wordmark .brand-mark { width: 25px; height: 25px; flex-basis: 25px; }
  .pin-icon { display: none; }
  .header-control select { max-width: 34vw; font-size: .8rem; }
  .menu { padding-top: 12px; }
  .menu-header { min-height: 144px; align-items: start; flex-direction: column; gap: 12px; padding: 13px; }
  .menu-header::before {
    background: linear-gradient(90deg, #182823ed 1%, #18282367 67%, #18282340),
      url('/images/thuy-son-720.webp') center 37% / cover no-repeat;
  }
  .menu-place { font-size: .6rem; }
  .menu h1 { font-size: 2.83rem; margin-top: 5px; }
  .lunch-ticket { width: 100%; min-height: 49px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 9px; }
  .ticket-copy { gap: 1px; }
  .ticket-copy strong { font-size: .92rem; }
  .ticket-copy > span { font-size: .71rem; }
  .ticket-link { max-width: 106px; padding-top: 0; border: 0; line-height: 1.25; }
  .search { width: 100%; margin: 9px 0; }
  .category { min-height: 44px; padding: 6px 9px; }
  .group-title { margin-top: 10px; }
  .dish-end { gap: 6px; }
  .dish-price { max-width: 82px; font-size: .76rem; }
  .dish { gap: 7px; }
  .footer { grid-template-columns: 1fr; gap: 4px; }
  .phones { justify-items: start; }
  .panel:not(.full) { margin: auto 0 0; width: 100%; max-height: 91dvh; border-bottom: 0; }
  .panel-inner { padding-bottom: max(17px, env(safe-area-inset-bottom)); }
  .panel-actions { position: sticky; bottom: 0; margin-inline: -14px; padding: 8px 14px; background: var(--paper); }
  .panel-actions .primary { width: 100%; }
}

@media (max-width: 340px) {
  .shell { width: calc(100% - 22px); }
  .wordmark > span:last-child { display: none; }
  .lang-control { padding-inline-start: 4px; }
  .dish-end { flex-direction: column-reverse; align-items: end; }
  .phrases-button, .cart-button { font-size: .78rem; }
  .cart-button { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
