/* Prototype v0.5B — AFS product detail reference page */

.product-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
}

.product-brand { display: block; line-height: 0; }
.product-brand img { display: block; width: auto; height: 58px; max-width: 220px; object-fit: contain; }
.back-link { font-weight: 700; text-decoration: none; }

.product-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.product-visual {
  min-height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.product-visual img { width: min(46%, 240px); height: 400px; object-fit: contain; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.product-summary h1, .content-section h2, .awc-product-journey h2 { margin: 8px 0 12px; }
.scientific { font-size: 1.2rem; }
.lead { font-size: 1.08rem; line-height: 1.7; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.facts div { padding: 14px; border: 1px solid #ddd; border-radius: 12px; }
.facts dt { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 5px 0 0; }
.regulatory { font-weight: 800; }

.content-section, .awc-product-journey {
  max-width: 1050px;
  margin: 0 auto;
  padding: 56px 24px;
}
.content-section > p, .awc-product-journey > p { line-height: 1.75; }

.topic-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.topic-grid article { padding: 22px; border: 1px solid #ddd; border-radius: 14px; }
.topic-grid h3 { margin-top: 0; }
.topic-grid p { margin-bottom: 0; line-height: 1.65; }

.advisory {
  margin-top: 28px;
  padding: 22px;
  border: 2px solid currentColor;
  border-radius: 14px;
}
.advisory p { margin-bottom: 0; line-height: 1.7; }

.awc-product-journey {
  max-width: none;
  padding-left: max(24px, calc((100% - 1002px) / 2));
  padding-right: max(24px, calc((100% - 1002px) / 2));
  background: #142b3a;
  color: #fff;
}
.coming-soon { font-weight: 800; }

.marketplace-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.marketplace-link,
.marketplace-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-width: 220px;
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 800;
}

.marketplace-link {
  border: 1px solid rgba(20, 43, 58, 0.14);
  background: #ffffff;
  color: #142b3a;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(20, 43, 58, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.marketplace-link::after {
  content: "→";
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.marketplace-link:hover {
  transform: translateY(-3px);
  border-color: currentColor;
  box-shadow: 0 16px 32px rgba(20, 43, 58, 0.14);
}

.marketplace-link:hover::after { transform: translateX(4px); }
.marketplace-link:active { transform: translateY(-1px); }

.marketplace-disabled {
  border: 1px solid #aaa;
  opacity: .72;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .marketplace-actions { flex-direction: column; }
  .marketplace-link,
  .marketplace-disabled {
    width: 100%;
    min-width: 0;
  }
}

.product-footer {
  padding: 30px 24px;
  text-align: center;
  border-top: 1px solid #ddd;
}
.product-footer p { margin: 5px 0; }

@media (max-width: 760px) {
  .product-header { align-items: flex-start; flex-direction: column; }
  .product-brand img { height: 54px; max-width: 210px; }
  .product-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; }
  .product-visual { min-height: 310px; gap: 8px; }
  .product-visual img { width: calc(50% - 4px); height: 290px; }
  .facts, .topic-grid { grid-template-columns: 1fr; }
}

/* v0.5B.1 — enforce AWC product-journey contrast */

.awc-product-journey,
.awc-product-journey h2,
.awc-product-journey p {
  color: #fff;
}

.awc-product-journey .eyebrow {
  color: #fff;
}

.awc-product-journey .coming-soon {
  color: #fff;
  font-weight: 800;
}
