.product-page main {
  margin-top: 4.5rem;
}

.product-breadcrumbs {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.product-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--blue);
}

.product-breadcrumbs a {
  text-decoration: none;
}

.product-breadcrumbs a:hover {
  color: var(--blue);
}

.product-detail-hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  border-bottom: 2px solid var(--blue);
}

.product-detail-grid {
  display: grid;
  gap: 2.5rem;
}

.product-detail-grid > :first-child {
  min-width: 0;
}

.product-category {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-category::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: currentColor;
}

.product-detail-hero h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(3.5rem, 11vw, 8rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-transform: uppercase;
  text-wrap: balance;
}

.product-detail-hero h1.product-title--long-word {
  font-size: clamp(2.6rem, 10.5vw, 6.5rem);
}

.product-subtitle {
  max-width: 44rem;
  margin: 1.75rem 0 0;
  color: #9aa4ad;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
}

.molecule-card {
  position: relative;
  width: min(100%, 34rem);
  margin: 2rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(30, 200, 245, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 200, 245, 0.045) 1px, transparent 1px),
    var(--panel);
  background-size: 1.5rem 1.5rem;
}

.molecule-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 36%, rgba(30, 200, 245, 0.08) 49%, transparent 62%);
  transform: translateX(-110%);
}

.molecule-card figcaption,
.molecule-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.molecule-card figcaption {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.molecule-card figcaption strong {
  color: var(--blue);
}

.molecule-graphic {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.25rem 1rem;
  color: #8b99a4;
}

.molecule-graphic .chem-bond,
.molecule-graphic .chem-carbonyl,
.molecule-graphic .chem-double,
.molecule-graphic .chem-sidechain,
.molecule-graphic .chem-liquid {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.molecule-graphic .chem-coordinate {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-dasharray: 4 7;
}

.molecule-graphic .chem-sidechain {
  stroke-dasharray: 3 5;
  opacity: 0.78;
}

.molecule-graphic .chem-double {
  opacity: 0.62;
}

.molecule-graphic .chem-liquid {
  stroke: var(--blue);
  opacity: 0.85;
}

.molecule-graphic .chem-label,
.molecule-graphic .chem-center text {
  fill: currentColor;
  font-size: 0.85rem;
  font-weight: 950;
  paint-order: stroke fill;
  stroke: var(--panel);
  stroke-width: 5px;
  stroke-linejoin: round;
  text-anchor: middle;
}

.molecule-graphic .chem-label.compact {
  font-size: 0.7rem;
}

.molecule-graphic .chem-label.accent {
  fill: var(--blue);
}

.molecule-graphic .chem-caption {
  fill: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-anchor: middle;
  text-transform: uppercase;
}

.molecule-graphic .chem-center circle,
.molecule-graphic .chem-subunit {
  fill: var(--panel);
  stroke: var(--blue);
  stroke-width: 2;
}

.molecule-graphic .chem-center text {
  fill: var(--blue);
  font-size: 1rem;
}

.molecule-meta {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.molecule-meta small {
  max-width: 25ch;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: right;
  text-transform: none;
}

html[data-theme="light"] .molecule-card {
  background:
    linear-gradient(rgba(10, 132, 171, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 132, 171, 0.055) 1px, transparent 1px),
    #f7f9fb;
  background-size: 1.5rem 1.5rem;
}

html[data-theme="light"] .molecule-graphic {
  color: #51616e;
}

html[data-theme="light"] .molecule-graphic .chem-center circle,
html[data-theme="light"] .molecule-graphic .chem-subunit {
  fill: #f7f9fb;
}

html[data-theme="light"] .product-subtitle {
  color: #53606b;
}

.product-buy-panel {
  align-self: start;
  padding: 1.5rem;
  border-top: 4px solid var(--blue);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.product-buy-panel .amount-label {
  display: block;
  color: var(--blue-dark);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-buy-panel .detail-price {
  display: block;
  margin: 0.65rem 0 1.2rem;
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.product-buy-panel .detail-price.unlisted {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.product-buy-panel .product-actions {
  margin-top: 0;
}

.product-buy-note {
  margin: 1rem 0 0;
  color: #5f6a74;
  font-size: 0.76rem;
}

.product-research {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.research-layout {
  display: grid;
  gap: 3rem;
}

.research-intro h2,
.related-products h2 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
}

.research-intro > p:last-child {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  color: #99a3ac;
  font-size: 1rem;
}

html[data-theme="light"] .research-intro > p:last-child {
  color: #53606b;
}

.research-snapshot {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.snapshot-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.snapshot-heading .eyebrow {
  margin-bottom: 0.4rem;
}

.snapshot-heading h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.snapshot-heading > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.snapshot-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.snapshot-facts div {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.snapshot-facts div:last-child {
  border-right: 0;
}

.snapshot-facts dt,
.focus-panel span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.snapshot-facts dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.focus-panel {
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(30, 200, 245, 0.055);
}

.focus-panel strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.research-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1.25rem;
}

.map-step {
  position: relative;
  min-width: 0;
  padding-right: 1.35rem;
}

.map-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.42rem;
  right: 0.3rem;
  width: 0.75rem;
  height: 1px;
  background: var(--blue);
}

.map-step span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 950;
}

.map-step strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
}

.map-note {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.research-scope {
  margin-top: 3rem;
  padding: 1.5rem;
  border-left: 4px solid var(--blue);
  background: var(--panel);
}

.research-scope h3 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research-scope p {
  max-width: 54rem;
  margin: 0;
  color: #98a2ab;
}

html[data-theme="light"] .research-scope p {
  color: #53606b;
}

.related-products {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  min-height: 19rem;
  padding: 1.5rem;
  background: var(--paper);
  color: var(--ink);
}

.related-card:nth-child(even) {
  background: var(--ice);
}

.related-card a {
  flex: 1;
  text-decoration: none;
}

.related-card .amount-label {
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-card h3 {
  margin: 0.8rem 0;
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.related-card p {
  margin: 0;
  color: #596571;
  font-size: 0.9rem;
}

.related-card .related-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #c3ced6;
}

.related-card .related-price {
  font-weight: 950;
}

.related-add {
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #071018;
  border-radius: 0.15rem;
  background: #071018;
  color: #fff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.related-add.added {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.back-to-catalog {
  display: inline-block;
  margin-top: 2rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (min-width: 820px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.65fr);
    align-items: center;
  }

  .product-detail-hero h1 {
    font-size: clamp(4rem, 7vw, 8rem);
  }

  .product-detail-hero h1.product-title--long {
    font-size: clamp(3.75rem, 6.25vw, 6.75rem);
  }

  .product-detail-hero h1.product-title--long-word {
    font-size: clamp(3rem, 6vw, 6.5rem);
  }

  .research-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.75fr);
    align-items: start;
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .product-page .site-nav a {
    font-size: 2.15rem;
  }

  .molecule-card {
    margin-top: 1.5rem;
  }

  .molecule-meta {
    display: block;
  }

  .molecule-meta small {
    display: block;
    margin-top: 0.35rem;
    text-align: left;
  }

  .snapshot-facts {
    grid-template-columns: 1fr;
  }

  .snapshot-facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .snapshot-facts div:last-child {
    border-bottom: 0;
  }

  .research-map {
    gap: 0.8rem;
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .map-step {
    padding-right: 0.8rem;
  }

  .map-step:not(:last-child)::after {
    right: 0.08rem;
    width: 0.5rem;
  }

  .map-step strong {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .molecule-card::after {
    animation: molecule-scan 8s ease-in-out infinite;
  }

  .chem-coordinate {
    animation: molecule-dash 10s linear infinite;
  }

  .related-card {
    transition: transform 220ms ease, box-shadow 220ms ease;
  }

  .related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.14);
  }
}

@keyframes molecule-scan {
  0%, 35% { transform: translateX(-110%); }
  65%, 100% { transform: translateX(110%); }
}

@keyframes molecule-dash {
  to { stroke-dashoffset: -44; }
}
