/* ==================================================
   PRODUCT DETAIL - POLISHED
================================================== */

/* ================= BASE ================= */

.pd-page {
  font-family: Inter, sans-serif;
  background: #fff;
  color: #0f172a;
}

/* ================= HERO ================= */

.pd-hero {
  height: 400px;
  position: relative;
}

.pd-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.pd-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding-top: 140px;
  animation: heroFade 1.2s ease forwards;
}

.pd-hero h1 {
  font-size: 42px;
  font-weight: 700;
}

/* ================= MENU ================= */

.pd-menu {
  position: sticky;
  top: 85px;
  z-index: 9999;

  background: #fff;
  border-bottom: 1px solid #e5e7eb;

  transition: 0.3s ease;
}

.pd-menu.stuck {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pd-menu-inner {
  max-width: 1200px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 20px;
}

/* Product Info */

.pd-menu-product {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.4px;

  color: #0b3a82;
}

.pd-menu-product img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* Navigation */

.pd-menu-nav {
  display: flex;
  gap: 40px;
}

.pd-menu-nav a {
  text-decoration: none;
  color: #0f172a;

  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;

  position: relative;
  padding-bottom: 6px;

  transition: 0.3s;
}

.pd-menu-nav a:hover,
.pd-menu-nav a.active {
  color: #0b3a82;
}

.pd-menu-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 3px;

  background: #ff6a00;
}

/* ================= SECTION ================= */

.pd-section {
  padding: 70px 20px;
}

.pd-gray {
  background: #f3f5f9;
}

.pd-section h2 {
  text-align: center;

  font-size: 32px;
  font-weight: 700;
  color: #0b3a82;

  margin-bottom: 35px;
  position: relative;
}

.pd-section h2::after {
  content: "";
  display: block;

  width: 70px;
  height: 4px;

  margin: 12px auto 0;

  background: #ff6a00;
  border-radius: 2px;
}

/* ================= FEATURES ================= */

.pd-feature-grid {
  max-width: 1100px;
  margin: auto;
}

.pd-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 40px;
  align-items: center;

  margin-bottom: 60px;
}

.pd-feature-row.rev {
  direction: rtl;
}

.pd-feature-row.rev * {
  direction: ltr;
}

.pd-feature-img img {
  width: 100%;
  border-radius: 12px;
}

.pd-feature-text h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.pd-feature-text p {
  line-height: 1.6;
  color: #475569;
}

/* ================= SPEC ================= */

.pd-spec-box {
  max-width: 1000px;
  margin: auto auto 40px;
}

.pd-spec-box h3 {
  border-left: 4px solid #ff6a00;
  padding-left: 10px;

  margin-bottom: 15px;
  font-size: 18px;
}

.pd-spec-box table {
  width: 100%;
  border-collapse: collapse;

  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.pd-spec-box td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.pd-spec-box td:first-child {
  width: 45%;
  background: #f9fafb;
  font-weight: 600;
}

/* ================= GALLERY ================= */

.pd-gallery {
  max-width: 950px;
  margin: auto;

  display: flex;
  align-items: center;
  gap: 15px;
}

.pd-window {
  width: 100%;
  overflow: hidden;
}

.pd-track {
  display: flex;
  transition: 0.4s ease;
}

.pd-slide {
  min-width: 100%;
}

.pd-slide img {
  width: 100%;
  border-radius: 12px;
}

/* Buttons */

.pd-btn {
  width: 45px;
  height: 45px;

  border-radius: 50%;
  border: none;

  background: #0b3a82;
  color: #fff;

  font-size: 22px;
  cursor: pointer;

  transition: 0.3s;
}

.pd-btn:hover {
  background: #ff6a00;
}

/* ================= RECOMMENDED ================= */

.pd-rec {
  max-width: 1100px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
}

.pd-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;

  text-decoration: none;
  color: inherit;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  transition: 0.3s;
}

.pd-card:hover {
  transform: translateY(-5px);
}

.pd-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.pd-card h4 {
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: #0b3a82;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  /* MENU */

  .pd-menu {
    top: 60px;
  }

  .pd-menu-inner {
    justify-content: flex-start;
    padding: 6px 0;
  }

  .pd-menu-product {
    display: none;
  }

  .pd-menu-nav {
    width: 100%;
    padding: 0 12px;

    gap: 14px;

    overflow-x: auto;
    scrollbar-width: none;
  }

  .pd-menu-nav::-webkit-scrollbar {
    display: none;
  }

  .pd-menu-nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  /* HERO */

  .pd-hero {
    height: 280px;
  }

  .pd-hero-content {
    padding-top: 100px;
  }

  .pd-hero h1 {
    font-size: 28px;
  }

  /* FEATURES */

  .pd-feature-row {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* SECTION */

  .pd-section {
    padding: 45px 15px;
  }

  .pd-section h2 {
    font-size: 24px;
  }

  /* GALLERY */

  .pd-gallery {
    padding: 0 10px;
  }

  .pd-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  /* RECOMMENDED SLIDER */

  .pd-rec {
    display: flex;

    overflow-x: auto;

    scroll-snap-type: x mandatory;
    scroll-padding: 50%;

    padding: 20px 0 35px;
  }

  .pd-card {
    flex: 0 0 100%;
    max-width: 100%;

    scroll-snap-align: center;

    padding: 0 12px;
  }

  .pd-card img {
    height: 260px;
    object-fit: contain;
    padding: 20px;
  }
}

/* ================= SMALL MOBILE ================= */

@media (max-width: 480px) {
  .pd-card img {
    height: 220px;
  }

  .pd-card h4 {
    font-size: 14px;
  }

  .pd-menu-nav a {
    font-size: 11px;
  }

  .pd-hero h1 {
    font-size: 24px;
  }
}

/* ================= SCROLL ANIMATION ================= */

.pd-section,
.pd-feature-row,
.pd-spec-box,
.pd-slide,
.pd-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.pd-section.show,
.pd-feature-row.show,
.pd-spec-box.show,
.pd-slide.show,
.pd-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= HERO ANIMATION ================= */

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