<div class="box style-one featured">
  <span class="style-one-shadow"></span>
  <div class="box-heading"><?php echo $heading_title; ?><span class="heading-shadow"></span>
  <a id="next2" class="next" href="#">&raquo;</a>
  <a id="prev2" class="prev" href="#">&laquo;</a>
  </div>
  <div class="box-content">  
    <div class="box-product">
			
            
    <div class="list_carousel responsive" >
    <ul class="foo3">
          <?php foreach ($products as $product) { ?>
          	<li>
                <div class="main">
                    <!-- image //
                    =============-->
                    <!--for swap image-->
                    <?php if ($product['thumb_swap']) { ?>
                      <div class="image">
                          <a href="<?php echo $product['href']; ?>">
                             <img oversrc="<?php echo $product['thumb_swap']; ?>" src="<?php echo $product['thumb']; ?>" 
                             title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" style="border:none"/>
                          </a>
                      </div>
        
                      <?php } else {?>
        
                      <div class="image">
                          <a href="<?php echo $product['href']; ?>">
                              <img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" style="border:none"/>
                          </a>
                      </div>
        
                      <?php } ?>
                    <!--/ swap img-->
                    
                    <!-- name //
                    =============-->
                    
				
					<?php if ( ($futura_quantidade_atacado_status) ){ ?>  
						<div class="name" style="text-align:center"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
						<?php } else { ?>
						<div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
					<?php } ?>	
				
			
                    
                    <!-- price //
                    =============-->
                    
		
		
		<?php if ($product['price']) { ?>
            
			  
				<?php if ( ($futura_quantidade_atacado_status) ){ ?>  
					<div class="price" style="text-align:center">
				<?php } else { ?>
					<div class="price">
				<?php } ?>	
			 
		  
			<?php if (!$product['special']) { ?>
			
			<?php if (($this->config->get('futura_preco_dinamico_status')=='Habilitado') && ($futura_preco_dinamico_exibicoes) ){ ?>
		   
		   <?php eval($futura_preco_dinamico_exibicoes); ?>
				<?php } else { ?>
				<?php echo $product['price']; ?>
	        <?php }  ?>
			
        



                      <?php } else { ?>
                      <span class="price-old"><?php echo $product['price']; ?></span> 
                      <span class="price-new"><?php echo $product['special']; ?></span>
                      <span class="sale"><?php echo $product['saving']; ?>%</span>
                      <?php } ?>
                    </div>
                    <?php } ?>
                    
                    <!-- rate //
                    =============-->
                    
				
					<?php if ( ($futura_quantidade_atacado_status) ){ ?>  
						<div class="rating" style="text-align:center">
						<?php } else { ?>
						<div class="rating">
					<?php } ?>	
				
			
                    <img src="catalog/view/theme/gazal/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" />
                    </div>
                    
                    <!-- wish  //  compare  //  cart
                    =============-->
                    <div class="hover-options">
                    
				
				<?php if ( ($futura_quantidade_atacado_status) ){ ?>	
					<div class="agrup" style="width:70px;margin: 0 auto;padding-bottom:8px;">
						<a class="wish tooltip" onclick="addToWishList('<?php echo $product['product_id']; ?>');"><span><?php echo $button_wishlist; ?></span></a>
						<a class="compare tooltip" onclick="addToCompare('<?php echo $product['product_id']; ?>');"><span><?php echo $button_compare; ?></span></a>
					</div>
					
					<div class="agrup_cart_attecked_featured" style="width:102%;margin:0 auto;padding-bottom:10px;overflow:hidden;">
						<div class="product_attacked_featured" style="float:left;display:inline-flex;clear:both;margin-top:5px;  margin-left:1px;">
							<input type="button" id="decrease_<?php echo $product['product_id']; ?>" value="-"  onclick="javascript:onActionFeatured(<?php echo $product['product_id']; ?>, -1);" style="width:20px; text-indent:0px; height:32px; color: #ffffff; " />
							<input type="text" name="quantity" id="htopFeatured_<?php echo $product['product_id']; ?>" size="2" value="1" class="numeric"/>
							<input type="button" id="increase_<?php echo $product['product_id']; ?>" value="+" onclick="javascript:onActionFeatured(<?php echo $product['product_id']; ?>, 1);" style="width:20px; text-indent:0px; height:32px; color: #ffffff; "/>
							<input type="hidden" name="product_id" size="2" value="<?php echo $product['product_id']; ?>" />					
						</div>	
					
						<div class="cart" style="float:right; margin-top:5px;margin-left:1px;">
							<input type="button" value="<?php echo $button_cart; ?>" onclick="carrinhoAddFeatured('<?php echo $product['product_id']; ?>');" class="button" style="height: 32px; "/>
						</div>
					</div>						
				<?php }else{ ?>
					<div class="cart">
						<input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" />
                    </div>
                    <a class="wish tooltip" onclick="addToWishList('<?php echo $product['product_id']; ?>');"><span><?php echo $button_wishlist; ?></span></a>
                    <a class="compare tooltip" onclick="addToCompare('<?php echo $product['product_id']; ?>');"><span><?php echo $button_compare; ?></span></a>
				<?php } ?>	
				
			




                    </div>
                
                </div><!--/main-->
            </li>
          <?php } ?>
    </ul>

             
			<?php if ( ($futura_quantidade_atacado_status) ){ ?>

			<script type="text/javascript">
			function onActionFeatured(prodid, v1) {
			
			  //alert('#htop_' + prodid);
			  var elm = $('#htopFeatured_' + prodid); 			 
				
				if ((elm.prop("value") > 1) || (parseInt(v1, 10) == 1)){
				  elm.val( parseInt( elm.val(), 10 ) + parseInt(v1, 10) );
				}			 				  
			};
			
			function carrinhoAddFeatured(prodid){
			
			  var elm = $('#htopFeatured_' + prodid);
					
			  addToCart(prodid, parseInt(elm.prop("value"), 10));
			
			}
		</script>
		<?php } ?>
		  
        
    <div class="pager pager2"></div>
    
    </div> 
    </div><!--/box-product-->    
  </div><!--/box-content-->
</div><!--/box-->
<!-- liquid carousel -->
    
