/* Hide broken YITH auction badge image placeholders */
.single-product .yith-wcact-auction-badge,
.single-product .yith-wcact-auction-badge img,
.single-product img[src*="yith-woocommerce-auctions-premium/assets/images"] {
    display: none !important;
}
/* Force WooCommerce product loop into a perfect grid */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

/* Clear out old float/flex fixes that cause the layout break */
ul.products::before,
ul.products::after {
    display: none !important;
}

ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}
/* Force WooCommerce product loop into a perfect grid */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

/* Clear out old float/flex fixes, including WooCommerce first/last resets */
ul.products::before,
ul.products::after {
    display: none !important;
}

ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important; /* Prevents WooCommerce from forcing an early row break */
}

/* Kill native WooCommerce first/last behavior that creates empty layout gaps */
ul.products li.product.first, 
ul.products li.product.last {
    clear: none !important;
    float: none !important;
    margin-right: 0 !important;
}