/* Contenedor principal de los filtros */
.tire-filter-container,
.wheel-filter-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Estilo para los grupos de filtros */
.tire-filter,
.wheel-filter {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
	justify-content: center;
}

button#filter_tires {margin-top: 7px;}
button#filter_wheels {margin-top: 7px;}

/* Grupo individual de filtro */
.filter-group {
    flex: 1;
    min-width: 150px;
}

/* Etiquetas de los selectores */
.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

/* Selectores */
.filter-group select {
    width: 100%;
    padding: 0px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

/* Selectores deshabilitados */
.filter-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Botón de búsqueda */
.filter-group button {
    width: 100%;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.filter-group button:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .tire-filter,
    .wheel-filter {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }
}

/* Animaciones de carga */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.filter-group select:disabled option[value=""] {
    animation: pulse 1.5s infinite;
}