/* Landing page header (home/stock/index.html) */

/* Hide demo header widgets (cart, search, explore) */
#themephi-header .menu-cart-area,
#themephi-header [data-id="943cb95"],
#themephi-header [data-id="665a818"],
#themephi-header .elementor-element-665a818,
#themephi-header [data-id="3533593"],
#themephi-header .elementor-element-3533593,
#themephi-header .hfe-search-button-wrapper,
#themephi-header .sticky_search,
#themephi-header .elementor-element-3948379 {
  display: none !important;
}

/* Header row: logo + nav on one line */
@media (min-width: 1025px) {
  #themephi-header .elementor-element-745c60e > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  #themephi-header .elementor-element-8385245,
  #themephi-header .elementor-element-f1765e7 {
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
  }

  #themephi-header .elementor-element-8385245 {
    flex: 0 0 auto;
    margin-right: 8px;
  }

  #themephi-header .elementor-element-f1765e7 {
    flex: 1 1 auto;
    min-width: 0;
  }

  #themephi-header .hfe-site-logo,
  #themephi-header .hfe-site-logo-set,
  #themephi-header .hfe-site-logo-container {
    display: flex;
    align-items: center;
  }

  #themephi-header .elementor-element-8385245 .elementor-widget-container,
  #themephi-header .elementor-element-0728317 .elementor-widget-container {
    margin: 0;
    padding: 0;
  }

  #themephi-header .elementor-element-8385245 .elementor-widget-site-logo {
    margin: 0;
  }

  #themephi-header .hfe-site-logo-img.hide_logo_desktop {
    display: none !important;
  }

  #themephi-header .hfe-site-sticky-logo-img {
    max-height: 36px;
    width: auto;
    display: block;
  }

  #themephi-header .menu_one {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
  }

  #themephi-header .menu-responsive.primary-menu {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #themephi-header .menu-responsive.primary-menu > nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  #themephi-header .sidebarmenu-area {
    display: none !important;
  }

  #themephi-header .voltera-desktop-nav {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 !important;
    padding: 0;
    list-style: none;
    width: auto;
  }

  #themephi-header .voltera-desktop-nav > li {
    margin: 0 !important;
    position: relative;
  }

  #themephi-header .voltera-desktop-nav > li > a.hfe-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 7px 8px !important;
    border-radius: 999px;
    line-height: 1.15;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
  }

  #themephi-header .voltera-desktop-nav > li.menu-item-has-children > a.hfe-menu-item::after {
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 1px;
  }

  #themephi-header .voltera-desktop-nav > li.voltera-nav-cta {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  #themephi-header .voltera-desktop-nav > li.voltera-nav-cta > a.hfe-menu-item {
    background: #01a66b;
    color: #fff !important;
    padding: 9px 16px !important;
    margin-left: 0;
  }

  #themephi-header .voltera-desktop-nav > li.voltera-nav-cta > a.hfe-menu-item:hover {
    background: #0f2923;
  }

  #themephi-header .voltera-desktop-nav .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 41, 35, 0.14);
    z-index: 1000;
  }

  #themephi-header .voltera-desktop-nav > li.menu-item-has-children:hover > .sub-menu,
  #themephi-header .voltera-desktop-nav > li.menu-item-has-children:focus-within > .sub-menu,
  #themephi-header .voltera-desktop-nav > li.menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  #themephi-header .voltera-desktop-nav .sub-menu a.hfe-sub-menu-item {
    display: block;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #0f2923;
    white-space: nowrap;
  }

  #themephi-header .voltera-desktop-nav .sub-menu a.hfe-sub-menu-item:hover {
    background: rgba(1, 166, 107, 0.08);
    color: #01a66b;
  }
}

@media (max-width: 1024px) {
  #themephi-header .hfe-site-sticky-logo-img {
    display: none !important;
  }

  #themephi-header .hfe-site-logo-img {
    max-height: 36px;
    width: auto;
    display: block;
  }

  #themephi-header .voltera-desktop-nav {
    display: none !important;
  }

  #themephi-header .sidebarmenu-area {
    display: block !important;
  }

  #themephi-header .elementor-element-745c60e > .e-con-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  #themephi-header .elementor-element-f1765e7 {
    flex: 0 0 auto;
    width: auto !important;
  }
}
