/*
 * Sunshine Skincare 0.5.0 fidelity layer.
 *
 * Reproduces the approved Vercel composition while retaining native
 * WordPress and WooCommerce data, forms, provider widgets, and actions.
 */

/* The staging header snippet declares sticky positioning after theme CSS. */
.sunshine-redesign .sh-header {
  position: fixed !important;
  top: 0 !important;
  min-height: 78px;
}

.admin-bar.sunshine-redesign .sh-header {
  top: 32px !important;
}

.sunshine-redesign {
  --sun-header-height: 78px;
  padding-top: var(--sun-header-height) !important;
}

.sunshine-redesign .sh-header__row {
  height: 46px;
}

.sunshine-redesign .sh-logo {
  gap: 8px;
}

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

.sunshine-redesign .sh-logo__brand,
.sunshine-redesign .sh-logo__brand em {
  font-size: 15px;
}

.sunshine-redesign .sh-nav {
  height: 31px;
}

/* Catalog: approved compact editorial intro and liquid-glass product cards. */
.sunshine-redesign--catalog {
  background: #f8f7f2;
}

.sunshine-redesign--catalog #main > .container {
  padding-top: 44px;
}

.sunshine-redesign--catalog .sun-catalog-intro {
  margin-bottom: 40px;
}

.sunshine-redesign--catalog .sun-catalog-intro h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 0.86;
}

.sunshine-redesign--catalog .products {
  padding-top: 40px !important;
}

.sunshine-redesign--catalog .products .product-thumb {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(circle at 18% 18%, rgba(196, 165, 108, 0.16), transparent 52%),
    radial-gradient(circle at 82% 82%, rgba(10, 30, 66, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 18px 42px rgba(7, 21, 47, 0.07);
  backdrop-filter: blur(18px) saturate(1.25);
}

.sunshine-redesign--catalog .products .product-details {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 0 4px;
}

.sunshine-redesign--catalog .products .product-title,
.sunshine-redesign--catalog .products .product-price {
  padding: 0;
}

.sun-catalog-cta {
  grid-column: 1 / -1;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  background: var(--sun-navy-950);
  color: var(--sun-white) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.sun-catalog-cta b {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font: inherit;
}

.sun-catalog-cta:hover {
  background: var(--sun-gold-500);
  color: var(--sun-navy-950) !important;
}

/* Product hero: same two-column proportions and quiet ivory field as approval. */
.sunshine-redesign--product {
  background: #f8f7f2;
}

.sunshine-redesign--product #main > .container {
  width: min(var(--sun-content-width), calc(100% - 48px));
  padding: 38px 0 110px;
}

.sunshine-redesign--product #primary > .product {
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.76fr);
  gap: clamp(32px, 4.6vw, 72px);
}

.sunshine-redesign--product #primary > .product > :where(.woo-variation-product-gallery, .woocommerce-product-gallery) {
  min-height: 0;
  padding: 0 0 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.sunshine-redesign--product .woo-variation-gallery-slider-wrapper,
.sunshine-redesign--product .woocommerce-product-gallery__wrapper {
  min-height: clamp(620px, 72vh, 760px);
  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%);
}

.sunshine-redesign--product .woo-variation-gallery-slider,
.sunshine-redesign--product .slick-list,
.sunshine-redesign--product .slick-track,
.sunshine-redesign--product .wvg-gallery-image,
.sunshine-redesign--product .wvg-single-gallery-image-container {
  min-height: clamp(620px, 72vh, 760px) !important;
}

.sunshine-redesign--product .woo-variation-gallery-slider img,
.sunshine-redesign--product .woocommerce-product-gallery__image img {
  max-height: clamp(620px, 72vh, 760px);
  padding: clamp(22px, 3vw, 42px);
  object-fit: contain;
  background: transparent;
  mix-blend-mode: normal;
}

.sunshine-redesign--product .woo-variation-gallery-thumbnail-slider {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.sun-pdp-gallery-copy {
  position: absolute;
  z-index: 6;
  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);
  color: var(--sun-navy-950);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: none;
  backdrop-filter: blur(12px) saturate(1.08);
}

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

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

.sun-pdp-gallery-copy strong {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.05;
  text-transform: lowercase;
}

.sun-gallery-dots {
  position: absolute;
  z-index: 8;
  bottom: 12px;
  left: 50%;
  display: flex;
  max-width: min(82%, 420px);
  gap: 8px;
  padding: 6px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  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-gallery-dots button {
  flex: 0 0 9px;
  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;
}

.sun-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);
}

/* Buybox: preserve Woo hooks but impose the approved information hierarchy. */
.sunshine-redesign--product #primary > .product > .summary {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 22px;
}

.sunshine-redesign--product .summary > .sun-product-proof { order: 1; }
.sunshine-redesign--product .summary > .sun-product-brand { order: 2; }
.sunshine-redesign--product .summary > .product_title { order: 3; }
.sunshine-redesign--product .summary > .stamped-main-badge,
.sunshine-redesign--product .summary > .woocommerce-product-rating { order: 4; }
.sunshine-redesign--product .summary > .woocommerce-product-details__short-description { order: 5; }
.sunshine-redesign--product .summary > .sun-product-decision-points { order: 6; }
.sunshine-redesign--product .summary > .sun-product-recommended { order: 7; }
.sunshine-redesign--product .summary > .sun-purchase-options { order: 8; }
.sunshine-redesign--product .summary > form.cart { order: 9; }
.sunshine-redesign--product .summary > .ppc-button-wrapper { order: 10; }
.sunshine-redesign--product .summary > .yith-wcwl-add-to-wishlist { order: 11; }
.sunshine-redesign--product .summary > .sun-purchase-assurances { order: 12; }
.sunshine-redesign--product .summary > .product_meta { order: 13; }
.sunshine-redesign--product .summary > .woobt-wrap { order: 14; }

.sunshine-redesign--product .summary > .price {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.sunshine-redesign--product .summary .product_title {
  font-size: clamp(64px, 6.2vw, 82px);
}

.sunshine-redesign--product:not(.sunshine-redesign--premium-product) .summary .product_title {
  font-size: clamp(36px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.sunshine-redesign--product:not(.sunshine-redesign--premium-product) .woo-variation-gallery-slider-wrapper,
.sunshine-redesign--product:not(.sunshine-redesign--premium-product) .woocommerce-product-gallery__wrapper {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 22% 20%, rgba(196, 165, 108, 0.2), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(10, 30, 66, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 30px 60px -20px rgba(7, 21, 47, 0.18);
  backdrop-filter: blur(22px) saturate(1.3);
}

.sunshine-redesign--product .woocommerce-product-details__short-description {
  margin-bottom: 18px;
}

.sunshine-redesign--product .woocommerce-product-details__short-description > p:not(:first-child) {
  display: none;
}

.sun-product-decision-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.sun-product-decision-points span {
  min-height: 38px;
  padding: 8px 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f0f3f2;
  color: var(--sun-navy-950);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.sunshine-redesign--product .sun-product-recommended {
  margin: 0 0 18px;
  padding-top: 0;
  border-top: 0;
}

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

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

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

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

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

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

.sunshine-redesign--product .summary form.cart {
  margin: 12px 0 6px !important;
  padding-top: 0;
  border-top: 0;
}

.sunshine-redesign--product .summary form.cart .single_add_to_cart_button::after {
  content: attr(data-sun-price);
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.sun-purchase-assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
}

.sun-purchase-assurances > span {
  min-height: 88px;
  padding: 10px 5px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #db7a22;
  text-align: center;
}

.sun-purchase-assurances i {
  font: 700 24px/1 var(--sun-body);
}

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

.sun-purchase-assurances strong {
  font-size: 12px;
  line-height: 1.1;
}

.sun-purchase-assurances small {
  color: #4c5562;
  font-size: 10px;
  line-height: 1.15;
}

.sunshine-redesign--product .summary > .product_meta {
  display: none;
}

@media (max-width: 960px) {
  .sunshine-redesign--product #primary > .product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .admin-bar.sunshine-redesign .sh-header {
    top: 46px !important;
  }
}

@media (max-width: 640px) {
  .sunshine-redesign {
    --sun-header-height: 78px;
  }

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

  .sunshine-redesign--product #main > .container {
    width: calc(100% - 28px);
    padding-top: 18px;
  }

  .sunshine-redesign--catalog .sun-catalog-intro {
    margin-bottom: 34px;
  }

  .sunshine-redesign--catalog .sun-catalog-intro h1 {
    margin-bottom: 24px;
  }

  .sunshine-redesign--product #primary > .product > :where(.woo-variation-product-gallery, .woocommerce-product-gallery) {
    padding: 0 0 30px;
  }

  .sunshine-redesign--product .woo-variation-gallery-slider-wrapper,
  .sunshine-redesign--product .woocommerce-product-gallery__wrapper,
  .sunshine-redesign--product .woo-variation-gallery-slider,
  .sunshine-redesign--product .slick-list,
  .sunshine-redesign--product .slick-track,
  .sunshine-redesign--product .wvg-gallery-image,
  .sunshine-redesign--product .wvg-single-gallery-image-container {
    min-height: 360px !important;
    height: 360px !important;
  }

  .sunshine-redesign--product .woo-variation-gallery-slider img,
  .sunshine-redesign--product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 360px;
    padding: 18px;
    object-fit: contain !important;
  }

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

  .sun-pdp-gallery-copy span { font-size: 14px; }
  .sun-pdp-gallery-copy strong { font-size: 19px; }

  .sunshine-redesign--product #primary > .product > .summary {
    padding: 22px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sunshine-redesign--product .summary .product_title {
    font-size: clamp(54px, 16vw, 63px);
  }

  .sunshine-redesign--product:not(.sunshine-redesign--premium-product) .summary .product_title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .sun-product-decision-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .sun-product-decision-points span {
    min-height: 42px;
    padding-inline: 4px;
    font-size: 9px;
  }

  .sunshine-redesign--product .summary form.cart {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .sunshine-redesign--product .summary form.cart .quantity {
    width: 104px;
    grid-template-columns: 32px 40px 32px;
  }

  .sunshine-redesign--product .summary form.cart .qty {
    width: 40px;
  }

  .sun-purchase-assurances {
    gap: 4px;
  }
}
