<input type="hidden" name="cart_count" id="cart_count" value="<?= cart_stk("tot_crt"); ?>" />
    <footer id="footer" class="footer layout-03">
        <div class="footer-content background-footer-03">
            <div class="container">
                <div class="row">
                    <div class="col-lg-4 col-md-4 col-sm-9">
                        <section class="footer-item">
                            <a href="#" class="logo footer-logo"><img src="img/kmart-logo.png" alt="K-Mart logo" width="135" height="34"></a>
                            
                            <div class="newsletter-block layout-01">
                                <h4 class="title">Newsletter Signup</h4>
                                <div class="form-content">
                                    <form action="#" method="POST" id="kmsucbs" >
                                        <input type="email" class="input-text email" value="" required name="emailsdrs" placeholder="Your email here...">
                                        <button type="submt" class="bnt-submit">Sign up</button>
                                    </form>
									<p class="text-danger" style=" font-size: 2rem; margin-top: 12px; text-align: center;" id="zhmer"></p>
                                </div>
                            </div>
                        </section>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 md-margin-top-5px sm-margin-top-50px xs-margin-top-40px">
                        <section class="footer-item">
                            <h3 class="section-title">Useful Links</h3>
                            <div class="row">
                                <div class="col-lg-6 col-sm-6 col-xs-6">
                                    <div class="wrap-custom-menu vertical-menu-2">
                                        <ul class="menu">
                                            <li><a href="about">Who We Are</a></li>
											<li><a href="blog">Blog</a></li>
                                            
                                        </ul>
                                    </div>
                                </div>
                                <div class="col-lg-6 col-sm-6 col-xs-6">
                                    <div class="wrap-custom-menu vertical-menu-2">
                                        <ul class="menu">
                                            <li><a href="refund-policy">Refund Policy</a></li>
                                            <li><a href="delivery-policy">Delivery Policy</a></li>
                                            <li><a href="contact">Contacts Us</a></li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </section>
                    </div>
                    <div class="col-lg-4 col-md-4 col-sm-6 md-margin-top-5px sm-margin-top-50px xs-margin-top-40px">
                        <section class="footer-item">
                            <h3 class="section-title">Quick info</h3>
                            <div class="contact-info-block footer-layout xs-padding-top-10px">
                                <ul class="contact-lines">
                                    <li>
                                        <p class="info-item">
                                            <i class="biolife-icon icon-location"></i>
                                            <a href="https://maps.app.goo.gl/tM4WfAVZvu2mz2R47" target="_blank"><b class="desc rd_cl">Dodowa Road</b></a>
                                        </p>
                                    </li>
                                    <li>
                                        <p class="info-item">
                                            <i class="biolife-icon icon-phone"></i>
                                            <b class="desc">Phone: <a href="tel:+233530466020" class="rd_cl" target="_blank">+233 530 466 020</a></b>
                                        </p>
                                    </li>
                                    <li>
                                        <p class="info-item">
                                            <i class="biolife-icon icon-letter"></i>
                                            <b class="desc">Email:  <a href="mailto:info@kmartandmore.com" class="rd_cl" target="_blank">info@kmartandmore.com</a></b>
                                        </p>
                                    </li>
                                    <li>
                                        <p class="info-item">
                                            <i class="biolife-icon icon-clock"></i>
                                            <b class="desc">Hours: 7 Days a week from 10:00 am</b>
                                        </p>
                                    </li>
                                </ul>
                            </div>
                            <div class="biolife-social inline">
                                <ul class="socials">
                                    
                                    <li><a href="https://www.facebook.com/share/BYs8tm2o8e7951fR" target="_blank" title="facebook" class="socail-btn"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
                                    <li><a href="https://www.instagram.com/kmartgroceries" target="_blank" title="instagram" class="socail-btn"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
									
									<?php /*
									<li><a href="#" title="twitter" class="socail-btn"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
									<li><a href="#" title="pinterest" class="socail-btn"><i class="fa fa-pinterest" aria-hidden="true"></i></a></li>
                                    <li><a href="#" title="youtube" class="socail-btn"><i class="fa fa-youtube" aria-hidden="true"></i></a></li>
									*/ ?>
								</ul>
                            </div>
                        </section>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <div class="separator sm-margin-top-70px xs-margin-top-40px"></div>
                    </div>
                    <div class="col-11" style="clear:both;">
                        <div class="copy-right-text text-center" style="padding: 4rem 0 3rem 0;">
						<p>Copyright &copy;<?= date('Y'); ?> All rights reserved  || <strong>K-Mart Groceries & More</strong></p>
						</div>
                    </div>
                    
                </div>
            </div>
        </div>
    </footer>

    <!--Footer For Mobile-->
    <div class="mobile-footer">
        <div class="mobile-footer-inner">
            <div class="mobile-block block-menu-main">
                <a class="menu-bar menu-toggle btn-toggle" data-object="open-mobile-menu" href="javascript:void(0)">
                    <span class="fa fa-bars"></span>
                    <span class="text">Category</span>
                </a>
            </div>
           
            <div class="mobile-block block-global">
                <a class="menu-bar myaccount-toggle btn-toggle" data-object="global-panel-opened" href="javascript:void(0)">
                    <span class="fa fa-globe"></span>
                    <span class="text">Menu</span>
                </a>
            </div>
        </div>
    </div>

    <!--Mobile Global Menu-->
    <div class="mobile-block-global">
        <div class="biolife-mobile-panels">
            <span class="biolife-current-panel-title">Menu</span>
            <a class="biolife-close-btn" data-object="global-panel-opened" href="#">&times;</a>
        </div>
        <div class="block-global-contain">
            <div class="glb-item my-account">
                <b class="title"></b>
                <ul class="list">
					<li class="list-item"><a href="index">Home</a></li>
					<li class="list-item"><a href="shop">Shop</a></li>
					<li class="list-item"><a href="order">Order</a></li>
					<li class="list-item"><a href="about">About Us</a></li>
					<li class="list-item"><a href="blog">Blog</a></li>
					<li class="list-item"><a href="contact">Contact Us</a></li>
							
                </ul>
            </div>

			<div class="glb-item my-account">
                <ul class="list">
                    <li class="list-item"><a href="login">Login/Register</a></li>
                    <li class="list-item"><a href="checkout">Checkout</a></li>
                </ul>
            </div>
            
        </div>
    </div>

    <!-- Scroll Top Button -->
    <a class="btn-scroll-top"><i class="biolife-icon icon-left-arrow"></i></a>

    <script src="js/jquery-3.4.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.countdown.min.js"></script>
    <script src="js/jquery.nice-select.min.js"></script>
    <script src="js/jquery.nicescroll.min.js"></script>
    <script src="js/slick.min.js"></script>
    <script src="js/biolife.framework.js"></script>
    <script src="js/functions.js"></script>
	
<script type="text/javascript" language="javascript" >
$(document).ready(function(){
	$('#search_text,#searchtext').keyup(function(){
		if($('#searchtext').val() != ''){
		var search = $('#searchtext').val();
		$.ajax({ url:"actions/rsearch.php", type:"post", data:{'search_result':1,'search':search },
		beforeSend: function() { $(".mbsrchr").html('<b class="fa fa-spin fa-spinner"></b>'); },
		success:function(data){	$(".mbsrchr").html(data); }  });
		}else{ $(".mbsrchr").html(''); }
		
		if($('#search_text').val() != ''){
		var search = $('#search_text').val();
		$.ajax({ url:"actions/rsearch.php", type:"post", data:{'search_result':1,'search':search },
		beforeSend: function() { $(".dropserch").addClass('mksrch'); $(".shwsrch").html('<b class="fa fa-spin fa-spinner"></b>'); },
		success:function(data){	$(".shwsrch").html(data); }  });
		}else{	$(".dropserch").removeClass('mksrch'); $(".shwsrch").html(''); }	
		
	});
	$(document).on('click', '.cancel_search', function(){  $("#search_here").trigger('reset'); $(".dropserch").removeClass('mksrch'); $(".shwsrch").html(''); });
	$(document).on('click','.crtadz', function(e){
		e.preventDefault(); var $prxpc = $(this).parents('.pdzkpm'); var $dcchk = ($prxpc.hasClass('promo')) ? 'promo' : ''; 
		var $dcbtn = $prxpc.find('.crtadz'); var $takexpc = $prxpc.attr('data-cart'); var $txqtypc = $prxpc.find('#mbcrtqty').val();
        $.ajax({ url: 'actions/carts.php', type: 'POST', data: {'addCart':1, 'addam':'addCart', 'cntupto':$txqtypc, 'addto':$takexpc, 'attr':$dcchk},
		beforeSend: function() { $dcbtn.attr('disabled', 'disabled'); $dcbtn.html('<b class="fa fa-spin fa-spinner"></b>') }, dataType:"json",
        success: function(response){ $dcbtn.html('Added To Cart'); $dcbtn.attr('disabled', false);
		$('#shcrcnt').html(response.itemscount); $('#shcrtmt').html(response.amt_count); $("#cart_count").val(response.itemscount);
		if(response.itemscount > 0 && $("#minicrt").hasClass('dntshwyet')){ $("#minicrt").removeClass('dntshwyet');   } $("#minicrtdrp").append(response.minidrp); }
        });
    });	
	
	
	 $(document).on('click','.minicart-item .action .remove',function (e){
        e.preventDefault();
        let _this = $(this), minicart_item = _this.closest('li'), block_minicart  = _this.closest('.cart-inner');
		var _thiskp = _this.parents('.minicart-item'); var _thiscart = _thiskp.attr('data-cart'); $.ajax({ url: 'actions/carts.php', type: 'POST', data: {'outDelCart':1, 'shiftcart':_thiscart},
		beforeSend: function() { _this.attr('disabled', 'disabled'); _this.html('<b class="fa fa-spin fa-spinner"></b>') }, dataType:"json",success: function(response){ if(response.cartrec == 'cart'){ minicart_item.remove(); 
        $('body').trigger( 'update-minicart',[ block_minicart ]);if(response.itemscount <= 0){ $("#minicrtdrp, #incrtshw").html('<p class="minicart-empty">No product in your cart</p>'); 
		setTimeout($("#minicrt").addClass('dntshwyet'),10000); } $("#cart_count").val(response.itemscount); $('#shcrcnt').html(response.itemscount); $('#shcrtmt').html(response.amt_count);
        }} 
        });
    });
	
$("#kmsucbs").on('submit',function(e) {
		e.preventDefault();	 var data = $("#kmsucbs").serialize();
		$.ajax({ url: 'actions/subscribenews.php', type: 'POST',  data:  data, beforeSend: function(){
		$(".bnt-submit").html(' <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-loader spin mr-2"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>');
		$(".bnt-submit").attr('disabled', 'disabled'); },
		dataType:"json", success: function(data){	$('#zhmer').html(data.respn); $(".bnt-submit").html('Sign Up'); $(".bnt-submit").attr('disabled', false); 
			setTimeout( function(){ $('#zhmer').html(''); $("#kmsucbs").trigger('reset'); },5000); 	return true;  }
        });
});
	
});
</script>
</body>

</html>