.header-search {
    position: relative;
    width: 100%;
    max-width: 400px;
  }
  
  .header-search input {
    width: 100%;
    padding: 10px;
    padding-left: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    background: var(--main-color);
    color: #fff;
  }
  
  .header-search input::placeholder {
    color: #fff;
  }
  
  .search-results {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
  }
  .search-results.show {
    display: block;
  }
  
  .search-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    font-size: 12px;
  }
  
  .search-item:hover {
    background: #f0f0f0;
  }
  
  .search-loader {
    text-align: center;
    padding: 5px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 12px;
  }
  
  .no-results, .error-message {
    padding: 10px;
    color: red;
  }
    @media (max-width: 768px) {
  .header-search {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
  }
  body.show-search .header-search {
    display: block;
  }
}

  