{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}

{% block component_product_box_image_inner %}
    <a href="{{ seoUrl('frontend.detail.page', routeArguments) }}"
       title="{{ name }}"
       class="product-image-link is-{{ displayMode }}">
        {{ parent() }}
    </a>
{% endblock %}

{% block component_product_box_image %}
  {{ parent() }}
  {% if product.extensions.awardMedia|length %}
    <div class="awards">
      {% for awardMedia in product.extensions.awardMedia.all() %}
      <a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
         title="{{ name }}">
        {% sw_thumbnails 'awardMedia' with {
          media: awardMedia|first,
          sizes: {
            'xs': '501px',
            'sm': '315px',
            'md': '427px',
            'lg': '333px',
            'xl': '284px',
            'default': '50px'
          },
          attributes: {
            'title': awardMedia|first.title
          }
        } %}
      </a>
      {% endfor %}
    </div>
  {% endif %}
{% endblock %}

{% block component_product_box_name %}
  <a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
     class="product-name"
     title="{{ name }}">
    {%  if product.customFields.custom_wein_jahrgang %}<span class="year">{{ product.customFields.custom_wein_jahrgang }}er</span>{% endif %}
    <span class="site">{{ product.extensions.bwegProperties.get('4d005d04a2924cc4b59612875aee757c') }}</span>
    {{ name }}
    <span class="qty_taste">{#{{ product.extensions.bwegProperties.get('3897a8e7eb47405f941525a2c21395c8') }}#}{{ product.extensions.bwegProperties.get('840da18f18184040ac2c34e9a13abd83') }} {{ product.extensions.bwegProperties.get('087598bcbf044684b57fa108f0385128') }}</span>
    {#{% if page.product.customFields.custom_wein_addendum %}
      <span class="addendum">{{ page.product.customFields.custom_wein_addendum }}</span>
    {% endif %}#}
  </a>
{% endblock %}

{% block component_product_box_variant_characteristics %}
{% endblock %}

{% block component_product_box_description %}
{% endblock %}
