/* TOP BAR */
.topbar {
  background: #6a9d1f;
  padding: 8px 0;
  font-size: 12.5px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1060;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar .social i {
  font-size: 14px;
  margin-right: 12px;
}

/* MAIN HEADER */
.header-main {
  background: #fff;
  padding: 11px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 34px;
  /* below top bar */
  left: 0;
  right: 0;
  z-index: 1050;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* SEARCH */
.search-box input {
  height: 46px;
  border-radius: 30px 0 0 30px;
  padding-left: 18px;
  border-right: none;
}

.search-box .input-group-text {
  background: #6a9d1f;
  color: #fff;
  /* border: none; */
  border-radius: 0 30px 30px 0;
  padding: 0 18px;
}

.header-icons a {
  width: 42px;
  height: 42px;
  border-radius: 0%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  font-size: 18px;
  background: #f8f9fa;
  transition: background 0.2s ease;
}

.header-icons a:hover {
  background: #ececec;
}

/* FIX DROPDOWN POSITION */
#searchResults {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
}

/* PUSH PAGE DOWN */
.header-spacing {
  margin-top: 111px;
}

/* dropdowns */
.topbar .dropdown-menu {
  background: #4b6e15 !important;
  border: none !important;
}

.topbar .dropdown-item {
  color: #ffffff !important;
  font-size: 13px;
}

.topbar .dropdown-item:hover {
  background: #3e5912 !important;
  color: #fff !important;
}

.navbar__search button:hover {
  background-color: #425a12;
}

/* Account dropdown */
.header-main .dropdown-menu {
  background: #4b6e15 !important;
  border: none !important;
  padding: 6px 0 !important;
  /* IMPORTANT */
  overflow: hidden;
}

/* Items normal state */
.header-main .dropdown-item {
  color: #ffffff !important;
  font-size: 14px;
  padding: 10px 15px;
  background: transparent !important;
  white-space: nowrap;
  /* No white highlight */
}

/* Proper hover */
.header-main .dropdown-item:hover {
  background: #425a12 !important;
  /* Slightly darker green, not aggressive */
  color: #fff !important;
}

/* Better logout styling */
.header-main .dropdown-item.text-danger {
  color: #ffdddd !important;
}

.header-main .dropdown-item.text-danger:hover {
  background: #7a1f1f !important;
  color: #fff !important;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #f8f9fa;
  font-size: 14px;
  font-weight: 500;
  color: #333 !important;
  text-decoration: none;
  transition: background 0.2s ease;
}

.account-trigger:hover {
  background: #ececec;
}

.account-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.account-btn:hover {
  background: #ececec;
}

.dropdown.position-relative .dropdown-menu {
  position: absolute;
}

.account-dropdown {
  right: 0;
  left: auto;
  top: 100%;
  margin-top: 8px;
  min-width: 220px;
  max-width: 260px;
}

.account-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
}

.badge-orange {
  background-color: #fd7e14;
  color: #fff;
  /* keeps text readable */
}

@media (max-width: 576px) {
  .account-dropdown {
    right: -10px;
  }
}
@media (max-width: 360px) {
  .header-icons a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .logo-img {
    height: 40px;
  }
}
@media (max-width: 992px) {
  .header-icons {
    margin-top: 4px;
  }

  .header-icons .btn {
    flex: 1;
    max-width: 56px;
  }
}

.mobile-search {
  display: none;
  padding: 10px 15px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.mobile-search.show {
  display: block;
}
@media (max-width: 992px) {
  .header-main {
    top: 0;
  }

  .header-spacing {
    margin-top: 70px;
  }

  .mobile-search {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1040;
  }
}

body {
  overflow-x: hidden;
}
@media (max-width: 992px) {
  .search-box input {
    height: 42px;
    font-size: 14px;
  }

  .search-box .input-group-text {
    padding: 0 14px;
  }

  /* Ensure search results align full width */
  #searchResults {
    width: 100% !important;
  }
}
.account-dropdown {
  z-index: 1100;
}
.header-main,
.header-main .row,
.header-icons {
  overflow: visible !important;
}
@media (max-width: 992px) {
  .account-dropdown {
    right: 50%;
    transform: translateX(50%);
    top: calc(100% + 8px);
  }
}
