/* ============================================================
   ÉKO '77 — PRODUCT
   One dish, bought by the litre. Additive to style.css.
   The shop chrome (search, basket, toast) is repeated here on
   purpose: /bulk-orders/ owns its own file and this page must
   not depend on it.
   ============================================================ */

: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; }

.page-product { background: var(--paper); }
.page-product main { padding-top: var(--head-h); }

/* ============================================================
   HEADER EXTRAS — search + basket, shop pages 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 ------------------------------------------ */

.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,
.searchbar__inner > 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; }
.searchbar input::-webkit-search-cancel-button,
.searchbar input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

/* the field has no back end, so it hands you the dishes it knows */
.results {
  max-width: 1400px;
  margin-inline: auto;
  padding: 0 clamp(15px, 3.5vw, 40px) 10px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
}
.results__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 9px 0;
  border-top: 1px dotted var(--rule);
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.results__row:hover { color: var(--green-deep); }
.results__row b { font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.results__out {
  font-family: var(--sans);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 6px;
}
.results__none {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-3);
  margin: 0;
  padding: 16px 0;
  border-top: 1px dotted var(--rule);
}
.results__all {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-top: 1px solid var(--rule);
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.results__all span { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.results__all:hover span { transform: translateX(5px); }

/* ============================================================
   BREADCRUMB
   ============================================================ */

.crumbs { padding: clamp(16px, 2.2vw, 26px) 0 0; }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin: 0; padding: 0;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.crumbs li { display: flex; align-items: center; gap: 9px; }
.crumbs li + li::before { content: "/"; color: var(--rule); }
.crumbs a { border-bottom: 1px solid transparent; padding-block: 3px; transition: color .25s ease, border-color .25s ease; }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.crumbs [aria-current] { color: var(--ink); }

/* ============================================================
   THE DISH
   ============================================================ */

.pd { padding: clamp(18px, 2.4vw, 30px) 0 clamp(44px, 6vw, 76px); }

.pd__grid {
  display: grid;
  gap: clamp(22px, 3vw, 40px) clamp(26px, 4vw, 68px);
}

.pd__head .label { margin-bottom: 12px; }

.pd__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.06;
  letter-spacing: .01em;
  margin: 0;
  color: var(--ink);
}

.pd__desc {
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 14px 0 0;
  max-width: 34ch;
  text-wrap: pretty;
}

.pd__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--rule);
}
.pd__amount {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ink);
}
.pd__rate {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- the photograph ----------------------------------------- */

.pd__fig { margin: 0; }
.pd__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}
.pd__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 46%;
  display: block;
}
.pd__fig .caption { max-width: 46ch; }

/* --- sizes --------------------------------------------------- */

.sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.sizes legend { padding: 0; margin-bottom: 12px; }
.sizes__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.size { display: block; cursor: pointer; }
.size input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.size__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 10px 6px;
  border: 1px solid var(--rule);
  background: transparent;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.size__box b {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink);
}
.size__box i {
  font-style: normal;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-2);
}
.size:hover .size__box { border-color: var(--ink-3); background: var(--paper-2); }
.size input:checked + .size__box {
  border-color: var(--green);
  background: rgba(0,131,78,.06);
  box-shadow: inset 0 0 0 1px var(--green);
}
.size input:checked + .size__box b,
.size input:checked + .size__box i { color: var(--green-deep); }
.size__box em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.size input:checked + .size__box em { color: var(--green-deep); }
.size input:focus-visible + .size__box { outline: 2px solid var(--green); outline-offset: 2px; }

/* --- quantity + add ------------------------------------------ */

.buy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(16px, 2vw, 22px);
}
.qty { display: flex; align-items: stretch; flex: none; }
.qty button {
  width: 46px;
  min-height: 50px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1;
  transition: background .25s ease, color .25s ease;
}
.qty button:hover { background: var(--ink); color: var(--paper); }
.qty button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.qty input {
  width: 54px;
  border: 1px solid var(--ink);
  border-inline: 0;
  background: transparent;
  text-align: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }

.buy__add {
  flex: 1 1 220px;
  min-height: 50px;
  text-align: center;
}

/* --- terms + note + spec -------------------------------------- */

.terms {
  list-style: none;
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  padding: clamp(16px, 2vw, 20px) 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.terms li { display: flex; align-items: baseline; gap: 7px; }
.terms b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--green-deep);
}


.spec {
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  padding-top: clamp(16px, 2vw, 20px);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 26px;
}
.spec > div { min-width: 0; }
.spec dt {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.spec dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}

.pd__ask {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: clamp(18px, 2.2vw, 24px) 0 0;
  max-width: 46ch;
}
.pd__ask a { border-bottom: 1px solid var(--rule); }
.pd__ask a:hover { border-bottom-color: var(--ink); }

/* ============================================================
   MORE FROM STEWS — a listing, so: picture, name, price
   ============================================================ */

.also {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding: clamp(40px, 5vw, 68px) 0 clamp(48px, 6vw, 80px);
}
.also__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
}
.also__head .arrow-link { color: var(--ink); }

.rel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px) clamp(10px, 1.5vw, 22px);
}
.rel__card { display: flex; flex-direction: column; }
.rel__shot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-3);
}
.rel__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.rel__card:hover .rel__shot img { transform: scale(1.05); }
/* name on its own line, price under it — the same order the catalogue
   tiles use, and the only arrangement that survives a name that wraps */
.rel__foot { display: block; margin-top: 11px; }
.rel__name {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.25;
  color: var(--ink);
  min-width: 0;
}
.rel__card:hover .rel__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}
.rel__card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.rel__price {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.25;
  color: var(--ink-2);
  white-space: nowrap;
}
.rel__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;
}

/* ============================================================
   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: 16px; letter-spacing: .16em; margin: 0; }
.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; min-height: 48px; }
.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); }

/* ============================================================
   RESPONSIVE
   the phone reads name → price → photograph → sizes, which is
   the DOM order; from 900px the photograph takes the left half
   ============================================================ */

@media (min-width: 900px) {
  .pd__grid {
    /* the photograph spans three rows and the third one is empty on purpose:
       any height the picture has over the buying column collects there,
       instead of opening a hole between the price and the sizes */
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "fig head"
      "fig form"
      "fig .";
    align-items: start;
    row-gap: clamp(20px, 2.6vw, 30px);
    max-width: 1360px;
    margin-inline: auto;
  }
  .pd__fig  { grid-area: fig; }
  .pd__head { grid-area: head; }
  .pd__form { grid-area: form; align-self: start; }

  /* the crumb and the listing keep the same measure as the dish */
  .crumbs ol, .also__head, .rel { max-width: 1360px; margin-inline: auto; }
}

@media (min-width: 1200px) {
  .pd__frame img { aspect-ratio: 4 / 4.9; }
}

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

@media (max-width: 1080px) {
  /* the shared burger and panel close are small type until 900px —
     on a shop page they are the way in and out, so give them a 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; }
}

@media (max-width: 900px) {
  /* the bar carries a burger, a wordmark, search and the basket —
     the table-booking pill belongs to the restaurant pages */
  .head-actions { gap: 6px; }
  .head-actions__bulk { padding: 8px 12px; }

  .pd__fig { margin-top: 4px; }
  .pd__frame img { aspect-ratio: 4 / 3.9; object-position: center 44%; }
  .pd__desc { max-width: none; }

  /* a crumb is a link a thumb has to hit, so it gets its 44px without
     pushing the line down the page */
  .crumbs { padding-top: clamp(4px, 1vw, 12px); }
  .crumbs a { padding-block: 11px; }
}

@media (max-width: 620px) {
  .terms { font-size: 10.5px; letter-spacing: .08em; gap: 8px 18px; }
  .terms b { font-size: 17px; }
  .spec { gap: 13px 18px; }
  .also__head { flex-direction: column; align-items: flex-start; }

  .rel__name, .rel__price { font-size: 16px; }
}

@media (max-width: 380px) {
  .pd__name { font-size: 32px; }
  .sizes__row { gap: 6px; }
  .size__box { min-height: 66px; padding: 9px 4px; }
  .size__box i { font-size: 15.5px; }
  .qty button { width: 42px; }
  .qty input { width: 46px; }
  .rel { gap: 14px 9px; }
  .basket__body, .basket__head, .basket__foot { padding-inline: 14px; }
}

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

@media (max-width: 1080px) {
  /* хлебные крошки — тоже действие, дотягиваем до пальца */
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* аллергены — отдельный блок, а не продолжение строки про минимум */
.allerg {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.allerg__list { font-family: var(--serif); font-size: 17px; line-height: 1.55; margin: 12px 0 0; color: var(--ink); }
.allerg__list i { color: var(--ink-2); }
.allerg__note {
  font-family: var(--serif);
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  margin: 12px 0 0; max-width: 52ch;
}
.allerg__note a { border-bottom: 1px solid var(--rule); }
.allerg__note a:hover { border-bottom-color: var(--ink); }
@media (max-width: 1080px) { .allerg__note a { display: inline; min-height: 0; padding-block: 4px; } }

/* строка условий: иконка + текст, одинаково у всех трёх */
.terms { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); }
.terms li { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.terms li b { font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: 0; text-transform: none; color: var(--green-deep); }
.terms__ico { width: 19px; height: 19px; flex: none; stroke: var(--green-deep); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* заголовок блока похожих товаров — полноценный, а не мелкий лейбл */
.rel__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 12px 0 clamp(24px, 3vw, 36px);
}

/* карточка похожего товара: ссылка + отдельная кнопка в корзину */
.rel__card { display: flex; flex-direction: column; }
.rel__link { display: block; }
.rel__add {
  margin-top: 10px;
  width: 100%;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 12px 14px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.rel__add:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   STICKY BUY — телефон. Появляется, когда основная кнопка ушла
   из вида. Размер выбирается прямо здесь: у блюда есть объёмы,
   и молча класть самый дешёвый нельзя.
   ============================================================ */

.pbar {
  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-2, #14120F);
  border-top: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 -10px 30px rgba(0,0,0,.34);
  animation: pbarUp .32s cubic-bezier(.2,.7,.3,1);
}
@keyframes pbarUp { from { transform: translateY(100%); } to { transform: none; } }

.pbar__sizes { display: flex; gap: 6px; margin-bottom: 9px; }
.pbar__size {
  flex: 1 1 0; min-width: 0; min-height: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  transition: border-color .22s ease, background .22s ease;
}
.pbar__size b { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.pbar__size i { font-style: normal; font-family: var(--serif); font-size: 13px; color: rgba(255,255,255,.62); }
.pbar__size em {
  font-style: normal; font-family: var(--sans); font-size: 9px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.pbar__size.is-on em { color: rgba(255,255,255,.8); }
.pbar__size.is-on { border-color: var(--green); background: rgba(0,131,78,.24); }
.pbar__size.is-on i { color: #fff; }

.pbar__row { display: flex; align-items: center; gap: 11px; }
.pbar__thumb { width: 46px; height: 46px; object-fit: cover; flex: none; border-radius: 4px; }
.pbar__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pbar__name {
  font-family: var(--serif); font-size: 16px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pbar__price {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .05em;
  color: rgba(255,255,255,.7); white-space: nowrap;
}
.pbar__add {
  flex: none;
  min-height: 48px;
  padding: 0 20px;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  cursor: pointer;
}
.pbar__add:hover { background: var(--green-deep); }

/* полоса не должна садиться на последний блок страницы и на тост */
body.has-pbar .site-foot { padding-bottom: 130px; }
body.has-pbar .toast { bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 901px) {
  .pbar { padding: 10px clamp(20px, 4vw, 56px); }
  .pbar__panel {
    max-width: 1400px; margin-inline: auto;
    display: flex; align-items: center; gap: 18px;
  }
  /* строка «раскрывается» в панель, чтобы порядок был честный:
     блюдо → размер → кнопка */
  .pbar__row { display: contents; }
  .pbar__thumb { order: 1; width: 52px; height: 52px; }
  .pbar__info  { order: 2; flex: 0 1 auto; }
  .pbar__sizes { order: 3; margin: 0; flex: 1 1 auto; max-width: 420px; gap: 8px; }
  .pbar__add   { order: 4; margin-left: auto; min-height: 48px; padding: 0 28px; }
  .pbar__size { min-height: 46px; }
  .pbar__name { font-size: 18px; }
  .pbar__price { font-size: 12px; }
  body.has-pbar .site-foot { padding-bottom: 110px; }
}
