/* ============================================================
   PRODUCT DETAIL PAGE — product-detail.css
   ============================================================ */

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

/* Nav active state */
.nav-active {
  color: var(--primary-dark) !important;
  font-weight: 600;
  opacity: 1 !important;
}

/* ── HERO ─────────────────────────────────────────────────── */
.pd-hero {
  padding-top: 6.5rem;
  padding-bottom: 3.5rem;
}

.pd-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.pd-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.pd-hero-sub {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.6rem;
}

/* Badge grid */
.pd-hero-badge {
  background: var(--surface);
  border: 1px solid rgba(16, 35, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.badge-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.badge-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.02em;
}

.badge-label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── FEATURES ─────────────────────────────────────────────── */
.pd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pd-feature-card {
  background: var(--surface);
  border: 1px solid rgba(16, 35, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pd-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(9, 44, 53, 0.14);
}

.pd-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(13, 159, 154, 0.12);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  margin-bottom: 0.2rem;
}

.pd-feature-card h3 {
  font-size: 1rem;
}

.pd-feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── SCREENSHOT SLIDER ────────────────────────────────────── */
.pd-showcase-section {
  background: linear-gradient(180deg, rgba(13, 159, 154, 0.04), transparent);
}

.pd-slider {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: #0e1820;
  box-shadow: 0 32px 80px rgba(9, 44, 53, 0.22);
  margin-bottom: 1rem;
  border: 1px solid rgba(16, 35, 42, 0.12);
}

.pd-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.pd-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.pd-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.pd-slide-caption {
  padding: 0.7rem 1rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.68);
  background: #0e1820;
  margin: 0;
  text-align: center;
}

/* Nav buttons */
.pd-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.pd-slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.pd-prev {
  left: 12px;
}

.pd-next {
  right: 12px;
}

/* Dots */
.pd-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.pd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(16, 35, 42, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pd-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

/* Thumbnails */
.pd-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 159, 154, 0.35) transparent;
}

.pd-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb:hover {
  opacity: 0.88;
}

.pd-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 920px) {
  .pd-hero-inner,
  .pd-features {
    grid-template-columns: 1fr;
  }

  .pd-hero {
    padding-top: 5rem;
  }

  .pd-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pd-features {
    grid-template-columns: 1fr;
  }

  .pd-thumb {
    width: 72px;
    height: 46px;
  }
}
