<?php $options = kaveh_get_options(); ?>
            <!-- Start Nav -->
            <header class="nav-mobile-two nav-mobile-sticky">
              <div class="container">
                <div class="nav-mobile-two-wrapper d-flex align-items-center bg-white">
                  <!-- Start Logo -->
                  <a href="<?php echo home_url(); ?>" class="nav-mobile-two-logo">
                    <img src="<?php echo $options['kaveh_logo_up'] ?>" alt="<?php echo get_bloginfo('name'); ?>"
                      width="78" height="26">
                  </a>
                  <!-- End Logo -->
                  <!-- Start Auth -->
                  <a <?php if (!is_user_logged_in() && $options['kaveh_login_redirect'] === '1'): ?> data-auth-toggle="modal"
                          data-auth-target="auth-gajmarket" <?php else: ?>
                          href="<?php echo get_permalink(get_option('woocommerce_myaccount_page_id')); ?>" <?php endif; ?> class="nav-mobile-auth nav-mobile-two-auth ms-auto">
                          <?php
                          if (is_user_logged_in()) {
                              // Get the current user object
                              $current_user = wp_get_current_user();
                              // Get the Gravatar URL for the current user
                              $avatar_url = get_avatar_url($current_user->user_email, array('size' => 29));
                          } else {
                              // Fallback image URL
                              $avatar_url = esc_url(KAVEH_TEMPLATE_URI) . '/assets/images/user.png';
                          }
                          ?>
                          <img src="<?php echo $avatar_url; ?>" alt="avatar" width="29" height="29">
                  </a>
                  <!-- End Auth -->

                  <!-- Start Search -->
                  <button type="button"
                    class="top-header-four-btn-search nav-mobile-btn-search nav-mobile-two-btn-search d-flex align-items-center justify-content-center"
                    aria-label="search">
                    <i class="icon-search-3"></i>
                  </button>
                  <!-- End Search -->
                  <div class="top-header-four-search">
                    <div class="backdrop"></div>
                    <form method="get" action="#" class="position-relative">
                      <input id="maninpu" type="text" name="search" class="form-control maninpu" placeholder="<?php esc_attr_e('Search', 'kavehTheme'); ?>">
                      <button type="submit">
                        <i class="icon-search"></i>
                      </button>
                    </form>
                  </div>
                  <?php if (class_exists('woocommerce')): ?>
                  <!-- Start Cart -->
                  <a data-open-cart="true" href="javascript:void(0)"
                    class="nav-mobile-cart nav-mobile-two-cart d-flex align-items-center justify-content-center position-relative">
                    <i class="icon-shopping-cart"></i>
                    <span
                      class="position-absolute rounded-circle d-flex align-items-center justify-content-center text-white top-0 start-0">
                      <div class="mob_cart_tot"><?php echo WC()->cart->get_cart_contents_count(); ?></div> </span>
                  </a>
                  <!-- End Cart -->
                  <?php endif; ?>

                  <!-- Start Btn Nav -->
                  <button type="button"
                    class="btn-nav-header btn-nav-kkheader p-0"
                    aria-label="btn nav">
                    <i class="icon-grid-2"></i>
                  </button>
                  <!-- Start Btn Nav -->
                
                </div>
              </div>
            </header>
            <!-- End Nav -->