/* БлагоГрад — карточка товара 2026 */

.bg-product-page {
  padding-top: calc(var(--bg-header-h) + 24px);
  padding-bottom: 0;
  background: #fff;
}

.bg-product-page .bg-catalog-breadcrumbs {
  margin-bottom: 32px;
}

/* Top block */
.bg-product-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 64px;
}

/* Gallery */
.bg-product-gallery-wrap {
  position: relative;
}

.bg-product-gallery-main.swiper {
  width: 100%;
}

.bg-product-gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f4f1;
  aspect-ratio: 4/3;
}

.bg-product-gallery-main .swiper-wrapper,
.bg-product-gallery-main .swiper-slide {
  height: 100%;
  min-height: 100%;
}

.bg-product-gallery-main a {
  display: block;
  width: 100%;
  height: 100%;
}

.bg-product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-product-gallery-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.bg-product-gallery-zoom img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.bg-product-thumbs-wrap {
  position: relative;
  margin-top: 16px;
  padding: 0 36px;
}

.bg-product-thumbs {
  overflow: hidden;
}

.bg-product-thumbs .swiper-slide {
  width: 88px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.bg-product-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--bg-production-btn, var(--bg-accent));
}

.bg-product-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-product-thumbs-prev,
.bg-product-thumbs-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid #e0ddd6;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-product-thumbs-prev {
  left: 0;
}

.bg-product-thumbs-next {
  right: 0;
}

.bg-product-thumbs-prev::after,
.bg-product-thumbs-next::after {
  content: "";
  width: 8px;
  height: 8px;
  border: solid #666;
  border-width: 0 1.5px 1.5px 0;
  display: block;
}

.bg-product-thumbs-prev::after {
  transform: rotate(135deg);
  margin-left: 3px;
}

.bg-product-thumbs-next::after {
  transform: rotate(-45deg);
  margin-right: 3px;
}

/* Info */
.bg-product-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.bg-product-info__tags a,
.bg-product-info__tags span {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--bg-muted);
  background: var(--bg-beige-light);
  border-radius: 999px;
  text-decoration: none;
}

.bg-product-info__tags a:hover {
  color: var(--bg-beige-hover);
}

.bg-product-info h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bg-product-info__subtitle {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--bg-muted);
}

.bg-product-info__lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bg-muted);
  max-width: 520px;
}

.bg-product-features {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.bg-product-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 1.35;
}

.bg-product-features__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f4f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-product-features__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--bg-production-btn, var(--bg-accent));
  fill: none;
  stroke-width: 1.5;
}

.bg-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bg-product-actions .bg-btn--primary {
  background: var(--bg-production-btn, var(--bg-accent));
  min-width: 200px;
}

.bg-product-actions .bg-btn--primary:hover {
  background: var(--bg-production-btn-hover, var(--bg-accent-hover));
}

.bg-btn--outline-dark {
  background: #fff;
  color: var(--bg-text);
  border: 1px solid #d8d5ce;
  min-width: 180px;
}

.bg-btn--outline-dark:hover {
  border-color: #b5a48f;
  color: var(--bg-beige-hover);
}

/* Specs section */
.bg-product-specs {
  background: var(--bg-section);
  padding: 56px 0;
}

.bg-product-specs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.bg-product-specs h2 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
}

.bg-product-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.bg-product-spec-table tr {
  border-bottom: 1px solid var(--bg-border);
}

.bg-product-spec-table td {
  padding: 14px 0;
  vertical-align: top;
}

.bg-product-spec-table td:first-child {
  width: 48%;
  color: var(--bg-muted);
  padding-right: 16px;
}

.bg-product-spec-table td:last-child {
  color: var(--bg-text);
  font-weight: 500;
}

/* Materials */
.bg-product-materials h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
}

.bg-product-material-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
}

.bg-product-material-card__img {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f4f1;
}

.bg-product-material-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-product-material-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.bg-product-material-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bg-muted);
}

.bg-product-colors {
  margin-top: 28px;
}

.bg-product-colors h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.bg-product-colors__row {
  margin-bottom: 20px;
}

.bg-product-colors__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bg-product-colors__swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--bg-border);
  cursor: default;
}

.bg-product-colors__swatch.is-round-metal {
  border-radius: 50%;
}

/* Reliability */
.bg-product-reliability {
  padding: 64px 0;
  background: var(--bg-beige-light);
}

.bg-product-reliability__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.bg-product-reliability__photo img {
  width: 100%;
  border-radius: 16px;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.bg-product-reliability h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.bg-product-reliability p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bg-muted);
}

.bg-product-reliability__list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.bg-product-reliability__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
}

.bg-product-reliability__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-accent);
  background: center/10px 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath fill='none' stroke='%23B99272' stroke-width='1.6' d='M1 4.5 4.2 7.5 11 1.5'/%3E%3C/svg%3E");
}

/* Projects on product */
.bg-product-projects {
  padding: 64px 0;
  background: #fff;
}

.bg-product-projects h2 {
  margin: 0 0 32px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.bg-product-projects__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.bg-product-project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f4f1;
  transition: box-shadow 0.25s;
}

.bg-product-project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.bg-product-project-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.bg-product-project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.bg-product-project-card:hover .bg-product-project-card__img img {
  transform: scale(1.04);
}

.bg-product-project-card__body {
  padding: 16px;
}

.bg-product-project-card__body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
}

.bg-product-project-card__body span {
  font-size: 13px;
  color: var(--bg-muted);
}

.bg-product-project-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  min-height: 100%;
  background: var(--bg-beige-light);
  border-radius: 12px;
  text-decoration: none;
  color: var(--bg-text);
  transition: background 0.2s;
}

.bg-product-project-more:hover {
  background: var(--bg-border);
  color: var(--bg-beige-hover);
}

.bg-product-project-more__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Product page CTA */
.bg-product-cta.bg-catalog-cta {
  padding: 48px 0 64px;
  background: #fff;
}

@media (max-width: 768px) {
  .bg-product-top {
    grid-template-columns: 1fr;
  }

  .bg-product-specs__grid,
  .bg-product-reliability__grid {
    grid-template-columns: 1fr;
  }

  .bg-product-projects__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bg-product-project-more {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .bg-product-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bg-product-actions .bg-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .bg-product-projects__grid {
    grid-template-columns: 1fr;
  }

  .bg-product-thumbs-wrap {
    padding: 0 28px;
  }
}
