/* ==============================================
   BANNER FLUTUANTE SUSPENSO - PRODUTOS SOB ENCOMENDA
   Alumni E-commerce
   ============================================== */

/* Banner Flutuante */
.banner-encomenda {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150px); /* começa fora da tela */
    max-width: 900px;
    width: 90%;
    background: linear-gradient(135deg, #8B0000, #6B0000); /* Vermelho escuro com melhor contraste */
    color: white;
    padding: 20px 50px 20px 25px; /* Mais espaço à direita para o botão X */
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    font-family: var(--font-family);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Classe ativa - Banner desce suavemente */
.banner-encomenda.mostrar {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    animation: float 3s ease-in-out infinite; /* efeito flutuante */
}

/* Classe de fechamento - Banner sobe */
.banner-encomenda.fechar {
    transform: translateX(-50%) translateY(-150px);
    opacity: 0;
}

/* Conteúdo do Banner */
.banner-encomenda-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
}

/* Ícone de Aviso */
.banner-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    flex-shrink: 0;
}

/* Texto do Banner */
.banner-texto {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    min-width: 250px;
    color: white; /* Garante que todo o texto seja branco */
}

/* Estilo para todo o texto forte dentro do banner */
.banner-texto strong {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: uppercase;
    color: white; /* Garante que o strong seja branco */
}

/* Destaque no Texto - CORRIGIDO PARA SER VISÍVEL */
.banner-destaque {
    background: rgba(255, 255, 255, 0.3);
    padding: 3px 12px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin: 0 4px;
    color: white; /* Texto branco para contraste */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Borda sutil para melhor definição */
}

/* Estilo específico para a parte "após a chegada do novo estoque" */
.banner-texto strong:last-child {
    background: rgba(255, 255, 0, 0.2); /* Fundo amarelo suave para destaque */
    padding: 2px 8px;
    border-radius: 6px;
    color: #FFF8DC; /* Amarelo claro para melhor legibilidade */
    text-decoration: none;
    border: 1px solid rgba(255, 255, 0, 0.4);
}

/* Botão Fechar */
.banner-fechar {
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
    font-family: var(--font-family);
}

.banner-fechar:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.15);
    border-color: white;
}

/* ===========================
   ANIMAÇÕES
   =========================== */

/* Animação de flutuação suave */
@keyframes float {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(128, 0, 0, 0.5);
        transform: translateX(-50%) translateY(0);
    }
    50% {
        box-shadow: 0 15px 50px rgba(128, 0, 0, 0.6);
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animação de pulsação no ícone */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

/* ===========================
   RESPONSIVIDADE
   =========================== */

/* Tablets */
@media (max-width: 768px) {
    .banner-encomenda {
        top: 15px;
        width: 92%;
        padding: 18px 45px 18px 20px;
        border-radius: 12px;
    }

    .banner-encomenda-content {
        gap: 12px;
    }

    .banner-texto {
        font-size: 0.95rem;
        text-align: left;
        min-width: auto;
        color: white; /* Mantém branco no mobile */
    }

    .banner-texto strong:last-child {
        padding: 1px 6px;
        font-size: 0.9rem;
    }

    .banner-icon {
        font-size: 1.6rem;
    }

    .banner-fechar {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
        right: 8px;
        top: 8px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .banner-encomenda {
        width: 95%;
        padding: 15px 40px 15px 15px;
    }

    .banner-texto {
        font-size: 0.85rem;
        color: white; /* Mantém branco no mobile */
    }

    .banner-texto strong:last-child {
        padding: 1px 4px;
        font-size: 0.8rem;
    }

    .banner-icon {
        font-size: 1.4rem;
    }

    .banner-destaque {
        display: inline-block;
        margin: 3px 2px;
        padding: 2px 8px;
        color: white; /* Mantém branco no mobile */
    }
}