{% doc %} Renders a featured product card for the homepage hero. @param {product} product - Product to show in the card @example {% render 'hero-product', product: block.settings.product %} {% enddoc %} {% liquid assign variant = product.selected_or_first_available_variant assign card_image = product.featured_image assign image_alt = card_image.alt | default: product.title %}
{% if card_image %} {{ card_image | image_url: width: 200 | image_tag: alt: image_alt, widths: '100, 140, 200', sizes: '(max-width: 1023px) 70px, 100px', class: 'hero__card-image', loading: 'eager' }} {% endif %}
{{ product.title | escape }}

{{ variant.price | money_without_trailing_zeros }}

{% form 'product', product, class: 'hero__form' %} {% endform %}