/* ══════════════════════════════════════════════════════════
   Vascular Model Library — Detail Page
   Extends tokens defined in /products/style.css (--teal-*, --red-*, etc.)
══════════════════════════════════════════════════════════ */

.vmd-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.vmd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #033030;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color var(--transition);
}

.vmd-back-link svg { width: 16px; height: 16px; }

.vmd-back-link:hover { color: var(--teal-primary); }

/* ── Grid layout ── */
.vmd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

/* ── Image panel ── */
.vmd-image-panel {
  background: linear-gradient(160deg, var(--teal-deep) 0%, #061f1f 100%);
  border-radius: var(--radius);
  border: 1px solid #033303;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 24px;
}

.vmd-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0px;
}

.vmd-image-placeholder {
  width: 96px;
  height: 96px;
  color: var(--teal-mid);
  opacity: 0.5;
}

.vmd-image-placeholder svg { width: 100%; height: 100%; }

/* ── Detail panel ── */
.vmd-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-primary);
  margin: 0 0 10px;
  position: relative;
  padding-bottom: 14px;
}

.vmd-eyebrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--teal-primary);
  border-radius: 2px;
}

.vmd-id {
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: black;
  margin: 0 0 18px;
  line-height: 1.05;
}

.vmd-description {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  color: black;
  margin: 0 0 28px;
  max-width: 56ch;
}

/* ── Metrics grid ── */
.vmd-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.vmd-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.vmd-metric:last-child { border-right: none; }

.vmd-metric-icon {
  width: 22px;
  height: 22px;
  color: var(--teal-primary);
  margin-bottom: 2px;
}

.vmd-metric-icon svg { width: 100%; height: 100%; }

.vmd-metric-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #033030;
}

.vmd-metric-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── Static feature strip ── */
.vmd-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
  background: var(--teal-deep);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}

.vmd-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.vmd-feature:last-child { border-right: none; }

.vmd-feature-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--teal-mid);
}

.vmd-feature-icon svg { width: 100%; height: 100%; }

.vmd-feature-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255,255,255,0.65);
}

.vmd-feature-text strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

/* ── Custom anatomy CTA ── */
.vmd-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 24px 28px;
}

.vmd-cta-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-primary);
}

.vmd-cta-icon svg { width: 26px; height: 26px; }

.vmd-cta-text { flex: 1; min-width: 0; }

.vmd-cta-text h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.vmd-cta-text p {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.vmd-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-deep);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

.vmd-cta-btn svg { width: 16px; height: 16px; }

.vmd-cta-btn:hover {
  background: var(--teal-primary);
  transform: translateX(2px);
}

/* ── Not found state ── */
.vmd-notfound {
  max-width: 560px;
  margin: 100px auto;
  text-align: center;
  padding: 0 24px;
}

.vmd-notfound h1 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.vmd-notfound p {
  font-family: var(--font-body);
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .vmd-grid {
    grid-template-columns: 1fr;
  }
  .vmd-image-panel {
    position: static;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  .vmd-page { padding: 24px 16px 56px; }
  .vmd-metrics { grid-template-columns: repeat(2, 1fr); }
  .vmd-metric:nth-child(2n) { border-right: none; }
  .vmd-features { grid-template-columns: 1fr; }
  .vmd-feature { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .vmd-feature:last-child { border-bottom: none; }
  .vmd-cta { flex-direction: column; align-items: flex-start; text-align: left; }
  .vmd-cta-btn { width: 100%; justify-content: center; }
}
