/* Transparent product cutouts need a replacement, not a layered crossfade. */
.product-grid-item .product-element-top:has(> .hover-img) > .product-image-link,
.product-grid-item .product-element-top > .hover-img {
 transition: opacity .6s ease !important;
}
.product-grid-item .product-element-top > .hover-img {
 opacity: 0 !important;
 visibility: hidden !important;
 pointer-events: none;
}
@media (hover: hover) {
 .product-grid-item:hover .product-element-top:has(> .hover-img) > .product-image-link {
  opacity: 0 !important;
 }
 .product-grid-item:hover .product-element-top > .hover-img {
  opacity: 1 !important;
  visibility: visible !important;
 }
}
html[data-hl-theme] .wd-fbt {
 --hk-fbt-text: #19394b;
 --hk-fbt-muted: #506675;
 --hk-fbt-price: #0073a6;
}
html[data-hl-theme="dark"] .wd-fbt {
 --hk-fbt-text: #e6f2f8;
 --hk-fbt-muted: #b3c9d6;
 --hk-fbt-price: #43d0ff;
}
html[data-hl-theme] .wd-fbt .wd-fbt-product-heading :is(label,.wd-entities-title),
html[data-hl-theme] .wd-fbt .wd-fbt-desc {
 color: var(--hk-fbt-text) !important;
 opacity: 1 !important;
}
html[data-hl-theme] .wd-fbt .price del,
html[data-hl-theme] .wd-fbt .price del :is(.amount,bdi,span) {
 color: var(--hk-fbt-muted) !important;
 opacity: 1 !important;
}
html[data-hl-theme] .wd-fbt .price ins,
html[data-hl-theme] .wd-fbt .price ins :is(.amount,bdi,span) {
 color: var(--hk-fbt-price) !important;
}

/* Reserve a separate action strip below a stable, uncropped image frame. */
.product-grid-item.wd-hover-base .product-element-top:has(>.wrapp-swatches){height:auto!important;overflow:hidden;display:block}
.product-grid-item.wd-hover-base .product-element-top:has(>.wrapp-swatches)>.product-image-link{display:block;aspect-ratio:1;height:auto!important;overflow:hidden}
.product-grid-item.wd-hover-base .product-element-top:has(>.wrapp-swatches)>.product-image-link>img{width:100%!important;height:100%!important;object-fit:contain!important;max-height:100%}
.product-grid-item.wd-hover-base .product-element-top:has(>.wrapp-swatches)>.hover-img{top:0!important;bottom:auto!important;left:0;right:0;width:100%;height:auto!important;aspect-ratio:1;overflow:hidden}
.product-grid-item.wd-hover-base .product-element-top:has(>.wrapp-swatches)>.hover-img>img{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important}
.product-grid-item.wd-hover-base .product-element-top>.wrapp-swatches{position:relative!important;inset:auto!important;min-height:42px;height:42px;transform:none!important;opacity:1!important;visibility:visible!important;margin:0!important;border-top:1px solid rgba(128,150,165,.25);display:flex;align-items:center;justify-content:flex-end}

.product-grid-item.wd-hover-base .product-element-top:has(>.wrapp-swatches){aspect-ratio:auto!important}

/* Slow reveal and growth, staying inside the uncropped image frame. */
.product-grid-item .product-element-top>.product-image-link>img{transform:scale(.97)!important;transition:transform 1.4s ease-in-out!important}
.product-grid-item .product-element-top>.hover-img>img{transform:scale(.92)!important;transition:transform 1.4s ease-in-out!important}
@media(hover:hover){
 .product-grid-item:hover .product-element-top>.product-image-link>img,.product-grid-item:hover .product-element-top>.hover-img>img{transform:scale(1)!important}
 .product-grid-item:hover .product-element-top:has(>.hover-img)>.product-image-link{transition:none!important}
}
@media(prefers-reduced-motion:reduce){
 .product-grid-item .product-element-top>.product-image-link,.product-grid-item .product-element-top>.hover-img,.product-grid-item .product-element-top>.product-image-link>img,.product-grid-item .product-element-top>.hover-img>img{transition:none!important;transform:none!important}
}
