<!-- Start: Header
============================= -->
<?php

$party_rental_header_wishlist_link = get_theme_mod('party_rental_header_wishlist_link');

?>
<div class="main-header-box wow fadeInDown" data-wow-duration="2s">
	<header id="header" role="banner" class="nav-stick <?php echo esc_attr(party_rental_sticky_header()); ?>">
		<div class="container">
			<div class="navbar-area" <?php if ( get_header_image() ) { ?> style="background-image: url( <?php header_image(); ?> ); background-size: 100%;" <?php } ?>>
				<div class="row">
					<div class="col-xl-2 col-lg-3 col-md-4 col-sm-4 col-12 pe-0 logo-box align-self-center">
						<div class="logo main">
							<?php if ( function_exists( 'party_rental_logo_title_description' ) ) :party_rental_logo_title_description(); endif; ?>
						</div>
					</div>
					<div class="col-xl-6 col-lg-4 col-md-2 col-sm-1 col-12 p-0 align-self-center">
						<div class="toggle-menu gb_menu text-md-start">
							<button onclick="party_rental_navigation_open()" class="gb_toggle p-2"><i class="fa fa-bars" aria-hidden="true"></i></button>
						</div>
						<div id="gb_responsive" class="nav side_gb_nav">
							<nav id="top_gb_menu" class="gb_nav_menu" role="navigation" aria-label="<?php esc_attr_e( 'Menu', 'party-rental' ); ?>">
								<?php 
								    wp_nav_menu( array( 
										'theme_location' => 'primary_menu',
										'container_class' => 'gb_navigation clearfix' ,
										'menu_class' => 'clearfix',
										'items_wrap' => '<ul id="%1$s" class="%2$s mobile_nav mb-0 px-0">%3$s</ul>',
										'fallback_cb' => 'wp_page_menu',
								    ) ); 
								?>
								<a href="javascript:void(0)" class="closebtn gb_menu" onclick="party_rental_navigation_close()">x<span class="screen-reader-text"><?php esc_html_e('Close Menu','party-rental'); ?></span></a>
							</nav>
						</div>
					</div>
					<div class="col-xl-2 col-lg-3 col-md-4 col-sm-4 col-12 search-box align-self-center">
						<div class="search_form_area">
							<?php get_search_form(); ?>
						</div>
					</div>
					<div class="col-xl-2 col-lg-2 col-md-2 col-sm-3 col-12 translator-box align-self-center">
						<?php if ( ! empty( $party_rental_header_wishlist_link ) ): ?>
							<a class="lower-icons" href="<?php echo esc_url( $party_rental_header_wishlist_link ); ?>"><span class="dashicons dashicons-heart"></span>
							</a>
						<?php endif; ?>
						<?php if (class_exists('woocommerce')) { ?>
						    <span class="cart-count lower-icons ms-3">
						        <a class="cart-customlocation" href="<?php echo esc_url(wc_get_cart_url()); ?>" title="<?php esc_attr_e('View Shopping Cart', 'party-rental'); ?>">
						            <span class="dashicons dashicons-cart"></span>
						            <span class="cart-item-box">
						                <?php 
						                $cart_count = WC()->cart->get_cart_contents_count(); 
						                ?>
						            </span>
						        </a>
						    </span>
						<?php } ?>
					</div>
				</div>
			</div>
		</div>
	</header>
</div>