/* Custom styles for productDetails (notifications + reviews) */
.notification {
    position: fixed;
    top: 20px;
    right: 40%;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease-in-out;
    max-width: 400px;
}

.notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Reviews styling */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.review-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 4px 10px rgba(16, 24, 40, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.review-user {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    color: #92400e;
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 700;
}

.review-rating .stars {
    color: #f59e0b;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.review-comment {
    color: #374151;
    font-size: 0.98rem;
    line-height: 1.4;
    padding: 8px 6px;
    background: rgba(59,130,246,0.03);
    border-radius: 6px;
}

.review-meta {
    color: #6b7280;
    font-size: 0.85rem;
    text-align: right;
}

.no-reviews {
    grid-column: 1 / -1;
    padding: 12px;
    text-align: center;
    color: #6b7280;
}
