.product-detail {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  padding-block: var(--space-6) var(--space-8);
}
@media (min-width: 900px) { .product-detail { grid-template-columns: 1fr 1fr; } }

.gallery-main {
  aspect-ratio: 4/3;
  background: var(--color-gray-100);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-6); }
.gallery-zoom { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-zoom:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.gallery-zoom-hint { position: absolute; right: var(--space-3); bottom: var(--space-3); padding: 4px 10px; border-radius: 999px; background: rgba(14, 42, 71, .82); color: #fff; font-size: .8125rem; line-height: 1.4; opacity: 0; transition: opacity var(--dur-fast, .15s) ease; pointer-events: none; }
.gallery-zoom:hover .gallery-zoom-hint, .gallery-zoom:focus-visible .gallery-zoom-hint { opacity: 1; }
@media (hover: none) { .gallery-zoom-hint { opacity: 1; } }
.gallery-meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin: 0 0 var(--space-3); min-height: 1.4em; }
.gallery-caption { margin: 0; font-size: var(--fs-small); color: var(--color-gray-700, #4a5866); line-height: 1.5; }
.gallery-caption[hidden] { display: none; }
.gallery-count { margin-left: auto; flex: none; font-size: .8125rem; font-weight: 600; color: var(--color-accent); white-space: nowrap; }
.gallery-thumbs { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.gallery-thumb {
  width: 64px; height: 64px;
  border: 2px solid var(--color-border);
  background: var(--color-gray-100);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active { border-color: var(--color-accent); }

.pd-brand-link { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.pd-brand-link .name { font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-accent); }
.pd-title { margin-bottom: var(--space-3); }
.pd-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.pd-short-desc { font-size: 1.0625rem; margin-bottom: var(--space-5); }
.pd-cta-row { margin-bottom: var(--space-6); }
.pd-secondary-links { display: flex; gap: var(--space-5); font-size: var(--fs-small); }

.pd-section { padding-block: var(--space-7); border-top: 1px solid var(--color-border); }
.pd-section h2 { margin-bottom: var(--space-4); }
.pd-full-desc { max-width: 100ch; }
.pd-full-desc p { font-size: 1.0625rem; line-height: 1.75; margin-bottom: var(--space-4); color: var(--color-gray-900); }
.pd-full-desc .text-block-heading { font-size: 1.125rem; margin: var(--space-6) 0 var(--space-3); }
.pd-full-desc .text-block-list li { font-size: 1.0625rem; }
.pd-full-desc p, .pd-full-desc .text-block-list { max-width: 78ch; }

/* Video: fixed 16:9 box so the page does not jump while the player loads */
.pd-video { position: relative; aspect-ratio: 16 / 9; max-width: 900px; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.pd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* PDF viewer: desktop only. Phone browsers cannot page through an embedded PDF, so they get the buttons. */
.pd-pdf { display: none; }
@media (min-width: 900px) {
  .pd-pdf { display: block; }
  .pd-pdf iframe { width: 100%; height: 780px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-gray-100); }
}

.pd-brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  background: var(--color-gray-100);
  padding: var(--space-5);
  margin-top: var(--space-7);
}

.not-found { text-align: center; padding-block: var(--space-10); }

/* ---- Models table, standards, several videos, downloads list ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-border); border-radius: var(--radius); }
.models-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 480px; }
.models-table th, .models-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.models-table thead th { background: var(--color-navy); color: #fff; font-weight: 600; white-space: nowrap; }
.models-table tbody tr:nth-child(even) { background: var(--color-gray-100, #f4f5f7); }
.models-table tbody tr:last-child td { border-bottom: 0; }
.pd-standards { font-size: var(--fs-body, 1rem); max-width: 80ch; white-space: pre-line; }
.pd-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--space-5); }
.pd-video-item { margin: 0; }
.pd-video-item figcaption { margin-top: 8px; font-weight: 600; }
.pd-downloads { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: 10px; max-width: 900px; }
.pd-downloads li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
.pd-dl-kind { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent, #1a5fa8); flex: 0 0 96px; }
.pd-dl-title { flex: 1; min-width: 180px; font-weight: 600; overflow-wrap: anywhere; }
.pd-dl-actions { display: flex; gap: 8px; }
.pd-dl-actions .btn { padding: 6px 14px; font-size: var(--fs-small); }

/* ---- Zoom view (lightbox) ---- */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; background: rgba(8, 20, 34, .94); color: #fff; }
.lightbox[hidden] { display: none; }
.lb-stage { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; overflow: auto; padding: var(--space-5) 0; min-height: 0; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 4px; cursor: zoom-in; }
.lightbox.is-zoomed .lb-stage { align-items: flex-start; justify-content: flex-start; }
.lightbox.is-zoomed .lb-img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-nav { grid-row: 1; align-self: center; width: 48px; height: 48px; margin: 0 auto; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.lb-close { position: absolute; top: 12px; right: 16px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255, 255, 255, .28); }
.lb-bar { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-5) var(--space-4); font-size: .9375rem; }
.lb-caption { color: #e8eef5; } .lb-caption[hidden] { display: none; }
.lb-count { margin-left: auto; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 44px 1fr 44px; } .lb-nav { width: 36px; height: 36px; font-size: 1.6rem; } }

/* ---- Optional equipment / included accessories ---- */
.pd-tablist { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.pd-tab { padding: 10px 18px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-weight: 600; color: var(--color-gray-700, #4a5866); cursor: pointer; }
.pd-tab:hover { color: var(--color-navy); }
.pd-tab.is-active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.pd-tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.pd-tabs.js-tabs .pd-tabpanel-title { display: none; }
.pd-tabpanel[hidden] { display: none; }
.pd-tabpanel-title { font-size: 1.125rem; margin: var(--space-5) 0 var(--space-3); }
.acc-row { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-5); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); max-width: 100ch; }
.acc-row:first-of-type { border-top: 1px solid var(--color-border); }
.acc-media { display: flex; align-items: center; justify-content: center; height: 100px; background: var(--color-gray-100); border-radius: var(--radius); overflow: hidden; }
.acc-media img { width: 100%; height: 100%; object-fit: contain; }
.acc-media-empty { font-size: 2rem; color: var(--color-gray-300); }
.acc-title { margin: 0 0 var(--space-1); font-size: 1rem; color: var(--color-accent); }
.acc-title a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.acc-desc { margin: 0; line-height: 1.6; color: var(--color-gray-900); }
.acc-desc a { color: var(--color-accent); font-weight: 600; }
@media (max-width: 640px) { .acc-row { grid-template-columns: 96px 1fr; gap: var(--space-3); } .acc-media { height: 80px; } }
