{% if product_card_gallery|default %}
<div id="{{ 'listing-product-' ~ product_id ~ '-' ~('now'|date('U')) }}"
data-listing-product-id="{{ product_id }}"
x-init="initialize()"
{% if product_card_gallery|default %}
x-data="window.alpineListingData({{ product_id }}, {{ product_card_gallery | json_encode }})"
{% endif %}
class="{{ product_card_class|default('h-full flex flex-col grow') }}">
{% endif %}
{% block product_card_pictos %}
{% if product_discount|default %}
{% embed 'components/picto.html.twig' with {picto_name: '- ' ~ product_discount ~ '%'} %}{% endembed %}
{% endif %}
{% endblock %}
<div class="relative z-1 w-[calc(100%+2rem)] overflow-hidden rounded-none border-0 rounded-b-none -ml-4 -mt-4 {% if product_featured|default %}sm:w-full sm:rounded-b-lg sm:m-l-0 sm:rounded-l-none sm:-mr-4 sm:-mb-4 sm:ml-0{% endif %}">
{% if product_card_gallery|default %}
<div class="swiper group/gallery">
<div class="swiper-wrapper">
{% for key,image in product_card_gallery %}
<div class="swiper-slide">
{% if product_card_link|default %}<a href="{{ product_card_link }}"
class="product-link">{% endif %}
<img src="{{ image is iterable ? image.src|default : image }}"
{% if image.srcset|default %}srcset="{{ image.srcset }}"{% endif %}
{% if image.sizes|default %}sizes="{{ image.sizes }}"{% endif %}
{% if image.alt|default %}alt="{{ image.alt }}"{% endif %}
loading="lazy" onerror="this.style.display='none';"
class="aspect-[317/184] lg:aspect-[4/3] w-full object-contain">
{% if product_card_link|default %}</a>{% endif %}
</div>
{% endfor %}
</div>
<div class="swiper-button-prev aria-disabled:hidden after:hidden min-w-[2rem] min-h-[2rem]"
style="left: 0.5rem;" aria-disabled="true">
<div class="w-7 h-7 flex justify-center items-center bg-white/75 text-black rounded-none lg:opacity-0 group-[.swiper-initialized:hover]/gallery:opacity-100 transition-opacity duration-600 ease-in-out">{% include 'assets/swiper-prev.svg' %}</div>
</div>
<div class="swiper-button-next aria-disabled:hidden after:hidden min-w-[2rem] min-h-[2rem]"
style="right: 0.5rem;" aria-disabled="true">
<div class="w-7 h-7 flex justify-center items-center bg-white/75 text-black rounded-none lg:opacity-0 group-[.swiper-initialized:hover]/gallery:opacity-100 transition-opacity duration-600 ease-in-out">{% include 'assets/swiper-next.svg' %}</div>
</div>
<div class="swiper-scrollbar lg:opacity-0 group-[.swiper-initialized:hover]/gallery:opacity-100 transition-opacity duration-300 ease-in-out"></div>
</div>
{% elseif product_card_image|default %}
{% if product_card_link|default %}<a href="{{ product_card_link }}" class="product-link">{% endif %}
<img src="{{ product_card_image is iterable ? product_card_image.src|default : product_card_image }}"
{% if product_card_image.srcset|default %}srcset="{{ product_card_image.srcset }}"{% endif %}
{% if product_card_image.sizes|default %}sizes="{{ product_card_image.sizes }}"{% endif %}
{% if product_card_image.alt|default %}alt="{{ product_card_image.alt }}"{% else %}alt="{{ product_card_title|default }}"{% endif %}
loading="lazy"
class="{% if product_featured|default %} aspect-[317/184] sm:aspect-[420/221] max-h-[300px] {% else %} aspect-[317/184] lg:aspect-[4/3] {% endif %} w-full object-contain">
{% if product_card_link|default %}</a>{% endif %}
{% else %}
<div class="flex aspect-[317/184] lg:aspect-[4/3] w-full object-contain p-16">
<img src="{{ asset('build/img/logo.png') }}" alt="logo {{ bloginfo.name }}" loading="lazy"
class="w-full h-auto">
</div>
{% endif %}
</div>
<div class="flex flex-col items-start grow-[2] {% if product_featured|default %}flex w-full flex-col sm:w-1/2{% endif %}">
{% block product_card_pre_title %}{% endblock %}
{% block product_card_text %}
<div class="flex flex-col space-y-3 pt-2.5">
{% if product_card_title|default %}
{% set product_card_title = '<' ~ product_card_heading_level|default('h3') ~ ' class="text-base 2xl:text-lg leading-5 2xl:leading-6 uppercase">' ~ product_card_title ~ '</' ~ product_card_heading_level|default('h3') ~ '>' %}
{{ product_card_title|raw }}
{% endif %}
{% block product_card_video %}{% endblock %}
{% if product_card_description|default %}
<span class="text-sm text-neutral-400" data-readmore="20">{{ product_card_description|raw }}</span>
{% endif %}
{% block product_card_badges %}{% endblock %}
</div>
{% endblock %}
{% block product_card_prices %}
<div class="mt-auto flex flex-row items-end flex-wrap pt-5">
<div class="flex flex-col mr-2">
{% if product_card_pre_price|default %}
<p class="text-sm leading-3 text-black font-bold">Antes: {{product_card_pre_price|raw }}</p>
{% endif %}
{% if product_card_featured_price|default %}
<div class="relative inline-block w-max before:absolute before:left-1 before:top-1 before:block before:h-full before:w-full before:bg-black">
<p class="relative w-max bg-primary px-2 text-2xl text-white">
{% else %}
<p class="text-2xl text-black {% if product_card_pre_price|default %} bg-primary px-2 py-0.5 mt-2 {% endif %}">
{% endif %}
{{ product_card_price|default }}{% block product_card_price_per_seat %}{% endblock %}
</p>
{% if product_card_featured_price|default %}</div>{% endif %}
</div>
</div>
{% endblock %}
</div>
{% if product_card_gallery|default %}
</div>
{% endif %}