.product-card-gallery .wd-product-img-link { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.product-card-gallery .product-category-image-primary, .product-card-gallery .product-category-image-secondary { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.product-card-gallery .product-category-image-primary { transition: opacity .2s ease, transform 3s ease; }
.product-card-gallery .product-category-image-secondary { position: absolute; inset: 0; height: 100%; background-color: #fff; object-fit: contain; opacity: 0; transition: opacity .2s ease, transform 3s ease; }
.product-card-gallery .wd-product-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: #e5e5e5; }
.product-card-gallery .wd-product-placeholder img { display: block; width: 24%; max-width: 120px; height: auto; }
.product-card-gallery .product-card-thumb { position: relative; }
.product-card-gallery .wd-product.wd-hover-icons .wd-buttons.product-card-actions { top: 10px; inset-inline-end: 10px; display: flex; flex-direction: column; gap: 0; width: 48px; max-width: none; padding: 0; overflow: hidden; background: #fff; box-shadow: 0 1px 5px rgb(0 0 0 / .16); opacity: 0; visibility: hidden; transform: translate3d(10px, 0, 0); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }
.product-card-gallery .wd-product.wd-hover-icons .product-card-actions .wd-action-btn { --wd-action-w: 48px; --wd-action-h: 58px; flex: 0 0 58px; width: 48px; max-width: none; }
.product-card-gallery .product-card-actions .wd-action-btn > a { width: 48px; height: 58px; color: #333; background: transparent; transition: color .2s ease; }
.product-card-gallery .product-card-actions .wd-action-btn > a:hover, .product-card-gallery .product-card-actions .wd-action-btn > a:focus-visible { color: #b6000f; }
.product-card-gallery .product-card-actions .wd-action-btn > a > i { font-size: 16px; }
.product-card-gallery .product-card-buy { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; opacity: 0; visibility: hidden; transform: translateY(100%); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }
.product-card-gallery .product-card-buy > a { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 8px 12px; color: #fff; background: #b6000f; font-size: 13px; font-weight: 600; text-transform: uppercase; transition: background-color .2s ease; }
.product-card-gallery .product-card-buy > a:hover, .product-card-gallery .product-card-buy > a:focus-visible { color: #fff; background: #e0001d; }
.product-card-gallery .product-card-buy > a > i { font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
    .product-card-gallery .wd-product.wd-hover-icons:hover .wd-buttons.product-card-actions, .product-card-gallery .wd-product.wd-hover-icons:focus-within .wd-buttons.product-card-actions { opacity: 1; visibility: visible; transform: translate3d(0, 0, 0); }
    .product-card-gallery .wd-product:hover .product-card-buy, .product-card-gallery .wd-product:focus-within .product-card-buy { opacity: 1; visibility: visible; transform: translateY(0); }
}
@media (hover: none), (pointer: coarse) {
    .product-card-gallery .wd-product.wd-hover-icons .wd-buttons.product-card-actions { opacity: 1; visibility: visible; transform: none; }
    .product-card-gallery .product-card-buy { opacity: 1; visibility: visible; transform: none; }
}
@media (hover: hover) and (pointer: fine) {
    .product-card-gallery .wd-product-img-link:hover .product-category-image-primary, .product-card-gallery .wd-product-img-link:hover .product-category-image-secondary { transform: scale(1.12); }
    .product-card-gallery .wd-product-img-link.has-hover-image:hover .product-category-image-primary { opacity: 0; }
    .product-card-gallery .wd-product-img-link.has-hover-image:hover .product-category-image-secondary { opacity: 1; }
}
