
/* Veridian Health 2.6.56
   Desktop header rebuilt to closely match the supplied reference:
   one rounded cream/glass panel on the ivy wall, logo/search/account/cart on
   the first row and category navigation on the second row.
*/

@media (min-width: 768px) {
  /* The reference does not use the old currency/wishlist utility strip. */
  #header > .header-nav {
    display: none !important;
  }

  #header {
    padding: 10px 0 12px !important;
    background: transparent !important;
    overflow: visible !important;
  }

  #header .vh-reference-header-shell {
    width: calc(100% - 48px) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: rgba(249, 248, 241, .94) !important;
    border: 1px solid rgba(226, 226, 210, .92) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 28px rgba(24, 43, 16, .18) !important;
    overflow: visible !important;
    -webkit-backdrop-filter: blur(4px) saturate(108%) !important;
    backdrop-filter: blur(4px) saturate(108%) !important;
  }

  #header .header-top,
  #header .header-top > .container,
  #header .header-navfullwidth,
  #header .header-navfullwidth > .container,
  #header .top-navigation-menu,
  #header .navbar-block,
  #header .top-navigation-menu #_desktop_top_menu {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  #header .header-top {
    padding: 0 !important;
  }

  #header .header-top > .container {
    padding: 18px 26px 15px !important;
  }

  #header .vh-reference-header-main {
    display: flex !important;
    align-items: center !important;
    min-height: 70px !important;
    margin: 0 !important;
  }

  #header .vh-reference-logo {
    display: flex !important;
    align-items: center !important;
    padding: 0 18px 0 0 !important;
  }

  #header .vh-reference-logo a {
    display: inline-flex !important;
    align-items: center !important;
  }

  #header .vh-reference-logo img,
  #header #_desktop_logo img {
    width: auto !important;
    height: auto !important;
    max-width: 205px !important;
    max-height: 64px !important;
    object-fit: contain !important;
  }

  #header .vh-reference-header-tools {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 26px !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  #header .vh-reference-display-top {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 26px !important;
  }

  /* Search bar: long rounded white field with green square button. */
  #header #search_widget {
    float: none !important;
    flex: 1 1 520px !important;
    width: auto !important;
    max-width: 610px !important;
    min-width: 300px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #header #search_widget form {
    position: relative !important;
    width: 100% !important;
  }

  #header #search_widget input {
    width: 100% !important;
    height: 46px !important;
    padding: 0 58px 0 18px !important;
    background: rgba(255,255,255,.98) !important;
    color: #222 !important;
    border: 1px solid #cbd0bc !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 2px rgba(22, 43, 12, .05) !important;
  }

  #header #search_widget button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 52px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    background: #58762a !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #header #search_widget button .material-icons {
    color: #fff !important;
    font-size: 24px !important;
  }

  /* Account block. */
  #header .vh-reference-account-slot,
  #header .vh-reference-user-info,
  #header .vh-reference-user-info .user-info {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #header .vh-reference-account-link {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 132px !important;
    color: #151a10 !important;
    text-decoration: none !important;
  }

  #header .vh-reference-account-icon {
    color: #1f2917 !important;
    font-size: 33px !important;
    line-height: 1 !important;
  }

  #header .vh-reference-account-copy,
  #header .vh-reference-cart-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  #header .vh-reference-account-copy strong,
  #header .vh-reference-cart-copy strong {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #141a0f !important;
  }

  #header .vh-reference-account-copy small,
  #header .vh-reference-cart-copy small {
    margin-top: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #20251c !important;
  }

  /* Cart block. */
  #header #_desktop_cart,
  #header .vh-reference-cart,
  #header .vh-reference-cart .blockcart,
  #header .vh-reference-cart .header {
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #header .vh-reference-cart .header > a {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 112px !important;
    color: #151a10 !important;
    text-decoration: none !important;
  }

  #header .vh-reference-cart-icon-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
  }

  #header .vh-reference-cart-icon {
    color: #1f2917 !important;
    font-size: 34px !important;
    line-height: 1 !important;
  }

  #header .vh-reference-cart-badge {
    position: absolute !important;
    top: -9px !important;
    right: -9px !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #58762a !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    text-align: center !important;
  }

  /* Second row: green category button + Home + current category menu. */
  #header .header-navfullwidth {
    padding: 0 26px 12px !important;
  }

  #header .header-navfullwidth > .container {
    border-top: 1px solid rgba(45, 61, 21, .11) !important;
    padding: 9px 0 0 !important;
  }

  #header .vh-reference-nav-row {
    display: flex !important;
    align-items: center !important;
    gap: 26px !important;
    min-height: 42px !important;
  }

  #header .vh-reference-shop-category {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    min-width: 194px !important;
    height: 40px !important;
    padding: 0 20px !important;
    border-radius: 7px !important;
    background: linear-gradient(180deg, #63832e 0%, #4f6f22 100%) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 3px 7px rgba(36, 62, 17, .16) !important;
  }

  #header .vh-reference-shop-category .material-icons {
    color: #fff !important;
    font-size: 18px !important;
  }

  #header .vh-reference-home-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 40px !important;
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  #header .vh-reference-home-link.is-active::after,
  #header .vh-reference-home-link:hover::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 2px !important;
    height: 2px !important;
    background: #58762a !important;
  }

  #header .vh-reference-category-menu {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  #header .vh-reference-category-menu .top-navigation-menu,
  #header .vh-reference-category-menu #_desktop_top_menu,
  #header .vh-reference-category-menu .navbar-block,
  #header .vh-reference-category-menu .top-menu {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #header .vh-reference-category-menu .top-menu[data-depth="0"] {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
  }

  #header .vh-reference-category-menu .top-menu[data-depth="0"] > li {
    float: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  #header .vh-reference-category-menu .top-menu[data-depth="0"] > li > a {
    display: inline-flex !important;
    align-items: center !important;
    height: 40px !important;
    padding: 0 13px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    text-shadow: none !important;
  }

  #header .vh-reference-category-menu .top-menu[data-depth="0"] > li.current > a,
  #header .vh-reference-category-menu .top-menu[data-depth="0"] > li > a:hover {
    color: #294315 !important;
    background: transparent !important;
  }

  #header .vh-reference-category-menu .top-menu[data-depth="0"] > li.current > a {
    box-shadow: inset 0 -2px 0 #58762a !important;
  }

  /* Keep dropdowns usable above the ivy content. */
  #header .vh-reference-category-menu .sub-menu {
    z-index: 1100 !important;
  }
}

/* Slightly tighter desktop header on narrower laptops. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  #header .vh-reference-header-shell {
    width: calc(100% - 24px) !important;
  }

  #header .header-top > .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  #header .header-navfullwidth {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  #header .vh-reference-header-tools,
  #header .vh-reference-display-top {
    gap: 14px !important;
  }

  #header #search_widget {
    min-width: 240px !important;
  }

  #header .vh-reference-shop-category {
    min-width: 168px !important;
    padding: 0 14px !important;
  }

  #header .vh-reference-nav-row {
    gap: 14px !important;
  }

  #header .vh-reference-category-menu .top-menu[data-depth="0"] > li > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 12px !important;
  }
}

/* Mobile keeps the existing compact header behaviour. */
@media (max-width: 767.98px) {
  #header {
    padding: 0 !important;
  }

  #header .vh-reference-header-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  #header .header-top,
  #header .header-navfullwidth {
    background: transparent !important;
  }
}
