{{ header }}
<div id="account-wishlist">
  <div class="container">
    <ul class="breadcrumb">
      {% for breadcrumb in breadcrumbs %}
      <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
      {% endfor %}
      <li>{{ breadlast.text }}</li>
    </ul>
    <div class="row">
      <div class="col-sm-12"><h1>{{ heading_title }}</h1></div>
    </div>
    <?php echo $content_top; ?>
    <div class="row-flex">
	  {{ column_left }}
      {% if column_left and column_right %}
    {% set class = 'col-sm-6' %}
    {% set gclass = 'product-layout product-grid col-lg-6 col-md-6 col-sm-12 col-xs-12' %}
	{% elseif column_left or column_right %}
    {% set class = 'col-sm-9' %}
	{% set gclass = 'product-layout product-grid col-lg-3 col-md-4 col-sm-6 col-xs-12' %}
    {% else %}
    {% set class = 'col-sm-12' %}
	{% set gclass = 'product-layout product-grid col-lg-3 col-md-3 col-sm-6 col-xs-12' %}
    {% endif %}
      <div id="content" class="{{ class }} bot50">
        {% if products %}
          <div class="row row-c">
            {% for product in products %}
            <div class="{{ gclass }}">
				<div class="product-thumb">
				{% if product.rating %}
				<ul class="rating list-unstyled">
				{% for j in 1..5 %}
				  {% if product.rating < j %}
				  <li class="nocheck"></li>
				  {% else %}
				  <li></li>
				  {% endif %}
				{% endfor %}
				</ul>
				{% endif %}
				<div class="sale">{{ product.sale }}</div>
				<div class="image"><a href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive rel{{ product.product_id }}" /></a></div>
				<div class="l-icon">
					<a href="{{ product.remove }}"><i class="fa fa-trash-o"><span>{{ button_remove }}</span></i></a>
					{% if icompare %}<i class="fa fa-exchange" onclick="compare.add('{{ product.product_id }}','rel{{ product.product_id }}');"><span>В сравнение</span></i>{% endif %}
					{% if icart == 1 and not product.options %}<i class="m-cart" onclick="cart.add('{{ product.product_id }}','rel{{ product.product_id }}');"><div class="picon"><div class="all-icon cart-icon"></div></div><span>В корзину</span></i>{% endif %}
				</div>
				<div class="caption">
				  <h4><a href="{{ product.href }}">{{ product.name }}</a></h4>
				  {% if product.price %}
					<p class="price">
					{% if not product.special %}
					  {{ product.price }}
					{% else %}
					  <span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>
					{% endif %}
					{% if product.tax %}
					  <span class="price-tax">{{ text_tax }} {{ product.tax }}</span>
					{% endif %}
					</p>
				  {% endif %}
				</div>
				<div class="more-point">+</div>
				{% if icart == 2 and not product.options %}
				{% if product.istock %}
				<div class="picon c-icon no-stock" data-toggle="tooltip" title="" data-original-title="{{ text_nostock }}"><div class="all-icon cart-icon"></div></div>
				{% else %}
				<div class="picon c-icon" onclick="cart.add('{{ product.product_id }}','rel{{ product.product_id }}');"><div class="all-icon cart-icon"></div></div>
				{% endif %}
				{% endif %}
				<div class="info-block">
				  {% if product.attribute_groups %}
				  <ul class="attribute">
					{% for attribute_group in attribute_groups %}
					<tbody>
					  {% for attribute in attribute_group.attribute %}
					  {% if attribute.attribute_id not in attribute_out %}
					  {% if attribute_name %}{{ attribute.name }} -{% endif %}{{ attribute.text }} <span>|</span>
					  {% endif %}
					  {% endfor %}
					</tbody>
					{% endfor %}
				  </ul>
				  {% endif %}
				  {% if product.options %}
					<div class="size-block">		
					{% for option in product.options %}
					  {% if option.name == option_name %}
						{% for option_value in option.product_option_value %}
						<label class="{{ option_value.quantity < 1 ? ' out'}}"><input type="radio" name="option[{{ option.product_option_id }}][]" value="{{ option_value.product_option_value_id }}" data-id="{{ product.product_id }}" data-uid="rel{{ product.product_id }}">{{ option_value.name }}</label>
						{% endfor %}
					  {% endif %}
					{% endfor %}
					</div>
				  {% endif %}
				  {% if product.min_d %}
				  <div class="des-block">{{ product.min_d }}</div>
				  {% endif %}
				</div>
			  </div>
            </div>
            {% endfor %}
          </div>
        {% else %}
          <p class="row empty">{{ text_empty }}</p>
        {% endif %}
      </div>
      {{ column_right }}
	</div>
  </div>
  {{ content_bottom }}
</div>
{{ footer }}