:root {
  --accent: #b45332;
  --accent-strong: #8f381f;
  --accent-soft: #f4dfd5;
  --ink: #231c18;
  --muted: #746a63;
  --paper: #fbf7f1;
  --surface: #fffdf9;
  --line: rgba(59, 42, 31, 0.13);
  --shadow: 0 18px 50px rgba(58, 37, 24, 0.09);
  --radius: 22px;
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.menu-shell { margin: 0 auto; max-width: 1180px; padding-left: 24px; padding-right: 24px; width: 100%; }
.skip-link {
  background: #fff;
  border-radius: 0 0 10px 10px;
  left: 18px;
  padding: 11px 16px;
  position: fixed;
  top: -60px;
  z-index: 100;
}
.skip-link:focus { top: 0; }
.sr-only { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.category-bar { background: rgba(251,247,241,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.category-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; padding-top: 14px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 16px;
}
.category-button:hover, .category-button:focus-visible { border-color: var(--line); color: var(--ink); outline: none; }
.category-button.is-active { background: var(--ink); color: #fff; }

.menu-tools { align-items: center; display: flex; gap: 14px; padding: 34px 0 16px; }
.search-field { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; max-width: 510px; padding: 0 16px; width: 100%; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-field svg { fill: none; height: 20px; opacity: .55; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; width: 20px; }
.search-field input { background: transparent; border: 0; color: var(--ink); min-width: 0; outline: 0; padding: 15px 12px; width: 100%; }
.search-field input::placeholder { color: #9a918a; }
.clear-search { background: none; border: 0; color: var(--accent-strong); cursor: pointer; font-size: 14px; font-weight: 800; }

.menu-status { align-items: center; color: var(--muted); display: flex; flex-direction: column; gap: 10px; justify-content: center; min-height: 300px; text-align: center; }
.menu-status h2 { color: var(--ink); font-family: var(--display); font-size: 32px; margin: 0; }
.menu-status p { line-height: 1.6; margin: 0; max-width: 480px; }
.status-spinner { animation: spin .7s linear infinite; border: 3px solid var(--accent-soft); border-radius: 50%; border-top-color: var(--accent); height: 28px; width: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }

.menu-sections { padding: 14px 0 76px; }
.menu-category { border-top: 1px solid var(--line); padding: 50px 0 18px; scroll-margin-top: 78px; }
.menu-category:first-child { border-top: 0; }
.category-heading { display: grid; gap: 10px; grid-template-columns: minmax(0,1fr) auto; margin-bottom: 26px; }
.category-heading h2 { font-family: var(--display); font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin: 0; }
.category-heading p { color: var(--muted); grid-column: 1; line-height: 1.55; margin: 0; max-width: 640px; }
.category-heading span { background: var(--accent-soft); border-radius: 999px; color: var(--accent-strong); font-size: 12px; font-weight: 900; padding: 7px 10px; }
.item-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; display: grid; grid-template-columns: minmax(0,1fr) 142px; min-height: 178px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.menu-item:not(.is-unavailable):hover { border-color: rgba(180,83,50,.28); box-shadow: var(--shadow); transform: translateY(-2px); }
.menu-item.no-image { grid-template-columns: minmax(0,1fr); }
.item-copy { display: flex; flex-direction: column; min-width: 0; padding: 22px; }
.item-top { align-items: flex-start; display: flex; gap: 14px; justify-content: space-between; }
.item-top h3 { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
.item-price { color: var(--accent-strong); flex: 0 0 auto; font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.item-description { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 11px 0 16px; }
.item-tags { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.item-tag { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 800; padding: 5px 8px; }
.item-tag.featured { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.item-image { height: 100%; min-height: 178px; object-fit: cover; width: 100%; }
.menu-item.is-unavailable { opacity: .64; }
.menu-item.is-unavailable .item-image { filter: grayscale(1); }
.unavailable-label { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.category-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); padding: 30px; text-align: center; }

.menu-footer { background: var(--ink); color: #fff; padding: 34px 0; }
.menu-footer .menu-shell { align-items: center; display: flex; gap: 30px; justify-content: space-between; }
.menu-footer p { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.menu-footer p span { font-size: 12px; opacity: .64; }
.menu-footer a { font-size: 13px; font-weight: 800; }

/* Editorial: airy typography and a magazine-like single column. */
body.theme-menu-editorial {
  --accent: #7c2d3c;
  --accent-strong: #5c1d2b;
  --accent-soft: #f4e3e6;
  --ink: #211c1c;
  --muted: #74696b;
  --paper: #f7f3ee;
  --surface: transparent;
  --line: rgba(45,31,31,.16);
}
.theme-menu-editorial .item-grid { grid-template-columns: 1fr; }
.theme-menu-editorial .menu-item { border-left: 0; border-radius: 0; border-right: 0; box-shadow: none; grid-template-columns: minmax(0,1fr) 190px; }
.theme-menu-editorial .menu-item:not(.is-unavailable):hover { box-shadow: none; transform: none; }
.theme-menu-editorial .item-copy { padding-left: 0; }
.theme-menu-editorial .item-image { border-radius: 16px; margin: 16px 0; width: calc(100% - 8px); }

/* Pop: bright blocks, compact cards and rounded shapes. */
body.theme-menu-pop {
  --accent: #f05a2a;
  --accent-strong: #be3513;
  --accent-soft: #ffdf62;
  --ink: #202124;
  --muted: #5b5c60;
  --paper: #fff7ce;
  --surface: #fffdf2;
  --line: rgba(32,33,36,.14);
  --radius: 28px;
  --display: var(--body);
}
.theme-menu-pop .category-button.is-active { background: var(--accent); }
.theme-menu-pop .category-heading h2, .theme-menu-pop .item-top h3 { font-weight: 900; }
.theme-menu-pop .menu-item { border-width: 2px; }

@media (max-width: 820px) {
  .item-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .menu-shell { padding-left: 17px; padding-right: 17px; }
  .menu-tools { align-items: stretch; flex-direction: column; padding-top: 24px; }
  .clear-search { align-self: flex-start; }
  .menu-category { padding-top: 38px; }
  .category-heading { grid-template-columns: minmax(0,1fr); }
  .category-heading span { justify-self: start; }
  .menu-item { grid-template-columns: minmax(0,1fr) 112px; min-height: 160px; }
  .item-copy { padding: 18px; }
  .item-top { align-items: flex-start; flex-direction: column; gap: 6px; }
  .item-top h3 { font-size: 21px; }
  .item-image { min-height: 160px; }
  .theme-menu-editorial .menu-item { grid-template-columns: minmax(0,1fr) 112px; }
  .menu-footer .menu-shell { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
