/* =====================================================================
   KAIJU — КАРТОЧКА ТОВАРА по образцу NO/FAITH STUDIOS.
   Сетка 12 колонок: фото — левые 6 (столбиком, каждое во всю высоту
   экрана, без обрезки), справа липкая колонка — информация на 3 колонки
   и номера фото. Два шрифта: плотный гротеск капсом (заголовки, кнопки)
   и машинописный моно (всё остальное). Чёрное на белом, линии 60 %.
   ===================================================================== */
.pdx {
  --fg: #000;
  --paper: #fff;
  --rule: rgba(0, 0, 0, 0.6);
  --s: 16px;
  --s2: 32px;
  --crumb-h: 41px;
  --uni: "Inter Tight", "Univers Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier New", Courier, "Cousine", ui-monospace, monospace;
  padding-top: var(--header-h);
  background: var(--paper);
  color: var(--fg);
  font-family: var(--uni);
  font-size: 12px;
  line-height: 16px;
}
html[data-theme="dark"] .pdx { --fg: var(--ink); --paper: var(--bg); --rule: color-mix(in srgb, var(--ink) 45%, transparent); }

/* шапка на этой странице не прячется: под ней липкая строка крошек */
body[data-page="product"] .site-header.is-hidden { transform: none; }
html.pdx-lock { overflow: hidden; }

.pdx :where(a) { color: inherit; }
.pdx :where(button) { color: inherit; font: inherit; }
.pdx-uni { font-family: var(--uni); font-size: 12px; font-weight: 600; line-height: 14px; letter-spacing: 0.02em; text-transform: uppercase; }
.pdx-mono { font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 14px; letter-spacing: 0.02em; text-transform: uppercase; }
.pdx :where(a, .pdx-link) { text-decoration-thickness: 0.75px; text-underline-offset: 2px; text-decoration-color: var(--rule); }

/* ---------- крошки ---------- */
.pdx-crumb {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--s2);
  height: var(--crumb-h);
  padding: 0 var(--s);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--paper);
}
.pdx-crumb::-webkit-scrollbar { display: none; }
.pdx-crumb > * { white-space: nowrap; }
.pdx-crumb a { text-decoration: none; }
.pdx-crumb a:hover, .pdx-crumb-current { text-decoration: underline; }

/* ---------- сетка ---------- */
.pdx-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s);
  padding: 0 var(--s);
  align-items: start;
}
.pdx-gallery-wrap { grid-column: span 6; min-width: 0; position: relative; }
.pdx-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding-inline: calc((100% - var(--s) * 11) / 24 - var(--s));
}
.pdx-slide {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 326 / 456.4;
  max-width: calc((100svh - var(--header-h) - var(--crumb-h)) * 326 / 456.4);
  scroll-margin-top: calc(var(--header-h) + var(--crumb-h));
  background: var(--paper);
  cursor: zoom-in;
}
.pdx-slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.pdx-slide--empty { display: grid; place-items: center; background: var(--bg-soft); cursor: default; }
.pdx-slide--empty span { font-family: var(--mono); color: var(--muted-2); }
.pdx-garrow, .pdx-nums-m { display: none; }

.pdx-side {
  grid-column: 7 / -1;
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + var(--crumb-h));
  height: calc(100vh - var(--header-h) - var(--crumb-h));
  display: flex;
  overflow-y: auto;
  scrollbar-width: none;
}
.pdx-side::-webkit-scrollbar { display: none; }
.pdx-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s); width: 100%; margin-block: auto; }
.pdx-info { grid-column: span 3; min-width: 0; display: flex; flex-direction: column; gap: var(--s2); padding-bottom: var(--s); }

.pdx-titlerow { display: flex; gap: var(--s2); align-items: flex-start; }
.pdx-title { flex: 1; min-width: 0; margin: 0; }
.pdx-price { flex: none; min-width: 94px; margin: 0; text-align: right; white-space: nowrap; }
.pdx-price s { display: block; font-weight: 500; opacity: 0.5; }

.pdx-group { display: flex; flex-direction: column; gap: var(--s); }
.pdx-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s);
  width: 100%;
  padding: var(--s) 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  cursor: pointer;
  text-align: left;
}
.pdx-chev { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1; transition: transform 0.2s; }
.pdx-model { margin: 0; text-transform: none; }
.pdx-link { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-transform: none; }

.pdx-buy { display: flex; flex-direction: column; gap: 8px; }
.pdx-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 12px var(--s);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pdx-add:hover:not(:disabled) { background: var(--fg); color: var(--paper); }
.pdx-add:disabled, .pdx-add.is-soldout { cursor: default; text-transform: none; opacity: 0.6; }
.pdx-msg { margin: 0; text-transform: none; }
.pdx-msg:empty { display: none; }
.pdx-secure { margin: calc(-1 * var(--s)) 0 0; max-width: 340px; text-transform: none; }

.pdx-acc { display: flex; flex-direction: column; }
.pdx-acc-item { border-bottom: 1px solid var(--rule); }
.pdx-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s);
  width: 100%;
  padding: var(--s) 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.pdx-acc-head[aria-expanded="true"] .pdx-chev { transform: rotate(180deg); }
.pdx-acc-panel { display: none; padding: 0 0 var(--s); text-transform: none; }
.pdx-acc-panel.is-open { display: block; }
.pdx-acc-panel p { margin: 0 0 var(--s); }
.pdx-acc-panel p:last-child { margin-bottom: 0; }
.pdx-acc-panel b { font-weight: 700; }
.pdx-shipnote { margin: 0; max-width: 340px; text-transform: none; }
.pdx-shipnote + .pdx-shipnote { margin-top: calc(-1 * var(--s)); opacity: 0.6; }

.pdx-sizetable, .pdx-specs { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pdx-sizetable th, .pdx-sizetable td, .pdx-specs th, .pdx-specs td {
  padding: var(--s) 8px var(--s) 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: inherit;
  overflow-wrap: break-word;
}
.pdx-sizetable th { width: 72px; }
.pdx-specs { margin-bottom: var(--s); }
.pdx-specs th { width: 50%; opacity: 0.6; }

.pdx-numbers { grid-column: 4 / span 1; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding-bottom: var(--s); }
.pdx-num, .pdx-num-m, .pdx-lb-num { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; }
.pdx-num.is-active, .pdx-num-m.is-active, .pdx-lb-num.is-active { text-decoration: underline; text-decoration-thickness: 0.75px; text-underline-offset: 2px; }

/* ---------- кнопки по углам ---------- */
.pdx-zoom, .pdx-related-btn {
  position: fixed;
  bottom: var(--s);
  z-index: 40;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s, visibility 0.2s;
}
.pdx-zoom { left: var(--s); }
.pdx-related-btn { right: var(--s); }
.pdx-zoom.is-done, .pdx-related-btn.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.pdx-related-btn[hidden] { display: none; }

/* ---------- панель выбора размера ---------- */
.pdx-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.pdx-overlay.is-open { opacity: 1; visibility: visible; }
.pdx-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  width: max(320px, 25vw);
  height: 100vh;
  height: 100dvh;
  padding: 0 var(--s) calc(var(--s) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.3s;
}
.pdx-panel.is-open { transform: none; }
.pdx-panel-head { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--s) + env(safe-area-inset-top, 0px)) 0 var(--s); }
.pdx-panel-close { display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.pdx-panel-list { display: flex; flex-direction: column; margin-top: 38px; border-top: 1px solid var(--rule); }
.pdx-size {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s2);
  width: 100%;
  padding: var(--s) 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  cursor: pointer;
  text-align: left;
}
.pdx-size .pdx-mono { text-transform: none; }
.pdx-size:hover .pdx-size-name, .pdx-size.is-selected .pdx-size-name { text-decoration: underline; text-decoration-thickness: 0.75px; text-underline-offset: 2px; }
.pdx-size.is-soldout { opacity: 0.4; pointer-events: none; }
.pdx-sizes-note { margin: 0; padding: var(--s2) 0 0; }
.pdx-panel-extra .pdx-sg { margin-top: var(--s); }

/* ---------- увеличение ---------- */
.pdx-lb { position: fixed; inset: 0; z-index: 1200; background: var(--paper); color: var(--fg); }
.pdx-lb[hidden] { display: none; }
.pdx-lb-stage { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.pdx-lb-stage::-webkit-scrollbar { display: none; }
.pdx-lb-slide { height: 100%; scroll-snap-align: start; }
.pdx-lb-stage img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.pdx-lb-title, .pdx-lb-close, .pdx-lb-nums { position: absolute; z-index: 2; margin: 0; }
.pdx-lb-title { top: var(--s); left: var(--s); max-width: 40vw; pointer-events: none; }
.pdx-lb-close { bottom: var(--s); left: var(--s); padding: 0; border: 0; background: none; cursor: pointer; }
.pdx-lb-nums { top: var(--s); bottom: var(--s); right: var(--s); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.pdx-lb-arrow { display: none; }

/* ---------- сопутствующие ---------- */
.pdx-related { padding: 96px 0 64px; }
.pdx-related[hidden] { display: none; }
.pdx-related-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pdx-rail {
  display: flex;
  gap: var(--s);
  padding: 0 var(--s);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--s);
  scrollbar-width: none;
}
.pdx-rail::-webkit-scrollbar { display: none; }
.pdx-card { flex: 0 0 calc((100% - var(--s) * 3) / 4.3); min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start; }
.pdx-card-media { position: relative; display: block; aspect-ratio: 326 / 456.4; max-width: 100%; margin-bottom: var(--s); background: var(--paper); }
.pdx-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pdx-card-tag { position: absolute; top: 0; right: 0; opacity: 0.6; }
.pdx-card-plus { position: absolute; right: 0; bottom: 0; font-family: var(--mono); font-size: 16px; line-height: 1; }
.pdx-card-name { text-decoration: none; }
.pdx-card-name:hover { text-decoration: underline; }
.pdx-card-price { text-transform: uppercase; }

.pdx .cat2-empty { max-width: 360px; margin: 0 auto; padding: 120px 16px; text-align: center; font-family: var(--mono); }
.pdx .cat2-empty p { margin: 0 0 8px; }
.pdx .cat2-empty .sbtn { margin-top: 16px; }

html[data-theme="dark"] .pdx :is(.pdx-slide, .pdx-card-media, .pdx-lb-slide) img { filter: brightness(0.93) contrast(1.02); }

/* ---------- телефон и планшет ---------- */
@media (max-width: 989px) {
  .pdx-crumb { display: none; }
  .pdx-main { display: block; padding: 0; }
  .pdx-gallery {
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding-inline: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pdx-gallery::-webkit-scrollbar { display: none; }
  .pdx-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    height: calc(100svh - var(--header-h) - 137px);
    min-height: 240px;
    scroll-snap-align: start;
    scroll-margin-top: 0;
  }
  .pdx-garrow {
    display: inline-flex;
    position: absolute;
    top: calc((100svh - var(--header-h) - 137px) / 2);
    transform: translateY(-50%);
    z-index: 2;
    padding: var(--s);
    border: 0;
    background: none;
    color: #fff;
    mix-blend-mode: difference;
    cursor: pointer;
  }
  .pdx-garrow--prev { left: 0; }
  .pdx-garrow--next { right: 0; }
  .pdx-nums-m { display: flex; gap: var(--s); padding: var(--s) var(--s) var(--s2); overflow-x: auto; scrollbar-width: none; }
  .pdx-nums-m::-webkit-scrollbar { display: none; }
  .pdx-num-m { flex: none; white-space: nowrap; }
  .pdx-side { position: static; height: auto; display: block; overflow: visible; padding: 0 var(--s); }
  .pdx-cols { display: block; margin-block: 0; }
  .pdx-numbers { display: none; }
  .pdx-info { gap: var(--s); padding-bottom: 0; }
  .pdx-buy {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: var(--s) calc(-1 * var(--s)) 0;
    padding: var(--s) var(--s) calc(var(--s) + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
  }
  .pdx-secure { margin-top: calc(-1 * var(--s)); }
  .pdx-acc { margin-top: var(--s); }
  .pdx-shipnote + .pdx-shipnote { margin-top: 0; }
  .pdx-zoom, .pdx-related-btn { display: none; }
  .pdx-panel { width: 100%; }

  .pdx-lb { display: flex; flex-direction: column; padding: 0 var(--s); }
  .pdx-lb[hidden] { display: none; }
  .pdx-lb-stage { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; overflow: hidden; scroll-snap-type: none; display: flex; flex-direction: column; }
  .pdx-lb-slide { display: none; height: auto; }
  .pdx-lb-slide.is-active { display: block; flex: 1 1 auto; min-height: 0; }
  .pdx-lb-stage img { cursor: default; }
  .pdx-lb-title { position: static; order: -1; max-width: calc(100% - 80px); padding: calc(var(--s) + env(safe-area-inset-top, 0px)) 0 var(--s); }
  .pdx-lb-close { top: calc(var(--s) + env(safe-area-inset-top, 0px)); right: var(--s); bottom: auto; left: auto; }
  .pdx-lb-nums { position: static; flex-direction: row; justify-content: flex-start; align-items: center; gap: var(--s); padding: var(--s) 0 calc(var(--s) + env(safe-area-inset-bottom, 0px)); overflow-x: auto; scrollbar-width: none; }
  .pdx-lb-arrow { display: inline-flex; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; padding: var(--s); border: 0; background: none; color: var(--fg); cursor: pointer; line-height: 0; }
  .pdx-lb-arrow--prev { left: 0; }
  .pdx-lb-arrow--next { right: 0; }

  .pdx-related { padding: 64px 0 40px; }
  .pdx-card { flex-basis: calc((100% - var(--s)) / 2.3); }
}
.pdx-size:focus-visible { outline: none; }
.pdx-size:focus-visible .pdx-size-name { text-decoration: underline; text-decoration-thickness: 0.75px; text-underline-offset: 2px; }
.pdx-lb-close:focus-visible, .pdx-zoom:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 2px; }
