/* =============================================
   PRODUCT DETAIL — OASIS PEPTIDES
   Navy #0a1628 / Gold #c9a227
   ============================================= */

:root {
  --navy: #0a1628;
  --navy-deep: #080f1e;
  --navy-mid: #0d1e38;
  --navy-light: #132040;
  --gold: #c9a227;
  --gold-dim: rgba(201, 162, 39, 0.55);
  --gold-subtle: rgba(201, 162, 39, 0.12);
  --gold-border: rgba(201, 162, 39, 0.25);
  --text: #e8e8e8;
  --text-muted: #7a8fa8;
  --divider: rgba(201, 162, 39, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

body {
  background: var(--navy-deep);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(201,162,39,0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(10,22,40,0.8) 0%, transparent 50%);
}

/* ─── NAVBAR ─────────────────────────────── */
.pd-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: rgba(8, 15, 30, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
}

.pd-nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.pd-nav-back:hover { color: var(--gold); }
.pd-nav-back svg { width: 16px; height: 16px; }

.pd-nav-logo {
  margin-left: auto;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-decoration: none;
}

/* ─── LAYOUT ─────────────────────────────── */
.pd-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 32px 80px;
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 0;
  align-items: start;
}

/* ─── LEFT COLUMN (STICKY) ───────────────── */
.pd-left {
  position: sticky;
  top: 80px;
  padding-right: 56px;
}

/* Image container */
.pd-image-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.pd-image-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,162,39,0.18) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  filter: blur(32px);
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.pd-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(201,162,39,0.15));
  transition: filter 0.6s ease;
  animation: imageReveal 0.8s ease forwards;
}

@keyframes imageReveal {
  from { opacity: 0; filter: blur(12px) drop-shadow(0 20px 60px rgba(201,162,39,0.15)); }
  to { opacity: 1; filter: blur(0) drop-shadow(0 20px 60px rgba(201,162,39,0.15)); }
}

.pd-image-placeholder {
  position: relative;
  z-index: 1;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: imageReveal 0.8s ease forwards;
}

.pd-image-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

.pd-research-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(8,15,30,0.92);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}

/* Product meta */
.pd-category-pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.pd-name {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 4px;
}

.pd-dose {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

/* Price */
.pd-price-block {
  margin-bottom: 24px;
}

.pd-price-usd {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #fff;
  line-height: 1;
}

.pd-price-aed {
  font-size: 13px;
  color: var(--gold-dim);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

.pd-price-tbd {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 6px 14px;
  letter-spacing: 0.06em;
}

/* CTA button */
.pd-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.35s ease, transform 0.15s ease;
  margin-bottom: 28px;
  text-decoration: none;
}

.pd-cta-buy {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.pd-cta-buy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 0;
}

.pd-cta-buy:hover { color: var(--navy); }
.pd-cta-buy:hover::before { transform: scaleX(1); }
.pd-cta-buy:active { transform: scale(0.97); }
.pd-cta-buy span { position: relative; z-index: 1; }

.pd-cta-notify {
  background: transparent;
  border: 1.5px dashed rgba(201,162,39,0.5);
  color: var(--text-muted);
  animation: notifyPulse 3s ease-in-out infinite;
}

@keyframes notifyPulse {
  0%, 100% { border-color: rgba(201,162,39,0.35); }
  50% { border-color: rgba(201,162,39,0.7); }
}

.pd-cta-notify span { position: relative; z-index: 1; }

/* Trust icons */
.pd-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.pd-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s;
}

.pd-trust-item.visible { opacity: 1; transform: translateY(0); }
.pd-trust-item:hover { color: var(--gold); }
.pd-trust-item:hover svg { transform: translateY(-2px); }

.pd-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* ─── RIGHT COLUMN ───────────────────────── */
.pd-right {
  padding-left: 4px;
  min-height: 60vh;
}

/* Tab navigation */
.pd-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 40px;
  position: relative;
}

.pd-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}

.pd-tab-btn:hover { color: var(--text); }
.pd-tab-btn.active { color: var(--gold); }

.pd-tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease, width 0.3s ease;
}

/* Tab panels */
.pd-panel {
  display: none;
  animation: panelIn 0.3s ease forwards;
}

.pd-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Overview panel */
.pd-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.4;
}

.pd-description {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  opacity: 0.85;
}

/* Research protocol panel */
.pd-protocol-box {
  background: var(--navy-mid);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.pd-protocol-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 80%);
}

.pd-protocol-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 12px;
}

.pd-protocol-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
}

.pd-disclaimer-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(201,162,39,0.04);
  border: 1px solid var(--gold-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pd-disclaimer-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold-dim);
  margin-top: 1px;
}

/* Reconstitution panel */
.pd-recon-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

.pd-recon-step {
  display: flex;
  gap: 20px;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pd-recon-step.visible { opacity: 1; transform: translateY(0); }

.pd-step-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.pd-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 1.5px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

.pd-step-connector {
  width: 1px;
  flex: 1;
  min-height: 32px;
  background: var(--divider);
  margin: 4px 0;
}

.pd-recon-step:last-child .pd-step-connector { display: none; }

.pd-step-content {
  padding-bottom: 28px;
  flex: 1;
}

.pd-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.pd-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mixing reference */
.pd-mixing-ref {
  background: var(--navy-mid);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pd-mixing-ref svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.pd-mixing-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pd-mixing-value {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Storage panel */
.pd-storage-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.pd-storage-card {
  background: var(--navy-mid);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 24px 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.pd-storage-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
  transition: opacity 0.25s;
}

.pd-storage-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 20px rgba(201,162,39,0.06);
}

.pd-storage-card:hover::before { opacity: 1; }

.pd-storage-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--gold-dim);
}

.pd-storage-card-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 10px;
}

.pd-storage-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── RELATED PRODUCTS ───────────────────── */
.pd-related {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--divider);
}

.pd-related-heading {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 24px;
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pd-related-card {
  background: var(--navy-mid);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.2s;
  display: block;
}

.pd-related-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
}

.pd-related-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pd-related-card-dose {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pd-related-card-price {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

/* ─── FOOTER ─────────────────────────────── */
.pd-footer {
  border-top: 1px solid var(--divider);
  padding: 40px 32px;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.pd-footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto 20px;
}

.pd-footer-copy {
  font-size: 11px;
  color: rgba(122,143,168,0.5);
}

/* ─── SCROLL REVEAL ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .pd-wrapper {
    display: flex;
    flex-direction: column;
    padding: 72px 0 48px;
    gap: 0;
  }

  .pd-left {
    position: static;
    padding: 0;
  }

  .pd-image-wrap {
    width: 100%;
    margin-bottom: 16px;
  }

  .pd-image { border-radius: 0; }

  .pd-category-pill,
  .pd-name,
  .pd-dose,
  .pd-price-block,
  .pd-trust {
    margin-left: 20px;
    margin-right: 20px;
  }

  .pd-cta {
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
  }

  .pd-right {
    padding: 0 20px;
    margin-top: 32px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .pd-name { font-size: 28px; }

  .pd-storage-cards {
    grid-template-columns: 1fr;
  }

  .pd-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pd-related {
    margin-top: 48px;
    padding-top: 32px;
  }

  .pd-nav {
    padding: 0 16px;
  }

  .pd-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .pd-tabs::-webkit-scrollbar { display: none; }

  .pd-tab-btn {
    padding: 12px 14px;
    font-size: 11px;
    white-space: nowrap;
  }

  .pd-protocol-box {
    padding: 20px 18px;
  }

  .pd-mixing-ref {
    padding: 16px 18px;
    gap: 12px;
  }

  .pd-mixing-value {
    font-size: 13px;
    word-break: break-word;
  }

  .pd-research-badge {
    font-size: 9px;
    padding: 5px 10px;
  }

  .pd-footer {
    padding: 32px 16px;
  }

  .pd-right {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .pd-wrapper {
    padding: 64px 0 40px;
  }

  .pd-category-pill,
  .pd-name,
  .pd-dose,
  .pd-price-block,
  .pd-trust {
    margin-left: 16px;
    margin-right: 16px;
  }

  .pd-cta {
    margin-left: 16px;
    margin-right: 16px;
  }

  .pd-right { padding: 0 16px; }

  .pd-name { font-size: 24px; }
  .pd-price-usd { font-size: 26px; }
  .pd-tagline { font-size: 18px; }

  .pd-trust {
    gap: 12px;
    justify-content: center;
  }

  .pd-trust-item {
    font-size: 10px;
  }

  .pd-cta {
    height: 48px;
    font-size: 13px;
  }

  .pd-step-content {
    padding-bottom: 20px;
  }

  .pd-recon-step {
    gap: 14px;
  }
}
