/* ═══════════════════════════════════════════════════════════════
   LUMÉ — листинг товаров (.plp): каталог, категории, новинки,
   распродажа, поиск. Панель фильтров с поповерами (десктоп),
   липкая панель и шторка (мобильный), сетка и «Показать ещё».
   ═══════════════════════════════════════════════════════════════ */

.plp { --plp-top: 56px; }

/* ── Шапка раздела ─────────────────────────────────────────────── */
.plp-head .crumbs { margin: 18px 0 12px; }
.plp-head__row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 6px 18px;
}
.plp-head__title { overflow-wrap: anywhere; }
.plp-head__title:focus { outline: 0; }
.plp-head__off {
  margin: 0;
  font-family: var(--font);
  font-weight: 700; font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.01em; text-transform: none; line-height: 1;
  color: var(--madder);
}
.plp-head__desc { margin: 10px 0 0; font-size: 15px; max-width: 74ch; }

.plp-note {
  margin: 14px 0 0; max-width: 72ch;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-left: 3px solid var(--weld-dot);
  font-size: 13px; color: var(--text-dim);
}

/* Подразделы — чипы с количеством */
.plp-sub { margin-top: 18px; }
.plp-sub .chips--scroll {
  position: relative;          /* скрытые подписи для скринридера не должны расширять страницу */
  margin: 0 calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 4px;
}
.plp .chip { position: relative; }
/* На десктопе чипы переносятся (горизонтальная прокрутка мышью неудобна) */
@media (min-width: 901px) {
  .plp-sub .chips--scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 0; }
}
.plp-sub .chip small { font-variant-numeric: tabular-nums; }
.plp .chip.is-empty:not([aria-current]):not([aria-pressed="true"]) { color: var(--text-dim); border-color: var(--line-soft); }

/* ── Панель фильтров (десктоп) ─────────────────────────────────── */
.plp-bar {
  margin-top: 22px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.plp-bar__inner {
  display: flex; align-items: center; gap: 12px 24px;
  padding-top: 10px; padding-bottom: 10px;
}
.plp-bar__filters {
  flex: 1; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.plp-bar__sort { flex: none; display: flex; align-items: center; gap: 10px; }
.plp-bar__sortlabel { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.plp-sortsel {
  width: auto; min-height: 40px;
  padding-top: 8px; padding-bottom: 8px;
  font-size: 14px;
}

.plp-f { position: relative; }
.plp-f__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 11px 0 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700; font-size: 13.5px; letter-spacing: -.01em;
  text-transform: none; white-space: nowrap;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.plp-f__btn:hover { border-color: var(--text); }
.plp-f__btn svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2;
  transition: transform .2s var(--ease);
}
.plp-f.has-value .plp-f__btn { border-color: var(--text); }
.plp-f.is-open .plp-f__btn { border-color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.plp-f.is-open .plp-f__btn svg { transform: rotate(180deg); }
.plp-f__n {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--indigo); color: var(--indigo-ink);
  font: 700 11px/18px var(--font); letter-spacing: 0; text-align: center;
}

/* Поповер фильтра */
.plp-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  width: 300px; max-width: calc(100vw / var(--zoom, 1) - 2 * var(--gutter));
  max-height: min(70vh, 540px);
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.plp-pop.is-anim { animation: plpPop .16s var(--ease); }
@keyframes plpPop { from { opacity: 0; transform: translateY(-4px); } }
.plp-pop.is-end { left: auto; right: 0; }
.plp-pop--color { width: 380px; }
.plp-pop--fiber { width: 340px; }
.plp-pop--price { width: 320px; }
.plp-pop__head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 8px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px; color: var(--text-dim);
}
.plp-pop__clear { font-size: 13px; color: var(--text); }
.plp-pop__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 0; }
.plp-pop__foot { flex: none; padding: 12px 16px; border-top: 1px solid var(--line-soft); }

/* Строки-флажки (категория, тип, цена) */
.plp-opt {
  display: flex; align-items: center; gap: 12px;
  min-height: 40px; padding: 7px 16px;
  font-size: 14px; line-height: 1.3; cursor: pointer;
}
.plp-opt:hover { background: var(--bg-soft); }
.plp-opt input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--indigo); cursor: inherit; }
.plp-opt__label { flex: 1; min-width: 0; }
.plp-opt__n { color: var(--text-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.plp-opt input:checked ~ .plp-opt__label { font-weight: 600; }

/* Шторка фильтров живёт в <body>, вне .plp — правило нужно и для неё */
.plp .is-disabled, .plp-drawer .is-disabled { opacity: .42; cursor: not-allowed; }
.plp-opt.is-disabled:hover, .plp-color.is-disabled:hover { background: none; }

/* Размеры — сетка квадратов */
.plp-sizes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px; padding: 10px 16px;
}
.plp-size { position: relative; cursor: pointer; }
.plp-size.is-wide { grid-column: span 2; }
.plp-size__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 50px; padding: 4px 6px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.plp-size__box small { font-size: 11px; font-weight: 400; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.plp-size:not(.is-disabled):hover .plp-size__box { border-color: var(--text); }
.plp-size input:checked + .plp-size__box { background: var(--text); color: var(--bg); border-color: var(--text); }
.plp-size input:checked + .plp-size__box small { color: inherit; opacity: .7; }
.plp-size input:focus-visible + .plp-size__box { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* Цвета — кружки-образцы */
.plp-colors { display: grid; grid-template-columns: 1fr 1fr; padding: 4px 8px; }
.plp-color {
  display: flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 6px 8px;
  font-size: 14px; line-height: 1.25; cursor: pointer;
  border-radius: var(--radius);
}
.plp-color:hover { background: var(--bg-soft); }
.plp-color__sw {
  width: 24px; height: 24px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sw);
  border: 1px solid var(--line);
  transition: box-shadow .15s var(--ease);
}
.plp-color__sw svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-text); stroke-width: 2.6; opacity: 0; }
.plp-color__sw.is-light svg { stroke: var(--ink); }
.plp-color input:checked + .plp-color__sw { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--text); }
.plp-color input:checked + .plp-color__sw svg { opacity: 1; }
.plp-color input:checked ~ .plp-color__name { font-weight: 600; }
.plp-color input:focus-visible + .plp-color__sw { outline: 2px solid var(--indigo); outline-offset: 4px; }
.plp-color__name { flex: 1; min-width: 0; }

/* Состав — вшитые этикетки */
.plp-fibers { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.plp-fiber { cursor: pointer; }
.plp-fiber .label-tag {
  font-size: 11px; padding: 8px 11px 8px 12px;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
/* color: inherit — в шторке .acc__body b красит число в --text и оно пропадает на выбранной этикетке */
.plp-fiber .label-tag b { color: inherit; font-weight: 400; opacity: .6; font-variant-numeric: tabular-nums; }
.plp-fiber:not(.is-disabled):hover .label-tag { border-color: var(--text); outline-color: var(--text); }
.plp-fiber input:checked + .label-tag {
  background: var(--text); color: var(--bg);
  border-color: var(--text); outline-color: var(--bg);
}
.plp-fiber input:focus-visible + .label-tag { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--indigo); }

/* Цена: свой диапазон */
.plp-price { margin: 6px 0 0; padding: 12px 16px 8px; border-top: 1px solid var(--line-soft); }
.plp-price__title { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.plp-price__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; color: var(--text-dim); }
.plp-price__row .input { min-height: 40px; padding: 8px 10px; font-size: 14px; -moz-appearance: textfield; }
.plp-price__row .input::-webkit-outer-spin-button,
.plp-price__row .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.plp-price .btn { margin-top: 10px; }

/* Переключатель «Только со скидкой» */
.plp-switch {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 6px 0 8px;
  font-size: 14px; white-space: nowrap; cursor: pointer;
}
.plp-switch__track {
  position: relative; flex: none;
  width: 34px; height: 20px; border-radius: 10px;
  background: var(--line);
  transition: background .2s var(--ease);
}
.plp-switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: transform .2s var(--pop);
}
.plp-switch input:checked + .plp-switch__track { background: var(--madder); }
.plp-switch input:checked + .plp-switch__track::after { transform: translateX(14px); }
.plp-switch input:focus-visible + .plp-switch__track { outline: 2px solid var(--indigo); outline-offset: 2px; }
.plp-switch:not(.is-disabled):hover .plp-switch__track { box-shadow: 0 0 0 1px var(--text-dim); }

/* ── Счётчик и выбранные фильтры ───────────────────────────────── */
.plp-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  min-height: 56px; padding-top: 14px; padding-bottom: 4px;
}
.plp-count { margin: 0; font-size: 14px; color: var(--text-dim); white-space: nowrap; }
.plp-count b { color: var(--text); font-weight: 600; }
.plp-count:focus { outline: 0; }
.plp-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.plp-pills .chip { min-height: 32px; padding: 0 12px; gap: 8px; font-size: 13px; }
.plp-pill__sw { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); border: 1px solid var(--line); }
.plp-reset { font-size: 13px; white-space: nowrap; }

/* ── Сетка ─────────────────────────────────────────────────────── */
.plp-results { margin-top: 12px; }
.plp .pgrid.is-fresh { animation: plpFade .3s var(--ease); }
@keyframes plpFade { from { opacity: .3; } }
.plp .pgrid:not(.is-stagger) .pcard.plp-new {
  animation: cardIn .5s var(--pop) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

/* «Показать ещё» с прогрессом */
.plp-more { max-width: 340px; margin: 56px auto 0; text-align: center; }
.plp-more:empty { display: none; }
.plp-more__text { margin: 0 0 10px; font-size: 13px; color: var(--text-dim); }
.plp-more__bar { height: 3px; background: var(--line-soft); overflow: hidden; }
.plp-more__bar i { display: block; height: 100%; background: var(--text); transition: width .5s var(--pop); }
.plp-more__btn { width: 100%; margin-top: 20px; }
.plp-more__top { margin-top: 16px; font-size: 13px; }

/* ── Пустые состояния ──────────────────────────────────────────── */
.plp-empty { padding-top: 48px; padding-bottom: 56px; }
.plp-empty .page-title { margin-bottom: 12px; }
.plp-empty p a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.plp-empty__hint { margin-top: -10px; }
.plp-empty__alts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  list-style: none; margin: -6px 0 22px;
}
.plp-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.plp-empty__actions:empty { display: none; }

.plp-search { display: flex; gap: 8px; width: 100%; max-width: 520px; margin: 0 auto; }
.plp-search .input { flex: 1; min-width: 0; }
.plp-search .btn { flex: none; }

/* Плитки разделов */
.plp-cats { margin-top: 24px; }
.plp--state .plp-cats { margin-top: 8px; }
.plp-cats__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr));
  gap: 12px; margin-top: 20px;
}
.plp-tile { aspect-ratio: 3 / 4; }
.plp-tile img.is-broken { visibility: hidden; }
.plp-tile__label {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  padding: 6px 9px;
  background: var(--bg); color: var(--text);
  font-family: var(--font);
  font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; text-transform: none;
  line-height: 1.2;
}
.plp-tile:hover .plp-tile__label { text-decoration: underline; text-underline-offset: 3px; }

/* ── Липкая панель (мобильный) ─────────────────────────────────── */
.plp-mbar { display: none; }
.plp-mbar__sort { position: relative; border-right: 1px solid var(--line); }
.plp-mbar__sort select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
  font-size: 16px;   /* iOS не увеличивает страницу */
  appearance: none; -webkit-appearance: none; border: 0;
}
.plp-mbar__sort:focus-within { outline: 2px solid var(--indigo); outline-offset: -3px; }
.plp-mbar__label,
.plp-mbar__filters {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 6px 10px;
  font-family: var(--font);
  font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none;
  line-height: 1.15;
}
.plp-mbar__label { flex-direction: column; text-align: center; }
.plp-mbar__label small {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font);
  font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--text-dim);
}
.plp-mbar__filters {
  width: 100%; gap: 8px;
  background: none; border: 0; color: var(--text);
}
.plp-mbar__filters:focus-visible { outline-offset: -3px; }
.plp-mbar__filters svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.plp-mbar__n { color: var(--indigo); }

/* ── Шторка фильтров ───────────────────────────────────────────── */
.plp-drawer .dialog__body { padding: 4px 22px 16px; }
.plp-drawer .dialog__foot { display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; }
.plp-drawer .dialog__foot .btn { padding: 0 12px; }
.plp-drawer [data-dw-show].is-none { background: var(--bg-soft); color: var(--text-dim); }
.plp-dw__tag { padding: 14px 0 4px; }
.plp-dw__sale { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plp-dw__sale .plp-switch { height: 44px; padding: 0; width: 100%; }
.plp-dw__sale .plp-switch__label { flex: 1; }
.plp-dw__acc { border-top: 0; }
.plp-dw__sum { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.plp-dw__sum small {
  font-family: var(--font);
  font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--indigo);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px;
}
.plp-drawer .acc__body { color: var(--text); }
.plp-drawer .plp-opt { padding: 8px 0; min-height: 44px; }
.plp-drawer .plp-opt:hover, .plp-drawer .plp-color:hover { background: none; }
.plp-drawer .plp-sizes, .plp-drawer .plp-fibers { padding: 4px 0 8px; }
.plp-drawer .plp-colors { padding: 0; margin: 0 -8px; }
.plp-drawer .plp-price { padding: 12px 0 4px; }
.plp-dw__clear { margin-top: 12px; font-size: 13px; color: var(--text-dim); }

/* ── Адаптив ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .plp-bar__inner { align-items: flex-start; }
  .plp-bar__sortlabel { display: none; }
  .plp-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .plp-bar { display: none; }
  .plp-mbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: sticky; top: var(--plp-top, 56px); z-index: 40;
    margin-top: 18px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .plp-meta { min-height: 0; padding-top: 12px; }
  .plp-head__desc { font-size: 14px; }
}

@media (max-width: 760px) {
  .plp-cats__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%;
    gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 16px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px;
  }
  .plp-cats__grid::-webkit-scrollbar { display: none; }
  .plp-cats__grid > li { scroll-snap-align: start; }
  .plp-more { margin-top: 40px; }
  .plp-empty { padding-top: 36px; padding-bottom: 40px; }

  /* Счётчик и «Сбросить всё» — в одну строку, выбранные фильтры — лентой */
  .plp-meta { gap: 10px 12px; }
  .plp-count { flex: 1; order: 1; }
  .plp-reset { order: 2; }
  .plp-pills {
    order: 3; flex: 0 0 auto; width: calc(100% + 2 * var(--gutter));
    position: relative; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px;
  }
  .plp-pills::-webkit-scrollbar { display: none; }
  .plp-pills .chip { white-space: nowrap; }
}

@media (max-width: 480px) {
  .plp-head .crumbs { margin: 14px 0 10px; }
  .plp-search { flex-direction: column; }
  .plp-drawer .plp-colors { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Вид каталога «как в образце владельца»: заголовок по центру,
   панель фильтров в светлой плашке, сетка на белой скруглённой
   подложке, карточки на светло-сером фоне, сердечко внизу справа,
   старая цена зачёркнута перед новой, «Просмотрено N из M».
   ═══════════════════════════════════════════════════════════════ */
.plp {
  --plp-page: #f4f4f4;
  --plp-panel: #ffffff;
  --plp-box: #eeeeee;
  --plp-box-line: #e2e2e2;
  --plp-media: #f2f2f2;
  --plp-sale: #d81b4f;
  --plp-blue: #1a73e8;
  background: var(--plp-page);
  padding-bottom: 64px;
}
html[data-theme="dark"] .plp {
  --plp-page: #000000;
  --plp-panel: #1c1c1e;
  --plp-box: #2c2c2e;
  --plp-box-line: #38383a;
  --plp-media: #2c2c2e;
  --plp-sale: #ff6f8f;
  --plp-blue: #f5f5f7;
}

/* Заголовок */
.plp .plp-head { text-align: center; padding-top: 24px; }
.plp .plp-head .crumbs { justify-content: center; margin: 0 0 22px; }
.plp .plp-head__row { justify-content: center; }
.plp .plp-head__title {
  font-family: var(--font); font-weight: 700;
  font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.02em;
  text-transform: none; line-height: 1.1;
}
.plp .plp-head__desc {
  margin: 16px auto 0; max-width: 52ch;
  font-size: 16px; line-height: 1.6; color: var(--text-dim);
}
@media (max-width: 760px) { .plp .plp-head__desc { font-size: 15px; } }
.plp .plp-sub .chips--scroll { justify-content: center; }

/* Панель фильтров: светлая плашка, выпадающие списки с линией снизу */
.plp .plp-bar { margin-top: 36px; background: none; border: 0; }
.plp .plp-bar__inner {
  max-width: 1106px;
  background: var(--plp-box);
  border: 1px solid var(--plp-box-line);
  border-radius: 6px;
  padding: 10px clamp(16px, 4vw, 54px);
  gap: 16px;
}
.plp .plp-bar__filters { display: contents; }   /* сортировка и фильтры — равные колонки одной строки */
.plp .plp-bar__sort { flex: 1 1 0; min-width: 0; }
.plp .plp-f { flex: 1 1 0; min-width: 0; }
.plp .plp-f__btn,
.plp .plp-sortsel {
  width: 100%; height: 38px; min-height: 38px;
  justify-content: space-between;
  padding: 0 2px 0 6px;
  background-color: transparent; color: var(--text-dim);
  border: 0; border-bottom: 1px solid #cfcfcf; border-radius: 0;
  box-shadow: none;
  font-family: var(--font); font-weight: 400; font-size: 13.5px;
  letter-spacing: 0; text-transform: none;
}
html[data-theme="dark"] .plp .plp-f__btn,
html[data-theme="dark"] .plp .plp-sortsel { border-bottom-color: #48484a; }
.plp .plp-sortsel { background-position: right 6px center; padding-right: 26px; }
.plp .plp-f__btn:hover, .plp .plp-sortsel:hover,
.plp .plp-f.has-value .plp-f__btn,
.plp .plp-f.is-open .plp-f__btn { color: var(--text); border-bottom-color: var(--text); box-shadow: none; }
.plp .plp-f__btn > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.plp .plp-switch { flex: none; font-size: 13px; color: var(--text-dim); }
.plp .plp-switch small { display: none; }

/* Счётчик и выбранные фильтры — по центру */
.plp .plp-meta { justify-content: center; min-height: 0; padding-top: 16px; padding-bottom: 0; }
.plp .plp-meta:not(:has(.plp-pills)) { display: none; }

/* Белая скруглённая подложка под сеткой */
.plp .plp-results {
  margin-top: 18px;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  background: var(--plp-panel);
  border-radius: 14px;
  padding: clamp(16px, 4.6vw, 76px) clamp(12px, 5vw, 76px) clamp(24px, 4vw, 56px);
}

/* Сетка и карточки */
.plp .pgrid { gap: 28px 8px; }
.plp .pcard__media {
  aspect-ratio: 7 / 9;
  background: var(--plp-media);
  border: 1px solid rgba(0, 0, 0, .05);
}
.plp .pcard__img { object-fit: cover; }
.plp .pcard { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
.plp .pcard__media { grid-area: 1 / 1; }
.plp .pcard__body { grid-area: 2 / 1; }
/* Сердечко — в той же ячейке, что и фото, прижато к его низу слева
   (не зависит от расчётов по ширине — на телефонах с масштабом не «уезжает») */
.plp .pcard__save {
  position: relative; grid-area: 1 / 1; align-self: end; justify-self: start;
  margin: 0 0 12px 10px;
  top: auto; left: auto; right: auto; bottom: auto;
  width: 34px; height: 34px;
  background: transparent; box-shadow: none;
}
.plp .pcard__save svg { width: 26px; height: 26px; }
.plp .pcard__save:hover { background: transparent; }

/* Плашки: на фото остаётся только полоса EXCLUSIVE внизу */
.plp .pcard__badges { left: 0; right: 0; bottom: 0; display: block; }
.plp .pcard__badges .badge { display: none; }
.plp .pcard__badges .badge--exclusive {
  display: block;
  padding: 9px 44px 8px;
  background: rgba(255, 255, 255, .86); color: #1a1a1a;
  font-family: var(--font); font-weight: 400; font-size: 17px;
  letter-spacing: 0; text-transform: uppercase; text-align: center;
}
.plp .pcard__soldout { bottom: 0; }

.plp .pcard__body { padding: 12px 6px 0; gap: 4px; }
.plp .pcard__name { font-size: 13.5px; font-weight: 400; }
.plp .pcard__type, .plp .pcard__comp, .plp .pcard__colors { display: none; }
.plp .pcard__price { margin: 0; font-size: 13.5px; }
.plp .price-line { gap: 2px 8px; }
.plp .price { font-weight: 500; }
.plp .price--sale { color: var(--plp-sale); font-weight: 500; }
.plp .price__old { order: -1; font-size: 12px; font-weight: 600; color: var(--text); opacity: .75; }
.plp .price__off { display: none; }

/* «Просмотрено N из M» и «Загрузить ещё» */
.plp .plp-more { max-width: 220px; margin-top: 64px; }
.plp .plp-more__text { font-size: 13px; color: var(--text); margin-bottom: 10px; }
.plp .plp-more__bar { height: 4px; border-radius: 2px; background: #dedede; }
html[data-theme="dark"] .plp .plp-more__bar { background: #3a3a3c; }
.plp .plp-more__bar i { background: var(--plp-blue); border-radius: 2px; }
.plp .plp-more__btn {
  margin-top: 18px; min-height: 40px;
  background: var(--plp-panel); color: var(--text);
  border: 1px solid var(--plp-box-line); border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  font-family: var(--font); font-weight: 400; font-size: 14px;
  letter-spacing: 0; text-transform: none;
}
.plp .plp-more__btn:hover { background: var(--plp-panel); color: var(--text); border-color: var(--text-dim); }

@media (max-width: 1100px) {
  .plp .plp-bar__inner { flex-wrap: wrap; }
  .plp .plp-f, .plp .plp-bar__sort { flex: 1 1 140px; }
}
@media (max-width: 900px) {
  .plp .plp-results { border-radius: 10px; }
  .plp .plp-mbar { background: var(--plp-panel); }
}
@media (max-width: 760px) {
  .plp .plp-head { padding-top: 14px; }
  .plp .plp-results { width: calc(100% - 16px); padding: 14px 10px 28px; }
  .plp .pgrid { gap: 22px 6px; }
  .plp .pcard__badges .badge--exclusive { font-size: 13px; padding: 7px 36px 6px; }
  .plp .pcard__save { margin: 0 0 8px 4px; }
  .plp .pcard__save svg { width: 22px; height: 22px; }
}

/* ── Выпадающие панели фильтров и сортировки — в стиле плашки ─── */
.plp .plp-pop {
  top: calc(100% + 8px);
  min-width: 100%;
  background: var(--plp-panel);
  border: 1px solid var(--plp-box-line);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .04);
  overflow: hidden;
  font-family: var(--font);
}
html[data-theme="dark"] .plp .plp-pop { box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.plp .plp-pop--sort { width: 240px; }
.plp .plp-pop__head {
  min-height: 42px; padding: 8px 16px;
  border-bottom-color: var(--plp-box-line);
  font-size: 12.5px; color: var(--text-dim);
}
.plp .plp-pop__clear { color: var(--plp-blue); text-decoration: none; font-size: 12.5px; }
.plp .plp-pop__clear:hover { text-decoration: underline; }
.plp .plp-pop__body { padding: 6px 0; }
.plp .plp-pop__foot { padding: 12px 16px 14px; border-top-color: var(--plp-box-line); }

/* Строки: обычный шрифт, мягкая подсветка, синие флажки */
.plp .plp-opt { min-height: 38px; padding: 8px 16px; font-size: 13.5px; gap: 10px; }
.plp .plp-opt:hover { background: var(--plp-page); }
.plp .plp-opt input { width: 16px; height: 16px; accent-color: var(--plp-blue); }
.plp .plp-opt input:checked ~ .plp-opt__label { font-weight: 500; color: var(--text); }
.plp .plp-opt__n { font-size: 11.5px; }

/* Сортировка: без кружков, выбранный пункт — с галочкой */
.plp .plp-opt--sort input { position: absolute; opacity: 0; pointer-events: none; }
.plp .plp-opt--sort svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--plp-blue); stroke-width: 2.2; opacity: 0; }
.plp .plp-opt--sort input:checked ~ svg { opacity: 1; }
.plp .plp-opt--sort input:checked ~ .plp-opt__label { color: var(--plp-blue); }
.plp .plp-opt--sort:has(input:focus-visible) { outline: 2px solid var(--plp-blue); outline-offset: -2px; }

/* Размеры, цвета, состав, цена */
.plp .plp-size__box { border-radius: 6px; border-color: var(--plp-box-line); font-weight: 500; font-size: 13.5px; }
.plp .plp-size:not(.is-disabled):hover .plp-size__box { border-color: var(--text-dim); }
.plp .plp-size input:checked + .plp-size__box { background: var(--plp-blue); border-color: var(--plp-blue); color: #fff; }
.plp .plp-color { border-radius: 6px; font-size: 13.5px; }
.plp .plp-color:hover { background: var(--plp-page); }
.plp .plp-color input:checked ~ .plp-color__name { font-weight: 500; }
.plp .plp-price { border-top-color: var(--plp-box-line); }
.plp .plp-price__title { font-weight: 500; font-size: 12.5px; color: var(--text-dim); }
.plp .plp-price__row .input { border-radius: 6px; border-color: var(--plp-box-line); background: var(--plp-panel); }
.plp .plp-price .btn,
.plp .plp-pop__foot .btn {
  min-height: 38px; border-radius: 20px;
  background: var(--plp-blue); color: #fff; border: 0;
  font-family: var(--font); font-weight: 500; font-size: 13.5px;
  letter-spacing: 0; text-transform: none;
}
.plp .plp-price .btn:hover,
.plp .plp-pop__foot .btn:hover { background: var(--plp-blue); filter: brightness(1.08); }
html[data-theme="dark"] .plp .plp-price .btn,
html[data-theme="dark"] .plp .plp-pop__foot .btn { color: #000000; }

/* Счётчик выбранных на кнопке фильтра */
.plp .plp-f__n { background: var(--plp-blue); color: #fff; }
html[data-theme="dark"] .plp .plp-f__n { color: #000000; }
.plp .plp-f--sort .plp-f__btn { color: var(--text); }

/* Плашка фильтров — той же ширины, что белый блок с товарами,
   с теми же боковыми отступами: фильтры стоят ровно над сеткой */
.plp .plp-bar__inner {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin-left: auto; margin-right: auto;
  padding-left: clamp(12px, 5vw, 76px);
  padding-right: clamp(12px, 5vw, 76px);
}

/* Переключатель «Только со скидкой» — тем же синим, что флажки и кнопки фильтров */
.plp .plp-switch input:checked + .plp-switch__track { background: var(--plp-blue); }
.plp .plp-switch input:focus-visible + .plp-switch__track { outline-color: var(--plp-blue); }
/* Шторка фильтров на телефоне живёт вне .plp — там свой синий */
.plp-drawer .plp-switch input:checked + .plp-switch__track { background: #1a73e8; }
html[data-theme="dark"] .plp-drawer .plp-switch input:checked + .plp-switch__track { background: #f5f5f7; }

/* ── Списки в фильтрах: свои флажки в графитовой гамме сайта ──── */
.plp-opt input[type="checkbox"],
.plp-opt input[type="radio"] {
  -webkit-appearance: none; appearance: none;
  position: relative; flex: none;
  width: 18px; height: 18px; margin: 0;
  border: 1.5px solid #c7c7c7; border-radius: 5px;
  background: transparent center / 12px 12px no-repeat;
  cursor: inherit;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.plp-opt input[type="radio"] { border-radius: 50%; }
html[data-theme="dark"] .plp-opt input[type="checkbox"],
html[data-theme="dark"] .plp-opt input[type="radio"] { border-color: #48484a; }
.plp-opt:not(.is-disabled):hover input { border-color: var(--text); }
.plp-opt input[type="checkbox"]:checked {
  background-color: #1c1d21; border-color: #1c1d21;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.plp-opt input[type="radio"]:checked { border-color: #1c1d21; background: radial-gradient(circle, #1c1d21 0 4px, transparent 4.5px); }
html[data-theme="dark"] .plp-opt input[type="checkbox"]:checked {
  background-color: #f5f5f7; border-color: #f5f5f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1d21' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .plp-opt input[type="radio"]:checked { border-color: #f5f5f7; background: radial-gradient(circle, #f5f5f7 0 4px, transparent 4.5px); }
.plp-opt input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.plp-opt.is-disabled input { opacity: .45; }

/* Строки: мягкая подсветка со скруглением, выбранная — чуть плотнее */
.plp .plp-pop__body { padding: 6px; }
.plp .plp-opt { min-height: 40px; padding: 8px 12px; border-radius: 8px; gap: 12px; }
.plp .plp-opt:hover { background: var(--plp-page); }
.plp .plp-opt:has(input:checked) { background: var(--plp-page); }
.plp .plp-opt input:checked ~ .plp-opt__label { font-weight: 500; }
.plp .plp-opt__n {
  min-width: 24px; padding: 2px 7px; border-radius: 999px;
  background: var(--plp-page); color: var(--text-dim);
  font-size: 11px; text-align: center;
}
.plp .plp-opt:hover .plp-opt__n, .plp .plp-opt:has(input:checked) .plp-opt__n { background: var(--plp-panel); }

/* Шапка и низ панели */
.plp .plp-pop__head { min-height: 44px; padding: 8px 18px; font-size: 12.5px; color: var(--text-dim); }
.plp .plp-pop__clear { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--plp-box-line); }
.plp .plp-pop__clear:hover { text-decoration-color: currentColor; }
.plp .plp-pop__foot { padding: 10px 12px 12px; }
.plp .plp-price .btn,
.plp .plp-pop__foot .btn,
html[data-theme="dark"] .plp .plp-price .btn,
html[data-theme="dark"] .plp .plp-pop__foot .btn {
  min-height: 42px; border-radius: 8px;
  background: var(--text); color: var(--bg);
}
.plp .plp-price .btn:hover,
.plp .plp-pop__foot .btn:hover { background: var(--text); filter: none; opacity: .88; }

/* Счётчик на кнопке фильтра — в тон */
.plp .plp-f__n, html[data-theme="dark"] .plp .plp-f__n { background: var(--text); color: var(--bg); }
