﻿:root {
  --font-stack: Iosevka, "JetBrains Mono", ui-monospace, monospace;
  --olive: #6a704e;
  --olive-d: #535738;
  --yellow: #efd063;
  --red: #bf3b3b;
  --terracotta: #c46a4a;
  --terra-d: #a85838;
  --milk: #faf4e4;
  --card: #fffaee;
  --text: #3a3625;
  --text-soft: #776c52;
  --text-mute: #9a8f74;
  --border: rgba(106,112,78,0.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--milk); color: var(--text); overflow-x: hidden; }
body { font-family: var(--font-stack); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button { font: inherit; color: inherit; }

.app { min-height: 100vh; min-height: 100dvh; max-width: 520px; margin: 0 auto; background: var(--milk); position: relative; overflow-x: clip; }
.screen { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }

.topbar { padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 14px; display: flex; justify-content: space-between; gap: 10px; }
.brand { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.subline { margin-top: 2px; color: var(--text-soft); font-size: 10.5px; letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--olive); }
.top-controls { display: flex; gap: 6px; }

.btn { border: 1px solid var(--border); background: rgba(106,112,78,0.06); border-radius: 10px; min-height: 44px; cursor: pointer; }
.btn-square { width: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.btn-solid { background: var(--red); color: #fff; border-color: var(--red); }
.lang-btn { min-width: 44px; font-size: 10.5px; letter-spacing: .1em; font-weight: 700; }

.hero-wrap { padding: 4px 0 16px; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 0 18px; }
.hero-card { border-radius: 24px; overflow: hidden; position: relative; border: 1px solid var(--border); cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 14px 36px rgba(106,112,78,0.12); }
.hero-photo { aspect-ratio: 4/3; border-radius: 0; }
.hero-featured { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; background: var(--yellow); color: var(--olive-d); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px 5px 8px; }
.hero-like-chip { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; border-radius: 8px; background: rgba(255,250,238,.9); border: 1px solid var(--border); color: var(--red); font-size: 11px; font-weight: 700; padding: 5px 10px; }
.hero-gradient { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 18px; background: linear-gradient(to top, rgba(58,54,37,.85), rgba(58,54,37,0) 80%); color: #fff; }
.hero-title { font-size: 18px; font-weight: 700; line-height: 1.25; }
.hero-desc { font-size: 11.5px; line-height: 1.45; margin-top: 5px; opacity: .92; }
.hero-price { margin-top: 10px; font-size: 22px; font-weight: 700; }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hero-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--border); }
.hero-dot.active { width: 18px; background: var(--red); }

.main { position: relative; }
.rail {
  position: fixed;
  left: max(0px, calc(50% - 260px));
  top: 56%;
  transform: translateY(-50%);
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rail-btn { width: 44px; height: 46px; border-radius: 0 24px 24px 0; border: 1px solid var(--border); border-left: 0; background: rgba(255,250,238,.96); box-shadow: 4px 6px 14px rgba(58,54,37,.14); display: inline-flex; align-items: center; justify-content: flex-end; padding-right: 10px; cursor: pointer; }
.rail-btn.active { width: 56px; background: var(--olive); border-color: var(--olive); color: #fff; padding-right: 14px; box-shadow: 4px 8px 20px rgba(106,112,78,.2); }

.content { padding: 18px 18px calc(112px + env(safe-area-inset-bottom, 0px)); }
.section-top { margin-bottom: 16px; }
.section-kicker { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); display: flex; align-items: center; gap: 8px; }
.section-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.section-title { margin-top: 8px; font-size: 22px; font-weight: 700; line-height: 1.25; }
.food-subgroup-title { font-size: 15px; font-weight: 600; padding: 10px 0 4px; color: var(--text); }
.section-sub { margin-top: 6px; color: var(--text-soft); font-size: 11.5px; line-height: 1.55; }

.list { display: grid; gap: 12px; }
.list.grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
/* cards that are wider than compact must span both columns when inside a 2-col grid */
.list.grid .card-h,
.list.grid .card-v { grid-column: 1 / -1; }
.list.grid .card-c { height: 100%; min-height: 150px; }

.card { border: 1px solid var(--border); background: var(--card); cursor: pointer; }
.card-h { border-radius: 18px; padding: 12px; display: flex; gap: 12px; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 14px rgba(106,112,78,.06); }
.card-h .meta{
  display:flex;
  flex-direction:column;
}
.card-h .row-end{
  margin-top:auto;
  align-items:flex-end;
}
.card-v { border-radius: 20px; overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 22px rgba(106,112,78,.06); }
.card-c { border-radius: 16px; min-height: 128px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 12px rgba(106,112,78,.06); position: relative; min-width: 0; }
.card-c .title { min-width: 0; }
.card-c .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.card-c .row-end{
  margin-top:auto;
  align-items:flex-end;
  padding-right:42px;
  min-width:0;
}
.card-c .card-price-likes { min-width: 0; }
.card-c .card-add-btn{ position: static; }
.card-c .card-btn-group { position: absolute; right: 10px; bottom: 10px; flex-direction: column; align-items: center; gap: 3px; }
.card-c.unavailable .row-end { padding-right: 0; }
.card.unavailable { opacity: .55; }

.photo { border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-soft); }
.photo.striped { background: repeating-linear-gradient(135deg, rgba(106,112,78,.1) 0 14px, rgba(106,112,78,.06) 14px 28px), var(--milk); }
.photo.nophoto { background: radial-gradient(circle at 28% 30%, rgba(239,208,99,.33), transparent 55%), radial-gradient(circle at 78% 75%, rgba(196,106,74,.2), transparent 60%), var(--milk); }
.photo.has-photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.photo .label { background: rgba(255,250,238,.85); border: 1px solid var(--border); border-radius: 7px; padding: 5px 9px; font-size: 10px; line-height: 1.4; letter-spacing: .04em; text-transform: lowercase; }
.photo-h { width: 104px; height: 104px; border-radius: 12px; flex-shrink: 0; }
.photo-v { aspect-ratio: 16/10; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.cat-photo { width: 88px; height: 88px; border-radius: 14px; flex-shrink: 0; }
.sheet-photo { border-radius: 20px; aspect-ratio: 5/4; }

.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; padding: 3px 7px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border: 1px solid transparent; line-height: 1.4; }
.badge.popular  { background: var(--yellow); color: var(--olive-d); }
.badge.new      { background: transparent; color: var(--terracotta); border-color: var(--terracotta); }
.badge.tails    { background: #727b55; color: #fff; border-color: #727b55; }
.badge.seasonal { background: rgba(160,118,70,.13); color: #7a5530; border-color: rgba(160,118,70,.32); }
.badge.limited  { background: rgba(140,110,180,.11); color: #7460a0; border-color: rgba(140,110,180,.30); }
.badge.spicy    { background: none; border-color: transparent; padding: 2px 3px; font-size: 11.5px; letter-spacing: 0; text-transform: none; }
.badge.dietary-vegan  { background: rgba(90,200,185,.12); color: #207a72; border-color: rgba(90,200,185,.32); }
.badge.dietary-veg    { background: rgba(70,185,215,.11); color: #1a728a; border-color: rgba(70,185,215,.30); }
.badge.dietary-lac    { background: rgba(145,190,235,.12); color: #3d72a8; border-color: rgba(145,190,235,.32); }
.badge.dietary-glu    { background: rgba(115,150,205,.10); color: #435f90; border-color: rgba(115,150,205,.28); }

.meta { flex: 1; min-width: 0; }
.title { color: var(--text); font-size: 13.5px; font-weight: 700; line-height: 1.3; letter-spacing: .01em; }
.title.v { font-size: 15px; margin-top: 0; }
.desc { color: var(--text-soft); margin-top: 3px; font-size: 10.5px; line-height: 1.5; }
.desc.v { font-size: 11.5px; margin-top: 6px; line-height: 1.55; }

.row-end { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.row-end.v { margin-top: 12px; }
.card-price-likes{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.card-special-flag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
}
.price { color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.price.v { font-size: 18px; }

.like-btn { border: 0; background: transparent; cursor: pointer; display: inline-flex; gap: 3px; align-items: center; color: var(--text-mute); font-size: 10.5px; font-weight: 600; }
.like-btn.v { color: var(--text-soft); background: rgba(255,250,238,.92); border: 1px solid var(--border); border-radius: 9999px; padding: 5px 10px 5px 8px; font-size: 11px; font-weight: 700; gap: 5px; }
.like-btn.liked { color: var(--red); }
.like-pin { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,250,238,.95); display: inline-flex; align-items: center; justify-content: center; }
.card-btn-group { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.card-like-btn { border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 22px; border-radius: 8px; opacity: .45; padding: 0; line-height: 1; transition: transform .1s ease, opacity .1s ease; }
.card-like-btn.liked { opacity: 1; }
.card-like-btn:active { transform: scale(.86); opacity: .75; }
.card-add-btn{
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  border-radius:10px;
  border:0;
  background:#727b55;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:700;
  line-height:1;
  padding:0;
  transition: transform .12s ease, filter .14s ease, box-shadow .16s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 10px rgba(58,54,37,.16);
}
.card-add-btn:active{ transform:scale(.94); filter:brightness(.96); }

.avail { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 4px 7px; border: 1px solid rgba(191,59,59,.4); background: rgba(191,59,59,.06); color: var(--red); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.soldout-badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; align-self: flex-start; white-space: nowrap; border-radius: 6px; padding: 4px 7px; border: 1px solid rgba(191,59,59,.4); background: rgba(191,59,59,.06); color: var(--red); font-size: 9px; font-weight: 600; }
.compact-price-block { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }

.empty { border: 1px dashed var(--border); border-radius: 20px; background: var(--card); text-align: center; padding: 46px 22px; }
.empty .text { font-size: 13px; line-height: 1.6; color: var(--text); }

html.sheet-open, body.sheet-open { overflow: hidden; overscroll-behavior: none; position: fixed; width: 100%; }
.sheet-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(58,54,37,.55); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.sheet-wrap.open { opacity: 1; pointer-events: auto; }
.sheet-wrap.closing { opacity: 0; pointer-events: none; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: var(--milk); border-radius: 24px 24px 0 0; max-height: 78vh; max-height: 78dvh; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(58,54,37,.25); transform: translateY(100%); transition: transform .32s cubic-bezier(.22, .8, .25, 1); }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-wrap.closing .sheet { transform: translateY(100%); }
.sheet-grab { width: 56px; height: 5px; border-radius: 3px; background: rgba(106,112,78,.3); margin: 12px auto 8px; flex-shrink: 0; cursor: grab; }
.sheet, .sheet-body { overscroll-behavior: contain; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 18px 26px; flex: 1 1 auto; min-height: 0; }
.sheet.is-constructor .sheet-body { padding-bottom: 28px; }
.item-summary{
  position:relative;
  margin:0;
  padding:12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(12px + constant(safe-area-inset-bottom));
  background:var(--milk);
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-shrink:0;
}
.item-summary-stepper{
  display:inline-flex;
  align-items:center;
  gap:0;
  background:#727b55;
  border-radius:12px;
  padding:2px 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 4px 10px rgba(58,54,37,.16);
}
.item-summary-qty{
  min-width:24px;
  text-align:center;
  font-size:22px;
  font-weight:500;
  line-height:1;
  color:#fff;
  animation:qtyPop .2s ease;
}
.item-summary-step{
  width:32px;
  min-width:32px;
  height:32px;
  min-height:32px;
  border:0;
  background:transparent;
  color:#fff;
  border-radius:8px;
  font-size:22px;
  line-height:1;
  padding:0;
  transition: transform .12s ease, background-color .12s ease, filter .12s ease;
}
.item-summary-step:active{
  background:rgba(255,255,255,.12);
  transform:scale(.94);
  filter:brightness(.96);
}
.item-summary-add-btn{
  background:#727b55;
}
.item-summary-add-btn:active{
  transform:scale(.94);
  filter:brightness(.96);
}
.card-add-btn:disabled,.card-add-btn.is-disabled,
.item-summary-add-btn:disabled,.item-summary-add-btn.is-disabled{
  opacity:.35;
  pointer-events:none;
}
.sheet-media { position: relative; margin-bottom: 18px; }
.sheet-close { position: absolute; top: 12px; right: 12px; }
.sheet-kbju { position: absolute; top: 12px; left: 12px; }
.kbju-pills { display: flex; flex-direction: column; gap: 5px; }
.kbju-pill { min-width: 38px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,250,238,.92); padding: 4px 7px; text-align: center; }
.kbju-pill .v { font-size: 11px; font-weight: 700; line-height: 1; }
.kbju-pill .l { margin-top: 2px; color: var(--text-soft); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.sheet-like { position: absolute; bottom: 12px; left: 12px; border-radius: 9999px; padding: 5px 10px; background: rgba(255,250,238,.92); border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 5px; }
.sheet-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.sheet-sub { margin-top: 4px; color: var(--text-soft); font-size: 11.5px; letter-spacing: .04em; }
.sheet-desc { margin-top: 14px; font-size: 13px; line-height: 1.6; }
.info-block { margin: 18px 0 8px; padding: 14px 16px; border-radius: 14px; background: rgba(106,112,78,.06); border: 1px solid var(--border); }
.info-k { color: var(--text-soft); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.info-v { font-size: 12px; line-height: 1.6; }
.sheet-bottom { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-price { font-size: 24px; font-weight: 700; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; border-top: 1px solid var(--border); background: var(--milk); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs-inner { max-width: 520px; margin: 0 auto; display: flex; justify-content: space-around; align-items: stretch; padding: 10px 8px 12px; }
.tab-btn { flex: 1; border: 0; background: transparent; cursor: pointer; color: var(--text-soft); min-height: 54px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; }
.tab-btn.active { color: var(--red); }
.tab-label { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.tab-btn.active .tab-label { font-weight: 700; }
.tab-line { width: 0; height: 2px; border-radius: 1px; background: var(--red); margin-top: -2px; }
.tab-btn.active .tab-line { width: 14px; }

.review-card { border: 1px solid var(--border); border-radius: 16px; background: var(--card); padding: 14px; box-shadow: 0 2px 10px rgba(106,112,78,.04); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.review-id { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), var(--terracotta)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.cat-card { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: 0 4px 16px rgba(106,112,78,.08); }
.rule { margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: rgba(239,208,99,.18); border: 1px solid rgba(239,208,99,.55); }
.rule-k { color: var(--olive-d); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.rule-v { font-size: 12px; line-height: 1.6; }

.overlay-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(58,54,37,.03); display: none; }
.overlay-wrap.open { display: block; }
.filter-btn-wrap {
  position: relative;
  display: inline-flex;
}
.filter-btn-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #4f6e8a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  padding: 0 3px;
  pointer-events: none;
}
.filter-wrap {
  z-index: 95;
  background: rgba(58,54,37,.025);
}
.filter-wrap.open { display: block; }
.filter-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 520px;
  margin: 0 auto;
  background: var(--milk);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 34px rgba(58,54,37,.16);
}
.filter-sheet .overlay-title {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--text-soft);
}
.filter-section-title {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.filter-section-title-secondary {
  margin-top: 14px;
}
.filter-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 50%;
  background: transparent;
}
.filter-list-sheet {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: min(46dvh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.filter-row {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  gap: 6px;
  cursor: pointer;
}
.filter-row.active {
  background: rgba(100,160,210,.08);
  border-color: rgba(100,160,210,.28);
}
.filter-row-left {
  min-width: 0;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.filter-row-left svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}
.filter-row-label {
  min-width: 0;
  font-size: 13px;
  line-height: 1.1;
  color: #46453a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-row-check {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
}
@media (min-width: 480px) {
  .filter-row-label { font-size: 14px; }
  .filter-row { padding: 11px 10px; }
}
.filter-row-check.active {
  background: #4f6e8a;
  border-color: #3d5a73;
  position: relative;
}
.filter-row-check.active::after {
  content: '';
  position: absolute;
  left: 5px; top: 3px;
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.filter-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1.85fr;
  gap: 8px;
}
.filter-actions .btn {
  min-height: 46px;
  border-radius: 13px;
}
.rail-overlay { position: fixed; inset: 0; z-index: 80; background: transparent; display: none; }
.rail-overlay.open { display: block; }
.overlay-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  max-width: 488px;
  margin: 0 auto;
  background: var(--milk);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(58,54,37,.2);
  padding: 14px;
}
.overlay-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.overlay-input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--border); padding: 0 12px; background: #fffef9; font: inherit; color: var(--text); }
.overlay-hint { margin-top: 8px; color: var(--text-soft); font-size: 11px; }
.overlay-actions { display: flex; gap: 10px; margin-top: 12px; }
.overlay-actions .btn { flex: 1; min-height: 42px; }

.search-active-bar { display: flex; align-items: center; gap: 8px; padding: 4px 18px 12px; }
.search-active-query { flex: 1; font-size: 12px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-clear-btn { width: 28px; height: 28px; min-height: 28px; border-radius: 999px; border: 1px solid var(--border); background: rgba(106,112,78,.06); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; line-height: 1; flex-shrink: 0; }
.search-empty { padding: 56px 24px 32px; text-align: center; }
.search-empty-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.search-empty-sub { font-size: 12px; color: var(--text-soft); line-height: 1.6; }

.filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
/* dietary filter sheet always 2 columns — overrides .filter-list flex above */
.filter-list.filter-list-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.filter-chip { border: 1px solid var(--border); border-radius: 9999px; padding: 8px 12px; background: transparent; cursor: pointer; }
.filter-chip.active { background: rgba(154,168,150,.18); border-color: rgba(154,168,150,.7); color: #6f8170; font-weight: 700; }

.rail-submenu {
  position: fixed;
  left: max(60px, calc(50% - 200px));
  top: 34%;
  transform: translateY(-50%);
  z-index: 81;
  background: var(--milk);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(58,54,37,.2);
  padding: 6px;
  min-width: 180px;
  max-height: 72vh;
  max-height: 72dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rail-sub-btn { width: 100%; text-align: left; border: 0; background: transparent; border-radius: 9px; padding: 10px 12px; cursor: pointer; }
.rail-sub-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  color: #6b6a58;
}
.rail-sub-btn:hover { background: rgba(106,112,78,.06); }
.rail-sub-btn.active { background: rgba(239,208,99,.16); color: #4c4b3f; font-weight: 600; }
.rail-sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b7baa8;
  flex-shrink: 0;
}
.rail-sub-dot.active { background: #d9b73f; }
.rail-sub-label {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #46453a;
}
.rail-sub-empty {
  padding: 10px 12px;
  font-size: 11px;
  color: var(--text-soft);
}
.constructor-card{
  border:1px solid var(--border);
  background:linear-gradient(145deg, rgba(239,208,99,.22), rgba(255,250,238,.95));
  border-radius:18px;
  box-shadow:0 4px 14px rgba(106,112,78,.10);
  padding:14px;
  padding-right:58px;
  margin-bottom:12px;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  position:relative;
}
.constructor-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px;}
.constructor-card-photo{width:68px;height:68px;border-radius:12px;flex-shrink:0;}
.constructor-likes{display:flex;flex-direction:column;align-items:center;gap:3px;position:absolute;right:10px;bottom:48px;width:34px;justify-content:center;}
.constructor-like-count{font-size:11px;color:var(--text-soft);line-height:1;}
.constructor-title{font-size:18px;font-weight:700;line-height:1.25;color:var(--text);}
.constructor-subtitle{font-size:11px;line-height:1.5;color:var(--text-soft);}
.constructor-arrow{
  width:34px;height:34px;min-width:34px;
  border-radius:999px;
  border:1px solid rgba(83,87,56,.22);
  background:rgba(255,255,255,.75);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:absolute;
  right:10px;
  bottom:10px;
}
.constructor-media-bottom{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;pointer-events:none;}
.constructor-media-bottom .sheet-like,.constructor-media-bottom .constructor-media-kbju{pointer-events:auto;}
.constructor-media-bottom .sheet-like{position:static;}
.constructor-media-kbju .kbju-pills{flex-direction:row;gap:5px;}
.constructor-media-kbju .kbju-pill{min-width:38px;}
.constructor-sheet-list{margin-top:14px;display:grid;gap:8px;}
.constructor-sheet-row{
  width:100%;
  min-height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 12px;
  cursor:pointer;
}
.constructor-sheet-row-title{font-size:12px;color:var(--text);}
.constructor-sheet-row-price{font-size:12px;font-weight:700;color:var(--text-soft);}
.constructor-section{margin-top:14px;}
.constructor-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
.constructor-section-title{font-size:14px;font-weight:700;letter-spacing:.08em;color:var(--text);}
.constructor-section-rule{font-size:10.5px;color:var(--text-soft);letter-spacing:.04em;}
.constructor-chips{display:flex;flex-wrap:wrap;gap:8px;}
.constructor-chip{
  min-height:32px;
  border-radius:999px;
  border:1px solid var(--border);
  background:transparent;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 12px;
  font-size:12px;
  color:var(--text);
  cursor:pointer;
}
.constructor-chip-bullet{
  width:14px;height:14px;border-radius:999px;border:1px solid rgba(83,87,56,.42);background:transparent;display:inline-block;flex-shrink:0;
}
.constructor-chip.is-selected{background:#727b55;color:#fff;border-color:#727b55;}
.constructor-chip.is-selected .constructor-chip-bullet{border-color:#fff;background:#fff;}
.constructor-chip.is-selected .constructor-chip-price{color:#ecefd9;}
.constructor-chip-price{font-size:11px;color:var(--text-soft);}
.constructor-chip.is-disabled{opacity:.52;cursor:not-allowed;background:rgba(106,112,78,.05);}
.constructor-chip-disabled{font-size:10px;color:#bf6a6a;letter-spacing:.04em;text-transform:uppercase;}
.constructor-summary{
  position:relative;
  margin:0;
  padding:12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(12px + constant(safe-area-inset-bottom));
  background:var(--milk);
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-shrink:0;
}
.constructor-summary-title{font-size:12px;color:var(--text-soft);}
.constructor-summary-total{font-size:38px;font-weight:700;color:var(--text);line-height:1;}
.constructor-cart-btn{
  width:46px;
  min-width:46px;
  height:46px;
  border-radius:999px;
  border:0;
  background:#727b55;
  color:#fff;
  padding:0;
  font-size:24px;
  font-weight:700;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .12s ease, filter .14s ease, box-shadow .16s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 10px rgba(58,54,37,.16);
}
.constructor-cart-btn:disabled{opacity:.65;cursor:not-allowed;}
.constructor-cart-btn:active{ transform:scale(.94); filter:brightness(.96); }
.kitchen-addons{
  margin-top:14px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(106,112,78,.04);
}
.kitchen-addons-title{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-soft);
  margin-bottom:10px;
}
.kitchen-addons-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.kitchen-addons-section.with-divider{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--border);
}
.kitchen-addons-section-title{
  margin-bottom:8px;
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--text-soft);
}
.kitchen-addon-chip{
  min-height:34px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--card);
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:3px 6px 3px 11px;
}
.kitchen-addon-chip.is-selected{
  border-color:#727b55;
  background:rgba(114,123,85,.12);
}
.kitchen-addon-chip.is-disabled{
  opacity:.5;
}
.kitchen-addon-label{
  border:0;
  background:transparent;
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  padding:0;
  margin:0;
  min-height:0;
  cursor:pointer;
}
.kitchen-addon-name{
  font-size:12px;
  color:var(--text);
}
.kitchen-addon-price{
  font-size:11px;
  color:var(--text-soft);
}
.kitchen-addon-stepper{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.kitchen-addon-step{
  width:24px;
  min-width:24px;
  height:24px;
  min-height:24px;
  border:0;
  border-radius:0;
  background:transparent;
  padding:0;
  line-height:1;
  font-size:14px;
  transition: transform .12s ease, background-color .12s ease, filter .12s ease;
}
.kitchen-addon-step:active{ transform:scale(.94); filter:brightness(.96); }
.kitchen-addon-qty{
  min-width:14px;
  text-align:center;
  font-size:12px;
  color:var(--text);
  animation:qtyPop .2s ease;
}
.kitchen-addons-total{
  margin-top:10px;
  font-size:12px;
  color:var(--text-soft);
}
/* ── In-sheet cart summary: shown under config/addons once item is in cart ── */
.sheet-cart-summary{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--border);
}
.sheet-cart-summary-title{
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-soft);
  margin-bottom:8px;
}
.sheet-cart-summary-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(72px,84px);
  gap:10px;
  align-items:baseline;
  padding:3px 0;
}
.sheet-cart-summary-name{
  font-size:12px;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sheet-cart-summary-price{
  font-size:12px;
  color:var(--text-soft);
  text-align:right;
  white-space:nowrap;
}
.sheet-cart-summary-block{
  margin-top:4px;
}
.sheet-cart-summary-block:first-of-type{
  margin-top:0;
}
.sheet-cart-summary-addon-row{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:1px 0;
}
.sheet-cart-summary-addon-name{
  font-size:11px;
  color:var(--text-soft);
}
.sheet-cart-summary-addon-price{
  font-size:11px;
  color:var(--text-soft);
  white-space:nowrap;
  flex-shrink:0;
}
.sheet-cart-summary-addons-title,.cart-addons-title{
  margin-top:4px;
  font-size:10px;
  color:var(--text-soft);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.sheet-cart-summary-total-row,.cart-line-total-row{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:4px;
  padding-top:4px;
  border-top:1px solid var(--border);
  font-size:12px;
  font-weight:700;
}

.cart-fab{
  position:fixed;
  right:max(16px, calc(50% - 244px));
  bottom:calc(134px + env(safe-area-inset-bottom, 0px));
  z-index:82;
  width:54px;
  height:54px;
  min-height:54px;
  border-radius:999px;
  border:0;
  background:#727b55;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(58,54,37,.24);
}
.cart-fab-count{
  position:absolute;
  top:-4px;
  right:-3px;
  min-width:20px;
  height:20px;
  border-radius:999px;
  background:#bf3b3b;
  color:#fff;
  border:2px solid var(--milk);
  font-size:10px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
}
.cart-wrap{
  z-index:96;
}
.cart-sheet .sheet-body{
  padding-top:10px;
}
.cart-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:10px;
}
.cart-lines{
  display:grid;
  gap:10px;
}
.cart-line{
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card);
  padding:10px 12px;
}
.cart-line-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.cart-line-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 72px;
  align-items:center;
  gap:8px;
}
.cart-line-title{
  font-size:13px;
  font-weight:700;
  color:var(--text);
  flex:1 1 0;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cart-line-price{
  font-size:13px;
  font-weight:700;
  color:var(--text);
  white-space:nowrap;
  text-align:right;
}
.cart-addon-row{
  margin-top:4px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.cart-addon-name{
  font-size:11px;
  color:var(--text-soft);
}
.cart-addon-price{
  font-size:11px;
  color:var(--text-soft);
  white-space:nowrap;
}
.cart-line-controls{
  display:flex;
  align-items:center;
  gap:0;
  background:#727b55;
  border-radius:12px;
  padding:2px 4px;
  flex-shrink:0;
}
.cart-line-controls .kitchen-addon-step{
  width:30px;
  min-width:30px;
  height:30px;
  min-height:30px;
  border:0;
  background:transparent;
  color:#fff;
  border-radius:8px;
  font-size:22px;
  padding:0;
}
.cart-line-controls .kitchen-addon-qty{
  min-width:22px;
  color:#fff;
  font-size:18px;
  font-weight:700;
  animation:qtyPop .2s ease;
}
.cart-total{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.cart-total-right{
  display:flex;
  align-items:baseline;
  gap:6px;
}
.cart-total-label{
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--text-soft);
}
.cart-total-sum{
  font-size:22px;
  font-weight:700;
  line-height:1;
  color:var(--text);
}
.cart-clear-btn{
  border:1px solid var(--border);
  background:var(--milk);
  border-radius:10px;
  padding:8px 14px;
  font-size:12px;
  font-weight:600;
  color:var(--text-soft);
  cursor:pointer;
  white-space:nowrap;
  flex-shrink:0;
  box-shadow:2px 2px 5px rgba(106,112,78,.12),-1px -1px 3px rgba(255,255,255,.8);
  transition:box-shadow .15s,color .15s;
}
.cart-clear-btn:active{
  box-shadow:inset 1px 1px 3px rgba(106,112,78,.18),inset -1px -1px 2px rgba(255,255,255,.6);
  color:var(--text);
}
.menu-transition {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.menu-transition-layer {
  width: 100%;
}
.menu-transition-layer.is-current {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.menu-transition-layer.is-outgoing {
  animation: menuLayerOut .23s cubic-bezier(.22,.68,0,1) forwards;
}
.menu-transition-layer.is-incoming {
  position: relative;
  animation: menuLayerIn .23s cubic-bezier(.22,.68,0,1) forwards;
}
@keyframes menuLayerOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-8px); }
}
@keyframes menuLayerIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes qtyPop{
  0%{transform:scale(.9); opacity:.7}
  100%{transform:scale(1); opacity:1}
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,250,238,.95);
  color: var(--text);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* FINAL OVERRIDE: dietary filter options are always 2 columns, including mobile */
.filter-list.filter-list-sheet {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.filter-list.filter-list-sheet > .filter-row {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 10px 8px !important;
}
.filter-list.filter-list-sheet .filter-row-left {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.filter-list.filter-list-sheet .filter-row-label {
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.filter-list.filter-list-sheet .filter-row-left svg {
  width: 12px !important;
  height: 12px !important;
  flex: 0 0 auto !important;
}
.filter-list.filter-list-sheet .filter-row-check {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
}

