/* ====================================================================
   PRODUCT DETAIL PAGE — Dark Gaming Design
   ==================================================================== */

.gk-pdp {
  background: var(--bg, #050508);
  min-height: 100vh;
  color: rgba(255,255,255,0.85);
}

/* ---------- HERO ---------- */
.pdp-hero {
  position: relative;
  padding: 28px 0 32px;
  /* атмосфера как на лендинге: оранжевое свечение сверху */
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,85,12,0.15), transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(255,255,255,0.02), transparent 60%);
}
/* HUD-сетка («кубики») как на лендинге */
.pdp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 92%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 92%);
}
.pdp-hero > .container { position: relative; z-index: 1; }

.pdp-backbar {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 12px;
}
.pdp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--muted, rgba(255,255,255,0.72));
  font-family: var(--font-mono, 'Montserrat', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s ease;
}
.pdp-back-icon {
  color: var(--orange, #ff550c);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s ease;
}
.pdp-back-link:hover,
.pdp-back-link:focus-visible {
  color: var(--orange, #ff550c);
}
.pdp-back-link:hover .pdp-back-icon,
.pdp-back-link:focus-visible .pdp-back-icon {
  transform: translateX(-3px);
}
.pdp-back-link:focus-visible {
  outline: 2px solid var(--orange, #ff550c);
  outline-offset: 4px;
}

.pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 420px);
  gap: 36px;
  align-items: start;
}

/* ---------- PHOTO STAGE ---------- */
.photo-stage {
  position: relative;
  /* прозрачная сцена: атмосфера .pdp-hero (свечение + сетка) проходит насквозь — без «коробки» */
  background: radial-gradient(ellipse 70% 60% at 50% 46%, rgba(255,255,255,0.05), transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 54px 32px 40px;
}
.photo-stage::before { display: none; } /* своя сетка убрана — сетку даёт .pdp-hero */

.photo-corner {
  position: absolute;
  top: 18px;
  font-family: var(--font-mono, 'Montserrat', system-ui, sans-serif);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.photo-corner.tl { left: 18px; color: var(--orange, #ff550c); }
.photo-corner.tr { right: 18px; color: var(--muted, rgba(255,255,255,0.4)); }
.photo-brand-logo {
  display: block;
  width: 79px;
  height: auto;
}
.photo-series { white-space: nowrap; }

.photo-main {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 0;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}
.gk-pdp .photo-main > .pdp-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  /* контур-свет + засвет как в каталоге (под крупное фото — рим чуть толще) */
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)) drop-shadow(0 0 2px rgba(255,255,255,0.5)) drop-shadow(0 0 20px rgba(255,255,255,0.06));
}
.gk-pdp .photo-main > .pdp-img[data-content-fit="ready"] {
  inset: auto;
  left: var(--gm-content-left);
  top: var(--gm-content-top);
  width: var(--gm-content-width);
  height: var(--gm-content-height) !important;
  max-width: none;
  object-fit: fill;
}

.photo-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  z-index: 3;
}
.thumb {
  width: 60px; height: 60px;
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  padding: 2px;
  transition: border-color 0.2s;
}
.thumb:hover, .thumb.active { border-color: var(--orange, #ff550c); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.photo-meta {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  font-family: var(--font-mono, 'Montserrat', system-ui, sans-serif);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, rgba(255,255,255,0.4));
}
.photo-meta span b { color: #fff; font-weight: 500; }

/* ---------- BUY PANEL ---------- */
.buy-panel {
  position: sticky;
  top: 88px;
  background: linear-gradient(180deg, #12121d 0%, #0a0a14 100%);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  padding: 24px 24px 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.bp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head, 'Montserrat', system-ui, sans-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--orange, #ff550c);
  color: #0a0a0a;
  margin-bottom: 20px;
}
.bp-badge.sale { background: #d9dada; }
.bp-badge .pulse {
  width: 6px; height: 6px;
  background: #0a0a0a;
  border-radius: 50%;
}

.bp-title {
  font-family: var(--font-display, 'Exo 2', 'Montserrat', sans-serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px 0;
}

/* Specs */
.bp-specs {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
}
.bp-spec {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 9px 0;
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.08));
  gap: 16px;
  align-items: baseline;
}
.bp-spec .k {
  font-family: var(--font-mono, 'Montserrat', system-ui, sans-serif);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, rgba(255,255,255,0.4));
}
.bp-spec .v {
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  line-height: 1.4;
}

/* Price */
.bp-divider {
  height: 1px;
  background: var(--line, rgba(255,255,255,0.08));
  margin: 16px 0 14px;
}
.bp-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.bp-price {
  font-family: var(--font-display, 'Exo 2', 'Montserrat', sans-serif);
  font-size: 34px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}
.bp-price .rub {
  font-size: 24px;
  margin-left: 6px;
  color: rgba(255,255,255,0.65);
}
.bp-old-price {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 16px;
  color: var(--muted, rgba(255,255,255,0.4));
  text-decoration: line-through;
  margin-bottom: 4px;
}
.bp-stock {
  font-family: var(--font-mono, 'Montserrat', system-ui, sans-serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bp-stock.in { color: #34d399; }
.bp-stock.in .dot { background: #34d399; box-shadow: 0 0 8px #34d399; }
.bp-stock.back { color: #fbbf24; }
.bp-stock.back .dot { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.bp-stock.out { color: #f87171; }
.bp-stock.out .dot { background: #f87171; box-shadow: 0 0 8px #f87171; }
.bp-stock .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}

/* Cart form */
.bp-cart-form { margin-bottom: 14px; }
.bp-cta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}
.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line, rgba(255,255,255,0.08));
}
.qty button {
  width: 42px;
  font-family: var(--font-mono, monospace);
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.qty button:hover { color: var(--orange, #ff550c); }
.qty-val {
  width: 46px;
  text-align: center;
  font-family: var(--font-display, 'Exo 2', 'Montserrat', sans-serif);
  font-size: 16px;
  color: #fff;
  background: rgba(255,255,255,0.02);
  border: none;
  border-left: 1px solid var(--line, rgba(255,255,255,0.08));
  border-right: 1px solid var(--line, rgba(255,255,255,0.08));
  -moz-appearance: textfield;
}
.qty-val::-webkit-inner-spin-button,
.qty-val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.gk-btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 14px 18px;
  background: var(--orange, #ff550c);
  color: #0a0a0a;
  font-family: var(--font-head, 'Montserrat', system-ui, sans-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background 0.2s;
}
.gk-btn-cart:hover { background: #ff8533; }
.gk-btn-cart.disabled { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); cursor: not-allowed; }

/* Secondary */
.bp-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}
.bp-link {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head, 'Montserrat', system-ui, sans-serif);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.bp-link:hover, .bp-link.active { border-color: var(--orange, #ff550c); color: var(--orange, #ff550c); }
.bp-link svg { width: 14px; height: 14px; }

/* Advantages */
.bp-advs {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
}
.bp-adv {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.bp-adv-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255,85,12,0.08);
  border: 1px solid rgba(255,85,12,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange, #ff550c);
}
.bp-adv-icon svg { width: 18px; height: 18px; }
.bp-adv .h {
  display: block;
  font-family: var(--font-head, 'Montserrat', system-ui, sans-serif);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.bp-adv .d { color: var(--muted, rgba(255,255,255,0.4)); font-size: 12px; }

/* ---------- DESCRIPTION ---------- */
.pdp-desc {
  padding: 60px 0;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
}
.pdp-desc-content {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}
.pdp-short-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}

/* ---------- RELATED ---------- */
.related {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  gap: 30px;
  flex-wrap: wrap;
}
.related-head .tag { margin-bottom: 18px; }
.related-head h2 {
  font-family: var(--font-display, 'Exo 2', 'Montserrat', sans-serif);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.related-head h2 .accent { color: var(--orange, #ff550c); }
.see-all {
  font-family: var(--font-head, 'Montserrat', system-ui, sans-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange, #ff550c);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.see-all:hover { opacity: 0.7; }

.related-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: #fff;
  font: 600 17px/1 var(--font-mono);
  cursor: pointer;
  transition: border-color .15s, color .15s, opacity .15s;
}
.related-arrow:hover { border-color: var(--orange); color: var(--orange); }
.related-arrow:disabled { opacity: .28; cursor: default; }

.related-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.related-grid::-webkit-scrollbar { display: none; }

/* Related product cards — reuse catalog card styles if loaded, else minimal */
.related-grid .gk-product {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0d0d16 0%, #0a0a12 100%);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: border-color 0.2s, transform 0.2s;
  scroll-snap-align: start;
}
.related-grid .gk-product:hover {
  border-color: var(--orange, #ff550c);
  transform: translateY(-4px);
}
.related-grid .gk-img-wrap {
  position: relative;
  aspect-ratio: 2/1;
  overflow: hidden;
  background: #080810;
}
.related-grid .gk-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.related-grid .gk-product:hover .gk-img-wrap img { transform: scale(1.05); }
.related-grid .gk-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  z-index: 2;
}
.related-grid .badge-pro { background: var(--orange, #ff550c); color: #0a0a0a; }
.related-grid .badge-hit { background: #fbbf24; color: #0a0a0a; }
.related-grid .badge-sale { background: transparent; color: var(--orange, #ff550c); }

.gk-product-body { padding: 14px 16px 18px; }
.gk-product-name {
  font-family: var(--font-head, 'Montserrat', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.3;
  min-height: 36.4px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.gk-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11px;
  color: var(--muted, rgba(255,255,255,0.4));
  margin-bottom: 12px;
}
.gk-product-meta .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--orange, #ff550c);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.gk-product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gk-product-price {
  font-family: var(--font-display, 'Exo 2', 'Montserrat', sans-serif);
  font-size: 16px;
  color: #fff;
}
.gk-product-price s {
  font-size: 12px;
  color: var(--muted, rgba(255,255,255,0.4));
  margin-right: 6px;
}
.gk-btn-cart-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--orange, #ff550c);
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

/* ---------- WC OVERRIDES ---------- */
.gk-pdp .woocommerce-breadcrumb,
.gk-pdp .woocommerce-product-rating,
.gk-pdp .product_meta,
.gk-pdp .woocommerce-tabs,
.gk-pdp .up-sells,
.gk-pdp .related.products,
.gk-pdp .storefront-breadcrumb,
.gk-pdp .ast-woocommerce-container > .product > .summary,
.gk-pdp .ast-woocommerce-container > .product > .woocommerce-product-gallery,
.gk-pdp .ast-woocommerce-container > .product > .price,
.gk-pdp form.cart:not(.bp-cart-form) {
  display: none !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .buy-panel { position: static; }
  .related-grid { grid-auto-columns: calc((100% - 18px) / 2); }
}
@media (max-width: 768px) {
  .pdp-hero { padding: 16px 0 28px; }
  .pdp-backbar { margin-bottom: 6px; }
  .photo-stage { min-height: 220px; padding: 36px 16px 28px; }
  .photo-main { min-height: 0; }
  .buy-panel { padding: 20px 16px 18px; }
  .bp-spec { grid-template-columns: 110px minmax(0, 1fr); }
  .bp-price { font-size: 32px; }
  .related-grid { grid-auto-columns: 86vw; }
  .related-head { align-items: flex-start; margin-bottom: 30px; }
  .related-actions { width: 100%; }
  .see-all { margin-left: auto; }
  .bp-secondary { grid-template-columns: 1fr; }
  .bp-cta-row { grid-template-columns: 1fr; }
  .qty { justify-content: center; }
}

/* ==================================================================
   B1-A enhancements
   ================================================================== */

/* Размерные линии на превью */
.photo-stage.has-dims { padding-top: 72px; padding-left: 64px; }
.dim { position: absolute; z-index: 3; pointer-events: none; }
.dim span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: var(--orange); background: var(--bg-1); padding: 0 6px; }
.dim-top { top: 42px; left: 64px; right: 24px; height: 1px; background: rgba(255,85,12,.4); }
.dim-top span { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); }
.dim-left { top: 72px; bottom: 80px; left: 30px; width: 1px; background: rgba(255,85,12,.4); }
.dim-left span { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; }

/* Бейджи */
.bp-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.bp-badge { margin-bottom: 0; }
.bp-badge.sale { background: var(--orange); color: #0a0a0a; }

/* REF + копировать */
.bp-ref { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); margin: -6px 0 14px; display: flex; align-items: center; gap: 12px; }
.bp-ref b { color: #fff; font-weight: 600; }
.bp-copy { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid var(--line-2); padding: 4px 10px; cursor: pointer; transition: all .15s; }
.bp-copy:hover, .bp-copy.done { color: var(--orange); border-color: var(--orange); }

/* Exact-data size and thickness selectors */
.bp-variants { display: grid; gap: 12px; margin-top: 14px; }
.bp-option-group { min-width: 0; }
.bp-option-label {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.bp-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bp-option-grid--thickness { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bp-option {
  display: flex;
  min-width: 0;
  min-height: 48px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line-2);
  background: #08080e;
  color: #fff;
  text-decoration: none;
  transition: border-color .15s, background .15s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.bp-option:hover { border-color: rgba(255,85,12,.58); }
.bp-option.active { border-color: var(--orange); background: #050508; }
.bp-option .s { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 13px; color: currentColor; }
.bp-option.active .s { color: var(--orange); }
.bp-option .p { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* Цена inline old/скидка */
.bp-old-price { display: inline-block; margin: 0 0 0 10px; vertical-align: middle; }
.bp-disc { display: inline-block; margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--orange); border: 1px solid rgba(255,85,12,.5); padding: 2px 6px; vertical-align: middle; }
.bp-stock { margin-bottom: 12px; }

/* Wishlist active */
.bp-link.gm-wish.active svg { fill: var(--orange); stroke: var(--orange); }
.bp-link.gm-compare.active { border-color: var(--orange); color: var(--orange); }

/* Описание + характеристики */
.pdp-info { padding: 40px 0; border-top: 1px solid var(--line); }
.pdp-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pdp-info-grid.is-spec-only { grid-template-columns: 1fr; }
.pdp-info .tag { margin-bottom: 16px; }
.pdp-collapse { position: relative; }
.pdp-collapse-inner { max-height: 200px; overflow: hidden; transition: max-height .35s ease; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.72); }
.pdp-collapse.open .pdp-collapse-inner { max-height: 6000px; }
.pdp-collapse:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 36px; height: 72px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.pdp-short-desc { font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 14px; }
.pdp-more { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); background: transparent; border: none; cursor: pointer; padding: 0; }
.pdp-collapse.open .pdp-more { display: none; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.spec-table th { width: 52%; font-weight: 400; color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.spec-table td { color: #fff; }
.spec-table .dash { color: var(--dim); }
.pdp-specs-full { background: transparent; border: 0; box-shadow: none; }
.pdp-rich-content {
  min-width: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: anywhere;
}
.pdp-short-desc + .pdp-rich-content { margin-top: 20px; }
.pdp-rich-content ul {
  list-style: disc outside;
  padding-left: 20px;
  margin: 0 0 20px;
}
.pdp-rich-content li {
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .pdp-info-grid { grid-template-columns: 1fr; gap: 36px; }
  .photo-stage.has-dims { padding-left: 40px; }
  .dim-left { left: 18px; }
  .dim-top { left: 40px; }
  .photo-meta { display: none; }   /* // материал / size — убираем на планшете+мобильном (съезжает); инфо есть в панели */
}
@media (max-width: 768px) {
  .bp-option-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .bp-option-grid::-webkit-scrollbar { display: none; }
  .bp-option { flex: 0 0 auto; min-width: 108px; scroll-snap-align: start; }
  .spec-table th { width: 56%; }
  .photo-stage.has-dims { min-height: 220px; padding-top: 52px; }
}

/* ==================================================================
   B1-A — мобильный гибрид (M1 sticky CTA + M2 свайп-галерея)
   ================================================================== */

/* По умолчанию (десктоп) — скрыто */
.photo-swipe, .photo-dots { display: none; }
.pdp-sticky-bar { display: none; }

@media (max-width: 768px) {
  /* Свайп-галерея вместо главного фото + миниатюр */
  .photo-main, .photo-thumbs, .photo-meta { display: none; }

  .photo-swipe {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    z-index: 2;
    border-radius: 6px;
  }
  .photo-swipe::-webkit-scrollbar { display: none; }
  .ps-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    aspect-ratio: 2 / 1;
    scroll-snap-align: center;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .gk-pdp .ps-slide > img {
    position: absolute; inset: 0; display: block;
    width: 100%; height: 100%; max-width: none; max-height: none;
    object-fit: contain; object-position: center; border-radius: 6px;
    filter: drop-shadow(0 22px 36px rgba(0,0,0,.6)) drop-shadow(0 0 1.8px rgba(255,255,255,.5)) drop-shadow(0 0 16px rgba(255,255,255,.06));
  }
  .gk-pdp .ps-slide > img[data-content-fit="ready"] {
    inset: auto;
    left: var(--gm-content-left);
    top: var(--gm-content-top);
    width: var(--gm-content-width);
    height: var(--gm-content-height) !important;
    max-width: none;
    object-fit: fill;
  }
  .photo-dots {
    display: flex; justify-content: center; gap: 7px;
    margin-top: 16px; position: relative; z-index: 3;
  }
  .pd-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.22); border: none; padding: 0; cursor: pointer;
    transition: background .2s, transform .2s;
  }
  .pd-dot.active { background: var(--orange, #ff550c); transform: scale(1.3); }

  /* Липкий нижний бар покупки (.show добавляет JS) */
  .pdp-sticky-bar.show {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    align-items: center; gap: 14px;
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
    background: rgba(10,10,18,.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line, rgba(255,255,255,.1));
  }
  .psb-price {
    flex: 1;
    font-family: var(--font-display, 'Exo 2', 'Montserrat', sans-serif);
    font-size: 22px; color: #fff; line-height: 1; white-space: nowrap;
  }
  .psb-price .rub { font-size: 15px; color: rgba(255,255,255,.6); margin-left: 3px; }
  .psb-old {
    display: block; font-family: var(--font-mono, monospace);
    font-size: 11px; color: var(--muted, rgba(255,255,255,.4));
    text-decoration: line-through; margin-top: 2px;
  }
  .psb-cart {
    flex: 0 0 auto;
    width: 54px; height: 54px; border-radius: 50%; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--orange, #ff550c); color: #0a0a0a;
    border: none; cursor: pointer;
    box-shadow: 0 6px 22px rgba(255,85,12,.5);
    transition: transform .15s;
  }
  .psb-cart:active { transform: scale(.94); }
  .psb-cart svg { width: 22px; height: 22px; }

  /* Чтобы липкий бар не перекрывал низ контента */
  .gk-pdp { padding-bottom: 76px; }
}
