/* ============================================================
   POP-UP — CATÁLOGO DE PRODUTOS
   Trigger via JS (scroll 50 % + sessionStorage).
   ============================================================ */

.lubmix-popup-catalogo {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lubmix-popup-catalogo.is-open {
    display: flex;
}

/* Overlay escuro */
.lubmix-popup-catalogo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

/* Caixa do popup */
.lubmix-popup-catalogo__box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 36px 36px 32px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: lubmix-popup-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    text-align: center;
}

@keyframes lubmix-popup-in {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Botão fechar */
.lubmix-popup-catalogo__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.lubmix-popup-catalogo__close:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Título */
.lubmix-popup-catalogo__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lubmix-primary, #003357);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

/* Imagem da capa — sem fundo, só a imagem */
.lubmix-popup-catalogo__cover {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lubmix-popup-catalogo__cover-img {
    max-height: 360px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.20);
}

/* Botões */
.lubmix-popup-catalogo__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lubmix-popup-catalogo__btn {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    cursor: pointer;
    white-space: nowrap;
}

.lubmix-popup-catalogo__btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.lubmix-popup-catalogo__btn--primary {
    background: var(--lubmix-primary, #003357);
    color: #fff;
}

.lubmix-popup-catalogo__btn--secondary {
    background: var(--lubmix-secondary, #f59e0b);
    color: #fff;
}

/* Mobile */
@media (max-width: 480px) {
    .lubmix-popup-catalogo__box {
        padding: 32px 20px 22px;
        border-radius: 12px;
    }

    .lubmix-popup-catalogo__actions {
        flex-direction: column;
    }

    .lubmix-popup-catalogo__btn {
        width: 100%;
        min-width: unset;
    }
}
