/* Product detail final layer: loaded after pm-ux.css to keep interaction stable. */
:root {
  --gaoyea-channel-width: clamp(70px, 6.2vw, 88px);
  --gaoyea-channel-height: clamp(42px, 3.5vw, 52px);
  --gaoyea-channel-radius: 12px;
  --gaoyea-product-sticky-top: clamp(168px, 14vw, 208px);
  --gaoyea-product-float-width: clamp(360px, 39vw, 520px);
  --gaoyea-product-float-gap: 0px;
  --gaoyea-product-float-right: max(var(--pm-edge, 24px), calc((100vw - 1280px) / 2));
  --gaoyea-product-float-top: var(--gaoyea-product-sticky-top);
  --gaoyea-product-layout-left: max(var(--pm-edge, 24px), calc((100vw - 1280px) / 2));
  --gaoyea-product-detail-width: min(
    calc(1280px - var(--gaoyea-product-float-width)),
    calc(100vw - var(--gaoyea-product-float-width) - var(--gaoyea-product-layout-left) - var(--pm-edge, 24px))
  );
  --gaoyea-product-float-left: calc(var(--gaoyea-product-layout-left) + var(--gaoyea-product-detail-width));
}

#productApp.detail-shell {
  padding-top: clamp(14px, 2vw, 28px) !important;
}

#productApp .secondary-nav {
  margin-bottom: clamp(12px, 1.6vw, 20px) !important;
}

@media (min-width: 981px) {
  #productApp .product-page-layout {
    align-items: start !important;
    overflow: visible !important;
    isolation: isolate !important;
    margin-top: 0 !important;
  }

  #productApp .product-detail-scroll {
    align-self: start !important;
    min-height: calc(100vh + 160px) !important;
  }

  #productApp .product-sticky-info {
    position: sticky !important;
    top: var(--gaoyea-product-sticky-top) !important;
    align-self: start !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100vh - var(--gaoyea-product-sticky-top) - 24px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 3 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

#productApp .product-sticky-info .purchase-channels > div {
  display: flex !important;
  align-items: center !important;
  gap: clamp(10px, 1.25vw, 16px) !important;
}

#productApp .product-sticky-info .purchase-channels a,
#productApp .product-sticky-info .purchase-channels .channel-static {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--gaoyea-channel-width) !important;
  min-width: var(--gaoyea-channel-width) !important;
  height: var(--gaoyea-channel-height) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--gaoyea-channel-radius) !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#productApp .product-sticky-info .purchase-channels img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: var(--gaoyea-channel-radius) !important;
}

#productApp .product-sticky-info .purchase-channels .offline-channel-logo {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  clip: auto !important;
  overflow: visible !important;
  white-space: nowrap !important;
  background: #777 !important;
  border-radius: var(--gaoyea-channel-radius) !important;
  color: #fff !important;
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: clamp(0.68rem, 0.78vw, 0.82rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
}

#productApp .product-sticky-info .purchase-channels .offline-channel {
  background: transparent !important;
}

#productApp .product-sticky-info .purchase-channels .offline-channel > span:first-child,
#productApp .product-sticky-info .purchase-channels .channel-static > .offline-channel-logo {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
  background: #777 !important;
  border-radius: var(--gaoyea-channel-radius) !important;
  color: #fff !important;
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: clamp(0.68rem, 0.78vw, 0.82rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  text-indent: 0 !important;
}

#productApp .product-sticky-info .purchase-channels a > span:not(.offline-channel-logo),
#productApp .product-sticky-info .purchase-channels .channel-static:not(.offline-channel) > span:not(.offline-channel-logo),
#productApp .product-sticky-info .purchase-channels .offline-channel > span + span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

#productApp .product-context-actions {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: clamp(12px, 1.2vw, 16px) !important;
}

#productApp .product-context-actions .section-kicker {
  margin: 0 !important;
}

#productApp .product-context-actions a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 7px 13px !important;
  border: 1px solid rgba(17, 17, 17, 0.18) !important;
  border-radius: 999px !important;
  color: #2c261f !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

#productApp .product-context-actions a:hover {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}

#productApp .product-sticky-info .purchase-channels a:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.03) saturate(1.05) !important;
}

#productApp .product-decision-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-top: clamp(14px, 1.5vw, 20px) !important;
}

#productApp .product-decision-actions a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  border: 1px solid rgba(17, 17, 17, 0.18) !important;
  border-radius: 999px !important;
  color: #2c261f !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.64) !important;
}

#productApp .product-decision-actions a:hover {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}

#productApp .same-series-nav {
  margin-top: clamp(16px, 1.7vw, 24px) !important;
  padding-top: clamp(16px, 1.7vw, 24px) !important;
  border-top: 1px solid rgba(17, 17, 17, 0.12) !important;
}

#productApp .same-series-nav p {
  margin: 0 0 10px !important;
  color: rgba(17, 17, 17, 0.56) !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

#productApp .same-series-nav > div {
  display: grid !important;
  gap: 8px !important;
}

#productApp .same-series-nav a {
  display: grid !important;
  gap: 3px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  color: #2c261f !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

#productApp .same-series-nav a span {
  font-weight: 900 !important;
}

#productApp .same-series-nav a em {
  color: rgba(17, 17, 17, 0.48) !important;
  font-size: 0.82rem !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

#productApp .same-series-nav a:hover {
  background: rgba(247, 213, 0, 0.34) !important;
}

@media (max-width: 980px) {
  #productApp.detail-shell {
    padding-top: 18px !important;
  }

  #productApp .product-page-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #productApp .product-detail-scroll {
    order: 2 !important;
    width: 100% !important;
  }

  #productApp .product-sticky-info {
    order: 1 !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(18px, 5vw, 28px) var(--pm-edge, 18px) clamp(20px, 5vw, 30px) !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #productApp .product-sticky-info h1 {
    font-size: clamp(2.2rem, 13vw, 4rem) !important;
    line-height: 0.98 !important;
  }

  #productApp .product-sticky-info .product-selling-points {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #productApp .product-decision-actions {
    grid-template-columns: 1fr !important;
  }

  #productApp .product-context-actions {
    align-items: center !important;
  }
}

@media (max-width: 560px) {
  :root {
    --gaoyea-channel-width: 64px;
    --gaoyea-channel-height: 38px;
  }

  #productApp .product-sticky-info .tag-row {
    gap: 8px !important;
  }

  #productApp .product-sticky-info .tag-row span {
    font-size: 0.82rem !important;
    padding: 8px 12px !important;
  }

  #productApp .product-context-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  #productApp .product-sticky-info .purchase-channels > div {
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  #productApp .product-sticky-info .purchase-channels a,
  #productApp .product-sticky-info .purchase-channels .channel-static {
    width: var(--gaoyea-channel-width) !important;
    min-width: var(--gaoyea-channel-width) !important;
    height: var(--gaoyea-channel-height) !important;
  }

  #productApp .same-series-nav a {
    padding: 12px !important;
  }

  #productApp .product-detail-scroll img {
    width: 100% !important;
    height: auto !important;
  }
}

@media (min-width: 981px) {
  #productApp .product-page-layout {
    display: block !important;
    width: var(--gaoyea-product-detail-width) !important;
    margin-right: 0 !important;
    margin-left: var(--gaoyea-product-layout-left) !important;
  }

  #productApp .product-sticky-info {
    position: fixed !important;
    top: var(--gaoyea-product-float-top) !important;
    right: auto !important;
    left: var(--gaoyea-product-float-left) !important;
    width: var(--gaoyea-product-float-width) !important;
    min-height: 0 !important;
    padding-top: clamp(18px, 2.1vw, 28px) !important;
    max-height: calc(100vh - var(--gaoyea-product-float-top) - 16px) !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}
