:root {
  --red: #e4002b;
  --red-dark: #b40022;
  --red-soft: #ffe8ec;
  --ink: #171514;
  --ink-soft: #383330;
  --muted: #756e68;
  --bg: #f7f3ee;
  --card: #ffffff;
  --line: #e8ded4;
  --line-strong: #d9cbbf;
  --green: #147a4b;
  --green-soft: #e3f5eb;
  --amber: #a95d00;
  --amber-soft: #fff1d9;
  --shadow: 0 18px 50px rgba(49, 32, 20, 0.09);
  --shadow-soft: 0 8px 24px rgba(49, 32, 20, 0.07);
  --radius: 22px;
  --radius-sm: 14px;
  --topbar: 72px;
  --page: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(228, 0, 43, 0.09), transparent 62%),
    radial-gradient(700px 420px at 100% 0%, rgba(169, 93, 0, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 35.5h36' stroke='%23e4d8cc' stroke-width='1' stroke-dasharray='2 5'/%3E%3C/svg%3E");
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--topbar);
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(247, 243, 238, 0.88);
  border-bottom: 1px solid rgba(217, 203, 191, 0.7);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: 0 8px 18px rgba(228, 0, 43, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.location-button,
.install-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(48vw, 360px);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(49, 32, 20, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.location-button:hover,
.install-button:hover {
  border-color: var(--red);
  box-shadow: 0 8px 20px rgba(228, 0, 43, 0.09);
  transform: translateY(-1px);
}

.location-button svg:first-child {
  color: var(--red);
}

.location-button #locationButtonText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
}

.location-button .chevron {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.install-button {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}

.install-button svg {
  width: 1rem;
  height: 1rem;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cart-button:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

.cart-button.has-items {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(228, 0, 43, 0.18);
}

.cart-button svg {
  width: 1.12rem;
  height: 1.12rem;
}

.cart-total {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.78;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 850;
}

.cart-button.has-items .cart-count {
  background: #fff;
  color: var(--red-dark);
}

/* Main layout */

main {
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px) clamp(16px, 4vw, 40px) 64px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Empty state */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--topbar) - 180px);
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 0;
  text-align: center;
}

.empty-badge {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin-bottom: 26px;
  border-radius: 34px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 24px 50px rgba(228, 0, 43, 0.28);
  transform: rotate(-3deg);
}

.empty-badge span {
  font-size: 2rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.empty-badge small {
  margin-top: -10px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.empty-state h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.empty-copy {
  max-width: 550px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.12rem);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.empty-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.empty-features span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 1.12rem;
  height: 1.12rem;
}

.btn.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(228, 0, 43, 0.24);
}

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

.btn.secondary {
  border-color: var(--line-strong);
  background: var(--card);
}

.btn.secondary:hover {
  border-color: var(--red);
}

.btn.compare-button {
  border-color: rgba(228, 0, 43, 0.24);
  background: var(--red-soft);
  color: var(--red-dark);
  white-space: nowrap;
}

.btn.compare-button:hover {
  border-color: var(--red);
  background: #ffdde4;
}

.btn.compact {
  min-height: 42px;
  padding: 8px 14px;
  font-size: 0.84rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.icon-button:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.icon-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Location hero */

.location-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 0;
}

.hero-copy {
  padding: clamp(22px, 3.4vw, 38px);
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.open {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.preorder {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.closed {
  background: #fbe9e9;
  color: #a51f1f;
}

.status-pill.muted {
  background: #f0ece8;
  color: var(--muted);
}

.distance-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-name {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-address {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(228, 0, 43, 0.06), transparent 58%),
    #fcfaf8;
}

.hours-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hours-today {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hours-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hours-details {
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.hours-details summary {
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.hours-details summary::-webkit-details-marker {
  display: none;
}

.hours-details summary::after {
  content: "+";
  float: right;
  font-weight: 800;
}

.hours-details[open] summary::after {
  content: "−";
}

.hours-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.hours-table td {
  padding: 4px 0;
  color: var(--muted);
  vertical-align: top;
}

.hours-table td:last-child {
  color: var(--ink-soft);
  text-align: right;
  font-weight: 650;
}

.hours-table tr.today td {
  color: var(--ink);
  font-weight: 800;
}

.hero-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-map:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Menu toolbar */

.menu-toolbar {
  margin-top: clamp(26px, 4vw, 44px);
}

.menu-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.menu-heading h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.menu-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
}

.view-toggle-btn {
  min-height: 40px;
  padding: 7px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.view-toggle-btn:hover {
  color: var(--ink);
}

.view-toggle-btn.active {
  background: var(--ink);
  color: #fff;
}

.menu-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(49, 32, 20, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.menu-search:focus-within,
.dialog-search:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(228, 0, 43, 0.1);
}

.menu-search > svg {
  color: var(--muted);
}

.menu-search input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
}

.search-clear {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}

.search-clear svg {
  width: 0.9rem;
  height: 0.9rem;
}

.result-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.category-nav {
  position: sticky;
  top: var(--topbar);
  z-index: 20;
  display: flex;
  gap: 8px;
  margin: 0 -4px;
  padding: 10px 4px 11px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  border-top: 12px solid var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 14px -16px rgba(49, 32, 20, 0.3);
  overscroll-behavior-x: contain;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.category-chip:hover {
  border-color: var(--red);
}

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

/* Categories and item cards */

.menu-content {
  margin-top: 8px;
}

.category-section {
  scroll-margin-top: calc(var(--topbar) + 76px);
  margin-top: 32px;
}

.category-section:first-child {
  margin-top: 12px;
}

.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.category-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  letter-spacing: -0.03em;
}

.category-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 16px;
}

.item-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(49, 32, 20, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.item-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.item-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(140deg, #efe6dc, #faf6f1);
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.item-card:hover .item-media img {
  transform: scale(1.025);
}

.item-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(228, 0, 43, 0.14), transparent 36%),
    linear-gradient(135deg, #f1e7dd, #fbf7f2);
}

.item-placeholder span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: var(--red);
  color: #fff;
  font-size: 1.28rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: 0 10px 24px rgba(228, 0, 43, 0.18);
}

.price-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(23, 21, 20, 0.16);
  backdrop-filter: blur(6px);
}

.oos {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 21, 20, 0.62);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 15px 15px;
}

.item-name {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.item-desc {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.meta-chip {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.item-compare-slot:empty {
  display: none;
}

.compare-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.25;
}

.compare-badge::before {
  content: "↓";
  font-size: 0.86rem;
  font-weight: 900;
}

.compare-badge.better {
  background: var(--green-soft);
  color: var(--green);
}

.compare-badge.best {
  background: #eef5ff;
  color: #235a9e;
}

.compare-badge.best::before {
  content: "✓";
}

/* Item cart controls */

.item-controls-slot {
  margin-top: auto;
  padding-top: 11px;
}

.item-controls-slot:empty {
  display: none;
}

.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(228, 0, 43, 0.24);
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.add-button:hover {
  border-color: var(--red);
  background: #ffdde4;
}

.add-button:disabled {
  border-color: var(--line);
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  width: 100%;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--card);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.stepper button:hover {
  background: #ffdde4;
}

.stepper .qty {
  min-width: 24px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 850;
}

/* Cart dialog */

.cart-dialog {
  width: min(620px, calc(100vw - 24px));
}

.cart-panel {
  max-height: min(88vh, 900px);
}

.cart-content {
  flex: 1;
  padding: 16px 20px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 18px 42px;
  text-align: center;
}

.cart-empty-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: var(--red-soft);
  color: var(--red);
}

.cart-empty-icon svg {
  width: 1.8rem;
  height: 1.8rem;
}

.cart-empty h3 {
  margin: 4px 0 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.cart-empty p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cart-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto 28px;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.item-card.highlight {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.16), var(--shadow-soft);
}

.cart-thumb {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(140deg, #efe6dc, #faf6f1);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-thumb .item-placeholder {
  min-height: 100%;
}

.cart-thumb .item-placeholder span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 0.58rem;
}

.cart-line-main {
  min-width: 0;
}

.cart-line-main strong {
  display: block;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line-main span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.cart-line .stepper {
  width: 98px;
  flex: 0 0 auto;
}

.cart-line-total {
  min-width: 58px;
  text-align: right;
  font-size: 0.84rem;
  font-weight: 850;
}

.cart-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cart-remove:hover {
  background: #fbe9e9;
  color: #a51f1f;
}

.cart-remove svg {
  width: 0.9rem;
  height: 0.9rem;
}

.cart-advice {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-advice h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.cart-advice > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.advice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.advice-card {
  padding: 12px;
  border: 1px solid rgba(20, 122, 75, 0.22);
  border-radius: 13px;
  background: linear-gradient(150deg, var(--green-soft), #f7fffa);
}

.advice-card.meal {
  border-color: rgba(169, 93, 0, 0.22);
  background: linear-gradient(150deg, var(--amber-soft), #fffaf0);
}

.advice-card.coupon {
  border-color: rgba(228, 0, 43, 0.2);
  background: linear-gradient(150deg, var(--red-soft), #fff8f9);
}

.advice-tag {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}

.advice-card strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.3;
}

.advice-card p {
  margin: 3px 0 8px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.advice-card .btn {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 0.72rem;
}

.cart-footer {
  padding: 14px 20px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--card);
}

.cart-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-summary-row strong {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.cart-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.cart-footer .btn {
  width: 100%;
  margin-top: 10px;
}

/* Loading and errors */

.loading-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.skeleton-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
}

.skeleton-media,
.skeleton-line {
  background: linear-gradient(90deg, #eee7df 25%, #f8f3ed 45%, #eee7df 65%);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-media {
  aspect-ratio: 4 / 3;
  border-radius: 13px;
}

.skeleton-line {
  height: 12px;
  margin-top: 12px;
  border-radius: 6px;
}

.skeleton-line.short {
  width: 58%;
}

@keyframes shimmer {
  to {
    background-position: -120% 0;
  }
}

.error-block {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #efcaca;
  border-radius: 16px;
  background: #fff7f7;
  color: #7c2020;
}

.error-block strong {
  display: block;
  margin-bottom: 4px;
}

.error-block p {
  margin: 0 0 12px;
  font-size: 0.86rem;
}

.empty-menu {
  margin: 38px 0;
  padding: 38px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

/* Dialogs */

.dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: min(86vh, 920px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(23, 21, 20, 0.32);
}

.dialog.wide {
  width: min(900px, calc(100vw - 24px));
}

.dialog::backdrop {
  background: rgba(23, 21, 20, 0.52);
  backdrop-filter: blur(4px);
}

.dialog-panel {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  overflow: hidden;
  border-radius: inherit;
  background: var(--bg);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.dialog-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.dialog-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.dialog-tools {
  display: flex;
  gap: 10px;
  padding: 14px 20px 10px;
}

.dialog-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--card);
}

.dialog-search svg {
  color: var(--muted);
}

.dialog-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.9rem;
}

.geo-status {
  margin: 0;
  padding: 0 20px 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.geo-status.error {
  color: #a51f1f;
}

.outlet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 20px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.outlet-section-label {
  margin: 14px 2px 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.outlet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.outlet-row:hover {
  border-color: var(--red);
  box-shadow: 0 8px 18px rgba(228, 0, 43, 0.07);
  transform: translateY(-1px);
}

.outlet-row.selected {
  border-color: var(--red);
  background: #fff8f9;
}

.outlet-main {
  min-width: 0;
}

.outlet-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.outlet-name .check {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
}

.outlet-address {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outlet-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.outlet-distance {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.outlet-state {
  font-size: 0.64rem;
  font-weight: 750;
  white-space: nowrap;
}

.outlet-state.open {
  color: var(--green);
}

.outlet-state.preorder {
  color: var(--amber);
}

.outlet-state.closed {
  color: #a51f1f;
}

.outlet-more {
  padding: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Compare dialog */

.compare-content {
  padding: 18px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.compare-intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 5px;
  font-size: 1.28rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.summary-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.summary-card.accent {
  border-color: rgba(228, 0, 43, 0.22);
  background: var(--red-soft);
}

.summary-card.accent strong {
  color: var(--red-dark);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(130px, 0.8fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
}

.compare-row.best {
  border-color: rgba(20, 122, 75, 0.32);
  box-shadow: inset 4px 0 0 var(--green);
}

.compare-row.selected {
  border-color: rgba(228, 0, 43, 0.28);
  background: #fffafb;
}

.compare-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.compare-name .rank {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 850;
}

.compare-name .rank.good {
  background: var(--green);
}

.compare-sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.compare-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.diff-pill {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.diff-pill.good {
  background: var(--green-soft);
  color: var(--green);
}

.diff-pill.bad {
  background: #fbe9e9;
  color: #a51f1f;
}

.diff-pill.neutral {
  background: #f0ece8;
  color: var(--muted);
}

.compare-saving {
  text-align: right;
}

.compare-saving strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.compare-saving strong.good {
  color: var(--green);
}

.compare-saving strong.bad {
  color: #a51f1f;
}

.compare-saving small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.switch-button {
  margin-top: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.switch-button:hover {
  border-color: var(--red);
  color: var(--red-dark);
}

.compare-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.compare-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 16px;
  text-align: center;
}

.progress-track {
  width: min(320px, 100%);
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 240ms ease;
}

.compare-loading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: 0 14px 40px rgba(23, 21, 20, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 40px) 36px;
}

.footer strong {
  font-size: 0.86rem;
}

.footer p {
  max-width: 520px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

/* Responsive */

@media (max-width: 820px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .compare-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .compare-numbers {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .compare-saving {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  :root {
    --topbar: 64px;
  }

  .topbar {
    gap: 10px;
    padding: 8px 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 0.88rem;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  .location-button {
    max-width: 44vw;
    padding: 9px 11px;
  }

  .location-button #locationButtonText {
    font-size: 0.8rem;
  }

  .install-button span {
    display: none;
  }

  .install-button {
    display: none;
  }

  .cart-label,
  .cart-total {
    display: none;
  }

  .cart-button {
    padding: 9px 10px;
  }

  .menu-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .view-toggle {
    align-self: flex-start;
  }

  main {
    padding-top: 16px;
  }

  .empty-state {
    min-height: calc(100vh - var(--topbar) - 120px);
  }

  .empty-badge {
    width: 92px;
    height: 92px;
    border-radius: 26px;
  }

  .empty-badge span {
    font-size: 1.62rem;
  }

  .empty-actions {
    width: 100%;
    flex-direction: column;
  }

  .empty-actions .btn {
    width: 100%;
  }

  .menu-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .compare-button {
    align-self: flex-start;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn:first-child {
    grid-column: 1 / -1;
  }

  .item-grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .item-card {
    border-radius: 15px;
  }

  .item-media {
    aspect-ratio: 1 / 1;
  }

  .item-body {
    padding: 10px 11px 11px;
  }

  .item-name {
    font-size: 0.86rem;
  }

  .item-desc {
    display: none;
  }

  .price-tag {
    right: 7px;
    bottom: 7px;
    padding: 5px 7px;
    border-radius: 8px;
    font-size: 0.82rem;
  }

  .meta-chip {
    font-size: 0.58rem;
  }

  .compare-badge {
    font-size: 0.62rem;
  }

  .dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }

  .dialog-head {
    padding: 18px 16px 14px;
  }

  .dialog-tools {
    flex-direction: column;
    padding: 12px 16px 8px;
  }

  .outlet-list {
    padding: 6px 16px 22px;
  }

  .compare-content {
    padding: 16px;
  }

  .cart-content {
    padding: 14px 14px 6px;
  }

  .cart-line {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px;
  }

  .cart-thumb {
    width: 48px;
    height: 48px;
  }

  .cart-line .stepper {
    grid-column: 2 / 3;
    width: 96px;
  }

  .cart-line-total {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .cart-remove {
    position: absolute;
    right: 8px;
    top: 8px;
  }

  .cart-line {
    position: relative;
  }

  .cart-line-main {
    padding-right: 26px;
  }

  .cart-footer {
    padding: 12px 14px max(16px, env(safe-area-inset-bottom));
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  .summary-card strong {
    margin: 0;
    font-size: 1.1rem;
  }

  .summary-card small {
    display: none;
  }

  .compare-row {
    gap: 8px;
    padding: 12px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 360px) {
  .item-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .item-media {
    aspect-ratio: 4 / 3;
  }

  .item-desc {
    display: -webkit-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
