<?php get_template_part('themeplat/shop-header/shop-mobile-header', 'shop-header'); ?>
<header class="header-shop header-3-theme header-6-theme">
    <?php get_template_part('themeplat/navbar/notification/notification-bar', 'notification'); ?>
    <div class="container color_option_liam" style="max-width: 1500px;">
        <div class="h-row-shop">
            <div class="header-right-side">
                <?php if (ot_get_option('logo_blog_barsa')) : ?>
                <div class="header-logo">
                    <a href="<?php echo get_home_url(); ?>" title="<?php echo bloginfo('name'); ?>">
                        <img src="<?php echo ot_get_option('logo_blog_barsa'); ?>">
                    </a>
                </div>
                <?php endif ?>
                <div class="header-search">
                    <div class="he-search">
                        <?php echo get_product_search_form(); ?>
                    </div>
                </div>
            </div>
            <div class="he-headeroption">
                <div class="he-btn-container">
                    <div class="he-heder-btt">
                        <?php get_template_part('themeplat/login/but-login', 'button'); ?>
                    </div>
                </div>
            
                <div id="cd-hamburger-menu" class="top_icons shop_cart fullwidth_shop_cart d-none d-lg-block">
                    <a href="" title="مشاهده سبد خرید">
                        <div class="top_cart_title">
                            سبد خرید 
                            <span class="shop-badge header-cart-count">
                                <?php 
                                if (WC()->cart->get_cart_contents_count()) :
                                    echo WC()->cart->get_cart_contents_count();
                                    endif
                                ?>
                            </span>
                        </div><i class="fal fa-shopping-bag"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>
    <nav id="header-wrap" class="h-menu-nav nav-down">
        <div id="header" class="container color_option_liam_6" style="max-width: 1500px;">
            <div class="h-menu-nav_row">
                <ul class="h-menu-nav-list">
                    <li>
                        <ul class="h-menu-nav-list_item ">
                            <?php
                            if (has_nav_menu('cat-prodct-shop')) { ?>
                            <li class="h-menu-nav-list_activ-main">
                                <div class="h-menu-nav-list_activ--main">
                                    <ul class="nav_mega">
                                        <li class="big-nav">
                                            <a href="#">
                                                <?php
                                                    $locations = get_nav_menu_locations();
                                                    $menu = wp_get_nav_menu_object($locations['cat-prodct-shop']);
                                                    echo $menu->name; // name of the menu
                                                    ?>
                                            </a>
                                            <?php wp_nav_menu(array('theme_location' => 'cat-prodct-shop', 'walker' => new ASG_Megamenu_Walker())); ?>
                                        </li>
                                        <div class="background__full"></div>
                                    </ul>
                                </div>
                            </li>
                            <?php } ?>
                            <div class="cd-main-nav">
                                <?php wp_nav_menu(array('theme_location' => 'main-menu-two', 'walker' => new ASG_Megamenu_Walker())); ?>
                            </div>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <?php if (ot_get_option('text_amazing_suggestions')): ?>
        <div class="amazing-suggestions" style="border-radius:<?php echo ot_get_option('amazing_suggestions_radius', '35'); ?>px;background-color: <?php echo ot_get_option('color_amazing_suggestions', '#e83f3f'); ?>"> 
            <span style="color: <?php echo ot_get_option('color_text_amazing_suggestionss', '#fff'); ?>"><?php echo ot_get_option('text_amazing_suggestions'); ?></span>
        </div>
        <?php endif; ?>
    </nav>
</header>
<div class="note-bar slide-margin"></div>
<div class="padding_bot_header_shop padd_14 d-none d-lg-block"></div>