.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.modal h2,
.modal p {
    color: black;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 90%; /* Ajusta el ancho en móviles */
    max-width: 500px; /* Mantiene un tamaño máximo en pantallas grandes */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cart::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f07a"; /* Icono de carrito */
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.close:hover {
    color: red;
}

.modal-buttons {
    display: flex;
    flex-direction: column; /* Alinea los botones en columna en móviles */
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-top: 5px;
    margin-right: 50px;
}

.btn {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #ed1c24;
    color: white;
    transition: 0.3s;
    width: 80%; /* Ajusta el ancho del botón en móviles */
    max-width: 200px;
    text-align: center;
}

.btn:hover {
    background-color: #c4161e;
}

@media (min-width: 600px) {
    .modal-buttons {
        flex-direction: row; /* En pantallas más grandes, los botones estarán en fila */
    }
    .btn {
        width: auto;
    }
}
