/* ============================================================
   ÉKO '77 — BULK ORDERS
   The shop page. Header first, then food. One block in between.
   Everything here is additive to style.css.
   ============================================================ */

:root { --head-h: 64px; }

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

/* locking the body while the basket is open must not shift the page sideways */
html { scrollbar-gutter: stable; }

/* the shop page has no dark hero, so the bar is paper from the first pixel */
.page-bulk { background: var(--paper); }
.page-bulk main { padding-top: var(--head-h); }

/* --- header extras: search + basket, this page only ---------- */

.head-tools { display: flex; align-items: center; gap: 4px; }

.tool {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  border-radius: 50%;
  transition: background .25s ease;
}
.tool:hover { background: var(--paper-2); }
.tool:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.tool__count {
  position: absolute;
  top: 4px; right: 3px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  transform: scale(0);
  transition: transform .3s cubic-bezier(.2,1.5,.4,1);
}
.tool__count.is-on { transform: scale(1); }
.tool__count.is-bump { animation: bump .42s cubic-bezier(.2,.7,.3,1); }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.42); } }

/* --- search drawer under the bar ----------------------------- */

.searchbar {
  position: fixed;
  top: var(--head-h); left: 0; right: 0;
  z-index: 55;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 12px 24px -18px rgba(20,18,15,.5);
  transform: translateY(-115%);
  visibility: hidden;
  transition: transform .38s cubic-bezier(.2,.7,.3,1), visibility 0s linear .38s;
}
.searchbar.is-open { transform: none; visibility: visible; transition-delay: 0s, 0s; }
.searchbar__inner {
  max-width: 1400px;
  margin-inline: auto;
  padding: 10px clamp(15px, 3.5vw, 40px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.searchbar svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; }
.searchbar input {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 12px 0;
}
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar input:focus { outline: 0; }
/* the browser's own clear cross would sit next to ours */
.searchbar input::-webkit-search-cancel-button,
.searchbar input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

/* ============================================================
   THE ONE BLOCK — title, terms and the shop controls together
   ============================================================ */

.shop-head { padding: clamp(26px, 3.4vw, 44px) 0 0; }
.shop__inner { padding-top: clamp(20px, 2.6vw, 32px); }

.shop-head__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding-bottom: clamp(18px, 2.2vw, 26px);
}
/* 2 288 отзывов Google — самая сильная цифра, что есть у сети. Стоит
   в строке условий подчёркнутой ссылкой и ведёт к подборке внизу */
.terms__rev { margin-right: 4px; }
.revlink {
  display: inline-flex; align-items: baseline; gap: 7px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  color: var(--ink-2);
  transition: border-color .25s ease, color .25s ease;
}
.revlink:hover { border-bottom-color: var(--green); color: var(--ink); }
.revbadge__st { color: var(--green-deep); letter-spacing: 0; font-size: 12px; }
.revlink b {
  font-family: var(--serif); font-weight: 400; font-size: 19px;
  letter-spacing: .02em; color: var(--green-deep); text-transform: none;
}

.shop-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .13em;
  line-height: 1.1;
  font-size: clamp(30px, 4.4vw, 54px);
  margin: 0;
}

/* the terms, as one honest line — not a screen of its own */
.terms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.terms li { display: flex; align-items: baseline; gap: 6px; }
.terms li + li::before { content: "·"; color: var(--rule); margin-right: 8px; }
.terms b { font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: .02em; color: var(--green-deep); text-transform: none; }

/* --- toolbar: filters + sort, sticky under the bar ----------- */

.toolbar {
  position: sticky;
  top: var(--head-h);
  z-index: 40;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.toolbar__inner {
  padding-block: 11px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chips {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
  scroll-padding-inline: 4px;
  /* the row is a scroller: fade the cut so it reads as deliberate */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
}
.chips::-webkit-scrollbar { display: none; }
.chips.is-end {
  -webkit-mask-image: none;
          mask-image: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.chip i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  transition: color .25s ease;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip[aria-pressed="true"] i { color: rgba(255,255,255,.72); }
.chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.sort {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
}
.sort select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 38px;
  padding: 0 32px 0 34px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.sort select:hover { border-color: var(--ink-3); color: var(--ink); }
.sort select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sort svg {
  position: absolute;
  pointer-events: none;
  fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.sort__chev { right: 12px; width: 11px; height: 11px; }
.sort__ico  { left: 13px;  width: 13px; height: 13px; }
.sort:hover svg { stroke: var(--ink); }

/* ============================================================
   THE LISTING — picture, name, price, basket. Nothing else.
   ============================================================ */

.shop { padding: 0 0 clamp(50px, 6vw, 84px); }

.shop__count {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 clamp(16px, 2vw, 22px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px) clamp(10px, 1.5vw, 22px);
}

.card { display: flex; flex-direction: column; }
.card[hidden] { display: none; }

.card__shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.card__shot img {
  width: 100%;
  height: auto;              /* the intrinsic height attribute must not beat aspect-ratio */
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card__shot img { transform: scale(1.05); }
.card.is-out .card__shot img { filter: grayscale(.55) brightness(.82); }

/* ярлык «сколько заказывают» — только у четырёх позиций; если повесить
   на все, он перестаёт что-либо значить */
.card__rank {
  position: absolute;
  left: 10px; top: 10px;
  z-index: 2;
  background: var(--green-deep);
  color: #fff;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  pointer-events: none;
}

.card__flag {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--night);
  color: #fff;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 11px;
}

.card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name  add"
    "price add";
  align-items: end;
  column-gap: 10px;
  row-gap: 3px;
  margin-top: 11px;
  flex: 1;
}
.card__name  { grid-area: name; align-self: start; }
.card__price { grid-area: price; }
.card__add   { grid-area: add; align-self: end; }
.card__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.25;
  letter-spacing: .012em;
  color: var(--ink);
}
.card__price {
  display: block;
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.25;
  color: var(--ink-2);
}
.card__price i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 5px;
}

.card__add {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.card__add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__add:hover { background: var(--green); border-color: var(--green); color: #fff; }
.card__add:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.card__add.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.card__add[disabled] { border-color: var(--rule); color: var(--ink-3); cursor: not-allowed; background: transparent; }

/* ---------- the tile is a link, the add button is not ----------
   the dish name carries the href so a screen reader hears the dish,
   a stretched pseudo-element hands the whole tile to that link, and the
   button rides above it — adding to the basket stays on the page        */
.card { position: relative; }
.card__name { text-decoration: none; }
.card__name::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}
.card__name:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.card__add { position: relative; z-index: 2; }

.shop__none {
  display: none;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-2);
  padding: clamp(40px, 6vw, 80px) 0;
  text-align: center;
}
.shop__none.is-on { display: block; }
.shop__none button {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   BASKET
   ============================================================ */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 78;
  background: rgba(20,18,15,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.scrim.is-on { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }

.basket {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 79;
  width: min(410px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  visibility: hidden;
  transition: transform .42s cubic-bezier(.2,.7,.3,1), visibility 0s linear .42s;
}
.basket.is-open { transform: none; visibility: visible; transition-delay: 0s, 0s; }

.basket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
}
.basket__head .display { font-size: 17px; letter-spacing: .16em; }
.basket__close {
  width: 44px; height: 44px;
  margin-right: -10px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
.basket__close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

.basket__body { flex: 1; overflow-y: auto; padding: 4px 18px; -webkit-overflow-scrolling: touch; }

.basket__empty {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-3);
  text-align: center;
  padding: 54px 10px;
  margin: 0;
}

.line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dotted var(--rule);
}
.line img { width: 58px; height: 58px; object-fit: cover; border: 1px solid var(--rule); }
.line__name { font-family: var(--serif); font-size: 16px; line-height: 1.3; }
.line__price { font-family: var(--serif); font-size: 15px; color: var(--ink-3); margin-top: 2px; }
.line__qty { display: flex; align-items: center; gap: 2px; }
.line__qty button {
  width: 30px; height: 36px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease;
}
.line__qty button:hover { border-color: var(--ink); background: var(--paper-2); }
.line__qty span {
  min-width: 30px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.basket__foot { border-top: 1px solid var(--rule); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
.basket__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--serif);
  font-size: 21px;
  margin-bottom: 12px;
}
.basket__sum span:first-child { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

.basket__feeds {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-2);
  margin: -6px 0 12px;
}
.line__nopic { display: block; width: 58px; height: 58px; background: var(--paper-2); }
.meter { height: 3px; background: var(--rule-soft); margin-bottom: 9px; }
.meter i { display: block; height: 100%; background: var(--green); width: 0; transition: width .4s cubic-bezier(.2,.7,.3,1); }
.basket__note {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.basket__note b { color: var(--green-deep); font-weight: 700; }
.basket__foot .btn { display: block; width: 100%; text-align: center; }
.basket__foot .btn[disabled] { opacity: .45; cursor: not-allowed; }

.toast {
  position: fixed;
  left: 50%; bottom: 22px;
  z-index: 90;
  transform: translate(-50%, 22px);
  background: var(--night);
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 13px 20px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.3,1);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   EVERYTHING ELSE, IN ONE BAND
   (the old site gave delivery, payment, ratings, hygiene, FAQ
   and large orders a full screen each)
   ============================================================ */

.info { background: var(--paper-2); border-top: 1px solid var(--rule); }
.info__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 62px);
  align-items: start;
}
.info__col > .label { margin-bottom: 16px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dotted var(--rule);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: "0" counter(s);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--green-deep);
  padding-top: 5px;
}
.steps b { display: block; font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: .015em; }
.steps p { margin: 3px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink-2); }

.info__call {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.info__call a { color: var(--ink); border-bottom: 1px solid var(--rule); display: inline-block; padding-bottom: 1px; }
.info__call a:hover { border-color: var(--ink); }

.rates { list-style: none; margin: 0; padding: 0; }
.rates li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--rule);
}
.rates li:last-child { border-bottom: 0; }
.rates span { flex: 1; font-family: var(--serif); font-size: 16.5px; }
.rates b { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1; color: var(--green-deep); }
.rates b i { font-style: normal; font-size: 12px; color: var(--ink-3); margin-left: 3px; }
.rates--sub { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.rates__cap {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 6px;
}
.info__fine {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
}

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-3);
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin: 0 0 15px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}

.quote-strip {
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 30px;
}
.quote-strip h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.4vw, 29px); line-height: 1.25; margin: 0; }
.quote-strip p { font-family: var(--serif); font-size: 16.5px; line-height: 1.55; color: var(--ink-2); margin: 7px 0 0; max-width: 52ch; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 620px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

@media (max-width: 1080px) {
  .info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info__col--faq { grid-column: 1 / -1; }

  /* the shared burger and panel close are 14px and 22px tall until 900px —
     on a shop page they are the way in and out, so give them a real box */
  .burger { width: 44px; height: 44px; justify-content: center; margin-left: -12px; font-size: 0; gap: 0; }
  .burger i, .burger i::before, .burger i::after { width: 20px; }
  .panel-close { width: 44px; height: 44px; margin-right: -10px; }
}

.basket__foot .btn { min-height: 48px; }

@media (max-width: 900px) {
  .head-actions { gap: 6px; }
  .page-bulk .head-actions__bulk { display: none; }

  /* every control a thumb has to hit gets its 44px */
  .toolbar__inner { gap: 10px; padding-block: 8px; }
  .chip, .sort select { min-height: 44px; }
  .card__add { width: 44px; height: 44px; }

  .info__grid { grid-template-columns: 1fr; gap: 34px; }
  .quote-strip .btn-row { width: 100%; }
  .quote-strip .btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 620px) {
  .shop-head__top { align-items: flex-start; flex-direction: column; gap: 12px; }
  .revlink { min-height: 44px; align-items: center; }
  /* the dot separators strand at the head of a wrapped line — space does the work instead */
  .terms { font-size: 10.5px; letter-spacing: .08em; gap: 6px 16px; }
  .terms li + li::before { display: none; }
  .terms b { font-size: 17px; }

  /* two tiles to a phone screen leaves no room for a name beside a button —
     the name takes the full width, the price and the button share the line under it */
  .card__body {
    grid-template-areas:
      "name  name"
      "price add";
    row-gap: 5px;
    column-gap: 8px;
  }
  .card__name, .card__price { font-size: 15px; }
  .card__shot img { aspect-ratio: 1 / .84; }
  .card__add { width: 52px; height: 52px; }
  .card__add svg { width: 22px; height: 22px; stroke-width: 1.9; }
  .grid { gap: 18px 10px; }
}

@media (max-width: 480px) {
  /* on a narrow phone the sort control was eating the filter row —
     the glyph goes, the chevron stays, and the chips get the space back */
  .sort__ico { display: none; }
  .sort select { padding: 0 26px 0 13px; font-size: 11.5px; }
  .chip { padding: 0 13px; font-size: 11.5px; gap: 6px; }
}

@media (max-width: 380px) {
  .grid { gap: 14px 9px; }
  .card__body { column-gap: 6px; }
  .basket__body, .basket__head, .basket__foot { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .searchbar, .basket, .scrim, .toast, .card__shot img { transition-duration: .01ms !important; }
}

@media (max-width: 1080px) {
  .chip { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ============================================================
   FOOTER — the restaurant name is a link now, and it stays quiet
   ============================================================ */

.foot__col .addr-block b a { display: inline; padding: 0; border-bottom: 0; }
.foot__col .addr-block b a:hover { border-bottom: 1px solid rgba(255,255,255,.6); }

/* ============================================================
   STICKY BASKET BAR
   ads land on phones; the running total has to stay in reach
   without the shopper scrolling back to the header
   ============================================================ */

.cartbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--night);
  border-top: 1px solid rgba(255,255,255,.14);
  animation: cartbarUp .32s cubic-bezier(.2,.7,.3,1);
}
@keyframes cartbarUp { from { transform: translateY(100%); } to { transform: none; } }

.cartbar__open {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: none;
  border: 0;
  padding: 4px 4px 4px 8px;
  cursor: pointer;
  text-align: left;
  color: #fff;
}
.cartbar__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cartbar__top {
  display: flex; align-items: baseline; gap: 7px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .01em;
}
.cartbar__dot { opacity: .45; }
.cartbar__sum { font-weight: 400; }
.cartbar__note {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .05em;
  color: rgba(255,255,255,.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cartbar__cta {
  flex: none;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 999px;
  padding: 13px 20px;
}

/* the bar must not sit on top of the last thing on the page */
body.has-cartbar .site-foot { padding-bottom: 96px; }

/* desktop keeps the header basket — no bar needed */
@media (min-width: 901px) { .cartbar { display: none; } }

/* полоса должна читаться и на кремовом каталоге, и на тёмном футере */
.cartbar {
  background: var(--night-2);
  border-top: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 -10px 30px rgba(0,0,0,.34);
}
/* тост не должен садиться на полосу */
body.has-cartbar .toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px) + 14px); }

@media (max-width: 900px) {
  .cartbar__cta { padding: 15px 22px; }
}
/* отступ под полосу нужен только там, где полоса есть */
body.has-cartbar .site-foot { padding-bottom: 34px; }
@media (max-width: 900px) { body.has-cartbar .site-foot { padding-bottom: 100px; } }

/* иконка категории внутри чипа */
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; order: -1; }

/* ============================================================
   FILTER SHEET — телефон. Ряд чипов и нативный селект в одну
   строку не влезали, а раскрытый селект накрывал каталог.
   ============================================================ */

.fbtn { display: none; }

@media (max-width: 620px) {
  .chips, .sort { display: none; }
  .fbtn {
    display: inline-flex; align-items: center; gap: 9px;
    width: 100%; min-height: 46px; padding: 0 14px;
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--ink);
    cursor: pointer;
  }
  .fbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .fbtn span:not(.fbtn__n) { flex: 1; text-align: left; }
  .fbtn__n {
    min-width: 26px; padding: 3px 8px; border-radius: 999px;
    background: var(--green); color: #fff; font-size: 11px; letter-spacing: .04em;
  }
}

.fsheet { position: fixed; inset: 0; z-index: 90; }
.fsheet__scrim {
  position: absolute; inset: 0; background: rgba(12,11,9,.5);
  opacity: 0; transition: opacity .28s ease;
}
.fsheet.is-on .fsheet__scrim { opacity: 1; }
.fsheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 82vh; overflow-y: auto;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.fsheet.is-on .fsheet__panel { transform: none; }
.fsheet__head { display: flex; align-items: center; justify-content: space-between; }
.fsheet__title {
  margin: 0; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.fsheet__x {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.fsheet__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.fsheet__lab {
  margin: 16px 0 8px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.fsheet__list { display: flex; flex-direction: column; gap: 6px; }
.fopt {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 46px; padding: 0 14px;
  background: transparent; border: 1px solid var(--rule); border-radius: 8px;
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  cursor: pointer; text-align: left;
}
.fopt.is-on { border-color: var(--green); background: rgba(0,131,78,.07); color: var(--green-deep); }
.fopt.is-on::after { content: "✓"; font-family: var(--sans); font-size: 13px; color: var(--green); }
.fsheet__go {
  width: 100%; min-height: 50px; margin-top: 18px;
  background: var(--green); border: 0; border-radius: 999px; color: #fff;
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .05em;
  cursor: pointer;
}
@media (min-width: 621px) { .fsheet { display: none; } }
