<?php $header_class_main = penci_soledad_wpheader_classes(); ?>
<header id="header" class="<?php echo esc_attr( $header_class_main ); ?>" <?php if( ! get_theme_mod('penci_schema_wphead') ): ?>itemscope="itemscope" itemtype="https://schema.org/WPHeader"<?php endif;?>>
	<?php if ( ! get_theme_mod( 'penci_vertical_nav_show' ) ) : ?>
		<?php $class_layout_bottom = penci_soledad_sitenavigation_classes(); ?>
		<?php
		$header_trans      = penci_is_header_transparent();
		$dis_sticky_header = get_theme_mod( 'penci_disable_sticky_header' );
		if( $dis_sticky_header ){
			echo '<div class="sticky-wrapper">';
		}
		?>
		<nav id="navigation" class="<?php echo esc_attr( $class_layout_bottom ); ?>" role="navigation" <?php if( ! get_theme_mod('penci_schema_sitenav') ): ?>itemscope itemtype="https://schema.org/SiteNavigationElement"<?php endif; ?>>
			<div class="<?php penci_soledad_get_header_width(); ?>">
				<div class="button-menu-mobile header-11"><?php penci_fawesome_icon('fas fa-bars'); ?></div>
				<?php
				get_template_part( 'template-parts/header/logo-mobile' );
				echo '<div class="penci-menu-wrap">';
				get_template_part( 'template-parts/header/menu' );
				echo '</div>';

				$topbar_search = get_theme_mod( 'penci_topbar_search_check' );
				$cart_icon     = get_theme_mod( 'penci_woo_shop_hide_cart_icon' );

				if( ! $topbar_search || get_theme_mod( 'penci_header_social_nav' ) || ( class_exists( 'WooCommerce' ) && ! $cart_icon ) ) {
					echo '<div class="penci-header-extra">';
					if ( ! $topbar_search ) {
						get_template_part( 'template-parts/header/top-search' );
					}
					if ( class_exists( 'WooCommerce' ) && ! $cart_icon ) {
						get_template_part( 'template-parts/header/cart-icon' );
					}
					if ( get_theme_mod( 'penci_header_social_nav' ) ) :
					?>
						<div class="main-nav-social<?php if ( get_theme_mod( 'penci_header_social_brand' ) ): echo ' penci-social-textcolored'; endif; ?>">
							<?php get_template_part( 'inc/modules/socials' ); ?>
						</div>
					<?php
					endif;
					echo '</div>';
				}
				?>
			</div>
		</nav>
		<?php
		if( $dis_sticky_header ){
			echo '</div>';
		}
		?>
	<?php endif; ?>
</header>
<!-- end #header -->