/* Purchase Notification Popup - Premium Style */
.purchase-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 20px;
    max-width: 380px;
    width: calc(100% - 60px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-150%);
    opacity: 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.purchase-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.purchase-notification:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.25);
    border-color: var(--primary-blue);
}

.purchase-notification-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
}

.purchase-notification-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purchase-notification-content {
    flex: 1;
    overflow: hidden;
}

.purchase-notification-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.purchase-notification-badge i {
    font-size: 10px;
}

.purchase-notification-text {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-notification-time {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 500;
}

.purchase-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-gray);
    transition: all 0.3s;
    opacity: 0;
}

.purchase-notification:hover .purchase-notification-close {
    opacity: 1;
}

.purchase-notification-close:hover {
    background: #dc2626;
    color: white;
    transform: rotate(90deg);
}

/* Animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-150%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-150%);
        opacity: 0;
    }
}

.purchase-notification.slide-in {
    animation: slideInLeft 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.purchase-notification.slide-out {
    animation: slideOutLeft 0.5s ease-in-out;
}

/* Pulse effect on image */
@keyframes imagePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.purchase-notification.show .purchase-notification-image {
    animation: imagePulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .purchase-notification {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        width: calc(100% - 40px);
        padding: 16px;
    }
    
    .purchase-notification-image {
        width: 60px;
        height: 60px;
    }
    
    .purchase-notification-text {
        font-size: 13px;
    }
    
    .purchase-notification-time {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .purchase-notification {
        bottom: 15px;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
    }
}
