{% if this.collections %}
   <div {{ attributes }}>
      <div class="product-collections">
         {% for product in this.collections %}
            <a href="{{ product.url }}" title="{{ product.title }}"
               class="product-collection-item {{ product.id == this.id_product ? 'active' }}">
               {% if product.thumbnail %}
                  <div class="image">
                     <twig:Picture class="img-responsive" thumbnail="{{ product.thumbnail }}" type="product-catalog-small"/>
                     {% if this.active_check %}
                        <twig:ux:icon name="check-bold" class="c-icon"/>
                     {% endif %}
                  </div>
               {% endif %}
               {% set title = product.title %}
               {% if this.id_parameter is defined %}
                  {% set title = product.paramTitle(this.id_parameter) ?? title %}
               {% endif %}
               <span>{{ title }}</span>
            </a>
         {% endfor %}
      </div>
      {% if this.collections|length > this.limit %}
         <twig:ux:icon name="caret-down" class="c-icon scroll-detector"/>
      {% endif %}
   </div>
{% endif %}
