.filters-layout{
    border: 1px solid #B3B6B2;
    border-radius: 20px;
    background: #f5f5f5;
    padding: 10px 20px 30px;
    height: fit-content;
}

.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto 30px;
}


.search-input{
    border-radius: 10px;
    width: 250px;
    height: 20px;
    padding: 10px;
    height: 40px;
    background: #ededed;
    border: none;
    outline: none;
}

.search-input:focus {
  outline: none;
  border-color: #4CAF50;
}


.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 400px;
  overflow-y: auto;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0 0 10px 10px;
  z-index: 1000;
  display: none;
  margin-top: 5px;
}



.search-dropdown.show {
  display: block;
}


.search-item {
  padding: 10px 15px;
  cursor: pointer;
}

.search-item:hover {
  background: #f5f5f5;
}

.search-highlight {
  font-weight: bold;
  color: #4CAF50;
}

.rating-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#rating-range {
    flex-grow: 1;
}

#rating-value {

    min-width: 80px;
    font-size: 0.9rem;
}

.price-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#categories-container label {
    display: block;
    margin: 0.3rem 0;
    cursor: pointer;
}

.filter-group{
    display: flex;
    flex-direction: column;
}

.price-slider-container {
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.price-slider {
    position: relative;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 1.5rem 0;
}

.slider-track {
    position: absolute;
    height: 100%;
    background: #4CAF50;
    border-radius: 2px;
    z-index: 1;
}

.price-range {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 0;
    -webkit-appearance: none;
    background: none;
    pointer-events: none;
    z-index: 2;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #81a942;
    cursor: pointer;
    border-radius: 50%;
    pointer-events: auto;
}

.price-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #81a942;
    cursor: pointer;
    border-radius: 50%;
    pointer-events: auto;
}

.price-range:focus {
    outline: none;
}




@media (max-width: 768px) {
    .filters-layout{
        display: none;
    } 

    .search-container {
        max-width: 100%;
        margin: 0 auto 20px;
        padding: 0 15px; 
        box-sizing: border-box; 
    }

    .search-input {
        width: 100%;
        box-sizing: border-box; 
        padding: 10px 15px;
    }
    
    .price-controls {
        justify-content: center;
    }
}