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

$elite_florist_header_phone_number = get_theme_mod('elite_florist_header_phone_number');

$elite_florist_header_text = get_theme_mod('elite_florist_header_text');

?>

<div id="top_header">
	<div class="container">
		<div class="top_header_text text-center wow zoomIn" data-wow-duration="2s">
			<?php if ( ! empty( $elite_florist_header_text ) ): ?>
				<p class="m-0">
					<?php echo esc_html( $elite_florist_header_text ); ?>
				</p>
			<?php endif; ?>
		</div>
	</div>
</div>

<header id="header" role="banner" class="nav-stick <?php echo esc_attr(elite_florist_sticky_header()); ?>" <?php if ( get_header_image() ) { ?> style="background-image: url( <?php header_image(); ?> ); background-size: 100%;" <?php } ?> >
	<div class="container">
		<div class="navbar-area wow fadeInDown" data-wow-duration="2s">
			<div class="row">
				<div class="col-lg-3 col-md-3 col-sm-4 col-12 align-self-center">
					<div class="logo main">
						<?php if ( function_exists( 'elite_florist_logo_title_description' ) ) :elite_florist_logo_title_description(); endif; ?>
					</div>
				</div>
				<div class="col-lg-5 col-md-5 col-sm-2 col-2 align-self-center">
					<div class="toggle-menu gb_menu text-md-start">
						<button onclick="elite_florist_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', 'elite-florist' ); ?>">
							<?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="elite_florist_navigation_close()">x<span class="screen-reader-text"><?php esc_html_e('Close Menu','elite-florist'); ?></span></a>
						</nav>
					</div>
				</div>
				<div class="col-lg-4 col-md-4 col-sm-6 col-10 align-self-center text-md-end text-end">
					<?php if ( ! empty( $elite_florist_header_phone_number ) ): ?>
						<span class="phone-btn">
							<span class="dashicons dashicons-phone me-2"></span><?php echo esc_html( $elite_florist_header_phone_number ); ?>
						</span>
					<?php endif; ?>
					<?php if (class_exists('woocommerce')) { ?>
					    <span class="cart-count lower-icons ms-4">
					        <a class="cart-customlocation" href="<?php echo esc_url(wc_get_cart_url()); ?>" title="<?php esc_attr_e('View Shopping Cart', 'elite-florist'); ?>">
					            <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>