/* HuntBee header-specific overrides. Loaded after Nexx and HuntBee base styles. */

/* Keep utility dropdowns above the main site header. */
.hb-theme #top.hb-utility-bar {
  position: relative !important;
  z-index: 1200 !important;
  overflow: visible !important;
}

.hb-theme #top.hb-utility-bar > .container {
  position: relative !important;
  z-index: 1201 !important;
  overflow: visible !important;
}

.hb-theme #top.hb-utility-bar .dropdown-menu {
  z-index: 1250 !important;
}

/* Utility bar: align content with the same visual edges as the main header. */
.hb-theme #top.hb-utility-bar > .container {
  width: 100% !important;
  max-width: var(--hb-container) !important;
  min-height: 34px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.hb-theme #top.hb-utility-bar .hb-utility-preferences,
.hb-theme #top.hb-utility-bar .hb-utility-links {
  position: static !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hb-theme #top.hb-utility-bar .hb-utility-preferences {
  margin-right: auto !important;
}

.hb-theme #top.hb-utility-bar .hb-utility-links {
  margin-left: auto !important;
}

.hb-theme #top.hb-utility-bar .hb-utility-preferences > *,
.hb-theme #top.hb-utility-bar .hb-utility-links > * {
  position: static !important;
  float: none !important;
}

.hb-theme #top.hb-utility-bar #form-currency,
.hb-theme #top.hb-utility-bar #form-language,
.hb-theme #top.hb-utility-bar .pull-left,
.hb-theme #top.hb-utility-bar .pull-right {
  position: static !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
}

/* Compact wordmark. */
.hb-theme .hb-wordmark-name {
  font-size: 30px;
}

.hb-theme .hb-wordmark small {
  white-space: nowrap;
  letter-spacing: .11em;
}

/* Search: custom flex control avoids Bootstrap input-group table artefacts. */
.hb-theme .hb-header-search {
  width: 220px;
  flex: 0 0 220px;
}

.hb-theme #search.hb-search-control {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.hb-theme #search.hb-search-control .form-control {
  position: static !important;
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 8px 11px !important;
  border: 1px solid #d8dde1 !important;
  border-right: 0 !important;
  border-radius: 6px 0 0 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #111820 !important;
  font-size: 12px !important;
  line-height: 20px !important;
}

.hb-theme #search.hb-search-control .hb-search-submit {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #0d1826 !important;
  border-radius: 0 6px 6px 0 !important;
  background: #0d1826 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.hb-theme #search.hb-search-control .hb-search-submit:hover,
.hb-theme #search.hb-search-control .hb-search-submit:focus {
  background: #132235 !important;
  border-color: #132235 !important;
}

.hb-theme #search.hb-search-control .hb-search-submit i {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

/* Cart: preserve Nexx off-canvas behaviour but give the trigger enough room. */
.hb-theme .hb-mini-cart {
  width: 150px;
  flex: 0 0 150px;
}

.hb-theme .hb-mini-cart #cart {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.hb-theme .hb-mini-cart #cart .cartToggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid #d8dde1 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #111820 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.hb-theme .hb-mini-cart #cart .cartToggle:hover,
.hb-theme .hb-mini-cart #cart .cartToggle:focus {
  border-color: #bbc2c8 !important;
  background: #faf7ef !important;
  color: #111820 !important;
}

.hb-theme .hb-mini-cart #cart .cartToggle i,
.hb-theme .hb-mini-cart #cart .cartToggle #cart-total {
  position: static !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: inherit !important;
  background: transparent !important;
  transform: none !important;
}

.hb-theme .hb-mini-cart #cart .cartToggle i {
  font-size: 13px !important;
}

.hb-theme .hb-header-actions {
  gap: 10px !important;
}

/* Shopping cart drawer */
.hb-theme .cart-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  background: rgba(10, 20, 32, .52) !important;
  backdrop-filter: blur(1.5px);
  z-index: 1390 !important;
}

.hb-theme .cart-offcanvas {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 420px !important;
  max-width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: -20px 0 55px rgba(10, 20, 32, .16) !important;
  transform: translateX(100%) !important;
  transition: transform .24s ease !important;
  z-index: 1400 !important;
}

.hb-theme .cart-offcanvas.active {
  right: 0 !important;
  transform: translateX(0) !important;
}

.hb-theme .cart-offcanvas-header {
  position: relative !important;
  top: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex: 0 0 auto !important;
  min-height: 74px !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid #e8e4dc !important;
  background: #fff !important;
  color: #111820 !important;
  z-index: 2 !important;
}

.hb-theme .hb-cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.hb-theme .hb-cart-drawer-icon,
.hb-theme .hb-cart-empty-icon,
.hb-theme .hb-cart-voucher-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #f1f7f7;
  color: var(--hb-cyan);
  line-height: 1 !important;
}

.hb-theme .hb-cart-drawer-icon i,
.hb-theme .hb-cart-empty-icon i,
.hb-theme .hb-cart-voucher-icon i {
  margin: 0 !important;
  line-height: 1 !important;
}

.hb-theme .hb-cart-drawer-title strong,
.hb-theme .hb-cart-drawer-title small {
  display: block;
}

.hb-theme .hb-cart-drawer-title strong {
  margin-bottom: 3px;
  color: #111820;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.hb-theme .hb-cart-drawer-title small {
  color: #7b858e;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.hb-theme .hb-cart-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e1ddd4 !important;
  border-radius: 8px !important;
  background: #faf9f5 !important;
  color: #56616b !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-size: 13px !important;
}

.hb-theme .hb-cart-close:hover,
.hb-theme .hb-cart-close:focus {
  border-color: #cbc5b9 !important;
  background: #f3f0e9 !important;
  color: #111820 !important;
}

.hb-theme .cart-offcanvas-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 0 !important;
  background: #fbfaf6 !important;
}

.hb-theme .hb-cart-items {
  padding: 8px 18px 18px;
}

.hb-theme .hb-cart-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid #e9e5dd;
}

.hb-theme .hb-cart-item:last-child {
  border-bottom: 0;
}

.hb-theme .hb-cart-item-image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 1px solid #e2ded5;
  border-radius: 9px;
  background: #fff;
}

.hb-theme .hb-cart-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.hb-theme .hb-cart-item-main {
  min-width: 0;
}

.hb-theme .hb-cart-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hb-theme .hb-cart-item-name {
  min-width: 0;
  color: #111820;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.hb-theme .hb-cart-item-name:hover,
.hb-theme .hb-cart-item-name:focus {
  color: #9b6a00;
}

.hb-theme .hb-cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9a7774;
  font-size: 12px;
}

.hb-theme .hb-cart-remove:hover,
.hb-theme .hb-cart-remove:focus {
  background: #fff0ef;
  color: #963d37;
}

.hb-theme .hb-cart-item-options {
  margin-top: 5px;
}

.hb-theme .hb-cart-item-options span {
  display: block;
  color: #7b858e;
  font-size: 12px;
  line-height: 1.45;
}

.hb-theme .hb-cart-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid #efebe4;
  color: #727d86;
  font-size: 12px;
}

.hb-theme .hb-cart-item-meta strong {
  color: #111820;
  font-size: 12px;
  font-weight: 800;
}

.hb-theme .hb-cart-voucher-icon {
  width: 66px;
  height: 66px;
  border: 1px solid #e2ded5;
  border-radius: 9px;
  background: #f1f7f7;
}

.hb-theme .hb-cart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 360px;
  padding: 44px 28px;
  text-align: center;
}

.hb-theme .hb-cart-empty-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  font-size: 17px;
}

.hb-theme .hb-cart-empty strong {
  margin-bottom: 7px;
  color: #111820;
  font-size: 13px;
  font-weight: 800;
}

.hb-theme .hb-cart-empty > span:last-child {
  max-width: 260px;
  color: #7b858e;
  font-size: 12px;
  line-height: 1.55;
}

.hb-theme .cart-offcanvas-footer {
  flex: 0 0 auto !important;
  width: 100% !important;
  padding: 0 !important;
  border-top: 1px solid #e4e0d7 !important;
  background: #fff !important;
  text-align: left !important;
}

.hb-theme .hb-cart-totals {
  padding: 12px 18px 9px;
}

.hb-theme .hb-cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0;
  color: #66717b;
  font-size: 12px;
}

.hb-theme .hb-cart-total-row:last-child {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #ece8df;
  color: #111820;
  font-size: 12px;
}

.hb-theme .hb-cart-total-row strong {
  color: #111820;
  font-weight: 800;
}

.hb-theme .cart-offcanvas-button-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 18px 18px !important;
  background: #fff !important;
}

.hb-theme .cart-offcanvas-button-block .btn {
  min-height: 40px;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.hb-theme .hb-cart-checkout {
  border-color: #e3a313 !important;
  background: var(--hb-amber) !important;
  color: #171717 !important;
}

.hb-theme .hb-cart-checkout:hover,
.hb-theme .hb-cart-checkout:focus {
  border-color: #d39508 !important;
  background: var(--hb-amber-strong) !important;
  color: #111 !important;
}

body.hb-theme.cart-offcanvas-active {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: hidden !important;
}

/* The cart drawer lives inside the main-header stacking context. While it is
   open, keep the utility bar below that context so the drawer header starts at
   the true top of the viewport instead of being hidden behind the top bar. */
body.hb-theme.cart-offcanvas-active #top.hb-utility-bar {
  z-index: 900 !important;
}

@media (max-width: 520px) {
  .hb-theme .cart-offcanvas {
    width: 100vw !important;
  }

  .hb-theme .cart-offcanvas-button-block {
    grid-template-columns: 1fr;
  }
}

/* Extensions mega menu */
.hb-theme .hb-primary-navigation,
.hb-theme .hb-main-nav,
.hb-theme .hb-main-nav-list {
  overflow: visible !important;
}

.hb-theme .hb-main-nav-list > li.hb-nav-mega {
  position: relative !important;
}

.hb-theme .hb-main-nav-list > li.hb-nav-mega.open > a,
.hb-theme .hb-main-nav-list > li.hb-nav-mega > a:hover,
.hb-theme .hb-main-nav-list > li.hb-nav-mega > a:focus {
  background: #faf8f3 !important;
}

.hb-theme .hb-main-nav .hb-mega-menu {
  top: calc(100% - 4px) !important;
  left: -12px !important;
  right: auto !important;
  width: 720px !important;
  max-width: calc(100vw - 40px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dfdbd1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(17,24,32,.14) !important;
}

.hb-theme .hb-main-nav .hb-mega-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 18px 22px !important;
  border-bottom: 1px solid #ebe7de !important;
  background: #fbfaf6 !important;
}

.hb-theme .hb-main-nav .hb-mega-kicker {
  display: block !important;
  margin: 0 0 4px !important;
  color: var(--hb-cyan) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
}

.hb-theme .hb-main-nav .hb-mega-topbar strong {
  display: block !important;
  color: #111820 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
}

.hb-theme .hb-main-nav .hb-mega-platform {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #cfe3e5 !important;
  border-radius: 999px !important;
  background: #f1f9fa !important;
  color: #287985 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.hb-theme .hb-main-nav .hb-mega-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.9fr) minmax(205px, .8fr) !important;
}

.hb-theme .hb-main-nav .hb-mega-catalog {
  padding: 20px 22px 22px !important;
  background: #fff !important;
}

.hb-theme .hb-main-nav .hb-mega-section + .hb-mega-section {
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid #eeeae1 !important;
}

.hb-theme .hb-main-nav .hb-mega-section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 11px !important;
}

.hb-theme .hb-main-nav .hb-mega-heading {
  display: inline-block !important;
  margin: 0 !important;
  color: #111820 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
}

.hb-theme .hb-main-nav .hb-mega-view-category {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 !important;
  color: #7b858e !important;
  background: transparent !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

.hb-theme .hb-main-nav .hb-mega-view-category:hover,
.hb-theme .hb-main-nav .hb-mega-view-category:focus {
  color: #9b6a00 !important;
  background: transparent !important;
}

.hb-theme .hb-main-nav .hb-mega-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 !important;
}

.hb-theme .hb-main-nav .hb-mega-links > li {
  margin: 0 !important;
}

.hb-theme .hb-main-nav .hb-mega-links > li > a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 9px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #53606b !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  white-space: normal !important;
}

.hb-theme .hb-main-nav .hb-mega-links > li > a:hover,
.hb-theme .hb-main-nav .hb-mega-links > li > a:focus {
  border-color: #e4ded1 !important;
  background: #faf8f3 !important;
  color: #111820 !important;
}

.hb-theme .hb-main-nav .hb-mega-links > li > a i {
  flex: 0 0 auto !important;
  color: #c1b9aa !important;
  font-size: 12px !important;
}

.hb-theme .hb-main-nav .hb-mega-links > li > a:hover i,
.hb-theme .hb-main-nav .hb-mega-links > li > a:focus i {
  color: var(--hb-amber-strong) !important;
}

.hb-theme .hb-main-nav .hb-mega-quick {
  padding: 20px 18px !important;
  border-left: 1px solid #e6e2d8 !important;
  background: #faf8f3 !important;
}

.hb-theme .hb-main-nav .hb-mega-label {
  display: block !important;
  margin: 0 0 10px !important;
  color: #7b858e !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
}

.hb-theme .hb-main-nav .hb-mega-direct,
.hb-theme .hb-main-nav .hb-mega-all {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 40px !important;
  margin: 0 0 6px !important;
  padding: 10px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #303b45 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

.hb-theme .hb-main-nav .hb-mega-direct:hover,
.hb-theme .hb-main-nav .hb-mega-direct:focus {
  border-color: #e3ded3 !important;
  background: #fff !important;
  color: #111820 !important;
}

.hb-theme .hb-main-nav .hb-mega-direct i {
  color: #b7ad9b !important;
  font-size: 12px !important;
}

.hb-theme .hb-main-nav .hb-mega-all {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  border-color: #ead59b !important;
  background: #fff7df !important;
  color: #765300 !important;
}

.hb-theme .hb-main-nav .hb-mega-all:hover,
.hb-theme .hb-main-nav .hb-mega-all:focus {
  border-color: #ddb947 !important;
  background: #ffefbd !important;
  color: #5f4300 !important;
}

.hb-theme .hb-main-nav .hb-mega-all i {
  color: #bd8200 !important;
  font-size: 12px !important;
}

@media (min-width: 1200px) {
  .hb-theme .hb-header-search {
    width: 220px;
    flex-basis: 220px;
  }

  .hb-theme .hb-mini-cart {
    width: 150px;
    flex-basis: 150px;
  }
}
