/* Additive product gallery and purchase details, styled to match TrendWatch_after. */
.product-detail-page .product-gallery-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: inherit;
  padding: 14px;
  direction: rtl;
}

.product-detail-page .product-stage-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 4;
  min-height: 32px;
}

.product-detail-page .product-stage-topline .product-media-badge {
  position: relative;
  inset: auto;
  display: inline-flex;
  align-items: center;
}

.product-detail-page .product-stage-topline .product-discount-badge {
  position: relative;
  inset: auto;
  background: linear-gradient(135deg, #a73e3e, #ce5f4b);
  color: #fff;
  border-color: transparent;
}

.product-detail-page .product-hero-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
}

.product-detail-page .product-hero-image-wrap #productHeroImage {
  display: block;
  height: 100%;
  min-height: 0;
  max-height: 75%;
  object-fit: contain;
  padding: clamp(18px, 3.6vw, 38px);
}

.product-detail-page .product-image-watermark {
  position: absolute;
  inset: auto 12px 8px auto;
  z-index: 1;
  color: var(--tw-ui-muted);
  opacity: .22;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .2em;
  pointer-events: none;
}

.product-detail-page .product-gallery-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  padding: 5px 0 2px;
}

.product-detail-page .product-gallery-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 3px;
  border: 1px solid var(--tw-ui-line);
  border-radius: 10px;
  background: var(--tw-ui-surface-2);
  cursor: pointer;
  overflow: hidden;
}

.product-detail-page .product-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  object-fit: contain;
  filter: none;
}

.product-detail-page .product-gallery-thumb.is-active {
  border-color: var(--tw-ui-accent-strong);
  box-shadow: 0 0 0 2px var(--tw-ui-accent-soft);
}

.product-detail-page .product-media-caption {
  position: relative;
  inset: auto;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--tw-ui-line);
  border-radius: 10px;
  background: var(--tw-ui-surface-2);
  color: var(--tw-ui-muted);
  font-size: .68rem;
  backdrop-filter: none;
}

.product-detail-page .product-purchase-summary {
  margin: 18px 0 12px;
  padding: 13px 15px;
  border: 1px solid var(--tw-ui-line);
  border-radius: 14px;
  background: var(--tw-ui-surface-2);
}

.product-detail-page .product-price-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--tw-ui-muted);
  font-size: .72rem;
  font-weight: 800;
}

.product-detail-page .product-purchase-summary .premium-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-detail-page .product-purchase-summary .premium-price-row strong {
  color: var(--tw-ui-accent-strong);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.product-detail-page .product-purchase-summary .premium-price-row del {
  color: var(--tw-ui-muted);
  font-size: .78rem;
}

.product-detail-page .product-purchase-summary .premium-price-row small {
  font-size: .7em;
  font-weight: 600;
}

.product-detail-page .premium-stock-row {
  margin-top: 10px;
}

.product-detail-page .product-editorial-kicker {
  display: none;
}

.product-detail-page .product-purchase-title {
  display: none;
}

.product-detail-page .premium-product-content .product-action-panel {
  margin-top: 12px;
}

.product-detail-page .product-purchase-mark {
  display: none;
}

@media(max-width:760px) {
  .product-detail-page .product-gallery-stage {
    min-height: 360px;
    padding: 10px;
  }

  .product-detail-page .product-hero-image-wrap {
    min-height: 240px;
  }

  .product-detail-page .product-hero-image-wrap #productHeroImage { max-height:340px; padding:18px; }
  .product-detail-page .product-gallery-thumb {
    width: 50px;
    height: 50px;
  }
}