/* Product category cards: background image with the name over it */
.woocommerce ul.products:has(> li.product-category){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0 0 30px;padding:0}
.woocommerce ul.products:has(> li.product-category)::before,
.woocommerce ul.products:has(> li.product-category)::after{display:none}
.woocommerce ul.products li.product-category{position:relative;float:none !important;clear:none !important;width:auto !important;min-height:0 !important;margin:0 !important;padding:0;overflow:hidden;background:#282828;aspect-ratio:4/5}
.woocommerce ul.products li.product-category a{display:block;height:100%;color:#fff}
.woocommerce ul.products li.product-category a img{width:100%;height:100%;margin:0;object-fit:cover;transition:transform .5s ease}
.woocommerce ul.products li.product-category a::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.65) 0%,rgba(0,0,0,.15) 45%,rgba(0,0,0,0) 70%);transition:background .3s ease}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title{position:absolute;left:0;right:0;bottom:0;z-index:1;margin:0;padding:0 16px 26px;color:#fff !important;font-size:22px;font-weight:600;line-height:1.3;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.woocommerce ul.products li.product-category:hover a img{transform:scale(1.06)}
.woocommerce ul.products li.product-category:hover a::after{background:linear-gradient(to top,rgba(0,0,0,.75) 0%,rgba(0,0,0,.3) 55%,rgba(0,0,0,.1) 100%)}
.woocommerce ul.products li.product-category a:focus-visible{outline:3px solid #e81a46;outline-offset:-3px}
@media (max-width:991px){
	.woocommerce ul.products:has(> li.product-category){grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
	.woocommerce ul.products li.product-category .woocommerce-loop-category__title{font-size:18px;padding-bottom:18px}
}
@media (max-width:479px){
	.woocommerce ul.products li.product-category .woocommerce-loop-category__title{font-size:15px;padding:0 8px 12px}
}
