{% if featured_products|length > 0 %}

    {% if featured_title is empty %}
        {% set featured_title = 'Featured products' %}
    {% endif %}

    {% if featured_content is empty %}
        {% set featured_content = 'We\'ve found a few items you may be interested in' %}
    {% endif %}

    {% if cta_text is empty %}
        {% set cta_text = 'Explore Treatments' %}
    {% endif %}
    
    <div class="featuredItemsWrap">

        {% include 'includes/elements/intro_block.twig' with {
            intro_title: featured_title,
            intro_content: featured_content,
            cta_link: cta_link,
            cta_text: cta_text,
            class: 'featuredIntro',
            horizontal: true,
            wrap: true
        }%}

        <div class="wrapper">

          
            <product-slider
                    :products="{{ featured_products|json_encode }}"
            ></product-slider>
            

        </div> <!-- .wrapper -->

    </div> <!-- .featuredItemsWrap -->
    
{% endif %}
