/* =====================================================================
   So Cold — КАРТОЧКА ТОВАРА по statevenice.com:
   слева одно фото целиком на воздухе (без плашки и скруглений),
   листается вбок, точки столбиком у правого края фото;
   справа по центру экрана тонкое название, серая цена, строка
   «металл», прямоугольная чёрная кнопка, ниже ссылки-вкладки
   «описание / детали / в комплекте / доставка». Внизу «дополнить образ».
   ===================================================================== */
.pdx { padding-top: var(--header-h); }

.pdx-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: calc(100vh - var(--header-h)); }

/* ---------- фото ---------- */
.pdx-media { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 12px; align-items: end; padding: 24px 0 24px var(--sc-gutter); }
.pdx-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.pdx-gallery::-webkit-scrollbar { display: none; }
.pdx-slide { position: relative; flex: 0 0 100%; margin: 0; height: calc(100vh - var(--header-h) - 48px); min-height: 460px; max-height: 900px; scroll-snap-align: start; cursor: zoom-in; }
.pdx-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdx-slide--empty { cursor: default; background: var(--sc-paper-2); }

.pdx-thumbs { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 8px; }
.pdx-thumb { flex: none; width: 24px; height: 12px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.pdx-thumb::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sc-ink); opacity: .2; transition: opacity 200ms ease; }
.pdx-thumb.is-active::before { opacity: 1; }

/* ---------- колонка покупки ---------- */
.pdx-info { min-width: 0; padding: 40px var(--sc-gutter) 40px clamp(32px, 5vw, 96px); }
.pdx-sticky { max-width: 464px; }

.pdx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pdx-title { margin: 0; font-family: var(--sc-font-text); font-weight: 300; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.pdx-fav { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -4px -6px 0 0; padding: 0; border: 0; background: none; color: var(--sc-ink); cursor: pointer; }
.pdx-fav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; transition: fill 200ms ease; }
.pdx-fav[aria-pressed="true"] svg { fill: currentColor; }

.pdx-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 12px 0 0; transition: opacity 200ms ease; }
.pdx-price b { font-size: 18px; font-weight: 300; color: var(--sc-ink-3); font-variant-numeric: tabular-nums; }
.pdx-price span { font-size: 12px; color: var(--sc-ink-3); }
.pdx-price[hidden] { display: none; }
.pdx-price.is-switching { opacity: .4; }

.pdx-opt { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; }
.pdx-opt-k { color: var(--sc-ink); }
.pdx-metal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pdx-metal button { padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--sc-ink-3); font-size: 14px; text-transform: lowercase; white-space: nowrap; cursor: pointer; transition: color 200ms ease, border-color 200ms ease; }
.pdx-metal button[aria-pressed="true"] { color: var(--sc-ink); border-bottom-color: var(--sc-ink); }
@media (hover: hover) and (pointer: fine) { .pdx-metal button:hover { color: var(--sc-ink); } }

.pdx-stock { margin: 12px 0 0; font-size: 13px; color: var(--sc-ink-2); }
.pdx-buy { display: grid; gap: 8px; margin-top: 44px; }
.pdx-buy .sc-btn { width: 100%; min-height: 36px; border-radius: 0; font-size: 13px; letter-spacing: .01em; text-transform: none; }
.pdx-msg { margin: 0; font-size: 12px; color: var(--sc-ink-3); }
.pdx-msg:empty { display: none; }

/* вкладки — просто слова в строку, выбранная подчёркнута */
.pdx-tabs { margin-top: 44px; }
.pdx-tablist { position: relative; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pdx-tablist [role="tab"] { padding: 2px 0 3px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--sc-ink); font-size: 14px; text-transform: lowercase; white-space: nowrap; cursor: pointer; transition: border-color 200ms ease; }
.pdx-tablist [role="tab"][aria-selected="true"] { border-bottom-color: var(--sc-ink); }
@media (hover: hover) and (pointer: fine) { .pdx-tablist [role="tab"]:hover { border-bottom-color: var(--sc-line); } .pdx-tablist [role="tab"][aria-selected="true"]:hover { border-bottom-color: var(--sc-ink); } }
.pdx-tabline { display: none; }
.pdx-pane { padding-top: 18px; animation: pdx-pane 260ms var(--sc-ease-out); }
.pdx-pane[hidden] { display: none; }
@keyframes pdx-pane { from { opacity: 0; } }
.pdx-pane .sc-text { margin: 0; white-space: pre-line; max-width: 62ch; font-size: 13px; line-height: 1.55; }

.pdx-facts { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 12px; }
.pdx-facts dt { color: var(--sc-ink-3); }
.pdx-facts dd { margin: 0; overflow-wrap: anywhere; }
.pdx-facts .is-swap { transition: opacity 200ms ease, filter 200ms ease; }
.pdx-facts.is-switching .is-swap { opacity: 0.4; filter: blur(2px); }

.pdx-kit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 0; padding: 0; list-style: none; }
.pdx-kit-list b { display: block; font-weight: 400; font-size: 13px; text-transform: lowercase; }
.pdx-kit-list span { display: block; margin-top: 4px; color: var(--sc-ink-2); font-size: 12px; line-height: 1.45; }
.pdx-activate { display: inline-block; margin-top: 18px; }

/* ---------- увеличение ---------- */
.pdx-lb { position: fixed; inset: 0; z-index: 120; background: var(--sc-paper-hi); }
.pdx-lb[hidden] { display: none; }
.pdx-lb img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.pdx-lb-close, .pdx-lb-arrow { position: absolute; z-index: 2; padding: 12px 16px; border: 0; background: none; font-family: var(--sc-font-mono); font-size: 12px; cursor: pointer; }
.pdx-lb-close { top: 12px; right: 12px; }
.pdx-lb-arrow { top: 50%; transform: translateY(-50%); }
.pdx-lb-arrow--prev { left: 8px; }
.pdx-lb-arrow--next { right: 8px; }

/* ---------- дополнить образ ---------- */
.pdx-related { padding: 72px var(--sc-gutter) 0; }
.pdx-related[hidden] { display: none; }
.pdx-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 32px; }
.pdx-related-head h2 { margin: 0; font-family: var(--sc-font-text); font-weight: 500; font-size: 20px; text-transform: lowercase; }

.pdx-empty { padding: 120px var(--sc-gutter); }
.pdx-empty .sc-display { font-size: 44px; margin: 0 0 16px; }

/* ---------- телефон и планшет ---------- */
@media (max-width: 989px) {
  .pdx-main { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pdx-media { display: block; padding: 8px 0 0; }
  .pdx-slide { height: auto; min-height: 0; aspect-ratio: 1 / 1.1; cursor: default; }
  .pdx-thumbs { flex-direction: row; justify-content: center; padding: 10px 0 0; }
  .pdx-thumb { width: 16px; }
  .pdx-info { padding: 28px var(--sc-gutter) 0; }
  .pdx-sticky { max-width: 560px; }
  .pdx-buy, .pdx-tabs { margin-top: 32px; }
  .pdx-tablist { gap: 6px 12px; }
  .pdx-tablist [role="tab"] { font-size: 13px; }
  .pdx-related { padding-top: 64px; }
}
@media (max-width: 360px) {
  .pdx-kit-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .pdx-facts .is-swap, .pdx-tabline { transition-duration: 0ms; }
  .pdx-pane { animation: none; }
}
