{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
{% block component_product_box %}
{% if product %}
{% set name = product.translated.name %}
{% set id = product.id %}
{% set cover = product.cover.media %}
{% set variation = product.variation %}
{% set displayParent = product.variantListingConfig.displayParent and product.parentId === null %}
{% set custom_hersteller_color= product.manufacturer.translated.customFields.custom_hersteller_color %}
{% if custom_hersteller_color == '' %}
{% set custom_hersteller_color= getmanufacturer(product.manufacturerId , context.context)|first['custom_hersteller_color']|replace({'"': ''})|replace({'null': ''}) %}
{% endif %}
<div class="card product-box box-{{ layout }}{% if custom_hersteller_color !='' %} product-box-custom --{{custom_hersteller_color}}--{% endif %}" {% if custom_hersteller_color!='' %}style="--tcolor:{{custom_hersteller_color }}"{% endif %}>
{% block component_product_box_content %}
{{parent()}}
{% endblock %}
</div>
{% endif %}
{% endblock %}
{% block component_product_box_badges %}
{% if product.manufacturer.name %}
<div class="product-manfactur">
{{product.manufacturer.name}}
</div>
{% elseif product.manufacturerId %}
<div class="product-manfactur">
{% set manufacturerName= getmanufacturer(product.manufacturerId , context.context)|first['name'] %}
{{ manufacturerName }}
</div>
{% endif %}
{% sw_include '@Storefront/storefront/component/product/card/badges.html.twig' %}
{% endblock %}
{% block component_product_box_wishlist_action %}{% endblock %}
{% block component_product_box_info %}
<div class="product-info">
{% block component_product_box_rating %}
{{parent()}}
{% endblock %}
{% block component_product_box_name %}
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
class="product-name"
title="{{ name }}">
{{ name|raw|u.truncate(50, '...') }}
</a>
{% endblock %}
{% block component_product_box_variant_characteristics %}{% endblock %}
{% block component_product_box_description %}
<div class="product-description {% if product.extensions.netiEasyCouponProduct%}d-none{% endif %}">
{% if product.customFields.custom_product_information_subdesc %}
{{ product.customFields.custom_product_information_subdesc|raw }}
{% endif %}
</div>
{% endblock %}
{% block component_product_box_price %}
{% sw_include '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
{% endblock %}
{% block component_product_box_action %}
<div class="product-action-box">
{% if config('core.cart.wishlistEnabled') %}
{% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
appearance: 'circle',
productId: id
} %}
{% endif %}
{% sw_include '@Storefront/storefront/component/product/card/action.html.twig' %}
</div>
{% endblock %}
</div>
{% endblock %}