/* ─── PRODUCT HERO ─── */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 32px 0 48px;
}

.product-gallery__main {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-light);
  aspect-ratio: 4/3;
}

.product-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-md);
  border: 2px solid var(--clr-gray-light);
  overflow: hidden;
  padding: 0;
  background: var(--clr-white);
  cursor: pointer;
  transition: border-color var(--transition);
  flex-shrink: 0;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-gallery__thumb:hover {
  border-color: var(--clr-gray);
}

.product-gallery__thumb--active {
  border-color: var(--clr-accent);
}

/* Product hero right column */
.product-hero__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-hero__title {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.product-hero__short-desc {
  font-size: var(--fs-body);
  color: var(--clr-gray-dark);
  line-height: 1.65;
}

/* Attributes table */
.product-hero__attrs {
  width: 100%;
  border-collapse: collapse;
}

.product-hero__attrs tr {
  border-bottom: 1px solid var(--clr-gray-light);
}

.product-hero__attr-row--even {
  background: var(--clr-gray-faint);
}

.product-hero__attr-label {
  font-size: var(--fs-lead);
  font-weight: 600;
  color: var(--clr-graphite);
  padding: 13px 16px;
  width: 50%;
  text-align: left;
  vertical-align: middle;
}

.product-hero__attr-value {
  font-size: var(--fs-lead);
  color: var(--clr-gray-dark);
  padding: 13px 16px;
  text-align: right;
  vertical-align: middle;
}

/* Price block */
.product-hero__price-block {
  background: var(--clr-graphite);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-hero__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-hero__price {
  font-size: var(--fs-price-hero);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.product-hero__note {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0;
}

/* ACF price table */
.product-hero__price-table {
  width: 100%;
  border-collapse: collapse;
}

.product-hero__price-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-hero__price-table tr:last-child {
  border-bottom: none;
}

.product-hero__pt-period {
  font-size: var(--fs-lead);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 0;
  width: 50%;
}

.product-hero__pt-price {
  font-size: var(--fs-lead);
  font-weight: 700;
  color: var(--clr-white);
  padding: 12px 0;
  text-align: right;
}

/* Advantages */
.product-hero__advantages {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-hero__advantage {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-graphite);
}

.product-hero__adv-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.product-hero__adv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  flex-shrink: 0;
}

/* ─── PRODUCT DETAILS (specs + description) ─── */
.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0 48px;
}

.product-specs-wrap__title {
  margin-bottom: 20px;
}

.product-specs-table,
.product-specs-wysiwyg table {
  width: 100%;
  border-collapse: collapse;
}

.product-specs-table tr,
.product-specs-wysiwyg table tr {
  border-bottom: 1px solid var(--clr-gray-light);
}

.product-specs-wysiwyg table tr:nth-child(even) {
  background: var(--clr-gray-faint);
}

.product-spec-row--even {
  background: var(--clr-gray-faint);
}

.product-spec-label,
.product-specs-wysiwyg table th,
.product-specs-wysiwyg table td:first-child {
  font-size: var(--fs-lead);
  font-weight: 600;
  color: var(--clr-graphite);
  padding: 14px 16px;
  width: 55%;
  text-align: left;
  vertical-align: middle;
}

.product-spec-value,
.product-specs-wysiwyg table td:last-child {
  font-size: var(--fs-lead);
  color: var(--clr-gray-dark);
  padding: 14px 16px;
  text-align: right;
  vertical-align: middle;
}

.product-specs-wysiwyg table thead th {
  background: var(--clr-graphite);
  color: var(--clr-white);
  font-weight: 700;
  border-bottom: none;
}

.product-description {
  color: var(--clr-gray-dark);
  line-height: 1.75;
  font-size: var(--fs-lead);
}

/* ─── Responsive iframe (YouTube, карты и т.д.) ─── */
.product-description iframe,
.product-specs-wysiwyg iframe {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.product-description h2,
.product-description h3 {
  color: var(--clr-graphite);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}

.product-description p {
  margin-bottom: 16px;
}

.product-description p:last-child {
  margin-bottom: 0;
}

.product-description ul,
.product-description ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.product-description li {
  margin-bottom: 6px;
}

/* ─── RELATED PRODUCTS ─── */
.related-products {
  max-width: 1440px;
  margin: 0 auto;
}

.related-products__title {
  font-weight: 800;
  color: var(--clr-graphite);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.related-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ─── SINGLE PRODUCT RESPONSIVE ─── */
@media (max-width: 1100px) {
  .related-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-details {
    gap: 32px;
  }

  .product-hero {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .related-products__grid {
    grid-template-columns: 1fr;
  }

  .product-details {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0 36px;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 0 36px;
  }

  .product-hero__price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .product-hero__price-row .btn {
    width: 100%;
    justify-content: center;
  }
}
