<!--<link rel="stylesheet" type="text/css" href="catalog/template/perfect7a/css/general.css" />-->
<script type="text/javascript">
 <?php if($home_setting[0]['status']==1){?>
	function startmarquee(lh,speed,delay) {
		var p=false;
		var t;
		var sh;
		var o=document.getElementById("marqueebox");
		o.innerHTML+=o.innerHTML;
		o.style.marginTop=0;
		o.onmouseover=function(){p=true;}
		o.onmouseout=function(){p=false;}
		function start(){
			sh = o.offsetHeight;
			o.style.height = sh;
			t=setInterval(scrolling,speed);
			if(!p) o.style.marginTop=parseInt(o.style.marginTop)-1+"px";
		}
	
		function scrolling(){
			if(parseInt(o.style.marginTop)%lh!=0){
				o.style.marginTop=parseInt(o.style.marginTop)-1+"px";
				if(Math.abs(parseInt(o.style.marginTop))>=sh/2) o.style.marginTop=0;
			}else{
				clearInterval(t);
				setTimeout(start,delay);
			}
		}
		setTimeout(start,delay);
	}
	<?php }?>
	
	<?php if($home_setting[3]['status']==1){?>
		function startrecentorder(lh,speed,delay) {
		var p=false;
		var t;
		var sh;
		var o=document.getElementById("recentorder");
		o.innerHTML+=o.innerHTML;
		o.style.marginTop=0;
		o.onmouseover=function(){p=true;}
		o.onmouseout=function(){p=false;}
		function start(){
			sh = o.offsetHeight;
			o.style.height = sh;
			t=setInterval(scrolling,speed);
			if(!p) o.style.marginTop=parseInt(o.style.marginTop)-1+"px";
		}
		
		function scrolling(){
			if(parseInt(o.style.marginTop)%lh!=0){
				o.style.marginTop=parseInt(o.style.marginTop)-1+"px";
				if(Math.abs(parseInt(o.style.marginTop))>=sh/2) o.style.marginTop=0;
			}else{
				clearInterval(t);
				setTimeout(start,delay);
			}
		}
		setTimeout(start,delay);
		}
	<?php }?>

	$(function(){
		$(".main div.row:nth-child(2)").addClass("new_arrivals_row");
	})
	
	//get coupon
	window.onload=function()
	{
		setTimeout(function()
		{
			level();
		},0);
	};
	function level(){
		var oBox = document.getElementById('bg');
		var tBox = document.getElementById('email-content');
		var oH4  = tBox.getElementsByTagName('h4')[0];
		oBox.style.display='block';
		tBox.style.display='block';
		oH4.onclick = function(){
			oBox.style.display='none';
			tBox.style.display='none';
		};
		
		$("#emailModal").click(function(event){
			var e=window.event || event;
			if(e.stopPropagation){
				e.stopPropagation();
			}else{
				e.cancelBubble = true;
			}
		});
		document.onclick = function(){
		$("#email-content,#bg").hide();
	};
	}
	
</script>    
<div id="home-nav" class="clearfix">
 	<div class="container">  
 	<?php echo $category; ?>
    <?php echo $flash; ?>
    </div>
 </div>
</div>

    <div class="main container">
         <!--New Arrivals start-->
        <?php foreach ($recommend_categories as $category) { ?>
            <div class="row slider_row">
                <h2 class="section_title mobile"><a href="/"><?php echo $category['name']; ?></a></h2>
                <div class="product_list carousel slick-slider owl-carousel product-carousel clearfix">
                <?php foreach ($category['products'] as $product) { ?>
                    <div class="list_item">
                        <dl class="list_item_inner">
                            <a class="link-wishlist" href="<?php echo $product['href_addtowishlist']; ?>">
                                <span class="tip">Add to Wishlist</span>
                                <i class="icon-heart"></i>
                            </a>
                            <dt class="img_wrap">
                                <a class="list_item_img" href="<?php echo $product['href']; ?>"><img class="product-img" src="<?php echo $product['thumb']; ?>" width="193" height="193"></a> 
                            </dt>
                            <dd class="product-description">
                                <div class="item_title"><a href="<?php echo $product['href']; ?>" class="item_title"><?php echo $product['name']; ?></a></div>
                                <div class="clearfix">
                                    <div class="item_price">
                                        <div class="price-box">
                                        	<p><span class="old-price"><?php echo $product['market_price']; ?></span><span class="special-price"><?php echo $product['price']; ?></span></p>
                                        </div>
                                        <!--<div class="item_review">
                                        <div class="rating rating_2">
                                            <span class="nostar nostar_category">
                                                <span style="width:90%;" class="nstar nstar_category"></span>
                                            </span>
                                        </div>
                                        (<?php echo $product['review_info']['count'];?>)<span class="line">|</span>Orders (<?php echo $product['sold'];?>) 
                                     </div>-->
                                    </div>
                                 </div>
                            </dd>
                        </dl>
                    </div> 
                <?php }?> 
                </div>
        	<!--New Arrivals end-->
   		</div>
        <?php }?> 
        <hr class="delimiter">
   </div>
   
   <div class="reasons" id="hp_reasons">
        <div class="container">
            <h4 class="reasons_title">
                <i class="reason_number">5</i>
                REASONS
                <span class="pink_text">TO BUY</span>
                <br>
                <span class="heading-font">
                    at
                    <em>beststoreitems.com</em>
                </span>
                <span class="divider"></span>
            </h4>
            <div class="row">
                <div class="col-lg-6 col-sm-24 col-xs-24">
                    <div class="reason top_brands">
                        <div class="reason_title">CHEAP<br> TOP QUALITY
                            <span class="reason_title_icon"><i class="icon-star"></i></span>
                        </div>
                        <div class="reason_text">
                            Our offer handbags, watches and accessories collections are vast and discerning at the same time, both in matters of fashion and designs. There is a wide selection of high end desinger on our site and a diversity of offer models. We make sure to offer the best quality offers on the market. This is why we continuously work to be the best offer site.
                        </div>
                    </div><!--End Reason-->
                </div>
                <div class="col-lg-8 col-sm-12 col-xs-24">
                    <div class="reason satisfaction">
                        <div class="reason_title">
                            GUARANTEED CUSTOMER<br> SATISFACTION
                            <span class="reason_title_icon"><i class="icon-badge"></i></span>
                        </div>
                        <div class="reason_text">
                            We at beststoreitems.com value our customers more than anything, which is why all our efforts are directed at getting 100% customer satisfaction. We offer a clear, honest and easy return policy, live customer support and the highest quality products, so shopping with us is a worry-free and enjoyable experience.
                        </div>
                    </div><!--End Reason-->
                    <div class="reason customer_service">
                        <div class="reason_title">
                            REMARKABLE<br> CUSTOMER SERVICE
                            <span class="reason_title_icon"><i class="icon-headphones"></i></span>
                        </div>
                        <div class="reason_text">
                            Our customer support team is helpful, friendly and efficient and will never leave a question unanswered or an issue unresolved. We offer you different ways to contact us and our undivided attention, just as if we were interacting face to face. Your feedback is very much appreciated, so please let us know if there is anything that needs to be improved!
                        </div>
                    </div><!--End Reason-->
                </div>
                <div class="col-lg-9 col-sm-12  col-xs-24">
                    <div class="reason low_price">
                        <div class="reason_title">
                            AFFORDABLE <br> LOWEST PRICES
                            <span class="reason_title_icon"><i class="text">%</i></span>
                        </div>
                        <div class="reason_text">
                            We know that affordability is what makes offer handbags, watches and shoes so alluring in the first place and this is why you will not find a single overpriced item in our collection. We have a firm fair pricing policy that benefits our customers and ourselves alike and that is directly proportional to the quality of our products.
                        </div>
                    </div><!--End Reason-->
                    <div class="reason express_shipping">
                        <div class="reason_title">
                            FREE SHIPPING<br> WORLDWIDE
                            <span class="reason_title_icon"><i class="icon-truck"></i></span>
                        </div>
                        <div class="reason_text">
                            Waiting too long for an item to arrive can be stressing and uneasy, which is why we don't allow this to happen to our customers. All of orders will be processed once the payment are received, and will be shipped out in one to two work days. We ship out the orders by global express, which just need to take 3-7 work days to your door.
                        </div>
                    </div><!--End Reason-->
                </div>
            </div>
        </div>
   </div>
   
<script type="text/javascript">
   <?php if($home_setting[0]['status']==1){?>
	startmarquee(20,20,2000);
	<?php }?>
	 <?php if($home_setting[3]['status']==1){?>
	startrecentorder(95,20,2000);
	<?php }?>
	<?php if ( isset($need_login) ){
		echo "window.alert('Please sign in your account first!');";
	} ?>
</script>
