{{ header }}
<div class="breadbg">
  <div class="container">
    <div class="row">
      <ul class="breadcrumb">
    {% for breadcrumb in breadcrumbs %}
    <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
    {% endfor %}
    </ul>
  </div>
</div>
</div>
<div id="product-manufacturer" class="container cleft manucom">
  <div class="row">{{ column_left }}
    {% if column_left and column_right %}
    {% set class = 'col-sm-6' %}
    {% elseif column_left or column_right %}
    {% set class = 'col-sm-8 col-md-9 col-xs-12 colright' %}
    {% else %}
    {% set class = 'col-sm-12' %}
    {% endif %}
    <div id="content" class="{{ class }}">{{ content_top }}
   
      <div class="heading text-center"><h1><span>{{ heading_title }}</span><p>{{ cheading_title }}</p></h1></div>
      {% if products %}

      <div class="appres"></div>
     <div class="row cate-border">
            <div class="col-md-2 col-sm-3 col-xs-4 lgrid">
                <div class="btn-group-sm">
                    <button type="button" id="list-view" class="btn listgridbtn" data-toggle="tooltip" title="{{ button_list }}">
                     <svg width="20px" height="20px"><use xlink:href="#clist"></use> </svg>
                    </button>
                    <button type="button" id="grid-view" class="btn listgridbtn" data-toggle="tooltip" title="{{ button_grid }}">
                       <svg width="18px" height="18px"><use xlink:href="#cgrid"></use> </svg>
                    </button>
                </div>
            </div>
            <div class="col-lg-4 col-md-5 col-sm-6 col-xs-8 hidden-md hidden-sm ct">
                <a href="{{ compare }}" id="compare-total" class="btn btn-link">{{ text_compare }}</a>
            </div>
            <div class="col-lg-3 col-md-5 col-xs-4 col-sm-5 catesort">
                <div class="input-group input-group-sm select-input">
                    <label class="input-group-addon" for="input-sort">{{ text_sort }}</label>
                  
                    <select id="input-sort" class="form-control" onchange="location = this.value;">
                        {% for sorts in sorts %}
                            {% if sorts.value == '%s-%s'|format(sort, order) %}
                                <option value="{{ sorts.href }}" selected="selected">{{ sorts.text }}</option>
                            {% else %}
                                <option value="{{ sorts.href }}">{{ sorts.text }}</option>
                            {% endif %}
                        {% endfor %}
                    </select>
                </div>
            </div>
            <div class="col-lg-3 col-md-5 col-xs-4 col-sm-4 catesort">
                <div class="input-group input-group-sm select-input">
                    <label class="input-group-addon" for="input-limit">{{ text_limit }}</label>
                    <select id="input-limit" class="form-control" onchange="location = this.value;">
                        {% for limits in limits %}
                            {% if limits.value == limit %}
                                <option value="{{ limits.href }}" selected="selected">{{ limits.text }}</option>
                            {% else %}
                                <option value="{{ limits.href }}">{{ limits.text }}</option>
                            {% endif %}
                        {% endfor %}
                    </select>
                </div>
            </div>
        </div>

      <div class="row cpagerow rless"> {% for product in products %}
        <div class="product-layout product-list col-xs-12 cless">
          <div class="product-thumb">
      <div class="image">
          <div class="owl-additionalman row">
          <a href="{{ product.href }}" class="col-xs-12"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive center-block" /></a>
                   
                      {% set t = 0 %}
                      {% for webi_image in product.webi_images %}
                        {% if t == 0 or t == 1 %}
                          <a href="{{ product.href }}" class="col-xs-12"><img src="{{ webi_image.popup }}" data-src="{{ webi_image.popup }}" class="img-responsive" alt="{{ product.name }}" title="{{ product.name }}" data-caption="{{ product.name }}"/></a>
                        {% set t = t + 1 %}
                        {% endif %}
                      {% endfor %}
            
         </div>

           {% if product.is_new %}<span class="new">{{ pro_new }}</span>{% endif %}

              {% if product.tag_per  %}
            <span class="sale">{{ product.tag_per }}%</span>
            {% endif %}

           <!-- {% if product.price %}
              {% if product.special %}
                   <span class="reduce-price">{{ pro_sale }}</span>
              {% endif %}
          {% endif %} -->

 </div>
     <div class="caption text-center">

          {% if product.price %}
            <div 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 %} #}
            </div>
          {% endif %}
          <div class="rat-pri">
        <h4 class="protitle"><a href="{{ product.href }}">{{ product.name }}</a></h4>
         {% if product.rating %}
            
            <div class="rating">
              {% for i in 1..5 %}
              {% if product.rating < i %}
              <span class="fa fa-stack">
                <i class="fa fa-star-o fa-stack-2x"></i>
              </span>
              {% else %}
              <span class="fa fa-stack">
                <i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i>
              </span>
              {% endif %}
            {% endfor %}</div>{% else %}
            <div class="rating">{% for i in 1..5 %}
            <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
            {% endfor %}</div>
            
          {% endif %}
      
        
          
          
        </div>
        <p class="catlist-des">{{ product.description }}</p>

    <div class="button-group">
            
            <div class="add-cart">
          <button type="button" data-toggle="tooltip" title="{{ button_wishlist }}" onclick="wishlist.add('{{ product.product_id }}');"><svg><use xlink:href="#heart" /></svg></button>
          <button type="button" class="cartb" data-toggle="tooltip" title="{{ button_cart }}" onclick="cart.add('{{ product.product_id }}');"><svg><use xlink:href="#pcart"></use></svg><span class="hidden-xs hidden-sm">{{ button_cart }}</span></button> 
          <button type="button" data-toggle="tooltip" title="{{ button_compare }}" onclick="compare.add('{{ product.product_id }}');"><svg><use xlink:href="#compare"/></svg></button>
           </div>
          <div class="absbtn">
          <div data-toggle="tooltip" title="Quickview"  class="bquickv"></div>
          </div>
      </div>
        
      </div>


    </div>
        </div>
        {% endfor %} 
      </div>
     <div class="row pagi">
        <div class="col-sm-6 col-xs-6 text-left">{{ pagination }}</div>
        <div class="col-sm-6 col-xs-6 text-right tot">{{ results }}</div>
      </div>
      {% else %}
      <p>{{ ctext_empty }}</p>
      <div class="buttons">
        <div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
      </div>
      {% endif %}
      </div>
    {{ column_right }}</div>
</div>
{{ content_bottom }}
{{ footer }}

<script type="text/javascript">
    $(document).ready(function() {
    $('.owl-additionalman').slick({
      centerMode: true,
      centerPadding: '0px',
      slidesToShow: 1,
      autoplay: false,
      autoplaySpeed: 5000,
      arrows: false,
      dots: true,
      pauseOnHover: false,
    });
    });


</script>