<div class="container spepro fea_tim">
  <div class="">
    
    <div class="tab-content protabcont next-prevb">
       <div class="tab-head text-center">
          <h1 class="heading text-center"><span>{{ head_title }}</span><p>{{ cheadsub_title }}</p></h1>
          <ul class="nav nav-tabs pro-tab text-center">
             <li class="active"><a href="#featurep-{{ module }}" data-toggle="tab">Preporuka</a></li>
             <li class="lpro"><a href="#bestseller-{{ module }}" data-toggle="tab">Najprodavanije</a></li>
             <li><a href="#latestp-{{ module }}" data-toggle="tab">Novo</a></li>
          </ul>
       </div>

      <div class="tab-pane active" id="featurep-{{ module }}">
        <div class="row rless">
          <div id="feature-{{ module }}" class="owl-theme owl-carousel">
            {% for product in products %}
              <div class="product-layout col-xs-12 cless">
                <div class="product-thumb transition">
                  <div class="image">
                    <a href="{{ product.href }}">
                        <img class="mik1" src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive center-block" />
                    </a>
                    {% if product.is_new %}<span class="new">{{ pro_new }}</span>{% endif %}
                    {% if product.tag_per %}<span class="sale">{{ product.tag_per }}%</span>{% 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 %}
                        </div>
                      {% endif %}
                      <div class="rat-pri">
                        <h4 class="protitle"><a href="{{ product.href }}">{{ product.name }}</a></h4>
                        <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>
                      </div>
                  </div>
                  <div class="button-group">
                      <div class="add-cart">
                          <button type="button" onclick="wishlist.add('{{ product.product_id }}');"><svg><use xlink:href="#heart" /></svg></button>
                          <button type="button" class="cartb" 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" onclick="compare.add('{{ product.product_id }}');"><svg><use xlink:href="#compare"/></svg></button>
                      </div>
                      <div class="absbtn"><div class="bquickv"></div></div>
                  </div>
                </div>
              </div>
            {% endfor %}
          </div> 
        </div>
      </div> 
      
      <div class="tab-pane" id="bestseller-{{ module }}">
        <div class="row rless">
          <div id="best-{{ module }}" class="owl-theme owl-carousel">
            {% for product in bestseller_products %}
              <div class="product-layout col-xs-12 cless">
                <div class="product-thumb transition">
                  <div class="image">
                    <a href="{{ product.href }}">
                        <img class="mik1" src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive center-block" />
                    </a>
                    {% if product.is_new %}<span class="new">{{ pro_new }}</span>{% endif %}
                    {% if product.tag_per %}<span class="sale">{{ product.tag_per }}%</span>{% 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 %}
                        </div>
                    {% endif %}
                    <div class="rat-pri">
                        <h4 class="protitle"><a href="{{ product.href }}">{{ product.name }}</a></h4>
                        <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>
                    </div>
                  </div>
                  <div class="button-group">
                      <div class="add-cart">
                          <button type="button" onclick="wishlist.add('{{ product.product_id }}');"><svg><use xlink:href="#heart" /></svg></button>
                          <button type="button" class="cartb" 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" onclick="compare.add('{{ product.product_id }}');"><svg><use xlink:href="#compare"/></svg></button>
                      </div>
                      <div class="absbtn"><div class="bquickv"></div></div>
                  </div>
                </div>
              </div>
            {% endfor %}
          </div>
        </div>
      </div>

      <div class="tab-pane" id="latestp-{{ module }}">
        <div class="row rless">
            <div id="latest-{{ module }}" class="owl-theme owl-carousel">
            {% for product in latest_products %} 
              <div class="product-layout col-xs-12 cless">
                <div class="product-thumb transition">
                    <div class="image">
                        <a href="{{ product.href }}">
                            <img class="mik1" src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive center-block" />
                        </a>
                        {% if product.tag_per %}<span class="sale">{{ product.tag_per }}%</span>{% 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 %}
                        </div>
                        {% endif %}
                        <div class="rat-pri">
                            <h4 class="protitle"><a href="{{ product.href }}">{{ product.name }}</a></h4>
                            <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>
                        </div>
                    </div>
                    <div class="button-group">
                        <div class="add-cart">
                            <button type="button" onclick="wishlist.add('{{ product.product_id }}');"><svg><use xlink:href="#heart" /></svg></button>
                            <button type="button" class="cartb" 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" onclick="compare.add('{{ product.product_id }}');"><svg><use xlink:href="#compare"/></svg></button>
                        </div>
                        <div class="absbtn"><div class="bquickv"></div></div>
                    </div>
                </div>
              </div>
            {% endfor %} 
            </div>
        </div>
      </div> 

    </div>
  </div>
</div>

<script type="text/javascript">
    $(document).ready(function() {
        var owlOptions = {
            itemsCustom : [ 
                [0, 1], [400, 2], [600, 3], [992, 4], [1200, 6], [1600, 6] 
            ],
            navigationText: ['<i class="fa fa-angle-left" aria-hidden="true"></i>', '<i class="fa fa-angle-right" aria-hidden="true"></i>'],
            navigation : true,
            pagination: false
        };

        $("#feature-{{ module }}").owlCarousel(owlOptions);
        $("#best-{{ module }}").owlCarousel(owlOptions);
        $("#latest-{{ module }}").owlCarousel(owlOptions);
    });
</script>