.header-top-container {
  background: #e6f0ff;
}

.header-top {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
}

.header-logo a {
  font-size: 40px;
  font-weight: 700;
  text-decoration: none;
  align-items: center;
  background: linear-gradient(135deg, #0869C8, #42a5f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.mobile-icons,
.menu-heading,
.pickup-mobile-search,
.nav-icon-mobile,
.pickup-media-social,
.pageheader {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
  gap: 10px;
  max-width: 470px;
}

.header-search,
.mobile-header-search {
  display: flex;
  flex-grow: 1;
  border: 2px solid #0869C8;
  border-radius: 5px;
  overflow: hidden;
  height: 40px;
}

.header-search form,
.mobile-header-search form {
  display: flex;
  width: 100%;
}

.header-search input,
.mobile-header-search input {
  flex: 1;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  border: none;
}

.header-search button,
.mobile-header-search button {
  background: linear-gradient(135deg, #0869C8, #42a5f5);
  color: white;
  border: none;
  width: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  padding: 0;
}

.header-search button:hover,
.mobile-header-search button:hover {
  background: linear-gradient(135deg, #42a5f5, #0869C8);
}

.header-search button svg,
.mobile-header-search button svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.header-search button:focus,
.mobile-header-search button:focus {
  outline: none;
  background: linear-gradient(135deg, #42a5f5, #0869C8);
}

input:-webkit-autofill {
  transition: background-color 5000s ease-in-out 0s;
}

.header-nav {
  display: block;
}

.header-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #0869C8;
  padding: 0;
  margin: 0;
}

.header-nav-list a {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 20px;
  display: block;
  transition: background 0.3s;
}

.header-nav-list a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.header-has-dropdown {
  position: relative;
}

.header-dropdown {
  display: none;
  position: absolute;
  background-color: #0869C8;
  min-width: 140px;
  list-style: none;
  padding: 5px 0 0;
  z-index: 999;
}

.header-dropdown li a {
  display: block;
  padding: 8px 15px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  text-transform: capitalize;
  transition: background 0.2s ease;
}

.header-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-has-dropdown:hover .header-dropdown {
  display: block;
}

/* Live Search */
.livesearch-results {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 999;
  width: 365px;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 5px;
  margin-top: 50px;
  scrollbar-width: thin;
  display: none;
}

.livesearch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f1f1f1;
}

.livesearch-item:hover {
  background: #f0f8ff;
}

.livesearch-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.livesearch-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.livesearch-item .title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 600;
  font-size: 13px;
}

.livesearch-google {
  display: block;
  color: #444 !important;
  font-size: 12px;
  pointer-events: auto;
}

.livesearch-google:hover {
  color: #666 !important;
  background: none;
}

.livesearch-google svg {
  width: 12px;
  height: 12px;
}

/* Bookmark */
.bookmark-count {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 22px;
  height: 22px;
  background: rgba(165, 165, 165, 0.2);
  color: #121212;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmark-count.hidden {
  display: none;
}

.bookmark-icon-wrapper {
  position: relative;
  margin-left: 10px;
}

.bookmark-mobile {
  display: none;
}

#bookmark-button {
  position: relative;
  cursor: pointer;
}

.bookmark-icon-wrapper label {
  margin: 0;
}

#bookmark-dropdown {
  position: absolute;
  right: 15px;
  top: 100%;
  background: white;
  border: 1px solid #ccc;
  width: 280px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  border-radius: 6px;
  padding: 16px 18px;
  z-index: 1000;
}

#bookmark-dropdown.hidden,
.bookmark-dropdown[data-target="mobile"].hidden {
  display: none;
}

.bookmark-sub {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 12px;
  text-align: left;
}

.bookmark-list-desc {
  font-size: 13px;
  margin: 0;
  text-align: left;
}

.bookmark-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.bookmark-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
}

.bookmark-title {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  color: #121212;
  text-decoration: none;
}

.remove-bookmark {
  cursor: pointer;
}

.remove-bookmark svg {
  width: 15px;
  height: 15px;
}

/* Mobile */
@media (max-width: 992px) {
  .header-wrapper {
    position: fixed;
    width: 100%;
    z-index: 9999;
  }

  .header-top-container {
    height: 44px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    overflow: hidden;
  }

  .header-top {
    padding: 5px 15px;
  }

  .header-logo a {
    font-size: 22px;
  }

  .pageheader {
    display: block;
    color: #666666;
    font-size: 12px;
    font-weight: bold;
    margin: 4px 0 0;
    width: 50%;
    max-width: 630px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-right,
  .bookmark-icon-wrapper {
    display: none;
  }

  .mobile-icons {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-icons svg {
    width: 27px;
    height: 27px;
    fill: #444444;
  }

  .pickup-mobile-search {
    display: block;
    background: #fff;
  }

  .mobile-search-container {
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease-in-out;
  }

  .mobile-search-container.open {
    height: auto;
  }

  .mobile-header-search {
    margin: 15px;
  }

  .header-nav {
    background: #f9f9f9;
  }

  .menu-heading {
    display: block;
    background: linear-gradient(135deg, #1976d2, #42a5f5, #1976d2);
    color: #fff;
    padding: 2px 15px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
  }

  .pickup-mobile-nav {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
  }

  .pickup-mobile-nav.open {
    height: auto;
    border-bottom: 3px solid #1976d2;
  }

  .header-nav-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
  }

  .header-nav-list li {
    height: 100%;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }

  .header-nav-list li:nth-child(3n+1) {
    border-left: none;
  }

  .header-nav-list li:nth-last-child(-n+1) {
    border-bottom: none;
  }

  .header-nav-list a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #121212;
    text-transform: none;
    font-size: 12px;
    font-weight: 500;
    padding: 10px 5px;
    text-align: center;
  }

  .header-nav-list a:hover {
    color: #121212;
  }
  
  .header-nav-list a.bookmark-title {
    text-align: left;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
  }

  .nav-icon-mobile {
    display: block;
    margin: auto auto 0;
  }

  .nav-icon-mobile svg {
    width: 30px;
    height: 30px;
  }

  .header-dropdown {
    display: none !important;
  }

  .pickup-media-social {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    border-top: 1px solid #ddd;
  }

  .icon-media-social {
    display: flex;
    column-gap: 10px;
    z-index: 2;
  }

  .icon-media-social a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0869C8, #42a5f5);
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
  }

  .icon-media-social a:hover {
    background: linear-gradient(135deg, #42a5f5, #0869C8);
  }

  .icon-media-social svg {
    width: 24px;
    height: 24px;
    fill: #fff;
  }

  .bookmark-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bookmark-button-mobile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    cursor: pointer;
  }

  .bookmark-button-mobile .bookmark-count {
    top: 5px;
    right: 3px;
  }

  .bookmark-dropdown[data-target="mobile"] {
    position: absolute;
    right: 0;
    left: 0;
    top: 35%;
    background: white;
    border: 1px solid #ccc;
    width: 80%;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    border-radius: 6px;
    padding: 16px 18px;
    z-index: 1000;
    margin: 0 auto;
  }
}