/* Carrinho Flutuante */
.ss-cart-icon {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 999999 !important;
    background: linear-gradient(135deg, #6f81ff 0%, #4a5fd9 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(111, 129, 255, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    /* Garantir que apareça acima de tudo */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.ss-cart-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 129, 255, 0.6);
}

.ss-cart-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.ss-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex !important; /* Forçar exibição - corrige bug de scroll */
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
    z-index: 9999; /* Garantir visibilidade acima de tudo */
    opacity: 1 !important; /* Forçar opacidade */
    visibility: visible !important; /* Forçar visibilidade */
    pointer-events: none; /* Não interferir nos cliques */
}

/* Esconder contador apenas quando vazio (estilo inline) */
.ss-cart-count[style*="display: none"] {
    display: none !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .ss-cart-icon {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .ss-cart-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .ss-cart-count {
        font-size: 11px;
        min-width: 20px;
        height: 20px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
