/* Scroll lock safeguard: the document itself must remain the scroll container. */
html { overflow-x: clip !important; overflow-y: auto !important; height: auto !important; scroll-behavior: smooth; }
body.legacy-prostate-page { overflow: visible !important; width: 100%; max-width: 100%; height: auto !important; min-height: 100%; touch-action: pan-y !important; }

:root {
  --radius: 0.625rem;
  --background: oklch(0.975 0.006 247);
  --foreground: oklch(0.22 0.035 252);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.129 0.042 264.695);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.129 0.042 264.695);
  --primary: oklch(0.36 0.13 255);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.968 0.007 247.896);
  --secondary-foreground: oklch(0.208 0.042 265.755);
  --muted: oklch(0.968 0.007 247.896);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --accent: oklch(0.7 0.19 43);
  --accent-foreground: oklch(0.99 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(0.929 0.013 255.508);
  --input: oklch(0.929 0.013 255.508);
  --ring: oklch(0.704 0.04 256.788);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --sidebar: oklch(0.984 0.003 247.858);
  --sidebar-foreground: oklch(0.129 0.042 264.695);
  --sidebar-primary: oklch(0.208 0.042 265.755);
  --sidebar-primary-foreground: oklch(0.984 0.003 247.858);
  --sidebar-accent: oklch(0.968 0.007 247.896);
  --sidebar-accent-foreground: oklch(0.208 0.042 265.755);
  --sidebar-border: oklch(0.929 0.013 255.508);
  --sidebar-ring: oklch(0.704 0.04 256.788);
}

/* The legacy sales-page CSS is loaded by the page route to preserve its exact visual layout. */
.legacy-prostate-page {
  min-height: 100vh;
  background: var(--background);
  scroll-behavior: smooth;
}

.legacy-prostate-page #order {
  scroll-margin-top: 92px;
}

.legacy-prostate-page img {
  max-width: 100%;
}

/* Modern clinical authority redesign. Legacy selectors preserve copy and section order. */
.legacy-prostate-page {
  --clinical: var(--primary);
  --clinical-deep: oklch(0.25 0.095 255);
  --clinical-soft: oklch(0.95 0.025 250);
  --warm-action: var(--accent);
  --surface: oklch(0.995 0.002 250);
  --ink-soft: oklch(0.47 0.03 252);
  overflow-x: hidden;
  overflow-y: visible;
  color: var(--foreground);
  font-family: var(--font-sans);
  background: var(--background);
}

.legacy-prostate-page .section_nav > div:first-child {
  background: var(--clinical-deep) !important;
}

.legacy-prostate-page .section_nav .nav {
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  border: 1px solid color-mix(in oklab, var(--clinical) 12%, transparent);
  box-shadow: 0 12px 34px color-mix(in oklab, var(--clinical-deep) 10%, transparent);
  backdrop-filter: blur(16px);
}

.legacy-prostate-page .section_nav .nav a {
  color: var(--clinical-deep);
  transition: color .2s ease, transform .2s ease;
}

.legacy-prostate-page .section_nav .nav a:hover {
  color: var(--warm-action);
  transform: translateY(-1px);
}

.legacy-prostate-page :is(.btnS1, .blob, .orderForm button, .btn_scroll_buy a) {
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--warm-action) !important;
  box-shadow: 0 12px 26px color-mix(in oklab, var(--warm-action) 34%, transparent) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.legacy-prostate-page :is(.btnS1, .blob, .orderForm button, .btn_scroll_buy a):hover {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.1);
  box-shadow: 0 18px 34px color-mix(in oklab, var(--warm-action) 42%, transparent) !important;
}

.legacy-prostate-page .title,
.legacy-prostate-page h2,
.legacy-prostate-page h3,
.legacy-prostate-page h4 {
  letter-spacing: 0 !important;
}

.legacy-prostate-page .title {
  color: var(--clinical-deep) !important;
}

.legacy-prostate-page :is(.section__02, .section__04, .section__06, .section__09, .section__12, .section__reviews) {
  background-color: var(--surface) !important;
}

/* Keep the hero price artwork readable at every desktop size. */
.legacy-prostate-page .section__01 .boxS1 {
  isolation: isolate;
}

.legacy-prostate-page .section__01 .boxS1 > div {
  width: 100%;
  height: 100%;
}

.legacy-prostate-page .section__01 .boxS1 > div > img:first-child {
  display: block;
  width: 100% !important;
  height: 100%;
  object-fit: contain;
}

.legacy-prostate-page .section__01 .boxS1 :is(.old, .new) {
  width: 100%;
  margin: 0 !important;
  line-height: 1 !important;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 2px 5px rgba(0, 0, 0, 0.7);
}

.legacy-prostate-page .section__01 .boxS1 .old {
  top: 25px;
  font-size: 24px !important;
}

.legacy-prostate-page .section__01 .boxS1 .new {
  top: 64px;
  font-size: 32px !important;
}

.legacy-prostate-page .section__01 .boxS1 .off {
  bottom: -8px;
  left: 50% !important;
  width: 72px !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.legacy-prostate-page :is(.section__03, .section__05, .section__07, .section__10, .section__11, .section__13) {
  background-color: var(--clinical-soft) !important;
}

.legacy-prostate-page :is(.box_s1, .boxS5, .boxS7, .boxS11, .boxS12, .boxS13, .boxReviews, .formBox) {
  border-color: color-mix(in oklab, var(--clinical) 16%, transparent) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 40px color-mix(in oklab, var(--clinical-deep) 9%, transparent) !important;
}

.legacy-prostate-page :is(.boxS5, .boxS11) {
  height: auto !important;
  min-height: 0;
}

.legacy-prostate-page .boxS5 h2 {
  color: var(--clinical-deep) !important;
}

.legacy-prostate-page .boxS5 p {
  color: var(--foreground) !important;
}

/* Keep the benefits artwork and copy in separate, readable columns. */
.legacy-prostate-page .section__05 {
  background: var(--clinical-soft) !important;
  padding-block: 64px !important;
}

.legacy-prostate-page .section__05 .containerS5 > .row {
  align-items: center;
  row-gap: 32px;
}

.legacy-prostate-page .section__05 .imgS5.dS5 {
  position: static !important;
  display: block !important;
  width: min(100%, 470px) !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain;
}

.legacy-prostate-page .section__05 .imgS5.mS5 {
  display: none !important;
}

.legacy-prostate-page .section__05 .boxS5 {
  min-height: 0 !important;
  margin: 0 0 16px !important;
  padding: 20px 22px 20px 104px !important;
  overflow: hidden;
  background: var(--surface);
}

.legacy-prostate-page .section__05 .boxS5:last-child {
  margin-bottom: 0 !important;
}

.legacy-prostate-page .section__05 .boxS5 img {
  top: 22px !important;
  left: 20px !important;
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
}

.legacy-prostate-page .section__05 .boxS5 :is(h2, p) {
  padding-left: 0 !important;
}

.legacy-prostate-page .section__05 .boxS5 h2 {
  margin: 0 0 8px !important;
  font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
  line-height: 1.2 !important;
}

.legacy-prostate-page .section__05 .boxS5 p {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.legacy-prostate-page .section__05 .hr_abs {
  display: none !important;
}

.legacy-prostate-page .countdown_box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 72px;
  justify-content: center;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  animation: timer-pulse 1.8s ease-in-out infinite;
}

.legacy-prostate-page .mobile-discount-timer,
.legacy-prostate-page .form-discount-timer {
  color: var(--primary-foreground) !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none !important;
}

.legacy-prostate-page .mobile-discount-timer {
  display: none;
}

.legacy-prostate-page .form_center .section_11 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 72px);
}

.legacy-prostate-page .order-product-visual {
  flex: 0 1 360px;
}

.legacy-prostate-page .order-product-visual img {
  display: block;
  width: min(100%, 340px);
  margin: 0 auto;
  filter: drop-shadow(0 24px 24px color-mix(in oklab, var(--clinical-deep) 22%, transparent));
}

.legacy-prostate-page .form-discount-timer {
  display: block;
  width: fit-content;
  margin: 10px auto 18px;
  padding: 9px 16px;
  border-radius: 6px;
  background: var(--clinical-deep);
  animation: timer-pulse 1.8s ease-in-out infinite;
}

.legacy-prostate-page .reveal-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.legacy-prostate-page .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes timer-pulse {
  50% { transform: scale(1.06); }
}

@media (min-width: 768px) and (max-width: 991px) {
  .legacy-prostate-page .container {
    width: min(100%, 920px) !important;
    max-width: none !important;
    padding-inline: 28px;
  }

  .legacy-prostate-page .section__01 {
    min-height: 690px;
    margin-top: 0 !important;
    background-position: center top !important;
    background-size: cover;
  }

  .legacy-prostate-page .section__01 .row {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 24px;
  }

  .legacy-prostate-page .section__01 .col-lg-6 {
    width: auto;
    min-width: 0;
    padding-inline: 0;
  }

  .legacy-prostate-page .section__01 .mS1 {
    display: none !important;
  }

  .legacy-prostate-page .section__01 .dS1 {
    display: block !important;
  }

  .legacy-prostate-page .section__01 .prS1 {
    display: block;
    width: min(100%, 360px);
    margin: 146px auto 0 !important;
  }

  .legacy-prostate-page .section__01 .boxS1 {
    top: 102px !important;
    right: -4px !important;
    width: 138px !important;
    height: 138px !important;
  }

  .legacy-prostate-page .section__01 .boxS1 .old {
    top: 21px !important;
    font-size: 19px !important;
  }

  .legacy-prostate-page .section__01 .boxS1 .new {
    top: 51px !important;
    font-size: 27px !important;
  }

  .legacy-prostate-page .section__01 .boxS1 .off {
    bottom: -7px !important;
    width: 58px !important;
  }

  .legacy-prostate-page .section__01 h2.dS1 {
    margin-top: 78px !important;
    font-size: 27px !important;
    line-height: 1.12;
  }

  .legacy-prostate-page .section__01 p {
    font-size: 15px;
    line-height: 1.38;
  }

  .legacy-prostate-page .section__01 .s1_p {
    margin-block: 12px !important;
    font-size: 15px !important;
  }

  .legacy-prostate-page .section__01 .btnS1.dS1 {
    margin: 14px 0 0 !important;
  }

  .legacy-prostate-page .section__01 .boxS1Days.dS1 {
    display: flex !important;
    margin: 0;
  }

  .legacy-prostate-page :is(.boxS7, .boxS11, .boxS12, .boxS13) {
    height: auto !important;
    min-height: 0;
  }

  .legacy-prostate-page .form_center .section_11 {
    gap: 28px;
  }

  .legacy-prostate-page .order-product-visual {
    flex-basis: 290px;
  }
}

@media (max-width: 767px) {
  html { overflow-x: clip !important; overflow-y: auto !important; }
  body.legacy-prostate-page { overflow: visible !important; touch-action: pan-y !important; }
  .legacy-prostate-page { padding-bottom: 76px; }
  .legacy-prostate-page > .section_nav { display: none !important; }
  .legacy-prostate-page > .section_nav > .nav { display: none !important; }
  .legacy-prostate-page > .section_nav .p_s_nav {
    margin: 0 !important;
    padding: 8px 4px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    white-space: normal;
  }
  .legacy-prostate-page > .section_nav .p_s_nav > span:first-child { display: none; }
  .legacy-prostate-page .mobile_nav {
    position: relative;
    background: var(--clinical-deep) !important;
    color: var(--primary-foreground);
    min-height: 94px;
    padding: 8px 8px 36px !important;
  }
  .legacy-prostate-page .mobile-discount-timer {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 30px;
    padding: 6px 10px;
    background: var(--warm-action);
    font-size: 13px;
    line-height: 18px;
    text-align: center;
  }
  .legacy-prostate-page .shipping_s1 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 560px;
    margin: 0 auto;
  }
  .legacy-prostate-page .shipping_s1:not(.slick-initialized) > div {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .legacy-prostate-page .shipping_s1 > div { min-width: 0; }
  .legacy-prostate-page .shipping_s1 p {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 !important;
    color: var(--primary-foreground) !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: left;
  }
  .legacy-prostate-page .shipping_s1 img {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px;
    object-fit: contain;
  }
  .legacy-prostate-page #sticky-main-navbar {
    position: sticky !important;
    top: 0 !important;
    min-height: 58px;
    background: color-mix(in oklab, var(--surface) 95%, transparent) !important;
    box-shadow: 0 10px 30px color-mix(in oklab, var(--clinical-deep) 13%, transparent);
    backdrop-filter: blur(14px);
  }
  .legacy-prostate-page .section__01 { padding-top: 28px !important; background-position: 42% top !important; }
  .legacy-prostate-page .section__01 .row { display: flex; flex-direction: column; }
  .legacy-prostate-page .section__01 .col-lg-6 { width: 100%; }
  .legacy-prostate-page .section__01 .prS1 { display: block; width: min(88vw, 390px) !important; margin: 12px auto 0 !important; }
  .legacy-prostate-page .section__01 .boxS1 {
    top: 392px !important;
    right: 8px !important;
    width: 122px !important;
    height: 150px !important;
  }
  .legacy-prostate-page .section__01 .boxS1 > div {
    width: 100%;
    height: 100%;
  }
  .legacy-prostate-page .section__01 .boxS1 > div > img:first-child {
    display: block;
    width: 122px !important;
    height: auto;
  }
  .legacy-prostate-page .section__01 .boxS1 :is(.old, .new) {
    width: 100%;
    margin: 0 !important;
    line-height: 1 !important;
    text-align: center;
    white-space: nowrap;
  }
  .legacy-prostate-page .section__01 .boxS1 .old {
    top: 24px !important;
    font-size: 16px !important;
  }
  .legacy-prostate-page .section__01 .boxS1 .new {
    top: 50px !important;
    font-size: 25px !important;
  }
  .legacy-prostate-page .section__01 .boxS1 .off {
    bottom: 0 !important;
    left: 50% !important;
    width: 62px !important;
  }
  .legacy-prostate-page .section__01 :is(h1, h2) {
    color: var(--clinical-deep) !important;
    font-family: Poppins-Bold, Arial, sans-serif !important;
    font-size: clamp(1.75rem, 8vw, 2.55rem) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    text-align: center !important;
    text-transform: uppercase;
  }
  .legacy-prostate-page .title { font-size: clamp(1.75rem, 8vw, 2.4rem) !important; line-height: 1.12 !important; padding-inline: 18px; }
  .legacy-prostate-page :is(.section__02, .section__03, .section__04, .section__05, .section__06, .section__07, .section__09, .section__10, .section__11, .section__12, .section__13, .section__reviews) { padding-block: 52px !important; }
  .legacy-prostate-page :is(.box_s1, .boxS5, .boxS7, .boxS11, .boxS12, .boxS13, .boxReviews, .formBox) { margin-bottom: 18px !important; }
  .legacy-prostate-page p { line-height: 1.55; }
  .legacy-prostate-page .form_center .section_11 { flex-direction: column; gap: 4px; }
  .legacy-prostate-page .order-product-visual { flex: none; width: 100%; }
  .legacy-prostate-page .order-product-visual img { width: min(66vw, 260px); }
  .legacy-prostate-page .btn_scroll_buy { display: block !important; }
  .legacy-prostate-page .btn_scroll_buy a {
    left: 16px !important;
    right: 16px !important;
    bottom: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 58px !important;
    padding: 6px 18px !important;
    border-radius: 10px !important;
    line-height: 1 !important;
  }
  .legacy-prostate-page .btn_scroll_buy a small {
    padding-left: 12px;
    border-left: 1px solid color-mix(in oklab, var(--primary-foreground) 45%, transparent);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
}

@media (max-width: 380px) {
  .legacy-prostate-page .shipping_s1 p { font-size: 9px !important; }
  .legacy-prostate-page .shipping_s1 img { width: 20px !important; height: 20px !important; flex-basis: 20px; }
}

/* Final small-screen readability and collision safeguards. */
@media (max-width: 767px) {
  .legacy-prostate-page {
    overflow-x: hidden;
  }

  .legacy-prostate-page .section__05 {
    padding-block: 42px !important;
  }

  .legacy-prostate-page .section__05 .imgS5.dS5 {
    width: min(86vw, 350px) !important;
    margin-bottom: 10px !important;
  }

  .legacy-prostate-page .section__05 .boxS5 {
    padding: 84px 18px 20px !important;
    text-align: center;
  }

  .legacy-prostate-page .section__05 .boxS5 img {
    top: 16px !important;
    left: 50% !important;
    width: 58px !important;
    height: 58px !important;
    transform: translateX(-50%);
  }

  .legacy-prostate-page .section__05 .boxS5 h2 {
    font-size: 22px !important;
  }

  .legacy-prostate-page > .section_nav .p_s_nav {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .legacy-prostate-page .shipping_s1 p {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .legacy-prostate-page :is(
    .box_s1,
    .boxS5,
    .boxS7,
    .boxS10,
    .boxS11,
    .boxS12,
    .boxS13,
    .boxReviews,
    .formBox
  ) {
    height: auto !important;
    min-height: 0 !important;
  }

  .legacy-prostate-page :is(
    .section__03 p,
    .section__05 p,
    .section__06 p,
    .section__07 p,
    .section__09 p,
    .section__10 p,
    .section__11 p,
    .section__12 p,
    .section__13 p,
    .section__reviews p
  ) {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .legacy-prostate-page .section__09 {
    height: auto !important;
    min-height: 520px;
    margin-top: 0 !important;
    padding-bottom: 30px !important;
  }

  .legacy-prostate-page .section__09 img {
    width: min(100%, 390px) !important;
    margin: 0 auto !important;
  }

  .legacy-prostate-page .boxS10 {
    align-items: center;
  }

  .legacy-prostate-page .boxS10 .boxS10Text {
    min-width: 0;
  }

  .legacy-prostate-page .boxS11,
  .legacy-prostate-page .boxS12,
  .legacy-prostate-page .boxS13 {
    padding-bottom: 20px !important;
  }

  .legacy-prostate-page .boxS11:has(.angleS11) {
    margin-bottom: 52px !important;
  }

  .legacy-prostate-page .boxS13 h5 {
    position: static !important;
    margin-top: 12px !important;
  }

  .legacy-prostate-page .form_center .section_11 {
    width: 100%;
    padding-inline: 4px;
  }

  .legacy-prostate-page .formBox,
  .legacy-prostate-page .orderform {
    width: 100% !important;
    max-width: 420px;
  }

  .legacy-prostate-page .orderform input {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.3;
  }
}

@media (max-width: 380px) {
  .legacy-prostate-page .shipping_s1 p {
    font-size: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-prostate-page *, .legacy-prostate-page *::before, .legacy-prostate-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
