{{ header }}
<div id="product-category">
   <div id="breadcrumb" class="section">
      <!-- container -->
      <div class="container">
        <!-- row -->
        <div class="row">
          <div class="col-md-12">
            <ul class="breadcrumb-tree">
            {% for breadcrumb in breadcrumbs %}
            <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
             {% endfor %}
            </ul>
          </div>
        </div>
      </div>
    </div>
    {% if content_top %}
    <div class="section">
      <div class="container">
          {{ content_top }}
      </div>
    </div>
     {% endif %}
    <div class="section">
      <div class="container">
        <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-9' %}
        {% else %}
        {% set class = 'col-sm-12' %}
        {% endif %}
        <div id="content" class="{{ class }}">
        {% if products %}
            <!-- store top filter -->
            <div class="store-filter clearfix">
             
              <div class="store-sort">
                <label>
                 {{ text_sort }}
                  <select id="input-sort" class="input-select" 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>
                </label>

                <label>
                   {{ text_limit }}
                   <select id="input-limit" class="input-select" 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>
                </label>
              </div>
               <div class="store-sort">
                <label>
                   <div class="form-group form-prd-cate"><a href="{{ compare }}" id="compare-total" class="btn btn-compare">{{ text_compare }}</a></div>
                </label>
               </div>
              <ul class="store-grid hidden-xs">
                <button type="button" id="grid-view" class="btn btn-view" data-toggle="tooltip" title="{{ button_grid }}"><i class="fa fa-th"></i></button>
                 <button type="button" id="list-view" class="btn btn-view" data-toggle="tooltip" title="{{ button_list }}"><i class="fa fa-th-list"></i></button>
                
              </ul>
            </div>
            <!-- /store top filter -->
            <!-- store products -->
            <div class="row">
              {% for product in products %}   
              <div class="product-layout product-list col-xs-12">
                 <div class="product">
                      <div class="product-img">
                        <img src="{{ product.thumb }}" alt="{{ product.name }}" class="img-responsive center-block" >
                        <div class="product-label">

				{# start owc_core_productpageenhanced_hooks_twig.xml #}
				{# HOOK_PRODUCTPAGEENHANCED_LIST_BEFORE_PRICE #}
				{# end owc_core_productpageenhanced_hooks_twig.xml #}
				
                          {% if product.price %}
                          {% if product.special %}
                          <span class="sale">- {{ product.percent }}</span>
                          {% endif %}  
                          {% endif %}  
                        </div>
                      </div>
                      <div class="product-body">
                        <h3 class="product-name"><a href="{{ product.href }}">{{ product.name }}</a></h3>
                        <div class="product-desc">{{ product.description }}</div>

				{# start owc_core_productpageenhanced_hooks_twig.xml #}
				{# HOOK_PRODUCTPAGEENHANCED_LIST_BEFORE_PRICE #}
				{# end owc_core_productpageenhanced_hooks_twig.xml #}
				
                          {% if product.price %}
                          {% if not product.special %}
                             <h4 class="product-price"> {{ product.price }}</h4>
                          {% else %}
                            <h4 class="product-price">{{ product.special }} <del class="product-old-price">{{ product.price }}</del></h4> {% endif %} 
                         {% endif %} 

                         {% if product.rating %}
                          <div class="product-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="product-rating"></div>
                          {% endif %}

                        <div class="product-btns">
                          <button type="button" data-toggle="tooltip" title="{{ button_wishlist }}" onclick="wishlist.add('{{ product.product_id }}');"><i class="fa fa-heart"></i></button>
                          <button type="button" data-toggle="tooltip" title="{{ button_compare }}" onclick="compare.add('{{ product.product_id }}');"><i class="fa fa-exchange"></i></button>
                           <a class="quick-view" data-toggle="tooltip" href="{{ product.href }}" title="View"><i class="fa fa-eye"></i></a>
                          <button class="add-to-cart-btn btn-cart-icon" onclick="cart.add('{{ product.product_id }}');"><i class="fa fa-shopping-basket"></i></button>
                        </div>
                      </div>
                      <div class="add-to-cart">
                        <button class="add-to-cart-btn" onclick="cart.add('{{ product.product_id }}');">{{ button_cart }}</button>
                      </div>
                    </div>
                </div>
                {% endfor %} 
            </div>
             <div class="row">
              <div class="section-pagination">
              <div class="col-sm-6 text-left">{{ pagination }}</div>
              <div class="col-sm-6 text-right">{{ results }}</div>
              </div>
            </div>
        {% endif %}
        {% if not categories and not products %}
          <p>{{ text_empty }}</p>
          <div class="buttons">
            <div class="pull-right"><a href="{{ continue }}" class="primary-btn">{{ button_continue }}</a></div>
          </div>
          {% endif %}
        </div>
        </div>
        {{ column_right }}
      </div>
    </div>
    {% if content_bottom %}
    <div class="section">
      <div class="container">
          {{ content_bottom }}
      </div>
    </div>
     {% endif %}


</div>
{{ footer }} 
