{#
/**
 * @file
 *
 * Default product template.
 *
 * Available variables:
 * - attributes: HTML attributes for the wrapper.
 * - product: The rendered product fields.
 *   Use 'product' to print them all, or print a subset such as
 *   'product.title'. Use the following code to exclude the
 *   printing of a given field:
 *   @code
 *   {{ product|without('title') }}
 *   @endcode
 * - product_entity: The product entity.
 * - product_url: The product URL.
 *
 * @ingroup themeable
 */
#}

{%
  set classes = [
    'card',
    'h-100',
    'mb-3'
  ]
%}

<article{{ attributes.addClass(classes) }}>
  {{- product.images -}}
  {{- product.variation_images -}}
  <div class="card-body pb-2">
    <div class="card-title current-color fw-bold">{{ product.title }}</div>
    {{- product|without('title', 'variation_attributes', 'images', 'variation_images') -}}
  </div>
  <a href="{{ product_url }}" class="btn btn-primary w-100">{{ 'View product'|t }}</a>
</article>
