{#
/**
 * @file
 *
 * Default template for product variations.
 *
 * Available variables:
 * - attributes: HTML attributes for the wrapper.
 * - product_variation: The rendered product variation fields.
 *   Use 'product_variation' to print them all, or print a subset such as
 *   'product_variation.title'. Use the following code to exclude the
 *   printing of a given field:
 *   @code
 *   {{ product_variation|without('title') }}
 *   @endcode
 * - product_variation_entity: The product variation entity.
 * - product_url: The product URL.
 *
 * @ingroup themeable
 */
#}
<div{{ attributes }}>
  {% if product_variation.field_mt_vrt_gnr_image|render or product_variation.title|render or product_variation.product_id|render %}
    <div class="row d-flex align-items-center">
    {% if product_variation.field_mt_vrt_gnr_image|render %}
      <div class="col-auto">
        {{ product_variation.field_mt_vrt_gnr_image }}
      </div>
    {% endif %}
    {% if product_variation.title|render or product_variation.product_id|render %}
      <div class="col-auto">
        {{ product_variation.product_id }}
        {{ product_variation.title }}
      </div>
    {% endif %}
    </div>
  {% endif %}
  {{- product_variation|without('title', 'field_mt_vrt_gnr_image', 'product_id') -}}
</div>
