{% if moduleFeatured.exibeModule %}
  {% if moduleFeatured.positionModulo %}
    <section class="products_slider">
      <div class="product-title">
        {% if product_list_title_style == Type_ProductListTitleStyle.Left %}
          <div class="flex flex-row nowrap-xs between-xs middle-xs">
            <h2 class="heading-2 flex-1">{{ heading_title }}</h2>
            <a href="{{ link }}" class="text-medium">Ver todos</a>
          </div>
        {% else %}
          <div class="flex flex-row nowrap-xs center-xs middle-xs">
            <div style="width: fit-content; {{ product_list_title_style == Type_ProductListTitleStyle.CenterWithLines ? ' max-width: calc(100% - 164px) ' : '' }}" class="rel">
              <a class="heading-2 flex-1 {{ product_list_title_style == Type_ProductListTitleStyle.CenterWithLines ? ' product-title-with-lines ' : '' }}" href="{{ link }}">
                <h2 class="heading-2 flex-1 text-center">{{ heading_title }}</h2>
              </a>
            </div>
          </div>
        {% endif %}
      </div>
      {% if grid %}
      <div class="grid">
        <div class="grid-on-slider">
          {{ moduleFeatured.html }}
        </div>
      </div>
      {% else %}
      <div class="carousel-container slide-featured js-load-slide" onload="productModules.push({element: this, name: 'slide-featured', productsIds: '{{ productsIds }}' })">
        <div class="carousel-wrapper grid">
          <div class="carousel-list">
            {% set boxQuantity = moduleFeatured.productsCount < 24 ? moduleFeatured.productsCount : 24 %}
            {% for i in 1..boxQuantity %}
              <div class="item-column {{ config.wg24_productbox_size == 4 ? 'item-column--large' : '' }}" data-quantity="{{moduleFeatured.productsCount}}">
                <div class="itembox rel paper"></div>
              </div>
            {% endfor %}
          </div>
        </div>
      </div>
      {% endif %}
    </section>
  {% else %} <!-- Para os modulos nas laterais (column_left, column_right) -->
    <div>
      <div class="bottom-border-gray vertical-padding-medium">
        <h2 class="heading-3">
          <a href="{{ link }}" >
            {{ heading_title }}
          </a>
        </h2>
      </div>
      <div class="vertical-padding-medium">
        {{ moduleFeatured.html }}<!-- productaside.twig -->
      </div>
    </div>
  {% endif %}
{% endif %}
