/* ==========================================================================
   Miro Biotech — product detail page styles
   --------------------------------------------------------------------------
   Add-on stylesheet. Load it AFTER assets/css/style.css. It only adds new
   classes (all prefixed or clearly namespaced) and does not override the
   existing catalogue styles except where noted with "extend".
   ========================================================================== */

/* ---------- layout helpers ---------- */
.wrap--narrow { max-width: 820px; }
.section--tight { padding: 40px 0; }
.split--even { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
}
.panel h3 { margin-bottom: .5rem; font-size: 1.06rem; }
.panel p { color: var(--muted); font-size: .92rem; }
.panel--soft { background: #fbfaf7; }
.panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-bottom: .9rem;
}
.panel__foot {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .82rem !important;
  color: var(--muted);
}
.panel__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
}
.panel__link svg { transition: transform .15s ease; }
.panel__link:hover svg { transform: translateX(3px); }

/* ---------- page head (extend) ---------- */
.page-head--product { padding-bottom: 34px; }
.page-head--product .breadcrumb { margin-bottom: 0; }
.page-head--product .breadcrumb span[aria-current],
.page-head--product .breadcrumb > span:last-child { color: rgba(255, 255, 255, .95); }

/* ---------- buy box ---------- */
.product__media { position: relative; }
.product__purity-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(12, 28, 31, .82);
  color: var(--teal-bright);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product__media-note {
  padding: 10px 14px 12px;
  font-size: .74rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}
.product__info h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

.product__purity-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .84rem;
  font-weight: 600;
  color: #0a6b61;
  margin: -.2rem 0 .9rem;
}
.product__purity-line .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .22);
}
.product__purity-line .sep {
  width: 1px; height: 12px;
  background: var(--line);
  margin: 0 .15rem;
}

.product__lede { color: var(--muted); font-size: .97rem; margin-bottom: 1.1rem; }

.product__aliases {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.4rem;
}
.product__aliases > span:first-child {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: .3rem;
}

.field__hint {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-size: .78rem;
  margin-left: .35rem;
}

/* variant rows on the detail page carry an extra sub-line */
.product .variant__label { display: flex; flex-direction: column; gap: 1px; }

/* quantity + price bar */
.buybar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfaf7;
}
.qty--lg button { width: 38px; height: 38px; font-size: 1.15rem; }
.qty--lg span { min-width: 40px; font-size: .95rem; }
.buybar__price { text-align: right; }
.buybar__price b {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.2;
}
.buybar__price small { font-size: .76rem; color: var(--muted); }

/* trust bullets under the buy button */
.trust-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .65rem;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .86rem;
  color: var(--ink-2);
}
.trust-list__icon { color: var(--teal); flex: 0 0 auto; display: inline-flex; margin-top: 1px; }

/* ---------- specifications ---------- */
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tick-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .89rem;
  color: var(--muted);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .55;
}
.spec-table a { font-weight: 600; }

/* ---------- research applications ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}
.app-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-bottom: .7rem;
}
.app-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.app-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- ordering steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  font-size: .92rem;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}
.steps li b { color: var(--ink); }

/* ---------- disclaimer ---------- */
.disclaimer {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0;
}
.disclaimer strong { color: var(--ink); }

/* ---------- cards used as links (related products) ---------- */
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { text-decoration: none; }

/* ---------- FAQ (extend existing .faq) ---------- */
.faq:last-of-type summary { }
.faq + .faq { border-top: 0; }

/* ---------- modal additions (richer modal) ---------- */
.modal__alias {
  font-size: .82rem;
  color: var(--muted);
  margin: -.1rem 0 .9rem;
}
.modal__specs {
  margin: .2rem 0 1.2rem;
  border-top: 1px solid var(--line);
}
.modal__specs table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.modal__specs th, .modal__specs td {
  text-align: left;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.modal__specs th { color: var(--muted); font-weight: 600; width: 44%; }
.modal__specs td { color: var(--ink); font-weight: 500; }
.modal__specs tr:last-child th, .modal__specs tr:last-child td { border-bottom: 0; }
.modal__unit { font-size: .78rem; color: var(--muted); font-weight: 500; }
.modal__full {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
}
.modal__perks {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: .4rem;
}
.modal__perks li {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .82rem;
  color: var(--ink-2);
}
.modal__perks svg { color: var(--teal); flex: 0 0 auto; margin-top: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .product { grid-template-columns: 1fr; gap: 30px; }
  /* keep the media box as the positioning context for the purity badge */
  .product__media { position: relative; }
  .product__media img { max-height: 440px; object-fit: contain; }
  .split, .split--even { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .buybar { flex-direction: column; align-items: stretch; }
  .buybar__price { text-align: left; }
  .panel { padding: 20px 18px; }
  .section--tight { padding: 28px 0; }
  .steps li { padding-left: 40px; }
}

/* ---------- chemical structure / sequence block ---------- */
.spec-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 .35rem;
}
.spec-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  line-height: 1.55;
  word-break: break-all;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0 0 1.3rem;
  color: var(--ink-2);
}
.spec-sub { color: var(--muted); font-weight: 500; }

/* ---------- listing cards: keep the price on one line ---------- */
.card__foot .card__price { font-size: .93rem; }
.card__foot .card__price small { white-space: nowrap; }

/* ---------- logo mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}

/* ---------- rating line in the buy box ---------- */
.product__rating {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: -.2rem 0 1rem;
  font-size: .84rem;
  color: var(--muted);
  text-decoration: none;
}
.product__rating:hover { text-decoration: none; color: var(--ink); }
.product__rating b { color: var(--ink); font-size: .88rem; }
.product__stars { display: inline-flex; color: #d69a2d; gap: 1px; }

/* ---------- reviews ---------- */
.rating-summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .7rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.rating-summary__score {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1;
}
.rating-summary__stars { display: inline-flex; color: #d69a2d; gap: 1px; }
.rating-summary__count { font-size: .78rem; color: var(--muted); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.review__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .7rem;
}
.review__avatar {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-soft);
  color: #0a6b61;
  font-weight: 700;
  font-size: .9rem;
}
.review__who { flex: 1; min-width: 0; }
.review__who b { display: block; font-size: .88rem; color: var(--ink); line-height: 1.25; }
.review__who small { display: block; font-size: .74rem; color: var(--muted); margin-top: 1px; }
.review__date { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.review__stars { display: inline-flex; color: #d69a2d; gap: 1px; margin-bottom: .5rem; }
.review h3 {
  font-size: .95rem;
  margin: 0 0 .4rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.review p {
  font-size: .86rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 560px) {
  .review { padding: 18px 18px 16px; }
  .review__date { display: none; }
}
