/* ============ product-v3.css (финал) ============ */

body { background: #F4F6FA; }

:root {
  --pv3-ink: #0F172A;
  --pv3-muted: #6B7280;
  --pv3-line: #E8EBF1;
  --pv3-soft: #ffffff;
  --pv3-blue: #005BFF;
  --pv3-blue-dark: #0049CC;
  --pv3-green: #16A34A;
  --swiper-theme-color: #005BFF;
}

.pv3 { max-width: 1600px; margin: 0 auto; padding: 20px; }

.thumb-slider-wrapper{
  max-width: 600px;
}
/* ---------- Каркас ---------- */
.pv3-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pv3-gallery, .pv3-center, .pv3-buy { width: 100%; min-width: 0; }
.pv3-buy    { order: 2; }
.pv3-center { order: 3; }

@media (min-width: 992px) {
  .pv3-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr) minmax(0, .75fr);
    gap: 16px;
    align-items: start;
  }
  .pv3-gallery, .pv3-center, .pv3-buy { position: sticky;
    top: 0px; width: auto; order: 0; }
  .pv3-sticky { position: sticky; top: 16px; }
  .pv3-buybox { position: sticky; top: 16px; }
}

/* ---------- Галерея (как в V2) ---------- */
.thumb-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.thumb-slider-wrapper .slider {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--pv3-soft);
}
.thumb-slider-wrapper .slider .swiper-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.thumb-slider-wrapper .slider .swiper-button-prev,
.thumb-slider-wrapper .slider .swiper-button-next {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 8px rgba(15, 23, 42, .15);
  color: var(--pv3-ink);
}
.thumb-slider-wrapper .slider .swiper-button-prev:after,
.thumb-slider-wrapper .slider .swiper-button-next:after {
  font-size: 14px;
  font-weight: 700;
}

.thumbs .swiper-wrapper { box-shadow: none; padding: 0; }
.thumbs .swiper-slide {
  width: 76px !important;
  height: 76px !important;
  box-sizing: border-box;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pv3-soft);
  border: 2px solid transparent;
  opacity: .7;
  cursor: pointer;
}
.thumbs .swiper-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.thumbs .swiper-slide-thumb-active {
  border-color: var(--pv3-blue);
  opacity: 1;
}

/* ---------- Центр ---------- */
.pv3-center {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
}

.pv3-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pv3 badge {
  font-size: 12px !important;
  line-height: 1.2 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.pv3-badges badge img { width: 16px !important; height: 16px !important; }
.pv3 badge.pv3-badge-warranty {
  border-radius: 16px !important;
  padding: 10px 20px !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
  text-align: left;
}
.pv3-title {
  margin: 18px 0 14px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--pv3-ink);
  word-break: break-word;
}

.pv3-compat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding-bottom: 20px;
}
.pv3-compat-label { font-size: 13px; color: var(--pv3-muted); }
.pv3-compat .prod-badge-compatibility { margin: 0 !important; }

.pv3-block {
  padding: 20px 0;
  border-top: 1px solid var(--pv3-line);
}
.pv3-h2 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--pv3-ink);
}
.pv3-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--pv3-ink);
}
.pv3-muted { color: var(--pv3-muted); font-size: 13px; }

/* характеристики с точками-заполнителями */
.pv3-specs { list-style: none; margin: 0; padding: 0; }
.pv3-spec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
}
.pv3-spec-name { color: var(--pv3-muted); white-space: nowrap; }
.pv3-spec-dots { flex: 1; border-bottom: 1px dotted #CBD2DC; transform: translateY(-3px); }
.pv3-spec-val { color: var(--pv3-ink); text-align: right; }

.pv3-pill {
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 12px;
  background: #ECFDF3;
  color: var(--pv3-green);
  border-radius: 999px;
  white-space: nowrap;
}

.pv3-promo.pv3-deal,
.pv3-block.pv3-info.pv3-deal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 18px 8px;
  min-height: 68px;
  box-sizing: border-box;
  background: var(--pv3-soft);
  border: 0;
  border-radius: 14px;
}

.pv3-promo-title,
.pv3-deal strong {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.3;
  color: var(--pv3-ink);
}
.pv3-promo-sub,
.pv3-deal .pv3-muted {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--pv3-muted);
}

.pv3-star {
  font-size: 20px;
  font-weight: 800;
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  top: 3px;
  margin-left: 2px;
}

.pv3-footnote {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--pv3-muted);
}
.pv3-footnote-star {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--pv3-green);
}
/* ---------- Buy box ---------- */
.pv3-buybox {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  overflow: visible;
}
.pv3-price { padding-bottom: 16px; }
.pv3-price .discount-sticker-wrapper { margin-top: 16px; margin-bottom: 8px; }
.pv3-price-plain {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--pv3-ink);
}

.pv3-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--pv3-soft);
  border-radius: 14px;
}
.pv3-promo-title { font-size: 14px; font-weight: bold; color: var(--pv3-ink); }
.pv3-promo-sub { margin-top: 2px; font-size: 12px; color: var(--pv3-muted); }

.pv3-stock {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--pv3-line);
  font-size: 15px;
  color: var(--pv3-ink);
}
.pv3-dot { width: 10px; height: 10px; border-radius: 50%; }
.pv3-dot-ok { background: var(--pv3-green); box-shadow: 0 0 0 4px #ECFDF3; }
.pv3-dot-no { background: #DC2626; box-shadow: 0 0 0 4px #FEF2F2; }
.pv3-stock-link {
  color: var(--pv3-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
}

.pv3-shops { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--pv3-muted); }
.pv3-shops li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--pv3-line);
}
.pv3-shops-count { color: var(--pv3-green); font-weight: 600; white-space: nowrap; }

/* корзина (селекторы под стандартный add-to-cart) */
.pv3-cart { margin-top: 16px; }
.pv3-cart * { max-width: 100%; box-sizing: border-box; }
.pv3-cart .add-to-cart,
.pv3-cart button[type="submit"] {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--pv3-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s;
}
.pv3-cart .add-to-cart:hover,
.pv3-cart button[type="submit"]:hover { background: var(--pv3-blue-dark); }
.pv3-cart .add-to-cart:disabled,
.pv3-cart button[type="submit"]:disabled { background: #C7D4E8; cursor: default; }
.pv3-cart #quantity_wanted,
.pv3-cart input[type="number"] {
  height: 48px;
  text-align: center;
}

/* ---------- Табы ---------- */
.pv3-tabs-wrap { margin-top: 8px; }
.pv3-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 16px;
  padding: 0 24px;
  list-style: none;
  background: #fff;
  border-radius: 20px;
}
.pv3-tabs-nav .nav-item a {
  display: block;
  padding: 16px 0;
  font-size: 15px;
  color: var(--pv3-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.pv3-tabs-nav .nav-item a.is-active {
  color: var(--pv3-ink);
  font-weight: 600;
  border-bottom-color: var(--pv3-blue);
}
.pv3-tabs-content {
  padding: 24px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 24px;
}




