.scroll-container {
    width: 100%;
    padding: 10px 30px 10px;
    background-color: white; /* Fondo gris claro */
    display: flex;
    gap: 30px;
}
.filtrar, .ordenar {
    display: flex;
    align-items: center;
}
.filtrar {
    gap: 15px;
}
.ordenar {
    gap: 28px;
}
.categories, .ordenar-select {
    border-radius: 10px;
    padding: 6px;
    border: 2.5px solid #5d3b85;
    appearance: none;
    width: 300px;
}
.products{
    min-height: 80vh;
    background-color: aliceblue;
}
.products-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-height: 140vh;
    margin-left: 0 !important;
    overflow: auto;
}
.libro{
    max-height: 280px;
}
.card {
    width: 20rem;
    max-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    border-radius: 20px;
    background-color: rgba(1, 255, 210, 0.15);
    /*box-shadow: 0px 4px 10px rgba(93, 59, 133, 0.3), 0px 2px 5px rgba(93, 59, 133, 0.2);*/
}
.card-body{
    padding: 10px;
}
.card-title{
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}
.card img{
    border-radius: 20px;
}
.buttons-content{
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 20px;
}
.buttons-content-stock{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.buttons{
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    border: 0px;
    border-radius: 999999px;
    background-color: rgba(255, 255, 255, 0.64);
    width: 40px;
    height: 40px;
}
.buttons:hover{
    text-decoration: none;
    border-radius: 999999px;
    background-color: black;
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
    color: white;
}

.buttons-sinstock{
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    border: 0px;
    border-radius: 9px;
    color: white;
    width: 100px;
    height: 30px;
    font-weight: bold;
}

.card:hover {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

.filtrar-title, .ordenar-title {
    color: #5d3b85;
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .products-container{
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }  
    .scroll-container {
        padding: 10px 20px 10px;
        gap: 12px;
        flex-direction: column;
        font-size: 14px;
    }
    .categories, .ordenar-select {
        width: 260px;
    }
    .filtrar-title, .ordenar-title {
        font-size: 15px;
    }
}