{% block page_product_detail_properties_inner %}
  <div class="product-detail-properties">
    {% block page_product_detail_properties_container %}
      <tr class="row product-detail-customfields-container">
          {% block page_product_detail_properties_table %}
            <table class="table table-striped product-detail-properties-table">
              <tbody>
              {# @var product \Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity #}
{#              {% for customFieldKey, customFieldValue in product.translated.customFields %}#}
                {% block page_product_detail_customfields_table_row %}
                  {% if product.extensions.bwegProperties.get('840da18f18184040ac2c34e9a13abd83') is not empty %}
                  <tr class="properties-row">
                    <th class="properties-label">Produktlinie:</th>
                    <td class="properties-value">{{ product.extensions.bwegProperties.get('840da18f18184040ac2c34e9a13abd83') }}</td>
                  </tr>
                  {% endif %}
                  {% if product.translated.customFields.custom_wein_jahrgang|trans is not empty %}
                  <tr class="properties-row">
                      <th class="properties-label">{{ "customFields.custom_wein_jahrgang"|trans|sw_sanitize }}:</th>
                      <td class="properties-value">{{ product.translated.customFields.custom_wein_jahrgang|trans }}</td>
                  </tr>
                  {% endif %}
                  {% if product.translated.customFields.custom_wein_alkohol|trans is not empty %}
                  <tr class="properties-row">
                      <th class="properties-label">{{ "customFields.custom_wein_alkohol"|trans|sw_sanitize }}:</th>
                      <td class="properties-value">{{ product.translated.customFields.custom_wein_alkohol|trans }} %</td>
                  </tr>
                  {% endif %}
                  {% if product.translated.customFields.custom_wein_saeure|trans is not empty %}
                  <tr class="properties-row">
                      <th class="properties-label">{{ "customFields.custom_wein_saeure"|trans|sw_sanitize }}:</th>
                      <td class="properties-value">{{ product.translated.customFields.custom_wein_saeure|trans }} g/l</td>
                  </tr>
                  {% endif %}
                  {% if product.translated.customFields.custom_wein_restzucker|trans is not empty %}
                  <tr class="properties-row">
                      <th class="properties-label">{{ "customFields.custom_wein_restzucker"|trans|sw_sanitize }}:</th>
                      <td class="properties-value">{{ product.translated.customFields.custom_wein_restzucker|trans }} g/l</td>
                  </tr>
                  {% endif %}
                  {% if product.translated.customFields.custom_wein_allergene|trans is not empty %}
                  <tr class="properties-row">
                      <th class="properties-label">{{ "customFields.custom_wein_allergene"|trans|sw_sanitize }}:</th>
                      <td class="properties-value">{{ product.translated.customFields.custom_wein_allergene|trans }}</td>
                  </tr>
                  {% endif %}
                  {% if product.extensions.bwegProperties.get('137f0e25929347c2bf26fc50196a3699') is not empty %}
                  <tr class="properties-row">
                    <th class="properties-label">Rebsorte:</th>
                    <td class="properties-value">{{ product.extensions.bwegProperties.get('137f0e25929347c2bf26fc50196a3699') }}</td>
                  </tr>
                  {% endif %}
                  {% if product.extensions.bwegProperties.get('c19533e52b634c7693e9b27c3c1ab6ab') is not empty %}
                  <tr class="properties-row">
                      <th class="properties-label">Auszeichnungen:</th>
                      <td class="properties-value">
                        {{ product.extensions.bwegProperties.get('c19533e52b634c7693e9b27c3c1ab6ab') }}
                      </td>
                  </tr>
                  {% endif %}
                  {% if product.translated.customFields.custom_wein_anbauregion|trans is not empty %}
                  <tr class="properties-row">
                      <th class="properties-label">{{ "customFields.custom_wein_anbauregion"|trans|sw_sanitize }}:</th>
                      <td class="properties-value">{{ product.translated.customFields.custom_wein_anbauregion|trans }}</td>
                  </tr>
                  {% endif %}
                  {% if product.translated.customFields.custom_wein_erzeuger|trans is not empty %}
                  <tr class="properties-row">
                      <th class="properties-label">{{ "customFields.custom_wein_erzeuger"|trans|sw_sanitize }}:</th>
                      <td class="properties-value">{{ product.translated.customFields.custom_wein_erzeuger|trans }}</td>
                  </tr>
                  {% endif %}
                  {% if product.translated.customFields.custom_wein_ursprungsland|trans is not empty %}
                  <tr class="properties-row">
                      <th class="properties-label">{{ "customFields.custom_wein_ursprungsland"|trans|sw_sanitize }}:</th>
                      <td class="properties-value">{{ product.translated.customFields.custom_wein_ursprungsland|trans }}</td>
                  </tr>
                  {% endif %}
                  {% if product.translated.customFields.custom_wein_losnummer|trans is not empty %}
                    <tr class="properties-row">
                      <th class="properties-label">{{ "customFields.custom_wein_losnummer"|trans|sw_sanitize }}:</th>
                      <td class="properties-value">{{ product.translated.customFields.custom_wein_losnummer|trans }}</td>
                    </tr>
                  {% endif %}
                  {% if product.translated.customFields.custom_wein_apno|trans is not empty %}
                    <tr class="properties-row">
                      <th class="properties-label">{{ "customFields.custom_wein_apno"|trans|sw_sanitize }}:</th>
                      <td class="properties-value">{{ product.translated.customFields.custom_wein_apno|trans }}</td>
                    </tr>
                  {% endif %}
                  {#{% if customFieldKey != 'custom_wein_misc' %}
                  <tr class="properties-row">
                    {% block page_product_detail_customfields_item_label %}
                      <th class="properties-label">{{ "customFields.#{customFieldKey}"|trans|sw_sanitize }}:</th>
                    {% endblock %}
                    {% block page_product_detail_customfields_item_value %}
                      <td class="properties-value">{{ "#{customFieldValue}"|trans }}</td>
                    {% endblock %}
                  </tr>
                  {% endif %}#}
                {% endblock %}
{#              {% endfor %}#}
              {% if product.productNumber %}
                <tr class="properties-row">
                  {% block page_product_detail_ordernumber_label %}
                    <th class="properties-label">{{ "detail.productNumberLabel"|trans|sw_sanitize }}</th>
                  {% endblock %}

                  {% block page_product_detail_ordernumber %}
                    <td class="properties-value"><meta itemprop="productID" content="{{ product.id }}"/> <span itemprop="sku">{{ product.productNumber }}</span></td>
                  {% endblock %}
                </tr>
              {% endif %}
              {% if product.translated.customFields.custom_expertise_pdf is not empty %}
                <tr class="properties-row">
                    <th class="properties-label">{{ "detail.expertiseLabel"|trans|sw_sanitize }}</th>
                  <td class="properties-value"><a href="https://dev.bergstraesserwinzer.de/files/bweg_2021/Downloads/Expertisen{% if product.translated.customFields.custom_expertise_pdf starts with '/' %}{{ product.translated.customFields.custom_expertise_pdf }}{% else %}/{{ product.translated.customFields.custom_expertise_pdf }}{% endif %}">&raquo; Downloaden</a></td>
                </tr>
              {% endif %}
              </tbody>
            </table>
          {% endblock %}
      </div>
    {% endblock %}
  </div>
{% endblock %}
