/* ===============================
   HEADER BASE
================================ */

#header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}

/* ===============================
   TOP BAR LAYOUT
================================ */

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.header-top {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

/* LOGO */
.header_logo img {
  height: 40px;
  width: auto;
}

/* ===============================
   SEARCH CENTER
================================ */

#cz_search_block_top {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
}

#cz_search_block_top form {
  position: relative;
}

#cz_search_query_top {
  height: 44px;
  padding-left: 44px;
  border-radius: 8px;
  border: 2px solid #2563eb;
  font-size: 15px;
}

#cz_search_block_top::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .6;
}

/* ===============================
   RIGHT ACTIONS
================================ */

.user-info,
#desktop_cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#desktop_cart .shopping-cart {
  position: relative;
}

.cart-products-count,
.mobile_count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===============================
   MENU UNDERLINE BAR
================================ */

.header-top-inner {
  border-top: 1px solid rgba(0,0,0,.06);
}

#_desktop_main_menu {
  display: flex !important;
  gap: 24px;
  padding: 12px 0;
}

#_desktop_main_menu a {
  font-weight: 500;
  color: #374151;
}

#_desktop_main_menu a:hover {
  color: #2563eb;
}

/* ===============================
   REMOVE LEGACY CSS
================================ */

.header-top *,
.header-top-inner * {
  float: none !important;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 991px) {
  #cz_search_block_top {
    display: none;
  }

  .header-top {
    min-height: 56px;
  }
}
