:root {
  --bg: #f5f1e5;
  --surface: #ffffff;
  --surface-soft: #ede6d6;
  --ink: #2b1f19;
  --muted: #6b5d54;
  --line: #e2d8c5;
  --maroon: #4a1a13;
  --maroon-dark: #36110c;
  --maroon-soft: #f3e6e4;
  --gold-soft: #efe3cc;
  --shadow-sm: 0 3px 12px rgba(43, 31, 25, 0.06);
  --shadow-md: 0 12px 30px rgba(43, 31, 25, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  padding-bottom: 100px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--maroon);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 14px;
  flex: none;
  box-shadow: 0 3px 10px rgba(43, 31, 25, 0.08);
}

.brand-text h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink);
}

.brand-text p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-weight: 700;
  font-size: 13px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.btn-link:hover {
  background: var(--surface-soft);
  border-color: #cfc1aa;
}

.hero-banner {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--maroon) 100%);
  color: #f5f1e5;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.hero-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.3px;
}

.hero-copy p {
  margin: 0;
  font-size: 14px;
  color: #eadfd0;
  max-width: 600px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  background: rgba(245, 241, 229, 0.12);
  border: 1px solid rgba(245, 241, 229, 0.22);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.35;
}

.meta-chip strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

/* Sticky Controls */
.controls {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(245, 241, 229, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 10px;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 12px;
}

.search-box:focus-within {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px var(--maroon-soft);
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 11px 0;
  outline: none;
  font-size: 15px;
}

.search-clear {
  border: 0;
  background: var(--surface-soft);
  color: var(--muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.quick-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 2px;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar {
  display: none;
}

.chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13.5px;
}

.chip.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.chip.filter-active {
  background: var(--ink);
  color: #f5f1e5;
  border-color: var(--ink);
}

/* Menu Sections & Cards */
.menu-main {
  padding-top: 16px;
}

.section-block {
  margin-bottom: 30px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--maroon);
  letter-spacing: -0.3px;
}

.section-head span {
  font-size: 13px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 980px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 31, 25, 0.08);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.card-title:hover {
  color: var(--maroon);
}

.badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-hit {
  background: var(--maroon);
  color: #fff;
}

.badge-new {
  background: var(--gold-soft);
  color: var(--ink);
  border: 1px solid #d9c8a9;
}

.badge-note {
  background: #f7ece4;
  color: #7d3e16;
  border: 1px solid #e6cab6;
}

.card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.variant-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.variant-pill {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
}

.variant-pill.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.options-hint {
  font-size: 12px;
  color: var(--maroon);
  background: var(--maroon-soft);
  padding: 5px 9px;
  border-radius: 8px;
  width: fit-content;
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.price {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price-tbd {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.btn-choose {
  border: 0;
  background: var(--maroon);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.btn-choose:hover {
  background: var(--maroon-dark);
}

.qty-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 3px;
}

.qty-inline button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  font-weight: 700;
}

.qty-inline span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

/* Floating Cart Bar */
.cart-bar {
  position: fixed;
  z-index: 25;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(680px, calc(100% - 24px));
  background: var(--maroon);
  color: #fff;
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 28px rgba(74, 26, 19, 0.35);
}

.cart-bar:hover {
  background: var(--maroon-dark);
}

/* Dialogs */
dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(520px, calc(100vw - 24px));
  max-height: 90vh;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

dialog::backdrop {
  background: rgba(43, 31, 25, 0.54);
  backdrop-filter: blur(4px);
}

.dialog-scroll {
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dialog-close {
  border: 0;
  background: var(--surface-soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  flex: none;
}

.option-group {
  margin: 12px 0;
}

.option-group label.group-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--muted);
}

.option-group select,
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.btn-primary {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--maroon);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.btn-primary:hover {
  background: var(--maroon-dark);
}

.btn-secondary {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--surface);
  font-weight: 600;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-row-info strong {
  display: block;
  font-size: 14.5px;
}

.cart-row-info small {
  color: var(--muted);
  font-size: 12px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.mode-tab {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  padding: 9px 6px;
  font-size: 13px;
  font-weight: 600;
}

.mode-tab.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.form-field {
  margin-bottom: 10px;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.order-summary-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-size: 13.5px;
  white-space: pre-wrap;
  margin: 12px 0;
}

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  padding: 24px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media print {
  .no-print,
  .controls,
  .cart-bar,
  .topbar-actions,
  .btn-choose,
  .qty-inline {
    display: none !important;
  }
  body {
    background: #fff;
    padding: 0;
  }
  .site-header {
    box-shadow: none;
    border-radius: 0;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
  }
}
