/* ===== Product Detail Page ===== */

.pd-main {
  padding-top: 80px;
}

/* Breadcrumb */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 40px 0 24px;
  font-family: var(--font-hanken);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 16.8px;
  color: rgba(51, 51, 51, 0.7);
}

.pd-breadcrumb a {
  color: rgba(51, 51, 51, 0.7);
  transition: color 0.2s;
}

.pd-breadcrumb a:hover {
  color: var(--green);
}

.pd-breadcrumb .is-current {
  color: #333;
}

/* Product Hero */
.pd-hero {
  padding-bottom: 64px;
}

.pd-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Gallery */
.pd-gallery__main {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-gallery__main img {
  width: 89%;
  height: 89%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.pd-gallery__dots {
  position: absolute;
  bottom: 33px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.pd-gallery__dots button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #d1d5db;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pd-gallery__dots button.is-active {
  background: var(--green);
}

.pd-gallery__dots button:hover {
  transform: scale(1.2);
}

.pd-gallery__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.pd-thumb {
  width: 96px;
  height: 96px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  padding: 2px;
  opacity: 0.7;
  transition: border-color 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.pd-thumb.is-active {
  border: 2px solid #237a58;
  opacity: 1;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

/* Product Info */
.pd-badge {
  display: inline-block;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  padding: 5px 13px;
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  line-height: 16px;
  margin-bottom: 24px;
}

.pd-info__title {
  font-family: var(--font-inter);
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1.2px;
  color: #333;
  margin-bottom: 24px;
  word-break: break-word;
}

.pd-info {
  min-width: 0;
}

.pd-info__desc {
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 29.25px;
  color: #4b5563;
  margin-bottom: 48px;
}

.pd-powers {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.pd-power {
  border: 1px solid var(--navy);
  border-radius: 12px;
  padding: 7px 17px;
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 20px;
  color: var(--navy);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pd-power:hover {
  border-color: var(--green);
  color: var(--green);
}

.pd-power.is-active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(17, 168, 78, 0.06);
}

.pd-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pd-btn {
  font-family: var(--font-inter);
  font-weight: 700;
  border-radius: 2px;
  text-transform: none;
  letter-spacing: 0;
}

.pd-btn--primary {
  padding: 15px 40px;
  font-size: 16px;
  line-height: 24px;
  background: var(--green);
  color: #fff;
  box-shadow: none;
}

.pd-btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 41px;
  font-size: 16px;
  line-height: 24px;
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  box-shadow: none;
}

.pd-btn--outline:hover {
  background: rgba(17, 168, 78, 0.06);
  transform: none;
}

.pd-btn--sm {
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  line-height: 16px;
  background: var(--green);
  color: #fff;
  box-shadow: none;
}

.pd-btn--submit {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  line-height: 28px;
  background: var(--green);
  color: #fff;
  border-radius: 2px;
  box-shadow: none;
  margin-top: 8px;
}

/* Accordion Sections */
.pd-sections {
  padding-bottom: 48px;
}

.pd-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #fff;
}

.pd-accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px;
  background: rgba(249, 250, 251, 0.5);
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  transition: background 0.2s;
}

.pd-accordion__head:hover {
  background: rgba(249, 250, 251, 0.9);
}

.pd-accordion__head h2 {
  font-family: var(--font-inter);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  color: #333;
}

.pd-accordion__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.pd-accordion__head:not(.is-open) .pd-accordion__icon {
  transform: rotate(90deg);
}

.pd-accordion__body {
  display: none;
  padding: 40px;
}

.pd-accordion__body.is-open {
  display: block;
}

.pd-feature {
  margin-bottom: 48px;
}

.pd-feature:last-child {
  margin-bottom: 0;
}

.pd-feature h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inter);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #333;
  margin-bottom: 24px;
}

.pd-feature__bar {
  display: block;
  width: 8px;
  height: 24px;
  border-radius: 12px;
  background: var(--green);
  flex-shrink: 0;
}

.pd-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 24px;
  color: #4b5563;
}

.pd-list li img {
  flex-shrink: 0;
  margin-top: 11px;
}

/* Tables */
.pd-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.pd-table thead th {
  background: var(--green);
  color: #fff;
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  padding: 16px;
  text-align: left;
}

.pd-table tbody tr:nth-child(odd) {
  background: #fff;
}

.pd-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.pd-table td {
  padding: 16px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 24px;
  color: #333;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.pd-table td:first-child {
  width: 33%;
  font-weight: 500;
}

/* Documentation — Figma: vertical stack, not 3 columns */
.pd-docs {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: stretch;
}

.pd-docs__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.pd-docs__col h3 {
  font-family: var(--font-inter);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #333;
  margin: 0;
}

.pd-docs__col ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-docs__col a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 24px;
  color: var(--green);
  transition: opacity 0.2s;
}

.pd-docs__col a:hover {
  opacity: 0.8;
}

.pd-docs__col a img {
  flex-shrink: 0;
}

.pd-docs__dot {
  width: 6px;
  height: 6px;
  border-radius: 12px;
  background: #9ca3af;
  flex-shrink: 0;
}

/* Quote Form */
.pd-quote {
  background: #f9f9fc;
  padding: 80px 0;
}

.pd-quote__head {
  text-align: center;
  margin-bottom: 40px;
}

.pd-quote__head h2 {
  font-family: var(--font-inter);
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
  color: #333;
  margin-bottom: 16px;
}

.pd-quote__head p {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 24px;
  color: #4b5563;
  max-width: 768px;
  margin: 0 auto;
}

.pd-quote__form {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-quote__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pd-field input,
.pd-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  background: #fff;
  padding: 16px 13px;
  font-family: var(--font-inter);
  font-size: 16px;
  color: #1a1c1e;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pd-field input::placeholder,
.pd-field textarea::placeholder {
  color: #6b7280;
}

.pd-field textarea {
  min-height: 170px;
  resize: vertical;
}

.pd-field input:focus,
.pd-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.12);
}

.pd-captcha__label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 8px;
  font-family: var(--font-inter);
  font-size: 14px;
  color: #374151;
}

.pd-captcha__label strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.pd-captcha__refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: opacity 0.2s;
}

.pd-captcha__refresh:hover {
  opacity: 0.7;
}

/* Related Products */
.pd-related {
  padding: 80px 0 100px;
}

.pd-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.pd-related__head h2 {
  font-family: var(--font-inter);
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
  color: #333;
}

.pd-related__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.pd-related__row--reverse .pd-related__media {
  order: 2;
}

.pd-related__row--reverse .pd-related__copy {
  order: 1;
}

.pd-related__row:last-child {
  margin-bottom: 0;
}

.pd-related__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-related__media img {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  object-fit: cover;
}

.pd-related__copy h3 {
  font-family: var(--font-inter);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.32px;
  color: #333;
  margin-bottom: 24px;
}

.pd-related__copy p {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 26px;
  color: #444842;
  margin-bottom: 32px;
}

.pd-related__powers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.pd-related__powers li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 24px;
  color: #333;
}

.pd-related__powers li span {
  width: 8px;
  height: 8px;
  border-radius: 12px;
  background: var(--green);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .pd-hero__grid,
  .pd-related__row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-related__row--reverse .pd-related__media {
    order: -1;
  }

  .pd-related__row--reverse .pd-related__copy {
    order: 0;
  }

  .pd-docs {
    gap: 40px;
  }

  .pd-info__title {
    font-size: 36px;
    line-height: 44px;
  }

  .pd-accordion__head h2 {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (max-width: 768px) {
  .pd-breadcrumb {
    padding: 24px 0 16px;
  }

  .pd-gallery__thumbs {
    gap: 12px;
    flex-wrap: wrap;
  }

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

  .pd-thumb img {
    height: 64px;
  }

  .pd-info__title {
    font-size: 28px;
    line-height: 36px;
  }

  .pd-info__desc {
    font-size: 16px;
    line-height: 26px;
  }

  .pd-actions {
    flex-direction: column;
  }

  .pd-btn--primary,
  .pd-btn--outline {
    width: 100%;
    justify-content: center;
  }

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

  .pd-related__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-related__head h2,
  .pd-quote__head h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .pd-accordion__head {
    padding: 20px;
  }

  .pd-accordion__body {
    padding: 20px;
  }

  .pd-table td:first-child {
    width: 40%;
  }
}
