When I use the WooСommerce shortcode to display products in 3 columns per line, then I have an empty space on the right for 2 products, because in the store settings, the parameter 5 products per line is globally used.
If I switch 3 or 4 products per line on the product page, this will also affect the display of products in shortcodes on other pages.
?per_row=3&shop_view=grid or ?per_row=5&shop_view=grid