/* SCommerce Stability 7.0
   Loaded after the legacy StyleHub bundle so critical commerce layouts remain
   deterministic even when older patch rules are still present in style.css. */

/* Product detail: hard layout boundary. */
.stylehub-body .sh-product-page.sh-pdp{display:block;min-width:0;overflow:clip;background:#fff}
.stylehub-body .sh-pdp-breadcrumb{width:min(var(--sh-container,1280px),calc(100% - 40px));margin-inline:auto}
.stylehub-body .sh-product-page .sh-pdp-shell{
  width:min(var(--sh-container,1280px),calc(100% - 40px));margin-inline:auto;
  display:grid!important;grid-template-columns:minmax(0,1.04fr) minmax(390px,.96fr)!important;
  gap:48px!important;align-items:start!important;min-width:0
}
.stylehub-body .sh-product-page .sh-pdp-gallery{
  display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;gap:14px!important;
  min-width:0!important;width:100%!important;position:sticky!important;top:112px!important
}
.stylehub-body .sh-product-page .sh-pdp-thumbs{display:flex!important;flex-direction:column!important;gap:9px!important;width:76px!important;min-width:0!important;max-height:690px!important;overflow:auto!important}
.stylehub-body .sh-product-page .sh-pdp-thumb{display:block!important;width:76px!important;min-width:76px!important;aspect-ratio:3/4!important;padding:3px!important;overflow:hidden!important}
.stylehub-body .sh-product-page .sh-pdp-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.stylehub-body .sh-product-page .sh-pdp-stage{display:block!important;position:relative!important;width:100%!important;min-width:0!important;aspect-ratio:3/4!important;overflow:hidden!important;border-radius:18px!important;background:#f7f5f9!important}
.stylehub-body .sh-product-page .sh-pdp-track{display:block!important;position:relative!important;width:100%!important;height:100%!important;overflow:hidden!important}
.stylehub-body .sh-product-page .sh-pdp-slide{display:none!important;width:100%!important;height:100%!important;margin:0!important;overflow:hidden!important}
.stylehub-body .sh-product-page .sh-pdp-slide.is-active{display:block!important}
.stylehub-body .sh-product-page .sh-pdp-slide img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;background:#f7f5f9!important}
.stylehub-body .sh-product-page .sh-pdp-info{display:block!important;min-width:0!important;width:100%!important}
.stylehub-body .sh-product-page .sh-pdp-details{width:min(var(--sh-container,1280px),calc(100% - 40px));margin-inline:auto}
.stylehub-body .sh-product-page .sh-pdp-accordion-panel{max-width:100%;overflow:hidden}
.stylehub-body .sh-product-page .product-rich-content{overflow-wrap:anywhere}
.stylehub-body .sh-product-page .product-rich-content img{max-width:100%!important;height:auto!important}
.stylehub-body .sh-product-page .sh-pdp-recommendations{width:min(var(--sh-container,1280px),calc(100% - 40px));margin-inline:auto}
.stylehub-body .sh-product-page .sh-pdp-rec-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important;min-width:0}
.stylehub-body .sh-product-page .sh-pdp-rec-card{display:block!important;min-width:0!important;overflow:hidden!important}
.stylehub-body .sh-product-page .sh-pdp-rec-media{display:block!important;aspect-ratio:3/4!important;overflow:hidden!important}
.stylehub-body .sh-product-page .sh-pdp-rec-media img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}

/* Keep controls inside their columns even with long catalog content. */
.stylehub-body .sh-pdp-info h1,.stylehub-body .sh-pdp-lead,.stylehub-body .sh-pdp-service-cards small{overflow-wrap:anywhere}
.stylehub-body .sh-pdp-buybox>*{min-width:0}
.stylehub-body .sh-pdp-review-form input,.stylehub-body .sh-pdp-review-form select,.stylehub-body .sh-pdp-review-form textarea{max-width:100%}

/* Avoid expensive rendering effects on modest phones/tablets. */
@media (max-width:1100px){
  .stylehub-body .sh-product-page .sh-pdp-shell{grid-template-columns:minmax(0,1fr) minmax(350px,.9fr)!important;gap:30px!important}
  .stylehub-body .sh-product-page .sh-pdp-rec-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .stylehub-body .sh-product-page .sh-pdp-rec-card:nth-child(n+5){display:none!important}
}
@media (max-width:820px){
  .stylehub-body .sh-pdp-breadcrumb,.stylehub-body .sh-product-page .sh-pdp-shell,.stylehub-body .sh-product-page .sh-pdp-details,.stylehub-body .sh-product-page .sh-pdp-recommendations{width:calc(100% - 24px)!important}
  .stylehub-body .sh-product-page .sh-pdp-shell{display:block!important}
  .stylehub-body .sh-product-page .sh-pdp-gallery{display:block!important;position:relative!important;top:auto!important;width:auto!important;margin-inline:-12px!important}
  .stylehub-body .sh-product-page .sh-pdp-thumbs{display:none!important}
  .stylehub-body .sh-product-page .sh-pdp-stage{aspect-ratio:3/4!important;border-radius:0!important;overflow:hidden!important}
  .stylehub-body .sh-product-page .sh-pdp-track{display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch}
  .stylehub-body .sh-product-page .sh-pdp-track::-webkit-scrollbar{display:none}
  .stylehub-body .sh-product-page .sh-pdp-slide,.stylehub-body .sh-product-page .sh-pdp-slide.is-active{display:block!important;flex:0 0 100%!important;width:100%!important;height:100%!important;scroll-snap-align:center!important}
  .stylehub-body .sh-product-page .sh-pdp-slide img{object-fit:contain!important;transform:none!important;transition:none!important}
  .stylehub-body .sh-product-page .sh-pdp-info{padding-top:24px!important}
  .stylehub-body .sh-product-page .sh-pdp-rec-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .stylehub-body .sh-product-page .sh-pdp-rec-card:nth-child(n+5){display:none!important}
  .stylehub-body .sh-product-page .sh-pdp-policy-grid,.stylehub-body .sh-product-page .sh-pdp-review-list,.stylehub-body .sh-product-page .sh-pdp-review-overview,.stylehub-body .sh-product-page .sh-pdp-spec-list{grid-template-columns:1fr!important}
  .stylehub-body .sh-product-page .sh-pdp-stage.is-zooming img{transform:none!important}
  .stylehub-body .sh-site-header,.stylehub-body .mobile-bottom,.stylehub-body .sh-pdp-mobile-buy{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
@media (pointer:coarse){
  .stylehub-body .sh-pdp-rec-media img,.stylehub-body .sh-pdp-thumb,.stylehub-body .sh-pdp-slide img{transition:none!important}
}
@media (prefers-reduced-motion:reduce){
  .stylehub-body .sh-product-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
