.product-detail__tabs {
  grid-column: 1 / -1;
  margin-top: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  min-width: 0;
  max-width: 100%;
}

.product-tabs {
  margin-top: 0;
  min-width: 0;
  max-width: 100%;
}

.product-tabs__nav {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  max-width: 100%;
}

.product-tabs__nav::-webkit-scrollbar {
  display: none;
}

.product-tabs__btn {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.product-tabs__btn.is-active {
  color: var(--c-brand-dark);
  border-bottom-color: var(--c-brand);
}

.product-tabs__panels {
  padding: var(--sp-5) 0 0;
  min-width: 0;
  max-width: 100%;
}

.product-tabs__panel {
  min-width: 0;
  max-width: 100%;
}

.product-tabs__prose {
  max-width: min(36rem, 100%);
  width: 100%;
  font-family: var(--ff-base);
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--c-text-secondary);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.product-tabs__prose p {
  margin: 0 0 var(--sp-4);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

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

.product-tabs__empty {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.product-specs {
  display: grid;
  gap: var(--sp-1);
  max-width: 32rem;
  margin: 0;
}

.product-specs__row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  min-width: 0;
  padding: var(--sp-2) 0;
}

.product-specs__name {
  flex: 0 1 auto;
  max-width: 45%;
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.45;
  color: var(--c-text-muted);
}

.product-specs__leader {
  flex: 1 1 auto;
  min-width: 0.75rem;
  height: 0;
  border-bottom: 1px dotted var(--c-border-strong);
  transform: translateY(-0.35em);
}

.product-specs__value {
  flex: 0 1 auto;
  max-width: 50%;
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.45;
  color: var(--c-text);
  text-align: right;
}

.product-review {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

.product-review:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.product-review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
}

.product-review__author {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
}

.product-review__rating {
  font-size: var(--fs-sm);
  color: var(--c-warning);
}

.product-review__text {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--c-text-secondary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 479px) {
  .product-specs__name,
  .product-specs__value {
    max-width: 42%;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
    .product-tabs__nav {
      -webkit-overflow-scrolling: touch;
    }
  }
}

/* Схожі товари: home.css не підключений на PDP — локальні стилі секції */
.product-detail ~ .section {
  padding: var(--sp-8) 0;
}

.product-detail ~ .section--alt {
  background: var(--c-bg-alt);
}

.product-detail ~ .section .section__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  text-wrap: balance;
  margin: 0 0 var(--sp-6);
}

@media (max-width: 767px) {
  .product-detail ~ .section {
    padding: var(--sp-6) 0 var(--sp-8);
  }
}
