/* Product page layout: gallery + buy box, claims marquee, stats band, feature sections.
   Loaded after oslo.css / kanva-home.css / nav.css; tokens come from nav.css. */

body.pdp-page {
  --rp-radius: 20px;
  --rp-pad-y: clamp(64px, 8vw, 112px);
  background: #fff;
}
body.pdp-page main { padding-top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Top: gallery + buy box ---------- */
.rp-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(28px, 3.5vw, 64px);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
  padding: 4px var(--rh-gutter) 0;
  box-sizing: border-box;
}

.rp-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
}

/* Static photos under the carousel */
.rp-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.pdp-page .rp-stack__item {
  display: block;
  margin: 0;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: var(--rp-radius);
  background-color: var(--rh-surface-2);
}
body.pdp-page .rp-stack__item--wide {
  grid-column: 1 / -1;
  aspect-ratio: 1 / 1;
}

.rp-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--rp-radius);
  background: var(--rh-surface-2);
}
body.pdp-page .rp-stage .rp-main {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  margin: 0;
  border: 0;
  border-radius: 0;
  touch-action: pan-y;
}

.rp-badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--rh-ink);
  font: 600 11px/1 var(--rh-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  pointer-events: none;
}
.rp-badge svg { width: 14px; height: 14px; }

.rp-arrow {
  position: absolute;
  z-index: 3;
  top: auto;
  right: 18px;
  bottom: 48px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--rh-ink);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transform: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rp-arrow:hover { box-shadow: 0 6px 22px rgba(15, 23, 42, 0.2); }
.rp-arrow:active { transform: scale(0.94); }
.rp-arrow:disabled { opacity: 0.45; box-shadow: none; cursor: default; }
.rp-arrow:disabled:active { transform: none; }
.rp-arrow svg { width: 16px; height: 16px; }
.rp-arrow--prev { right: 62px; left: auto; }
.rp-arrow--next { right: 18px; }
.rp-stage.is-single .rp-arrow,
.rp-stage.is-single .rp-dots { display: none; }

.rp-dots {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 6px;
}
.rp-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.4);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.rp-dot.is-active { width: 20px; background: #fff; }

/* Thumb rail (also the dev editor's gallery manager) */
body.pdp-page .rp-thumbs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  width: auto;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
body.pdp-page:not(.dev-editing) .rp-thumbs { display: none; }
body.pdp-page .rp-thumbs::-webkit-scrollbar { display: none; }
body.pdp-page .rp-thumbs .pdp-thumb {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--rh-surface-2);
  opacity: 1;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
body.pdp-page .rp-thumbs .pdp-thumb:hover { border-color: #cbd5e1; }
body.pdp-page .rp-thumbs .pdp-thumb.is-active { border-color: var(--rh-ink); }

/* ---------- Buy box ---------- */
.rp-buy {
  position: sticky;
  /* Taller than the viewport: stick by the bottom edge so the whole box can be read */
  top: min(calc(var(--rh-bar-h) + 20px), calc(100vh - var(--rp-buy-h, 0px) - 24px));
  min-width: 0;
  padding: 6px 0 0;
  color: var(--rh-ink);
  font-family: var(--rh-sans);
}

.rp-review-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 20px;
  color: var(--rh-body);
  font: 500 14px/1.3 var(--rh-sans);
}
.rp-review-summary__stars { display: inline-flex; align-items: center; gap: 2px; color: #FF4500; }
.rp-review-summary__stars svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.rp-review-summary__text { color: var(--rh-body); }

.rp-title {
  margin: 14px 0 6px;
  color: var(--rh-ink);
  font: 700 clamp(34px, 3.4vw, 46px)/1.02 var(--rh-display);
  letter-spacing: -0.025em;
}
.rp-subtitle {
  margin: 0;
  color: var(--rh-ink);
  font: 400 18px/1.4 var(--rh-sans);
}

.rp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.rp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--rh-ink);
  font: 400 15px/1 var(--rh-sans);
}
.rp-pill--price { border-color: var(--rh-tint-line); background: var(--rh-tint-strong); }
.rp-pill--price strong { font-weight: 700; }
.rp-pill--promo {
  border-color: var(--rh-tint-line);
  background: var(--rh-tint-strong);
  color: var(--rh-cta);
  font-size: 12px;
  font-weight: 700;
}

.rp-lede { margin: 0; color: var(--rh-ink); font: 400 16px/1.6 var(--rh-sans); }
.rp-lede strong { font-weight: 600; }

.rp-textlink {
  display: inline-block;
  margin-top: 12px;
  color: var(--rh-ink);
  font: 500 15px/1.2 var(--rh-sans);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.rp-textlink:hover { text-decoration-thickness: 2px; }
.rp-textlink--light { color: #fff; margin-top: 0; }

.rp-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.rp-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px 8px 8px;
  border: 0;
  border-radius: 0;
}
body.pdp-page .rp-feat .rp-feat__media {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  background-color: var(--rh-surface-2);
  background-size: cover;
  background-position: center;
}
body.pdp-page .rp-feat .rp-feat__media--icon {
  display: grid;
  place-items: center;
  color: var(--rh-ink);
}
body.pdp-page .rp-feat .rp-feat__media--icon svg {
  display: block;
  width: 19px;
  height: 19px;
}
body.pdp-page .rp-feat .buybox-feat-label {
  min-width: 0;
  color: var(--rh-ink);
  font: 500 13px/1.2 var(--rh-sans);
  overflow-wrap: anywhere;
}

/* Offers */
.rp-offers { margin-top: 30px; }
.rp-offers__title {
  margin: 0 0 12px;
  color: var(--rh-ink);
  font: 600 16px/1.3 var(--rh-sans);
}
.rp-offers__list { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }

.rp-offer {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  border: 1.5px solid var(--rh-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rp-offer:hover { border-color: #cbd5e1; }
.rp-offer.is-selected { border-color: var(--rh-ink); background: var(--rh-surface); }
.rp-offer:has(input:focus-visible) { outline: 2px solid var(--rh-cta); outline-offset: 2px; }
.rp-offer > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.pdp-page .rp-offer__media {
  position: relative;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background-color: var(--rh-surface-2);
  background-size: cover;
  background-position: center;
}
.rp-offer__body { display: grid; gap: 3px; min-width: 0; }
.rp-offer__badge {
  justify-self: start;
  margin-bottom: 2px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--rh-tint-strong);
  color: #9a3412;
  font: 600 10px/1.2 var(--rh-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rp-offer__name { font: 600 16px/1.25 var(--rh-sans); }
.rp-offer__sub { color: var(--rh-body); font: 400 13px/1.4 var(--rh-sans); }

.rp-offer__price {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-items: end;
  column-gap: 6px;
  row-gap: 3px;
  text-align: right;
}
.rp-offer__now { grid-column: 1 / -1; color: var(--rh-ink); font: 500 19px/1.1 var(--rh-mono); letter-spacing: -0.02em; }
.rp-offer__was { color: var(--rh-muted); font: 400 13px/1.2 var(--rh-mono); text-decoration: line-through; }
.rp-offer__save {
  white-space: nowrap;
  color: var(--rh-cta);
  font: 700 10px/1.2 var(--rh-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rp-offer__radio {
  width: 22px;
  height: 22px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.rp-offer.is-selected .rp-offer__radio {
  border-color: var(--rh-ink);
  background: var(--rh-ink);
  box-shadow: inset 0 0 0 4px #fff;
}

.rp-offer__beads {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 2px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--rh-line);
  list-style: none;
}
.rp-offer__beads li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rh-body);
  font: 500 12px/1.2 var(--rh-sans);
}
body.pdp-page .rp-offer__bead {
  position: relative;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background-color: var(--rh-surface-2);
  background-size: cover;
  background-position: center;
}

/* CTA */
.rp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 58px;
  margin-top: 16px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--rh-cta);
  color: #fff;
  font: 600 17px/1 var(--rh-sans);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.rp-cta:hover { background: var(--rh-cta-hover); }
.rp-cta:active { transform: scale(0.99); }
.rp-cta:disabled { opacity: 0.6; cursor: progress; }
.rp-cta:focus-visible { outline: 2px solid var(--rh-ink); outline-offset: 3px; }
.rp-cta--inline { width: auto; margin-top: 0; height: 54px; }

.rp-buy .purchase-error { margin: 10px 0 0; }

.rp-assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--rh-body);
  font: 500 13px/1.2 var(--rh-sans);
}
.rp-assure li { display: inline-flex; align-items: center; gap: 6px; }
.rp-assure svg { width: 16px; height: 16px; color: var(--rh-ink); }

.pdp-buy-ugc {
  display: none;
  margin: 14px 0 0;
}
.pdp-buy-ugc:has(.pdp-buy-ugc__video.has-upload),
body.dev-mode .pdp-buy-ugc { display: block; }
.pdp-buy-ugc__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}
.pdp-buy-ugc__video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #0f172a;
}
.pdp-buy-ugc__credit {
  position: absolute;
  right: 4px;
  bottom: 7px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 8px);
  padding: 4px 5px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .28);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #cbd5e1;
  font: 500 7px/1.1 var(--rh-sans);
  letter-spacing: .01em;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pdp-buy-ugc__credit svg {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  fill: currentColor;
}
body:not(.dev-mode) .pdp-buy-ugc__video:not(.has-upload) { display: none; }
.pdp-buy-ugc__video > .slot-upload-video,
body.pdp-page .rp-stats__media > .slot-upload-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0f172a;
  pointer-events: none;
}

.pdp-video-crop[hidden] { display: none !important; }
.pdp-video-crop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: auto;
  background: rgba(15, 23, 42, .72);
}
.pdp-video-crop__dialog {
  width: min(100%, 460px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--rh-border, #e2e8f0);
  border-radius: 18px;
  background: #fff;
  color: var(--rh-ink, #0f172a);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
  font-family: var(--rh-sans, Inter, sans-serif);
}
.pdp-video-crop__dialog h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.pdp-video-crop__dialog > p { margin: 7px 0 16px; color: var(--rh-body, #475569); font-size: 14px; }
.pdp-video-crop__frame {
  position: relative;
  width: auto;
  height: min(52dvh, 444px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
  touch-action: none;
  cursor: default;
}
.pdp-video-crop__frame video { width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none; }
.pdp-video-crop__selection {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  border: 2px solid #ff4500;
  border-radius: 3px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .48);
  touch-action: none;
  cursor: grab;
}
.pdp-video-crop__selection:active { cursor: grabbing; }
.pdp-video-crop__zoom { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; color: var(--rh-body, #475569); font-size: 13px; }
.pdp-video-crop__zoom input { width: 100%; accent-color: #ff4500; }
.pdp-video-crop__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.pdp-video-crop__actions button { min-height: 40px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #0f172a; font: 600 12px/1 var(--rh-sans, Inter, sans-serif); cursor: pointer; }
.pdp-video-crop__actions [data-pdp-crop-apply] { border-color: #ff4500; background: #ff4500; color: #fff; }
body.pdp-video-crop-open { overflow: hidden; }

.rp-ship {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--rh-surface);
  color: var(--rh-ink);
  font: 400 13px/1.3 var(--rh-sans);
}

/* Product page review follow-up CTA */
body.pdp-page .pdp-review-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin: 48px 24px 72px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 24px;
  background: var(--rh-ink);
}
body.pdp-page .pdp-review-cta > .seo-upload-img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}
body.pdp-page .pdp-review-cta.has-upload::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, .97), rgba(15, 23, 42, .88));
  content: "";
  pointer-events: none;
}
body.pdp-page .pdp-review-cta > :not(.seo-upload-img):not(.upload-hint):not(.upload-canva-size) { position: relative; z-index: 2; }
body.pdp-page .pdp-review-cta .tools-h2 { margin: 0; color: #fff; }
body.pdp-page .pdp-review-cta p { max-width: 34rem; margin: 14px 0 0; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.6; }
body.pdp-page .pdp-review-cta .tools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 17px 30px;
  border-radius: 999px;
  background: var(--rh-cta);
  color: #fff;
  font: 600 15px/1 var(--rh-sans);
  white-space: nowrap;
  text-decoration: none;
}
body.pdp-page .pdp-review-cta .tools-btn:hover { background: var(--rh-cta-hover); }
body.pdp-page .pdp-review-cta .tools-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rp-ship__time { font: 500 13px/1 var(--rh-mono); }
.rp-ship__dot {
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
  animation: rp-pulse 2s ease-out infinite;
}
@keyframes rp-pulse {
  70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Accordions (buy box + features) */
.rp-acc { margin-top: 30px; border-top: 1px solid var(--rh-line); }
body.pdp-page .rp-acc__item {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rh-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
body.pdp-page .rp-acc__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--rh-ink);
  font: 600 16px/1.3 var(--rh-sans);
  list-style: none;
  cursor: pointer;
}
body.pdp-page .rp-acc__item > summary::-webkit-details-marker { display: none; }
body.pdp-page .rp-acc__item > summary::before { content: none; }
body.pdp-page .rp-acc__item > summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat;
  transition: background-size 0.2s ease;
}
body.pdp-page .rp-acc__item[open] > summary::after {
  background-size: 14px 1.6px, 1.6px 0;
}
.rp-acc__body,
body.pdp-page .rp-split__acc .rp-acc__item > p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--rh-body);
  font: 400 15px/1.6 var(--rh-sans);
}
.rp-acc__body { container: rp-accordion / inline-size; }
.rp-acc__body p { margin: 0 0 10px; }
.rp-acc__body p:last-child { margin-bottom: 0; }

.rp-ship-times { display: grid; margin: 6px 0 0; padding: 0; list-style: none; }
.rp-ship-times li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rh-line);
  color: var(--rh-ink);
  font-size: 14px;
}
.rp-ship-times li span:first-child {
  color: var(--rh-muted);
  font: 600 12px/1.6 var(--rh-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Claims marquee ---------- */
.rp-claims {
  margin-top: clamp(56px, 7vw, 96px);
  overflow: hidden;
  border-top: 1px solid var(--rh-line);
  border-bottom: 1px solid var(--rh-line);
  background: var(--rh-surface);
}
.rp-claims__track {
  display: flex;
  width: max-content;
  animation: rh-ticker 42s linear infinite;
}
.rp-claims__group {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 18px 48px 18px 0;
  list-style: none;
}
.rp-claims__group li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rh-ink);
  font: 500 18px/1 var(--rh-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.rp-claims__group li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.2 2.6 2.6L14 7.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    var(--rh-cta);
}
@media (prefers-reduced-motion: reduce) {
  .rp-claims__track { animation: none; }
}

/* ---------- Section heads ---------- */
.rp-head {
  max-width: var(--rh-max);
  margin: 0 auto clamp(32px, 4vw, 48px);
  padding: 0 var(--rh-gutter);
  box-sizing: border-box;
}
.rp-head h2,
.rp-split__copy h2 {
  max-width: 22ch;
  margin: 0;
  color: var(--rh-ink);
  font: 700 clamp(30px, 3.6vw, 50px)/1.04 var(--rh-display);
  letter-spacing: -0.025em;
}
.rp-head h2 em { font-style: normal; font-weight: inherit; color: inherit; }
.rp-head p {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--rh-body);
  font: 400 17px/1.55 var(--rh-sans);
}
.rp-head--center { text-align: center; }
.rp-head--center h2,
.rp-head--center p { margin-left: auto; margin-right: auto; }

.rp-kicker {
  margin: 0 0 14px;
  color: var(--rh-cta);
  font: 600 12px/1 var(--rh-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rp-split__lede {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--rh-body);
  font: 400 17px/1.55 var(--rh-sans);
}

/* ---------- Dark stats band ---------- */
.rp-stats { background: var(--rh-ink); color: #fff; }
.rp-stats__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  max-width: var(--rh-max);
  margin: 0 auto;
  padding: var(--rp-pad-y) var(--rh-gutter);
  box-sizing: border-box;
}
body.pdp-page .rp-stats__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--rp-radius);
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
}
/* The split-media video keeps its own uploaded aspect ratio and spans the full slot width. */
body.pdp-page .rp-stats__media:has(> .slot-upload-video) {
  height: auto;
  aspect-ratio: auto;
}
body.pdp-page .rp-stats__media > .slot-upload-video {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.rp-stats__title {
  max-width: 17ch;
  margin: 0 0 12px;
  color: #fff;
  font: 700 clamp(32px, 4vw, 54px)/1.02 var(--rh-display);
  letter-spacing: -0.025em;
}
.rp-stats__lede {
  max-width: 46ch;
  margin: 0;
  color: #cbd5e1;
  font: 400 16px/1.5 var(--rh-sans);
}
.rp-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}
.rp-stats__grid li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.rp-stats__feature-title { color: #fff; font: 600 16px/1.25 var(--rh-sans); }
.rp-stats__feature-body { color: #cbd5e1; font: 400 13px/1.45 var(--rh-sans); }
.rp-stats__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(28px, 3vw, 40px);
}

/* ---------- Comparison ---------- */
.rp-compare { padding: var(--rp-pad-y) 0; background: #fff; }
.rp-compare--inline { padding: 24px 0 0; }
.rp-compare__wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--rh-gutter);
  box-sizing: border-box;
}
.rp-compare__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--rh-ink);
  font: 400 15px/1.45 var(--rh-sans);
}
.rp-compare__table th,
.rp-compare__table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--rh-line);
  text-align: left;
  vertical-align: middle;
}
.rp-compare__table thead th {
  border-bottom-color: var(--rh-ink);
  font: 700 17px/1.2 var(--rh-display);
}
.rp-compare__product-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 112px;
  text-align: center;
}
.rp-compare__product-image {
  display: block;
  width: 76px;
  height: 76px;
  border: 1px solid var(--rh-line);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}
.rp-compare__table .is-us .rp-compare__product-image {
  border-color: rgba(255, 255, 255, 0.16);
  background: #0b0f17;
}
.rp-compare__table tbody th { width: 28%; font-weight: 500; }
.rp-compare__table td { color: var(--rh-body); }
.rp-compare__table thead th:first-child { width: 28%; }
.rp-compare__table .is-us {
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
.rp-compare__table thead .is-us { border-bottom-color: rgba(255, 255, 255, 0.3); }
.rp-compare__table thead .is-us { border-radius: 16px 16px 0 0; }
.rp-compare__table tbody tr:last-child .is-us { border-radius: 0 0 16px 16px; border-bottom-color: transparent; }
.rp-compare__cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.rp-compare__mark {
  display: inline-flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  font: 700 15px/1 var(--rh-sans);
}
.rp-compare__mark--yes {
  border-radius: 50%;
  color: #fff;
  background: var(--rh-cta);
}
.rp-compare__mark--no {
  color: var(--rh-body);
  font-size: 19px;
}

/* ---------- Reasons ---------- */
.rp-reasons { padding: 0 0 var(--rp-pad-y); }
.rp-reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--rh-gutter);
  list-style: none;
  box-sizing: border-box;
}
.rp-reasons__grid li {
  padding: 36px 28px;
  border: 1px solid var(--rh-line);
  border-radius: var(--rp-radius);
  text-align: center;
}
.rp-reasons__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rh-tint);
  font-size: 28px;
  line-height: 1;
}
.rp-reasons__grid h3 {
  margin: 18px 0 8px;
  color: var(--rh-ink);
  font: 700 20px/1.2 var(--rh-display);
  letter-spacing: -0.01em;
}
.rp-reasons__grid p { margin: 0; color: var(--rh-body); font: 400 15px/1.55 var(--rh-sans); }

/* ---------- Features split ---------- */
.rp-split { background: var(--rh-surface); }
.rp-split {
  --rh-ink: #fff;
  --rh-body: #cbd5e1;
  --rh-muted: #94a3b8;
  --rh-line: rgba(255, 255, 255, 0.16);
  --rh-surface: #0f172a;
  color: #fff;
}
.rp-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  max-width: var(--rh-max);
  margin: 0 auto;
  padding: var(--rp-pad-y) var(--rh-gutter);
  box-sizing: border-box;
}
body.pdp-page .rp-split__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--rp-radius);
  background-color: var(--rh-surface-2);
  background-size: cover;
  background-position: center;
}
body.pdp-page .rp-split__inner > .kv-bento-hotspots {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.rp-split__acc { display: grid; gap: 8px; margin-top: 28px; }
body.pdp-page .rp-split__acc .rp-acc__item {
  border: 1px solid var(--rh-line);
  border-radius: 14px;
  background: #172033;
}
body.pdp-page .rp-split__acc .rp-acc__item > summary { padding: 16px 18px; font-size: 15px; }
body.pdp-page .rp-split__acc .rp-acc__item > p { padding: 0 18px 18px; }

/* Swap the FAQ to the dark band and keep its accordion legible. */
body.pdp-page .rp-split__acc .rp-acc__item > summary,
body.pdp-page .rp-split__acc .rp-acc__item > p {
  color: var(--rh-ink);
}
body.pdp-page .rp-split__acc .rp-acc__item > p {
  color: var(--rh-body);
}

/* Keep the product feature section on a clean white canvas. */
.rp-stats {
  background: #fff;
  color: var(--rh-ink);
}
.rp-stats__title,
.rp-stats__feature-title {
  color: var(--rh-ink);
}
.rp-stats__lede,
.rp-stats__feature-body {
  color: var(--rh-body);
}
.rp-stats__grid {
  border-top-color: var(--rh-line);
}
.rp-stats__grid li {
  border-bottom-color: var(--rh-line);
}
body.pdp-page .rp-stats__media {
  background-color: var(--rh-surface-2);
}

.rp-forearm-stat {
  display: grid;
  gap: 34px;
  margin: 24px 0 8px;
  padding: clamp(24px, 5vw, 54px) clamp(22px, 6vw, 64px);
  border: 1px solid #f1f5f9;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.07);
}
.rp-forearm-stat__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
}
.rp-forearm-stat__metric {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.rp-forearm-stat__metric strong {
  color: var(--rh-ink);
  font: 700 clamp(80px, 14vw, 150px)/0.95 var(--rh-mono);
  letter-spacing: -0.08em;
  font-variant-numeric: tabular-nums;
}
.rp-forearm-stat__metric > span {
  color: var(--rh-muted);
  font: 600 clamp(18px, 2.5vw, 26px)/1.45 var(--rh-sans);
}
.rp-forearm-stat__chart {
  min-width: 0;
  padding-top: 6px;
}
.rp-forearm-stat__bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(18px, 3.5vw, 38px);
  min-height: 0;
  padding: 0 8px;
}
.rp-forearm-stat__bar-group {
  display: grid;
  grid-template-rows: 360px auto;
  justify-items: center;
  height: auto;
  color: var(--rh-muted);
  text-align: center;
}
.rp-forearm-stat__bar-graph {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 360px;
}
.rp-forearm-stat__bar-group strong {
  margin: 0 0 14px;
  font: 600 27px/1.2 var(--rh-mono);
  font-variant-numeric: tabular-nums;
}
.rp-forearm-stat__bar-group--noticed strong { color: var(--rh-cta); }
.rp-forearm-stat__bar-fill {
  display: block;
  width: min(100%, 126px);
  height: var(--bar-height);
  flex: none;
  border-radius: 14px 14px 0 0;
  background: var(--rh-cta);
}
.rp-forearm-stat__bar-group--noticed .rp-forearm-stat__bar-fill { --bar-height: 78%; }
.rp-forearm-stat__bar-group--other .rp-forearm-stat__bar-fill {
  --bar-height: 22%;
  background: #dbe1e9;
}
.rp-forearm-stat__bar-label {
  align-self: start;
  padding-top: 18px;
  color: var(--rh-body);
  font: 500 17px/1.4 var(--rh-sans);
}
.rp-forearm-stat__detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: start;
  padding-top: 32px;
}
.rp-forearm-stat__copy p {
  margin: 0 0 18px;
  color: var(--rh-ink);
  font: 400 clamp(17px, 2.25vw, 25px)/1.55 var(--rh-sans);
}
.rp-forearm-stat__copy p + p {
  color: var(--rh-body);
}
.rp-forearm-stat__copy small {
  display: block;
  margin-top: 36px;
  color: #94a3b8;
  font: 400 15px/1.45 var(--rh-sans);
}
@container rp-accordion (max-width: 700px) {
  .rp-forearm-stat {
    gap: 22px;
    margin-top: 18px;
    padding: 22px 18px;
    border-radius: 20px;
  }
  .rp-forearm-stat__top {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 14px;
  }
  .rp-forearm-stat__metric { gap: 8px; }
  .rp-forearm-stat__metric strong { font-size: clamp(54px, 14vw, 76px); }
  .rp-forearm-stat__metric > span { font-size: clamp(15px, 4vw, 19px); }
  .rp-forearm-stat__bars {
    min-height: 0;
    gap: 14px;
    padding: 0 2px;
  }
  .rp-forearm-stat__bar-group { grid-template-rows: 180px auto; }
  .rp-forearm-stat__bar-graph { height: 180px; }
  .rp-forearm-stat__bar-group strong { margin-bottom: 10px; font-size: 17px; }
  .rp-forearm-stat__bar-fill { width: min(100%, 74px); border-radius: 9px 9px 0 0; }
  .rp-forearm-stat__bar-label { padding-top: 12px; font-size: 12px; }
  .rp-forearm-stat__detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 22px;
  }
  .rp-forearm-stat__copy p { margin-bottom: 12px; font-size: 15px; line-height: 1.55; }
  .rp-forearm-stat__copy small { margin-top: 20px; font-size: 12px; }
}

/* ---------- Floating add-to-cart ---------- */
body.pdp-page.kanva-home .sticky-cart--home .sticky-cart-btn {
  background: var(--rh-cta);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 69, 0, 0.32);
}
body.pdp-page.kanva-home .sticky-cart--home .sticky-cart-btn:hover {
  background: var(--rh-cta-hover);
  box-shadow: 0 12px 30px rgba(255, 69, 0, 0.38);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .rp-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 0;
  }
  .rp-gallery { gap: 0; }
  .rp-stage { border-radius: 0; }
  .rp-stack { display: none; }
  body.pdp-page .rp-thumbs { display: none; }
  body.pdp-page.dev-mode.dev-editing .rp-thumbs { display: flex; padding: 10px 16px 0; }
  .rp-arrow { right: 14px; bottom: 38px; width: 30px; height: 30px; }
  .rp-arrow--prev { right: 52px; left: auto; }
  .rp-arrow--next { right: 14px; }
  .rp-arrow svg { width: 14px; height: 14px; }
  .rp-dots { right: 14px; bottom: 14px; }
  .rp-badge { top: 14px; left: 14px; }
  .rp-buy { position: static; padding: 0 16px; }

  .rp-stats__inner,
  .rp-split__inner { grid-template-columns: minmax(0, 1fr); }
  body.pdp-page .rp-stats__media { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  body.pdp-page { --rp-radius: 16px; }
  .rp-title { font-size: 34px; }
  .rp-subtitle { font-size: 16px; }
  .rp-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rp-feat { flex-direction: column; gap: 6px; padding: 10px 6px; text-align: center; }
  body.pdp-page .rp-feat .buybox-feat-label { font-size: 12px; white-space: normal; }
  body.pdp-page .pdp-review-cta { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 30px; min-height: 320px; margin: 32px 16px 48px; padding: 34px 24px; }
  body.pdp-page .pdp-review-cta > div { max-width: 250px; }
  body.pdp-page .pdp-review-cta .tools-btn { justify-self: stretch; }

  .rp-offer {
    grid-template-columns: 48px minmax(0, 1fr) auto 20px;
    gap: 12px;
    padding: 12px;
  }
  body.pdp-page .rp-offer__media { width: 48px; height: 48px; }
  .rp-offer__name { font-size: 15px; }
  .rp-offer__now { font-size: 17px; }
  .rp-offer__radio { width: 20px; height: 20px; }

  .rp-claims__group li { font-size: 16px; }
  .rp-claims__group { padding: 14px 36px 14px 0; gap: 36px; }

  .rp-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-stats__grid li { padding: 20px 14px 20px 0; }
  .rp-stats__actions .rp-cta--inline { width: 100%; }

  .rp-reasons__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rp-reasons__grid li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 4px 16px;
    padding: 20px;
    text-align: left;
  }
  .rp-reasons__icon { grid-row: span 2; width: 52px; height: 52px; font-size: 24px; }
  .rp-reasons__grid h3 { margin: 2px 0 0; font-size: 18px; }

  .rp-compare__wrap { padding: 0 12px; }
  .rp-compare__table { font-size: 13px; }
  .rp-compare__table th,
  .rp-compare__table td { padding: 14px 10px; }
  .rp-compare__table thead th { font-size: 14px; }
  .rp-compare__product-head { min-height: 84px; gap: 7px; }
  .rp-compare__product-image { width: 52px; height: 52px; border-radius: 9px; }
  .rp-compare__table tbody th,
  .rp-compare__table thead th:first-child { width: 30%; }
  .rp-compare__cell { gap: 5px; }
  .rp-compare__mark { flex-basis: 15px; width: 15px; height: 15px; font-size: 13px; }
  .rp-compare__mark--no { font-size: 17px; }

}
