
    /* CSS cho popup notification */
.sale-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px; /* ← THÊM min-width */
    max-width: 380px;
    width: auto; /* ← Đổi thành auto */
    z-index: 9999;
    animation: slideIn 0.4s ease-out;
    cursor: pointer;
    transition: transform 0.2s;
    box-sizing: border-box; /* ← THÊM cái này */
}

/* Thêm CSS cho giá */
.sale-notification-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.sale-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sale-notification.hide {
    animation: slideOut 0.4s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.sale-notification img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sale-notification-content {
    flex: 1;
}

.sale-notification-product {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sale-notification-buyer {
    color: #666;
    font-size: 13px;
    margin-bottom: 2px;
}

.sale-notification-time {
    color: #999;
    font-size: 12px;
}

.sale-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.sale-notification-close:hover {
    color: #333;
}

/* Badge "Mới mua" */
.sale-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .sale-notification {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}