/* ============================================================
   PRODUCT DETAIL PAGE (PDP)
   Scoped with .pd- prefix so it never collides with /css/styles.css.
   Reuses tokens (--navy, --gold, etc.) and existing components
   (.spec-table, .other-products, .product-cta, .btn-*).
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.pd-breadcrumb {
  background: var(--cloud);
  padding: 0.85rem 0;
  font-size: 0.82rem;
  color: var(--slate);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.pd-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pd-breadcrumb a {
  color: var(--slate);
  transition: color 0.15s;
}
.pd-breadcrumb a:hover { color: var(--gold-dark); }
.pd-breadcrumb-sep {
  color: var(--silver);
  font-size: 0.85rem;
}
.pd-breadcrumb [aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.pd-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 40%, var(--navy-light) 100%);
  border-top: 3px solid var(--gold);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.pd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(212, 168, 67, 0.08), transparent);
  pointer-events: none;
}
.pd-hero .container { position: relative; z-index: 1; }
.pd-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Hero image */
.pd-hero-image-wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.pd-hero-image {
  background: linear-gradient(135deg, var(--white), var(--cloud));
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.pd-hero-image img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}
.pd-hero-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pd-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: var(--ice);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pd-badge-gold {
  background: rgba(212, 168, 67, 0.15);
  border-color: rgba(212, 168, 67, 0.4);
  color: var(--gold-light);
}

/* Hero info */
.pd-hero-info { color: var(--ice); }
.pd-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.pd-eyebrow-light { color: var(--gold-light); }
.pd-hero-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.8rem);
  color: var(--white);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.pd-hero-info h1 em {
  color: var(--gold-light);
  font-style: italic;
}
.pd-lede {
  font-size: 1rem;
  color: var(--ice);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 560px;
}

/* Quick specs */
.pd-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.pd-quick-spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pd-qs-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  font-weight: 600;
}
.pd-qs-value {
  font-size: 0.92rem;
  color: var(--white);
  font-weight: 500;
}

.pd-hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.pd-btn-secondary-light {
  color: var(--ice) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.pd-btn-secondary-light:hover {
  color: var(--gold-light) !important;
  border-color: var(--gold) !important;
}
.pd-rx-notice {
  font-size: 0.78rem;
  color: var(--silver);
  font-style: italic;
  max-width: 560px;
  line-height: 1.55;
}
.pd-rx-notice strong { color: var(--gold-light); font-style: normal; }

/* ---------- Generic detail sections ---------- */
.pd-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.pd-section-alt { background: var(--cloud); }
.pd-section-dark { background: var(--navy); color: var(--ice); }

.pd-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1rem;
}
.pd-section-dark h2 { color: var(--white); }
.pd-section-lede {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 760px;
}
.pd-section-dark .pd-section-lede { color: var(--ice); }
.pd-section p { color: var(--slate); line-height: 1.75; margin-bottom: 1rem; }
.pd-section-dark p { color: var(--ice); }

/* ---------- Overview + Feature card (two-column) ---------- */
.pd-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.pd-overview p { font-size: 0.98rem; }
.pd-feature-card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.pd-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold);
}
.pd-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pd-feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.55;
}
.pd-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-dark);
  font-weight: 700;
}
.pd-feature-list strong { color: var(--navy); }

/* ---------- Applications grid ---------- */
.pd-applications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.pd-app-card {
  background: var(--white);
  border: 1px solid var(--ice);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s;
}
.pd-app-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
.pd-app-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.pd-app-card p { font-size: 0.85rem; color: var(--slate); line-height: 1.55; margin: 0; }

/* ---------- Specs section ---------- */
.pd-specs-stack {
  max-width: 820px;
  margin: 0 auto;
}
.pd-specs-intro { margin-bottom: 1.75rem; }
.pd-specs-intro h2 { color: var(--white); }
.pd-specs-intro p { color: var(--ice); margin-bottom: 0; max-width: 720px; }
.pd-specs-table-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}
.pd-spec-table { width: 100%; }
.pd-spec-table th,
.pd-spec-table td {
  text-align: left;
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pd-spec-table th {
  color: var(--gold-light);
  font-weight: 600;
  width: 30%;
  background: rgba(0, 0, 0, 0.18);
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}
.pd-spec-table td { color: var(--ice); }
.pd-spec-table tr:last-child th,
.pd-spec-table tr:last-child td { border-bottom: none; }

/* ---------- DFU steps ---------- */
.pd-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.pd-steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.25rem 1rem 3.5rem;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.6;
}
.pd-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.78rem;
}
.pd-steps li strong { color: var(--navy); }

/* ---------- Document downloads ---------- */
.pd-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.pd-doc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--ice);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.pd-doc-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.pd-doc-icon { font-size: 1.6rem; }
.pd-doc-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.pd-doc-meta { font-size: 0.78rem; color: var(--slate); }
.pd-doc-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.pd-faq {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
  max-width: 880px;
}
.pd-faq details {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.pd-faq details[open] { border-color: var(--gold); }
.pd-faq summary {
  padding: 1.1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold-dark);
  font-weight: 300;
  transition: transform 0.2s;
}
.pd-faq details[open] summary::after { transform: rotate(45deg); }
.pd-faq details p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.7;
}
.pd-faq details a { color: var(--gold-dark); font-weight: 600; }
.pd-faq details a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pd-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pd-two-col { grid-template-columns: 1fr; gap: 2rem; }
  .pd-applications-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-docs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pd-applications-grid { grid-template-columns: 1fr; }
  .pd-quick-specs { grid-template-columns: 1fr; }
  .pd-hero-image { min-height: 240px; }
  .pd-doc-card { grid-template-columns: 1fr; text-align: left; }
  .pd-doc-action { justify-self: start; }
}
