{% extends 'application/layout.html.twig' %}
{% block content %}
<main class="main">
<div class="breadcrumb">
<div class="container">
<ol class="breadcrumb__list">
<li class="breadcrumb__item"><a href="{{ path('home') }}" class="breadcrumb__link">Главная</a></li>
<li class="breadcrumb__item"><a href="{{ path('catalog') }}" class="breadcrumb__link">{{ catalogPage.name(app.request.locale) }}</a></li>
{% if category and category.parent and category.parent.active %}
<li class="breadcrumb__item"><a href="{{ documentUrl(category.parent) }}" class="breadcrumb__link">{{ category.parent.name(app.request.locale) }}</a></li>
{% endif %}
{% if category and category.active %}
<li class="breadcrumb__item"><a href="{{ documentUrl(category) }}" class="breadcrumb__link">{{ category.name(app.request.locale) }}</a></li>
{% endif %}
<li class="breadcrumb__item active" aria-current="page">{{ product.name(app.request.locale) }}</li>
</ol>
</div>
</div>
<div class="page product">
<div class="container">
<h1 class="product__title product__title--mobile">{{ product.name(app.request.locale) }}</h1>
{% if product.advantages|length %}
<div class="product__tags">
{% for advantage in product.advantages %}
<div class="product__tag">
{% if advantage.iconShort %}
<img src="/{{ advantage.iconShort }}" alt="{{ advantage.name }}">
{% endif %}
<span class="product__tag-text">
{{ advantage.name }}
</span>
</div>
{% endfor %}
</div>
{% endif %}
<div class="product__row">
<div class="product__main">
<div class="product__photo">
<div class="product__main-photo">
{% if product.oldPrice %}
<span class="discount-percent">{{ discountPercent(product.oldPrice, product.price) }}%</span>
{% endif %}
<div class="swiper a-photo-main">
<div class="swiper-wrapper">
<div class="swiper-slide">
<a href="{{ resizeImage(product.image) }}" data-fancybox="productPhoto" class="product__img" aria-label="Увеличить изображение">
{{ include('application/partial/picture.html.twig', {image: product.image, width: 761, height: 515}) }}
</a>
</div>
{% for image in product.images %}
<div class="swiper-slide">
<a href="{{ resizeImage(image) }}" data-fancybox="productPhoto" class="product__img" aria-label="Увеличить изображение">
{{ include('application/partial/picture.html.twig', {image: image, width: 761, height: 515}) }}
</a>
</div>
{% endfor %}
{% for video in videos %}
<div class="swiper-slide">
<div class="video">
<div class="video__mask"></div>
{{ video|raw }}
{# <lite-youtube videoid="{{ video|raw }}"></lite-youtube>#}
</div>
</div>
{% endfor %}
</div>
{% if product.images|length %}
<div class="btn-prev"><svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.854 12.867a.536.536 0 0 1-.708 0l-5-4.546a.426.426 0 0 1 0-.642l5-4.546a.536.536 0 0 1 .708 0 .426.426 0 0 1 0 .643L6.207 8l4.647 4.224a.426.426 0 0 1 0 .643z"/></svg></div>
<div class="btn-next"><svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.146 3.133a.536.536 0 0 1 .708 0l5 4.546a.426.426 0 0 1 0 .642l-5 4.546a.536.536 0 0 1-.708 0 .426.426 0 0 1 0-.643L9.793 8 5.146 3.776a.426.426 0 0 1 0-.643z"/></svg></div>
{% endif %}
</div>
</div>
<div class="product__thumbs-photo">
<div class="swiper a-photo-thumbs">
<div class="swiper-wrapper">
<div class="swiper-slide">
{{ include('application/partial/picture.html.twig', {image: product.image, width: 93, height: 93}) }}
</div>
{% for image in product.images %}
<div class="swiper-slide">
{{ include('application/partial/picture.html.twig', {image: image, width: 93, height: 93}) }}
</div>
{% endfor %}
{% for video in videos %}
<div class="swiper-slide">
<span class="play-parent">
{% if product.images|length %}
{{ include('application/partial/picture.html.twig', {image: product.images|last, width: 93, height: 93}) }}
{% endif %}
<span class="product__play play"><svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 5C9.925 5 5 9.925 5 16s4.925 11 11 11 11-4.925 11-11S22.075 5 16 5zM3 16C3 8.82 8.82 3 16 3s13 5.82 13 13-5.82 13-13 13S3 23.18 3 16z" fill="#fff"/><path d="M13.528 11.118a1 1 0 0 1 1.027.05l6 4a1 1 0 0 1 0 1.664l-6 4A1 1 0 0 1 13 20v-8a1 1 0 0 1 .528-.882zM15 13.868v4.263L18.197 16 15 13.868z" fill="#fff"/></svg></span>
</span>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
<div class="product__param">
<!--
<div class="product__param-item">
<a href="#" class="item-param">
<span class="item-param__icon"><svg width="32" height="32" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.492 14c-.142 0-.275-.008-.417-.033a2.737 2.737 0 0 1-1.792-1.117 2.874 2.874 0 0 1-.483-2.125l1.517-8.567a.984.984 0 0 1 .4-.641.978.978 0 0 1 .741-.175h.017l3.442.608c.541.1.9.617.816 1.158l-1.525 8.625C6.975 13.058 5.8 14 4.492 14zm-1.709-3.1c-.083.475.034.975.309 1.367.275.383.675.641 1.133.708a1.764 1.764 0 0 0 2-1.425l1.517-8.608h-.009L4.3 2.333 2.783 10.9z"/><path d="M5.267 13.867a.482.482 0 0 1-.467-.334.504.504 0 0 1 .3-.641L13.325 9.9l-1.2-3.283-4.558 1.65a.504.504 0 0 1-.642-.3.504.504 0 0 1 .3-.642l4.558-1.658a.96.96 0 0 1 .759.033.974.974 0 0 1 .516.558v.009l1.2 3.283a1 1 0 0 1-.6 1.275l-8.216 3.008a.648.648 0 0 1-.175.034z"/><path d="M13.25 14H4.5a.501.501 0 0 1-.5-.5c0-.275.225-.5.5-.5h8.75v-2.842c0-.275.225-.5.5-.5s.5.225.5.5V13c0 .55-.45 1-1 1zM4.5 12a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5z"/></svg></span>
<span class="item-param__text">Заказать образец</span>
</a>
</div>
<div class="product__param-item">
<a href="#" class="item-param">
<span class="item-param__icon"><svg width="32" height="32" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 3.167A.833.833 0 0 0 3.167 4v4a.5.5 0 0 1-1 0V4A1.833 1.833 0 0 1 4 2.167h8A1.833 1.833 0 0 1 13.833 4v8A1.833 1.833 0 0 1 12 13.833H8a.5.5 0 1 1 0-1h4a.833.833 0 0 0 .833-.833V4A.833.833 0 0 0 12 3.167H4z"/><path d="M2.667 10.5a.167.167 0 0 0-.167.167v2.666a.167.167 0 0 0 .167.167h2.666a.167.167 0 0 0 .167-.167v-2.666a.167.167 0 0 0-.167-.167H2.667zm-.825-.658c.219-.22.515-.342.825-.342h2.666A1.167 1.167 0 0 1 6.5 10.667v2.666A1.167 1.167 0 0 1 5.333 14.5H2.667A1.167 1.167 0 0 1 1.5 13.333v-2.666c0-.31.123-.607.342-.825zM2.167 6.667a.5.5 0 0 1 .5-.5h10.666a.5.5 0 0 1 0 1H2.667a.5.5 0 0 1-.5-.5z"/><path d="M6.667 2.167a.5.5 0 0 1 .5.5V8a.5.5 0 0 1-1 0V2.667a.5.5 0 0 1 .5-.5z"/></svg></span>
<span class="item-param__text">Оборудование для товара</span>
</a>
</div>
<div class="product__param-item">
<a href="#" class="item-param">
<span class="item-param__icon"><svg width="32" height="32" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.5 3.5a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1V11a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V3.5zm12 0h-11V11h11V3.5z"/><path d="M9.688 11.11a.5.5 0 0 1 .702.078l2 2.5a.5.5 0 0 1-.78.624l-2-2.5a.5.5 0 0 1 .078-.702zM6.312 11.11a.5.5 0 0 1 .078.702l-2 2.5a.5.5 0 0 1-.78-.624l2-2.5a.5.5 0 0 1 .702-.078zM8 1a.5.5 0 0 1 .5.5V3a.5.5 0 0 1-1 0V1.5A.5.5 0 0 1 8 1z"/></svg></span>
<span class="item-param__text">Презентация</span>
</a>
</div>
-->
</div>
</div>
<div class="product__sidebar">
{% if product.sku %}
<div class="product__art">Артикул: <span>{{ product.sku }}</span></div>
{% endif %}
{% if product.color %}
<div class="product__color">
<span class="color color--lg">Цвет: <span>{% if product.color.image %}<span class="color__photo"><img src="{{ resizeImage(product.color.image, 40, 40) }}" width="40" height="40" alt="{{ product.color.name(app.request.locale) }}" loading="lazy"></span> {% endif %} {{ product.color.name(app.request.locale) }}</span></span>
{# <select id="color" class="form__control select-color" style="width: 100%;">#}
{# <option value="{% if product.color.image %}{{ resizeImage(product.color.image, 40, 40) }}{% endif %}">#}
{# {{ product.color.name(app.request.locale) }}#}
{# </option>#}
{# </select>#}
</div>
{% endif %}
{{ include('application/catalog/product-properties.html.twig') }}
<div class="show-more">
<a href="#characteristics">Смотреть все характеристики</a>
</div>
<div class="interactive">
{% if product.calculator %}
<div class="product__param-item">
<a href="{{ path('calc', { id: product.id }) }}{% if product.decorCalculator %}#decor{% endif %}" class="item-param">
<span class="item-param__icon">
<svg class="stroke-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5.5 3V8M8 5.5H3M8 16L6 18M6 18L4 20M6 18L8 20M6 18L4 16M20 6H16M20 18.5H16M20 15.5H16M22 12H2M12 22V2" stroke="#222F59" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</span>
<span class="item-param__text">Калькулятор</span>
</a>
</div>
{% endif %}
{% if product.manual %}
<div class="product__param-item">
<a target="_blank" href="{{ fileUrl(product.manual) }}" class="item-param">
<span class="item-param__icon"><svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 14a1 1 0 0 1 1-1h22a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1z"/><path d="M9 5a3 3 0 0 0-3 3v9a1 1 0 0 0 1 1h5.85v1l.003-1a2 2 0 0 1 1.975 2.275v.004L14 26.064a2 2 0 0 0 3.998 0l-.826-5.785-.001-.004A2 2 0 0 1 19.147 18H25a1 1 0 0 0 1-1V5H9zm3.847 15H7a3 3 0 0 1-3-3V8a5 5 0 0 1 5-5h18a1 1 0 0 1 1 1v13a3 3 0 0 1-3 3h-5.847l.837 5.859c.007.046.01.094.01.141a4 4 0 1 1-8 0c0-.047.003-.095.01-.141L12.847 20z"/><path d="M23 3a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V4a1 1 0 0 1 1-1z"/></svg></span>
<span class="item-param__text">Инструкция по монтажу</span>
</a>
</div>
{% endif %}
{% if product.model %}
<div class="product__param-item">
<a target="_blank" href="{{ fileUrl(product.model) }}" class="item-param">
<span class="item-param__icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4.5795 3.41475C4.64174 3.29019 4.73743 3.18542 4.85586 3.11216C4.97428 3.03891 5.11075 3.00007 5.25 3H18.75C18.8892 3.00007 19.0257 3.03891 19.1441 3.11216C19.2626 3.18542 19.3583 3.29019 19.4205 3.41475L20.9205 6.41475C20.9727 6.51882 20.9999 6.63359 21 6.75V19.5C21 19.8978 20.842 20.2794 20.5607 20.5607C20.2794 20.842 19.8978 21 19.5 21H4.5C4.10218 21 3.72064 20.842 3.43934 20.5607C3.15804 20.2794 3 19.8978 3 19.5V6.75C3.00012 6.63359 3.02734 6.51882 3.0795 6.41475L4.5795 3.41475ZM5.7135 4.5L4.5 6.927V19.5H19.5V6.927L18.2865 4.5H5.7135Z" fill="#222F59"/>
<path d="M8.29223 13.5411C8.43288 13.4005 8.62361 13.3215 8.82248 13.3215C9.02135 13.3215 9.21209 13.4005 9.35273 13.5411L12.0002 16.1886L14.6477 13.5411C14.7174 13.4714 14.8001 13.4161 14.8912 13.3784C14.9822 13.3407 15.0798 13.3213 15.1784 13.3213C15.2769 13.3213 15.3745 13.3407 15.4655 13.3784C15.5566 13.4161 15.6393 13.4714 15.709 13.5411C15.7787 13.6108 15.8339 13.6935 15.8717 13.7845C15.9094 13.8756 15.9288 13.9732 15.9288 14.0717C15.9288 14.1703 15.9094 14.2678 15.8717 14.3589C15.8339 14.4499 15.7787 14.5326 15.709 14.6023L12.5305 17.7801C12.3898 17.9207 12.1991 17.9997 12.0002 17.9997C11.8014 17.9997 11.6106 17.9207 11.47 17.7801L8.29223 14.6023C8.2225 14.5327 8.16718 14.45 8.12944 14.3589C8.09169 14.2679 8.07227 14.1703 8.07227 14.0717C8.07227 13.9731 8.09169 13.8756 8.12944 13.7845C8.16718 13.6935 8.2225 13.6107 8.29223 13.5411Z" fill="#222F59"/>
<path d="M12 9C12.1989 9 12.3897 9.07902 12.5303 9.21967C12.671 9.36032 12.75 9.55109 12.75 9.75V17.25C12.75 17.4489 12.671 17.6397 12.5303 17.7803C12.3897 17.921 12.1989 18 12 18C11.8011 18 11.6103 17.921 11.4697 17.7803C11.329 17.6397 11.25 17.4489 11.25 17.25V9.75C11.25 9.55109 11.329 9.36032 11.4697 9.21967C11.6103 9.07902 11.8011 9 12 9ZM3 6.75C3 6.55109 3.07902 6.36032 3.21967 6.21967C3.36032 6.07902 3.55109 6 3.75 6H20.25C20.4489 6 20.6397 6.07902 20.7803 6.21967C20.921 6.36032 21 6.55109 21 6.75C21 6.94891 20.921 7.13968 20.7803 7.28033C20.6397 7.42098 20.4489 7.5 20.25 7.5H3.75C3.55109 7.5 3.36032 7.42098 3.21967 7.28033C3.07902 7.13968 3 6.94891 3 6.75Z" fill="#222F59"/>
</svg>
</span>
<span class="item-param__text">Скачать 3D модель</span>
</a>
</div>
{% endif %}
</div>
</div>
<div class="product__sidebar">
<div class="box product__detail">
{#
<div class="product__price-type dropdown">
<a href="#" class="dropdown__toggle">
За погонный метр
<span class="caret"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.867 5.146a.536.536 0 0 1 0 .708l-4.546 5a.426.426 0 0 1-.642 0l-4.546-5a.536.536 0 0 1 0-.708.426.426 0 0 1 .643 0L8 9.793l4.224-4.647a.426.426 0 0 1 .643 0z"/></svg></span>
</a>
<div class="dropdown__menu">
<ul class="dropdown__list">
<li class="dropdown__item active">
<a href="#" class="dropdown__link">За погонный метр</a>
</li>
<li class="dropdown__item">
<a href="#" class="dropdown__link">За 1 шт.</a>
</li>
</ul>
</div>
</div>
#}
<div class="product__price">
{% set validPrice = cart.validPrice(product) %}
{% if validPrice != product.price %}
{% if validPrice %}
<div class="price">
<span class="price__title">опт.</span>
<span class="price__value">{{ validPrice|number_format(2, '.', ' ') }}</span>
{% if product.oldPrice %}
<span class="price__value-old">{{ product.oldPrice|number_format(2, '.', ' ') }}</span>
{% endif %}
<span class="price__unit">₽ / шт</span>
</div>
{% if product.soldByMeter and product.rollLength %}
<div class="price">
<span class="price__value">{{ (validPrice/product.rollLength)|number_format(2, '.', ' ') }}</span>
<span class="price__unit">₽ за пог. м.</span>
</div>
{% endif %}
{% else %}
<div class="price">
<span class="price__title">Для приема заказа недостаточно информации. Просим Вас обратиться к Вашему менеджеру</span>
</div>
{% endif %}
{% endif %}
<div class="price">
{% if product.oldPrice %}
{% if validPrice != product.price %}
<span class="price__title">ррц.</span>
{% endif %}
<span class="discount-price">
<span class="price__value">{{ product.price|number_format(2, '.', ' ') }}</span>
<span class="price__unit">₽ / шт</span>
</span>
<span class="price__value-old">{{ product.oldPrice|number_format(2, '.', ' ') }}</span>
{% else %}
{% if validPrice != product.price %}
<span class="price__title">ррц.</span>
{% endif %}
<span class="price__value">{{ product.price|number_format(2, '.', ' ') }}</span>
<span class="price__unit">₽ / шт</span>
{% endif %}
</div>
{% if product.soldByMeter and product.rollLength %}
<div class="price">
<span class="price__value">{{ (product.price/product.rollLength)|number_format(2, '.', ' ') }}</span>
{% if product.oldPrice %}
<span class="price__value-old">{{ (product.oldPrice/product.rollLength)|number_format(2, '.', ' ') }}</span>
{% endif %}
<span class="price__unit">₽ / пог. м.</span>
</div>
{% endif %}
</div>
{% if product.quantity %}
{% if cart.counterpartyId %}
<div class="product__stock">
<div class="stock">В наличии: {{ product.quantity }} шт.</div>
</div>
{% endif %}
{% else %}
<div class="product__stock">
<div class="stock disabled">Нет в наличии</div>
</div>
{% endif %}
{% if product.soldByMeter and product.rollLength %}
<div class="product__note">
Полотно продается в стандартном рулоне {{ product.rollLength }} пог. м.
</div>
{% endif %}
{% if product.quantityInBox %}
<div class="product__pack pack">
<span class="pack__icon"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.51.953a.987.987 0 0 1 .98 0l5.499 3.093h.002a1.006 1.006 0 0 1 .509.87v6.165H14l.5.003a1.006 1.006 0 0 1-.51.87h-.001L8.49 15.048a.987.987 0 0 1-.982 0l-5.498-3.092-.002-.001a1.007 1.007 0 0 1-.509-.87V4.916a1.006 1.006 0 0 1 .51-.87h.001L7.51.953zm5.99 10.126V4.918a.006.006 0 0 0-.003-.002L8 1.824 2.503 4.916a.006.006 0 0 0-.003.005V11.082l.003.002L8 14.176l5.497-3.092.002-.002.001-.003z"/><path d="M4.562 2.696a.5.5 0 0 1 .68-.196l6.062 3.344a.5.5 0 0 1 .258.437v3.25a.5.5 0 0 1-1 0V6.577L4.758 3.375a.5.5 0 0 1-.196-.679z"/><path d="M1.632 4.419a.5.5 0 0 1 .68-.193l5.742 3.2 5.63-3.198a.5.5 0 0 1 .494.87L8.303 8.434a.5.5 0 0 1-.49.002L1.825 5.099a.5.5 0 0 1-.193-.68z"/><path d="M8.06 7.5a.5.5 0 0 1 .496.504L8.5 14.68a.5.5 0 0 1-1-.008l.056-6.675A.5.5 0 0 1 8.06 7.5z"/></svg></span>
<span class="pach__text">В упаковке {{ product.quantityInBox }} шт.</span>
</div>
{% endif %}
{# Дополнительный блок с ценой по м² или м.п. в зависимости от настроек категории #}
{% if formattedPrice and formattedPrice.calculated_price %}
<div class="price" style="margin-top: 20px; border-top: 1px #eee solid; padding-top: 20px;">
<span class="price__value">{{ formattedPrice.calculated_price|number_format(2, '.', ' ') }}</span>
{% if product.oldPrice %}
{% set oldCalculatedPrice = product.oldPrice * formattedPrice.calculated_price / product.price %}
<span class="price__value-old">{{ oldCalculatedPrice|number_format(2, '.', ' ') }}</span>
{% endif %}
<span class="price__unit">{{ formattedPrice.calculated_unit }}</span>
</div>
{% endif %}
{% if product.quantity == 0 %}
<div class="price-divider"></div>
<div class="price">
<span class="price__title price_warning">Данный товар закончился, если вы хотите заказать точно такой же, оставьте заявку и менеджер перезвонит вам в ближайшее время и оповестит вас о сроках поступления</span>
</div>
{% endif %}
</div>
<div class="product__control add-to-cart-block">
{% if product.quantity %}
<div class="count count--lg product-block-count">
<button data-value="-1" class="count__minus" aria-label="Уменьшить количество"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 8a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1z"/></svg></button>
<input type="text" class="count__control" value="1" aria-label="Указать количество">
<button data-value="1" class="count__plus" aria-label="Увеличить количество"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 8a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1z"/><path d="M8 1a1 1 0 0 1 1 1v12a1 1 0 1 1-2 0V2a1 1 0 0 1 1-1z"/></svg></button>
</div>
{% if cart.has(product.id) %}
<button class="btn btn--lg btn--buy add-to-cart-button btn--success">В корзине {{ cart.quantity(product.id) }} шт</button>
{% else %}
<button data-id="{{ product.id }}" class="btn btn--lg btn--buy add-to-cart-button">В корзину</button>
{% endif %}
{% else %}
<button class="btn btn--lg btn--buy" data-fancybox="feedback2" data-src="#requestCall">Оставить заявку</button>
{% endif %}
<button id="compare" class="btn {% if not cart.inCompareList(product.id) %}btn--second{% else %}in-compare-list{% endif %} btn--lg btn--square" aria-label="Сравнение товара">
<span class="btn__icon"><svg width="24" height="24" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1z"/><path d="M12 27a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2h-6a1 1 0 0 1-1-1zM25.976 6.783a1 1 0 0 1-.759 1.193l-18 4a1 1 0 0 1-.434-1.952l18-4a1 1 0 0 1 1.193.759z"/><path d="M7 10a1 1 0 0 1 .928.629l4 10c.048.118.072.244.072.371 0 1.561-.91 2.597-1.934 3.194C9.072 24.773 7.891 25 7 25c-.89 0-2.072-.227-3.066-.806C2.91 23.597 2 22.56 2 21a1 1 0 0 1 .072-.371l4-10A1 1 0 0 1 7 10zM4.008 21.172c.055.562.386.975.933 1.294.631.367 1.45.534 2.059.534.61 0 1.428-.166 2.059-.534.547-.32.878-.732.933-1.294L7 13.692l-2.992 7.48zM25 6a1 1 0 0 1 .928.629l4 10c.048.118.072.244.072.371 0 1.561-.91 2.597-1.934 3.194-.994.579-2.175.806-3.066.806-.89 0-2.072-.227-3.066-.806C20.91 19.597 20 18.56 20 17c0-.127.024-.253.072-.371l4-10A1 1 0 0 1 25 6zm-2.992 11.172c.056.562.386.975.933 1.294.631.367 1.45.534 2.059.534.61 0 1.428-.166 2.059-.534.547-.32.877-.732.933-1.294L25 9.692l-2.992 7.48z"/></svg></span>
</button>
</div>
<div class="product__delivery">
<div class="product__delivery-item">
<div class="icon">
<img src="/img/svg/delivery-truck.svg" alt="">
</div>
<div class="text">
<span>Доставка по СПБ и Мск: 1 день </span>
<span>Бесплатно по Мск и МО от 20 000 ₽ по Санкт-Петербургу от 10 000 ₽ </span>
</div>
</div>
<div class="product__delivery-item">
<div class="icon">
<img src="/img/svg/delivery-truck.svg" alt="">
</div>
<div class="text">
<p>Доставка по России от 7 дней, от 250 ₽ </p>
</div>
</div>
</div>
</div>
</div>
{% if product.advantages|length %}
<div class="product-advantages">
<div class="product-advantages__header">
<h2>Преимущества</h2>
</div>
{% for advantage in product.advantages %}
<div class="product-advantages__item">
{% if advantage.iconFull %}
<div class="product-advantages__icon">
<img src="/{{ advantage.iconFull }}" alt="{{ advantage.name }}">
</div>
{% endif %}
<div class="product-advantages__text">
<h3>{{ advantage.name }}</h3>
{% if advantage.description %}
<p>{{ advantage.description }}</p>
{% endif %}
</div>
</div>
{% endfor %}
</div>
{% endif %}
<div class="product__info">
<div class="product__column">
<h3>О товаре</h3>
<div class="product__descr">
{{ product.text(app.request.locale)|raw }}
</div>
</div>
{% if product.properties1C|length
or product.brandName or product.manufacturerName or product.countryName
%}
<div class="product__column" id="characteristics">
<h3>Характеристики</h3>
<div class="param-tbl">
{# Сначала выводим свойства с orderNumber через include #}
{{ include('application/catalog/product-properties.html.twig') }}
{# Затем статические поля #}
{% if product.brandName %}
<div class="param-tbl__item">
<div class="param-tbl__param">Бренд:</div>
<div class="param-tbl__value">{{ product.brandName }}</div>
</div>
{% endif %}
{% if product.manufacturerName %}
<div class="param-tbl__item">
<div class="param-tbl__param">Производитель:</div>
<div class="param-tbl__value">{{ product.manufacturerName }}</div>
</div>
{% endif %}
{% if product.countryName %}
<div class="param-tbl__item">
<div class="param-tbl__param">Страна происхождения:</div>
<div class="param-tbl__value">{{ product.countryName }}</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
</div>
<div class="product-calculator">
<div class="product-calculator__text">
<span>Калькулятор</span>
<p>Не знаете сколько потребуется плинуса или клея? <br> Воспользуйтесь нашим калькулятором</p>
</div>
<div class="product-calculator__item">
<a class="product-calculator__item-btn" href="/calc-decor?id={{ product.id }}"><img src="/img/svg/calc.svg" alt="">Калькулятор плинуса</a>
</div>
<div class="product-calculator__item glue">
<a class="product-calculator__item-btn" href="/calc?id={{ product.id }}"><img src="/img/svg/calc.svg" alt="">Калькулятор расхода клея</a>
</div>
</div>
{% if product.articles|length %}
<div class="product-calculator product-calculator--article">
{% for article in product.articles %}
<div class="product-calculator__text">
<span>Статья</span>
<p>{{ article.name(app.request.locale) }}</p>
<a href="{{ documentUrl(article) }}" class="article-btn">Читать</a>
</div>
<div class="product-calculator__item article" style="background-image: url('/{{ article.image }}');">
</div>
{% endfor %}
</div>
{% endif %}
<div class="product-video">
<div class="product-video__wrapper">
<div class="current-video-title">Монтаж плинтуса</div>
<iframe width="560" height="315" src="https://www.youtube.com/embed/CR7B6emI_54?si=TVNdOTvtuzDLnS3W" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<div class="more-video">
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
<a href="#"><img src="/img/more-video.png" alt=""><span>Монтаж плинтуса</span></a>
</div>
</div>
</div>
</div>
</div>
<div class="section">
<div class="container">
{{ include('application/catalog/watched-products.html.twig') }}
{% if product.activeProducts|length %}
<div class="section__item section__item--md">
<h2 class="product-add__title">С этим товаром часто покупают</h2>
<div class="product-carousel swiper a-carousel-product nav-right">
<div class="swiper-wrapper">
{% for p in product.products %}
<div class="swiper-slide">
{{ include('application/catalog/product-block.html.twig', {product: p}) }}
</div>
{% endfor %}
</div>
{% if product.products|length > 1 %}
<div class="btn-prev"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.854 12.867a.536.536 0 0 1-.708 0l-5-4.546a.426.426 0 0 1 0-.642l5-4.546a.536.536 0 0 1 .708 0 .426.426 0 0 1 0 .643L6.207 8l4.647 4.224a.426.426 0 0 1 0 .643z"/></svg></div>
<div class="btn-next"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.146 3.133a.536.536 0 0 1 .708 0l5 4.546a.426.426 0 0 1 0 .642l-5 4.546a.536.536 0 0 1-.708 0 .426.426 0 0 1 0-.643L9.793 8 5.146 3.776a.426.426 0 0 1 0-.643z"/></svg></div>
{% endif %}
</div>
</div>
{% endif %}
<div class="product-video">
<div class="product-video__wrapper">
<div class="current-video-title">Красим напольный плинтус правильно</div>
<iframe width="560" height="315" src="https://www.youtube.com/embed/CR7B6emI_54?si=TVNdOTvtuzDLnS3W" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<div class="current-video-title bottom">Рекомендуем использовать краску не содержащую растворителей</div>
</div>
</div>
<div class="product-more_questions">
<img src="/img/product-article.png" alt="">
<div class="product-more_questions-text">
<h3>Остались вопросы?</h3>
<p>Свяжитесь с нами и мы вам обязательно поможем. Оперативно ответим в течении 24 часов</p>
<button class="btn" data-fancybox="feedback2" data-src="#requestCall">задать вопрос</button>
</div>
</div>
</div>
</div>
</main>
{% endblock %}
{% block scripts %}
<script>
(function () {
var busy = false;
// Обработчик для сравнения товаров
$('#compare').click(function () {
if (busy) {
return false;
}
if ($(this).hasClass('in-compare-list')) {
location.href = '{{ path('compare') }}';
return false;
}
busy = true;
$.ajax({
type: "POST",
url: '{{ path('compare-ajax') }}',
data: {
id: '{{ product.id }}',
},
success: function (data) {
$('#compare').addClass('in-compare-list').removeClass('btn--second');
$('#compareDiv').html(data.html);
}
}).fail(function() {
alertPopup('Ошибка');
}).always(function() {
busy = false;
});
return false;
});
// Плавный скролл к характеристикам
$('.show-more a').click(function (e) {
e.preventDefault();
var target = $(this.getAttribute('href'));
if (target.length) {
$('html, body').animate({
scrollTop: target.offset().top - 20
}, 600);
// Обновляем URL без перезагрузки страницы
if (history.pushState) {
history.pushState(null, null, this.getAttribute('href'));
}
}
return false;
});
// CSS для плавного скролла
$('html').css('scroll-behavior', 'smooth');
})();
</script>
{% endblock %}