/* Estilos para la página del carrito */

#cart {
    padding: 20px 10px; /* Reducir el padding para pantallas pequeñas */
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 20px auto;
}

#cart table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

#cart table thead th {
    padding: 10px;
    font-size: 12px; /* Reducir el tamaño de fuente */
}

#cart table tbody td {
    padding: 10px;
    font-size: 12px; /* Reducir el tamaño de fuente */
}

#cart table tbody td img {
    width: 40px; /* Reducir el tamaño de la imagen */
}

#cart table tbody td button {
    padding: 6px 10px; /* Reducir el padding del botón */
}

#cart table tfoot td {
    padding: 10px;
    font-size: 14px; /* Reducir el tamaño de fuente */
}

/* Botón de volver a la tienda */
#regresar-a-la-tienda {
    display: flex;
    justify-content: center; /* Centrar el botón en pantallas pequeñas */
    margin-top: 10px;
    padding-left: 0; /* Eliminar el padding izquierdo */
}

#regresar-a-la-tienda button {
    padding: 10px 20px; /* Ajustar el padding del botón */
    font-size: 14px; /* Reducir el tamaño de fuente */
}

/* Media query para pantallas pequeñas */
@media (max-width: 600px) {
    #cart {
        padding: 10px 5px;
    }

    #cart table thead th,
    #cart table tbody td,
    #cart table tfoot td {
        font-size: 10px; /* Ajustar el tamaño de fuente para pantallas muy pequeñas */
    }

    #cart table tbody td img {
        width: 30px; /* Ajustar el tamaño de la imagen */
    }

    #regresar-a-la-tienda button {
        padding: 8px 16px;
        font-size: 12px;
    }
}
