:root {
  color-scheme: dark;
  --page: #090909;
  --surface: #222222;
  --surface-raised: #2a2a2a;
  --line: #444444;
  --text: #f7f7f7;
  --muted: #bdbdbd;
  --gold: #f5b324;
  --card-width: min(58vw, 14rem);
  font-family: "futura-pt", Futura, "Avenir Next", "Century Gothic", sans-serif;
  background: var(--page);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--page); scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
  background: var(--page);
  color: var(--text);
  font-size: 17px;
}

button, input { font: inherit; }

a { color: inherit; }

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--page);
  box-shadow: 0 5px 16px rgb(0 0 0 / 40%);
}

.brand-band {
  position: relative;
  display: grid;
  min-height: 88px;
  place-items: center;
  overflow: hidden;
  background: var(--page);
}

.brand-lights {
  position: absolute;
  inset: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
}

.brand-lights i {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dot-color, #814e9a);
}

.brand-lights i:nth-child(6n + 2) { --dot-color: #bf2a73; }
.brand-lights i:nth-child(6n + 3) { --dot-color: #ef7c21; }
.brand-lights i:nth-child(6n + 4) { --dot-color: #f5bc22; }
.brand-lights i:nth-child(6n + 5) { --dot-color: #86aa35; }
.brand-lights i:nth-child(6n) { --dot-color: #1598bb; }

.brand-logo {
  position: relative;
  z-index: 1;
  display: grid;
  width: 184px;
  min-height: 62px;
  place-items: center;
  padding: 5px 14px;
  border: 3px solid #f7f7f7;
  border-radius: 18px;
  background: var(--page);
  box-shadow: 0 0 0 4px var(--page);
}

.brand-logo img {
  display: block;
  width: 100%;
  max-height: 48px;
  object-fit: contain;
  filter: invert(1);
}

.venue-strip {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 16px;
  background: var(--surface);
  font-size: 16px;
  letter-spacing: .02em;
}

.venue-tag {
  color: var(--gold);
  font-family: "futura-pt-bold", Futura, sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
}

.search-shell { padding: 0 12px 12px; }

.category-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 12px 1px 10px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.category-tabs:empty { display: none; }
.category-tabs::-webkit-scrollbar, .carousel::-webkit-scrollbar { display: none; }

.category-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 7px 14px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-family: "futura-pt-bold", Futura, sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-tab:hover, .category-tab:active { background: var(--gold); color: #111; }

.search-box {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1.5px solid #f1f1f1;
  border-radius: 12px;
  background: #111;
}

.search-box:focus-within { border-color: var(--gold); }

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

.search-box input::placeholder { color: #c3c3c3; opacity: 1; }
.search-box input::-webkit-search-cancel-button { display: none; }

.clear-search {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

[hidden] { display: none !important; }

.search-status {
  max-width: 1180px;
  min-height: 28px;
  margin: 8px auto;
  padding: 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.search-status:empty { display: none; }
.search-status.error { color: #ff9b9b; }

.menu-results { padding-bottom: 12px; }

.category-section { margin: 0 0 15px; scroll-margin-top: 250px; }

.category-heading, .subcategory-heading {
  margin: 0;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.category-heading { color: var(--gold); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.subcategory-section { margin-top: 0; }
.subcategory-heading { margin-top: 0; font-size: 19px; }

.carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 16px 16px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.product-card {
  display: flex;
  flex: 0 0 var(--card-width);
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0;
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
}

.product-card:hover { background: var(--surface-raised); }

.product-card img, .product-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  background: #151515;
}

.product-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 14px; }

.product-card-title {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 6px 8px 8px;
  font-size: 16px;
  line-height: 1.2;
}

.empty-state {
  margin: 18px 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.product-detail { max-width: 760px; margin: 0 auto; padding: 14px 16px 32px; }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 16px;
  text-decoration: none;
}

.detail-image {
  display: block;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 1.3 / 1;
  border-radius: 14px;
  background: #151515;
  object-fit: cover;
}

.detail-title { margin: 16px 0 4px; font-size: 28px; line-height: 1.1; }
.detail-meta { display: flex; gap: 14px; color: var(--gold); font-size: 16px; }
.detail-description { margin: 12px 0 22px; color: #dedede; line-height: 1.45; }

.customization-module {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.customization-module legend { padding: 0 6px; color: var(--gold); font-size: 18px; }

.customization-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 7px 4px;
  border-bottom: 1px solid #343434;
  cursor: pointer;
}

.customization-option:last-child { border-bottom: 0; }
.customization-option input { width: 20px; height: 20px; accent-color: var(--gold); }

.order-nav {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 68px;
  grid-template-columns: repeat(3, 1fr);
  padding: 7px 10px max(8px, env(safe-area-inset-bottom));
  background: #222;
  box-shadow: 0 -5px 16px rgb(0 0 0 / 35%);
}

.order-nav-item { display: grid; justify-items: center; gap: 2px; color: var(--gold); font-size: 11px; }
.order-nav-item svg { width: 25px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (min-width: 760px) {
  :root { --card-width: 210px; }
  .site-header { padding-right: max(16px, calc((100vw - 1180px) / 2)); padding-left: max(16px, calc((100vw - 1180px) / 2)); }
  .brand-band { min-height: 104px; }
  .venue-strip { margin: 0 -1px; padding-right: 16px; padding-left: 16px; }
  .search-shell { padding-right: 4px; padding-left: 4px; }
  .category-section { max-width: 1180px; margin-right: auto; margin-left: auto; }
  .carousel { gap: 14px; }
  .product-card-title { font-size: 17px; }
  .order-nav { left: auto; width: min(440px, 42vw); border-top-left-radius: 12px; }
}

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