/* static/components/checkout-bar.css */

.checkout-bar {
    position: fixed;
    /* Ajustado para 90px para flutuar ACIMA da navbar inferior */
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px; /* Não deixa ficar gigante em desktop */
    
    background-color: var(--verde-floresta); /* Fundo sólido da marca */
    color: #fff;
    
    border-radius: 50px; /* Formato de pílula bem moderno */
    padding: 8px 8px 8px 24px; /* Padding menor na direita p/ o botão encostar */
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    box-shadow: var(--shadow-lg); /* Sombra alta para destacar do conteúdo */
    z-index: 1000;
    
    /* Animação suave ao aparecer */
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Lado Esquerdo (Texto) */
.bar-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

#checkout-bar-total {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

#checkout-bar-count {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8); /* Branco com transparência suave */
    font-weight: 600;
}

/* Botão de Ação (Ver Sacola) */
.checkout-btn {
    background-color: var(--caju-orange);
    color: #fff;
    border: none;
    
    /* Tamanho e Forma */
    height: 44px;
    padding: 0 24px;
    border-radius: 40px; /* Pílula interna */
    
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s, background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #ff7b29;
    transform: scale(1.05);
}

.checkout-btn:active {
    transform: scale(0.95);
}

/* Estado Oculto (usado via JS quando sacola vazia) */
.checkout-bar[style*="display: none"] {
    animation: none;
    pointer-events: none;
}

@keyframes slideUp {
    from { 
        transform: translate(-50%, 100%); 
        opacity: 0; 
    }
    to { 
        transform: translate(-50%, 0); 
        opacity: 1; 
    }
}

/* Ajuste Mobile: Se a tela for muito pequena, ajusta levemente */
@media (max-width: 360px) {
    .checkout-bar {
        /* Garante que fique acima da navbar mesmo em telas pequenas */
        bottom: 85px; 
        width: 94%;
        padding-left: 20px;
    }
}