/* Gate A: owned P-TIOX opening view. WooCommerce still owns commerce data. */

.sunshine-redesign--premium-product {
  --sun-content-width: 1320px;
  --sun-header-height: 84px;
  padding-top: 0 !important;
  background: #f8f7f2;
}

.sunshine-redesign--premium-product .sh-header {
  min-height: 87px;
}

.sunshine-redesign--premium-product .sh-header__row {
  height: 52px;
}

.sunshine-redesign--premium-product .sh-logo__icon {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
  flex-basis: 36px;
}

.sunshine-redesign--premium-product .sh-logo__brand,
.sunshine-redesign--premium-product .sh-logo__brand em {
  font-size: 18px;
}

.sunshine-redesign--premium-product .sh-nav {
  height: 35px;
}

.sunshine-redesign--premium-product #main {
  min-height: 100svh;
  padding-top: var(--sun-header-height);
  background: #f8f7f2;
}

.sunshine-redesign--premium-product #main > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 110px;
}

.sunshine-redesign--premium-product #primary > .product.sun-product-owned {
  display: block;
  width: 100%;
}

.sunshine-redesign--premium-product #primary > .product.sun-product-owned > :where(.woocommerce-tabs, .related, .up-sells, .woobt-wrap) {
  width: min(var(--sun-content-width), calc(100% - 48px));
  margin-inline: auto;
}

.sun-pdp-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.76fr);
  gap: clamp(32px, 4.6vw, 72px);
  align-items: start;
  width: min(var(--sun-content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 84px;
}

.sun-pdp-gallery-shell {
  position: sticky;
  top: calc(var(--sun-header-height) + 28px);
  min-width: 0;
  isolation: isolate;
}

.sun-pdp-gallery {
  --sun-gallery-index: 0;
  --sun-slide-step: 100%;
  --sun-slide-gap: 0px;
  position: relative;
  width: 100%;
  min-width: 0;
  padding-bottom: 54px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.sun-pdp-gallery:focus-within {
  border-radius: 24px;
}

.sun-pdp-gallery__track {
  display: flex;
  gap: var(--sun-slide-gap);
  transform: translateX(calc(var(--sun-gallery-index) * -1 * var(--sun-slide-step)));
  transition: transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sun-pdp-slide {
  position: relative;
  flex: 0 0 100%;
  height: clamp(620px, 72vh, 760px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 52% 36%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(135deg, #f4f2ea 0%, #eaf1ef 100%);
  isolation: isolate;
}

.sun-pdp-slide:first-child::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

.sun-pdp-slide > img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  padding: 0 !important;
  object-fit: contain;
  background: transparent;
}

.sun-pdp-slide:first-child > img {
  left: 50%;
  right: auto;
  bottom: 3%;
  top: auto;
  width: min(80%, 500px) !important;
  height: 88% !important;
  filter: drop-shadow(14px 22px 18px rgba(7, 21, 47, 0.14));
  transform: translateX(-50%);
}

.sun-pdp-slide__copy {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 28px;
  max-width: 270px;
  padding: 14px 16px 15px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: none;
  backdrop-filter: blur(12px) saturate(1.08);
}

.sun-pdp-slide__copy span,
.sun-pdp-slide__copy strong {
  display: block;
}

.sun-pdp-slide__copy span {
  color: #da7b2c;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sun-pdp-slide__copy strong {
  margin-top: 4px;
  color: var(--sun-navy-950);
  font-size: 28px;
  line-height: 1.05;
  text-transform: lowercase;
}

.sun-pdp-slide__badge {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 24px;
  display: grid;
  width: 102px;
  height: 68px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24));
  color: var(--sun-navy-950);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), inset 0 -10px 22px rgba(7, 21, 47, 0.04), 0 18px 34px rgba(7, 21, 47, 0.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.sun-pdp-slide__badge strong,
.sun-pdp-slide__badge span {
  position: relative;
  z-index: 1;
  display: block;
  width: 78px;
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
}

.sun-pdp-slide__badge strong {
  font-size: 23px;
}

.sun-pdp-slide__badge span {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.07em;
}

.sun-pdp-gallery__dots {
  position: absolute;
  z-index: 4;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 12px 24px rgba(7, 21, 47, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(14px) saturate(1.08);
}

.sun-pdp-gallery__dots button {
  width: 9px;
  min-width: 9px;
  height: 9px;
  min-height: 9px;
  padding: 0;
  border: 1px solid rgba(7, 21, 47, 0.16);
  border-radius: 999px;
  background: rgba(7, 21, 47, 0.16);
  cursor: pointer;
  transition: border-color 0.22s var(--sun-ease-out), background 0.22s var(--sun-ease-out), box-shadow 0.22s var(--sun-ease-out), transform 0.18s var(--sun-ease-out);
}

.sun-pdp-gallery__dots button:hover {
  transform: scale(1.18);
}

.sun-pdp-gallery__dots button.is-active {
  border-color: rgba(7, 21, 47, 0.28);
  background: rgba(7, 21, 47, 0.64);
  box-shadow: 0 0 0 4px rgba(7, 21, 47, 0.08);
}

.sun-pdp-gallery__nav {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.sun-pdp-gallery__nav button {
  position: absolute;
  top: 50%;
  display: grid;
  width: 46px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: var(--sun-navy-950);
  font-size: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54), 0 12px 24px rgba(7, 21, 47, 0.08);
  opacity: 0.58;
  pointer-events: auto;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(1.08);
}

.sun-pdp-gallery__nav button:first-child {
  left: 8px;
}

.sun-pdp-gallery__nav button:last-child {
  right: 8px;
}

.sun-pdp-gallery__nav button:focus,
.sun-pdp-gallery__nav button:focus-visible,
.sun-pdp-gallery__dots button:focus,
.sun-pdp-gallery__dots button:focus-visible,
.sun-pdp-quantity button:focus,
.sun-pdp-quantity button:focus-visible,
.sun-pdp-add-button:focus,
.sun-pdp-add-button:focus-visible {
  outline: 3px solid #db7a22 !important;
  outline-offset: 3px;
}

.sun-pdp-buybox {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 32px;
  border: 1px solid rgba(220, 217, 208, 0.94);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 242, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(7, 21, 47, 0.08);
}

.sun-pdp-rating-summary { grid-area: 1 / 1 / auto / -1; }
.sun-pdp-buybox__intro { grid-area: 2 / 1 / auto / -1; }
.sun-pdp-proof-strip { grid-area: 3 / 1 / auto / -1; }
.sun-pdp-meta-row { grid-area: 4 / 1 / auto / -1; }
.sun-pdp-chip-grid { grid-area: 5 / 1 / auto / -1; }
.sun-pdp-purchase-options { grid-area: 6 / 1 / auto / -1; }
.sun-pdp-trust-strip { grid-area: 8 / 1 / auto / -1; }

.sun-pdp-rating-summary {
  display: grid;
  gap: 10px;
  min-height: 67.5px;
  margin-bottom: 20px;
  justify-items: start;
}

.sun-pdp-best-seller {
  padding: 9px 14px;
  border-radius: 999px;
  background: #db7a22;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sun-pdp-review-state,
.sun-pdp-rating-summary a {
  color: #5a5f67;
  font-size: 13px;
  line-height: 18px;
}

.sun-pdp-rating-summary a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-underline-offset: 4px;
}

.sun-pdp-rating-summary em {
  font-style: normal;
}

.sun-pdp-eyebrow {
  margin: 0 0 10px;
  color: #9a7b48;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 17.38px;
  text-transform: uppercase;
}

.sun-pdp-buybox h1 {
  margin: 0 0 12px;
  color: var(--sun-navy-950);
  font: 900 clamp(64px, 6.2vw, 82px) / 0.86 var(--sun-display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.sun-pdp-buybox__intro > p:last-child {
  margin: 0 0 20px;
  color: #343a42;
  font-size: 16px;
  line-height: 1.45;
}

.sun-pdp-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.sun-pdp-proof-strip span {
  display: grid;
  min-height: 38px;
  padding: 8px 6px;
  place-items: center;
  border-radius: 999px;
  background: #f0f3f2;
  color: var(--sun-navy-950);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.sun-pdp-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-top: 1px solid var(--sun-line);
  border-bottom: 1px solid var(--sun-line);
  color: #434a53;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  padding-right: 136px;
}

.sun-pdp-meta-row > span {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0f3f2;
}

.sun-pdp-meta-row .stock {
  margin: 0;
  color: #4d7c62;
  font: inherit;
}

.sun-pdp-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  height: 58.53125px;
  min-height: 58.5px;
  margin: 18px 0;
}

.sun-pdp-chip-grid > strong {
  flex: 0 0 100%;
  color: var(--sun-navy-950);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.sun-pdp-chip-grid span {
  padding: 8px 10px;
  border: 1px solid var(--sun-line);
  border-radius: 999px;
  background: #fff;
  color: #343a42;
  font-size: 13px;
  font-weight: 700;
}

.sun-pdp-purchase-options {
  display: grid;
  gap: 10px;
}

.sun-pdp-purchase-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--sun-line);
  border-radius: 12px;
  background: #fff;
  color: #050505;
}

.sun-pdp-purchase-card.is-selected {
  border-color: var(--sun-navy-950);
  box-shadow: inset 0 0 0 1px var(--sun-navy-950);
}

.sun-pdp-purchase-card.is-unavailable {
  color: #59616c;
}

.sun-pdp-purchase-card strong,
.sun-pdp-purchase-card small {
  display: block;
}

.sun-pdp-purchase-card strong,
.sun-pdp-purchase-card b {
  font-size: 14px;
  font-weight: 850;
}

.sun-pdp-purchase-card small {
  margin-top: 3px;
  color: #59616c;
  font-size: 12px;
  line-height: 1.35;
}

.sun-pdp-purchase-price .price,
.sun-pdp-purchase-price .amount {
  color: inherit !important;
  font: inherit !important;
}

.sun-pdp-cart {
  display: contents !important;
}

.sun-pdp-quantity {
  grid-area: 4 / 2;
  align-self: center;
  display: grid;
  grid-template-columns: 38px 48px 38px;
  width: 124px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--sun-line);
  border-radius: 999px;
  background: #fff;
}

.sun-pdp-quantity > button {
  width: 38px;
  min-width: 38px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #050505;
  font-size: 17px;
  font-weight: 900;
}

.sun-pdp-quantity .quantity {
  width: 48px !important;
  height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.sun-pdp-quantity .qty {
  width: 48px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid var(--sun-line) !important;
  border-left: 1px solid var(--sun-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #050505 !important;
  font-weight: 900;
  text-align: center;
  appearance: textfield;
}

.sun-pdp-quantity .qty::-webkit-inner-spin-button,
.sun-pdp-quantity .qty::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.sun-pdp-add-button {
  position: relative;
  display: flex !important;
  grid-area: 7 / 1 / auto / -1;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 56px !important;
  margin: 12px 0 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #050505 !important;
  color: #fff !important;
  font-family: var(--sun-sans) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
}

.sun-pdp-add-button span {
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.sun-pdp-add-button .price,
.sun-pdp-add-button .amount {
  color: inherit !important;
  font: inherit !important;
}

.sun-pdp-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 18px;
}

.sun-pdp-trust-strip > span {
  display: grid;
  min-height: 86px;
  padding: 12px 8px;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #db7a22;
  text-align: center;
}

.sun-pdp-trust-strip i {
  font: 700 30px/1 var(--sun-body);
}

.sun-pdp-trust-strip strong,
.sun-pdp-trust-strip small {
  display: block;
  color: var(--sun-navy-950);
  font-style: normal;
}

.sun-pdp-trust-strip strong {
  font-size: 12.5px;
  line-height: 1.08;
}

.sun-pdp-trust-strip small {
  max-width: 105px;
  color: #4c5562;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.12;
}

.sunshine-redesign--premium-product .suggested-product-list,
.sunshine-redesign--premium-product #glt-translate-trigger {
  display: none !important;
}

@media (max-width: 1023px) {
  .sun-pdp-opening {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .sun-pdp-gallery-shell {
    position: relative;
    top: auto;
  }
}

@media (max-width: 767px) {
  .sunshine-redesign--premium-product {
    --sun-header-height: 114px;
  }

  .sunshine-redesign--premium-product .sh-header {
    min-height: 114px;
  }

  .sunshine-redesign--premium-product .sh-header__row {
    width: calc(100% - 28px);
    height: 70px;
  }

  .sunshine-redesign--premium-product .sh-logo__icon {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    flex-basis: 40px;
  }

  .sunshine-redesign--premium-product .sh-logo__brand {
    font-size: 22px;
  }

  .sunshine-redesign--premium-product .sh-nav {
    height: 44px;
    padding: 0 14px;
    gap: 13px;
  }

  .sunshine-redesign--premium-product .sh-nav a {
    min-height: 44px;
    font-size: 12px;
    white-space: nowrap;
  }

  .sun-pdp-opening {
    width: min(100% - 28px, var(--sun-content-width));
    padding: 18px 0 50px;
  }

  .sun-pdp-gallery {
    --sun-slide-gap: 12px;
    --sun-slide-step: calc(100% - 28px);
    padding-bottom: 24px;
  }

  .sun-pdp-slide {
    flex: 0 0 calc(100% - 40px);
    height: 360px;
    border-radius: 18px;
  }

  .sun-pdp-slide:first-child > img {
    bottom: 2%;
    width: 58% !important;
    height: 76% !important;
  }

  .sun-pdp-slide__copy {
    top: 20px;
    left: 20px;
    max-width: 190px;
    padding: 10px 12px 11px;
    border-radius: 14px;
  }

  .sun-pdp-slide__copy span {
    font-size: 14px;
  }

  .sun-pdp-slide__copy strong {
    font-size: 19px;
  }

  .sun-pdp-slide__badge {
    right: 16px;
    bottom: 18px;
    width: 76px;
    height: 54px;
    border-radius: 16px;
  }

  .sun-pdp-slide__badge strong,
  .sun-pdp-slide__badge span {
    width: 58px;
  }

  .sun-pdp-slide__badge strong {
    font-size: 17px;
  }

  .sun-pdp-slide__badge span {
    font-size: 8px;
  }

  .sun-pdp-gallery__nav {
    display: none;
  }

  .sun-pdp-gallery__dots {
    bottom: 6px;
  }

  .sun-pdp-buybox {
    padding: 22px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sun-pdp-rating-summary {
    min-height: 65.5px;
    margin-bottom: 16px;
  }

  .sun-pdp-best-seller {
    padding: 8px 12px;
  }

  .sun-pdp-buybox h1 {
    font-size: 63px;
  }

  .sun-pdp-buybox__intro > p:last-child {
    font-size: 15px;
  }

  .sun-pdp-proof-strip span {
    min-height: 50.75px;
    font-size: 9px;
  }

  .sun-pdp-meta-row {
    min-height: 70px;
    row-gap: 8px;
    padding: 8px 0;
  }

  .sun-pdp-chip-grid {
    height: 101.90625px;
    min-height: 101.9px;
  }

  .sun-pdp-chip-grid span {
    font-size: 12px;
  }

  .sun-pdp-purchase-card.is-unavailable {
    min-height: 87.5px;
  }

  .sun-pdp-cart {
    display: contents !important;
  }

  .sun-pdp-meta-row {
    padding-right: 116px;
  }

  .sun-pdp-quantity {
    grid-template-columns: 32px 40px 32px;
    width: 104px;
  }

  .sun-pdp-quantity > button {
    width: 32px;
    min-width: 32px;
  }

  .sun-pdp-quantity .quantity,
  .sun-pdp-quantity .qty {
    width: 40px !important;
  }

  .sun-pdp-trust-strip {
    gap: 6px;
  }

  .sun-pdp-trust-strip > span {
    min-height: 88.25px;
    padding: 9px 4px;
  }

  .sun-pdp-trust-strip i {
    font-size: 24px;
  }

  .sun-pdp-trust-strip strong {
    font-size: 11px;
  }

  .sun-pdp-trust-strip small {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .sunshine-redesign--premium-product .sh-logo__brand {
    display: none;
  }

  .sun-pdp-buybox h1 {
    font-size: 60px;
  }
}

@media (min-width: 768px) and (max-width: 1320px) {
  .sun-pdp-chip-grid {
    height: 105.0625px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sun-pdp-gallery__track {
    transition: none !important;
  }
}

/* Gate B: truth-safe P-TIOX long-form story. */

.sun-pdp-story {
  color: var(--sun-navy-950);
  background: #f8f7f2;
}

.sun-pdp-story-section,
.sunshine-redesign--premium-product .related.products {
  width: min(var(--sun-content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
  border-top: 1px solid rgba(7, 21, 47, 0.12);
}

.sun-pdp-section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 50px;
}

.sun-pdp-section-heading > p,
.sun-pdp-how-to__copy > p,
.sun-pdp-review-summary > div > p {
  margin: 8px 0 0;
  color: #cf6e21;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sun-pdp-section-heading h2,
.sun-pdp-how-to h2,
.sun-pdp-review-summary h2,
.sunshine-redesign--premium-product .related.products > h2 {
  margin: 0;
  color: var(--sun-navy-950);
  font-family: var(--sun-display);
  font-size: clamp(48px, 5.3vw, 76px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.sun-pdp-education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
}

.sun-pdp-education-grid,
.sun-pdp-tabs,
.sun-pdp-tabs__panel,
.sun-pdp-how-to,
.sun-pdp-routine-panel,
.sun-pdp-routine-product {
  min-width: 0;
}

.sun-pdp-tabs,
.sun-pdp-held-panel,
.sun-pdp-held-card,
.sun-pdp-expert-held,
.sun-pdp-empty-state,
.sun-pdp-routine-panel,
.sun-pdp-more-list details {
  border: 1px solid rgba(7, 21, 47, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.sun-pdp-tabs__list {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(7, 21, 47, 0.1);
  overflow-x: auto;
}

.sun-pdp-tabs__list button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--sun-navy-950);
  font-family: var(--sun-sans);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.sun-pdp-tabs__list button:hover,
.sun-pdp-tabs__list button[aria-selected="true"] {
  border-color: rgba(7, 21, 47, 0.16);
  background: var(--sun-navy-950);
  color: #fff;
}

.sun-pdp-tabs__panel {
  min-height: 258px;
  padding: 34px;
  color: #273446;
  font-size: 17px;
  line-height: 1.65;
}

.sun-pdp-tabs__panel[hidden] {
  display: none;
}

.sun-pdp-tabs__panel > :first-child {
  margin-top: 0;
}

.sun-pdp-tabs__panel > :last-child {
  margin-bottom: 0;
}

.sun-pdp-tabs__panel small {
  color: #6c7480;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sun-pdp-product-copy {
  max-height: 360px;
  overflow-y: auto;
}

.sun-pdp-held-panel {
  display: flex;
  min-height: 352px;
  padding: 34px;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(140deg, #d8e8e3 0%, #c6ded8 100%);
}

.sun-pdp-held-panel > span,
.sun-pdp-held-card > span {
  width: max-content;
  margin-bottom: auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #8e4a17;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sun-pdp-held-panel h3,
.sun-pdp-held-card h3,
.sun-pdp-expert-held h3 {
  margin: 22px 0 10px;
  color: var(--sun-navy-950);
  font-family: var(--sun-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.sun-pdp-held-panel p,
.sun-pdp-held-card p,
.sun-pdp-expert-held p,
.sun-pdp-empty-state p {
  margin: 0;
  color: #334052;
  font-size: 15px;
  line-height: 1.55;
}

.sun-pdp-proof-section {
  background: transparent;
}

.sun-pdp-held-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sun-pdp-held-card {
  display: flex;
  min-height: 310px;
  padding: 30px;
  flex-direction: column;
  justify-content: flex-end;
}

.sun-pdp-held-card:first-child {
  background: linear-gradient(145deg, #ece7df, #f5f0e8);
}

.sun-pdp-held-card:last-child {
  background: linear-gradient(145deg, #ddebe8, #edf5f3);
}

.sun-pdp-experts {
  width: 100%;
  padding-inline: max(24px, calc((100% - var(--sun-content-width)) / 2));
  background: var(--sun-navy-950);
  color: #fff;
}

.sun-pdp-experts .sun-pdp-section-heading h2,
.sun-pdp-experts .sun-pdp-section-heading > p {
  color: #fff;
}

.sun-pdp-expert-held {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 300px;
  padding: 42px;
  align-items: center;
  gap: 40px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.sun-pdp-expert-held > div:first-child {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-family: var(--sun-display);
  font-size: 64px;
  font-weight: 300;
}

.sun-pdp-expert-held h3,
.sun-pdp-expert-held p {
  color: #fff;
}

.sun-pdp-review-summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(7, 21, 47, 0.16);
}

.sun-pdp-review-summary > strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sun-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
}

.sun-pdp-review-summary > strong small {
  color: #626b77;
  font-family: var(--sun-sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sun-pdp-review-summary > a {
  display: inline-grid;
  min-height: 50px;
  padding: 0 22px;
  place-items: center;
  border-radius: 8px;
  background: var(--sun-navy-950);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.sun-pdp-review-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.sun-pdp-review-cards article {
  padding: 28px;
  border: 1px solid rgba(7, 21, 47, 0.12);
  border-radius: 20px;
  background: #fff;
}

.sun-pdp-review-cards header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.sun-pdp-review-cards header small {
  color: #68717d;
}

.sun-pdp-empty-state {
  margin-top: 30px;
  padding: 42px;
  text-align: center;
}

.sun-pdp-empty-state strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sun-display);
  font-size: 30px;
}

.sun-pdp-native-reviews #review_form_wrapper,
.sun-pdp-native-reviews .woocommerce-noreviews {
  margin-top: 30px;
}

.sun-pdp-native-reviews #review_form_wrapper {
  padding: 32px;
  border: 1px solid rgba(7, 21, 47, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.sun-pdp-native-reviews #comments {
  display: none;
}

.sun-pdp-how-to {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.sun-pdp-how-to__copy,
.sun-pdp-how-to__visual {
  min-height: 520px;
  padding: 52px;
  border-radius: 24px;
}

.sun-pdp-how-to__copy {
  background: #dcebe7;
}

.sun-pdp-how-to__copy ol {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: sun-steps;
}

.sun-pdp-how-to__copy li {
  position: relative;
  min-height: 56px;
  padding: 0 0 24px 58px;
  counter-increment: sun-steps;
  color: #273446;
  font-size: 16px;
  line-height: 1.55;
}

.sun-pdp-how-to__copy li::before {
  content: counter(sun-steps, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: #cf6e21;
  font-size: 12px;
  font-weight: 900;
}

.sun-pdp-how-to__visual {
  display: grid;
  grid-template-columns: 52px 1fr;
  place-content: center;
  gap: 28px 18px;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.13), transparent 26%),
    var(--sun-navy-950);
  color: #fff;
}

.sun-pdp-how-to__visual span {
  color: #da7b2c;
  font-family: var(--sun-display);
  font-size: 28px;
}

.sun-pdp-how-to__visual strong {
  align-self: center;
  font-family: var(--sun-display);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
  line-height: 1;
}

.sun-pdp-routine-tabs {
  background: transparent;
}

.sun-pdp-routine-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  min-height: 500px;
  padding: 24px;
  gap: 24px;
  border: 0;
  border-radius: 0 0 24px 24px;
  background: #edf3f1;
}

.sun-pdp-routine-panel[hidden] {
  display: none;
}

.sun-pdp-routine-visual {
  display: flex;
  padding: 42px;
  border-radius: 20px;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, transparent, rgba(7, 21, 47, 0.7)),
    radial-gradient(circle at 50% 34%, #f9f7f1 0%, #d6e5e1 44%, #c3d9d3 100%);
  color: #fff;
}

.sun-pdp-routine-visual > span {
  width: max-content;
  margin-bottom: auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sun-navy-950);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sun-pdp-routine-visual strong {
  max-width: 560px;
  font-family: var(--sun-display);
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 500;
  line-height: 0.98;
}

.sun-pdp-routine-visual small {
  max-width: 520px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

.sun-pdp-routine-product {
  display: flex;
  padding: 24px;
  border: 1px solid rgba(7, 21, 47, 0.1);
  border-radius: 20px;
  flex-direction: column;
  background: #fff;
}

.sun-pdp-routine-product > a {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  color: var(--sun-navy-950);
  text-decoration: none;
}

.sun-pdp-routine-product img {
  width: 100% !important;
  height: 240px !important;
  object-fit: contain;
}

.sun-pdp-routine-product span > * {
  display: block;
}

.sun-pdp-routine-product span small {
  margin-top: 18px;
  color: #cf6e21;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sun-pdp-routine-product span strong {
  margin-top: 6px;
  font-family: var(--sun-display);
  font-size: 30px;
  line-height: 1;
}

.sun-pdp-routine-product span b {
  margin-top: 8px;
  font-size: 14px;
}

.sun-pdp-routine-cart {
  margin-top: 18px;
}

.sun-pdp-routine-cart button,
.sun-pdp-mobile-buybar > button {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--sun-navy-950);
  color: #fff;
  font-family: var(--sun-sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.sun-pdp-more-list {
  display: grid;
  gap: 12px;
}

.sun-pdp-more-list details {
  padding: 0 24px;
  border-radius: 14px;
}

.sun-pdp-more-list summary {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.sun-pdp-more-list summary::after {
  content: "+";
  font-family: var(--sun-display);
  font-size: 26px;
  font-weight: 400;
}

.sun-pdp-more-list details[open] summary::after {
  content: "−";
}

.sun-pdp-more-list details p {
  margin: -4px 0 24px;
  color: #4d5867;
  font-size: 15px;
  line-height: 1.55;
}

.sunshine-redesign--premium-product .related.products {
  clear: both;
}

.sunshine-redesign--premium-product .related.products > h2 {
  margin-bottom: 46px;
}

.sunshine-redesign--premium-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sunshine-redesign--premium-product .related.products li.product {
  width: auto !important;
  margin: 0 !important;
}

.sunshine-redesign--premium-product .related.products img {
  min-height: 250px;
  background: #edf1ee;
  object-fit: contain;
}

.sunshine-redesign--premium-product .related.products .woocommerce-loop-product__title {
  min-height: 2.4em;
}

.sun-pdp-mobile-buybar {
  position: fixed;
  z-index: 9997;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  display: none;
  grid-template-columns: 1fr minmax(160px, 0.9fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(7, 21, 47, 0.16);
  border-radius: 14px;
  background: rgba(248, 247, 242, 0.96);
  box-shadow: 0 18px 50px rgba(7, 21, 47, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 28px));
  transition: opacity 0.22s ease, transform 0.32s var(--sun-ease-out);
  backdrop-filter: blur(18px) saturate(1.08);
}

.sun-pdp-mobile-buybar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sun-pdp-mobile-buybar > div {
  display: flex;
  min-width: 0;
  padding-left: 4px;
  flex-direction: column;
  justify-content: center;
}

.sun-pdp-mobile-buybar > div strong,
.sun-pdp-mobile-buybar > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sun-pdp-mobile-buybar > div strong {
  font-family: var(--sun-display);
  font-size: 22px;
  line-height: 1;
}

.sun-pdp-mobile-buybar > div span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
}

.sun-pdp-mobile-buybar > button span {
  margin-left: 6px;
  padding-left: 7px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.sun-pdp-mobile-buybar .price,
.sun-pdp-mobile-buybar .amount {
  color: inherit !important;
  font: inherit !important;
}

.sunshine-redesign--premium-product :where(button, a, summary, input, textarea, select):focus-visible {
  outline: 3px solid #cf6e21 !important;
  outline-offset: 3px !important;
}

@media (max-width: 1023px) {
  .sun-pdp-education-grid,
  .sun-pdp-how-to,
  .sun-pdp-routine-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .sun-pdp-held-panel {
    min-height: 300px;
  }

  .sun-pdp-review-cards {
    grid-template-columns: 1fr;
  }

  .sunshine-redesign--premium-product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sun-pdp-story-section,
  .sunshine-redesign--premium-product .related.products {
    width: calc(100% - 28px);
    padding: 70px 0;
  }

  .sun-pdp-section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 30px;
  }

  .sun-pdp-section-heading > p,
  .sun-pdp-how-to__copy > p,
  .sun-pdp-review-summary > div > p {
    margin-top: 0;
  }

  .sun-pdp-section-heading h2,
  .sun-pdp-how-to h2,
  .sun-pdp-review-summary h2,
  .sunshine-redesign--premium-product .related.products > h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .sun-pdp-tabs,
  .sun-pdp-held-panel,
  .sun-pdp-held-card,
  .sun-pdp-expert-held,
  .sun-pdp-empty-state,
  .sun-pdp-routine-panel {
    border-radius: 18px;
  }

  .sun-pdp-tabs__panel,
  .sun-pdp-held-panel,
  .sun-pdp-held-card {
    padding: 24px;
  }

  .sun-pdp-held-grid {
    grid-template-columns: 1fr;
  }

  .sun-pdp-held-card {
    min-height: 250px;
  }

  .sun-pdp-experts {
    width: 100%;
    padding-inline: 14px;
  }

  .sun-pdp-expert-held {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .sun-pdp-expert-held > div:first-child {
    width: 86px;
    height: 86px;
    font-size: 48px;
  }

  .sun-pdp-review-summary {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .sun-pdp-review-summary > a {
    grid-column: 1 / -1;
  }

  .sun-pdp-review-summary > strong {
    font-size: 46px;
  }

  .sun-pdp-how-to__copy,
  .sun-pdp-how-to__visual {
    min-height: 430px;
    padding: 28px;
  }

  .sun-pdp-how-to__visual {
    min-height: 380px;
  }

  .sun-pdp-routine-panel {
    min-height: 0;
    padding: 12px;
  }

  .sun-pdp-routine-visual {
    min-height: 360px;
    padding: 28px;
  }

  .sun-pdp-routine-product img {
    height: 210px !important;
  }

  .sunshine-redesign--premium-product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sunshine-redesign--premium-product .related.products img {
    min-height: 150px;
  }

  .sun-pdp-mobile-buybar {
    display: grid;
  }
}

@media (max-width: 380px) {
  .sun-pdp-mobile-buybar {
    grid-template-columns: minmax(0, 0.7fr) minmax(174px, 1.3fr);
  }

  .sun-pdp-mobile-buybar > button {
    padding-inline: 10px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sun-pdp-mobile-buybar,
  .sun-pdp-tabs__list button,
  .sun-pdp-more-list details {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
