/* Product detail — support surfaces (e.g. Optima Prone) */

.prd-page {
  background: var(--color-white);
}

.prd-breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem 1rem 0;
  font-size: 0.875rem;
  color: rgba(32, 52, 68, 0.65);
}

.prd-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.prd-breadcrumb a:hover {
  text-decoration: underline;
}

.prd-breadcrumb span {
  color: var(--color-text);
  font-weight: 600;
}

.prd-hero {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.prd-hero__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

.prd-hero__meta {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: rgba(32, 52, 68, 0.72);
}

/* Product detail pages no longer use top banners */
.prd-hero__banner {
  display: none;
}

/* Gallery — carousel matches source assets (1920×1280, 3:2) */
.prd-hero .spi-product-carousel {
  width: 100%;
  max-width: min(100%, 56rem);
}

/* Slides are position:absolute/inset:0 — viewport must keep a real height (do not use min-height:unset; it collapses the area). */
.prd-hero .spi-product-carousel__viewport {
  position: relative;
  width: 100%;
  min-height: min(52vw, 22rem);
  max-height: none;
  aspect-ratio: 3 / 2;
}

.prd-hero .spi-product-carousel__track {
  position: relative;
  min-height: min(52vw, 22rem);
  max-height: none;
  height: 100%;
}

.prd-page--optima-turn .prd-hero .spi-product-carousel__viewport,
.prd-page--optima-turn .prd-hero .spi-product-carousel__track {
  aspect-ratio: 800 / 533;
}

.prd-hero .spi-product-carousel__slide {
  padding: 0.65rem 0.85rem 2.65rem;
}

.prd-hero .spi-product-carousel__slide img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.prd-section {
  padding: 2rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.prd-section__inner {
  max-width: 52rem;
  margin: 0 auto;
}

.prd-section__inner--wide {
  max-width: var(--container-max);
}

/* Clinical evidence block reuses .spi-section from solution PI stylesheet */
.prd-page .spi-section {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.prd-section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--color-primary);
}

.prd-lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.prd-prose {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(32, 52, 68, 0.92);
}

.prd-prose:last-child {
  margin-bottom: 0;
}

.prd-prose ul,
.prd-prose ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.prd-prose li + li {
  margin-top: 0.4rem;
}

.prd-prose strong {
  font-weight: 600;
  color: var(--color-text);
}

/* Feature grid */
.prd-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .prd-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
  }
}

.prd-feature {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem;
  background: var(--color-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.65rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.prd-feature__index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nav-accent-on-light, var(--color-primary));
}

.prd-feature__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.prd-feature__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(32, 52, 68, 0.88);
}

.prd-feature__media {
  margin: 0;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #f4f8fa;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prd-feature__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Specs table */
.prd-spec-table-wrap {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.prd-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prd-spec-table th,
.prd-spec-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

.prd-spec-table th {
  width: 42%;
  font-weight: 600;
  color: var(--color-text);
  background: rgba(15, 23, 42, 0.03);
}

.prd-spec-table td {
  color: rgba(32, 52, 68, 0.9);
}

.prd-spec-table tr:last-child th,
.prd-spec-table tr:last-child td {
  border-bottom: 0;
}

/* FAQ */
.prd-faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.prd-faq-item {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-white);
}

.prd-faq-item summary {
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.prd-faq-item summary::-webkit-details-marker {
  display: none;
}

.prd-faq-item summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.prd-faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

.prd-faq-item__body {
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(32, 52, 68, 0.88);
}

/* Related */
.prd-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .prd-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.prd-related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.prd-related-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.prd-related-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.prd-related-card__media {
  margin: 0;
  background: #f4f8fa;
  display: block;
  overflow: hidden;
}

.prd-related-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.prd-related-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.prd-related-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.prd-related-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(32, 52, 68, 0.78);
}

/* Product video (YouTube link + thumbnail) */
.prd-video-card {
  max-width: 48rem;
  margin: 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.prd-video-card__link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: #0f172a;
}

.prd-video-card__thumb {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.96;
  transition: opacity 0.2s ease;
}

.prd-video-card__link:hover .prd-video-card__thumb,
.prd-video-card__link:focus-visible .prd-video-card__thumb {
  opacity: 1;
}

.prd-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.prd-video-card__play-icon {
  width: clamp(3rem, 10vw, 4.25rem);
  height: clamp(3rem, 10vw, 4.25rem);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

.prd-video-card__body {
  padding: 1rem 1.15rem 1.2rem;
}

.prd-video-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.prd-video-card__desc {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(32, 52, 68, 0.82);
}

@media (max-width: 767.98px) {
  .prd-hero .spi-product-carousel__btn {
    display: none;
  }
}
