.datos_producto ul {
    padding: 10px 30px;
}
.listado {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.sidebar {
    width: 25%;
    padding: 1rem;
    background: #ffffff;
}

.product-grid {
    width: 75%;
    padding: 1rem;
    background: #ffffff;
}

.product {
    padding: 1rem;
}

.label {
    font-weight: bold;
    color: white;
    padding: 0.2rem 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.reacondicionado {
    background-color: #007ea7;
}

.usado {
    background-color: #51b848;
}

.discontinuado {
    background-color: #f58220;
}

.filter-toggle {
    display: none;
    background: #ffffff;
    color: 000000;
    padding: 1rem;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 1rem;
}

/* ==================== */
/* ===== CHECKBOX ===== */
/* ==================== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-hidden {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-custom svg {
    width: 16px;
    height: 16px;
    stroke: white;
    stroke-width: 3;
    display: none;
}

.checkbox-hidden:checked + .checkbox-custom {
    background-color: #51b848;
}

.checkbox-hidden:checked + .checkbox-custom svg {
    display: block;
}


.usados-inicio{
    position: relative;
    float: left;
    width: 100%;
    margin: 0 20px 50px 20px;
}

/* Estilo para la flecha cuando se invierte */
.flechaOrden.invertida {
    transform: rotate(180deg); /* Rota la flecha 180 grados */
    transition: transform 0.3s ease;
}

/* Alinear la flecha a la derecha dentro del label */
.check-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.check-row input:checked ~ .flechaOrden {
    display: block; /* Muestra la flecha cuando el radio button está seleccionado */
}

.check-row svg.flechaOrden {
    margin-left: auto; /* Empujar la flecha a la derecha */
    vertical-align: middle; /* Centrar la flecha verticalmente */
    display: none; /* Ocultar flecha por defecto */
}
/* ==================== */
/* ==================== */
/* ==================== */
@media (max-width: 768px) {
    .sidebar {
        display: none;
        width: 100%;
        order: 1;
    }

    .sidebar.active {
        display: block;
    }

    .filter-toggle {
        display: block;
        order: 0;
    }

    .product-grid {
        width: 100%;
        order: 2;
    }

    .listado {
        flex-direction: column;
    }

    .usados-inicio{
        position: relative;
        float: left;
        width: 100%;
        margin: 0;
        margin-bottom: 30px;
    }

}

.filtros {
    font-family: sans-serif;
    font-size: 14px;
    max-width: 300px;
    margin-top: 30px;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 16px 0;
}

.filtro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filtro-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.filtro-body {
    margin-top: 10px;
    display: none;
}

.filtro.open .filtro-body {
    display: block;
}

.filtro.open .flecha::after {
    content: '▲';
}

.flecha::after {
    content: '▼';
    font-size: 12px;
}

/* checkbox visual */
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
}

.check-row input {
    display: none;
}

.check {
    width: 25px;
    height: 25px;
    border-radius: 25%;
    border: 1px solid #202428;
    background: white;
    display: inline-block;
    position: relative;
}

.check-row input:checked + .check {
    background: red;
}


.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 230px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

#limpiar-filtros{
    font-size: 12px;
    cursor: pointer;
}
#limpiar-filtros:hover{
    color: red;
}


.usado-datos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usado-datos li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.usado-datos .icono {
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #999;
    cursor: pointer;
    font-size: 16px;
}

.producto .agregar.active {
    background-color: #000000;
    height: 50px;
    width: 230px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}
.producto .agregar.active:hover {
    background-color: var(--color-red);
}