{% for keyProduto, product in products %}
  <div class="ftr-grid__card ftr-product-card"
       data-code="{{ product.model }}"
       data-name="{{ product.name }}"
       data-quantity="{{ product.quantity }}"
       data-unit-price="{{ product.price_value }}"
       data-total-price="{{ product.total_value }}"
    {{ (product.st_valor_value != 'N') ? 'data-value-st="' ~ product.st_valor_value ~ '"' : '' }}
    {{ (product.ipi_valor_value != 'N') ? 'data-value-ipi="' ~ product.ipi_valor_value ~ '"' : '' }}
    {{ (product.fcpst_valor_value != 'N') ? 'data-value-fcpst="' ~ product.fcpst_valor_value ~ '"' : '' }}>
    <div class="ftr-product-card__content">
      {% if product.thumb %}
        <div class="ftr-product-card__image">
          <img src="{{ product.thumb.jpg }}" alt="{{ product.name }}" title="{{ product.name }}">
        </div>
      {% endif %}
      <div class="ftr-product-card__info">
        <span>{{ product.name }}</span>
        {% if product.price %}
          <div>
            <span class="ftr-text--secondary"><b>{{ product.price }}</b></span>
          </div>
        {% endif %}

        {% block content_end_product %}{% endblock %}
      </div>
      {% if product.aviseme %}
        {{ product.aviseme }}
      {% else %}
        <button
          class="ftr-btn--bl ftr-word-break ftr-h-full ftr-out-space--t-s ftr-background--primary {{ productBoxButton == typeProductBoxButton.Tp_QuantityAndButton and
          product.gridhave and
          listGrid is not defined
          ? ''
          : 'ftr-buy-later-to-cart'}}"
          data-product-id="{{ product.product_id }}"
          data-layout-id="{{ layout_id_product }}"
          data-quantity="{{ product.selected_quantity }}"
          {% if listGrid is defined and listGrid == false %}data-list-grid="false"{% endif %}
          {% if product.gridhave %}data-grid-id="{{ product.gridhave }}"{% endif %}
          onclick="initMoveBuyLaterToCart(event, this)"
        >
          {{ text_add_to_cart }}
        </button>
        <button
          class="ftr-btn--bl ftr-h-full ftr-out-space--t-s ftr-background--secondary ftr-buy-later-remove"
          data-product-id="{{ product.product_id }}"
          data-layout-id="{{ layout_id_product }}"
          {% if listGrid is defined and listGrid == false %}data-list-grid="false"{% endif %}
          {% if product.gridhave %}data-grid-id="{{ product.gridhave }}"{% endif %}
          onclick="initRemoveBuyLater(event, this)"
        >
          {{ remove_buy_later }}
        </button>
      {% endif %}
    </div>
  </div>
{% endfor %}