﻿:root {
  color-scheme: light;
  --accent: #9f3434;
  --accent-dark: #7f2828;
  --ink: #1d2429;
  --muted: #68727a;
  --line: #e2ded8;
  --surface: #ffffff;
  --page: #f5f3ef;
  --menu-doodle-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%239aa0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.28'%3E%3Cpath d='M30 42h44v28a18 18 0 0 1-18 18h-8a18 18 0 0 1-18-18z'/%3E%3Cpath d='M74 52h8a11 11 0 0 1 0 22h-8'/%3E%3Cpath d='M38 32c-6-8 5-11 0-19M54 32c-6-8 5-11 0-19M70 32c-6-8 5-11 0-19'/%3E%3Cpath d='M132 36l45 17-35 30-10-47z'/%3E%3Cpath d='M142 51l20 7M137 65l15 6'/%3E%3Ccircle cx='213' cy='53' r='18'/%3E%3Ccircle cx='213' cy='53' r='7'/%3E%3Cpath d='M26 148c13-22 44-22 57 0-7 8-17 13-29 13s-22-5-28-13z'/%3E%3Cpath d='M35 146c5 5 12 8 20 8s15-3 20-8'/%3E%3Cpath d='M114 132h48v48h-48zM130 132v48M146 132v48M114 148h48M114 164h48'/%3E%3Cpath d='M204 126h30l-5 42h-20z'/%3E%3Cpath d='M203 126c2-15 30-15 32 0M210 116c2-10 16-10 18 0'/%3E%3Cpath d='M43 219c-10-12 5-29 18-18 14-11 28 6 18 18-8 9-20 16-18 16s-10-7-18-16z'/%3E%3Cpath d='M123 215c12-18 32-18 44 0M132 214c5 5 21 5 26 0'/%3E%3Cpath d='M204 211c10-13 28-2 22 13-5 13-24 11-28-2M211 215c4 3 8 3 12 0'/%3E%3Cpath d='M101 62c7-7 18-7 25 0M107 73c5-5 12-5 17 0'/%3E%3Cpath d='M224 96c8-7 19-7 27 0M231 108c4-4 10-4 14 0'/%3E%3C/g%3E%3Cg fill='%239aa0a6' opacity='.18'%3E%3Ccircle cx='101' cy='27' r='3'/%3E%3Ccircle cx='97' cy='95' r='2.5'/%3E%3Ccircle cx='187' cy='111' r='3'/%3E%3Ccircle cx='23' cy='111' r='2.5'/%3E%3Ccircle cx='92' cy='191' r='3'/%3E%3Ccircle cx='184' cy='221' r='2.5'/%3E%3Cpath d='M18 102l4 8-8-3z'/%3E%3Cpath d='M185 22l5 8-9-2z'/%3E%3Cpath d='M245 183l5 8-9-2z'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page);
  background-image: linear-gradient(rgba(245, 243, 239, .72), rgba(245, 243, 239, .72)), var(--menu-doodle-pattern);
  background-repeat: repeat, repeat;
  background-size: auto, 230px 230px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 16px 128px;
  background: transparent;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr 52px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  background: rgba(250, 249, 246, .92);
  backdrop-filter: blur(14px);
}

.header-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wifi-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cfdedb;
  border-radius: 999px;
  background: #edf5f3;
  color: #0f5f5c;
  padding: 0;
}

.wifi-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.app-header h1 {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.icon-btn,
.back-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 84px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.language-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.language-switch button.active {
  background: var(--ink);
  color: white;
}

.header-spacer {
  justify-self: end;
  width: 42px;
  height: 42px;
}

.status {
  min-height: 28px;
  color: var(--muted);
  font-size: 13px;
}

.status.ok {
  color: #166534;
}

.status.error {
  color: #b42318;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  align-items: start;
}

.category-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #ddd center / cover no-repeat;
  text-align: left;
  isolation: isolate;
  box-shadow: 0 18px 34px rgba(32, 21, 14, .15);
  transition: transform .18s ease, box-shadow .18s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .72)), linear-gradient(135deg, transparent, color-mix(in srgb, var(--category-tone, var(--accent)) 34%, transparent));
  z-index: -1;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(32, 21, 14, .2);
}

.category-card .card-kicker {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 48px;
  color: #d69b45;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.3;
}

.category-card strong {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 16px;
  color: white;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.08;
}

.product-view[hidden] {
  display: none;
}

.product-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 48px;
}

.product-head h2 {
  margin: 0;
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
}

.product-list {
  display: grid;
  gap: 16px;
}

.subcategory-block {
  display: grid;
  gap: 12px;
}

.subcategory-title {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 900;
}

.subcategory-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.product-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.product-row.sold-out {
  opacity: .56;
}

.product-row.sold-out h3,
.product-row.sold-out p,
.product-row.sold-out .price {
  text-decoration: line-through;
}

.product-photo {
  width: 84px;
  height: 74px;
  border-radius: 6px;
  background: #ddd center / cover no-repeat;
}

.product-row h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 900;
}

.product-row p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.price {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  color: #b7791f;
  font-size: 12px;
  font-weight: 900;
}

.price del {
  color: var(--muted);
  font-weight: 700;
}

.campaign-pill,
.stock-note {
  display: inline-flex;
  width: fit-content;
  margin: 0 6px 4px 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.campaign-pill {
  padding: 3px 7px;
  background: #f7ecea;
  color: var(--accent);
}

.stock-note {
  color: var(--muted);
}

.waiter-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: grid;
  padding: 10px max(14px, calc((100vw - 430px) / 2 + 14px)) calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 249, 246, .94);
  box-shadow: 0 -12px 34px rgba(32, 21, 14, .16);
  backdrop-filter: blur(14px);
}

.call-btn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 26px rgba(159, 52, 52, .22);
  font-size: 16px;
  font-weight: 900;
}

.call-btn:disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.product-modal[hidden],
.wifi-modal[hidden] {
  display: none;
}

.product-modal,
.wifi-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .48);
}

.wifi-modal-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .3);
}

.wifi-modal-card h2 {
  margin: 0;
  font-size: 24px;
}

.wifi-line {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfb;
}

.wifi-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.wifi-line strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
}

.product-modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(260px, 420px);
  width: min(820px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border-radius: 10px;
  background: white;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .3);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-weight: 900;
}

.modal-product-photo {
  min-height: 420px;
  background: #ddd center / cover no-repeat;
}

.modal-product-body {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.modal-category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-product-body h2,
.modal-product-body p {
  margin: 0;
}

.modal-product-body h2 {
  font-size: 26px;
}

.modal-product-body p {
  color: var(--muted);
  line-height: 1.45;
}

.modal-product-price {
  color: #b7791f;
  font-size: 20px;
}

.waffle-options {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8f4;
}

.waffle-options > strong {
  font-size: 14px;
}

.waffle-option-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.waffle-option-group legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.waffle-option-group div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.waffle-option-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 12px;
}

.waffle-option-item.option-sold-out {
  opacity: .55;
}

.waffle-option-item.option-sold-out span,
.waffle-option-item.option-sold-out b {
  text-decoration: line-through;
}

.waffle-option-item b {
  color: #b7791f;
  font-size: 11px;
}

@media (min-width: 900px) {
  .app-header {
    grid-template-columns: minmax(160px, auto) 1fr 70px;
    min-height: 64px;
  }

  .app-header h1 {
    font-size: 18px;
  }

}

@media (max-width: 560px) {
  body {
    background-color: #f5f3ef;
    background-image: var(--menu-doodle-pattern);
    background-size: 230px 230px;
  }

  .phone-shell {
    width: min(430px, 100%);
    padding: 12px 12px 128px;
    background: transparent;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    min-height: 174px;
    border-radius: 8px;
  }

  .category-card .card-kicker {
    bottom: 42px;
    font-size: 9px;
  }

  .category-card strong {
    bottom: 13px;
    font-size: 16px;
  }

  .app-header {
    grid-template-columns: minmax(132px, auto) 1fr 42px;
  }

  .language-switch {
    width: 74px;
  }

  .wifi-button {
    width: 36px;
    height: 36px;
  }

  .waiter-bar {
    padding: 0 0 env(safe-area-inset-bottom);
  }

  .call-btn {
    min-height: 64px;
    border-radius: 0;
    font-size: 17px;
  }

  .product-modal {
    align-items: stretch;
    justify-items: stretch;
    overflow: hidden;
    padding: 10px;
  }

  .product-modal-card {
    grid-template-columns: 1fr;
    grid-template-rows: 116px minmax(0, 1fr);
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    max-height: none;
  }

  .modal-product-photo {
    min-height: 116px;
    height: 116px;
  }

  .modal-product-body {
    gap: 9px;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
  }

  .modal-product-body h2 {
    font-size: 21px;
  }

  .modal-product-body p {
    font-size: 13px;
    line-height: 1.35;
  }

  .waffle-options {
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
  }

  .waffle-option-group div {
    grid-template-columns: 1fr;
  }

  .waffle-option-item {
    min-height: 46px;
    font-size: 13px;
  }

}
.category-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--category-tone, var(--accent)) 78%, white);
  color: white;
  font-size: 16px;
  font-weight: 900;
}

