{# Adapted from the vendored Penguin UI component (penguinui-components/card/ecommerce-product-card.html): wired to our product data + i18n + htmx add-to-cart + toast. The demo rating stars, hardcoded title/price/description/image and the `max-w-sm` (which fights the shop grid) are dropped; the whole card links to the product page. #}
{% if product.image %} {{ product.name }} {% endif %}

{{ product.name }}

Price{{ product.price }} {{ product.currency }}
{% if product.stock > 0 %}

{{ t(key="in-stock", lang=lang | default(value='sk')) }}: {{ product.stock }}

{{ ui::button(label=t(key="add-to-cart", lang=lang | default(value='sk')), type="submit", extra="w-full", icon='') }}
{% else %}

{{ t(key="out-of-stock", lang=lang | default(value='sk')) }}

{% endif %}