:root {
  --pd-blue: #0177A9;
  --pd-blue-hover: #016690;
  --pd-cyan: #2eb5ef;
  --pd-ink: #0a2342;
  --pd-muted: #667a91;
  --pd-border: #e5eef6;
  --pd-soft: #f4f7fb;
}

.pd-page {
  background: #fff;
  color: #333;
  font-family: "Montserrat", sans-serif;
}

.pd-wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.pd-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
  font-size: 12px;
  color: #8a9bb0;
}
.pd-crumb a {
  color: #667a91;
  text-decoration: none;
}
.pd-crumb a:hover { color: var(--pd-blue); }
.pd-crumb .is-current {
  color: var(--pd-ink);
  font-weight: 600;
}

.pd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pd-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pd-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  user-select: none;
}
.pd-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(180, 190, 200, 0.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.pd-nav:hover { background: rgba(120, 140, 160, 0.85); }
.pd-nav.prev { left: 8px; }
.pd-nav.next { right: 8px; }
.pd-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f0f3f7;
  color: #667a91;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pd-zoom:hover { background: #e4ebf2; }

.pd-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
  max-width: 500px;
  flex-wrap: wrap;
}
.pd-thumb {
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s;
}
.pd-thumb.is-on {
  border: 2px solid var(--pd-ink);
}
.pd-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pd-disclaimer {
  margin: 18px 0 0;
  max-width: 500px;
  text-align: center;
  font-size: 11px;
  color: #9aa8b8;
  line-height: 1.5;
}

.pd-info {
  padding-top: 4px;
}
.pd-model-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-model {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-ink);
}
.pd-new {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pd-blue);
  text-transform: uppercase;
}
.pd-title {
  margin: 10px 0 22px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  letter-spacing: -0.4px;
}
.pd-highlights {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #374151;
  line-height: 1.45;
}
.pd-highlights li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: #1f2937;
  flex-shrink: 0;
}
.pd-highlights strong { color: #111827; }

.pd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.pd-badge {
  min-width: 52px;
  height: 52px;
  padding: 4px 8px;
  border: 1.5px solid var(--pd-blue);
  border-radius: 8px;
  background: #fff;
  color: var(--pd-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pd-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(1, 119, 169, 0.15);
}

.pd-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  max-width: 480px;
}
.pd-variant {
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pd-variant:hover:not(.is-on) {
  border-color: #9ca3af;
  background: #f9fafb;
}
.pd-variant.is-on {
  border: 1.5px solid var(--pd-blue);
  color: var(--pd-blue);
  font-weight: 700;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 480px;
}
.pd-btn {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pd-btn-primary {
  background: var(--pd-blue);
  color: #fff;
}
.pd-btn-primary:hover { background: var(--pd-blue-hover); }
.pd-btn-ghost {
  background: #fff;
  color: #111827;
  border: 1px solid #1f2937;
}
.pd-btn-ghost:hover { background: #f9fafb; }

.pd-specs {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--pd-border);
}
.pd-specs h2 {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}
.pd-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pd-spec-card {
  background: var(--pd-soft);
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 22px;
}
.pd-spec-card h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}
.pd-spec-card dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.pd-spec-row dt {
  color: #6b7280;
  margin: 0;
}
.pd-spec-row dd {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
  text-align: right;
}

.pd-missing {
  padding: 64px 0;
  text-align: center;
}
.pd-missing h1 {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--pd-ink);
}
.pd-missing p {
  margin: 0 0 20px;
  color: var(--pd-muted);
}

/* Datasheet modal */
.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.pd-modal.is-open { display: flex; }
.pd-modal-card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: pd-pop 0.2s ease-out;
}
@keyframes pd-pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.pd-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.pd-modal-ico {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(1, 119, 169, 0.12);
  color: var(--pd-blue);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
}
.pd-modal-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #111827;
}
.pd-modal-card p {
  margin: 0 0 18px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
.pd-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-modal-actions .pd-btn { width: 100%; border-radius: 10px; }
.pd-modal-cancel {
  background: #f3f4f6;
  color: #374151;
}

.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 24px;
}
.pd-lightbox.is-open { display: flex; }
.pd-lightbox img {
  max-width: min(900px, 100%);
  max-height: 90vh;
  object-fit: contain;
}
.pd-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .pd-split { grid-template-columns: 1fr; gap: 28px; }
  .pd-spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pd-wrap { width: calc(100% - 32px); padding-top: 18px; }
  .pd-thumb { width: 56px; height: 56px; }
  .pd-actions { flex-direction: column; }
}
