/* V38 — focus: more discernible preview actions and genuinely sticky pricing. */

/* Deepen the shadow directly beneath the preview buttons, not across the artwork. */
.v19-product-page .v37-gallery .v37-gallery-actions .v36-gallery-button {
  box-shadow:
    0 5px 8px rgba(0,0,0,.35),
    0 13px 28px rgba(0,0,0,.52),
    0 22px 42px rgba(0,0,0,.20) !important;
  position:relative;
  z-index:1;
}
.v19-product-page .v37-gallery .v37-gallery-actions .v36-gallery-button:hover,
.v19-product-page .v37-gallery .v37-gallery-actions .v36-gallery-button:focus-visible {
  box-shadow:
    0 7px 12px rgba(0,0,0,.4),
    0 18px 36px rgba(0,0,0,.58),
    0 26px 48px rgba(0,0,0,.20) !important;
}

/* Sticky must have a tall grid-column to travel within. Previously the
   sidebar shrink-wrapped to the card, so position:sticky appeared inert. */
@media (min-width: 941px) and (min-height: 650px) {
  .v19-product-page .v19-product-grid {
    align-items:stretch !important;
  }
  .v19-product-page .v19-product-grid > .product-purchase.v36-product-purchase {
    align-self:stretch !important;
    min-height:100%;
    position:relative;
    overflow:visible !important;
  }
  .v19-product-page .v19-product-grid > .product-purchase.v36-product-purchase > .purchase-sticky {
    position:sticky !important;
    top:92px !important;
    align-self:start;
  }
}

/* On narrow screens or short viewports, avoid hiding purchase controls
   behind the viewport while the user reads the product. */
@media (max-width:940px), (max-height:649px) {
  .v19-product-page .v36-product-purchase .purchase-sticky {
    position:static !important;
  }
}
