.breadcrumb {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.product-hero {
  padding-bottom: var(--space-xl);
}

.product-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.product-media {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img,
.product-media svg {
  max-width: 300px;
}

.product-info h1 {
  font-size: var(--fs-2xl);
  margin-bottom: 0.5rem;
}

.product-subtitle {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  margin-bottom: var(--space-md);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

.product-rating .testimonial-stars {
  margin-bottom: 0;
}

.variant-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.variant-pill {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.variant-pill:hover {
  border-color: var(--color-accent);
}

.variant-pill.is-active {
  background: var(--color-text);
  color: var(--color-text-inverse);
  border-color: var(--color-text);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: var(--space-xs);
}

.product-price {
  font-size: var(--fs-2xl);
  font-weight: 800;
}

.product-price-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-success);
  margin-bottom: var(--space-md);
}

.stock-status strong {
  font-weight: 600;
}

/* Versandhinweis dahinter bleibt neutral, damit nur der Lagerstatus grün ist */
.stock-status span.stock-shipping {
  color: var(--color-text-muted);
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

.qty-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.qty-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}

.qty-table th,
.qty-table td {
  padding: 0.85rem var(--space-sm);
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--color-border);
}

.qty-table th {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}

.qty-table tr:last-child td {
  border-bottom: none;
}

.qty-table tr.is-selected {
  background: var(--color-bg-alt);
}

.qty-table label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 600;
}

.qty-savings {
  color: var(--color-success);
  font-weight: 700;
}

.qty-total {
  font-weight: 800;
}

.product-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: var(--space-lg);
}

.product-guarantee-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.jump-nav {
  display: flex;
  gap: var(--space-md);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.jump-nav a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.jump-nav a:hover {
  color: var(--color-text);
}

.product-detail-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.product-detail-section h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-md);
}

.product-detail-section p {
  color: var(--color-text-muted);
  max-width: 720px;
  margin-bottom: var(--space-sm);
}

.spec-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
}

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

.spec-table td {
  padding: 0.75rem 0;
  font-size: var(--fs-sm);
}

.spec-table td:first-child {
  color: var(--color-text-muted);
  width: 40%;
}

.spec-table td:last-child {
  font-weight: 600;
}

@media (max-width: 900px) {
  .product-split {
    grid-template-columns: 1fr;
  }
  /* Einspaltig braucht das Bild keine mitlaufende Spalte mehr. */
  .product-media {
    position: static;
    padding: var(--space-lg);
  }
  /* Das Vial ist hochformatig (Verhaeltnis ~2.4), bei 300px Breite wurde es
     mobil ueber 700px hoch und schob die Buybox aus dem ersten Viewport.
     210px = 70 % der Desktop-Breite. */
  .product-media img,
  .product-media svg {
    max-width: 210px;
    /* Ohne height:auto behaelt das Bild die height-Attribute aus dem HTML
       und wird gestaucht statt verkleinert. */
    height: auto;
  }
}

/* ---------------------------------------------------- Forschungsteil
   Ersetzt die früheren Inline-Styles der Zwischenüberschriften. */
.detail-sub {
  font-size: var(--fs-md);
  margin: var(--space-lg) 0 0.5rem;
}

/* Forschungszweck: Aufzählung mit dezentem Punkt in Akzentfarbe. */
.research-purpose {
  list-style: none;
  max-width: 720px;
  margin: 0;
  padding: 0;
}

.research-purpose li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.research-purpose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-dark);
}

.research-purpose strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Merkmalsliste mit Haken - zweispaltig, solange Platz da ist. */
.product-highlights {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem var(--space-md);
}

.product-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.product-highlights svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.18em;
  color: var(--color-success);
}

/* Forschungsbereiche als Karten. */
.research-areas {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-sm);
}

.research-area {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.research-area h4 {
  font-size: var(--fs-base);
  margin-bottom: 0.4rem;
}

/* Überschreibt die 720px-Textbreite der Sektion innerhalb der Karte. */
.research-area p {
  max-width: none;
  margin-bottom: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .product-highlights {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------ Analysezertifikat */

.lab-badge__coa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.lab-badge__coa svg {
  width: 14px;
  height: 14px;
}

.coa-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  background: rgba(27, 25, 23, 0.72);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.coa-overlay.is-open {
  opacity: 1;
}

.coa-dialog {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: 92vh;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.coa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.coa-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  font-size: 20px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}

/* Das Zertifikat ist hochformatig - der Rahmen scrollt, statt das
   Bild unlesbar klein zu rechnen. */
.coa-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.coa-body img {
  display: block;
  width: 100%;
  height: auto;
}
