/* 
   SALES NOTIFICATION POPUP - PREMIUM BLACK & GREEN PULSE
   - Design: Minimalista, Otimizado para Mobile, Moderno
   - Cores: Fundo Preto, Detalhes em Vermelho, Pulso Verde na Imagem
   - Inspirado em: newcapacetes.shop
*/

#snp-notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    pointer-events: none;
}

.snp-notification {
    display: flex;
    align-items: center;
    background: #000000; /* Fundo Preto Puro */
    border: 1px solid #333333; /* Borda sutil */
    border-radius: 10px;
    padding: 12px 14px;
    width: 320px; /* Largura otimizada para desktop */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
    pointer-events: auto;
    animation: snpSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
}

/* Detalhe lateral em vermelho */
.snp-notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ff0000;
    border-radius: 10px 0 0 10px;
}

.snp-notification.removing {
    animation: snpSlideOut 0.4s ease forwards;
}

/* Imagem do Produto com Pulso Verde */
.snp-notification-image {
    width: 56px; /* Tamanho otimizado */
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid #222;
    background: #111;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    animation: snpImagePulseGreen 2s infinite; /* Animação de pulso verde */
}

/* Conteúdo */
.snp-notification-content {
    flex: 1;
    min-width: 0;
}

.snp-notification-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Badge de Verificado em Verde */
.snp-notification-name::after {
    content: '✓ Verificado';
    font-size: 9px;
    background: #22c55e;
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.snp-notification-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #a0a0a0;
    margin: 0 0 5px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.snp-notification-text strong {
    color: #ff0000; /* Nome do produto em vermelho */
    font-weight: 700;
}

/* Meta Info (Cidade e Tempo) */
.snp-notification-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10px;
    color: #666666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animações */
@keyframes snpSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes snpSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

/* Pulso Verde Vibrante na Imagem */
@keyframes snpImagePulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Efeito ao passar o mouse */
.snp-notification:hover {
    border-color: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15);
}

/* --- MOBILE OTIMIZADO --- */
@media (max-width: 768px) {
    #snp-notification-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .snp-notification {
        width: calc(100% - 20px);
        max-width: 100%;
        padding: 10px 12px;
    }

    .snp-notification-image {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .snp-notification-name {
        font-size: 12px;
        gap: 4px;
    }

    .snp-notification-name::after {
        font-size: 8px;
        padding: 1px 5px;
    }

    .snp-notification-text {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .snp-notification-meta {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    #snp-notification-container {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .snp-notification {
        width: calc(100% - 16px);
        padding: 8px 10px;
        border-radius: 8px;
    }

    .snp-notification-image {
        width: 48px;
        height: 48px;
        margin-right: 8px;
        border-radius: 5px;
    }

    .snp-notification-name {
        font-size: 11px;
    }

    .snp-notification-text {
        font-size: 10px;
    }
}
