Why not use the body class to target these elements with CSS. You could do something like the following and make your PHP a little cleaner.
.product-item{width:33%;}
.home .product-item{width:25%;}
Why not use the body class to target these elements with CSS. You could do something like the following and make your PHP a little cleaner.
.product-item{width:33%;}
.home .product-item{width:25%;}