/* =========================================================
   PRODUCT DETAIL PAGE
   ========================================================= */

/* =========================================================
   HERO — light, motif-led background; product shown on a
   contrasting dark stage card so white/chrome machines pop.
   Header uses .header--inner modifier so the top bar reads
   correctly against the light hero.
   ========================================================= */
.pd-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: clamp(40px, 6vw, 64px);
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.pd-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pd-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(28, 25, 23, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 75% 80% at 30% 50%, #000 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 30% 50%, #000 30%, transparent 95%);
}

.pd-hero__bg-glow {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(28, 25, 23, .14) 0%,
      rgba(28, 25, 23, .04) 40%,
      rgba(28, 25, 23, 0) 70%);
  filter: blur(40px);
  transform: translateY(-50%);
  animation: pd-hero-glow 8s ease-in-out infinite alternate;
}

@keyframes pd-hero-glow {
  0% {
    opacity: .6;
    transform: translateY(-50%) scale(.9);
  }

  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
}

.pd-hero .container {
  position: relative;
  z-index: 1;
}

/* BREADCRUMB */
.pd-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: var(--t-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
}

.pd-crumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.pd-crumbs a:hover {
  color: var(--text);
}

.pd-crumbs i {
  font-size: .75rem;
  color: var(--text-light);
}

.pd-crumbs span {
  color: var(--text);
  font-weight: 500;
}

/* GRID — text left, media right */
.pd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

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

/* Series pill — small dot + label */
.pd-hero__series {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-hero__series-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(28, 25, 23, .08);
  border: 1px solid rgba(28, 25, 23, .18);
  border-radius: 999px;
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.pd-hero__series-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 25, 23, .18);
}

.pd-hero__series-tier {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-muted);
  font-weight: 500;
}

/* TITLE */
.pd-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--text);
  margin: 0;
}

.pd-hero__title em {
  font-style: normal;
  color: var(--accent);
}

.pd-hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 540px;
  margin: 0;
}

.pd-hero__cta {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   MEDIA — light stage, sits on the white hero
   Subtle accent bubbles + soft ground shadow give the photo a
   defined canvas without going dark. The Platinum brand mark
   sits behind the product as a discreet watermark.
   ========================================================= */
.pd-hero__media {
  position: relative;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  isolation: isolate;
}

@keyframes pd-bubble-a {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: .85;
  }

  100% {
    transform: translate(14px, 10px) scale(1.1);
    opacity: 1;
  }
}

@keyframes pd-bubble-b {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: .8;
  }

  100% {
    transform: translate(-12px, -10px) scale(1.12);
    opacity: 1;
  }
}

/* Soft ground shadow beneath the product to anchor it on the canvas */
.pd-hero__media-halo {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 45%;
  border-radius: 50%;
  background: radial-gradient(ellipse,
      rgba(28, 25, 23, .12) 0%,
      rgba(28, 25, 23, .03) 45%,
      rgba(28, 25, 23, 0) 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  animation: pd-halo-pulse 7s ease-in-out infinite alternate;
}

@keyframes pd-halo-pulse {
  0% {
    opacity: .8;
    transform: translate(-50%, -50%) scale(.95);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Brand watermark — sits behind the product as a discreet
   silhouette. `invert(1)` flips the white master file to a
   dark mark on the white canvas. */
.pd-hero__media-logo {
  position: absolute;
  bottom: 8%;
  left: 30%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  animation: pd-logo-drift 12s ease-in-out infinite;
}

.pd-hero__media-logo img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.14;
  filter: brightness(0);
}

@media (max-width: 1025px) {
  .pd-hero__media-logo {
    display: none;
  }
}

@keyframes pd-logo-drift {

  0%,
  100% {
    transform: translateY(0);
    opacity: .85;
  }

  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Vertical product code tag — dark on white */
.pd-hero__media-tag {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 50%;
  transform: rotate(-90deg);
  transform-origin: right top;
  font-size: .55rem;
  letter-spacing: .25em;
  font-weight: 500;
  color: rgba(28, 25, 23, .28);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
  z-index: 1;
}

/* The actual product image — sits above the watermark + bubbles */
.pd-hero__main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.pd-hero__main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: pd-media-float 7s ease-in-out infinite;
  filter: drop-shadow(0 18px 28px rgba(28, 25, 23, .18));
}

@keyframes pd-media-float {

  0%,
  100% {
    transform: translateY(-4px);
  }

  50% {
    transform: translateY(4px);
  }
}

/* =========================================================
   SPECS STRIP — horizontal row below the grid
   Light theme so it sits naturally on the white hero.
   ========================================================= */
.pd-hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  list-style: none;
}

.pd-hero__specs li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pd-hero__specs-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(28, 25, 23, .08);
  color: var(--accent);
  font-size: 1.15rem;
}

.pd-hero__specs-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pd-hero__specs li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--border);
}

.pd-hero__specs-label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  font-weight: 500;
}

.pd-hero__specs-value {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text);
  line-height: 1.2;
}

/* =========================================================
   STICKY SECTION NAV
   ========================================================= */
.pd-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.pd-nav__inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.pd-nav__inner::-webkit-scrollbar {
  display: none;
}

.pd-nav__link {
  flex-shrink: 0;
  padding: 16px 18px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
  white-space: nowrap;
}

.pd-nav__link:hover {
  color: var(--text);
}

.pd-nav__link.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* =========================================================
   COMMON SECTION FRAMEWORK
   ========================================================= */
.pd-section {
  padding: clamp(48px, 7vw, 96px) 0;
}

.pd-overview {
  background: #fff;
}

.pd-documents {
  background: var(--bg-soft);
}

.pd-gallery {
  background: var(--bg-soft);
}

.pd-applications {
  background: #fff;
}

.pd-related {
  background: var(--bg-soft);
}

.pd-section__head {
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 720px;
}

.pd-section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  flex-wrap: wrap;
}

.pd-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.pd-section__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

.pd-section__title {
  font-size: clamp(1.2rem, 2.2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--text);
}

.pd-section__sub {
  font-size: var(--t-md);
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 720px;
}

/* =========================================================
   ARTICLE — full-text editor content
   Styled via descendant selectors. CMS HTML stays class-less.
   ========================================================= */
.pd-article {
  max-width: 820px;
  font-size: var(--t-md);
  line-height: 1.72;
  color: var(--text-muted);
}

.pd-article>*:first-child {
  margin-top: 0;
}

.pd-article>*:last-child {
  margin-bottom: 0;
}

/* Headings */
.pd-article h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--text);
  margin: 48px 0 18px;
}

.pd-article h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--text);
  margin: 44px 0 16px;
}

.pd-article h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--text);
  margin: 36px 0 14px;
}

.pd-article h4 {
  font-size: var(--t-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  margin: 28px 0 10px;
}

/* Paragraphs */
.pd-article p {
  margin: 0 0 18px;
}

/* Inline emphasis */
.pd-article strong,
.pd-article b {
  color: var(--text);
  font-weight: 600;
}

.pd-article em,
.pd-article i {
  font-style: italic;
  color: var(--text);
}

/* Inline links */
.pd-article a {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color var(--t-fast) var(--ease),
    background-size var(--t-fast) var(--ease);
}

.pd-article a:hover {
  color: var(--accent);
}

/* Lists */
.pd-article ul,
.pd-article ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.pd-article ul li,
.pd-article ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.pd-article ul {
  list-style: none;
  padding-left: 0;
}

.pd-article ul li {
  position: relative;
  padding-left: 22px;
}

.pd-article ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .85em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.pd-article ol {
  list-style: decimal;
}

.pd-article ol li::marker {
  color: var(--text);
  font-weight: 600;
}

/* Nested lists */
.pd-article ul ul,
.pd-article ul ol,
.pd-article ol ul,
.pd-article ol ol {
  margin: 8px 0 0;
}

/* Blockquotes (in case CMS sends them) */
.pd-article blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-softer);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--t-lg);
  color: var(--text);
  font-style: italic;
}

/* Inline code */
.pd-article code {
  padding: 2px 6px;
  background: var(--bg-softer);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  color: var(--text);
}

/* Code blocks */
.pd-article pre {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--bg-softer);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: .9em;
  line-height: 1.55;
}

.pd-article pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

/* Article images and figures */
.pd-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 24px 0;
  display: block;
}

.pd-article figure {
  margin: 28px 0;
}

.pd-article figcaption {
  margin-top: 10px;
  font-size: var(--t-sm);
  color: var(--text-light);
  text-align: center;
}

/* Tables — class-less, automatically styled via .pd-article descendant */
.pd-article table {
  width: 100%;
  margin: 32px 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--t-sm);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.pd-article table th,
.pd-article table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.pd-article table tr:last-child td,
.pd-article table tr:last-child th {
  border-bottom: none;
}

.pd-article table th {
  background: var(--bg-softer);
  font-weight: 600;
  color: var(--text);
}

/* When a 2-column data table is detected (no <th>), style first td as label */
.pd-article table tbody tr td:first-child {
  width: 38%;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}

.pd-article table tbody tr td:last-child {
  color: var(--text);
  font-weight: 600;
}

/* Subtle hover on data rows */
.pd-article table tbody tr {
  transition: background var(--t-fast) var(--ease);
}

.pd-article table tbody tr:hover td:last-child {
  background: var(--bg-softer);
}

/* Horizontal rule */
.pd-article hr {
  margin: 32px 0;
  border: none;
  height: 1px;
  background: var(--border);
}

/* =========================================================
   GALLERY (PhotoSwipe items)
   ========================================================= */
.pd-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pd-gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  /* White bg + subtle border for contrast against the bg-soft section */
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color var(--t-base-d) var(--ease),
    transform var(--t-base-d) var(--ease),
    box-shadow var(--t-base-d) var(--ease);
}

.pd-gallery__item:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pd-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.pd-gallery__item:hover img {
  transform: scale(1.05);
}

.pd-gallery__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--text);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-base-d) var(--ease),
    transform var(--t-base-d) var(--ease);
}

.pd-gallery__item:hover .pd-gallery__zoom {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   DOCUMENTS (auto-icon by extension)
   ========================================================= */
.pd-documents__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pd-doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color var(--t-base-d) var(--ease),
    background var(--t-base-d) var(--ease),
    transform var(--t-base-d) var(--ease),
    box-shadow var(--t-base-d) var(--ease);
}

.pd-doc:hover {
  background: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Icon container — uniform across all file types */
.pd-doc__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-softer);
  color: var(--text);
}

.pd-doc__icon i {
  font-size: 1.5rem;
}

.pd-doc__body {
  flex: 1;
  min-width: 0;
}

.pd-doc__name {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.005em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-doc__meta {
  display: block;
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pd-doc__action {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  transition: all var(--t-fast) var(--ease);
}

.pd-doc:hover .pd-doc__action {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =========================================================
   VIDEOS — thumbnail cards with play overlay + modal lightbox
   ========================================================= */
.pd-videos {
  background: #fff;
}

.pd-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pd-video {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16/10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-align: left;
  transition: border-color var(--t-fast) var(--ease),
    transform var(--t-base-d) var(--ease),
    box-shadow var(--t-base-d) var(--ease);
}

.pd-video:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pd-video__thumb {
  position: absolute;
  inset: 0;
  display: block;
}

.pd-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.pd-video:hover .pd-video__thumb img {
  transform: scale(1.05);
}

.pd-video__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,
      rgba(28, 25, 23, .15) 0%,
      rgba(28, 25, 23, .45) 100%);
  pointer-events: none;
  transition: background var(--t-base-d) var(--ease);
}

.pd-video:hover .pd-video__overlay {
  background: linear-gradient(180deg,
      rgba(28, 25, 23, .3) 0%,
      rgba(28, 25, 23, .55) 100%);
}

.pd-video__play {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  font-size: 1.6rem;
  color: var(--accent);
  /* Slight offset toward right — natural play-icon balance */
  padding-left: 4px;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base-d) var(--ease);
}

.pd-video:hover .pd-video__play {
  transform: scale(1.1);
}

.pd-video__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
  z-index: 1;
  pointer-events: none;
}

.pd-video__tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 10px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 500;
}

.pd-video__title {
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -.005em;
}

/* ---------- Video lightbox modal ---------- */
.pd-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pd-video-modal.is-open {
  display: flex;
  animation: pd-video-fade .3s var(--ease);
}

@keyframes pd-video-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.pd-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 24, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.pd-video-modal__inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  z-index: 1;
}

.pd-video-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

.pd-video-modal__close:hover {
  background: rgba(255, 255, 255, .2);
}

.pd-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .6);
}

.pd-video-modal__frame iframe,
.pd-video-modal__frame video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =========================================================
   QUOTE REQUEST MODAL
   ========================================================= */
.pd-quote {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pd-quote.is-open {
  display: flex;
  animation: pd-quote-fade .3s var(--ease);
}

@keyframes pd-quote-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.pd-quote__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 24, .65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.pd-quote__inner {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .25);
  z-index: 1;
  padding: 36px 36px 28px;
  animation: pd-quote-slide .35s var(--ease-out);
}

@keyframes pd-quote-slide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pd-quote__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.pd-quote__close:hover {
  background: var(--bg-softer);
  border-color: var(--border-strong);
}

.pd-quote__head {
  margin-bottom: 28px;
}

.pd-quote__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.pd-quote__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

.pd-quote__title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.pd-quote__sub {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

/* Form rows */
.pd-quote__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.pd-quote__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-quote__field label {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pd-quote__field input,
.pd-quote__field textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: var(--t-sm);
  color: var(--text);
  line-height: 1.4;
  transition: border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
  width: 100%;
  box-sizing: border-box;
}

.pd-quote__field input:focus,
.pd-quote__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

/* =========================================================
   CUSTOM DROPDOWN — replaces native <select> for full styling control.
   Looks identical to .pd-quote__field inputs.
   Hidden input carries the value to FormData.
   ========================================================= */
.pd-quote__select {
  position: relative;
  width: 100%;
  outline: none;
}

.pd-quote__select-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: var(--t-sm);
  color: var(--text-light);
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

/* Once a real value is picked, text turns dark like a filled input */
.pd-quote__select.has-value .pd-quote__select-toggle {
  color: var(--text);
}

/* Hover + focus + open mirror the input's focus state */
.pd-quote__select-toggle:hover {
  border-color: var(--border-strong);
}

.pd-quote__select.is-open .pd-quote__select-toggle,
.pd-quote__select:focus .pd-quote__select-toggle,
.pd-quote__select:focus-within .pd-quote__select-toggle {
  border-color: var(--accent);
  outline: none;
}

.pd-quote__select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-quote__select-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  transition: color var(--t-base-d) var(--ease),
    transform var(--t-base-d) var(--ease);
}

.pd-quote__select.is-open .pd-quote__select-chevron {
  color: var(--accent);
  transform: rotate(180deg);
}

/* Dropdown panel — absolutely positioned below toggle */
.pd-quote__select-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(28, 25, 23, .12);
  z-index: 10;
  max-height: 240px;
  overflow-y: auto;
  /* Hidden by default; opacity + transform animation when opening */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-base-d) var(--ease),
    transform var(--t-base-d) var(--ease),
    visibility var(--t-base-d) var(--ease);
}

.pd-quote__select.is-open .pd-quote__select-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pd-quote__select-list li {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: var(--t-sm);
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

.pd-quote__select-list li:hover,
.pd-quote__select-list li.is-active {
  background: var(--bg-soft);
}

.pd-quote__select-list li.is-selected {
  background: var(--bg-softer);
  font-weight: 500;
}

/* Custom scrollbar for the dropdown list */
.pd-quote__select-list::-webkit-scrollbar {
  width: 6px;
}

.pd-quote__select-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.pd-quote__field textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
}

/* Field error state — toggled by JS */
.pd-quote__field.has-error input,
.pd-quote__field.has-error textarea,
.pd-quote__field.has-error .pd-quote__select-toggle {
  border-color: #dc2626;
  background: rgba(220, 38, 38, .04);
}

/* GDPR / consent checkbox — custom checkmark */
.pd-quote__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  font-size: var(--t-xs);
  color: var(--text-muted);
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}

.pd-quote__consent input[type="checkbox"] {
  /* Visually hidden but still focusable / interactable */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pd-quote__consent-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: .7rem;
  transition: background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.pd-quote__consent input[type="checkbox"]:checked+.pd-quote__consent-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pd-quote__consent input[type="checkbox"]:focus-visible+.pd-quote__consent-mark {
  outline: 2px solid var(--highlight, #1c1917);
  outline-offset: 2px;
}

.pd-quote__consent.has-error .pd-quote__consent-mark {
  border-color: #dc2626;
  background: rgba(220, 38, 38, .04);
}

.pd-quote__consent-text a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--t-fast) var(--ease);
}

.pd-quote__consent-text a:hover {
  color: var(--accent);
}

.pd-quote__foot {
  margin-top: 12px;
}

.pd-quote__submit {
  width: 100%;
  justify-content: center;
}

.pd-quote__submit:disabled,
.pd-quote__submit.is-loading {
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}

.pd-quote__submit.is-loading .pd-quote__submit-label::after {
  content: '...';
  animation: pd-dots 1s steps(4, end) infinite;
}

@keyframes pd-dots {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

/* =========================================================
   TOAST NOTIFICATIONS — bottom-right, stacking
   ========================================================= */
.pd-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

.pd-toast__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
  font-size: var(--t-sm);
  color: var(--text);
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  animation: pd-toast-in .35s var(--ease-out);
}

.pd-toast__item.is-removing {
  animation: pd-toast-out .25s var(--ease) forwards;
}

@keyframes pd-toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pd-toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.pd-toast__item--success {
  border-left-color: #16a34a;
}

.pd-toast__item--error {
  border-left-color: #dc2626;
}

.pd-toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-top: 1px;
}

.pd-toast__item--success .pd-toast__icon {
  color: #16a34a;
}

.pd-toast__item--error .pd-toast__icon {
  color: #dc2626;
}

.pd-toast__body {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.pd-toast__title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.pd-toast__message {
  color: var(--text-muted);
  font-size: var(--t-xs);
}

.pd-toast__close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  margin-top: -2px;
  margin-right: -4px;
  border-radius: 4px;
  transition: color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

.pd-toast__close:hover {
  color: var(--text);
  background: var(--bg-soft);
}

/* =========================================================
   APPLICATIONS — link cards with rise-up hover effect
   ========================================================= */
.pd-apps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pd-apps__item {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-softer);
  cursor: pointer;
  text-decoration: none;
}

.pd-apps__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.pd-apps__item:hover img {
  transform: scale(1.06);
}

/* Bottom gradient + content overlay */
.pd-apps__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px 22px;
  background: linear-gradient(180deg,
      transparent 0%,
      transparent 35%,
      rgba(28, 25, 23, .55) 75%,
      rgba(28, 25, 23, .85) 100%);
  color: #fff;
  pointer-events: none;
  /* Inner content rises on hover */
  transition: padding .5s var(--ease);
}

.pd-apps__item:hover .pd-apps__overlay {
  padding-bottom: 28px;
}

/* Tag chip — at top of stack, stays put */
.pd-apps__overlay-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 500;
  margin-bottom: 10px;
}

/* Title — rises slightly on hover */
.pd-apps__overlay-title {
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -.005em;
  transition: transform .5s var(--ease);
}

.pd-apps__item:hover .pd-apps__overlay-title {
  transform: translateY(-4px);
}

/* CTA — hidden by default, fades + slides up on hover */
.pd-apps__overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: #fff;
  /* Start hidden below visible area */
  opacity: 0;
  transform: translateY(12px);
  /* Subtle bottom underline accent */
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  align-self: flex-start;
  transition: opacity .5s var(--ease),
    transform .5s var(--ease),
    border-color .3s var(--ease);
}

.pd-apps__item:hover .pd-apps__overlay-cta {
  opacity: 1;
  transform: translateY(0);
}

.pd-apps__overlay-cta i {
  font-size: 1rem;
  transition: transform .3s var(--ease);
}

.pd-apps__item:hover .pd-apps__overlay-cta i {
  transform: translate(2px, -2px);
}

/* =========================================================
   RELATED PRODUCTS
   ========================================================= */
.pd-related__grid {
  /* Uses global .products__grid base — no overrides needed.
     This class exists so we can target it specifically later. */
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---------- 1200px and below ---------- */
@media (max-width: 1200px) {

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

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

/* ---------- 1024px and below ---------- */
@media (max-width: 1024px) {

  /* Documents: keep 2-col but tighten gap so cards have more text room */
  .pd-documents__list {
    gap: 12px;
  }

  /* Make doc card more compact so the right-side action button doesn't push out */
  .pd-doc {
    padding: 14px 16px;
    gap: 12px;
  }

  .pd-doc__icon {
    width: 44px;
    height: 44px;
  }

  .pd-doc__action {
    width: 38px;
    height: 38px;
  }

  /* Specs may already wrap — give label/value a touch more room */
  .pd-hero__specs li {
    padding: 20px 18px;
  }
}

/* ---------- 992px and below ---------- */
@media (max-width: 992px) {
  .pd-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pd-hero__media {
    aspect-ratio: 16/10;
    /* Full-width photo column on stacked layout. No padding, no
       float animation — image fills edge to edge so it doesn't
       wobble or appear to grow while the user is scrolling on
       a touch device. */
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    /* When stacked, photo goes above content for visual punch */
    order: -1;
  }

  .pd-hero__main img {
    animation: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  /* Specs strip: flex wraps cleanly — 2 per row */
  .pd-hero__specs li {
    flex: 1 1 calc(50% - 0px);
    min-width: 50%;
  }

  /* Internal divider grid for 2-col layout (light theme) */
  .pd-hero__specs li:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .pd-hero__specs li:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  /* Disable original ::after vertical dividers — borders handle it now */
  .pd-hero__specs li::after {
    display: none;
  }

  /* Reset edge paddings since we wrap now */
  .pd-hero__specs li {
    padding: 18px 18px !important;
  }

  /* Documents: stack to single column for breathing room */
  .pd-documents__list {
    grid-template-columns: 1fr;
  }

  /* ---------- Related: convert grid → horizontal swipe (1.5 visible) ---------- */
  .pd-related__grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Add padding so first/last cards don't touch screen edges */
    padding: 4px 24px 24px;
    margin-left: -24px;
    margin-right: -24px;
  }

  .pd-related__grid::-webkit-scrollbar {
    display: none;
  }

  .pd-related__grid>* {
    flex: 0 0 calc(65% - 8px);
    scroll-snap-align: start;
    min-width: 0;
  }
}

/* ---------- 768px and below ---------- */
@media (max-width: 768px) {
  .pd-hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  .pd-hero__media-halo {
    filter: blur(16px);
    width: 85%;
    height: 50%;
  }

  /* Section nav already scrollable — just tighten link padding */
  .pd-nav__inner {
    gap: 0;
  }

  .pd-nav__link {
    padding: 14px 14px;
  }

  /* Gallery / Applications / Videos: 2 columns at this size */
  .pd-gallery__grid,
  .pd-apps__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Videos: stack to 1 column on mobile */
  .pd-videos__grid {
    grid-template-columns: 1fr;
  }

  /* Smaller play button on mobile (stack layout means thumbs are wider) */
  .pd-video__play {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  /* Slightly smaller video card title */
  .pd-video__title {
    font-size: var(--t-sm);
  }

  /* ---------- Applications: hover effect always-on (no hover on touch) ---------- */
  .pd-apps__overlay {
    /* Show the "expanded" hover state by default on mobile */
    padding: 20px 22px 28px !important;
  }

  .pd-apps__item .pd-apps__overlay-title {
    transform: translateY(-4px);
  }

  .pd-apps__item .pd-apps__overlay-cta {
    opacity: 1;
    transform: translateY(0);
  }

  /* No transform shifts on touch */
  .pd-apps__item:hover .pd-apps__overlay,
  .pd-apps__item:hover .pd-apps__overlay-title,
  .pd-apps__item:hover .pd-apps__overlay-cta {
    transform: none;
  }

  /* Larger related cards on tablet — 1.5 shown */
  .pd-related__grid>* {
    flex: 0 0 calc(70% - 8px);
  }
}

/* ---------- 576px and below ---------- */
@media (max-width: 576px) {

  /* Quote modal — full screen, stack form rows */
  .pd-quote {
    padding: 0;
  }

  .pd-quote__inner {
    border-radius: 0;
    max-height: 100vh;
    height: 100%;
    padding: 56px 22px 24px;
  }

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

  .pd-quote__title {
    font-size: 1.4rem;
  }

  .pd-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .pd-toast__item {
    min-width: 0;
    max-width: none;
  }

  /* Specs strip: 2 per row → stack to 1 column on small mobile */
  .pd-hero__specs li {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 16px 14px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .pd-hero__specs li:last-child {
    border-bottom: none !important;
  }

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

  .pd-hero__cta .btn {
    justify-content: center;
    width: 100%;
  }

  .pd-gallery__grid,
  .pd-apps__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Documents: more compact still on small screens */
  .pd-doc {
    padding: 12px 14px;
    gap: 10px;
  }

  .pd-doc__icon {
    width: 40px;
    height: 40px;
  }

  .pd-doc__icon i {
    font-size: 1.25rem;
  }

  .pd-doc__action {
    width: 34px;
    height: 34px;
  }

  /* Article slightly tighter */
  .pd-article {
    font-size: var(--t-sm);
  }

  /* Related cards even larger relative to screen — 1.2 shown */
  .pd-related__grid>* {
    flex: 0 0 calc(80% - 8px);
  }
}

/* =========================================================
   LIGHTBOX — gallery viewer (cloned from about page)
   Glass backdrop, large arrows on the viewport edges,
   counter top-left, close top-right.
   ========================================================= */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(28, 25, 23, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity var(--t-base-d) var(--ease);
}

.pd-lightbox.is-open {
  display: flex;
  opacity: 1;
}

.pd-lightbox__inner {
  position: relative;
  max-width: 1100px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.pd-lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: var(--r-md, 12px);
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
  display: block;
}

.pd-lightbox__caption {
  color: rgba(255, 255, 255, .85);
  font-size: var(--t-sm);
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
}

.pd-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

.pd-lightbox__close:hover {
  background: rgba(255, 255, 255, .25);
}

.pd-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 5;
  transition: background var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.pd-lightbox__nav:hover {
  background: rgba(255, 255, 255, .3);
  transform: translateY(-50%) scale(1.05);
}

.pd-lightbox__nav--prev {
  left: 24px;
}

.pd-lightbox__nav--next {
  right: 24px;
}

.pd-lightbox__counter {
  position: absolute;
  top: -38px;
  left: 0;
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, .7);
  letter-spacing: .04em;
}

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

  .pd-lightbox__close {
    top: -38px;
    right: 0;
  }

  .pd-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .pd-lightbox__nav--prev {
    left: 12px;
  }

  .pd-lightbox__nav--next {
    right: 12px;
  }
}