.product-hero {
  order: 1;
  width: 100%;
  background: var(--bg-bone);
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-family: Inter, Roboto, "Segoe UI", system-ui, sans-serif;
}

.product-hero__inner {
  width: min(100% - (var(--grid-margin) * 2), var(--content-max-width));
  margin-inline: auto;
}

.product-hero__section {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gutter);
  align-items: flex-start;
}

.product-hero__card {
  width: 100%;
  padding: var(--grid-gutter);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.product-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gutter);
}

.product-hero__gallery {
  display: grid;
  width: 100%;
  gap: 0.75rem;
}

.product-hero__media-row {
  display: flex;
  width: 100%;
  gap: 0.75rem;
}

.product-hero__thumbs {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.5rem;
}

.product-hero__thumb {
  width: 3rem;
  height: 3rem;
  padding: 0.125rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  cursor: pointer;
}

.product-hero__thumb.is-active {
  border: 2px solid var(--color-primary);
}

.product-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-hero__image {
  display: flex;
  width: 100%;
  height: clamp(16rem, 28vw, 20rem);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-hero__summary {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.product-hero__title {
  margin-bottom: 1rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.product-hero__price {
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.product-hero__specs {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.product-hero__specs h3 {
  margin-bottom: 0.5rem;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-hero__specs ul {
  display: grid;
  gap: 0.375rem;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-hero__details-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--color-primary);
  font-size: 0.75rem;
}

.product-hero__details {
  display: grid;
  width: 100%;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.product-hero__details-card {
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.product-hero__details-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  cursor: pointer;
  background: var(--bg-muted);
}

.product-hero__details-card h3 {
  display: flex;
  align-items: center;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 600;
}

.product-hero__details-card svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.product-hero__details-card summary span {
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 500;
}

.product-hero__details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.5rem;
  padding: 1rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.75rem;
}

.product-hero__details-grid div {
  padding-block: 0.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.product-hero__details-grid span {
  color: #374151;
  font-weight: 600;
}

.product-hero__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.75rem;
}

.product-hero__downloads a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.product-hero__pdf-icon {
  color: #ef4444;
}

.product-hero__book-icon {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .product-hero__content {
    flex-direction: row;
  }

  .product-hero__gallery,
  .product-hero__summary {
    width: 50%;
  }

  .product-hero__details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-hero__details-list {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #f3f4f6;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-hero__details-list p {
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.product-hero__details-list span {
  color: #374151;
  font-weight: 600;
}

.product-hero__purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.product-hero__purchase .product-hero__price {
  margin-bottom: 0;
}

.product-hero__buy-box {
  display: inline-flex;
  padding: 0.25rem;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
}

.product-hero__buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.625rem 1rem;
  color: var(--text-inverse);
  background: var(--color-primary);
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
}

.product-hero__info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.product-hero__docs {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.product-hero__docs h3 {
  margin-bottom: 0.5rem;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-hero__docs-list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.product-hero__docs-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 7rem;
  padding: 0.5rem 0.625rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.product-hero__docs-list i {
  width: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .product-hero__info-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .product-hero__docs {
    margin-top: 0.5rem;
    min-width: 8rem;
  }
}

@media (max-width: 480px) {
  .product-hero__thumbs {
    justify-content: center;
  }
}

.product-hero__docs--media,
.product-hero__docs--desktop {
  display: none;
}

.product-hero__docs--mobile {
  display: block;
}

@media (min-width: 768px) {
  .product-hero__docs--mobile {
    display: none;
  }

  .product-hero__docs--media {
    display: block;
  }
}

@media (min-width: 1024px) {
  .product-hero__docs--media {
    display: none;
  }

  .product-hero__docs--desktop {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .product-hero__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .product-hero__gallery {
    display: contents;
  }

  .product-hero__media-row {
    grid-column: 1;
  }

  .product-hero__gallery,
  .product-hero__summary {
    width: 100%;
  }

  .product-hero__summary {
    grid-column: 2;
    grid-row: 1;
  }

  .product-hero__info-grid {
    grid-template-columns: 1fr;
  }

  .product-hero__docs--media {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0;
    min-width: 0;
  }

  .product-hero__docs--media .product-hero__docs-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-hero__docs--media .product-hero__docs-list a {
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .product-hero__content {
    display: flex;
  }

  .product-hero__gallery {
    display: grid;
  }
}
