/* ═══════════════════════════════════════════════════════════
   SwissGlow.beauty — Product Detail Page Styles
═══════════════════════════════════════════════════════════ */

/* ─── Always-dark navbar for product/legal pages ────────── */
.navbar {
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ─── Page wrapper ──────────────────────────────────────── */
.pd-main {
  min-height: 100dvh;
  background: var(--white);
  padding-top: 80px;
}

/* ─── Breadcrumb ────────────────────────────────────────── */
.pd-breadcrumb {
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0.875rem 0;
}
.pd-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
}
.pd-breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s;
}
.pd-breadcrumb a:hover { color: var(--gold); }
.pd-breadcrumb-sep { color: rgba(0,0,0,0.2); }
.pd-breadcrumb-current { color: var(--text-mid); }

/* ─── Product Detail Layout ─────────────────────────────── */
.pd-section { padding: 3rem 0 5rem; }

.pd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .pd-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}
@media (min-width: 1200px) {
  .pd-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ─── Gallery / Slider ──────────────────────────────────── */
.pd-gallery {
  position: static;
  display: block;
  width: 100%;
}

.pd-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  background: var(--cream);
}

/* Slides wrapper fills the slider box — no transforms */
.pd-slides {
  position: absolute;
  inset: 0;
}

/* Each slide stacked absolutely, shown/hidden via opacity */
.pd-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.pd-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.pd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder slide */
.pd-slide-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.875rem;
  background: var(--cream);
}
.pd-placeholder-icon {
  width: 52px;
  height: 52px;
  color: var(--text-light);
  opacity: 0.28;
}
.pd-placeholder-text {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.5;
}

/* Prev/Next arrows — fade in on hover */
.pd-slider-prev,
.pd-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.22s, background 0.22s;
  z-index: 2;
  backdrop-filter: blur(6px);
  opacity: 0;
}
.pd-slider:hover .pd-slider-prev,
.pd-slider:hover .pd-slider-next { opacity: 1; }
.pd-slider-prev { left: 0.75rem; }
.pd-slider-next { right: 0.75rem; }
.pd-slider-prev svg,
.pd-slider-next svg { width: 16px; height: 16px; color: var(--text-dark); }
.pd-slider-prev:hover,
.pd-slider-next:hover { background: white; }
.pd-slider-prev:focus-visible,
.pd-slider-next:focus-visible { opacity: 1; outline: 2px solid var(--gold); outline-offset: 2px; }

/* Dots */
.pd-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 0 0.125rem;
}
.pd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  border: none;
  cursor: pointer;
  transition: background 0.22s, transform 0.22s;
  padding: 0;
  min-width: 7px;
}
.pd-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}
.pd-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ─── Product Info ──────────────────────────────────────── */
.pd-info { display: flex; flex-direction: column; gap: 0; }

.pd-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.pd-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.pd-size-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  font-weight: 400;
  margin-left: 0.5rem;
}
.pd-tagline {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}
.pd-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
}

/* Divider */
.pd-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.07);
  margin: 1.75rem 0;
}

/* Description */
.pd-desc {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* Section headings inside info */
.pd-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Ingredients — editorial card style */
.pd-ingredients-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.pd-ingredient {
  background: var(--cream);
  border: 1px solid rgba(184,156,110,0.18);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pd-ingredient:hover {
  border-color: rgba(184,156,110,0.45);
  box-shadow: 0 2px 12px rgba(184,156,110,0.1);
}
.pd-ingr-icon { display: none; }
.pd-ingr-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
}
.pd-ingr-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-mid);
}
@media (max-width: 500px) {
  .pd-ingredients-list { grid-template-columns: 1fr; }
}

/* How to use */
.pd-howto-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  counter-reset: howto;
}
.pd-howto-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  counter-increment: howto;
}
.pd-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.pd-step-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-mid);
  padding-top: 3px;
}

/* Certifications */
.pd-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pd-cert {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
}
.pd-cert svg { width: 12px; height: 12px; color: var(--gold); flex-shrink: 0; }

/* CTA buttons */
.pd-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .pd-ctas { flex-direction: row; }
}
.pd-ctas .btn-primary {
  flex: 1;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.875rem;
}
.pd-ctas .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--text-mid);
  transition: all 0.22s var(--ease);
  min-height: 48px;
}
.pd-ctas .btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* ─── Related products strip ─────────────────────────────── */
.pd-related { background: var(--cream); padding: 4rem 0; }
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .pd-related-grid { grid-template-columns: repeat(4, 1fr); }
}
.pd-related-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.25s, transform 0.25s;
  text-align: center;
}
.pd-related-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.pd-related-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.pd-related-card-info { padding: 1rem; }
.pd-related-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.pd-related-card-price {
  font-size: 0.875rem;
  color: var(--text-light);
}
