.hb-topcats-wrapper {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  overflow: visible;
  position: relative;
  z-index: 50;
}

.hb-topcats {
  width: 100%;
  overflow: visible;
}

.hb-topcats__list {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.hb-topcats__item {
  position: relative;
}

.hb-topcats__link,
.hb-topcats__link:visited,
.hb-topcats__link:hover,
.hb-topcats__link:focus {
  display: inline-flex;
  align-items: center;
  padding: 12px 8px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #7a7a7a !important;
}

.hb-topcats__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 520px;
  padding: 20px 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  display: none;
  z-index: 200;
}

.hb-topcats__item:hover > .hb-topcats__dropdown {
  display: block;
}

.hb-topcats__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}

.hb-topcats__col {
  min-width: 180px;
}

.hb-topcats__col-title {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 8px;
}

.hb-topcats__sublinks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-topcats__sublinks li {
  margin-bottom: 6px;
}

.hb-topcats__sublinks a {
  font-size: 13px;
}
 
@media (max-width: 1200px) {
  .hb-topcats__dropdown {
    min-width: 420px;
  }
}

/* Hummingbird desktop/tablet transition: keep desktop header, but avoid overlap before mobile menu. */
@media (min-width: 768px) and (max-width: 1399.98px) {
  .header-bottom .navbar-brand {
    max-width: 210px;
  }

  .header-bottom__row {
    row-gap: 8px;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  .header-bottom__row > .logo {
    padding-right: 14px !important;
  }

  .hb-topcats-wrapper {
    z-index: 80;
  }

  .hb-topcats__list {
    justify-content: flex-start;
    gap: 12px;
  }

  .hb-topcats__link,
  .hb-topcats__link:visited,
  .hb-topcats__link:hover,
  .hb-topcats__link:focus {
    font-size: 13px;
    padding: 10px 6px;
    letter-spacing: 0.04em;
  }

  #_desktop_search {
    order: 9 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px;
    position: relative;
    z-index: 60;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #_desktop_search #search_widget {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* Narrower desktop: keep logo readable and allow categories to split onto two lines. */
@media (min-width: 768px) and (max-width: 1299.98px) {
  .header-bottom .navbar-brand {
    max-width: 200px;
  }

  .hb-topcats__list {
    flex-wrap: wrap;
    white-space: normal;
    gap: 6px 12px;
  }

  .hb-topcats__link,
  .hb-topcats__link:visited,
  .hb-topcats__link:hover,
  .hb-topcats__link:focus {
    font-size: 13px;
    padding: 8px 6px;
  }
}

@media (min-width: 768px) {
  .main-menu {
    display: none !important;
  }
}

.page-category #js-product-list-header .category-cover {
  margin: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  position: static !important;
  overflow: visible !important;
  clear: both;
}

.page-category #js-product-list-header .category-cover img {
  margin: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  transform: none !important;
  object-fit: contain !important;
}
