/* Fondo del header */

main{
    max-width: var(--max-width-container);
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
}
/* Estilos para la tabla */
.list-container{
    padding: 30px 0;
    width: 100%;
}
.list-table{
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 10px;
}
/* Texto cuando no hay elementos */
.no-items{
    text-align: center;
}
.list-table tr:hover td {
    background-color: #dedede;
}

.list-table th, .list-table td {
    padding: 10px;
    text-align: left;
    border-radius: 10px;
    background-color: #eee;
    border: none;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.list-table th {
    background-color: var(--color-main);
    color: var(--color-text-primary);
    font-weight: bold;
    text-transform: uppercase;
}
.list-table tr td:nth-child(1), .list-table tr td:nth-child(4){
    text-align: center;
}
/* Estilos para los botones de cantidad */
.quantity-btn {
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: transparent;
    color: #000;
    cursor: pointer;
    padding: 4px 10px;
}

/* Estilos para el botón de eliminar */
.delete-btn {
    background-color: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 18px;
    margin: auto;
}

.delete-btn:hover {
    color: #cc2f34;
}

/* Estilos para el botón de limpiar */
.clear-button {
    margin: auto;
    border: none;
    background-color: #ddd;
    color: #000;
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
.ask-button{
    margin: auto;
    border: none;
    background-color: var(--color-main);
    margin-top: 8px;
    font-size: 20px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--color-text-primary);
    cursor: pointer;
    text-decoration: none;
}
.login-cart-button{
    text-decoration: none;
    margin-top: 8px;
    color: #000;
    font-family: 16px;
    font-weight: bolder;
}

@media (width < 600px){
    .list-table{
       & td, th{
          width: fit-content;
          max-width: 25vw;
          font-size: 12px;
       }
    }
    .list-table th:nth-child(1), 
    .list-table td:nth-child(1), 
    .list-table th:nth-child(4), 
    .list-table td:nth-child(4) {
        width: 10%;
        max-width: 100px;
    }

    .list-table th:nth-child(2), 
    .list-table td:nth-child(2) {
        width: 15%;
        max-width: 150px;
    }
    tr > th:nth-child(2), tr > td:nth-child(2){
       display: none;
    }
}
