:root {
  --red: #e0262f;
  --red-dark: #a8141c;
  --yellow: #ffd95a;
  --blue: #048ed2;
  --ink: #222;
  --muted: #6f6f6f;
  --line: #eee;
  --sand: #fff8e8;
  --white: #fff;
  --shadow: 0 18px 45px rgba(20, 20, 20, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
body.drawer-open { overflow: hidden; }
a { color: inherit; }
.container { width: min(1180px, 92vw); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 12px; background: #fff; color: #000; padding: 10px 14px; border-radius: 999px; z-index: 20; }
.skip-link:focus { left: 12px; }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 0%, #fff4dc 52%, #ffe28b 100%); border-bottom: 1px solid #f4e2b7; }
.hero__pattern { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(90deg, rgba(151,94,32,.16) 8%, transparent 8%, transparent 16%, rgba(151,94,32,.16) 16%, rgba(151,94,32,.16) 24%, transparent 24%), linear-gradient(rgba(151,94,32,.12) 1px, transparent 1px); background-size: 56px 56px, 22px 22px; }
.hero__grid { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; padding: 34px 0 42px; }
.brand-card { background: #fff; border: 4px solid #f3d17c; border-radius: 30px; box-shadow: var(--shadow); padding: 12px; transform: rotate(-1deg); }
.brand-logo { display: block; width: 100%; height: auto; border-radius: 20px; }
.hero__content h1 { font-size: clamp(2.2rem, 5vw, 5rem); line-height: .95; margin: 8px 0 18px; color: var(--red-dark); letter-spacing: -.06em; }
.hero__content h1 strong { color: var(--red); text-shadow: 2px 3px 0 rgba(255,217,90,.85); }
.hero__content p { font-size: 1.12rem; max-width: 700px; margin: 0 0 22px; color: #3a3128; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--yellow); border: 2px solid var(--red); border-radius: 50%; }
.hero__actions, .order-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 900; text-decoration: none; cursor: pointer; transition: .2s ease; min-height: 46px; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled, .icon-btn:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.btn--instagram { background: linear-gradient(135deg, #fdc468, #df4996, #4f5bd5); color: #fff; box-shadow: 0 10px 25px rgba(223,73,150,.25); }
.btn--ghost { background: #fff; color: var(--red-dark); border: 2px solid rgba(224,38,47,.18); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 22px rgba(224,38,47,.24); }
.btn--ghost-dark { background: #f7f7f7; color: #202020; }
.btn--danger { background: #fff0f0; color: var(--red-dark); }

.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding: 34px 0; }
.menu-panel, .order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.menu-panel { padding: 22px; }
.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.toolbar h2, .order-card h2 { font-size: 2rem; margin: 4px 0 0; color: var(--red-dark); letter-spacing: -.04em; }
.search-box { display: grid; gap: 6px; min-width: 280px; color: var(--muted); font-weight: 800; font-size: .82rem; }
.search-box input { width: 100%; border: 2px solid #f1d58b; border-radius: 999px; padding: 13px 16px; font: inherit; outline: none; background: #fffdf8; }
.search-box input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224,38,47,.1); }
.notice { background: var(--sand); border-left: 5px solid var(--yellow); padding: 14px 16px; border-radius: 16px; margin: 14px 0 18px; color: #514332; }
.accordion { display: grid; gap: 12px; }

.category { border: 1px solid #f0e4c8; border-radius: 20px; overflow: hidden; background: #fff; }
.category__header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; background: #fff; padding: 18px; cursor: pointer; text-align: left; }
.category__title { display: flex; align-items: center; gap: 12px; }
.category__icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; background: var(--sand); font-size: 1.35rem; }
.category__name { display: block; margin: 0; font-size: 1.08rem; color: #262626; font-weight: 900; }
.category__meta { display: block; font-size: .82rem; color: var(--muted); font-weight: 800; }
.category__chevron { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fff4dc; color: var(--red); font-size: 1.4rem; transition: .2s; }
.category.open .category__chevron { rotate: 45deg; background: var(--red); color: #fff; }
.category__body { padding: 0 14px 16px; }
.items { display: grid; gap: 10px; }

.item { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid #f3f3f3; border-radius: 16px; padding: 13px; background: #fff; overflow: hidden; }
.item.has-image { grid-template-columns: 90px minmax(0, 1fr) auto; }
.item:hover { border-color: #f0c564; background: #fffdf7; }
.item__image { width: 90px; height: 76px; border-radius: 12px; object-fit: cover; background: #f3f3f3; }
.item__content { min-width: 0; }
.item__name { font-weight: 900; }
.item__desc { font-size: .86rem; color: var(--muted); margin-top: 2px; }
.item__price { font-weight: 900; color: var(--red-dark); white-space: nowrap; text-align: right; }
.item__actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.qty-pill { min-width: 34px; text-align: center; font-weight: 900; background: #fff4dc; border-radius: 999px; padding: 4px 8px; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.15rem; font-weight: 900; cursor: pointer; }
.icon-btn.minus { background: #f3f3f3; color: #333; }

.item.is-unavailable { background: #f8f8f8; border-color: #e7e7e7; }
.item.is-unavailable::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.58); pointer-events: none; z-index: 2; }
.unavailable-badge { position: relative; z-index: 3; display: inline-flex; width: max-content; max-width: 100%; align-items: center; border-radius: 999px; background: #3b3b3b; color: #fff; padding: 5px 10px; margin-bottom: 6px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.item.is-unavailable .item__actions { visibility: hidden; }
.item.is-unavailable .item__price { text-decoration: line-through; color: #777; }

.order-panel { position: relative; }
.order-card { position: sticky; top: 16px; padding: 22px; }
.empty-state { padding: 18px; border: 1px dashed #ddd; border-radius: 18px; color: var(--muted); background: #fafafa; text-align: center; margin: 14px 0; }
.order-list { display: grid; gap: 10px; margin: 14px 0; max-height: 45vh; overflow: auto; padding-right: 4px; }
.order-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.order-item strong { display: block; }
.order-item span { color: var(--muted); font-size: .88rem; }
.order-total { display: flex; align-items: center; justify-content: space-between; border-top: 2px solid #f1d58b; margin-top: 12px; padding-top: 14px; font-size: 1.05rem; }
.order-total strong { color: var(--red); font-size: 1.35rem; }
.order-actions .btn { width: 100%; }

.drawer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.drawer__content { position: relative; width: min(680px, 96vw); max-height: 88vh; overflow: auto; background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 22px 70px rgba(0,0,0,.32); }
.drawer__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: #fff4dc; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.drawer h2 { color: var(--red-dark); margin: 8px 40px 4px 0; }
pre { white-space: pre-wrap; background: #111; color: #fff; border-radius: 18px; padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; }

.footer { border-top: 1px solid #eee; background: #fffdf7; }
.footer__content { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; color: #5f5142; }
.footer a { font-weight: 900; color: var(--red); text-decoration: none; }
.footer__credits { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 0 22px; text-align: center; flex-wrap: wrap; }
.admin-link { font-size: .78rem; opacity: .7; }
.admin-link:hover { opacity: 1; }
.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; background: #1b1b1b; color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 800; z-index: 70; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.menu-status, .empty-search { padding: 24px; border: 1px dashed #e6d6b2; border-radius: 18px; text-align: center; color: var(--muted); background: #fffdf8; font-weight: 800; }
.menu-status--error { color: var(--red-dark); border-color: #edb9b9; background: #fff6f6; }
.noscript { margin: 18px; padding: 16px; background: #fff0f0; color: #8b151b; border-radius: 12px; text-align: center; }
.btn:focus-visible, .icon-btn:focus-visible, .category__header:focus-visible, .drawer__close:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 150px 1fr; }
  .main-grid { grid-template-columns: 1fr; }
  .order-card { position: static; }
  .order-list { max-height: none; }
}

@media (max-width: 680px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; padding-top: 22px; }
  .brand-card { width: 150px; margin: auto; }
  .hero__actions { justify-content: center; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .menu-panel { padding: 14px; border-radius: 18px; }
  .item, .item.has-image { grid-template-columns: 76px minmax(0, 1fr); }
  .item:not(.has-image) { grid-template-columns: 1fr; }
  .item__image { width: 76px; height: 72px; }
  .item__price { grid-column: 2; text-align: left; }
  .item:not(.has-image) .item__price { grid-column: 1; }
  .footer__content { flex-direction: column; text-align: center; }
  .category__header { padding: 15px; }
  .hero__content p { font-size: 1rem; }
  .main-grid { width: min(100% - 22px, 1180px); padding-top: 18px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

