/* Template 02 — universal app shell.
   All brand colours/fonts come from the tenant theme (inline CSS vars),
   all content comes from the database; this file only defines structure. */
:root {
  --v2-dark: #101216;
  --v2-dark-2: #1a1d23;
  --v2-dark-3: #272b33;
  --font-sans: "Onest", "Helvetica Neue", sans-serif;
  --font: var(--font-sans);
  --ink: var(--text, #15171c);
  --ink-soft: var(--text, #363a42);
  --muted: var(--muted, #6d727c);
  --muted-2: color-mix(in srgb, var(--muted, #6d727c) 62%, var(--surface, #fff));
  --line-strong: color-mix(in srgb, var(--line, #e4e6e0) 60%, var(--text, #15171c));
  --red: var(--primary, #e01b1b);
  --red-dark: var(--primary-hover, #b90f0f);
  --lime: var(--primary, #d9ff63);
  --lime-ink: var(--primary-ink, #fff);
  --mint: var(--surface-2, #edf8d4);
  --green: var(--primary, #2f7a52);
  --fs-10: 0.625rem;
  --fs-11: 0.6875rem;
  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-26: 1.625rem;
  --fs-34: 2.125rem;
  --fs-44: 2.75rem;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(16, 18, 22, 0.05);
  --shadow-md: 0 16px 44px rgba(16, 18, 22, 0.1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-14);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.sprite,
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- app shell ---------- */

.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 308px;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--surface);
  box-shadow: 0 0 80px rgba(16, 18, 22, 0.08);
}

.rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 28px 20px 22px;
  overflow: auto;
  background: var(--v2-dark);
  color: #fff;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.rail-brand-name {
  min-width: 0;
  overflow: hidden;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rail-word {
  font-size: var(--fs-22);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.rail-word b {
  color: var(--lime);
  font-weight: 800;
}

.rail-nav {
  display: grid;
  gap: 4px;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.58);
  font-size: var(--fs-13);
  font-weight: 550;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.rail-link:hover {
  background: var(--v2-dark-2);
  color: #fff;
}

.rail-link.is-active {
  background: var(--v2-dark-3);
  color: #fff;
}

.rail-link.is-active .icon {
  color: var(--primary, #d9ff63);
}

.rail-link b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
}

.rail-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.52);
  font-size: var(--fs-11);
  line-height: 1.45;
}

.rail-status i {
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--primary, #d9ff63);
  box-shadow: 0 0 0 4px rgba(217, 255, 99, 0.1);
}

.rail-status b {
  display: block;
  color: #fff;
  font-weight: 650;
}

.rail-info {
  display: grid;
  gap: 9px;
  color: rgba(255, 255, 255, 0.48);
  font-size: var(--fs-11);
  line-height: 1.5;
}

.rail-info a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rail-info a:hover {
  color: #fff;
}

.rail-info .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--primary, #d9ff63);
}

.rail-foot {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  width: max-content;
}

.lang button {
  min-width: 32px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 700;
}

.lang button.is-active {
  background: var(--primary, #d9ff63);
  color: var(--primary-ink, #1a2100);
}

.rail-foot p {
  margin: 0;
  color: rgba(255, 255, 255, 0.26);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface, #fff) 94%, transparent);
  backdrop-filter: blur(14px);
}

.topbar-logo {
  display: none;
}

.topbar-logo img {
  width: auto;
  height: 24px;
}

.topbar-title {
  font-size: var(--fs-16);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(310px, 37%);
  min-height: 40px;
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--muted);
}

.topbar-search:focus-within {
  border-color: var(--ink);
  background: var(--surface);
}

.topbar-search .icon {
  width: 16px;
  height: 16px;
}

.topbar-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--fs-12);
}

.topbar-search input::placeholder {
  color: var(--muted-2);
}

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

.topbar-search + .topbar-actions {
  margin-left: 0;
}

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--primary, #2f7a52);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.open-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary, #2f7a52);
}

.lang-top {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.cart-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 10px;
  background: var(--v2-dark);
  color: #fff;
  font-size: var(--fs-12);
  font-weight: 650;
}

.cart-top b {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--primary, #d9ff63);
  color: var(--primary-ink, #1a2100);
  font-size: 10px;
  font-weight: 800;
}

/* ---------- feed ---------- */

.feed {
  display: grid;
  gap: 22px;
  padding: 26px 24px 34px;
  background: var(--surface-2);
}

.feed-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: var(--fs-10);
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feed-head h1 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.feed-head p {
  max-width: 300px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-12);
}

.feed-head .head-note {
  max-width: 210px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: var(--fs-11);
  line-height: 1.5;
}

.service-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.service-strip::-webkit-scrollbar {
  display: none;
}

.service-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-11);
  font-weight: 650;
  white-space: nowrap;
}

.service-chip .icon {
  width: 14px;
  height: 14px;
}

.service-chip.is-active {
  border-color: var(--v2-dark);
  background: var(--v2-dark);
  color: #fff;
}

.service-chip.is-active .icon {
  color: var(--lime);
}

/* ---------- hero ---------- */

.hero-card {
  position: relative;
  display: flex;
  min-height: 272px;
  overflow: hidden;
  align-items: flex-end;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--v2-dark);
  color: #fff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card--noimage {
  background:
    radial-gradient(120% 120% at 80% 20%, color-mix(in srgb, var(--primary, #e01b1b) 30%, transparent), transparent 55%),
    var(--v2-dark);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 18, 22, 0.96) 0%, rgba(16, 18, 22, 0.72) 46%, rgba(16, 18, 22, 0.12) 100%);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 45%;
  background: linear-gradient(0deg, rgba(16, 18, 22, 0.74), transparent);
}

.hero-card-content {
  max-width: 460px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  color: var(--primary, #d9ff63);
  font-size: var(--fs-10);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--primary, #d9ff63);
}

.hero-card h2 {
  margin: 0 0 9px;
  max-width: 430px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-card p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-12);
  line-height: 1.5;
}

.hero-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.hero-price {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-11);
  font-weight: 600;
}

.hero-price b {
  color: #fff;
  font-size: var(--fs-16);
  font-weight: 750;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: var(--fs-13);
  font-weight: 700;
  transition: background 160ms var(--ease), transform 160ms var(--ease), border-color 160ms var(--ease);
}

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

.btn--primary {
  background: var(--red);
  color: #fff;
}

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

.btn--lime {
  background: var(--primary, #e01b1b);
  color: var(--primary-ink, #fff);
}

.btn--lime:hover {
  background: var(--primary-hover, #b90f0f);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--surface-2);
}

.btn--block {
  width: 100%;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

/* ---------- sections ---------- */

.section {
  display: grid;
  gap: 12px;
}

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-row h2 {
  margin: 0;
  font-size: var(--fs-18);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-row a {
  color: var(--muted);
  font-size: var(--fs-11);
  font-weight: 650;
}

.section-row a:hover {
  color: var(--ink);
}

.popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.popular-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-3);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease);
}

.popular-card:hover .card-media img {
  transform: scale(1.04);
}

.card-flag {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--primary, #d9ff63);
  color: var(--primary-ink, #1a2100);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-body {
  padding: 12px;
}

.card-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  font-size: var(--fs-13);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.card-price {
  font-size: var(--fs-13);
  font-weight: 800;
}

.add {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

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

.add .icon {
  width: 15px;
  height: 15px;
}

.menu-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.menu-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-thumb {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-3);
}

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

.menu-item h3 {
  margin: 0 0 3px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.menu-item p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--fs-10);
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.menu-price {
  font-size: var(--fs-12);
  font-weight: 800;
  white-space: nowrap;
}

.menu-item .add {
  width: 32px;
  height: 32px;
}

/* ---------- right cart panel ---------- */

.cart-panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100vh;
  padding: 24px;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.panel-head span {
  color: var(--muted);
  font-size: var(--fs-11);
  font-weight: 650;
}

.panel-head b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--v2-dark);
  color: var(--lime);
  font-size: 10px;
}

.panel-lines {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.panel-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.panel-line img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.panel-line h3 {
  margin: 0 0 2px;
  overflow: hidden;
  font-size: var(--fs-11);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-line p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.panel-line > b {
  font-size: var(--fs-11);
  font-weight: 750;
  white-space: nowrap;
}

.panel-progress {
  display: grid;
  gap: 7px;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.panel-progress p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.panel-progress p b {
  color: var(--ink);
  font-weight: 700;
}

.progress {
  overflow: hidden;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--line);
}

.progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary, #d9ff63);
}

.panel-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.panel-total span {
  color: var(--muted);
  font-size: var(--fs-12);
}

.panel-total strong {
  font-size: var(--fs-26);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.panel-link {
  display: flex;
  justify-content: center;
  min-height: 40px;
  align-items: center;
  color: var(--muted);
  font-size: var(--fs-11);
  font-weight: 650;
}

.panel-link:hover {
  color: var(--ink);
}

/* ---------- cart page ---------- */

.cart-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.cart-head h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.cart-head .cart-count-label {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: var(--fs-12);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.stepper-step {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.stepper-step::before {
  content: attr(data-step);
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 9px;
}

.stepper-step.is-active {
  background: var(--v2-dark);
  color: #fff;
}

.stepper-step.is-active::before {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--lime-ink);
}

.cart-lines-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-of-type {
  border-bottom: 1px dashed var(--line-strong);
}

.cart-line-media {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-3);
}

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

.cart-line h2 {
  margin: 1px 0 4px;
  font-size: var(--fs-13);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.cart-line p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: var(--fs-10);
}

.qty {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.qty button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
}

.qty button:hover {
  background: var(--surface-2);
}

.qty button:disabled {
  color: var(--muted-2);
}

.qty .icon {
  width: 13px;
  height: 13px;
}

.qty span {
  min-width: 24px;
  text-align: center;
  font-size: var(--fs-11);
  font-weight: 750;
}

.cart-line-side {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 15px;
}

.cart-line-price {
  font-size: var(--fs-13);
  font-weight: 800;
  white-space: nowrap;
}

.remove {
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
}

.remove:hover {
  background: #fbeaea;
  color: var(--red);
}

.remove .icon {
  width: 14px;
  height: 14px;
}

.cart-lines-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  color: var(--muted);
  font-size: var(--fs-10);
}

.cart-lines-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

.cart-lines-foot .icon {
  width: 13px;
  height: 13px;
}

.upsell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.upsell img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.upsell div {
  flex: 1;
}

.upsell h3 {
  margin: 0 0 2px;
  font-size: var(--fs-11);
  font-weight: 750;
}

.upsell p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.upsell .add {
  width: 32px;
  height: 32px;
}

/* ---------- checkout panel ---------- */

.cart-panel--checkout {
  gap: 14px;
}

.panel-sub {
  color: var(--muted);
  font-size: var(--fs-10);
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-2);
}

.service-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.service-tabs button .icon {
  width: 13px;
  height: 13px;
}

.service-tabs button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.summary-form {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 5px;
}

.field label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  font-size: var(--fs-11);
  outline: 0;
  transition: border-color 150ms var(--ease), background 150ms var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
}

.field textarea {
  min-height: 62px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.summary-rows {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: var(--fs-10);
}

.summary-row span:last-child {
  color: var(--ink);
  text-align: right;
}

.summary-row--total {
  color: var(--ink);
  font-size: var(--fs-12);
  font-weight: 700;
}

.summary-row--total span:last-child {
  font-size: var(--fs-22);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.summary-note {
  display: flex;
  align-items: start;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.summary-note .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

/* ---------- mobile navigation ---------- */

.bottom-nav {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: stretch;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface, #fff) 97%, transparent);
  backdrop-filter: blur(16px);
}

.nav-item {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.nav-item .icon {
  width: 20px;
  height: 20px;
}

.nav-item.is-active {
  color: var(--ink);
}

.nav-item.is-active .icon {
  color: var(--primary, #e01b1b);
}

.nav-item b {
  position: absolute;
  top: 3px;
  left: calc(50% + 7px);
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--primary, #e01b1b);
  color: var(--primary-ink, #fff);
  font-size: 8px;
  font-weight: 800;
}

.checkout-bar {
  position: fixed;
  z-index: 55;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface, #fff) 97%, transparent);
  backdrop-filter: blur(16px);
}

.checkout-bar .checkout-total {
  display: grid;
  flex: 1;
  gap: 0;
}

.checkout-total span {
  color: var(--muted);
  font-size: 9px;
}

.checkout-total strong {
  font-size: var(--fs-18);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.checkout-bar .btn {
  min-width: 160px;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--v2-dark);
  color: #fff;
  font-size: var(--fs-11);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

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

.toast .icon {
  width: 14px;
  height: 14px;
}

/* ---------- breakpoints ---------- */

@media (max-width: 1160px) {
  .app {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .cart-panel {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .feed {
    padding-bottom: 100px;
  }

  body.page-cart .cart-panel--checkout {
    position: static;
    display: flex;
    grid-column: 1 / -1;
    height: auto;
    margin: 0 24px 100px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
  }

  body.page-cart .cart-panel--checkout .panel-cta {
    display: none;
  }

  body.page-cart .checkout-bar {
    display: flex;
  }

  body.page-cart .bottom-nav {
    display: none;
  }

  .topbar-search {
    width: min(260px, 32%);
  }
}

@media (max-width: 860px) {
  body {
    background: var(--surface);
  }

  .app {
    display: block;
    max-width: none;
    min-height: 100vh;
    box-shadow: none;
  }

  .rail {
    display: none;
  }

  .topbar {
    min-height: 62px;
    gap: 10px;
    padding: 0 16px;
  }

  .topbar-logo {
    display: block;
  }

  .topbar-title {
    display: none;
  }

  .topbar-search {
    display: none;
  }

  .open-pill {
    display: none;
  }

  .lang-top {
    display: none;
  }

  .cart-top {
    min-height: 36px;
    padding: 0 9px;
  }

  .cart-top span {
    display: none;
  }

  .feed {
    gap: 18px;
    padding: 18px 16px 100px;
  }

  .feed-head {
    display: block;
  }

  .feed-head h1 {
    font-size: 32px;
  }

  .feed-head .head-note {
    display: none;
  }

  .hero-card {
    min-height: 238px;
    padding: 20px;
    border-radius: 20px;
  }

  .hero-card::before {
    background: linear-gradient(90deg, rgba(16, 18, 22, 0.96) 0%, rgba(16, 18, 22, 0.74) 62%, rgba(16, 18, 22, 0.25) 100%);
  }

  .hero-card h2 {
    font-size: 30px;
  }

  .hero-card p {
    max-width: 270px;
    font-size: var(--fs-11);
  }

  .hero-card-actions {
    margin-top: 14px;
  }

  .hero-card .btn {
    min-height: 42px;
    padding: 0 14px;
  }

  .popular-grid {
    gap: 8px;
  }

  .card-body {
    padding: 10px;
  }

  .card-title {
    font-size: var(--fs-12);
  }

  .menu-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 12px;
  }

  .menu-thumb {
    width: 52px;
    height: 52px;
  }

  .menu-item p {
    max-width: 210px;
  }

  .cart-head h1 {
    font-size: 36px;
  }

  .stepper-step {
    font-size: 9px;
  }

  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
  }

  .cart-line-media {
    width: 64px;
    height: 64px;
  }

  .cart-line-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  body.page-cart .cart-panel--checkout {
    margin: 0 16px 94px;
    padding: 16px;
  }

  .checkout-bar .btn {
    min-width: 142px;
  }

  .toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .feed {
    padding-inline: 14px;
  }

  .hero-card {
    min-height: 224px;
    padding: 17px;
  }

  .hero-card h2 {
    font-size: 27px;
  }

  .hero-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .hero-price {
    display: none;
  }

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

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

  .card-kicker {
    font-size: 8px;
  }

  .card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 32px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .card-price {
    font-size: var(--fs-12);
  }

  .menu-item p {
    max-width: 170px;
  }

  .stepper-step {
    padding-inline: 4px;
    font-size: 8px;
  }

  .cart-head .cart-count-label {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ---------- DB-driven template 02 additions ---------- */

.topbar-logo span {
  color: var(--ink);
  font-family: var(--font-display, var(--font));
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.v2-readonly {
  padding: 8px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--warning, #a96b18) 30%, transparent);
  background: color-mix(in srgb, var(--warning, #a96b18) 12%, var(--surface));
  color: var(--warning, #7a4a00);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.panel-empty {
  margin: 0;
  padding: 14px 0;
  color: var(--muted);
  font-size: var(--fs-11);
  line-height: 1.5;
}

.panel-line-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-2);
}

.panel-progress p b {
  max-width: 170px;
  text-align: right;
}

.v2-noresults {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: var(--fs-11);
  transform: translateX(-50%);
}

.v2-noresults[hidden] {
  display: none;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
}

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

@media (max-width: 860px) {
  .topbar-logo {
    display: block;
  }
}

/* ---------- menu-first entry ---------- */

.menu-cats {
  position: sticky;
  z-index: 24;
  top: 70px;
  display: flex;
  gap: 6px;
  margin: -4px -2px 0;
  padding: 7px 2px;
  overflow-x: auto;
  background: color-mix(in srgb, var(--surface-2) 96%, transparent);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
  backdrop-filter: blur(12px);
}

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

.menu-cat {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-10);
  font-weight: 750;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-cat:hover,
.menu-cat:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.menu-cat span {
  color: var(--muted-2);
  font-weight: 650;
}

.menu-sections {
  display: grid;
  gap: 26px;
}

.menu-section {
  scroll-margin-top: 128px;
}

.menu-section .section-row {
  margin-bottom: 8px;
}

.menu-section .section-row h2 {
  font-size: var(--fs-22);
}

.menu-count {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--surface-3, var(--surface-2));
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.menu-category {
  scroll-margin-top: 126px;
}

.menu-category + .menu-category {
  margin-top: 12px;
}

.menu-category-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-item {
  align-items: start;
}

.menu-item-body {
  min-width: 0;
}

.menu-item .variants {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.menu-item .chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.menu-item .chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.menu-item .chip.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

.menu-item-foot {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
  min-width: 78px;
}

.product-price {
  font-family: var(--font-display, var(--font));
  font-size: var(--fs-12);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.menu-item .add {
  width: 34px;
  height: 34px;
}

.hero-card--menu {
  min-height: 132px;
  padding: 16px 18px;
}

.hero-card--menu h2 {
  max-width: 380px;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.02;
}

.hero-card--menu p {
  display: -webkit-box;
  max-width: 380px;
  overflow: hidden;
  font-size: 10px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.hero-card--menu .hero-card-actions {
  margin-top: 10px;
}

.hero-card--menu .btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 10px;
}

.hero-card--menu .hero-price {
  font-size: 9px;
}

@media (max-width: 860px) {
  .menu-cats {
    top: 62px;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .menu-cat {
    min-height: 32px;
  }

  .hero-card--menu {
    min-height: 118px;
    padding: 13px 15px;
    border-radius: 18px;
  }

  .hero-card--menu h2 {
    max-width: 280px;
    font-size: 21px;
    line-height: 1.03;
  }

  .hero-card--menu .hero-kicker {
    margin-bottom: 5px;
    font-size: 8px;
  }

  .hero-card--menu p {
    display: none;
  }

  .hero-card--menu .hero-card-actions {
    margin-top: 8px;
  }

  .hero-card--menu .btn {
    min-height: 34px;
    padding-inline: 11px;
  }

  .hero-card--menu .hero-price {
    display: none;
  }

  .menu-section {
    scroll-margin-top: 116px;
  }

  .menu-section .section-row h2 {
    font-size: var(--fs-18);
  }

  .menu-category {
    scroll-margin-top: 114px;
  }

  .menu-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px 12px;
  }

  .menu-thumb {
    width: 52px;
    height: 52px;
  }

  .menu-item h3 {
    font-size: var(--fs-11);
  }

  .menu-item p {
    max-width: 190px;
    font-size: 9px;
  }

  .menu-item .variants {
    flex-wrap: nowrap;
    margin-top: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .menu-item .variants::-webkit-scrollbar {
    display: none;
  }

  .menu-item .chip {
    flex: none;
  }

  .menu-item .chip {
    min-height: 24px;
    padding-inline: 7px;
    font-size: 8px;
  }

  .menu-item-foot {
    min-width: 64px;
  }

  .product-price {
    font-size: var(--fs-11);
  }

  .menu-item .add {
    width: 31px;
    height: 31px;
  }
}

body {
  overflow-x: clip;
}

@media (max-width: 420px) {
  .menu-cats {
    margin-inline: -14px;
    padding-inline: 14px;
  }
}

[data-v2-checkout].is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- expandable product row + photo ---------- */

.menu-item {
  cursor: pointer;
  transition: background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.menu-item:hover {
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
}

.menu-item.is-expanded {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--primary);
}

.menu-thumb {
  position: relative;
  display: block;
  flex: none;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}

.menu-thumb:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.menu-thumb-zoom {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 6px;
  background: rgba(16, 18, 22, 0.7);
  color: #fff;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}

.menu-thumb-zoom .icon {
  width: 11px;
  height: 11px;
}

.menu-thumb:hover .menu-thumb-zoom,
.menu-thumb:focus-visible .menu-thumb-zoom,
.menu-thumb-zoom {
  opacity: 1;
}

.menu-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.menu-item-head h3 {
  min-width: 0;
}

.menu-expand {
  display: inline-grid;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: -4px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  transition: transform 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.menu-expand:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.menu-expand .icon {
  width: 14px;
  height: 14px;
}

.menu-item.is-expanded .menu-expand {
  transform: rotate(180deg);
  border-color: var(--primary);
  color: var(--primary);
}

.menu-item-short {
  display: block;
}

.menu-item-full {
  display: none;
  margin: 0;
  overflow: visible;
  color: var(--muted);
  font-size: var(--fs-10);
  line-height: 1.5;
  text-overflow: clip;
  white-space: normal;
}

.menu-item.is-expanded .menu-item-short {
  display: none;
}

.menu-item.is-expanded .menu-item-full {
  display: block;
}

.menu-item.is-expanded .variants {
  flex-wrap: wrap;
  overflow: visible;
}

.menu-item.is-expanded .menu-item-foot {
  padding-top: 2px;
}

.v2-lightbox {
  position: fixed;
  inset: 0;
  width: min(920px, calc(100% - 32px));
  max-width: none;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.v2-lightbox::backdrop {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(5px);
}

.v2-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
  background: var(--v2-dark);
}

.v2-lightbox-top {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  margin: 0;
}

.v2-lightbox-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 18, 22, 0.7);
  color: #fff;
  backdrop-filter: blur(8px);
}

.v2-lightbox-close .icon {
  width: 18px;
  height: 18px;
}

.v2-lightbox-caption {
  margin: 0;
  padding: 12px 16px;
  color: var(--muted);
  font-size: var(--fs-12);
  font-weight: 600;
}

@media (max-width: 860px) {
  .menu-thumb-zoom {
    opacity: 1;
  }

  .menu-expand {
    width: 28px;
    height: 28px;
  }

  .menu-item.is-expanded {
    padding: 13px 12px;
  }

  .menu-item-full {
    font-size: 10px;
    line-height: 1.5;
  }

  .v2-lightbox {
    width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .v2-lightbox img {
    max-height: 78vh;
  }
}

.menu-item .menu-item-full {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* ---------- topbar menu drawer (replaces bottom nav) ---------- */

.menu-top {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

.menu-top:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.menu-top .icon {
  width: 18px;
  height: 18px;
}

.v2-menu-drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.v2-menu-drawer::backdrop {
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(3px);
}

.v2-drawer-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(360px, 100%);
  padding: 20px;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(16, 18, 22, 0.18);
}

.v2-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v2-drawer-brand {
  font-family: var(--font-display, var(--font));
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.v2-drawer-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
}

.v2-drawer-close .icon {
  width: 18px;
  height: 18px;
}

.v2-drawer-nav {
  display: grid;
  gap: 0;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.v2-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--fs-13);
  font-weight: 650;
}

.v2-drawer-nav a .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.v2-drawer-nav a.is-active .icon {
  color: var(--primary);
}

.v2-drawer-nav a b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 10px;
}

.v2-drawer-sections {
  display: grid;
  gap: 0;
}

.v2-drawer-sections > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.v2-drawer-sections a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--fs-12);
  font-weight: 600;
}

.v2-drawer-sections a span {
  color: var(--muted-2);
  font-size: 10px;
}

.v2-drawer-sections a:hover {
  color: var(--primary);
}

.v2-drawer-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-10);
}

.v2-drawer-foot a,
.v2-drawer-foot span {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
}

.v2-drawer-foot .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--primary);
}

@media (max-width: 860px) {
  .menu-top {
    display: inline-grid;
  }

  .feed {
    padding-bottom: 34px;
  }

  .toast {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .v2-noresults {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 1160px) {
  .feed {
    padding-bottom: 34px;
  }
}

/* ---------- cart controls + mobile cart drawer ---------- */

.cart-top {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.panel-head .panel-close {
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
}

.panel-close .icon {
  width: 15px;
  height: 15px;
}

.panel-line-body {
  min-width: 0;
}

.panel-line-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

.panel-qty-btn {
  display: inline-grid;
  width: 23px;
  height: 23px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
}

.panel-qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.panel-qty {
  min-width: 16px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.panel-remove {
  display: inline-grid;
  width: 23px;
  height: 23px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1;
}

.panel-remove:hover {
  background: color-mix(in srgb, var(--danger, #a62b1f) 10%, transparent);
  color: var(--danger, #a62b1f);
}

.v2-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(3px);
}

@media (max-width: 1160px) {
  body.v2-cart-open {
    overflow: hidden;
  }

  body.v2-cart-open .v2-cart-backdrop {
    display: block;
  }

  .cart-panel.is-open {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    width: min(360px, 100%);
    height: 100%;
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(16, 18, 22, 0.2);
  }

  .panel-head .panel-close {
    display: inline-grid;
    margin-left: auto;
  }
}

/* ---------- readable product / cart typography ---------- */

.menu-item {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
}

.menu-thumb {
  width: 64px;
  height: 64px;
}

.menu-item h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.menu-item p {
  font-size: 12px;
  line-height: 1.5;
}

.menu-category-title {
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.menu-item .chip {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.product-price {
  font-size: 15px;
}

.menu-item .add {
  width: 36px;
  height: 36px;
}

.menu-expand {
  width: 30px;
  height: 30px;
}

.menu-item .menu-item-full {
  font-size: 12.5px;
  line-height: 1.55;
}

.menu-cat {
  min-height: 38px;
  font-size: 11px;
}

.panel-line {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 0;
}

.panel-line img,
.panel-line-placeholder {
  width: 46px;
  height: 46px;
}

.panel-line h3 {
  font-size: 13px;
  line-height: 1.3;
}

.panel-line p {
  font-size: 11px;
  line-height: 1.4;
}

.panel-line > b {
  font-size: 13px;
}

.panel-qty-btn {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

.panel-qty {
  font-size: 11px;
}

.panel-remove {
  width: 26px;
  height: 26px;
  font-size: 17px;
}

@media (max-width: 860px) {
  .menu-item {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 12px;
  }

  .menu-thumb {
    width: 60px;
    height: 60px;
  }

  .menu-item h3 {
    font-size: 16px;
  }

  .menu-item p {
    max-width: 200px;
    font-size: 12.5px;
  }

  .menu-item .chip {
    min-height: 29px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .product-price {
    font-size: 14px;
  }

  .menu-item .add {
    width: 36px;
    height: 36px;
  }

  .menu-expand {
    width: 30px;
    height: 30px;
  }

  .menu-item .menu-item-full {
    font-size: 12.5px;
  }

  .menu-cat {
    font-size: 10.5px;
  }

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

  .panel-line img,
  .panel-line-placeholder {
    width: 48px;
    height: 48px;
  }

  .panel-line h3 {
    font-size: 13.5px;
  }

  .panel-line p {
    font-size: 11.5px;
  }

  .panel-line > b {
    font-size: 13px;
  }
}

/* readability pass: product names, composition and options */
.menu-item h3 {
  font-size: 16px;
}

.menu-item p {
  font-size: 13px;
}

.menu-item .chip {
  min-height: 31px;
  padding-inline: 10px;
  font-size: 12.5px;
}

.product-price {
  font-size: 15px;
}

.menu-category-title {
  font-size: 11px;
}

.menu-cat {
  font-size: 11.5px;
}

.hero-card--menu .btn {
  min-height: 42px;
  font-size: 12px;
}

.hero-card--menu .hero-price {
  font-size: 11px;
}

.panel-line h3 {
  font-size: 14px;
}

.panel-line p {
  font-size: 12.5px;
}

.panel-line > b {
  font-size: 14px;
}

.panel-qty-btn {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.panel-qty {
  font-size: 12px;
}

.panel-remove {
  width: 28px;
  height: 28px;
  font-size: 18px;
}

@media (max-width: 860px) {
  .menu-item h3 {
    font-size: 17px;
  }

  .menu-item p {
    max-width: 210px;
    font-size: 13.5px;
  }

  .menu-item .chip {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .product-price {
    font-size: 16px;
  }

  .menu-category-title {
    font-size: 11.5px;
  }

  .panel-line h3 {
    font-size: 14.5px;
  }

  .panel-line p {
    font-size: 13px;
  }

  .panel-line > b {
    font-size: 14.5px;
  }
}

.menu-item p {
  font-size: 13.5px;
}

.menu-item .menu-item-full {
  font-size: 13.5px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .menu-item p {
    font-size: 14px;
  }

  .menu-item .menu-item-full {
    font-size: 14.5px;
  }

  .menu-item .chip {
    min-height: 33px;
    font-size: 13.5px;
  }
}

.v2-lightbox-loader {
  display: flex;
  min-height: 44vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.v2-lightbox-loader[hidden] {
  display: none;
}

.v2-lightbox-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: v2-spin 0.8s linear infinite;
}

.v2-lightbox-loader.is-error .v2-lightbox-spinner {
  display: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .v2-lightbox-spinner {
    animation-duration: 2.4s;
  }
}

@media (max-width: 860px) {
  .v2-lightbox-loader {
    min-height: 52vh;
    font-size: 14px;
  }
}

/* subtle rhythm between product blocks; keeps the list compact */
.menu-item {
  border-bottom: 5px solid var(--surface-2);
}

.menu-item h3 {
  margin-bottom: 6px;
}

.menu-item .variants {
  gap: 6px;
  margin-top: 10px;
}

.menu-category-title {
  margin-bottom: 8px;
}

.menu-category + .menu-category {
  margin-top: 16px;
}

.menu-sections {
  gap: 30px;
}

.menu-thumb--empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 0;
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  color: var(--muted-2);
  cursor: default;
  text-align: center;
}

.menu-thumb--empty .icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.menu-thumb--empty span {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.panel-line-placeholder {
  display: grid;
  place-items: center;
  padding: 2px;
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.menu-thumb--empty .icon {
  width: 20px;
  height: 20px;
}

.menu-thumb--empty span {
  font-size: 9.5px;
}

.panel-line-placeholder {
  font-size: 8px;
}

/* product labels: one badge row above the title */
.menu-item-title-wrap {
  min-width: 0;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .product-badge {
    min-height: 22px;
    font-size: 11px;
  }
}

/* full-width options under the thumbnail; slightly denser product card */
.menu-item {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 12px;
  border-bottom-width: 4px;
}

.menu-thumb {
  width: 56px;
  height: 56px;
}

.menu-item h3 {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.28;
}

.menu-item p {
  font-size: 12.5px;
  line-height: 1.45;
}

.menu-item .menu-item-full {
  font-size: 13px;
  line-height: 1.5;
}

.menu-item .chip {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.product-price {
  font-size: 14.5px;
}

.menu-item .add {
  width: 32px;
  height: 32px;
}

.menu-expand {
  width: 28px;
  height: 28px;
}

.menu-item .variants {
  grid-column: 1 / -1;
  gap: 5px;
  margin-top: 0;
}

.menu-category-title {
  margin-bottom: 7px;
  font-size: 10.5px;
}

.menu-cat {
  min-height: 36px;
  font-size: 11px;
}

@media (max-width: 860px) {
  .menu-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 11px 10px;
  }

  .menu-thumb {
    width: 52px;
    height: 52px;
  }

  .menu-item h3 {
    font-size: 16px;
  }

  .menu-item p {
    font-size: 13px;
  }

  .menu-item .menu-item-full {
    font-size: 13.5px;
  }

  .menu-item .chip {
    min-height: 30px;
    padding-inline: 9px;
    font-size: 12.5px;
  }

  .product-price {
    font-size: 15px;
  }

  .menu-item .add {
    width: 34px;
    height: 34px;
  }
}

/* mobile header: keep actions at the right edge even though search is hidden */
@media (max-width: 860px) {
  .topbar-search + .topbar-actions {
    margin-left: auto;
  }
}

.rail-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.topbar-logo-img {
  display: block;
  width: auto;
  max-width: 146px;
  max-height: 36px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 860px) {
  .topbar-logo-img {
    max-width: 124px;
    max-height: 34px;
  }
}

@media (max-width: 860px) {
  .topbar-logo .topbar-logo-img {
    height: 44px;
    max-height: 44px;
  }
}

/* weekly hours */
.rail-hours {
  width: 100%;
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.35;
}

.rail-hours summary {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  cursor: pointer;
  list-style: none;
  opacity: 0.9;
}

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

.rail-hours-list {
  margin-top: 6px;
  padding-left: 22px;
}

.rail-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 0;
  color: inherit;
  opacity: 0.72;
}

.rail-hours-row.is-closed {
  opacity: 0.45;
}

.rail-hours-row.is-today {
  color: var(--primary);
  font-weight: 750;
  opacity: 1;
}

.rail-hours-row span:first-child {
  flex: 0 0 28px;
}

.menu-item .add.is-favorite {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

.menu-item .add.is-favorite .icon {
  fill: currentColor;
  stroke: currentColor;
}

.menu-item .add.is-favorite:hover {
  border-color: var(--primary);
  background: var(--primary-hover);
}

/* ---------- desktop menu view switch ---------- */

.view-switch {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.view-switch button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.view-switch button:hover {
  color: var(--ink);
}

.view-switch button.is-active {
  background: var(--ink);
  color: var(--surface);
}

.view-switch .icon {
  width: 15px;
  height: 15px;
}

.view-switch + .topbar-actions {
  margin-left: 0;
}

@media (max-width: 860px) {
  .view-switch {
    display: none;
  }
}

/* ---------- desktop product tiles (Dodo-like card, dense grid) ---------- */

@media (min-width: 861px) {
  .feed.is-view-grid .menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .feed.is-view-grid .menu-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .feed.is-view-grid .menu-item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }

  .feed.is-view-grid .menu-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  .feed.is-view-grid .menu-thumb img {
    width: 100%;
    height: 100%;
  }

  .feed.is-view-grid .menu-thumb--empty {
    min-height: 0;
  }

  .feed.is-view-grid .menu-item-body {
    padding: 12px 14px 0;
  }

  .feed.is-view-grid .menu-item-head {
    gap: 10px;
  }

  .feed.is-view-grid .menu-item h3 {
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.25;
  }

  .feed.is-view-grid .menu-item p {
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.45;
    text-overflow: clip;
    white-space: normal;
  }

  .feed.is-view-grid .menu-item-short {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .feed.is-view-grid .menu-item .menu-item-full {
    display: none;
    font-size: 13px;
  }

  .feed.is-view-grid .menu-item.is-expanded .menu-item-short {
    display: none;
  }

  .feed.is-view-grid .menu-item.is-expanded .menu-item-full {
    display: block;
  }

  .feed.is-view-grid .menu-item .variants {
    grid-column: auto;
    order: 2;
    margin-top: 0;
    padding: 0 14px 10px;
  }

  .feed.is-view-grid .menu-item-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    order: 3;
    margin-top: auto;
    padding: 10px 14px 14px;
  }

  .feed.is-view-grid .product-price {
    font-size: 16px;
  }

  .feed.is-view-grid .menu-item .add {
    width: 36px;
    height: 36px;
  }

  .feed.is-view-grid .menu-item .add .icon {
    width: 17px;
    height: 17px;
  }
}

/* ---------- recommended stories ---------- */

.recommended-stories {
  display: grid;
  gap: 10px;
}

.stories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stories-head h2 {
  margin: 0;
  font-size: var(--fs-18);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stories-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: var(--fs-10);
  font-weight: 650;
  white-space: nowrap;
}

.stories-hint .icon {
  width: 12px;
  height: 12px;
}

.stories-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.stories-rail::-webkit-scrollbar {
  display: none;
}

.story-card {
  position: relative;
  flex: 0 0 176px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: var(--v2-dark);
  color: #fff;
  scroll-snap-align: start;
}

.story-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--v2-dark);
  color: #fff;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms var(--ease);
}

.story-card:hover .story-photo img {
  transform: scale(1.04);
}

.story-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.02) 35%, rgba(16, 18, 22, 0.88) 100%);
}

.story-photo--empty {
  display: grid;
  place-items: center;
  background: var(--v2-dark-2);
}

.story-photo--empty .icon {
  width: 26px;
  height: 26px;
  color: var(--muted);
}

.story-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding-right: 38px;
}

.story-caption h3 {
  display: -webkit-box;
  margin: 0 0 3px;
  overflow: hidden;
  color: #fff;
  font-size: var(--fs-12);
  font-weight: 750;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-caption span {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-11);
  font-weight: 700;
}

.story-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(16, 18, 22, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}

.story-add:hover,
.story-add.is-favorite {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

.story-add .icon {
  width: 14px;
  height: 14px;
}

.story-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .story-card {
    flex-basis: 140px;
    border-radius: 16px;
  }

  .story-caption {
    right: 9px;
    bottom: 9px;
    left: 9px;
  }

  .story-add {
    right: 8px;
    bottom: 8px;
  }
}

/* ---------- horizontally scrollable categories ---------- */

.menu-cats-row {
  position: sticky;
  z-index: 24;
  top: 70px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: -4px -2px 0;
  padding: 7px 2px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 96%, transparent);
}

.menu-cats-row .menu-cats {
  position: static;
  min-width: 0;
  flex: 1;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 0;
  background: transparent;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.cats-scroll {
  display: inline-grid;
  flex: none;
  width: 30px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.cats-scroll:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.cats-scroll:disabled {
  cursor: default;
  opacity: 0.3;
}

.cats-scroll .icon {
  width: 14px;
  height: 14px;
}

.menu-cats-row .menu-cat {
  scroll-snap-align: start;
}

@media (max-width: 860px) {
  .menu-cats-row {
    top: 62px;
    gap: 0;
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .menu-cats-row .cats-scroll {
    display: none;
  }

  .menu-cats-row .menu-cats {
    scrollbar-width: none;
  }

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

.rail-foot p a {
  color: inherit;
  text-decoration: none;
}

.rail-foot p a:hover {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 860px) {
  .topbar .topbar-actions {
    margin-left: auto;
  }
}
