{% macro card(product, amount) %}
0 %} style="--hue-rotate-offset: {{ amount }}0deg;"{% endif %}> {{ product.name }}
{{ product.name | length > 65 ? product.name | slice(0, 65) ~ '...' : product.name }}
{% for characteristic in [product.brand, format_dimensions(product.dimensions.x, product.dimensions.y, product.dimensions.z, ' '), product.weight ~ (language.name == 'ru' ? 'г' : 'g')] %} {% if characteristic is not empty %} {{ characteristic | length > 30 ? characteristic | slice(0, 30) ~ '...' : characteristic }} {% endif %} {% endfor %}
{% endmacro %} {% if cart.products is not empty %}
{% for product in cart.products %} {{ product.summary }} {{ _self.card(product.document, product.amount) }} {% endfor %}
{% endif %}