/* ═══════════════════════════════════════════════════════════════
   AÝOLA — единая система для главной, каталога, товара, корзины
   и избранного (подключается последней, поверх стилей страниц).

   Правила:
   · фон страницы — светло-серый, содержимое — на белых карточках
     со скруглением 16px;
   · синий — только для покупки: «В корзину», «Оформить заказ»,
     выбранный размер; всё остальное — графит;
   · кнопки покупки — 12px скругление, высота 48–52px;
   · окна — скругление 20px, на телефоне — шторка снизу.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --sys-page: #f4f4f5;
  --sys-card: #ffffff;
  --sys-line: #e6e6ea;
  --sys-radius: 16px;
  --sys-buy: #1a73e8;
  --sys-ok: #1f9d55;
  --sys-incart: #1d1d1f;          /* «В корзине» — графит, как активные кнопки */
  --sys-incart-text: #ffffff;
  --sys-buy-hover: #3183ed;
  --sys-sale: #e5484d;
  --sys-sale-soft: #fdecec;
  /* старые токены палитры (кирпичный и тёмно-зелёный) — на яркие цвета системы,
     чтобы скидки, «Бесплатно», ошибки и «в наличии» везде были одного тона */
  --madder: var(--sys-sale);
  --moss: var(--sys-ok);
}
html[data-theme="dark"] {
  --sys-page: #000000;
  --sys-card: #1c1c1e;
  --sys-line: #38383a;
  --sys-buy: #0a84ff;
  --sys-ok: #30b562;
  --sys-incart: #f5f5f7;
  --sys-incart-text: #1d1d1f;
  --sys-buy-hover: #409cff;
  --sys-sale: #ff6b6b;
  --sys-sale-soft: #3a1d1f;
  --madder: var(--sys-sale);
  --moss: var(--sys-ok);
}

/* ── Кнопка покупки ────────────────────────────────────────────── */
.btn-buy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; padding: 0 20px;
  border: 0; border-radius: 12px;
  background: var(--sys-buy); color: #fff;
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0;
  text-decoration: none !important; cursor: pointer;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.btn-buy:hover:not(:disabled) { background: var(--sys-buy-hover); color: #fff; }
.btn-buy:active:not(:disabled) { transform: scale(.98); }
.btn-buy:disabled { opacity: .45; cursor: not-allowed; }
.btn-buy:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn-buy--inline { display: inline-flex; width: auto; min-height: 46px; padding: 0 28px; }

/* Кнопка на карточке (дата самовывоза) — та же кнопка покупки */
.pickup-link, .savedpg .scard__add.pickup-link {
  border-radius: 10px; border-color: var(--sys-buy); background: var(--sys-buy); box-shadow: none;
}
.pickup-link:hover:not(:disabled), .savedpg .scard__add.pickup-link:hover:not(:disabled) { background: var(--sys-buy-hover); border-color: var(--sys-buy-hover); }
.pickup-link.is-in-cart, .pickup-link.is-in-cart:hover:not(:disabled) { background: var(--sys-incart); border-color: var(--sys-incart); color: var(--sys-incart-text); }
.pickup-link.is-in-cart:hover:not(:disabled) { opacity: .88; }

/* ── Окна ──────────────────────────────────────────────────────── */
.dialog--center { border-radius: 20px; overflow: hidden; }
.dialog__title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.dialog__head { border-bottom: 0; padding: 22px 16px 6px 24px; }
.dialog__body { padding: 12px 24px 24px; }
@media (max-width: 720px) {
  .dialog--center { border-radius: 20px 20px 0 0; }
}

/* ── Окно «Выберите размер» ────────────────────────────────────── */
.szp__guide {
  display: inline-block; margin: 0 0 18px; padding: 0 0 1px;
  background: none; border: 0; border-bottom: 1px dashed var(--text-dim);
  color: var(--text-dim); font-family: var(--font); font-size: 14px; cursor: pointer; text-decoration: none;
}
.szp__guide:hover { color: var(--text); border-bottom-color: var(--text); text-decoration: none; }
.szp__grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.szp__opt {
  min-width: 68px; min-height: 58px; padding: 7px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--sys-card); color: var(--text);
  border: 1px solid var(--sys-line); border-radius: 12px;
  font-family: var(--font); cursor: pointer;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.szp__opt b { font-size: 16px; font-weight: 600; }
.szp__opt small { font-size: 11.5px; color: var(--text-dim); }
.szp__opt small.is-low { color: var(--sys-sale); }
.szp__opt:hover:not(:disabled) { border-color: var(--text-dim); }
.szp__opt[aria-checked="true"] { border-color: var(--sys-buy); box-shadow: inset 0 0 0 1px var(--sys-buy); }
.szp__opt:disabled { opacity: .45; cursor: not-allowed; }
.szp__opt:disabled b { text-decoration: line-through; }
.szp__opt:focus-visible { outline: 2px solid var(--sys-buy); outline-offset: 2px; }

/* ── Товар летит в корзину ─────────────────────────────────────── */
.fly-to-cart {
  position: fixed; z-index: 400; margin: 0;
  object-fit: cover; border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  pointer-events: none; will-change: transform, opacity;
}

/* ── Общий фон страниц ─────────────────────────────────────────── */
.plp, .savedpg { --plp-page: var(--sys-page); --sv-page: var(--sys-page); --plp-panel: var(--sys-card); --sv-panel: var(--sys-card); }
.plp .plp-results, .savedpg .savedpg__panel { border-radius: var(--sys-radius); }

/* ── Пустые корзина и избранное ────────────────────────────────── */
.bagpg__empty-card {
  margin: 24px 0 0; padding: clamp(36px, 5vw, 56px) 24px;
  background: var(--sys-card); border-radius: var(--sys-radius);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.empty-art { width: 96px; height: 78px; margin-bottom: 18px; }
html[data-theme="dark"] .empty-art { opacity: .75; }
.bagpg__empty-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.bagpg__empty-title:focus { outline: 0; }
.bagpg__empty-text { margin: 0 0 26px; max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--text-dim); }
.bagpg__empty-card .bagpg__empty-saved { margin: 18px 0 0; }
.bagpg__empty-card .bagpg__empty-saved a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 14px; }
.bagpg__empty-card .bagpg__empty-saved svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.savedpg .bagpg__empty-card { margin-top: 8px; }
/* пустые корзина и избранное — карточка во всю ширину страницы, как блок с товарами */
.savedpg .savedpg__empty.bagpg__empty-card, .bagpg .bagpg__empty.bagpg__empty-card { max-width: none; width: 100%; }

/* ═══ Корзина ═══════════════════════════════════════════════════ */
.bagpg { background: var(--sys-page); padding-bottom: 56px; }
.bagpg > .wrap { padding-top: 24px; }
.bagpg .bagpg__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start;
  margin: 0;
}
.bagpg .bagpg__lines {
  background: var(--sys-card); border-radius: var(--sys-radius);
  padding: 22px 28px 6px;
}
.bagpg .bagpg__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--sys-line);
}
.bagpg .bagpg__title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.bagpg .bagpg__title:focus { outline: 0; }
.bagpg .bagpg__count { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--text-dim); letter-spacing: 0; }
.bagpg .bagpg__continue { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-dim); }
.bagpg .bagpg__continue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.bagpg .bagpg__alert { margin: 16px 0 0; }

/* позиция: фото · описание · количество · цена */
.bagpg .bag-lines { list-style: none; margin: 0; padding: 0; }
.bagpg .bag-lines .bline {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto 150px;
  grid-template-areas: "img info qty sum" "warn warn warn warn";
  grid-template-rows: auto auto;
  column-gap: 20px; row-gap: 0;
  padding: 20px 0; border-bottom: 1px solid var(--sys-line);
}
.bagpg .bag-lines .bline__warn { margin-top: 12px; }
.bagpg .bag-lines .bline:last-child { border-bottom: 0; }
.bagpg .bag-lines .bline__img {
  grid-area: img; display: block; width: 96px; aspect-ratio: 3 / 4;
  border-radius: 10px; overflow: hidden; background: var(--bg-plate); border: 0;
}
.bagpg .bag-lines .bline__img img { width: 100%; height: 100%; object-fit: cover; }
.bagpg .bag-lines .bline__info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bagpg .bag-lines .bline__name { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; }
.bagpg .bag-lines .bline__name a:hover { text-decoration: underline; }
.bagpg .bag-lines .bline__meta { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--text-dim); }
.bagpg .bag-lines .bline__swatch { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bagpg .bag-lines .bline__opts { grid-area: auto; display: flex; gap: 8px; margin: 2px 0 0; }
.bagpg .bag-lines .bline__opts { flex-wrap: nowrap; }
.bagpg .bag-lines .bline__opt { display: flex; flex-direction: row; align-items: center; gap: 8px; width: auto; }
.bagpg .bag-lines .bline__lbl { font-size: 13px; font-weight: 400; color: var(--text-dim); }
.bagpg .bag-lines .bline .bline__select {
  width: auto; min-width: 72px; height: 32px; min-height: 32px; padding: 0 28px 0 10px;
  border: 1px solid var(--sys-line); border-radius: 8px; background-color: var(--sys-card); font-size: 13px;
}
.bagpg .bag-lines .bline__static { font-size: 13px; }
/* Размер — выпадающая панель в стиле сайта (как в избранном) */
.bagpg { --sv-panel: var(--sys-card); --sv-page: var(--sys-page); --sv-line: var(--sys-line); --sv-blue: var(--text); }
.bagpg .bline.has-open-dd { position: relative; z-index: 5; }
.bagpg .bline__dd .sv-dd__btn {
  min-width: 78px; min-height: 32px; padding: 0 10px 0 12px; gap: 10px;
  border-radius: 8px; font-size: 13px; font-weight: 500;
}
.bagpg .bline__dd .sv-dd__btn:disabled { opacity: .55; cursor: not-allowed; }
.bagpg .bline__dd .sv-dd__list { min-width: 170px; border-radius: 12px; border-color: var(--sys-line); }
.bagpg .bline__dd .sv-dd__opt { gap: 10px; }
.bagpg .bline__dd .sv-dd__opt:disabled { color: var(--text-dim); cursor: not-allowed; }
.bagpg .bline__dd .sv-dd__opt:disabled:hover { background: none; }
.bagpg .bline__dd .sv-dd__opt[aria-selected="true"] { font-weight: 600; }
.bagpg .bag-lines .bline__pickup { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 13px; color: var(--text); }
.bagpg .bag-lines .bline__pickup svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.bagpg .bag-lines .bline__pickup b { font-weight: 600; }
.bagpg .bag-lines .bline__low {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  margin: 2px 0 0; padding: 3px 8px; border-radius: 6px;
  background: var(--sys-sale-soft); color: var(--sys-sale); font-size: 12px; font-weight: 500;
}
.bagpg .bag-lines .bline__low svg { width: 12px; height: 12px; fill: currentColor; }
.bagpg .bag-lines .bline__photo-note { margin: 0; font-size: 12px; color: var(--text-dim); }
.bagpg .bag-lines .bline__actions { grid-area: auto; display: flex; gap: 4px; margin: 4px 0 0 -6px; align-self: flex-start; }
.bagpg .bag-lines .bline__act {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  background: none; border: 0; border-radius: 8px; color: var(--text-dim); cursor: pointer;
}
.bagpg .bag-lines .bline__act:hover { background: var(--sys-page); color: var(--text); }
.bagpg .bag-lines .bline__act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.bagpg .bag-lines .bline__act span { display: none; }

.bagpg .bag-lines .bline__qty { grid-area: qty; display: flex; align-items: center; gap: 10px; align-self: start; }
.bagpg .bag-lines .bline__step {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  background: var(--sys-page); border: 0; border-radius: 8px;
  color: var(--text); font: 500 18px/1 var(--font); cursor: pointer;
}
.bagpg .bag-lines .bline__step:hover:not(:disabled) { background: var(--sys-line); }
.bagpg .bag-lines .bline__step:disabled { opacity: .35; cursor: default; }
.bagpg .bag-lines .bline__n { min-width: 18px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }

.bagpg .bag-lines .bline__sum { grid-area: sum; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.bagpg .bag-lines .bline__total { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.bagpg .bag-lines .bline__total.is-sale { color: var(--sys-sale); }
.bagpg .bag-lines .bline__was { margin: 0; font-size: 13px; color: var(--text-dim); }
.bagpg .bag-lines .bline__off { padding: 2px 7px; border-radius: 6px; background: var(--sys-sale-soft); color: var(--sys-sale); font-size: 12px; font-weight: 600; }
.bagpg .bag-lines .bline__each { margin: 0; font-size: 12px; color: var(--text-dim); }
.bagpg .bag-lines .bline__warn { grid-area: warn; margin: 0; border-radius: 10px; }

/* карточка итога */
.bagpg .bagpg__aside { position: sticky; top: calc(var(--header-h, 64px) + 70px); }
.bagpg .bsum {
  background: var(--sys-card); border-radius: var(--sys-radius);
  padding: 24px; margin: 0;
}
.bagpg .bsum__title { margin: 0 0 16px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; text-transform: none; }
.bagpg .bsum__rows { margin: 0; }
.bagpg .bsum__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--text-dim); }
.bagpg .bsum__row dd { margin: 0; color: var(--text); white-space: nowrap; }
.bagpg .bsum__row.is-discount dd { color: var(--sys-sale); }
.bagpg .bsum__row small { display: block; font-size: 12px; }
.bagpg .bsum__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 12px 0 0; padding: 14px 0 0; border-top: 1px solid var(--sys-line);
}
.bagpg .bsum__total span { font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.bagpg .bsum__total b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.bagpg .bsum__cta { margin: 18px 0 0; }
.bagpg .bsum__promo { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--sys-line); }
.bagpg .bsum .bsum__input { border-radius: 10px; font-family: var(--font); text-transform: uppercase; letter-spacing: .04em; }
.bagpg .bsum__apply { border-radius: 10px; }
.bagpg .bsum__notes { margin: 16px 0 0; font-size: 12.5px; color: var(--text-dim); }
.bagpg .bsum__links { font-size: 12.5px; }

/* панель внизу на телефоне */
.bagpg .bagbar .btn-buy { width: auto; min-height: 46px; padding: 0 22px; flex: none; }

@media (max-width: 900px) {
  .bagpg .bagpg__layout { grid-template-columns: 1fr; }
  .bagpg .bagpg__aside { position: static; }
  .bagpg .bsum { margin: 0; padding: 20px; }
}
@media (max-width: 640px) {
  .bagpg > .wrap { padding-top: 14px; }
  .bagpg .bagpg__lines { padding: 16px 14px 2px; }
  .bagpg .bagpg__title { font-size: 20px; }
  .bagpg .bagpg__continue { display: none; }
  .bagpg .bag-lines .bline {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas: "img info" "img qty" "sum sum" "warn warn";
    column-gap: 14px;
  }
  .bagpg .bag-lines .bline__img { width: 84px; }
  .bagpg .bag-lines .bline__sum { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; text-align: left; }
  .bagpg .bag-lines .bline__qty { justify-self: start; }
}

/* ═══ Страница товара ═══════════════════════════════════════════ */
.pdp { background: var(--sys-page); padding-bottom: 48px; }
.pdp .pdp__info {
  background: var(--sys-card); border-radius: var(--sys-radius);
  padding: clamp(20px, 2.4vw, 32px);
  align-self: start;
}
.pdp .pdp-gallery__slide { background: var(--sys-card); border-radius: var(--sys-radius); }
.pdp .pdp-sec.wrap:not(.pdp-row__head) {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin-top: 20px; padding: clamp(22px, 3vw, 44px) clamp(18px, 3vw, 44px);
  background: var(--sys-card); border-radius: var(--sys-radius);
}
/* главная кнопка — синяя кнопка покупки */
.pdp .pdp-cta { border-radius: 12px; background: var(--sys-buy); color: #fff; }
.pdp .pdp-cta:hover:not(:disabled) { background: var(--sys-buy-hover); }
.pdp .pdp-cta.is-added, .pdp-bar .pdp-cta.is-added, .pdp .pdp-cta.is-added:hover:not(:disabled) { background: var(--sys-incart); color: var(--sys-incart-text); }
.pdp-bar .pdp-cta { border-radius: 12px; background: var(--sys-buy); color: #fff; }
/* размеры — плитки, выбранный с синей рамкой (как в окне выбора размера) */
.pdp .pdp-size { border-radius: 12px; min-height: 48px; }
.pdp .pdp-size[aria-pressed="true"] {
  background: var(--sys-card); color: var(--text);
  border-color: var(--sys-buy); box-shadow: inset 0 0 0 1px var(--sys-buy);
}
.pdp .pdp-size[aria-pressed="true"] small { color: var(--text-dim); opacity: 1; }
.pdp .pdp-pill--color { border-radius: 12px; }
@media (max-width: 900px) {
  .pdp .pdp__info { border-radius: var(--sys-radius); margin: 0 calc(-1 * var(--gutter) + 8px); padding: 20px 16px; }
  .pdp .pdp-sec.wrap:not(.pdp-row__head) { width: calc(100% - 16px); margin-top: 12px; padding: 20px 16px; }
}

/* ═══ Быстрый просмотр ══════════════════════════════════════════ */
/* Кнопка на фото карточки: видна при наведении (только мышь) и при фокусе */
.pcard__qv {
  position: absolute; left: 10px; right: 10px; z-index: 3;
  top: calc(100cqw * 4 / 3 - 54px);
  min-height: 40px; padding: 0 12px;
  background: rgba(255, 255, 255, .92); color: #1c1d21;
  border: 0; border-radius: 12px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 14px/1 var(--font); cursor: pointer;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), background .15s var(--ease);
}
.pcard { container-type: inline-size; }
.pcard__qv:hover { background: #fff; }
.pcard__qv:focus-visible { opacity: 1; transform: none; pointer-events: auto; outline: 2px solid var(--sys-buy); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover .pcard__qv { opacity: 1; transform: none; pointer-events: auto; }
}
@media (hover: none), (pointer: coarse) { .pcard__qv { display: none; } }
/* в каталоге фото 7:9 и сердечко слева внизу — кнопка в той же ячейке сетки,
   внизу справа от сердечка */
.plp .pcard__qv {
  position: relative; grid-area: 1 / 1; align-self: end; justify-self: start;
  top: auto; left: auto; right: auto;
  width: calc(100% - 64px); margin: 0 0 10px 48px;
}

/* Окно */
.qv-dialog { background: var(--sys-page); }
.qv-dialog .dialog__head { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 0; border: 0; background: none; }
.qv-dialog .dialog__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qv-dialog .dialog__head .icon-btn { background: var(--sys-card); border-radius: 50%; }
.qv-dialog .dialog__body { padding: 0; }
.qv { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; padding: 12px; }
.qv__media { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qv__photo { position: relative; height: min(600px, calc(100vh / var(--zoom, 1) - 190px)); border-radius: var(--sys-radius); overflow: hidden; background: var(--bg-plate); }
.qv__img { width: 100%; height: 100%; object-fit: cover; }
.qv__badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--sys-sale); color: #fff; font-size: 13px; font-weight: 700; }
.qv__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.qv__thumb { flex: none; width: 58px; aspect-ratio: 3 / 4; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.qv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.qv__thumb[aria-pressed="true"] { border-color: var(--sys-buy); }
.qv__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.qv__card { background: var(--sys-card); border-radius: var(--sys-radius); padding: 20px 22px; }
.qv__cat { display: inline-block; margin: 0 40px 6px 0; padding: 3px 10px; border-radius: 999px; background: var(--sys-page); font-size: 13px; font-weight: 500; }
.qv__row { display: flex; gap: 10px; }
.qv__row .btn-buy { flex: 1; }
/* «В избранное» — рядом с решением о покупке: отложить, если пока не готовы купить */
.qv__save {
  position: static; flex: none; width: 50px; height: auto; min-height: 50px;
  border-radius: 12px; background: var(--sys-page);
  display: grid; place-items: center; box-shadow: none;
}
.qv__save:hover { background: var(--sys-line); }
.qv__save svg { width: 22px; height: 22px; }
.qv__name { margin: 4px 0 6px; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.qv__rating { margin: 0 0 8px; font-size: 13.5px; color: var(--text-dim); }
.qv__label { margin: 14px 0 8px; font-size: 13.5px; color: var(--text-dim); }
.qv__label b { color: var(--text); font-weight: 500; }
.qv__colors { display: flex; flex-wrap: wrap; gap: 8px; }
.qv__swatch { width: 38px; height: 38px; padding: 4px; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.qv__swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.qv__swatch[aria-pressed="true"] { border-color: var(--text); }
.qv .szp__guide { margin: 16px 0 10px; }
.qv .szp__grid { margin: 0; }
.qv__sizes.is-invalid { animation: qvNudge .4s var(--ease); }
.qv__sizes.is-invalid .szp__opt:not(:disabled) { border-color: var(--sys-sale); }
@keyframes qvNudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.qv__hint { min-height: 18px; margin: 6px 0 0; font-size: 13px; color: var(--sys-sale); }
.qv__more {
  display: flex; align-items: center; justify-content: center; margin: 14px 0 0; min-height: 44px;
  border-radius: 12px; background: var(--sys-page); color: var(--text); font-size: 14.5px; font-weight: 500; text-decoration: none;
}
.qv__more:hover { background: var(--sys-line); text-decoration: none; }
.qv__buy { display: flex; flex-direction: column; gap: 10px; }
.qv__price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.qv__price b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.qv__price b.is-sale { color: var(--sys-sale); }
.qv__price s { font-size: 15px; color: var(--text-dim); }
.btn-buy--soft { background: color-mix(in srgb, var(--sys-buy) 12%, var(--sys-card)); color: var(--sys-buy); }
.btn-buy--soft:hover:not(:disabled) { background: color-mix(in srgb, var(--sys-buy) 20%, var(--sys-card)); color: var(--sys-buy); }
@media (max-width: 720px) {
  .qv { grid-template-columns: 1fr; }
  .qv__photo { aspect-ratio: 4 / 5; }
}

/* Хлебные крошки на странице товара — как в каталоге: тот же размер и отступы */
.pdp .pdp__crumbs { font-size: 14px; margin: 20px 0 18px; }
.pdp-tile__cta .pickup-link { margin-top: 0; width: 100%; }

/* ── Корзина: кнопки над списком (всё в избранное, очистить, поделиться) ── */
.bagpg .bagpg__tools { display: flex; gap: 8px; margin-left: auto; }
.bagpg .bagpg__tool {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 10px; background: var(--sys-page); color: var(--text);
  cursor: pointer; transition: background .15s var(--ease), transform .15s var(--ease);
}
.bagpg .bagpg__tool:hover { background: var(--sys-line); }
.bagpg .bagpg__tool:active { transform: scale(.92); }
.bagpg .bagpg__tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bagpg .bagpg__tool--save.is-saved { color: #ff2d55; }
.bagpg .bagpg__tool--save.is-saved svg { fill: #ff2d55; stroke: #ff2d55; }
/* сердечко позиции: в избранном — сплошное */
.bagpg .bag-lines .bline__save.is-saved { color: #ff2d55; }
.bagpg .bag-lines .bline__save.is-saved svg { fill: #ff2d55; stroke: #ff2d55; }
.bagpg .bag-lines .bline__save.is-saved[data-tint="yellow"] { color: #f2b705; }
.bagpg .bag-lines .bline__save.is-saved[data-tint="yellow"] svg { fill: #f2b705; stroke: #f2b705; }

/* Окно «С вами поделились корзиной» */
.shared__lead { margin: 0 0 12px; color: var(--text-dim); font-size: 14px; }
.shared__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: min(52vh, 420px); overflow-y: auto; }
.shared__item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; }
.shared__img { width: 52px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--sys-page); }
.shared__img img { width: 100%; height: 100%; object-fit: cover; }
.shared__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shared__info b { font-size: 14px; font-weight: 600; }
.shared__info small { font-size: 12.5px; color: var(--text-dim); }
.shared__price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.shared__foot { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.share-note { margin: 0 0 10px; font-size: 14px; color: var(--text-dim); }
.share-url { width: 100%; }
.bagpg .bagpg__lines .bagpg__head { flex-wrap: nowrap; align-items: center; }
.bagpg .bagpg__title { min-width: 0; }
@media (max-width: 600px) {
  .bagpg .bagpg__tools { gap: 6px; }
  .bagpg .bagpg__tool { width: 34px; height: 34px; border-radius: 9px; }
  .bagpg .bagpg__title small { display: block; margin: 2px 0 0; }
}

/* ── Хлебные крошки на всех страницах: одинаковый воздух сверху и снизу ──
   Отступ — внутренний (padding), чтобы он не «схлопывался» с блоками вокруг. */
#app .crumbs { margin: 0; padding: 28px 0 20px; }
#app .plp .plp-head, #app .savedpg .savedpg__top { padding-top: 0; }
/* лента на главной — без крошек, поэтому свой отступ от видео */
#app .home .home-feed .plp-head { padding-top: clamp(48px, 5vw, 72px); }
@media (max-width: 760px) { #app .home .home-feed .plp-head { padding-top: 36px; } }
#app .plp .plp-head .crumbs, #app .savedpg .savedpg__top .crumbs { padding-bottom: 22px; }
@media (max-width: 760px) {
  #app .crumbs { padding: 18px 0 14px; }
}

/* ── Главная: кнопки подборок без серой плашки — белые «пилюли» с тенью ── */
.home .home-feed__bar { background: none; border: 0; padding: 0; gap: 12px; margin-bottom: 10px; }
.home .home-feed__btn {
  min-height: 48px; padding: 0 22px;
  background: var(--sys-card); border: 1px solid var(--sys-line);
  font-size: 15px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .07);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.home .home-feed__btn:hover { border-color: var(--sys-line); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 10px 24px rgba(0, 0, 0, .1); }
.home .home-feed__btn:active { transform: scale(.97); }
.home .home-feed__btn.is-on { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
html[data-theme="dark"] .home .home-feed__btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 6px 18px rgba(0, 0, 0, .5); }
@media (max-width: 760px) {
  .home .home-feed__bar { padding: 0; gap: 10px; }
  .home .home-feed__btn { min-height: 46px; padding: 8px 10px; font-size: 14px; }
}

/* ── Уведомления: белая карточка сверху по центру ──────────────────
   Иконка в цветном кружке, текст, кнопка-пилюля, крестик и полоска времени. */
.toast {
  top: auto; bottom: calc(20px + var(--tabbar-h, 0px)) !important; left: auto; right: 20px; z-index: 1000;
  display: flex; align-items: center; gap: 12px;
  width: max-content; min-width: 320px; max-width: 480px;
  padding: 10px 10px 10px 12px; overflow: hidden;
  background: var(--sys-card); color: var(--text);
  border: 1px solid var(--sys-line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16), 0 3px 10px rgba(0, 0, 0, .06);
  font-size: 14px; line-height: 1.35;
  transform: translate(0, 18px) scale(.96);
  transition: opacity .22s var(--ease), transform .45s cubic-bezier(.2, 1.3, .35, 1);
}
.toast.is-on { transform: translate(0, 0) scale(1); }
html[data-theme="dark"] .toast { background: #2c2c2e; border-color: #3a3a3c; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.toast.is-error { background: var(--sys-card); color: var(--text); }
html[data-theme="dark"] .toast.is-error { background: #2c2c2e; }

.toast__icon {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: color-mix(in srgb, var(--sys-ok) 14%, transparent); color: var(--sys-ok);
}
.toast__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toast__icon svg .is-fill { fill: currentColor; stroke: none; }
.toast--heart .toast__icon { background: rgba(255, 45, 85, .12); color: #ff2d55; }
.toast--heart.is-on .toast__icon svg { animation: toastBeat .7s .15s var(--ease); }
.toast--bag .toast__icon, .toast--link .toast__icon, .toast--undo .toast__icon { background: var(--sys-page); color: var(--text); }
.toast--bag .toast__icon svg, .toast--link .toast__icon svg, .toast--undo .toast__icon svg { stroke-width: 1.8; }
.toast.is-error .toast__icon { background: color-mix(in srgb, var(--sys-sale) 14%, transparent); color: var(--sys-sale); }
.toast.is-error .toast__icon svg { stroke-width: 2.6; }
@keyframes toastBeat { 30% { transform: scale(1.3); } 60% { transform: scale(.92); } }

.toast__text { flex: 1; min-width: 0; font-weight: 500; }
.toast a.toast__action, .toast button.toast__action {
  flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--text); color: var(--bg);
  font-family: var(--font); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: opacity .15s var(--ease);
}
.toast a.toast__action:hover, .toast button.toast__action:hover { opacity: .85; text-decoration: none; }
.toast .toast__close {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-left: -4px;
  border-radius: 8px; background: none; color: var(--text-dim); text-decoration: none; cursor: pointer;
}
.toast .toast__close:hover { background: var(--sys-page); color: var(--text); }
.toast__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.toast__time {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; opacity: .14; transform-origin: left;
}
.toast--heart .toast__time { background: #ff2d55; opacity: .5; }
.toast.is-error .toast__time { background: var(--sys-sale); opacity: .5; }
/* на телефоне в корзине — над нижней панелью «Оформить заказ» */
html:has(.bagpg .bagbar.is-on) .toast { bottom: calc(84px + var(--tabbar-h, 0px)) !important; }
@media (max-width: 600px) {
  /* к краям экрана, без 100vw: у сайта zoom 1.1, и 100vw получается шире экрана */
  .toast {
    left: 10px; right: 10px; bottom: calc(12px + var(--tabbar-h, 0px)) !important;
    width: auto; max-width: none; min-width: 0; gap: 10px; padding: 8px 8px 8px 10px; font-size: 13.5px;
  }
  .toast__icon { width: 32px; height: 32px; border-radius: 10px; }
  .toast__icon svg { width: 18px; height: 18px; }
  .toast a.toast__action, .toast button.toast__action { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
}


/* Узкая панель позиций (окно 900–1100px): количество и цена — под описанием */
.bagpg .bagpg__lines { container: baglines / inline-size; }
@container baglines (max-width: 640px) {
  .bagpg .bag-lines .bline {
    grid-template-columns: 96px auto minmax(0, 1fr);
    grid-template-areas: "img info info" "img qty sum" "warn warn warn";
    grid-template-rows: auto auto auto; row-gap: 12px;
  }
  .bagpg .bag-lines .bline__qty { align-self: center; justify-self: start; }
  .bagpg .bag-lines .bline__sum { align-self: center; }
}
@container baglines (max-width: 440px) {
  .bagpg .bag-lines .bline {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas: "img info" "img qty" "sum sum" "warn warn";
    grid-template-rows: auto; row-gap: 0; column-gap: 14px;
  }
  .bagpg .bag-lines .bline__img { width: 84px; }
  .bagpg .bag-lines .bline__sum { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; text-align: left; }
}

/* Итог корзины: подпись «Скидка» — как остальные строки, яркая только сумма */
.bagpg .bsum__row.is-discount { color: inherit; }
.bagpg .bsum__row.is-discount dt { color: var(--text-dim); }
.bagpg .bsum__row.is-discount dd { color: var(--sys-sale); font-weight: 600; }
.bagpg .bsum__free { color: var(--sys-ok); font-weight: 600; }

/* Избранное: товар уже в корзине — та же зелёная кнопка «В корзине» */
.savedpg .scard__add.pickup-link.is-in-cart,
.savedpg .scard__add.pickup-link.is-in-cart:hover { background: var(--sys-incart); border-color: var(--sys-incart); color: var(--sys-incart-text); text-decoration: none; }
.savedpg .scard__add.pickup-link.is-in-cart:hover { opacity: .88; }
.pickup-link.is-in-cart svg path { fill: none; stroke: currentColor; }

/* ── «Просмотрено N из M» и «Загрузить ещё» — как кнопки подборок на главной ── */
.plp .plp-more { max-width: 300px; margin: 56px auto 0; text-align: center; }
.plp .plp-more__text { margin: 0 0 10px; font-size: 13.5px; font-weight: 500; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.plp .plp-more__bar {
  height: 6px; border-radius: 999px; overflow: hidden;
  background: var(--sys-line); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
}
.plp .plp-more__bar i {
  border-radius: 999px; background: var(--text);
  transition: width .6s cubic-bezier(.22, 1.2, .36, 1);
}
.plp .plp-more__btn {       /* компактная, как кнопки «В корзину»: 40px, скругление 10px, мягкий синий */
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; min-width: 180px; min-height: 40px; margin-top: 16px; padding: 0 20px;
  background: color-mix(in srgb, var(--sys-buy) 12%, var(--sys-card)); color: var(--sys-buy);
  border: 0; border-radius: 10px; box-shadow: none;
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.plp .plp-more__btn::after {
  content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.plp .plp-more__btn:hover { background: color-mix(in srgb, var(--sys-buy) 20%, var(--sys-card)); color: var(--sys-buy); border: 0; }
.plp .plp-more__btn:active { transform: scale(.97); }
.plp .plp-more__top { margin-top: 14px; font-size: 13.5px; font-weight: 500; }

/* Избранное: «Очистить избранное» рядом со счётчиком */
.savedpg .savedpg__clear {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 5px 12px;
  border: 0; border-radius: 999px; background: var(--sys-card); color: var(--text-dim);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .06);
  font-family: var(--font); font-size: 13px; font-weight: 500; vertical-align: middle; cursor: pointer;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.savedpg .savedpg__clear svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.savedpg .savedpg__clear:hover { color: var(--sys-sale); background: var(--sys-sale-soft); }
@media (max-width: 600px) { .savedpg .savedpg__clear { display: flex; margin: 10px auto 0; } }

/* Окно подтверждения */
.confirm__text { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--text-dim); }
.confirm__actions { display: flex; flex-direction: column; gap: 8px; }
.btn-danger, .btn-plain {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 12px; font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.btn-danger { background: var(--sys-sale); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--sys-sale) 88%, #000); }
.btn-plain { background: var(--sys-page); color: var(--text); }
.btn-plain:hover { background: var(--sys-line); }
.btn-danger:active, .btn-plain:active { transform: scale(.98); }

/* ── Плашка фильтров (каталог и избранное): белая карточка со скруглением,
   как блок с товарами под ней, вместо серой полосы с рамкой ── */
.plp .plp-bar__inner,
.savedpg .savedpg__bar {
  background: var(--sys-card); border: 0; border-radius: var(--sys-radius);
  padding-top: 14px; padding-bottom: 14px;
}
.savedpg .savedpg__bar { margin-top: 28px; }

/* ── Переключатели фильтров: пружинистый кружок, градиент по смыслу, значок ──
   «со скидкой» — красно-розовый и «%», «в наличии» — зелёный и «✓», остальные — синий. */
.plp-switch .plp-switch__track {
  width: 42px; height: 24px; border-radius: 999px;
  background: var(--sys-line); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.plp-switch .plp-switch__track::after {
  top: 2px; left: 2px; width: 20px; height: 20px;
  display: grid; place-items: center;
  background: #fff; color: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .06);
  font: 700 11px/1 var(--font); content: "";
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), width .2s var(--ease), color .25s var(--ease);
}
/* нажатие — кружок растягивается, как на iPhone */
.plp-switch:not(.is-disabled):active .plp-switch__track::after { width: 26px; }
.plp-switch:not(.is-disabled):active input:checked + .plp-switch__track::after { transform: translateX(12px); }
:is(.plp, .savedpg, .plp-drawer) .plp-switch input:checked + .plp-switch__track,
.plp-switch input:checked + .plp-switch__track {
  background: linear-gradient(135deg, #4c8df0, #1a73e8);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12), 0 3px 10px -3px rgba(26, 115, 232, .6);
}
.plp-switch input:checked + .plp-switch__track::after { transform: translateX(18px); color: #1a73e8; content: "✓"; }
/* скидка */
:is(.plp, .savedpg, .plp-drawer) .plp-switch:has(input[data-f="sale"], input[data-ftoggle="sale"]) input:checked + .plp-switch__track {
  background: linear-gradient(135deg, #ff8fa3, #ff2d55 55%, #e5484d);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12), 0 3px 10px -3px rgba(255, 45, 85, .65);
}
.plp-switch:has(input[data-f="sale"], input[data-ftoggle="sale"]) input:checked + .plp-switch__track::after { content: "%"; color: #ff2d55; }
/* наличие */
:is(.plp, .savedpg, .plp-drawer) .plp-switch:has(input[data-ftoggle="stock"]) input:checked + .plp-switch__track {
  background: linear-gradient(135deg, #5fd48b, #1f9d55);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12), 0 3px 10px -3px rgba(31, 157, 85, .6);
}
.plp-switch:has(input[data-ftoggle="stock"]) input:checked + .plp-switch__track::after { content: "✓"; color: #1f9d55; }
.plp-switch:not(.is-disabled):hover .plp-switch__track { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--sys-line); }
.plp-switch input:checked + .plp-switch__label, .plp-switch:has(input:checked) .plp-switch__label { color: var(--text); font-weight: 600; }
html[data-theme="dark"] .plp-switch .plp-switch__track { background: #3a3a3c; }

/* эффект включения (js/ui/switchfx.js) */
.switch-fx { position: fixed; z-index: 360; width: 0; height: 0; pointer-events: none; }
.switch-fx__ring { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border: 2px solid; border-radius: 50%; }
.switch-fx__p { position: absolute; left: 0; top: 0; font: 800 12px/1 var(--font); opacity: 0; }

/* ── Главная, видео-обложка: стеклянная плашка, крупный заголовок в две строки,
   появление строк по очереди из лёгкого размытия ── */
.home-film::after {
  background:
    radial-gradient(120% 90% at 0% 100%, rgb(8 10 12 / .72), transparent 60%),
    linear-gradient(0deg, rgb(8 10 12 / .45), transparent 55%);
}
.home-film__story { max-width: 640px; }
.home-film .home-film__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.home-film__eyebrow i {
  width: 7px; height: 7px; border-radius: 50%; background: #ffd27a;
  box-shadow: 0 0 0 0 rgb(255 210 122 / .7); animation: filmDot 2.4s ease-out infinite;
}
.home-film .home-film__story h2 {
  display: flex; flex-direction: column; margin: 0;
  font-size: clamp(46px, 6vw, 88px); line-height: .95; letter-spacing: -.045em;
  text-shadow: 0 2px 30px rgb(0 0 0 / .25);
}
.home-film__l1 { font-weight: 800; }
.home-film__l2 {
  font-weight: 300; letter-spacing: -.035em;
  background: linear-gradient(100deg, #fff 0%, #fff 40%, rgb(255 255 255 / .62) 55%, #fff 70%, #fff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: filmShimmer 6s ease-in-out 1.6s infinite;
}
.home-film .home-film__story p {
  max-width: 44ch; margin: 22px 0 0;
  font-size: clamp(15px, 1.2vw, 17px); font-weight: 400; line-height: 1.55; letter-spacing: 0;
  color: rgb(255 255 255 / .86);
}
/* появление по очереди */
.home-film__eyebrow, .home-film__l1, .home-film__l2, .home-film__story p {
  animation-name: filmIn; animation-duration: .9s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); animation-fill-mode: both;
}
.home-film__eyebrow { animation-delay: .05s; }
.home-film__l1 { animation-delay: .18s; }
.home-film__l2 { animation: filmIn .9s cubic-bezier(.2, .8, .2, 1) .32s both, filmShimmer 6s ease-in-out 1.6s infinite; }
.home-film__story p { animation-delay: .48s; }
.home-film__eyebrow i { animation: filmDot 2.4s ease-out infinite; }
@keyframes filmIn { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes filmShimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes filmDot { 0% { box-shadow: 0 0 0 0 rgb(255 210 122 / .7); } 70%, 100% { box-shadow: 0 0 0 9px rgb(255 210 122 / 0); } }
@media (max-width: 760px) {
  .home-film .home-film__eyebrow { font-size: 11px; margin-bottom: 16px; }
  .home-film .home-film__story h2 { font-size: clamp(42px, 12.5vw, 60px); }
  .home-film .home-film__story p { font-size: 14.5px; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-film__eyebrow, .home-film__l1, .home-film__l2, .home-film__story p, .home-film__eyebrow i { animation: none; }
}

/* ── Корзина: компактные строки ─────────────────────────────────────
   фото меньше; цвет и размер в одну строку; «Самовывоз» и значки — в одну строку */
.bagpg .bag-lines .bline { padding: 16px 0; column-gap: 16px; grid-template-columns: 72px minmax(0, 1fr) auto 130px; }
.bagpg .bag-lines .bline__img { width: 72px; border-radius: 8px; }
.bagpg .bag-lines .bline__info {
  display: grid; align-items: center; column-gap: 12px; row-gap: 6px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "name name name name" "meta opts . ." "pick pick pick act";
}
.bagpg .bag-lines .bline__name { grid-area: name; font-size: 14.5px; }
.bagpg .bag-lines .bline__meta { grid-area: meta; }
.bagpg .bag-lines .bline__opts { grid-area: opts; margin: 0; }
.bagpg .bag-lines .bline__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bagpg .bline__dd .sv-dd__btn { min-width: 64px; min-height: 28px; padding: 0 8px 0 10px; font-size: 12.5px; border-radius: 7px; }
.bagpg .bag-lines .bline__pickup { grid-area: pick; margin: 0; font-size: 12.5px; color: var(--text-dim); }
.bagpg .bag-lines .bline__pickup b { color: var(--text); }
.bagpg .bag-lines .bline__pickup svg { width: 14px; height: 14px; }
.bagpg .bag-lines .bline__low, .bagpg .bag-lines .bline__photo-note { grid-column: 1 / -1; }
.bagpg .bag-lines .bline__actions { grid-area: act; margin: 0; gap: 2px; }
.bagpg .bag-lines .bline__act { width: 30px; height: 30px; }
.bagpg .bag-lines .bline__act svg { width: 17px; height: 17px; }
.bagpg .bag-lines .bline__qty { gap: 6px; }
.bagpg .bag-lines .bline__step { width: 28px; height: 28px; font-size: 15px; }
.bagpg .bag-lines .bline__n { font-size: 14px; }
.bagpg .bag-lines .bline__total { font-size: 16px; }
.bagpg .bagpg__head { padding-bottom: 14px; }
@container baglines (max-width: 640px) {
  .bagpg .bag-lines .bline { grid-template-columns: 72px auto minmax(0, 1fr); row-gap: 10px; }
}
@container baglines (max-width: 440px) {
  .bagpg .bag-lines .bline {
    grid-template-columns: 64px auto minmax(0, 1fr); column-gap: 12px;
    grid-template-areas: "img info info" "img qty sum" "warn warn warn"; row-gap: 10px;
  }
  .bagpg .bag-lines .bline__img { width: 64px; }
  .bagpg .bag-lines .bline__sum { flex-direction: row; align-items: baseline; justify-content: flex-end; gap: 6px; text-align: right; flex-wrap: wrap; }
}

/* ── Корзина: всё по одной сетке — строки описания, количество, значки и цена
   выровнены по колонкам во всех позициях (описание «раскрыто» в сетку строки) ── */
.bagpg .bag-lines .bline {
  grid-template-columns: 72px auto minmax(0, 1fr) 118px 120px;
  grid-template-areas:
    "img name name qty sum"
    "img meta opts .   sum"
    "img pick pick act sum"
    "img low  low  low sum"
    "warn warn warn warn warn";
  grid-template-rows: auto auto auto auto auto;
  column-gap: 12px; row-gap: 6px; align-items: center;
}
.bagpg .bag-lines .bline__img { grid-row: 1 / 5; align-self: start; }
.bagpg .bag-lines .bline__info { display: contents; }
.bagpg .bag-lines .bline__name { grid-area: name; align-self: center; }
.bagpg .bag-lines .bline__meta { grid-area: meta; }
.bagpg .bag-lines .bline__opts { grid-area: opts; justify-self: start; }
.bagpg .bag-lines .bline__pickup { grid-area: pick; }
.bagpg .bag-lines .bline__low { grid-area: low; justify-self: start; }
.bagpg .bag-lines .bline__photo-note { grid-area: low; }
.bagpg .bag-lines .bline__qty { grid-area: qty; justify-self: center; align-self: center; }
.bagpg .bag-lines .bline__actions { grid-area: act; justify-self: center; margin: 0; }
.bagpg .bag-lines .bline__sum { grid-area: sum; align-self: start; justify-self: end; }
.bagpg .bag-lines .bline__warn { grid-area: warn; }

@container baglines (max-width: 640px) {
  .bagpg .bag-lines .bline {
    grid-template-columns: 72px auto minmax(0, 1fr) auto;
    grid-template-areas:
      "img name name name"
      "img meta opts opts"
      "img pick pick act"
      "img low  low  low"
      "img qty  qty  sum"
      "warn warn warn warn";
    row-gap: 6px;
  }
  .bagpg .bag-lines .bline__img { grid-row: 1 / 6; }
  .bagpg .bag-lines .bline__qty { justify-self: start; margin-top: 4px; }
  .bagpg .bag-lines .bline__actions { justify-self: end; }
  .bagpg .bag-lines .bline__sum { align-self: center; flex-direction: row; align-items: baseline; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
}
@container baglines (max-width: 440px) {
  .bagpg .bag-lines .bline__img { width: 64px; }
  .bagpg .bag-lines .bline {
    grid-template-columns: 64px auto minmax(0, 1fr); column-gap: 10px;
    grid-template-areas:
      "img name name"
      "img meta opts"
      "img pick act"
      "img low  low"
      "img qty  sum"
      "warn warn warn";
  }
  .bagpg .bag-lines .bline__meta { white-space: nowrap; }
  .bagpg .bag-lines .bline__pickup svg { display: none; }
  .bagpg .bag-lines .bline__actions { justify-self: end; align-self: center; margin: 0 -6px 0 0; flex-wrap: nowrap; }
  .bagpg .bag-lines .bline__sum { justify-self: end; min-width: 0; }
  .bagpg .bag-lines .bline__sum { flex-direction: column; align-items: flex-end; gap: 0; }
  .bagpg .bag-lines .bline__off { display: none; }
}
.bagpg .bline__dd .sv-dd__btn { white-space: nowrap; }

/* ── Корзина: ♡ 🗑 ⤴ — строкой под описанием товара, слева (как на маркетплейсах) ── */
.bagpg .bag-lines .bline {
  grid-template-areas:
    "img name name qty sum"
    "img meta opts .   sum"
    "img pick pick .   sum"
    "img low  low  .   sum"
    "img act  act  .   sum"
    "warn warn warn warn warn";
  grid-template-rows: auto auto auto auto auto auto;
}
.bagpg .bag-lines .bline__img { grid-row: 1 / 6; }
.bagpg .bag-lines .bline__qty { align-self: start; }
.bagpg .bag-lines .bline__actions { grid-area: act; justify-self: start; margin: 2px 0 0 -7px; gap: 4px; flex-wrap: nowrap; }
.bagpg .bag-lines .bline__act { width: 32px; height: 32px; }
.bagpg .bag-lines .bline__act svg { width: 18px; height: 18px; stroke-linecap: round; stroke-linejoin: round; }
@container baglines (max-width: 640px) {
  .bagpg .bag-lines .bline {
    grid-template-columns: 72px auto minmax(0, 1fr);
    grid-template-areas:
      "img name name"
      "img meta opts"
      "img pick pick"
      "img low  low"
      "img act  act"
      "img qty  sum"
      "warn warn warn";
  }
  .bagpg .bag-lines .bline__img { grid-row: 1 / 7; }
  .bagpg .bag-lines .bline__actions { justify-self: start; margin: 0 0 0 -7px; }
  .bagpg .bag-lines .bline__opts { justify-self: start; }
}
@container baglines (max-width: 440px) {
  .bagpg .bag-lines .bline {
    grid-template-columns: 64px auto minmax(0, 1fr);
    grid-template-areas:
      "img name name"
      "img meta opts"
      "img pick pick"
      "img low  low"
      "img act  act"
      "img qty  sum"
      "warn warn warn";
  }
}

/* ── Шапка: «Каталог» — в пару к полю поиска (та же высота и скругление) ── */
.hbar__burger {
  height: 50px; padding: 0 18px 0 14px; gap: 10px;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px;
  font: 600 14px var(--font); letter-spacing: 0;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.hbar__burger:hover { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .12); }
.hbar__burger:active { transform: scale(.97); }
.hbar__burger svg { width: 20px; height: 20px; stroke-width: 2; }
.hbar__burger svg path { transition: d .25s var(--ease); }
.hbar__burger:hover svg path { d: path("M4 8h16M4 16h16"); }
.hbar__burger[aria-expanded="true"] { background: #fff; color: #1d1d1f; border-color: #fff; }
.hbar__burger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Карточка: кадры по наведению, линия под фото, кружки цветов ── */
.pcard__media .pcard__img { opacity: 0; transform: none; transition: opacity .25s var(--ease); }
.pcard__media .pcard__img.is-on { opacity: 1; }
.pcard.is-soldout .pcard__media .pcard__img.is-on { opacity: .75; }
.pcard__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 2px;
  background: rgba(0, 0, 0, .08); opacity: 0; transition: opacity .2s var(--ease); pointer-events: none;
}
.pcard__bar i {
  position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% / var(--n, 1));
  background: #1d1d1f; transform: translateX(calc(var(--k, 0) * 100%));
  transition: transform .25s cubic-bezier(.3, .9, .4, 1);
}
@media (hover: hover) { .pcard:hover .pcard__bar { opacity: 1; } }
@media (hover: none), (pointer: coarse) { .pcard__bar { opacity: 1; } }
html[data-theme="dark"] .pcard__bar i { background: #f5f5f7; }

.pcard__sw { display: flex; align-items: center; gap: 6px; margin: 0 0 6px -3px; }
.pcard__swatch {
  display: grid; place-items: center; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.pcard__swatch i {
  width: 16px; height: 16px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition: box-shadow .15s var(--ease), transform .15s var(--ease);
}
.pcard__swatch:hover i { transform: scale(1.1); }
.pcard__swatch[aria-checked="true"] i { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px var(--sys-card), 0 0 0 3px var(--text); }
.pcard__swatch:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.pcard__sw-more { font-size: 12px; color: var(--text-dim); margin-left: 2px; }
.plp .pcard__body .pcard__sw { margin-top: 2px; }

/* ── Сердечко на карточке: тонкий графитовый контур в правом верхнем углу фото ──
   в избранном — залито (красным или жёлтым, как раньше) */
.pcard .pcard__save, .plp .pcard__save {
  position: relative; grid-area: 1 / 1; align-self: start; justify-self: end;
  margin: 8px 8px 0 0; top: auto; right: auto; bottom: auto; left: auto;
  width: 34px; height: 34px; background: transparent; box-shadow: none; color: #1d1d1f;
}
.pcard:not(.plp *) .pcard__save { position: absolute; top: 8px; right: 8px; margin: 0; }
.pcard .pcard__save svg, .plp .pcard__save svg { width: 22px; height: 22px; stroke-width: 1.4; }
.pcard .pcard__save:hover svg, .plp .pcard__save:hover svg { transform: scale(1.1); }
.pcard .pcard__save.is-saved, .plp .pcard__save.is-saved { color: #ff2d55; }
.pcard .pcard__save.is-saved svg, .plp .pcard__save.is-saved svg { fill: #ff2d55; stroke: #ff2d55; }
.pcard .pcard__save.is-saved[data-tint="yellow"], .plp .pcard__save.is-saved[data-tint="yellow"] { color: #f2b705; }
.pcard .pcard__save.is-saved[data-tint="yellow"] svg, .plp .pcard__save.is-saved[data-tint="yellow"] svg { fill: #f2b705; stroke: #f2b705; }
@media (max-width: 760px) {
  .pcard .pcard__save, .plp .pcard__save { margin: 4px 4px 0 0; }
  .pcard .pcard__save svg, .plp .pcard__save svg { width: 20px; height: 20px; }
}
.plp .pcard__qv { margin: 0 0 12px 12px; width: calc(100% - 24px); }

/* Серая подсветка касания в мобильных браузерах (Chrome, Safari) — убираем:
   у кнопок и переключателей своя анимация нажатия */
html { -webkit-tap-highlight-color: transparent; }
a, button, label, input, select, summary, [role="button"], [role="switch"], [role="radio"] { -webkit-tap-highlight-color: transparent; }
.plp-switch { -webkit-user-select: none; user-select: none; touch-action: manipulation; }

/* ── Облегчённый режим (js/lib/lowpower.js): режим экономии, слабый телефон ──
   без размытия «стекла» и бесконечных анимаций; спиннер загрузки не трогаем */
html.is-lowpower *, html.is-lowpower *::before, html.is-lowpower *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.is-lowpower *:not(.spinner), html.is-lowpower *:not(.spinner)::before, html.is-lowpower *:not(.spinner)::after { animation-iteration-count: 1 !important; }
html.is-lowpower #snow { display: none; }
html.is-lowpower .home-film .home-film__eyebrow { background: rgba(0, 0, 0, .35); }

/* ── Кадры карточки: дорожка с фото. На компьютере кадры лежат стопкой (меняются
   наведением), на телефоне в сетках — листаются пальцем со «щелчком» ── */
.pcard__track { position: absolute; inset: 0; display: block; }
@media (hover: none), (pointer: coarse) {
  .pgrid .pcard__track {
    display: flex; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pgrid .pcard__track::-webkit-scrollbar { display: none; }
  .pgrid .pcard__track .pcard__img {
    position: relative; inset: auto; flex: 0 0 100%; width: 100%; height: 100%;
    opacity: 1; transition: none; scroll-snap-align: start; scroll-snap-stop: always;
  }
  .pgrid .pcard.is-soldout .pcard__track .pcard__img { opacity: .75; }
}
/* анимированная WebP уже вырезана по центру героя — без сдвига кадра */
.home-film__anim { object-position: center !important; }

/* ── Производительность: полки ниже экрана не рисуем, пока до них не докрутили ── */
.shelf { content-visibility: auto; contain-intrinsic-size: auto 560px; }
/* подвал маленький — рисуем всегда (с content-visibility его высота «прыгала») */

/* ═══ Оформление заказа — в стиле корзины ════════════════════════════
   Белые карточки на сером фоне, как в корзине; синяя — только «Оформить заказ» */
.co { background: var(--sys-page); padding-bottom: 56px; }
.ck__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.ck__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ck-card { background: var(--sys-card); border-radius: var(--sys-radius); padding: 24px; }
.ck-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--sys-line); }
.ck__title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.ck__title:focus { outline: 0; }
.ck__back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-dim); text-decoration: none; }
.ck__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ck__back:hover { color: var(--text); }
.ck-card__title { margin: 0 0 14px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ck-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ck-link { background: none; border: 0; padding: 0; font: 500 13.5px var(--font); color: var(--text-dim); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ck-link:hover { color: var(--text); }
.ck-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-dim); }

/* Самовывоз / Доставка — два больших варианта */
.ck-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ck-seg__opt {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  border: 1.5px solid var(--sys-line); border-radius: 12px; cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.ck-seg__opt input, .ck-store input, .ck-pay__opt input { position: absolute; opacity: 0; pointer-events: none; }
.ck-seg__title { font-size: 15px; font-weight: 600; }
.ck-seg__sub { font-size: 13px; color: var(--text-dim); }
.ck-seg__opt:hover { border-color: var(--text-dim); }
.ck-seg__opt:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 .5px var(--text); }
.ck-seg__opt:has(input:focus-visible), .ck-store:has(input:focus-visible), .ck-pay__opt:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.ck-panel { margin-top: 16px; }

/* магазины и способы оплаты — строки с галочкой */
.ck-stores, .ck-pay { display: flex; flex-direction: column; gap: 8px; }
.ck-store, .ck-pay__opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid var(--sys-line); border-radius: 12px; cursor: pointer;
  transition: border-color .15s var(--ease);
}
.ck-store:hover, .ck-pay__opt:hover { border-color: var(--text-dim); }
.ck-store:has(input:checked), .ck-pay__opt:has(input:checked) { border-color: var(--text); }
.ck-store__pin, .ck-pay__icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--sys-page); color: var(--text);
}
.ck-store__pin svg, .ck-pay__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ck-store__text, .ck-pay__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ck-store__text b, .ck-pay__text b { font-size: 14.5px; font-weight: 600; }
.ck-store__text span { font-size: 13.5px; color: var(--text); }
.ck-store__text small, .ck-pay__text small { font-size: 12.5px; color: var(--text-dim); }
.ck-store__mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--sys-line); color: transparent; transition: background .15s var(--ease), border-color .15s var(--ease); }
.ck-store__mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ck-store:has(input:checked) .ck-store__mark, .ck-pay__opt:has(input:checked) .ck-store__mark { background: var(--text); border-color: var(--text); color: var(--bg); }

/* поля */
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; min-width: 0; }
.ck-row .ck-field { margin-top: 12px; }
.ck-panel > .ck-row:first-child .ck-field { margin-top: 0; }
.ck-field__label { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.ck-opt { font-weight: 400; opacity: .8; }
.ck-input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--sys-line); border-radius: 12px; background: var(--sys-card); color: var(--text);
  font: 400 15px var(--font); transition: border-color .15s var(--ease);
}
textarea.ck-input { min-height: 84px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.ck-input:hover { border-color: var(--text-dim); }
.ck-input:focus { outline: 0; border-color: var(--text); }
.ck-input::placeholder { color: var(--text-dim); opacity: .7; }
.ck-field__hint { margin: 0; font-size: 12.5px; color: var(--text-dim); }
.ck-field__err { margin: 0; font-size: 12.5px; color: var(--sys-sale); }
.ck-field__err:empty { display: none; }
.has-error .ck-input, .ck-stores.has-error .ck-store, .ck-pay.has-error .ck-pay__opt { border-color: var(--sys-sale); }
.ck-comment { margin-top: 14px; }
.ck-comment summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-dim); list-style: none; }
.ck-comment summary::-webkit-details-marker { display: none; }
.ck-comment summary::before { content: "+ "; }
.ck-comment[open] summary::before { content: "− "; }
.ck-comment textarea { margin-top: 10px; }

/* итог заказа */
.ck__side { position: sticky; top: calc(var(--header-h, 64px) + 70px); }
.ck-sum__title { margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ck-lines { list-style: none; margin: 0 0 14px; padding: 0 0 14px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--sys-line); max-height: 280px; overflow-y: auto; }
.ck-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ck-line__img { position: relative; width: 44px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--sys-page); }
.ck-line__img img, .ck-line__img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-line__qty { position: absolute; right: 2px; bottom: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--text); color: var(--bg); font: 600 11px/18px var(--font); font-style: normal; text-align: center; }
.ck-line__info { display: flex; flex-direction: column; min-width: 0; }
.ck-line__info b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-line__info small { font-size: 12px; color: var(--text-dim); }
.ck-line__sum { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ck-rows { margin: 0; }
.ck-rows__row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; color: var(--text-dim); }
.ck-rows__row dd { margin: 0; color: var(--text); white-space: nowrap; }
.ck-rows__row.is-discount dd { color: var(--sys-sale); }
.ck-free { color: var(--sys-ok); font-weight: 600; }
.ck-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 16px; padding-top: 14px; border-top: 1px solid var(--sys-line); }
.ck-total span { font-size: 18px; font-weight: 700; }
.ck-total b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.ck-submit .spinner { display: none; }
.ck-submit.is-busy .spinner { display: inline-block; }
.ck-error:empty { display: none; }
.ck-error__box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--sys-sale-soft); color: var(--text); font-size: 13.5px; line-height: 1.5; }
.ck-error__box p { margin: 0; }
.ck-error__box p + p, .ck-error__box ul { margin: 6px 0 0; }
.ck-error__box ul { padding-left: 18px; }
.ck-fine { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.ck-fine a { color: inherit; }
.ck-offline { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--sys-sale-soft); font-size: 14px; }
.ck-bar { display: none; }

@media (max-width: 900px) {
  .ck__layout { grid-template-columns: 1fr; }
  .ck__side { position: static; }
}
@media (max-width: 640px) {
  .co { padding-bottom: calc(96px + var(--tabbar-h, 0px)); }
  .ck-card { padding: 18px 16px; }
  .ck__title { font-size: 20px; }
  .ck-row { grid-template-columns: 1fr; gap: 0; }
  .ck-sum .ck-submit { display: none; }
  .ck-bar {
    display: flex; align-items: center; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: var(--tabbar-h, 0px); z-index: 90;
    padding: 10px 16px; background: var(--sys-card);
    border-top: 1px solid var(--sys-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
  }
  .ck-bar__total { flex: 1; margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .ck-bar__total span { font-size: 12px; color: var(--text-dim); }
  .ck-bar__total b { font-size: 18px; font-weight: 700; }
  .ck-bar__btn { width: auto; flex: none; min-height: 46px; padding: 0 22px; }
}

/* Поиск: «Часто ищут» — быстрые запросы пилюлями */
.suggest__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 12px 10px; }
.suggest__chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--sys-page); color: var(--text); font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: background .15s var(--ease);
}
.suggest__chip:hover, .suggest__chip[aria-selected="true"] { background: var(--sys-line); text-decoration: none; }

/* ═══ «Заказ» (/track) — в стиле корзины ═══════════════════════════ */
.tk__layout { grid-template-columns: minmax(0, 1fr) 360px; }
.tk-form { display: flex; flex-direction: column; }
.tk-form .ck-field { margin-top: 12px; }
.tk-form .ck-sum__title + .ck-field { margin-top: 0; }
.tk-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin-top: 16px;
  border: 0; border-radius: 12px; background: var(--text); color: var(--bg);
  font: 600 15px var(--font); cursor: pointer; transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.tk-btn:hover { opacity: .88; }
.tk-btn:active { transform: scale(.98); }
.tk-btn:disabled { opacity: .6; cursor: default; }
.tk-btn .spinner { display: none; }
.tk-btn.is-busy .spinner { display: inline-block; }
.tk-card { scroll-margin-top: 90px; }
.tk-card:focus { outline: 0; }
.tk-card__head { align-items: flex-start; }
.tk-date { margin: 4px 0 0; font-size: 13px; color: var(--text-dim); }
.tk-badge {
  flex: none; padding: 6px 12px; border-radius: 999px; background: var(--sys-page); color: var(--text);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.tk-badge.is-done { background: color-mix(in srgb, var(--sys-ok) 14%, transparent); color: var(--sys-ok); }
.tk-badge.is-canceled { background: var(--sys-sale-soft); color: var(--sys-sale); }

/* этапы: точки на линии */
.tk-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 0 0; padding: 0; }
.tk-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tk-step::before {
  content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--sys-line);
}
.tk-step:first-child::before { display: none; }
.tk-step.is-done::before, .tk-step.is-current::before { background: var(--text); }
.tk-step__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sys-card); border: 2px solid var(--sys-line); color: var(--bg);
}
.tk-step__dot svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tk-step.is-done .tk-step__dot { background: var(--text); border-color: var(--text); }
.tk-step.is-current .tk-step__dot { border-color: var(--text); box-shadow: inset 0 0 0 4px var(--sys-card), inset 0 0 0 12px var(--text); }
.tk-step.is-current .tk-step__dot:has(svg) { background: var(--text); box-shadow: none; }
.tk-step__label { font-size: 12.5px; color: var(--text-dim); }
.tk-step.is-done .tk-step__label, .tk-step.is-current .tk-step__label { color: var(--text); font-weight: 600; }
.tk-text { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.tk-text a, .tk-canceled a { color: inherit; }
.tk-canceled { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--sys-sale-soft); font-size: 14px; }
.tk-facts { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--sys-line); }
.tk-facts dd { text-align: right; white-space: normal !important; }
.tk-h { margin: 18px 0 10px; font-size: 14px; font-weight: 600; color: var(--text-dim); }
.tk-lines { max-height: none; }
.tk-lines .ck-line__info a { color: inherit; text-decoration: none; }
.tk-lines .ck-line__info a:hover { text-decoration: underline; }
.tk-actions { display: flex; justify-content: space-between; gap: 12px; }

/* как проходит заказ */
.tk-how { list-style: none; margin: 0; padding: 0; counter-reset: tk; display: flex; flex-direction: column; gap: 14px; }
.tk-how li { counter-increment: tk; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.tk-how li::before {
  content: counter(tk); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sys-page); font-size: 13px; font-weight: 600;
}
.tk-how b { font-size: 14.5px; }
.tk-how span { font-size: 13.5px; color: var(--text-dim); }

@media (max-width: 900px) {
  .tk__layout { grid-template-columns: 1fr; }
  .tk__side { order: -1; }
}
@media (max-width: 640px) {
  .tk .co, .co.tk { padding-bottom: 32px; }
  .tk-step__label { font-size: 11.5px; }
  .tk-card__head { flex-wrap: wrap; }
}

/* ═══ Футер всегда внизу: страница — ровно высота экрана (с учётом zoom),
   последний блок страницы растягивается своим фоном, над подвалом — без пустот ═══ */
body { min-height: calc(100svh / var(--zoom, 1)); display: flex; flex-direction: column; }
#main { flex: 1 0 auto; display: flex; flex-direction: column; }
#app { flex: 1 0 auto; display: flex; flex-direction: column; }
#app > :last-child { flex-grow: 1; }
.site-footer, body:has(#main .plp:last-child) .site-footer { margin-top: 0; padding-top: 0; }
.site-footer__bottom { border-top: 0; min-height: 60px; }
@media (max-width: 640px) {
  .site-footer { margin-top: 0; padding-top: 0; }
}
/* старые «min-height: 60vh» больше не нужны — последний блок страницы тянется сам (и с zoom 1.1 они давали лишнюю прокрутку) */
#app.app, .co { min-height: 0; }
/* старое «margin-bottom: -72px» (checkout.css) затягивало подвал на страницу — убираем;
   под последней карточкой — воздух до подвала */
.co { margin-bottom: 0; padding-bottom: 64px; }
@media (max-width: 640px) { .co { padding-bottom: calc(110px + var(--tabbar-h, 0px)); } .co.tk { padding-bottom: 40px; } }
