/* ================================
   MODAL DO LIVRO
================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.modal-content {
    position: relative;
    max-width: 900px;
    margin: 5vh auto;
    padding: 0;
}

.modal-body {
    display: flex;
    gap: 30px;
}

/* Capa */
.modal-capa img {
    width: 300px;
    height: 420px;
    object-fit: cover;
    border-radius: 14px 0 0 14px;
}

/* Info */
.modal-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-strong);
    text-shadow:
        0 0 14px var(--hero-shadow-1),
        0 0 30px var(--hero-shadow-2);
}

.modal-info p {
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Ações */
.modal-acoes {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-preco {
    font-size: 1.4rem;
    color: var(--text-strong);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-soft);
}

/* MOBILE */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-capa img {
        width: 100%;
        height: 320px;
        border-radius: 14px 14px 0 0;
    }
}
