/* ==========================================================================
   1. BRAND COLOR VARIABLES & UTILITIES
   ========================================================================== */
:root {
  --nearup-blue: #0f3768;
  --nearup-blue-dark: #0b5ed7;
  --nearup-navy: #0a2540;
  --nearup-orange: #ff5500;
  --nearup-orange-light: #ff8c00;
  --nearup-hover-bg: #e8f2ff;
  --nearup-badge-red: #ff3b30;
  --nearup-bg-light: #f8fafc;
  --nearup-border: #e2e8f0;
}

.Header .cursor-pointer,
.mobile_header .cursor-pointer,
.mobile_offcanvas .cursor-pointer,
.mobile_bottom_toolbar .cursor-pointer {
  cursor: pointer;
}

/* ==========================================================================
   2. DESKTOP HEADER (.main_header)
   ========================================================================== */
.main_header {
  width: 100%;
  background-color: #ffffff;
  z-index: 999;
  top: 0;
  position: sticky;
}

/* Marquee / Promo Banner */
.main_header .promo_banner {
  background: linear-gradient(180deg, #e74221 0%, #e87b1a 10%, #e74221 89%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
}

.main_header .promo_banner .marquee_track {
  display: inline-block;
  animation: headerMarquee 25s linear infinite;
}

.main_header .promo_banner .marquee_text {
  margin-right: 40px;
}

@keyframes headerMarquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Middle Header Section */
.main_header .middle_header {
  transition: background-color 0.3s ease;
}

.main_header .logo_img {
  height: 55px;
  object-fit: contain;
}

/* Location Selector */
.main_header .location_badge {
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: 8px;
  max-width: 220px;
  border: 1px solid #e2e8f0;
}

.main_header .location_badge .loc_icon {
  color: #ff5500;
  font-size: 16px;
}

.main_header .location_badge .location_text_wrapper {
  overflow: hidden;
  line-height: 1.2;
}

.main_header .location_badge .loc_title {
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  display: block;
}

.main_header .location_badge .loc_address {
  font-size: 12px;
  font-weight: 600;
  color: #0a2540;
}

.main_header .location_badge .small_icon {
  font-size: 11px;
  color: #64748b;
}

/* Search Bar */
.main_header .custom_search_input .form-control {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-color: #e2e8f0;
  padding-left: 16px;
  font-size: 14px;
  color: #0a2540;
}

.main_header .custom_search_input .form-control:focus {
  box-shadow: none;
  border-color: #0f3768;
}

.main_header .custom_search_input .search_btn {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  background-color: #0f3768;
  color: #ffffff;
  cursor: pointer;
  border-color: #0f3768;
  padding: 0 18px;
  transition: background-color 0.2s ease;
}

.main_header .custom_search_input .search_btn:hover {
  background-color: #0b5ed7;
}

/* Action Icons (Cart, Wishlist, Wallet, Bell) */
.main_header .header_actions .action_icon_btn {
  width: 35px;
  height: 35px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #0a2540;
  cursor: pointer;
  transition: all 0.2s ease;
}

.main_header .header_actions .action_icon_btn:hover {
  background: #e8f2ff;
  color: #0f3768;
  border-color: #0f3768;
}

.main_header .header_actions .badge_count {
  position: absolute;
  top: -3px;
  right: -3px;
  background-color: #ff5500;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main_header .header_actions .profile_btn {
  background: #0f3768;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.main_header .header_actions .profile_btn:hover {
  background: #0b5ed7;
}

/* Secondary Navigation Links */
.main_header .bottom_header {
  background-color: #002e58;
  border-color: #0a2540 !important;
}

.main_header .bottom_header .nav_item_link {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main_header .bottom_header .nav_item_link:hover,
.main_header .bottom_header .nav_item_link.active_nav {
  background: linear-gradient(180deg, #e74221 0%, #e87b1a 10%, #e74221 89%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* ==========================================================================
   3. MOBILE TOP HEADER (.mobile_top_header)
   ========================================================================== */
.mobile_top_header {
  background-color: #dde4eb;
  position: sticky;
  top: 0px;
  z-index: 999;
  padding: 0px 5px;
}

.mobile_top_header .notification_btn {
    position: relative;
    color: #0f3768;
    font-size: 15px;
    background: #fff;
    border-radius: 50px;
    aspect-ratio: 1/1;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile_top_header .notification_btn .notification_btn_badge {
    background: #e74221;
    color: #fff;
    width: 12px;
    height: 12px;
    border-radius: 50px;
    position: absolute;
    top: -4px;
    font-weight: 600;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}
.mobile_top_header .mobile_menu_toggle {
  background: transparent;
  border: none;
  padding: 4px;
  color: #0a2540;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile_top_header .logo_img_mobile {
  height: 36px;
  object-fit: contain;
}

.mobile_top_header .mobile_loc_trigger {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 10px;
  border-radius: 20px;
  max-width: 140px;
  transition: border-color 0.2s ease;
}

.mobile_top_header .mobile_loc_trigger:hover {
  border-color: #0f3768;
}

.mobile_top_header .mobile_loc_trigger .loc_icon_mobile {
  color: #ff5500;
  font-size: 13px;
}

.mobile_top_header .small_loc_text {
  font-size: 12px;
  font-weight: 600;
  color: #0a2540;
}

.mobile_top_header .compact_input .form-control {
  font-size: 13px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-color: #e2e8f0;
  color: #0a2540;
  padding-left: 14px;
}

.mobile_top_header .compact_input .form-control:focus {
  box-shadow: none;
  border-color: #0f3768;
}

.mobile_top_header .compact_input .search_btn {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  background-color: #0f3768;
  color: #ffffff;
  border-color: #0f3768;
  cursor: pointer;
  padding: 0 14px;
  transition: background-color 0.2s ease;
}

.mobile_top_header .compact_input .search_btn:hover {
  background-color: #0b5ed7;
}

/* ==========================================================================
   4. MOBILE SIDE NAV / OFFCANVAS (.mobile_offcanvas)
   ========================================================================== */
.mobile_offcanvas {
  width: 280px !important;
}

.mobile_offcanvas .offcanvas-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 6px;
}

.mobile_offcanvas .logo_img_mobile {
  height: 36px;
  object-fit: contain;
}

.mobile_offcanvas .offcanvas_user_card {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

.mobile_offcanvas .avatar_circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #0f3768;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mobile_offcanvas .welcome_text {
  font-size: 14px;
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 2px;
}

.mobile_offcanvas .account_link {
  font-size: 12px;
  color: #0f3768;
  font-weight: 600;
}

.mobile_offcanvas .mobile_menu_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile_offcanvas .mobile_menu_list li {
  border-bottom: 1px solid #f1f5f9;
}

.mobile_offcanvas .mobile_menu_list .mobile_menu_item {
  color: #0a2540;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.mobile_offcanvas .mobile_menu_list .mobile_menu_item:hover {
  background-color: #f8fafc;
  color: #0f3768;
}

.mobile_offcanvas .mobile_menu_list .mobile_menu_item.active_menu_item {
  background-color: #e8f2ff;
  color: #0f3768;
  font-weight: 600;
}

.mobile_offcanvas .mobile_menu_list .menu_item_icon {
  width: 20px;
  color: #0f3768;
  font-size: 15px;
}

.mobile_offcanvas .mobile_menu_list .logout_item {
  color: #ff3b30;
}

.mobile_offcanvas .mobile_menu_list .logout_item:hover {
  background-color: #fff1f0;
  color: #d32f2f;
}

/* ==========================================================================
   5. MOBILE BOTTOM TOOLBAR (.mobile_bottom_toolbar)
   ========================================================================== */
.mobile_bottom_toolbar {
  z-index: 1030;
  background-color: #1e3a8a;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.18);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.mobile_bottom_toolbar .toolbar_inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
}

.mobile_bottom_toolbar .toolbar_btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.mobile_bottom_toolbar .toolbar_btn:hover,
.mobile_bottom_toolbar .toolbar_btn.active {
  color: #ffffff;
}

.mobile_bottom_toolbar .toolbar_btn.active {
  font-weight: 700;
}

.mobile_bottom_toolbar .toolbar_icon {
  position: relative;
  display: inline-flex;
  font-size: 18px;
}

/* Raised centre Home button */
.mobile_bottom_toolbar .toolbar_home {
  position: relative;
  top: -14px;
  flex: 0 0 auto;
  margin: 0 6px -14px;
}

.mobile_bottom_toolbar .toolbar_home_icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #f97316;
  background: #ffffff;
  border: 3px solid #1e3a8a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.3);
  transition: transform 0.2s ease;
}

.mobile_bottom_toolbar .toolbar_home:hover .toolbar_home_icon,
.mobile_bottom_toolbar .toolbar_home.active .toolbar_home_icon {
  transform: translateY(-2px);
}

.mobile_bottom_toolbar .toolbar_badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  background: #f97316;
  border: 1.5px solid #1e3a8a;
}

/* Responsive spacing fix for page body content on mobile */
@media (min-width: 0px) and (max-width: 991.98px) {
  body {
    padding-bottom: 60px;
  }

  /* Auth pages (login / vendor registration) hide the header & its bottom toolbar */
  body.auth_layout {
    padding-bottom: 0;
  }
}
