/* Load after editorial-scenes.css. Each overview owns its image, caption and
   footer height; the product-detail browser is deliberately outside this scope. */
.three-m-scene.three-m-featured#oem-match{--overview-art-height:clamp(260px,34svh,350px);--overview-art-width:450px;background:radial-gradient(ellipse at 72% 42%,#b9fff16b,transparent 49%),#00dac8}
.three-m-oem-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6%;align-items:center;padding:26px 0 12px}
.three-m-oem-wordmark{font-size:13px;font-weight:750;letter-spacing:.16em;margin:0 0 12px}
.three-m-oem-copy .three-m-featured-lead{max-width:38ch;font-size:17px;line-height:1.5}
.three-m-oem-copy h2{font-size:clamp(42px,4.5vw,66px)}
.three-m-oem-copy h2 em{color:#114e59}
.three-m-oem-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-top:1px solid #082e3240;padding:20px 0}
.three-m-oem-steps>div{display:grid;grid-template-columns:30px 1fr;gap:3px 9px}
.three-m-oem-steps span{grid-row:1/3;font-size:12px;font-weight:650;padding-top:3px}
.three-m-oem-steps h3{font-size:17px;margin:0}.three-m-oem-steps p{grid-column:2;font-size:13px;line-height:1.45;margin:0}
@media(max-width:700px){.three-m-oem-stage{grid-template-columns:1fr;gap:8px;padding-top:20px}.three-m-oem-steps{grid-template-columns:1fr;gap:16px}.three-m-scene.three-m-featured#oem-match{--overview-art-height:250px}.three-m-oem-copy h2{font-size:42px}}
.three-m-scene.three-m-featured {
  --overview-art-height: clamp(310px, 43svh, 410px);
  --overview-art-width: 510px;
}
.three-m-scene.three-m-featured#pps {
  --overview-art-height: clamp(310px, 43svh, 400px);
  --overview-art-width: 440px;
}
.three-m-scene.three-m-featured#mascaras {
  --overview-art-height: clamp(250px, 32svh, 300px);
  --overview-art-width: 470px;
}
.three-m-scene.three-m-featured#pulido {
  --overview-art-height: clamp(280px, 38svh, 360px);
  --overview-art-width: 920px;
}
.three-m-scene.three-m-featured#herramientas {
  --overview-art-height: clamp(240px, 32svh, 300px);
  --overview-art-width: 720px;
}
.three-m-scene.three-m-featured#adhesivos-selladores {
  --overview-art-height: clamp(260px, 34svh, 330px);
  --overview-art-width: 510px;
}

/* A fixed scene height cannot accommodate translated text, wrapped controls or
   larger replacement photos. Natural rows keep the CTA after the artwork. */
.three-m-scene.three-m-featured > .three-m-featured-inner[data-product-overview] {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}
.three-m-scene.three-m-featured [data-product-overview] > *,
.three-m-scene.three-m-featured [data-product-overview] :is(
  .three-m-abrasive-stage, .three-m-pps-stage, .three-m-cubitron-stage,
  .three-m-mask-stage, .three-m-tape-stage, .three-m-bond-stage
) > * {
  min-width: 0;
  min-height: 0;
}
.three-m-scene.three-m-featured [data-product-overview] :is(
  .three-m-abrasive-stage, .three-m-pps-stage, .three-m-cubitron-stage,
  .three-m-mask-stage, .three-m-tape-stage, .three-m-bond-stage
) {
  height: auto;
  min-height: 0;
  box-sizing: border-box;
}
.three-m-scene.three-m-featured [data-product-overview] .three-m-abrasive-stage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.three-m-scene.three-m-featured [data-product-overview] .three-m-pps-stage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr) minmax(0, .87fr);
}
.three-m-scene.three-m-featured [data-product-overview] .three-m-cubitron-stage {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.three-m-scene.three-m-featured [data-product-overview] .three-m-mask-stage {
  width: 100%;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.three-m-scene.three-m-featured [data-product-overview] .three-m-tape-stage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}
.three-m-scene.three-m-featured [data-product-overview] .three-m-bond-stage {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

/* The photograph and its caption occupy separate grid rows. Padding and gap
   reserve real space for the quiet drop shadow, without clipping the product. */
.three-m-scene.three-m-featured [data-product-overview] figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--overview-art-height) auto;
  align-items: center;
  justify-items: center;
  gap: 22px;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 16px 12px 8px;
  box-sizing: border-box;
}
.three-m-scene.three-m-featured [data-product-overview] .three-m-product-poster {
  grid-row: 1;
  grid-column: 1;
  width: min(100%, var(--overview-art-width)) !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  transform: none !important;
  filter: none;
  will-change: auto;
}
.three-m-scene.three-m-featured [data-product-overview] .three-m-product-poster img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: none !important;
  scale: none !important;
  rotate: none !important;
}
.three-m-scene.three-m-featured [data-product-overview] figure figcaption {
  position: static;
  inset: auto;
  grid-row: 2;
  grid-column: 1;
  align-self: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.three-m-scene.three-m-featured [data-product-overview] :is(
  .three-m-tools-heading, .three-m-polish-heading
) > * {
  min-width: 0;
}
.three-m-scene.three-m-featured [data-product-overview] h2 {
  overflow-wrap: break-word;
}
.three-m-scene.three-m-featured [data-product-overview] :is(
  .three-m-abrasive-bottom, .three-m-pps-bottom, .three-m-tools-bottom,
  .three-m-remaining-bottom, .three-m-polish-foot, .three-m-tape-bottom
) {
  position: relative;
  flex-shrink: 0;
  flex-wrap: wrap;
  min-width: 0;
  margin-top: 12px;
}
.three-m-scene.three-m-featured [data-product-overview] .three-m-featured-actions {
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
  flex-wrap: wrap;
}
.three-m-scene.three-m-featured [data-product-overview] .three-m-scene-enquiry,
.three-m-scene.three-m-featured [data-product-overview] .three-m-official-link {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
}

@media (min-width: 761px) and (max-width: 1059px) {
  .three-m-scene.three-m-featured { --overview-art-height: 330px; }
  .three-m-scene.three-m-featured#pps { --overview-art-height: 340px; }
  .three-m-scene.three-m-featured#mascaras,
  .three-m-scene.three-m-featured#adhesivos-selladores { --overview-art-height: 280px; }
  .three-m-scene.three-m-featured#pulido { --overview-art-height: 250px; }
  .three-m-scene.three-m-featured#herramientas { --overview-art-height: 270px; }
  .three-m-scene.three-m-featured [data-product-overview] .three-m-bond-stage {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}
@media (min-width: 761px) and (max-width: 900px) {
  .three-m-scene.three-m-featured [data-product-overview] .three-m-pps-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 28px;
  }
  .three-m-scene.three-m-featured [data-product-overview] .three-m-pps-copy {
    grid-column: 1 / -1;
  }
  .three-m-scene.three-m-featured [data-product-overview] .three-m-pps-notes li::before {
    display: none;
  }
}
@media (max-width: 760px) {
  .three-m-scene.three-m-featured { --overview-art-height: clamp(235px, 72vw, 320px); }
  .three-m-scene.three-m-featured#pps { --overview-art-height: 270px; }
  .three-m-scene.three-m-featured#mascaras { --overview-art-height: 255px; }
  .three-m-scene.three-m-featured#pulido { --overview-art-height: clamp(160px, 52vw, 250px); }
  .three-m-scene.three-m-featured#herramientas { --overview-art-height: 240px; }
  .three-m-scene.three-m-featured#adhesivos-selladores { --overview-art-height: 260px; }
  .three-m-scene.three-m-featured [data-product-overview] figure {
    gap: 18px;
    padding: 14px 4px 8px;
  }
  .three-m-scene.three-m-featured [data-product-overview] :is(
    .three-m-abrasive-stage, .three-m-mask-stage, .three-m-tape-stage, .three-m-bond-stage
  ) {
    grid-template-columns: minmax(0, 1fr);
  }
  .three-m-scene.three-m-featured [data-product-overview] .three-m-pps-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .three-m-scene.three-m-featured [data-product-overview] .three-m-featured-actions {
    gap: 14px 20px;
  }
  .three-m-scene.three-m-featured [data-product-overview] .three-m-polish-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* These horizontal tools need a shared text-and-image row, not a full-width
   heading followed by another full-width stage. Keep the footer in normal flow. */
@media (min-width: 761px) {
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) > [data-product-overview] {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
    grid-template-areas: "chapter chapter" "copy art" "footer footer";
    grid-template-rows: auto auto auto;
    column-gap: clamp(24px, 3vw, 60px);
    row-gap: 24px;
    align-items: center;
  }
  .three-m-scene.three-m-featured#herramientas > [data-product-overview] {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr);
    grid-template-areas: "chapter chapter" "art copy" "footer footer";
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) {
    --overview-art-height: clamp(290px, 24vw, 430px);
    --overview-art-width: 100%;
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] > .three-m-featured-top {
    grid-area: chapter;
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] :is(.three-m-polish-heading, .three-m-tools-heading) {
    grid-area: copy;
    display: block;
    padding: 0;
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] h2 {
    font-size: clamp(38px, 3.8vw, 64px);
    line-height: 1.03;
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] .three-m-featured-lead {
    margin-top: 24px;
    padding: 0;
    max-width: 28ch;
    font-size: clamp(16px, 1.3vw, 21px);
    line-height: 1.45;
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] figure {
    grid-area: art;
    margin: 0;
    padding: 12px 8px 0;
    gap: 14px;
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] figcaption {
    max-width: none;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    font-size: 12px;
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] :is(.three-m-polish-foot, .three-m-tools-bottom) {
    grid-area: footer;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  }
}
@media (min-width: 761px) and (max-width: 1059px) {
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) > [data-product-overview] {
    column-gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
  .three-m-scene.three-m-featured#herramientas > [data-product-overview] {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] h2 {
    font-size: clamp(34px, 4.2vw, 44px);
  }
}
@media (max-width: 760px) {
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] .three-m-featured-lead {
    margin-top: 14px;
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] figure {
    margin-top: 8px !important;
    padding: 8px 0;
    gap: 12px;
    grid-template-rows: auto auto;
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] .three-m-product-poster {
    width: 100% !important;
    height: auto !important;
  }
  .three-m-scene.three-m-featured:is(#pulido, #herramientas) [data-product-overview] .three-m-product-poster img {
    height: auto;
  }
}
