Above is my shop page, I want to show 4 products in a row, But after adding filter for 4 columns in functions.php, This problem occur. If somebody go to direct my shop page everything is fine, but if somebody open a category wise products its not showing well, because i also show sub-categories of the parent on shop page.
Note: If i reduce the width upper 3 columns, This single product in a row shift on above row. But My requirement is, One row show only sub categories and grid show the products.
All the grid items are a part of same ul element, its class is products.
Help me plz.