/* Mobile header: menu left, logo centered (larger), CTA right */
@media (max-width: 1024px) {
  #masthead .elementor-15658 .elementor-element-81e23ed {
    width: 100% !important;
    left: 0 !important;
    padding: 10px 12px !important;
    box-sizing: border-box;
    position: relative !important;
  }

  #masthead .elementor-15658 .elementor-element-81e23ed > .elementor-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 64px !important;
    width: 100% !important;
    gap: 8px;
    position: relative;
  }

  /* Hide desktop nav, social, empty header group */
  #masthead .elementor-15658 .elementor-element-89453ed,
  #masthead .elementor-15658 .elementor-element-8ea0bdb,
  #masthead .elementor-15658 .elementor-element-415d614 {
    display: none !important;
  }

  /* Left: hamburger only — match CTA width for balance */
  #masthead .elementor-15658 .elementor-element-e8eca94 {
    width: 110px !important;
    max-width: 110px !important;
    flex: 0 0 110px !important;
    min-width: 0;
    position: static !important;
  }

  #masthead .elementor-15658 .elementor-element-e8eca94 > .elementor-widget-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    /* allow logo absolute to use header/container as reference */
    position: static !important;
  }

  #masthead .elementor-15658 .elementor-element-45e1da5 {
    width: auto !important;
    max-width: none !important;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 2;
  }

  /* Logo: centered on full header width */
  #masthead .elementor-15658 .elementor-element-a441dc1 {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    max-width: 58% !important;
    margin: 0 !important;
    inset: unset !important;
    left: 50% !important;
    top: 50% !important;
    z-index: 1;
    --container-widget-width: auto;
  }

  /* Right: CTA — same side width as left */
  #masthead .elementor-15658 .elementor-element-c47d064 {
    width: 110px !important;
    max-width: 110px !important;
    flex: 0 0 110px !important;
    position: static !important;
    z-index: 2;
  }

  #masthead .elementor-15658 .elementor-element-c47d064 > .elementor-widget-wrap {
    justify-content: flex-end !important;
  }

  #masthead .elementor-15658 .menu-mobile-nav-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
    flex: 0 0 40px;
  }

  #masthead .elementor-15658 .menu-mobile-nav-button .shopio-icon {
    margin: 0 !important;
    width: 18px;
    height: 14px;
    justify-content: space-between;
  }

  #masthead .elementor-15658 .menu-mobile-nav-button .shopio-icon > span {
    width: 18px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 2px;
  }

  #masthead .elementor-15658 .elementor-element-a441dc1 .hfe-site-logo-container,
  #masthead .elementor-15658 .elementor-element-a441dc1 .hfe-site-logo-set,
  #masthead .elementor-15658 .elementor-element-a441dc1 .hfe-site-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  #masthead .elementor-15658 .elementor-element-a441dc1 .hfe-site-logo-container img,
  #masthead .elementor-15658 .elementor-element-a441dc1 .hfe-site-logo .hfe-site-logo-container img {
    width: auto !important;
    height: 56px !important;
    max-height: 56px !important;
    max-width: min(200px, 54vw) !important;
    object-fit: contain;
    display: block;
  }

  #masthead .elementor-15658 .elementor-element-751b704 {
    margin: 0 !important;
  }

  #masthead .elementor-15658 .elementor-element-751b704 .elementor-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px !important;
    box-sizing: border-box;
  }

  #masthead .elementor-15658 .elementor-element-751b704 .elementor-button-text {
    font-size: 11px !important;
  }
}

@media (max-width: 767px) {
  #masthead .elementor-15658 .elementor-element-81e23ed {
    padding: 8px 10px !important;
  }

  #masthead .elementor-15658 .elementor-element-e8eca94,
  #masthead .elementor-15658 .elementor-element-c47d064 {
    width: 100px !important;
    max-width: 100px !important;
    flex-basis: 100px !important;
  }

  #masthead .elementor-15658 .menu-mobile-nav-button {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px;
  }

  #masthead .elementor-15658 .elementor-element-a441dc1 .hfe-site-logo-container img,
  #masthead .elementor-15658 .elementor-element-a441dc1 .hfe-site-logo .hfe-site-logo-container img {
    height: 52px !important;
    max-height: 52px !important;
    max-width: min(190px, 52vw) !important;
  }

  #masthead .elementor-15658 .elementor-element-751b704 .elementor-button {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  #masthead .elementor-15658 .elementor-element-751b704 .elementor-button-text {
    font-size: 10px !important;
  }
}
