{% if moduleBrandproducts.exibeModule %}
  {% if moduleBrandproducts.positionModulo %}
    <section class="products_slider">
      {{ product_list_title }}
      <div class="carousel-container slide-bestseller js-load-slide" onload="productModules.push({element: this, name: 'slide-brandproducts', product_id: '{{product_id}}'})">
        <!--Carregar produtos com base na ideia do modulo (slide-brandproducts) -->
        <div class="carousel-wrapper grid">
          <div class="carousel-list">
            {% set boxQuantity = moduleBrandproducts.productsCount < 24 ? moduleBrandproducts.productsCount : 24 %}
            {% for i in 1..boxQuantity %}
              <div class="item-column {{ config.wg24_productbox_size == 4 ? 'item-column--large' : '' }}" data-quantity="{{moduleBrandproducts.productsCount}}">
                <div class="itembox rel paper"></div>
              </div>
            {% endfor %}
          </div>
        </div>
      </div>
    </section>
  {% else %} <!-- Para os modulos nas laterais (column_left, column_right) -->
    <div>
      <div class="bottom-border-gray vertical-padding-medium">
        <h2 class="heading-3">{{ heading_title }}</h2>
      </div>
      <div class="vertical-padding-medium">
        {{ moduleBrandproducts.html }}<!-- productaside.twig -->
      </div>
    </div>
  {% endif %}
{% endif %}
