/* Mobile Header Search Fix */
@media (max-width: 991px) {
  /* Position the search container as an overlay below the header on mobile */
  #headerSearchContainer.active {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: white !important;
    padding: 15px !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    display: block !important;
  }

  /* Style the search form for better mobile UX */
  .header-search-form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .header-search-wrapper {
    padding: 0 10px !important;
    border-bottom: 2px solid #000 !important;
  }

  .header-search-input {
    width: 100% !important;
    height: 40px !important;
  }

  /* Fix autocomplete suggestions position */
  .autocomplete-suggestions {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}

@media (max-width: 576px) {
  #headerSearchContainer.active {
    padding: 10px !important;
  }
  
  .header-search-wrapper {
    padding: 0 5px !important;
  }
}
