/* Product detail pages — namespaced (pd-*) to avoid conflicts with index catalog styles */

section.pd-page {
  padding: 60px 20px;
}

.pd-page {
  font-family: 'Helvetica', Arial, sans-serif;
  background-color: var(--white);
  padding: 60px 20px;
  color: var(--text-dark);
}

.pd-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.pd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 35px;
  position: sticky;
  top: 100px;
  opacity: 0;
  animation: pdFadeUp 0.75s var(--ease-smooth) 0.1s forwards;
}

.pd-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--warm-grey);
  background-color: var(--off-white);
}

.pd-nav li {
  border-bottom: 1px solid var(--warm-grey);
}

.pd-nav li:last-child {
  border-bottom: none;
}

.pd-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s var(--ease-spring);
}

.pd-nav li.active a,
.pd-nav a:hover {
  background-color: var(--orange);
  color: var(--white);
  padding-left: 25px;
}

.pd-nav .pd-nav-arrow {
  font-size: 16px;
  font-weight: bold;
}

.pd-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pd-gallery {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 15px;
  opacity: 0;
  animation: pdFadeUp 0.75s var(--ease-smooth) 0.25s forwards;
}

.pd-gallery-main,
.pd-gallery-sub-item {
  overflow: hidden;
  background-color: var(--navy);
}

.pd-gallery-main img,
.pd-gallery-sub-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-smooth), filter 0.6s var(--ease-smooth);
  will-change: transform;
}

.pd-gallery-main {
  height: 400px;
}

.pd-gallery-sub {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 400px;
}

.pd-gallery-sub-item {
  flex: 1;
  height: calc(50% - 7.5px);
}

.pd-gallery-main:hover img,
.pd-gallery-sub-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.pd-details {
  font-family: 'Helvetica', Arial, sans-serif;
  opacity: 0;
  animation: pdFadeUp 0.75s var(--ease-smooth) 0.4s forwards;
}

.pd-details h2 {
  color: var(--navy);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.pd-details p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.pd-details strong {
  color: var(--text-dark);
  font-weight: 700;
}

.pd-subtext {
  font-weight: 700;
  color: var(--navy);
  margin: 25px 0;
}

.pd-features {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.pd-check {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

.pd-specs {
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-top: 1px solid var(--warm-grey);
  padding-top: 30px;
}

.pd-spec-group h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px 0;
}

.pd-spec-group p {
  color: var(--text-mid);
  font-size: 15px;
  margin: 0;
}

.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.pd-specs-table td {
  padding: 14px 18px;
  border: 1px solid var(--warm-grey);
  font-size: 14px;
  line-height: 1.5;
  vertical-align: middle;
}

.pd-spec-label {
  width: 25%;
  white-space: nowrap;
  font-weight: 600;
  color: var(--navy);
  background-color: var(--off-white);
}

.pd-spec-value {
  color: var(--text-mid);
}

@keyframes pdFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pd-sidebar {
    order: 2;
    position: static;
  }

  .pd-content {
    order: 1;
  }
}

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

  .pd-gallery-sub {
    display: none;
  }

  .pd-gallery-main {
    height: 260px;
  }

  .pd-spec-label {
    width: 35%;
    white-space: normal;
  }
}
