/* Карточка товара — современный вид (.pd2) */
.pd2 {
  --pd2-primary: #7c0a02;
  --pd2-primary-soft: rgba(124, 10, 2, .07);
  --pd2-ink: #1d1d1f;
  --pd2-muted: #6e6e73;
  --pd2-line: #e8e6e3;
  --pd2-bg: #f7f5f2;
  --pd2-radius: 16px;
}

/* ---------- Галерея ---------- */
.pd2-top .product-gallery {
  border-radius: var(--pd2-radius);
  overflow: hidden;
  background: var(--pd2-bg);
}
.pd2-top .product-gallery img { object-fit: cover; }
.pd2-top .product-gallery .swiper-button-next,
.pd2-top .product-gallery .swiper-button-prev {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  color: var(--pd2-ink);
}
.pd2-top .product-gallery .swiper-button-next:after,
.pd2-top .product-gallery .swiper-button-prev:after { font-size: 16px; font-weight: 700; }
.pd2-top .product-gallery-thumbs { margin-top: 12px; }
.pd2-top .product-gallery-thumbs .swiper-slide {
  border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; opacity: .65;
  transition: opacity .2s, border-color .2s;
}
.pd2-top .product-gallery-thumbs .swiper-slide img { object-fit: cover; }
.pd2-top .product-gallery-thumbs .swiper-slide-thumb-active,
.pd2-top .product-gallery-thumbs .swiper-slide:hover { opacity: 1; border-color: var(--pd2-primary); }

/* ---------- Блок покупки ---------- */
.pd2-buy { color: var(--pd2-ink); }
@media (min-width: 992px) {
  .pd2-top .col-lg-6:last-child { padding-left: 2rem; }
}

.pd2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pd2-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--pd2-bg); color: var(--pd2-ink);
  font-size: 13px; font-weight: 500; line-height: 1.2;
  text-decoration: none; border: 1px solid var(--pd2-line);
}
a.pd2-chip:hover { border-color: var(--pd2-primary); color: var(--pd2-primary); }
.pd2-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pd2-chip--ok { color: #1f7a3a; background: #eef7f0; border-color: #d6ecdc; }
.pd2-chip--video svg { fill: currentColor; stroke: none; }

.pd2-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pd2-price__value { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pd2-price__unit { color: var(--pd2-muted); font-size: 16px; }

.pd2-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--pd2-bg); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 22px;
  font-size: 14px; line-height: 1.5; color: #3a3a3c;
}
.pd2-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--pd2-muted); stroke-width: 2; stroke-linecap: round; }

/* Варианты: плашки вместо выпадающих списков */
.pd2-options .form-label { font-size: 14px; font-weight: 600; color: var(--pd2-ink); margin-bottom: 8px !important; }
.pd2-options .mb-2 { margin-bottom: 18px !important; }
.pd2-options .form-select {
  border-radius: 12px; min-height: 48px; border-color: var(--pd2-line);
  font-size: 15px;
}
.pd2-options.pd2-js .form-select {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; min-height: 0;
}
.pd2-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pd2-pill {
  appearance: none; border: 1.5px solid var(--pd2-line); background: #fff;
  color: var(--pd2-ink); border-radius: 12px;
  padding: 10px 16px; font-size: 15px; font-weight: 500; line-height: 1.2;
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.pd2-pill:hover { border-color: #c9c4bd; }
.pd2-pill.is-active { border-color: var(--pd2-primary); background: var(--pd2-primary-soft); color: var(--pd2-primary); font-weight: 600; }
.pd2-pill[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* Количество и итог */
.pd2-qty { margin: 6px 0 18px; }
.pd2-qty__label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.pd2-qty__row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pd2-count { height: 52px; }
.pd2-count .form-control {
  width: 140px; height: 52px; border-radius: 12px; text-align: center;
  font-size: 17px; font-weight: 600; border-color: var(--pd2-line);
  padding: 0 40px; -moz-appearance: textfield;
}
.pd2-count .form-control::-webkit-outer-spin-button,
.pd2-count .form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd2-count .btn-dec, .pd2-count .btn-inc { padding: 0 14px !important; color: var(--pd2-ink); z-index: 2; }
.pd2-count .btn-inc { right: 0; }
.pd2-count .btn-dec { left: 0; }
.pd2-total { display: flex; flex-direction: column; line-height: 1.2; }
.pd2-total__label { font-size: 13px; color: var(--pd2-muted); }
.pd2-total__value { font-size: 20px; font-weight: 700; }

/* Кнопки */
.pd2-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.pd2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; border-radius: 12px !important;
  font-size: 16px; font-weight: 600; padding: 12px 18px;
}
.pd2-btn .icon { width: 20px; height: 20px; }
.pd2-buy .btn-primary.pd2-btn { box-shadow: 0 6px 18px rgba(124, 10, 2, .22); }
.pd2-buy .btn-primary.pd2-btn:hover { transform: translateY(-1px); }
.pd2-buy .btn-outline-primary.pd2-btn { border-width: 1.5px; }
@media (max-width: 575.98px) {
  .pd2-actions { grid-template-columns: 1fr; }
}

/* Преимущества под кнопками */
.pd2-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd2-perk {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: 14px;
  background: var(--pd2-bg); color: var(--pd2-ink); text-decoration: none;
  transition: background .15s;
}
.pd2-perk--link:hover { background: #efebe6; color: var(--pd2-ink); }
.pd2-perk__icon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.pd2-perk__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--pd2-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd2-perk__title { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.pd2-perk__text { font-size: 13px; color: var(--pd2-muted); line-height: 1.4; }
.pd2-footnote { font-size: 12px; color: var(--pd2-muted); margin-top: 10px; }
@media (max-width: 575.98px) {
  .pd2-perks { grid-template-columns: 1fr; }
}

/* ---------- Вкладки описания ---------- */
.pd2-tabs .nav-tabs {
  border: 0; gap: 6px; background: var(--pd2-bg);
  padding: 6px; border-radius: 14px; display: inline-flex;
}
.pd2-tabs .nav-tabs .nav-link {
  border: 0 !important; border-radius: 10px; color: var(--pd2-muted);
  font-weight: 600; padding: 10px 20px; background: transparent; margin: 0;
}
.pd2-tabs .nav-tabs .nav-link.active { background: #fff; color: var(--pd2-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.pd2-tabs #nav-desc > div { max-width: 820px; font-size: 16px; line-height: 1.7; color: #2c2c2e; }
.pd2-tabs #nav-desc h2 { font-size: 24px; font-weight: 700; margin: 2rem 0 .75rem; }
.pd2-tabs #nav-desc ul { padding-left: 1.2rem; }
.pd2-tabs #nav-desc li { margin-bottom: .4rem; }
.pd2-tabs #nav-desc li::marker { color: var(--pd2-primary); }
.pd2-tabs #nav-option .table { max-width: 820px; border-radius: 12px; overflow: hidden; }
.pd2-tabs #nav-option .table td { padding: 14px 16px; border-color: var(--pd2-line); }
.pd2-tabs #nav-option .table tr:nth-child(odd) td { background: var(--pd2-bg); }

/* ---------- «Почему выбирают» ---------- */
.pd2-why .card { border-radius: 20px !important; box-shadow: none !important; background: var(--pd2-bg); }
.pd2-why h4 span { border: 0 !important; }
.pd2-why__icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.pd2-why__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--pd2-primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pd2-why .badge { background: #fff !important; border-color: var(--pd2-line) !important; font-weight: 500; font-size: 13px; }

/* ---------- «Как сделать заказ» ---------- */
.pd2-how { background: var(--pd2-bg) !important; }
.pd2-how h3 { font-size: 28px !important; }
.pd2-how .col > hr { display: none; }
.pd2-how .col {
  background: #fff; border-radius: 18px; padding: 24px;
  margin-bottom: 12px; position: relative;
}
@media (min-width: 992px) {
  .pd2-how .row-cols-lg-3 { gap: 0; }
  .pd2-how .row-cols-lg-3 > .col { flex: 0 0 calc(33.333% - 16px); margin-right: 24px; }
  .pd2-how .row-cols-lg-3 > .col:last-child { margin-right: 0; }
}
.pd2-how .col > .fw-bold.fs-4 {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pd2-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px !important; margin-bottom: 16px;
}
.pd2-how .col > .fs-5 { font-size: 18px !important; }
.pd2-how .col > div:last-child { color: var(--pd2-muted); font-size: 15px; line-height: 1.6; }
