{{block class="Smartwave\Filterproducts\Block\Home\FeaturedList" name="featured_product" product_count="8" column_count="4" aspect_ratio="0" image_width="250" image_height="250" template="flex_grid.phtml"}}
<style type="text/css">
.products-grid.flex-grid {
    margin: 0;
}
.page-main, .columns .column.main {
    padding-top: 0;
    padding-bottom: 0;
}
</style>
<script type="text/javascript">
    require([
        'jquery'        
    ], function ($) {
        $('.products.grid .product-items li.product-item:nth-child(2n)').addClass('nth-child-2n');
        $('.products.grid .product-items li.product-item:nth-child(2n+1)').addClass('nth-child-2np1');
        $('.products.grid .product-items li.product-item:nth-child(3n)').addClass('nth-child-3n');
        $('.products.grid .product-items li.product-item:nth-child(3n+1)').addClass('nth-child-3np1');
        $('.products.grid .product-items li.product-item:nth-child(4n)').addClass('nth-child-4n');
        $('.products.grid .product-items li.product-item:nth-child(4n+1)').addClass('nth-child-4np1');
        $('.products.grid .product-items li.product-item:nth-child(5n)').addClass('nth-child-5n');
        $('.products.grid .product-items li.product-item:nth-child(5n+1)').addClass('nth-child-5np1');
        $('.products.grid .product-items li.product-item:nth-child(6n)').addClass('nth-child-6n');
        $('.products.grid .product-items li.product-item:nth-child(6n+1)').addClass('nth-child-6np1');
        $('.products.grid .product-items li.product-item:nth-child(7n)').addClass('nth-child-7n');
        $('.products.grid .product-items li.product-item:nth-child(7n+1)').addClass('nth-child-7np1');
        $('.products.grid .product-items li.product-item:nth-child(8n)').addClass('nth-child-8n');
        $('.products.grid .product-items li.product-item:nth-child(8n+1)').addClass('nth-child-8np1');
    });
</script>