:root {
  --ink: #171411;
  --paper: #fffdf8;
  --cream: #f6efe4;
  --line: #e1d6c7;
  --muted: #6e655d;
  --red: #df3d30;
  --gold: #f2b23d;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; }
body { background: var(--cream); margin: 0; min-width: 320px; overscroll-behavior-y: contain; }
body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: rgba(223,61,48,.15); touch-action: manipulation; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { background: white; border-radius: 8px; color: var(--ink); font-weight: 800; left: 12px; padding: 10px 14px; position: fixed; top: -70px; z-index: 100; }
.skip-link:focus { top: 12px; }

.site-header { align-items: center; background: var(--ink); color: white; display: flex; justify-content: space-between; min-height: 76px; padding: max(10px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left)); }
.brand { align-items: center; color: inherit; display: flex; gap: 11px; text-decoration: none; }
.brand img { height: 50px; object-fit: contain; width: 50px; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-family: Georgia,serif; font-size: 1.28rem; letter-spacing: -.03em; }
.brand small { color: rgba(255,255,255,.58); font-size: .65rem; font-weight: 700; margin-top: 2px; }
.table-badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 8px 11px; }

.hero { background: #241c17; height: clamp(310px,46vw,510px); overflow: hidden; position: relative; }
.hero > img { height: 100%; object-fit: cover; object-position: center; width: 100%; }
.hero-shade { background: linear-gradient(90deg,rgba(12,9,7,.9) 0%,rgba(12,9,7,.56) 48%,rgba(12,9,7,.08) 100%); inset: 0; position: absolute; }
.hero-copy { bottom: clamp(28px,5vw,62px); color: white; left: max(20px,calc((100vw - 1180px)/2)); max-width: 580px; padding-right: 20px; position: absolute; }
.hero-copy p { color: var(--gold); font-size: clamp(.72rem,1.5vw,.9rem); font-weight: 850; margin: 0 0 8px; }
.hero-copy h1 { font-family: Georgia,serif; font-size: clamp(2.3rem,7vw,5.4rem); letter-spacing: -.055em; line-height: .94; margin: 0; text-wrap: balance; }
.hero-copy span { color: rgba(255,255,255,.72); display: block; font-size: clamp(.78rem,1.6vw,1rem); line-height: 1.4; margin-top: 14px; }

.menu-tools { background: rgba(255,253,248,.97); border-bottom: 1px solid var(--line); padding: 14px max(18px,calc((100vw - 1180px)/2)); position: sticky; top: 0; z-index: 20; }
.search-field { align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; display: flex; height: 48px; margin-bottom: 11px; padding: 0 13px; }
.search-field:focus-within { background: white; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242,178,61,.28); }
.search-field svg { fill: none; flex: 0 0 auto; height: 20px; stroke: var(--muted); stroke-linecap: round; stroke-width: 2; width: 20px; }
.search-field input { background: transparent; border: 0; font-size: 16px; height: 100%; min-width: 0; outline: 0; padding: 0 0 0 9px; width: 100%; }
.category-scroll { min-width: 0; position: relative; }
.category-scroll::after { background: linear-gradient(90deg,rgba(255,253,248,0),rgba(255,253,248,.98) 68%); bottom: 0; content: ""; opacity: 0; pointer-events: none; position: absolute; right: 0; top: 0; transition: opacity 180ms ease; width: 54px; }
.category-scroll__cue { align-items: center; background: var(--ink); border-radius: 50%; color: white; display: flex; font-size: 1.5rem; height: 30px; justify-content: center; opacity: 0; pointer-events: none; position: absolute; right: 3px; top: 50%; transform: translateY(-50%); transition: opacity 180ms ease; width: 30px; z-index: 1; }
.category-scroll.has-overflow:not(.is-at-end)::after,
.category-scroll.has-overflow:not(.is-at-end) .category-scroll__cue { opacity: 1; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; padding-right: 42px; scroll-padding-right: 42px; scroll-snap-type: x proximity; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { background: white; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); flex: 0 0 auto; font-size: .73rem; font-weight: 800; min-height: 44px; padding: 0 15px; scroll-snap-align: start; }
.category-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }

.menu-section { margin: 0 auto; max-width: 1220px; padding: clamp(28px,5vw,58px) 20px 70px; }
.section-heading { align-items: flex-end; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 20px; }
.section-heading h2 { font-family: Georgia,serif; font-size: clamp(1.8rem,4vw,3rem); letter-spacing: -.04em; margin: 0; }
.section-heading p { color: var(--muted); font-size: .76rem; margin: 5px 0 0; }
.sync-status { align-items: center; color: var(--muted); display: flex; font-size: .67rem; font-weight: 750; gap: 6px; white-space: nowrap; }
.sync-status::before { background: #4aa06a; border-radius: 50%; content: ""; height: 7px; width: 7px; }
.sync-status.is-error::before { background: var(--red); }

.product-grid { display: grid; gap: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.product-card__image { background: #ded5c7; aspect-ratio: 4/3; overflow: hidden; }
.product-card__image img { height: 100%; object-fit: cover; transition: transform 260ms cubic-bezier(.22,1,.36,1); width: 100%; }
.product-card:hover .product-card__image img { transform: scale(1.025); }
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.product-card__category { color: var(--red); font-size: .62rem; font-weight: 850; margin-bottom: 5px; }
.product-card h3 { font-family: Georgia,serif; font-size: 1.2rem; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.product-card p { color: var(--muted); display: -webkit-box; font-size: .72rem; line-height: 1.45; margin: 8px 0 14px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-card__footer { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-top: auto; }
.product-card__price { font-size: 1.02rem; font-weight: 900; }
.details-button { background: var(--ink); border: 0; border-radius: 10px; color: white; font-size: .68rem; font-weight: 800; min-height: 44px; padding: 0 14px; }
.details-button:hover { background: var(--red); }
.details-button:active { opacity: .78; }

.skeleton-card { animation: pulse 1.2s ease-in-out infinite alternate; background: #e8ded0; border-radius: 18px; min-height: 360px; }
@keyframes pulse { to { opacity: .48; } }
.message-state { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 36px 20px; text-align: center; }
.message-state strong { font-family: Georgia,serif; font-size: 1.25rem; }
.message-state p { color: var(--muted); font-size: .76rem; line-height: 1.5; margin: 8px auto 17px; max-width: 340px; }
.message-state button { background: var(--ink); border: 0; border-radius: 10px; color: white; font-weight: 800; min-height: 48px; padding: 0 18px; }

.site-footer { align-items: center; background: var(--ink); color: white; display: flex; gap: 13px; justify-content: center; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); }
.site-footer img { object-fit: contain; }
.site-footer div { display: flex; flex-direction: column; }
.site-footer strong { font-size: .83rem; }
.site-footer span { color: rgba(255,255,255,.58); font-size: .68rem; margin-top: 3px; }

.dialog-layer { align-items: center; display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 80; }
.dialog-backdrop { background: rgba(13,10,8,.72); border: 0; inset: 0; position: absolute; width: 100%; }
.product-dialog { background: var(--paper); border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.3); max-height: calc(100dvh - 40px); max-width: 720px; overflow: auto; position: relative; width: 100%; z-index: 1; }
.product-dialog > img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.dialog-copy { padding: 22px; }
.dialog-copy > span { color: var(--red); font-size: .65rem; font-weight: 850; }
.dialog-copy h2 { font-family: Georgia,serif; font-size: clamp(1.7rem,5vw,2.6rem); letter-spacing: -.04em; margin: 5px 0 10px; }
.dialog-copy p { color: var(--muted); font-size: .85rem; line-height: 1.55; margin: 0 0 18px; }
.dialog-copy strong { font-size: 1.35rem; }
.close-button { align-items: center; background: rgba(23,20,17,.9); border: 0; border-radius: 50%; color: white; display: flex; height: 44px; justify-content: center; position: absolute; right: 12px; top: 12px; width: 44px; z-index: 2; }
.close-button svg { fill: none; height: 21px; stroke: currentColor; stroke-linecap: round; stroke-width: 2; width: 21px; }

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) {
  .site-header { min-height: 70px; }
  .brand img { height: 44px; width: 44px; }
  .hero { height: 330px; }
  .hero > img { object-position: 64% center; }
  .hero-shade { background: linear-gradient(0deg,rgba(12,9,7,.92) 0%,rgba(12,9,7,.42) 60%,rgba(12,9,7,.08) 100%); }
  .hero-copy { bottom: 26px; left: 20px; }
  .hero-copy h1 { max-width: 330px; }
  .menu-tools { padding: 12px 14px; }
  .menu-section { padding: 28px 14px 50px; }
  .product-grid { gap: 13px; grid-template-columns: 1fr; }
  .product-card { border-radius: 16px; display: grid; grid-template-columns: 128px minmax(0,1fr); min-height: 156px; }
  .product-card__image { aspect-ratio: auto; min-height: 100%; }
  .product-card__body { padding: 13px; }
  .product-card h3 { font-size: 1.04rem; }
  .product-card p { font-size: .67rem; margin-block: 6px 10px; }
  .product-card__footer { align-items: flex-end; }
  .details-button { padding-inline: 12px; }
  .skeleton-card { min-height: 156px; }
  .dialog-layer { align-items: flex-end; padding: 12px 0 0; }
  .product-dialog { border-radius: 22px 22px 0 0; max-height: calc(100dvh - 12px); }
  .product-dialog > img { aspect-ratio: 4/3; }
  .dialog-copy { padding: 19px 18px calc(24px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
