<!-- SECTION -->
		<div class="section">
			<!-- container -->
			<div class="container">
				<!-- row -->
				<div class="row">

					<!-- section title -->
					<div class="col-md-12">
						<div class="section-title">
							<h4 class="title">Top Selling</h4>
							<div class="section-nav">
								<ul class="section-tab-nav tab-nav">
	<?php  $tabNumb=1; for($i=0;$i<count($brand);$i++){
				if($cat_status[$i]==1){ // if cat status => active
		?>
	<li class="<?php if($tabNumb==1){ echo 'active';}  ?>"><a data-toggle="tab" href="#tab<?php echo $tabNumb; ?>"><?php echo $brand[$i];  ?></a></li><?php $tabNumb++; } } ?>
								</ul>
							</div>
						</div>
					</div>
					<!-- /section title -->



					<!-- Products tab & slick -->
					<div class="col-md-12">
						<div class="row">
							<div class="products-tabs">
								<!-- tab -->
<?php  $tabNumbre=1; for($i=0;$i<count($brand);$i++){
	if($cat_status[$i]==1){?>

<div id="tab<?php echo $tabNumbre; ?>" class="tab-pane <?php if($tabNumbre==1){ echo 'active';}  ?>">
									<div class="products-slick" data-nav="#slick-nav-1">
										<!-- product -->
<?php    foreach(QueryDB("SELECT * FROM products where brand='$i' and tm_status=1 ORDER BY RAND() ")as $listProd){?>
<div class="product"><div class="product-img"><img src="<?php echo explode(',', $listProd['item_img'])[0];  ?>" alt=""><div class="product-label"><?php  if($listProd['item_offer']!=0){  echo '<span class="sale">-'.$listProd['item_offer'].'%</span>';  }  ?><span class="new">Original</span></div>
</div><div class="product-body"><p class="product-category"><?php echo $brand[$i]; ?></p>
<h3 class="product-name"><a href="#"><?php  echo $company[$listProd['company']].','.$listProd['item_name'].' '.$brand[$listProd['brand']] ?></a></h3>
<h4 class="product-price">
&#8358;<?php  echo number_format(calcDiscount($listProd['item_cost'],$listProd['item_offer']));   ?>
<?php  if($listProd['item_offer']!=''){?>
	<del class="product-old-price">&#8358;<?php  echo number_format($listProd['item_cost']);  ?></del><?php  } ?></h4>
<div class="product-rating"><i class="fa fa-star"></i><i class="fa fa-star"></i>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></div>
												<div class="product-btns">
<button class="quick-view"><i class="fa fa-eye"></i><span class="tooltipp">quick view</span></button>
												</div>
											</div>
<div class="add-to-cart"><button class="add-to-cart-btn"><i class="fa fa-shopping-cart"></i> add to cart</button>
											</div>
										</div> <?php } ?>
										<!-- /product -->

									</div>
									<div id="slick-nav-1" class="products-slick-nav"></div>
								</div>
							<?php $tabNumbre++;} } ?>
								<!-- /tab -->
							</div>
						</div>
					</div>
					<!-- Products tab & slick -->
				</div>
				<!-- /row -->
			</div>
			<!-- /container -->
		</div>
		<!-- /SECTION -->
