/* ═══════════════════════════════════════════════════════════════
   LUMÉ — страница товара (PDP) в духе продуктовой страницы NZXT.
   Плоская серая панель с фото и лента миниатюр под ней, крупное
   жирное название (без узкого шрифта), опции-«пилюли», чёрная
   кнопка-пилюля, аккордеоны с иконкой и «+», ниже — обзор, блоки
   с деталями, характеристики, ряды плиток, отзывы.
   Всё под .pdp; диалоги страницы — под своими классами.
   Цвета — только из токенов base.css (тёмная тема работает сама).
   ═══════════════════════════════════════════════════════════════ */

.pdp,
.pdp-lightbox, .pdp-guide, .pdp-rfdialog {
  --pdp-panel: var(--bg-soft);                   /* серая подложка медиа: светлая / #1d1f23 */
  --pdp-ink: var(--text);                        /* заливка выбранной пилюли и главной кнопки */
  --pdp-ink-text: var(--bg);
  --pdp-pill-line: color-mix(in srgb, var(--text) 13%, transparent);
  --pdp-pill-hover: color-mix(in srgb, var(--text) 42%, transparent);
  --pdp-rule: var(--line);
  --pdp-label: color-mix(in srgb, var(--text) 62%, transparent);
  --pdp-swatch-ring: color-mix(in srgb, var(--text) 35%, transparent);  /* обводка кружков цвета */
  --pdp-shade: var(--ink);                       /* цвет теней: графит в обеих темах */
  --pdp-font-head: "Inter", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", system-ui,
                   -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}
.pdp {
  --pdp-head: 110px;                   /* видимая высота липкой шапки (JS уточняет) */
  --pdp-top: 130px;
  --pdp-panel-h: min(78vh, 820px);     /* высота панели с фото на компьютере */
  --pdp-gap: clamp(32px, 3.6vw, 56px);
  interpolate-size: allow-keywords;    /* плавное раскрытие <details> там, где браузер умеет */
}

.pdp-link {
  padding: 0; border: 0; background: none;
  color: var(--text); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent);
}
.pdp-link:hover { text-decoration-color: currentColor; }
.pdp-mono { font-family: var(--font); font-size: 13px; letter-spacing: .04em; }

/* Кнопки-пилюли страницы (отзывы, «не найдено», диалоги) */
.pdp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .15s var(--ease);
}
.pdp-btn:active:not(:disabled) { transform: scale(.98); }
.pdp-btn:disabled, .pdp-btn.is-busy { opacity: .6; cursor: not-allowed; }
.pdp-btn--dark { background: var(--pdp-ink); color: var(--pdp-ink-text); }
.pdp-btn--dark:hover:not(:disabled) { background: color-mix(in srgb, var(--pdp-ink) 84%, var(--bg)); }
.pdp-btn--line { background: var(--bg); color: var(--text); border-color: var(--pdp-pill-line); }
.pdp-btn--line:hover:not(:disabled) { border-color: var(--pdp-pill-hover); }
.pdp-btn--full { width: 100%; }

/* «+» аккордеонов: при раскрытии превращается в «−» */
.pdp-plus { position: relative; flex: none; width: 14px; height: 14px; }
.pdp-plus::before, .pdp-plus::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 14px; height: 1.6px; margin-top: -.8px;
  background: currentColor; border-radius: 1px;
  transition: transform .28s var(--pop);
}
.pdp-plus::after { transform: rotate(90deg); }
details[open] > summary .pdp-plus::after { transform: rotate(0deg); }

/* ── Появление страницы: галерея проявляется, блоки справа — лесенкой ── */
@keyframes pdpFade { from { opacity: 0; } }
@keyframes pdpRise { from { opacity: 0; transform: translateY(12px); } }
.pdp__media { animation: pdpFade .45s var(--ease) both; }
.pdp-in { animation: pdpRise .45s var(--pop) both; animation-delay: calc(var(--d, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) {
  .pdp__media, .pdp-in { animation: none; }
}

/* ── Каркас: галерея 42–58% (по высоте панели) | информация — остальное ── */
.pdp__crumbs { margin: 16px 0 20px; font-size: 13px; }
.pdp__crumbs [aria-current] {
  max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Колонка фото = ширина панели 4:5 высотой --pdp-panel-h (но не уже 42% и не шире 58%),
   поэтому фото заполняет панель (cover) без серых полей, а остаток ширины получает
   колонка информации — без пустой «дыры» между ними. */
.pdp__main {
  display: grid;
  grid-template-columns:
    clamp(calc((100% - var(--pdp-gap)) * .42), calc(var(--pdp-panel-h) * .8), calc((100% - var(--pdp-gap)) * .58))
    minmax(0, 1fr);
  gap: var(--pdp-gap);
  align-items: start;
}
.pdp__media, .pdp__info { min-width: 0; }

/* ── Галерея ───────────────────────────────────────────────────── */
.pdp-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;                 /* высоту задаёт ширина колонки (см. .pdp__main) */
  background: var(--pdp-panel);
  overflow: hidden;
}
.pdp-gallery__track {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.pdp-gallery__track::-webkit-scrollbar { display: none; }
.pdp-gallery__track:focus-visible { outline-offset: -3px; }
.pdp-gallery__slide {
  position: relative; flex: 0 0 100%;
  height: 100%; margin: 0; padding: 12px;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.pdp-gallery__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pdp-gallery__slide img.is-broken { visibility: hidden; }
.pdp-gallery__track.is-zoomable .pdp-gallery__slide { cursor: zoom-in; }
.pdp-gallery__slide--art { display: grid; place-items: center; }
.pdp-gallery__slide--art .art { width: 70%; height: auto; }

.pdp-gallery__nav, .pdp-gallery__zoom {
  position: absolute; z-index: 2;
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--pdp-pill-line); border-radius: 50%;
  background: var(--bg); color: var(--text);
  transition: opacity .2s var(--ease), transform .15s var(--ease), border-color .18s var(--ease);
}
.pdp-gallery__nav svg, .pdp-gallery__zoom svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.pdp-gallery__nav:hover, .pdp-gallery__zoom:hover { border-color: var(--pdp-pill-hover); }
.pdp-gallery__nav { top: 50%; margin-top: -22px; opacity: 0; }
.pdp-gallery__nav--prev { left: 16px; }
.pdp-gallery__nav--next { right: 16px; }
.pdp-gallery__stage:hover .pdp-gallery__nav,
.pdp-gallery__nav:focus-visible { opacity: 1; }
.pdp-gallery__nav:disabled { opacity: 0 !important; pointer-events: none; }
.pdp-gallery__nav:active, .pdp-gallery__zoom:active { transform: scale(.94); }
.pdp-gallery__zoom { right: 16px; bottom: 16px; width: 40px; height: 40px; }

/* Лента миниатюр под панелью */
.pdp-gallery__thumbs {
  display: flex; gap: 8px;
  margin: 8px -4px 0; padding: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.pdp-gallery__thumbs::-webkit-scrollbar { display: none; }
.pdp-gallery__thumb {
  position: relative; flex: none;
  width: 72px; height: 96px; padding: 0;
  border: 0; border-radius: 0;
  background: var(--pdp-panel);
  transition: box-shadow .18s var(--ease);
}
.pdp-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .18s var(--ease); }
.pdp-gallery__thumb:hover img, .pdp-gallery__thumb[aria-current="true"] img { opacity: 1; }
.pdp-gallery__thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--pdp-ink); }
.pdp-gallery__thumb.is-broken img { visibility: hidden; }
.pdp-gallery__dots { display: none; }

.pdp-credit {
  margin: 8px 0 0; text-align: right;
  font-size: 11.5px; color: var(--text-dim);
}
.pdp-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ── Информация (без рамок, на белом) ──────────────────────────── */
.pdp__info { padding-top: 4px; }
.pdp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pdp-tag {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 11px;
  border-radius: 999px;
  background: var(--pdp-panel); color: var(--text);
  font-size: 12px; font-weight: 600;
}
.pdp-tag--eco { color: var(--moss); }

.pdp__name {
  margin: 0;
  font-family: var(--pdp-font-head);
  font-size: clamp(28px, 2.9vw, 42px); font-weight: 700;
  line-height: 1.08; letter-spacing: -.018em;
  text-transform: none;
  overflow-wrap: anywhere; text-wrap: balance;
}
.pdp__tagline { margin: 10px 0 0; font-size: 15px; color: var(--text-dim); overflow-wrap: anywhere; }

.pdp__rating { margin-top: 12px; min-height: 20px; }
.pdp-rating {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; font-size: 13px; color: var(--text);
}
a.pdp-rating > span:not(.pdp-stars) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
a.pdp-rating:hover > span:not(.pdp-stars) { text-decoration-color: currentColor; }
a.pdp-rating:hover { text-decoration: none; }
.pdp-rating--none { color: var(--text-dim); }
.pdp-rating__write { font-size: 13px; }

/* Звёзды с дробным заполнением */
.pdp-stars { position: relative; display: inline-block; flex: none; line-height: 0; }
.pdp-stars__base, .pdp-stars__fill { display: flex; gap: 1px; }
.pdp-stars__fill { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; }
.pdp-stars svg { width: 14px; height: 14px; max-width: none; flex: none; fill: var(--line); stroke: none; }
.pdp-stars__fill svg { fill: var(--text); }
.pdp-stars--lg svg { width: 20px; height: 20px; }

/* Цена и тонкая линия под ней */
.pdp__price {
  margin-top: 18px; padding-bottom: 22px;
  border-bottom: 1px solid var(--pdp-rule);
  font-size: 18px;
}
.pdp__price .price { font-weight: 600; }
.pdp__price .price-line { gap: 4px 10px; align-items: center; }
.pdp__price .price__old { font-size: 15px; }
.pdp__price .price__off {
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 5px 9px; border-radius: 999px;
  background: var(--madder-soft);
}
.pdp__saving { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--madder); }

/* ── Опции: подпись слева, пилюли справа ───────────────────────── */
.pdp-opts { padding-top: 10px; }
.pdp-opt {
  display: grid; grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 16px; padding: 12px 0;
}
.pdp-opt__label {
  margin: 0; padding-top: 12px;
  font-size: 13px; font-weight: 500; line-height: 20px;
  color: var(--pdp-label);
}
.pdp-opt__ctrl { min-width: 0; }
.pdp-opt__note { margin: 10px 0 0; font-size: 13px; color: var(--text-dim); }

.pdp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--pdp-pill-line); border-radius: 999px;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1.15;
  letter-spacing: -.005em; text-align: left;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), transform .15s var(--ease);
}
.pdp-pill:hover:not(:disabled) { border-color: var(--pdp-pill-hover); }
.pdp-pill:active:not(:disabled) { transform: scale(.97); }
.pdp-pill[aria-pressed="true"] { background: var(--pdp-ink); color: var(--pdp-ink-text); border-color: var(--pdp-ink); }
.pdp-pill small { font-size: 12.5px; font-weight: 500; color: var(--text-dim); white-space: nowrap; }
.pdp-pill.is-low small { color: var(--weld); }
.pdp-pill[aria-pressed="true"] small { color: inherit; opacity: .72; }
.pdp-pill:disabled {
  cursor: not-allowed; color: var(--text-dim);
  background: transparent; border-color: var(--line-soft);
}
.pdp-pill:disabled span { text-decoration: line-through; text-decoration-thickness: 1px; }
.pdp-pill__dot {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--pdp-swatch-ring);
}
.pdp-pill[aria-pressed="true"] .pdp-pill__dot {
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--pdp-ink-text) 75%, transparent);
}
.pdp-size { min-width: 56px; padding: 0 15px; }

.pdp-sizes.is-invalid .pdp-pill:not(:disabled):not([aria-pressed="true"]) { border-color: var(--madder); }
.pdp-sizes.is-invalid .pdp-pills { animation: pdpNudge .42s var(--ease); }
@keyframes pdpNudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.pdp-sizes__msg {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  margin: 10px 0 0;
  font-size: 13px;
}
.pdp-sizes__msg:empty { margin: 0; }
.pdp-sizes__msg.is-error { color: var(--madder); font-weight: 600; }
.pdp-sizes__msg.is-low { color: var(--weld); }
.pdp-sizes__msg.is-ok { color: var(--moss); }
.pdp-sizes__extra { color: var(--text-dim); }
.pdp-sizes__extra::before { content: "·"; margin-right: 8px; }
.pdp-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.pdp-sizes__msg.is-low .pdp-dot { background: var(--weld-dot); }

.pdp-guide-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 2px 0;
  border: 0; background: none;
  font-size: 13px; font-weight: 500; color: var(--text);
  white-space: nowrap;
}
.pdp-guide-btn span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent); }
.pdp-guide-btn:hover span { text-decoration-color: currentColor; }
.pdp-guide-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }

/* ── Главная кнопка и сердечко ─────────────────────────────────── */
.pdp-actions { display: flex; gap: 10px; margin-top: 16px; }
.pdp-cta {
  flex: 1 1 auto; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--pdp-ink); color: var(--pdp-ink-text);
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  white-space: nowrap;
  transition: background .18s var(--ease), transform .15s var(--ease);
}
.pdp-cta svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .22s var(--pop);
}
.pdp-cta:hover:not(:disabled) { background: color-mix(in srgb, var(--pdp-ink) 84%, var(--bg)); }
.pdp-cta:hover:not(:disabled) svg { transform: translateX(3px); }
.pdp-cta:active:not(:disabled) { transform: scale(.98); }
.pdp-cta:disabled { background: var(--pdp-panel); color: var(--text-dim); cursor: not-allowed; }
.pdp-cta.is-added svg { stroke-width: 2.2; transform: none; }

.pdp .pdp-save {
  flex: none; width: 52px; height: 52px;
  border: 1px solid var(--pdp-pill-line); border-radius: 50%;
  background: var(--bg); color: #ff2d55;
  box-shadow: none;
  transition: border-color .18s var(--ease), transform .15s var(--ease);
}
.pdp .pdp-save:hover { border-color: var(--pdp-pill-hover); }
.pdp .pdp-save svg { width: 22px; height: 22px; }

.pdp-actions__msg { margin: 10px 0 0; font-size: 13px; }
.pdp-actions__msg:empty { display: none; }
.pdp-actions__msg.is-error { color: var(--madder); font-weight: 600; }
.pdp-actions__msg.is-soldout { color: var(--text-dim); }

.pdp-perks {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 0;
  font-size: 13.5px; color: var(--text-dim);
}
.pdp-perks svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Аккордеоны: иконка слева, «+» справа, строка 64px ─────────── */
.pdp-acc { margin-top: 28px; border-top: 1px solid var(--pdp-rule); }
.pdp-acc__item { border-bottom: 1px solid var(--pdp-rule); }
.pdp-acc__item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 0 2px;
  font-size: 15px; font-weight: 400;   /* лёгкие строки, как у NZXT (15px / 400) */
}
.pdp-acc__item > summary::-webkit-details-marker { display: none; }
.pdp-acc__item > summary:hover .pdp-acc__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.pdp-acc__icon { display: grid; place-items: center; width: 24px; flex: none; color: var(--text); }
.pdp-acc__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.pdp-acc__title { flex: 1; min-width: 0; }
.pdp-acc__body {
  padding: 0 2px 22px 40px;
  font-size: 14px; line-height: 1.6; color: var(--text-dim);
}
.pdp-acc__body p { margin: 0 0 .75em; }
.pdp-acc__body p:last-child { margin-bottom: 0; }
.pdp-acc__body b { color: var(--text); font-weight: 600; }
.pdp-acc__dl { display: grid; gap: 6px; margin: 0 0 14px; }
.pdp-acc__dl div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.pdp-acc__dl dt { color: var(--text-dim); }
.pdp-acc__dl dd { margin: 0; color: var(--text); }
.pdp-care-icons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; color: var(--text); }
.pdp-care-icons svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round;
}
.pdp-care-icons text { font-family: var(--font); font-weight: 600; }

/* Плавное раскрытие (Chrome 131+), без поддержки — просто открывается */
.pdp-acc__item::details-content, .pdp-spec::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .3s var(--ease), content-visibility .3s var(--ease) allow-discrete;
}
.pdp-acc__item[open]::details-content, .pdp-spec[open]::details-content { block-size: auto; }

/* ═══ Секции ниже первого экрана ══════════════════════════════════ */
.pdp-sec { margin-top: clamp(72px, 8vw, 120px); }
.pdp-h2 {
  margin: 0 0 22px;
  font-family: var(--pdp-font-head);
  font-size: clamp(26px, 2.5vw, 36px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.016em;
  text-transform: none;
}
.pdp-h2--center { text-align: center; margin-bottom: 0; }
.pdp-h2:focus { outline: 0; }
.pdp-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--pdp-label); }

/* ── Обзор ─────────────────────────────────────────────────────── */
.pdp-overview {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--pdp-gap); align-items: start;
}
.pdp-overview__lead {
  margin: 0; max-width: 62ch;
  font-size: 17px; line-height: 1.6; color: var(--text);
  white-space: pre-line;
}
.pdp-points { list-style: none; display: grid; gap: 14px; margin-top: 28px; max-width: 68ch; }
.pdp-points li {
  position: relative; padding-left: 22px;
  font-size: 15px; line-height: 1.55; color: var(--text-dim);
}
.pdp-points li::before {
  content: ""; position: absolute; left: 3px; top: .6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--text);
}
.pdp-points b { color: var(--text); font-weight: 600; }
.pdp-overview__label {
  display: grid; place-items: center;
  min-height: 100%;
  padding: clamp(36px, 4vw, 64px) 24px;
  background: var(--pdp-panel);
}

/* Вшитая этикетка: состав и уход (фирменная деталь LUMÉ) */
.pdp-label { display: flex; justify-content: center; width: 100%; }
.pdp .pdp-label__tag {
  position: relative;
  width: min(100%, 300px);
  padding: 34px 22px 18px;
  text-align: center;
  font-size: 11.5px; line-height: 1.7; letter-spacing: .04em;
  color: var(--text);
  background-color: var(--label-bg);
  /* мелкое плетение ленты */
  background-image:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--text) 4%, transparent) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--text) 3%, transparent) 0 1px, transparent 1px 4px);
  border: 1px solid var(--label-edge);
  outline: 1px dashed color-mix(in srgb, var(--label-edge) 75%, var(--text));
  outline-offset: -7px;
  box-shadow: 0 1px 1px color-mix(in srgb, var(--pdp-shade) 4%, transparent),
              0 18px 30px -20px color-mix(in srgb, var(--pdp-shade) 45%, transparent);
  transform: rotate(-.8deg);
}
/* загиб сверху: ярлык вшит в шов, по шву — строчка */
.pdp .pdp-label__tag::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 16px;
  background:
    repeating-linear-gradient(90deg, var(--label-edge) 0 5px, transparent 5px 9px) 0 50% / 100% 1px no-repeat,
    color-mix(in srgb, var(--label-edge) 38%, var(--label-bg));
  border: 1px solid var(--label-edge);
  box-shadow: 0 2px 3px -2px color-mix(in srgb, var(--pdp-shade) 25%, transparent);
}
.pdp .pdp-label__tag p { margin: 0; }
.pdp-label__brand {
  margin-bottom: 12px !important;
  font-family: var(--font);
  font-size: 19px; font-weight: 700; letter-spacing: .04em; padding-left: .34em;
  line-height: 1.2;
}
.pdp-label__group { padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--label-edge) 70%, transparent); }
.pdp-label__part { font-size: 9.5px; letter-spacing: .04em; color: var(--text-dim); }
.pdp-label__symbols {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 12px 0 6px;
  border-top: 1px solid color-mix(in srgb, var(--label-edge) 70%, transparent);
}
.pdp-label__symbols svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round;
}
.pdp-label__symbols text { font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.pdp-label__care {
  padding-top: 8px;
  font-size: 10.5px; line-height: 1.6; letter-spacing: .05em;
  text-transform: none; color: var(--text-dim);
}
.pdp-label__symbols + .pdp-label__care { padding-top: 4px; }
.pdp-label__group + .pdp-label__care { border-top: 1px solid color-mix(in srgb, var(--label-edge) 70%, transparent); padding-top: 12px; }
.pdp-label__sku { margin-top: 14px !important; font-size: 9.5px; letter-spacing: .04em; color: var(--text-dim); }

/* ── Блоки с деталями: фото на серой панели + текст ────────────── */
.pdp-features { display: grid; gap: clamp(56px, 6vw, 96px); }
.pdp-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--pdp-gap); align-items: center;
}
.pdp-feature[hidden] { display: none; }
.pdp-feature--rev .pdp-feature__media { order: 2; }
.pdp-feature__media {
  display: block; width: 100%;
  aspect-ratio: 4 / 5; max-height: 720px;
  margin: 0; padding: 12px;
  border: 0; border-radius: 0;
  background: var(--pdp-panel);
  cursor: zoom-in;
}
.pdp-feature__media img { width: 100%; height: 100%; object-fit: contain; }
.pdp-feature__text { max-width: 520px; }
.pdp-feature--rev .pdp-feature__text { justify-self: end; }
.pdp-feature__title {
  margin: 0 0 16px;
  font-family: var(--pdp-font-head);
  font-size: clamp(24px, 2.3vw, 34px); font-weight: 700;
  line-height: 1.12; letter-spacing: -.016em;
}
.pdp-feature__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-dim); }
.pdp-feature__extra {
  display: flex; align-items: flex-start; gap: 14px 18px; flex-wrap: wrap;
  margin: 26px 0 0; padding-top: 22px;
  border-top: 1px solid var(--pdp-rule);
  font-size: 14px; line-height: 1.6; color: var(--text-dim);
}
.pdp-feature__extra .pdp-care-icons { margin: 0; }
.pdp-feature__note { flex: 1 1 260px; min-width: 0; }
.pdp-feature__note b { color: var(--text); font-weight: 600; }

/* ── Характеристики ────────────────────────────────────────────── */
.pdp-specs__groups { border-top: 1px solid var(--pdp-rule); }
.pdp-spec { border-bottom: 1px solid var(--pdp-rule); }
.pdp-spec > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 0 2px;
  font-family: var(--pdp-font-head); font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
.pdp-spec > summary::-webkit-details-marker { display: none; }
.pdp-spec__rows {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--pdp-gap);
  margin: 0; padding: 0 2px 26px;
}
.pdp-spec__row {
  display: grid; grid-template-columns: minmax(110px, 2fr) minmax(0, 3fr); gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px; line-height: 1.5;
}
.pdp-spec__row dt { color: var(--text-dim); }
.pdp-spec__row dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.pdp-spec__colors { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pdp-spec__colors span { display: inline-flex; align-items: center; gap: 7px; }
.pdp-spec__colors i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--pdp-swatch-ring); }
.pdp-avail { display: inline-flex; align-items: center; gap: 7px; }
.pdp-avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pdp-avail.is-ok { color: var(--moss); }
.pdp-avail.is-low { color: var(--weld); }
.pdp-avail.is-low::before { background: var(--weld-dot); }
.pdp-avail.is-out { color: var(--text-dim); }

/* ── Ряды плиток: «Соберите образ», «Вам может понравиться», «Вы смотрели» ── */
.pdp-row__head { margin-bottom: 30px; text-align: center; }
.pdp-row__note { margin: 12px auto 0; max-width: 62ch; font-size: 15px; color: var(--text-dim); }
.pdp-row__note b { color: var(--text); font-weight: 600; }
.pdp-row__total { display: block; margin-top: 4px; color: var(--text); }
.pdp .pdp-row__track {
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px;
  padding-bottom: 8px;
}
.pdp-row--few .pdp-row__track { justify-content: center; }
/* на широком экране ряд обрезается по краю контейнера, как у NZXT, — без «хвоста» пятой плитки */
@media (min-width: 1101px) {
  .pdp .pdp-row__track { clip-path: inset(-8px calc(var(--gutter) - 8px)); }
  /* clip-path срезал бы боковые стороны обычного кольца фокуса, а верх прятался под
     плитками — поэтому кольцо рисуем поверх ряда, по границе видимой области */
  @supports selector(:has(a)) {
    .pdp .pdp-row__track:focus-visible { outline: none; }
    .pdp .pdp-row__viewport:has(> .pdp-row__track:focus-visible)::after {
      content: ""; position: absolute; z-index: 4; pointer-events: none;
      top: -8px; bottom: 0;
      left: calc(var(--gutter) - 8px); right: calc(var(--gutter) - 8px);
      border: 2px solid var(--indigo); border-radius: var(--radius);
    }
  }
}
.pdp-row__viewport .shelf__nav { top: calc(50% - 90px); }
.pdp-row__more { margin: 26px 0 0; text-align: center; font-size: 14px; font-weight: 500; }

.pdp-tile { position: relative; min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start; }
.pdp-tile__media {
  position: relative; display: block;
  aspect-ratio: 4 / 5; padding: 10px;
  background: var(--pdp-panel);
  overflow: hidden;
}
.pdp-tile__media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .6s var(--pop);
}
.pdp-tile__media.is-broken img { visibility: hidden; }
@media (hover: hover) {
  .pdp-tile:hover .pdp-tile__media img { transform: scale(1.03); }
}
.pdp-tile__art { position: absolute; inset: 0; display: grid; place-items: center; }
.pdp-tile__art .art { width: 72%; height: auto; }
.pdp-tile__badge {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--bg); color: var(--text);
  font-size: 11.5px; font-weight: 600;
}
.pdp-tile__badge--sale { color: var(--madder); }
.pdp-tile__soldout {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--bg); color: var(--text-dim);
  text-align: center; font-size: 12px; font-weight: 600;
}
.pdp-tile.is-soldout .pdp-tile__media img { opacity: .55; }
.pdp .pdp-tile__save { position: absolute; top: 10px; right: 10px; z-index: 2; box-shadow: none; }
.pdp-tile__body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.pdp-tile__name {
  margin: 0;
  font-family: var(--pdp-font-head); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pdp-tile__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp-tile__colors {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  margin: 0; font-size: 13px; color: var(--text-dim);
}
.pdp-tile__dots { display: inline-flex; flex: none; }
.pdp-tile__dots i {
  width: 11px; height: 11px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--bg), inset 0 0 0 1px var(--pdp-swatch-ring);
}
.pdp-tile__dots i + i { margin-left: -3px; }
.pdp-tile__cname { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-tile__price { margin: 2px 0 0; font-size: 15px; }
.pdp-tile__price .price { font-weight: 600; }
.pdp-tile__cta { margin-top: auto; padding-top: 14px; }
.pdp-tile__btn {
  width: 100%; height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: var(--pdp-ink); color: var(--pdp-ink-text);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  transition: background .18s var(--ease), transform .15s var(--ease);
}
.pdp-tile__btn:hover:not(:disabled) { background: color-mix(in srgb, var(--pdp-ink) 84%, var(--bg)); }
.pdp-tile__btn:active:not(:disabled) { transform: scale(.98); }
.pdp-tile__btn:disabled { background: var(--pdp-panel); color: var(--text-dim); cursor: not-allowed; }
.pdp-tile__btn.is-pressed { animation: pdpPress .3s var(--ease); }
@keyframes pdpPress { 40% { transform: scale(.96); } }

/* ── Отзывы ────────────────────────────────────────────────────── */
.pdp-reviews { scroll-margin-top: calc(var(--pdp-head) + 12px); }
.pdp-reviews__num { color: var(--text-dim); font-weight: 600; }

.pdp-rv-skel { max-width: 760px; }
.pdp-rv-skel span { display: block; height: 18px; margin-bottom: 14px; border-radius: 9px; }
.pdp-rv-skel span:nth-child(1) { width: 40%; }
.pdp-rv-skel span:nth-child(2) { width: 92%; }
.pdp-rv-skel span:nth-child(3) { width: 70%; }

.pdp-rv-empty {
  display: flex; align-items: center; gap: 24px;
  padding: 32px clamp(20px, 3vw, 40px);
  background: var(--pdp-panel);
}
.pdp-rv-empty__icon {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg);
}
.pdp-rv-empty__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 1.3; stroke-linejoin: round; }
.pdp-rv-empty__text { flex: 1; min-width: 0; }
.pdp-rv-empty__title { margin: 0 0 4px; font-family: var(--pdp-font-head); font-size: 18px; font-weight: 700; }
.pdp-rv-empty .muted { margin: 0; max-width: 62ch; }
.pdp-rv-empty .pdp-btn { flex: none; }

.pdp-rv-layout {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px var(--pdp-gap); align-items: start;
}
.pdp-rv-sum {
  position: sticky; top: var(--pdp-top);
  padding: 28px 26px;
  background: var(--pdp-panel);
}
.pdp-rv-sum__avg { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; }
.pdp-rv-sum__avg b {
  font-family: var(--pdp-font-head);
  font-size: 64px; font-weight: 700; line-height: .9; letter-spacing: -.03em;
}
.pdp-rv-sum__avg span { color: var(--text-dim); font-size: 15px; }
.pdp-rv-sum__count { margin: 8px 0 0; }
.pdp-rv-sum .pdp-btn { margin-top: 22px; }

.pdp-fit { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--pdp-rule); }
.pdp-fit__title { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.pdp-fit__title .muted { font-weight: 400; }
.pdp-fit ul { list-style: none; display: grid; gap: 8px; }
.pdp-fit li {
  display: grid; grid-template-columns: 94px minmax(0, 1fr) 22px;
  align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-dim);
}
.pdp-fit li.is-top { color: var(--text); font-weight: 600; }
.pdp-fit__bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.pdp-fit__bar i { display: block; height: 100%; border-radius: inherit; background: var(--text-dim); }
.pdp-fit li.is-top .pdp-fit__bar i { background: var(--text); }
.pdp-fit__num { text-align: right; }

.pdp-rv-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 8px; }
.pdp-rv-tools label { color: var(--text-dim); }
.pdp-rv-sort { width: auto; min-height: 40px; padding: 6px 38px 6px 16px; border-radius: 999px; font-size: 13px; }
.pdp-rv-list { list-style: none; border-top: 1px solid var(--pdp-rule); }
.pdp-rv { padding: 22px 0 24px; border-bottom: 1px solid var(--pdp-rule); }
.pdp-rv:focus { outline: 0; }
.pdp-rv:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; }
.pdp-rv__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pdp-rv__name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.pdp-rv__date { margin-left: auto; font-size: 13px; color: var(--text-dim); }
.pdp-rv__meta { margin: 6px 0 0; font-size: 13px; color: var(--text-dim); }
.pdp-rv__text { margin: 10px 0 0; max-width: 72ch; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.pdp-rv-more { margin-top: 24px; }

/* ── Липкая панель (телефон) ───────────────────────────────────── */
.pdp-bar { display: none; }

/* ── Товар не найден ───────────────────────────────────────────── */
.pdp-missing { max-width: 600px; padding-top: 56px; padding-bottom: 24px; text-align: center; }
.pdp-missing__icon {
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--pdp-panel);
}
.pdp-missing__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.pdp-missing__title {
  margin: 0 0 12px;
  font-family: var(--pdp-font-head); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.018em;
}
.pdp-missing__text { margin: 0 auto 22px; max-width: 52ch; color: var(--text-dim); }
.pdp-missing__search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto 14px; }
.pdp-missing__search .input { flex: 1; min-width: 0; min-height: 48px; padding: 0 20px; border-radius: 999px; }
.pdp-missing__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ═══ Диалоги страницы ════════════════════════════════════════════ */
.pdp-guide .dialog__title, .pdp-rfdialog .dialog__title, .pdp-lightbox .dialog__title {
  font-family: var(--pdp-font-head);
  font-size: 19px; font-weight: 700; letter-spacing: -.01em; text-transform: none;
}

/* Полноэкранный просмотр фото — на серой «сцене» */
.pdp-lightbox.dialog { background: var(--pdp-panel); }
.pdp-lightbox .dialog__head { border-bottom: 0; padding: 8px 10px 8px 20px; }
.pdp-lightbox .dialog__title { min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-lightbox .dialog__body { padding: 0; overflow: hidden; display: flex; }
.pdp-lb { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pdp-lb__track {
  flex: 1; min-height: 0;
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.pdp-lb__track::-webkit-scrollbar { display: none; }
.pdp-lb__track.is-locked { overflow: hidden; }
.pdp-lb__slide {
  position: relative;
  flex: 0 0 100%; min-width: 0; margin: 0;
  overflow: hidden;
  scroll-snap-align: center; scroll-snap-stop: always;
}
.pdp-lb__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .35s var(--ease);
}
.pdp-lb__slide img[data-zoomable] { cursor: zoom-in; }
.pdp-lb__slide.is-zoomed img { transform: scale(2.2); cursor: zoom-out; transition-duration: .25s; }
.pdp-lb__nav {
  position: absolute; top: 50%; z-index: 2; margin-top: -48px;
  width: 52px; height: 52px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--pdp-pill-line); border-radius: 50%;
  background: var(--bg); color: var(--text);
  transition: border-color .18s var(--ease);
}
.pdp-lb__nav:hover { border-color: var(--pdp-pill-hover); }
.pdp-lb__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pdp-lb__nav--prev { left: 20px; }
.pdp-lb__nav--next { right: 20px; }
.pdp-lb__nav:disabled { opacity: 0; pointer-events: none; }
.pdp-lb__foot {
  flex: none;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 10px 16px 16px;
}
.pdp-lb__count { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-dim); min-width: 44px; }
.pdp-lb__thumbs { display: flex; gap: 8px; }
.pdp-lb__thumb {
  position: relative; width: 42px; aspect-ratio: 3 / 4; padding: 0;
  border: 0; background: var(--bg-plate); opacity: .55;
  transition: opacity .2s var(--ease), box-shadow .2s var(--ease);
}
.pdp-lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-lb__thumb:hover, .pdp-lb__thumb[aria-current="true"] { opacity: 1; }
.pdp-lb__thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--pdp-panel), 0 0 0 4px var(--pdp-ink); }
.pdp-lb__hint {
  position: absolute; left: 20px; bottom: 18px; margin: 0;
  font-size: 12px; color: var(--text-dim);
  pointer-events: none;
}
.pdp-lb:not(.has-many) .pdp-lb__hint { left: 50%; transform: translateX(-50%); }

/* Таблица размеров */
.pdp-guide__fit { margin-bottom: 18px; padding: 16px 18px; background: var(--pdp-panel); font-size: 14px; }
.pdp-guide__fit p { margin: 0; }
.pdp-guide__kicker { margin-bottom: 4px !important; font-size: 12.5px; font-weight: 600; color: var(--pdp-label); }
.pdp-guide__unit { margin: 0 0 4px; }
.pdp-guide__table th, .pdp-guide__table td { padding: 11px 10px; }
.pdp-guide__table th:first-child, .pdp-guide__table td:first-child { padding-left: 12px; }
.pdp-guide__table thead th { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.pdp-guide__table tbody th {
  font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text);
}
.pdp-guide__table tr.is-current, .pdp-guide__table tr.is-current:hover { background: var(--pdp-panel); }
.pdp-guide__table em {
  display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 8px;
  border-radius: 999px; background: var(--pdp-ink); color: var(--pdp-ink-text);
  font-style: normal; font-weight: 600; font-size: 11px;
}
.pdp-guide__h {
  margin: 26px 0 10px;
  font-family: var(--pdp-font-head); font-size: 17px; font-weight: 700; letter-spacing: -.01em;
}
.pdp-guide__how { margin: 0 0 12px; padding-left: 20px; font-size: 14px; }
.pdp-guide__how li { margin-bottom: 6px; }

/* Форма отзыва */
.pdp-rfdialog fieldset { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.pdp-rfdialog legend { padding: 0; }
.pdp-rfdialog .dialog__foot { border-top: 0; padding-top: 4px; }
.pdp-rf__product {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; padding: 12px;
  background: var(--pdp-panel);
}
.pdp-rf__thumb {
  width: 48px; flex: none; aspect-ratio: 3 / 4;
  display: grid; place-items: center;
  background: var(--bg-plate); overflow: hidden;
}
.pdp-rf__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-rf__thumb .art { width: 84%; height: auto; }
.pdp-rf__product > span:last-child { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.pdp-rf__stars { display: flex; align-items: center; gap: 0; margin-left: -6px; }
.pdp-rfdialog .field .pdp-rf__stars label {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin: 0;
  border-radius: 50%; cursor: pointer;
}
.pdp-rf__stars label svg {
  width: 30px; height: 30px;
  fill: var(--line); stroke: none;
  transition: fill .12s var(--ease), transform .18s var(--pop);
}
.pdp-rf__stars label.is-on svg { fill: var(--text); }
.pdp-rf__stars label:hover svg { transform: scale(1.12); }
.pdp-rf__stars input:focus-visible + label { outline: 2px solid var(--indigo); outline-offset: -3px; }
.pdp-rf__word { margin-left: 10px; font-size: 13px; color: var(--text-dim); }
.pdp-rf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-rfdialog .field .pdp-rf__chips .chip {
  display: inline-flex; margin: 0;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border-color: var(--pdp-pill-line);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.pdp-rf__chips input:checked + .chip { background: var(--pdp-ink); color: var(--pdp-ink-text); border-color: var(--pdp-ink); }
.pdp-rf__chips input:focus-visible + .chip { outline: 2px solid var(--indigo); outline-offset: 2px; }
.pdp-rf__under { display: flex; justify-content: space-between; gap: 12px; }
.pdp-rf__count { flex: none; margin-top: 5px; font-size: 12px; color: var(--text-dim); }
.pdp-rf__note { margin: 4px 0 0; }
.pdp-rf__formerr { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--madder); }
.pdp-rf__formerr:empty { display: none; }
.pdp-rf-done { padding: 36px 8px 28px; text-align: center; outline: 0; }
.pdp-rf-done svg {
  width: 56px; height: 56px; margin: 0 auto 16px; padding: 12px;
  border-radius: 50%; background: var(--pdp-panel);
  fill: none; stroke: var(--moss); stroke-width: 2;
}
.pdp-rf-done__title { margin: 0 0 8px; font-family: var(--pdp-font-head); font-size: 19px; font-weight: 700; }
.pdp-rf-done p { margin: 0; }

/* ═══ Адаптив ═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .pdp .pdp-row__track { grid-auto-columns: calc((100% - 2 * 16px) / 3.25); gap: 16px; }
  .pdp-row--few .pdp-row__track { justify-content: start; }
  .pdp-rv-layout { grid-template-columns: 270px minmax(0, 1fr); }
  .pdp-opt { grid-template-columns: 1fr; gap: 10px; }
  .pdp-opt__label { padding-top: 0; }
}

@media (max-width: 900px) {
  .pdp { --pdp-top: 76px; --pdp-head: 56px; }
  .pdp__crumbs { margin: 10px 0 12px; }
  .pdp__crumbs [aria-current] { display: none; }   /* название и так в заголовке ниже */
  .pdp__main { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pdp__media { margin: 0 calc(-1 * var(--gutter)); }

  /* свайп-галерея во всю ширину, точки под ней */
  .pdp-gallery__stage { aspect-ratio: auto; max-height: none; background: none; }
  .pdp-gallery__track { gap: 3px; height: auto; }
  .pdp-gallery__slide {
    flex: 0 0 min(100%, calc((100vh / var(--zoom, 1) - 220px) * .8));
    flex: 0 0 min(100%, calc((100svh / var(--zoom, 1) - 220px) * .8));
    height: auto; aspect-ratio: 4 / 5; padding: 0;
    background: var(--pdp-panel);
  }
  .pdp-gallery__slide img { object-fit: cover; }
  .pdp-gallery__slide--art { padding: 12px; }
  .pdp-gallery__slide--art img, .pdp-gallery__slide--art .art { object-fit: contain; }
  .pdp-gallery__thumbs { display: none; }
  .pdp-gallery__nav { display: none; }
  /* кнопка — у правого края ТЕКУЩЕГО фото, а не всей ленты (на планшете сбоку
     выглядывает следующее фото); ширина слайда та же, что в flex-basis выше */
  .pdp-gallery__zoom {
    right: auto; bottom: 12px;
    left: calc(min(100%, (100vh / var(--zoom, 1) - 220px) * .8) - 52px);
    left: calc(min(100%, (100svh / var(--zoom, 1) - 220px) * .8) - 52px);
  }
  .pdp-gallery.is-last .pdp-gallery__zoom { left: auto; right: 12px; }
  .pdp-gallery__dots {
    display: flex; justify-content: center; gap: 7px;
    padding: 14px 0 0;
  }
  .pdp-gallery__dots i {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--line);
    transition: background .2s var(--ease), width .25s var(--pop);
  }
  .pdp-gallery__dots i.is-on { width: 20px; border-radius: 4px; background: var(--text); }
  .pdp-credit { padding: 0 var(--gutter); margin-top: 6px; font-size: 11px; }

  .pdp__info { padding-top: 0; }
  .pdp-opt { grid-template-columns: 72px minmax(0, 1fr); gap: 8px 14px; }
  .pdp-opt__label { padding-top: 12px; }

  .pdp-sec { margin-top: 64px; }
  .pdp-overview, .pdp-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pdp-feature--rev .pdp-feature__media { order: 0; }
  .pdp-feature--rev .pdp-feature__text { justify-self: start; }
  .pdp-feature__media { max-height: none; }
  .pdp-overview__label { min-height: 0; }
  .pdp-spec__rows { grid-template-columns: minmax(0, 1fr); }

  .pdp-rv-layout { grid-template-columns: minmax(0, 1fr); }
  .pdp-rv-sum { position: static; }

  /* липкая панель появляется, когда основная кнопка ушла из вида */
  .pdp-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: var(--tabbar-h, 0px); z-index: 90;
    padding: 10px var(--gutter);   /* отступ под «чёлку» уже в нижней панели вкладок */
    background: var(--bg);
    border-top: 1px solid var(--pdp-rule);
    box-shadow: 0 -10px 24px color-mix(in srgb, var(--pdp-shade) 8%, transparent);
    transform: translateY(110%); visibility: hidden;
    transition: transform .3s var(--pop), visibility 0s linear .3s;
  }
  .pdp-bar.is-on { transform: none; visibility: visible; transition: transform .3s var(--pop), visibility 0s; }
  .pdp-bar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; }
  .pdp-bar__info .price { font-weight: 600; }
  .pdp-bar__name { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-bar__info .price-line { flex-wrap: nowrap; }
  .pdp-bar__btn { flex: none; height: 48px; padding: 0 22px; }

  .pdp-lb__nav { display: none; }
  .pdp-lb__hint { display: none; }
}

@media (max-width: 760px) {
  .pdp .pdp-row__track { grid-auto-columns: calc((100% - 12px) / 2.15); gap: 12px; }
  .pdp-tile__name { font-size: 15px; }
  .pdp-tile__btn { height: 40px; font-size: 13.5px; }
  .pdp-row__viewport .shelf__nav { display: none; }
}

@media (max-width: 640px) {
  .pdp-rv-empty { flex-wrap: wrap; padding: 24px 20px; gap: 14px 16px; }
  .pdp-rv-empty .pdp-btn { width: 100%; }
  .pdp-rv__date { margin-left: 0; width: 100%; order: 3; }
  .pdp-rv-tools { justify-content: space-between; }
  .pdp-missing__search { flex-direction: column; }
}

@media (max-width: 560px) {
  .pdp .pdp-row__track { grid-auto-columns: calc((100% - 12px) / 1.65); }
  .pdp-opt { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 0 10px; }
  .pdp-opt__label { padding-top: 0; }
  .pdp-pill { padding: 0 16px; }
  .pdp-size { min-width: 54px; padding: 0 14px; }
  .pdp-acc__body { padding-left: 2px; }
  .pdp-overview__lead { font-size: 16px; }
  .pdp-feature__lead { font-size: 16px; }
  .pdp-spec__row { grid-template-columns: minmax(96px, 2fr) minmax(0, 3fr); }
}

@media (max-width: 480px) {
  .pdp-guide__table th, .pdp-guide__table td { padding: 10px 6px; font-size: 13px; }
  .pdp-guide__table em { display: flex; width: max-content; margin: 4px 0 0; }
}

@media (max-width: 400px) {
  .pdp-bar__btn { padding: 0 16px; font-size: 14px; }
  .pdp-actions { gap: 8px; }
  .pdp-cta { padding: 0 18px; }
}

@media (hover: none) {
  .pdp-gallery__nav { display: none; }
  .pdp-lb__nav { display: none; }
}
