/* Cinematic editorial product detail experience. Scoped to the expanded view. */
.product-viewport.product-detail-open > .rail,
.product-viewport.product-detail-open > .arrow,
.product-viewport.product-detail-open > .dots,
.product-viewport.product-detail-open > #comparison-preview,
.product-viewport.product-detail-open > .gallery-topline {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .48s ease !important;
}
.product-viewport.product-detail-open > .rail > .story {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .48s ease !important;
}
.product-detail-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow: hidden;
  color: #f5f7f9;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  visibility: hidden;
  pointer-events: none;
}
.product-detail-layer.is-active,
.product-detail-layer.is-closing {
  visibility: visible;
  pointer-events: auto;
}
.product-detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 24% 48%, rgba(38, 70, 91, .48), transparent 43%),
    linear-gradient(112deg, #101b25 0%, #101820 52%, #17232d 100%);
  opacity: 0;
  transition: opacity .72s cubic-bezier(.2,.75,.2,1);
}
.product-detail-layer.is-active .product-detail-backdrop { opacity: 1; }
.product-detail-visual {
  position: absolute;
  inset: 0 auto 0 0;
  width: 54%;
  pointer-events: auto;
}
.product-detail-visual::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 0;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(transparent, rgba(255,255,255,.13), transparent);
}
.product-detail-morph-image {
  position: fixed;
  z-index: 3;
  display: block;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  filter: drop-shadow(0 34px 50px rgba(0,0,0,.28));
  transition:
    left .92s cubic-bezier(.18,.78,.2,1),
    top .92s cubic-bezier(.18,.78,.2,1),
    width .92s cubic-bezier(.18,.78,.2,1),
    height .92s cubic-bezier(.18,.78,.2,1),
    border-radius .92s ease,
    opacity .32s ease;
  will-change: left, top, width, height;
}
.product-detail-content {
  position: absolute;
  inset: 0 0 0 54%;
  box-sizing: border-box;
  padding: clamp(5rem, 10vh, 7.5rem) clamp(2rem, 5.4vw, 6.5rem) 3.5rem clamp(2rem, 4.5vw, 5.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .68s ease .28s, transform .78s cubic-bezier(.2,.7,.2,1) .22s;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.product-detail-layer.is-active .product-detail-content {
  opacity: 1;
  transform: translateY(0);
}
.product-detail-close {
  position: absolute;
  z-index: 5;
  top: 1.5rem;
  right: 1.7rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font: 300 1.8rem/1 "Poppins", sans-serif;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.product-detail-close:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.55);
  transform: rotate(90deg);
}
.product-detail-close:focus-visible {
  outline: 2px solid #8ec9ed;
  outline-offset: 4px;
}
.product-detail-eyebrow {
  margin: 0 0 .85rem;
  color: #91b7cc;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.product-detail-heading {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.product-detail-brand {
  margin: .85rem 0 0;
  color: #aab9c4;
  font-size: .82rem;
  letter-spacing: .06em;
}
.product-detail-summary {
  max-width: 58ch;
  margin: 1.6rem 0 2.3rem;
  color: #d2dbe1;
  font-size: .91rem;
  line-height: 1.85;
}
.product-detail-spec-section {
  margin: 0 0 2.1rem;
}
.product-detail-section-title {
  margin: 0 0 .85rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(255,255,255,.17);
  color: #fff;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .035em;
}
.product-detail-spec-row {
  display: grid;
  grid-template-columns: minmax(112px, .38fr) minmax(0, 1fr);
  gap: 1rem;
  padding: .52rem 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.product-detail-spec-label {
  color: #91a4b2;
  font-size: .72rem;
  line-height: 1.55;
}
.product-detail-spec-value {
  color: #edf2f5;
  font-size: .76rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.product-detail-year {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.15rem;
  color: #9db1bf;
  font-size: .72rem;
  letter-spacing: .05em;
}
.product-detail-year::before {
  content: "";
  width: 18px;
  height: 1px;
  background: #7fa7bd;
}
.product-detail-layer.is-closing .product-detail-content,
.product-detail-layer.is-closing .product-detail-backdrop {
  opacity: 0;
  transition-duration: .55s;
}
.product-detail-layer.is-closing .product-detail-content { transform: translateY(12px); }
.product-viewport .story img.bg { cursor: zoom-in; }
.product-viewport .story img.bg:focus-visible {
  outline: 3px solid #087db5;
  outline-offset: 4px;
}
@media (max-width: 1099px) {
  .product-detail-content {
    inset: 0 0 0 48%;
    padding: 5.5rem 2rem 2.5rem;
  }
  .product-detail-visual { width: 48%; }
  .product-detail-morph-image {
    transition-duration: .82s;
  }
}
@media (max-width: 700px) {
  /* The expanded editorial treatment is intentionally desktop-first. On smaller
     screens, keep the same readable detail layer without changing the carousel. */
  .product-detail-visual { inset: 0 0 auto; width: 100%; height: 42%; }
  .product-detail-visual::after { display: none; }
  .product-detail-content {
    inset: 42% 0 0;
    padding: 1.5rem 1.35rem 2rem;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .product-detail-morph-image {
    transition-duration: .72s;
  }
  .product-detail-close { top: .8rem; right: .9rem; width: 40px; height: 40px; }
  .product-detail-heading { font-size: clamp(2rem, 9vw, 3rem); }
  .product-detail-summary { margin: 1rem 0 1.5rem; font-size: .84rem; }
  .product-detail-spec-section { margin-bottom: 1.5rem; }
  .product-detail-spec-row { grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr); gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .product-detail-layer *,
  .product-detail-layer *::before,
  .product-detail-layer *::after,
  .product-viewport.product-detail-open > * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Product detail refinement: preserve the shared site header and use a clean light canvas. */
#site-header {
  position: relative !important;
  z-index: 100002 !important;
}
#site-header #navbar {
  position: relative !important;
  z-index: 100003 !important;
}
.product-detail-layer {
  inset: 72px 0 0 !important;
  z-index: 100000 !important;
  color: #263442 !important;
}
.product-detail-backdrop {
  background: #f7f9fb !important;
}
.product-detail-visual {
  background: transparent !important;
}
.product-detail-visual::after {
  background: linear-gradient(transparent, rgba(32,54,72,.12), transparent) !important;
}
.product-detail-morph-image {
  background: transparent !important;
  border-radius: 24px !important;
  filter: drop-shadow(0 22px 34px rgba(28,45,60,.14)) !important;
}
.product-detail-content {
  inset: 0 0 0 46% !important;
  padding: clamp(1.25rem, 3vh, 2rem) clamp(1.5rem, 3.3vw, 3.5rem) 1.25rem !important;
  overflow: hidden !important;
  color: #263442 !important;
  scrollbar-color: rgba(40,60,80,.24) transparent !important;
}
.product-detail-eyebrow { color: #52758c !important; margin-bottom: .4rem !important; }
.product-detail-heading {
  color: #182a39 !important;
  font-size: clamp(1.8rem, 3vw, 3.25rem) !important;
  line-height: 1.02 !important;
}
.product-detail-brand { color: #667887 !important; margin-top: .4rem !important; }
.product-detail-summary {
  color: #465866 !important;
  font-size: .82rem !important;
  line-height: 1.45 !important;
  margin: .75rem 0 .9rem !important;
  max-width: 66ch !important;
}
.product-detail-specs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 1.4rem !important;
  row-gap: .35rem !important;
  align-content: start !important;
}
.product-detail-spec-section {
  margin: 0 0 .45rem !important;
  min-width: 0 !important;
}
.product-detail-section-title {
  color: #203747 !important;
  border-bottom-color: #d9e1e7 !important;
  font-size: .76rem !important;
  padding-bottom: .28rem !important;
  margin-bottom: .2rem !important;
}
.product-detail-spec-row {
  grid-template-columns: minmax(78px, .42fr) minmax(0, 1fr) !important;
  gap: .5rem !important;
  padding: .2rem 0 !important;
  border-bottom-color: #e7edf1 !important;
}
.product-detail-spec-label {
  color: #687b89 !important;
  font-size: .65rem !important;
  line-height: 1.32 !important;
}
.product-detail-spec-value {
  color: #293b48 !important;
  font-size: .68rem !important;
  line-height: 1.34 !important;
}
.product-detail-year {
  color: #687b89 !important;
  font-size: .65rem !important;
  margin: 0 0 .35rem !important;
}
.product-detail-year::before { background: #8ba6b8 !important; }
.product-detail-close {
  top: .8rem !important;
  right: 1rem !important;
  border-color: #cbd6de !important;
  background: rgba(255,255,255,.88) !important;
  color: #263b4b !important;
}
.product-detail-close:hover {
  background: #eaf0f4 !important;
  border-color: #9aabb8 !important;
}
.product-detail-close:focus-visible { outline-color: #287da8 !important; }

@media (max-width: 1099px) and (min-width: 701px) {
  .product-detail-content {
    inset: 0 0 0 43% !important;
    padding: 1.1rem 1.2rem .8rem !important;
  }
  .product-detail-specs { column-gap: .8rem !important; }
  .product-detail-spec-row { grid-template-columns: minmax(70px, .4fr) minmax(0, 1fr) !important; }
}
@media (max-width: 700px) {
  .product-detail-layer { inset: 64px 0 0 !important; }
  .product-detail-content {
    inset: 42% 0 0 !important;
    padding: .85rem 1rem 1rem !important;
    overflow-y: auto !important;
    border-top: 1px solid #e0e7ec !important;
  }
  .product-detail-specs { grid-template-columns: 1fr !important; }
  .product-detail-heading { font-size: clamp(1.65rem, 8vw, 2.5rem) !important; }
  .product-detail-summary { margin: .55rem 0 .7rem !important; }
  .product-detail-spec-section { margin-bottom: .5rem !important; }
  .product-detail-close { top: .55rem !important; right: .65rem !important; }
  .product-detail-morph-image { border-radius: 18px !important; }
}


/* Final layout guardrails: keep the product artwork in its own left column. */
.product-detail-layer.is-active .product-detail-visual { width: 46% !important; }
.product-detail-morph-image {
  z-index: 2 !important;
  max-width: 40vw !important;
  object-fit: contain !important;
}
.product-detail-content {
  z-index: 4 !important;
  inset: 0 0 0 46% !important;
  background: transparent !important;
}
@media (max-width: 700px) {
  .product-detail-layer.is-active .product-detail-visual { width: 100% !important; }
  .product-detail-morph-image {
    max-width: 84vw !important;
    max-height: 31vh !important;
  }
  .product-detail-content { inset: 42% 0 0 !important; }
}

/* Product cards must use a neutral canvas; do not expose the legacy blue card fill. */
html body .product-viewport .rail > .story,
html body .product-viewport .rail > .story > picture,
html body .product-viewport .rail > .story > img.bg {
  background-color: #fff !important;
}
html body .product-viewport .rail > .story::after {
  display: none !important;
  background: none !important;
}
html body .product-viewport .rail > .story > img.bg {
  mix-blend-mode: normal !important;
}


/* Polished reverse morph: the floating artwork travels back to its captured
   source rectangle before the carousel is revealed again. */
.product-detail-layer.is-closing .product-detail-backdrop {
  opacity: 0 !important;
  transition: opacity .72s cubic-bezier(.2,.75,.2,1) !important;
}
.product-detail-layer.is-closing .product-detail-content {
  opacity: 0 !important;
  transform: translateY(10px) !important;
  transition: opacity .38s ease, transform .42s ease !important;
}
.product-detail-layer.is-closing .product-detail-morph-image {
  opacity: 0 !important;
  transition:
    left .92s cubic-bezier(.18,.78,.2,1),
    top .92s cubic-bezier(.18,.78,.2,1),
    width .92s cubic-bezier(.18,.78,.2,1),
    height .92s cubic-bezier(.18,.78,.2,1),
    opacity .28s ease .64s !important;
}

/* Clear editorial hierarchy for product specifications. */
.product-detail-content {
  padding-top: clamp(1.6rem, 4vh, 3rem) !important;
}
.product-detail-eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  letter-spacing: .16em !important;
  font-size: .62rem !important;
}
.product-detail-eyebrow::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: #9bb0be;
}
.product-detail-heading {
  letter-spacing: -.045em !important;
  line-height: 1.04 !important;
  margin-top: .2rem !important;
}
.product-detail-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: .3rem .65rem;
  border: 1px solid #dce5eb;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #587083 !important;
  font-size: .68rem !important;
  letter-spacing: .025em !important;
}
.product-detail-summary {
  max-width: 60ch !important;
  color: #4b5d6b !important;
  font-size: .84rem !important;
  line-height: 1.6 !important;
  margin: .85rem 0 1.1rem !important;
}
.product-detail-specs {
  column-gap: .85rem !important;
  row-gap: .65rem !important;
}
.product-detail-spec-section {
  padding: .75rem .85rem .65rem !important;
  border: 1px solid #e2e9ee !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.78) !important;
  box-shadow: 0 2px 8px rgba(34,55,72,.035) !important;
}
.product-detail-section-title {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  color: #2b4658 !important;
  font-size: .69rem !important;
  font-weight: 700 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase;
  border-bottom: 1px solid #e7edf1 !important;
  margin-bottom: .35rem !important;
}
.product-detail-spec-row {
  grid-template-columns: minmax(88px, .43fr) minmax(0, 1fr) !important;
  gap: .6rem !important;
  padding: .34rem 0 !important;
  border-bottom: 1px solid #edf1f4 !important;
}
.product-detail-spec-row:last-child { border-bottom: 0 !important; }
.product-detail-spec-label {
  color: #7a8b97 !important;
  font-size: .64rem !important;
  line-height: 1.42 !important;
}
.product-detail-spec-value {
  color: #263c4b !important;
  font-size: .7rem !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}
.product-detail-year {
  margin: .4rem 0 .65rem !important;
}

/* Product artwork sits on a consistent white stage. The old blue hero-card
   fill and gradient are explicitly removed from every gallery image wrapper. */
html body .product-viewport .rail > .story {
  background: #fff !important;
  background-image: none !important;
}
html body .product-viewport .rail > .story > picture {
  position: absolute !important;
  inset: 0 0 auto !important;
  display: block !important;
  width: 100% !important;
  height: 58% !important;
  background: #fff !important;
  isolation: isolate !important;
}
html body .product-viewport .rail > .story > picture > img.bg,
html body .product-viewport .rail > .story > img.bg {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  z-index: 1 !important;
  object-fit: contain !important;
}
html body .product-viewport .rail > .story::before,
html body .product-viewport .rail > .story::after {
  background: none !important;
  box-shadow: none !important;
}
html body .product-viewport .rail > .story > .story-content {
  z-index: 2 !important;
  background: #fff !important;
}
@media (max-width: 700px) {
  html body .product-viewport .rail > .story > picture { height: 54% !important; }
  .product-detail-specs { grid-template-columns: 1fr !important; }
  .product-detail-spec-section { padding: .65rem .75rem .55rem !important; }
}

/* Images inside picture elements fill a white image stage, rather than
   inheriting any legacy blue card canvas through transparent pixels. */
html body .product-viewport .rail > .story > picture > img.bg {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 1rem 1.25rem .5rem !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  background-color: #fff !important;
}


/* Detail-view polish v1: rounded image only after the morph reaches its zoomed state,
   plus one consistent, scrollable specification layout for every product. */
.product-detail-morph-image {
  border-radius: 0 !important;
  transition:
    left .92s cubic-bezier(.18,.78,.2,1),
    top .92s cubic-bezier(.18,.78,.2,1),
    width .92s cubic-bezier(.18,.78,.2,1),
    height .92s cubic-bezier(.18,.78,.2,1),
    border-radius .72s cubic-bezier(.2,.7,.2,1),
    opacity .32s ease !important;
}
.product-detail-layer.is-active .product-detail-morph-image {
  border-radius: 26px !important;
}
.product-detail-layer.is-closing .product-detail-morph-image {
  border-radius: 0 !important;
}

/* The information column is the only scrolling region; its structure is identical
   across products, regardless of how many specification fields are available. */
.product-detail-content {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable;
  padding: 2.2rem clamp(1.5rem, 3.3vw, 3.5rem) 2.5rem !important;
}
.product-detail-specs {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .65rem !important;
  align-content: start !important;
  padding-bottom: 1rem;
}
.product-detail-spec-section {
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  padding: .85rem 1rem .7rem !important;
  border: 1px solid #e2e9ee !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.84) !important;
}
.product-detail-section-title {
  margin: 0 0 .35rem !important;
  padding: 0 0 .45rem !important;
  min-height: 0 !important;
  font-size: .7rem !important;
  line-height: 1.35 !important;
}
.product-detail-spec-row {
  grid-template-columns: minmax(120px, .38fr) minmax(0, 1fr) !important;
  gap: 1rem !important;
  padding: .48rem 0 !important;
  align-items: start;
}
.product-detail-spec-label {
  font-size: .69rem !important;
  line-height: 1.5 !important;
}
.product-detail-spec-value {
  font-size: .74rem !important;
  line-height: 1.55 !important;
}
.product-detail-summary {
  margin: .8rem 0 1rem !important;
  max-width: 62ch !important;
  line-height: 1.65 !important;
}
.product-detail-year {
  margin: .25rem 0 .6rem !important;
}
.product-detail-close {
  position: fixed !important;
  top: calc(72px + .8rem) !important;
  right: 1rem !important;
}
@media (max-width: 1099px) and (min-width: 701px) {
  .product-detail-content {
    padding: 1.6rem 1.25rem 2rem !important;
  }
  .product-detail-spec-row {
    grid-template-columns: minmax(100px, .38fr) minmax(0, 1fr) !important;
    gap: .7rem !important;
  }
  .product-detail-close { top: calc(72px + .55rem) !important; }
}
@media (max-width: 700px) {
  .product-detail-layer.is-active .product-detail-morph-image {
    border-radius: 20px !important;
  }
  .product-detail-layer.is-closing .product-detail-morph-image {
    border-radius: 0 !important;
  }
  .product-detail-content {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: .9rem 1rem 1.5rem !important;
  }
  .product-detail-specs {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .55rem !important;
  }
  .product-detail-spec-row {
    grid-template-columns: minmax(104px, .4fr) minmax(0, 1fr) !important;
    gap: .65rem !important;
  }
  .product-detail-close {
    top: calc(64px + .5rem) !important;
    right: .65rem !important;
  }
}


/* Follow-up correction: make the zoomed product photograph visibly rounded,
   and restore the catalogue card's taller pre-tightening proportions. */
.product-detail-layer.is-active .product-detail-morph-image {
  border-radius: 30px !important;
  clip-path: inset(0 round 30px) !important;
  overflow: hidden !important;
}
.product-detail-layer.is-closing .product-detail-morph-image {
  border-radius: 0 !important;
  clip-path: inset(0 round 0) !important;
}
@media (max-width: 700px) {
  .product-detail-layer.is-active .product-detail-morph-image {
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
  }
}

/* Restore the product cards' original taller footprint. Keep the card copy
   in normal flow so the action buttons cannot sit on top of the bullet text. */
@media (min-width: 901px) {
  html body .product-viewport .rail > .story {
    height: min(78svh, 700px) !important;
    max-height: calc(100svh - 120px) !important;
    min-height: 440px !important;
  }
  html body .product-viewport .rail > .story > .story-content {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: .28rem !important;
    padding: .65rem .65rem 1rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: none !important;
  }
  html body .product-viewport .rail > .story .story-teaser {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }
  html body .product-viewport .rail > .story .story-actions {
    position: static !important;
    flex: 0 0 auto !important;
    margin: .45rem 0 0 !important;
    padding: .25rem 0 .1rem !important;
  }
}

/* Detail view: remove the vertical image/content separator (and its mobile
   horizontal equivalent) so the two areas read as one continuous canvas. */
.product-detail-visual::after {
  display: none !important;
  content: none !important;
}
.product-detail-content {
  border-left: 0 !important;
  border-top: 0 !important;
}
@media (max-width: 700px) {
  .product-detail-content {
    border-left: 0 !important;
    border-top: 0 !important;
  }
}


/* After a detail-view return, do not mistake the stationary pointer or restored image focus for a fresh card hover. */
.product-viewport.suppress-card-hover .rail > .story .story-actions {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
