/* Quadpack-inspired product detail: main gallery + summary */
.met-showproduct.st-pd {
  --st-pd-ink: #212121;
  --st-pd-muted: #4a4a4a;
  --st-pd-line: #d8d8d8;
  --st-pd-accent: #212121;
  --st-pd-btn: #212121;
  --st-pd-thumb-border: rgba(200, 200, 200, 0.7);
  background: #fff;
}

.met-showproduct.st-pd .met-showproduct-head.page-content {
  padding: 1.5rem 0 2.5rem;
  background: #fff;
}

.st-pd-top {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.62fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: stretch;
  width: 100%;
}

.st-pd-gallery {
  position: relative;
  min-width: 0;
}

.st-pd-main {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f1ef;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-pd-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-pd-zoom {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--st-pd-accent);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.st-pd-main:hover .st-pd-zoom {
  transform: translate(-50%, -50%) scale(1);
}

.st-pd-thumbs-wrap {
  position: relative;
  margin-top: 0.35rem;
  padding: 1rem 0 0.5rem;
}

.st-pd-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: pointer;
}

.st-pd-thumbs::-webkit-scrollbar {
  display: none;
}

.st-pd-thumbs-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--st-pd-accent);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-35%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.st-pd-gallery:hover .st-pd-thumbs-nav,
.st-pd-thumbs-wrap:focus-within .st-pd-thumbs-nav {
  opacity: 1;
  visibility: visible;
}

.st-pd-thumbs-nav.is-disabled {
  opacity: 0.25 !important;
  pointer-events: none;
}

.st-pd-thumbs-nav[data-st-pd-prev] {
  left: -0.65rem;
}

.st-pd-thumbs-nav[data-st-pd-next] {
  right: -0.65rem;
}

.st-pd-thumb {
  flex: 0 0 calc(25% - 0.95rem);
  width: calc(25% - 0.95rem);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid var(--st-pd-thumb-border);
  background: #f3f1ef;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
}

.st-pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-pd-thumb.is-active,
.st-pd-thumb:hover {
  border-color: #656565;
}

.st-pd-summary {
  --st-pd-type-scale: 1;
  --st-pd-lh-scale: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(1.65rem * var(--st-pd-type-scale) * var(--st-pd-lh-scale));
  color: var(--st-pd-ink);
  height: 100%;
}

.st-pd-summary h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(clamp(2.665rem, 4.03vw, 3.835rem) * var(--st-pd-type-scale)); /* +30% */
  font-weight: 400;
  line-height: calc(1.18 * var(--st-pd-lh-scale));
  letter-spacing: 0.01em;
  color: var(--st-pd-ink);
}

.st-pd-desc {
  margin: 0;
  font-size: calc(1.53rem * var(--st-pd-type-scale)); /* 1.175 * 1.3 */
  line-height: calc(1.7 * var(--st-pd-lh-scale));
  color: var(--st-pd-muted);
  font-weight: 400;
  max-width: none;
}

/* Features + Downloadables headings */
.st-pd-features h3,
.st-pd-downloads h3 {
  margin: 0 0 calc(0.9rem * var(--st-pd-type-scale) * var(--st-pd-lh-scale));
  font-size: calc(2.015rem * var(--st-pd-type-scale)); /* 1.55 * 1.3 */
  font-weight: 700;
  color: var(--st-pd-ink);
  line-height: calc(1.25 * var(--st-pd-lh-scale));
}

.st-pd-features ul + h3 {
  margin-top: calc(1.75rem * var(--st-pd-type-scale) * var(--st-pd-lh-scale));
}

.st-pd-features ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--st-pd-muted);
  font-size: calc(1.46rem * var(--st-pd-type-scale)); /* 1.125 * 1.3 */
  line-height: calc(1.8 * var(--st-pd-lh-scale));
}

.st-pd-features li {
  position: relative;
  padding-left: calc(1.35rem * var(--st-pd-type-scale));
}

/* Outside markers hang past the summary clip and look cut in half. */
.st-pd-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc((1lh - 0.36em) / 2);
  width: 0.36em;
  height: 0.36em;
  border-radius: 50%;
  background: currentColor;
}

.st-pd-features li + li {
  margin-top: calc(0.5rem * var(--st-pd-type-scale) * var(--st-pd-lh-scale));
}

.st-pd-downloads {
  margin-top: auto;
  padding-top: calc(1.75rem * var(--st-pd-type-scale) * var(--st-pd-lh-scale));
}

/* Desktop fit: pack title → Enquire as one block (no flex gap before downloads) */
.st-pd-fit-desktop .st-pd-summary .st-pd-downloads,
.st-pd-summary.is-fitting .st-pd-downloads,
.st-pd-summary.is-fit-locked .st-pd-downloads {
  margin-top: 0;
}

/* Locked: right panel outer box matches left gallery; content fills via type/lh scale */
.st-pd-fit-desktop .st-pd-summary.is-fit-locked {
  justify-content: flex-start;
  overflow: hidden;
}

.st-pd-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  gap: calc(0.95rem * var(--st-pd-type-scale) * var(--st-pd-lh-scale));
}

.st-pd-actions > a:not(.st-pd-enquiry) {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: calc(0.75rem * var(--st-pd-type-scale));
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: calc(1.05rem * var(--st-pd-type-scale) * var(--st-pd-lh-scale)) calc(1.4rem * var(--st-pd-type-scale));
  border: 1px solid var(--st-pd-ink);
  color: var(--st-pd-ink);
  text-decoration: none;
  font-size: calc(1.69rem * var(--st-pd-type-scale)); /* 1.3 * 1.3 */
  font-weight: 700;
  background: #fff;
  line-height: calc(1.3 * var(--st-pd-lh-scale));
}

.st-pd-actions > a:not(.st-pd-enquiry) .st-pd-dl-icon {
  font-size: calc(2.21rem * var(--st-pd-type-scale)); /* 1.7 * 1.3 */
  line-height: 1;
  flex: 0 0 auto;
}

.st-pd-actions > a:not(.st-pd-enquiry):hover {
  background: #f7f7f7;
}

/* Trial: one catalog sheet button matches Insights Download PDF. */
.st-pd-actions > a.st-pd-sheet {
  border-color: #CFB080;
  background: #CFB080;
  color: #fff;
}

.st-pd-actions > a.st-pd-sheet:hover {
  border-color: #B89560;
  background: #B89560;
  color: #fff;
}

.st-pd-enquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.5rem * var(--st-pd-type-scale, 1));
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  padding: calc(1.05rem * var(--st-pd-type-scale, 1) * var(--st-pd-lh-scale, 1)) calc(1.4rem * var(--st-pd-type-scale, 1));
  background: var(--st-pd-btn);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: calc(1.69rem * var(--st-pd-type-scale, 1)); /* 1.3 * 1.3 */
  line-height: calc(1.3 * var(--st-pd-lh-scale, 1));
  border: 0;
}

.st-pd-enquiry:hover {
  opacity: 0.9;
  color: #fff !important;
}

/* Lightbox modal */
.st-pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(147, 147, 147, 0.45);
  backdrop-filter: blur(2px);
  padding: 2rem;
}

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

.st-pd-lightbox__inner {
  position: relative;
  max-width: min(92vw, 56rem);
  max-height: 90vh;
  background: #fff;
  padding: 2.5rem 3rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.st-pd-lightbox__inner img {
  display: block;
  max-width: min(75vh, 100%);
  max-height: calc(90vh - 5rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.st-pd-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #222;
}

.st-pd-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.75);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
}

.st-pd-lightbox__nav[data-st-pd-lb-prev] {
  left: max(1rem, 4vw);
}

.st-pd-lightbox__nav[data-st-pd-lb-next] {
  right: max(1rem, 4vw);
}

body.st-pd-lightbox-open {
  overflow: hidden;
}

.met-showproduct.st-pd .met-showproduct-head .product-para,
.met-showproduct.st-pd .met-showproduct-head .product-intro,
.met-showproduct.st-pd .met-showproduct-head .fngallery,
.met-showproduct.st-pd .met-showproduct-head .slick-slider {
  display: none !important;
}

/* You might also like — Quadpack-style related carousel */
.st-pd-related-wrap {
  padding: 2.75rem 0 3.5rem !important;
  background: #f3f3f3;
  border-top: 0;
}

.st-pd-related__title {
  margin: 0 0 1.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.665rem, 4.03vw, 3.835rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--st-pd-ink);
  line-height: 1.18;
}

.st-pd-related__carousel {
  position: relative;
}

.st-pd-related__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
  padding: 0.25rem 0 0.5rem;
}

.st-pd-related__card {
  min-width: 0;
  text-decoration: none !important;
  color: inherit;
}

.st-pd-related__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f1ef;
}

.st-pd-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.st-pd-related__card:hover .st-pd-related__media img,
.st-pd-related__card:focus-within .st-pd-related__media img {
  transform: scale(1.04);
}

.st-pd-related__card h3 {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  color: #212121;
}

.st-pd-related__nav {
  display: none !important;
}

@media (max-width: 1199px) {
  .st-pd-related__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 991px) {
  .st-pd-top {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  /* Mobile: ignore desktop height-lock / type shrink; readable stacked layout */
  .st-pd-summary,
  .st-pd-fit-mobile .st-pd-summary,
  .st-pd-summary.is-fit-locked {
    --st-pd-type-scale: 1 !important;
    --st-pd-lh-scale: 1 !important;
    height: auto !important;
    align-self: stretch !important;
    gap: 1.15rem;
    overflow: visible !important;
  }

  .st-pd-summary h1 {
    font-size: clamp(2rem, 6.8vw, 2.54rem) !important;
    line-height: 1.22 !important;
  }

  .st-pd-related__title {
    font-size: clamp(1.9rem, 6.2vw, 2.54rem);
  }

  .st-pd-desc {
    font-size: 1.15rem !important;
    line-height: 1.65 !important;
  }

  .st-pd-features h3,
  .st-pd-downloads h3 {
    font-size: 1.35rem !important;
    margin-bottom: 0.65rem !important;
    line-height: 1.3 !important;
  }

  .st-pd-features ul + h3 {
    margin-top: 1.15rem !important;
  }

  .st-pd-features ul {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    padding-left: 0 !important;
  }

  .st-pd-features li {
    padding-left: 1.15rem !important;
  }

  .st-pd-features li + li {
    margin-top: 0.35rem !important;
  }

  .st-pd-downloads {
    margin-top: 0.35rem !important;
    padding-top: 0.35rem !important;
  }

  .st-pd-actions {
    width: 100%;
    gap: 0.75rem !important;
  }

  .st-pd-actions > a:not(.st-pd-enquiry),
  .st-pd-enquiry {
    width: 100%;
    max-width: none;
    justify-content: center;
    font-size: 1.12rem !important;
    padding: 0.95rem 1.1rem !important;
    line-height: 1.35 !important;
  }

  .st-pd-actions > a:not(.st-pd-enquiry) .st-pd-dl-icon {
    font-size: 1.35rem !important;
  }

  .st-pd-thumb {
    flex-basis: calc(33.333% - 0.85rem);
    width: calc(33.333% - 0.85rem);
  }

  .st-pd-thumbs-wrap {
    padding-top: 0.75rem;
  }

  .st-pd-lightbox__inner {
    padding: 1.5rem;
  }

  .st-pd-related__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .st-pd-summary {
    gap: 1rem;
  }

  .st-pd-summary h1 {
    font-size: clamp(1.9rem, 8vw, 2.3rem) !important;
  }

  .st-pd-desc {
    font-size: 1.1rem !important;
  }

  .st-pd-features h3,
  .st-pd-downloads h3 {
    font-size: 1.22rem !important;
  }

  .st-pd-features ul {
    font-size: 1rem !important;
  }

  .st-pd-related__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .st-pd-related__title {
    margin-bottom: 1.25rem;
  }

  .st-pd-related__card h3 {
    font-size: 0.95rem;
  }
}

/* Footer layout/typography: use assets/site-footer.css (homepage standard).
   Do not override with st-pd-foot grid/type rules — they fight the newsletter footer. */
