{if $products}


<div class="container product-container home">
    <h2 class="product-title">PRODUITS MIS EN AVANT</h2>

    <div class="slider-wrapper" data-slider="new">
        <div class="slider-track">
            {foreach from=$products item=product}
                {include file='catalog/_partials/miniatures/product.tpl' product=$product}
            {/foreach}
        </div>
        
    </div>

    {if count($products) > 4}
        <button data-slider="new" class="prevBtn prev"><svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e3e3e3"><path d="M400-80 0-480l400-400 71 71-329 329 329 329-71 71Z"/></svg></button>
        <button data-slider="new" class="nextBtn next"><svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e3e3e3"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg></button>
    {/if}
</div> 
{/if}

 <script src="{$urls.base_url}modules/lcvprestatheme/views/js/productSlide.js"></script>