/* ==============================================
   PRO REVIEW COMMENTS - CSS HOÀN CHỈNH, GỌN GÀNG (FONT 14-20px)
   ============================================== */

/* Container chính */
.prc-reviews-container {
    margin: 30px 0;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf8 100%);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e6f0e9;
}

/* Tiêu đề phần đánh giá */
.prc-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a5c38;
    margin: 0 0 18px;
    text-align: center;
    position: relative;
}
.prc-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #4ade80;
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Overview rating tổng */
.prc-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding: 14px;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px dashed #86efac;
}
.prc-avg {
    font-size: 20px;
    font-weight: 800;
    color: #15803d;
    line-height: 1;
}
.prc-max {
    font-size: 16px;
    color: #4b5563;
    margin-left: 6px;
}
.prc-stars {
    font-size: 18px;
}
.prc-stars i {
    color: #fbbf24;
    margin: 0 2px;
}
.prc-total {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

/* Thông báo chưa có đánh giá */
.prc-no-review {
    text-align: center;
    font-size: 15px;
    color: #6b7280;
    font-style: italic;
    margin: 14px 0 24px;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 8px;
}

/* FORM BÌNH LUẬN + ĐÁNH GIÁ - CHUẨN, GỌN GÀNG */
.comment-respond {
    margin-top: 24px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
}

.comment-reply-title {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 18px;
    font-weight: 600;
}

.comment-form {
    display: grid;
    gap: 16px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 16px;
    display: block;
}

/* INPUT, TEXTAREA, SELECT - CHUẨN, GỌN */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
#rating {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus,
#rating:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
    background: #ffffff;
}

/* Textarea */
.comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

/* Select đánh giá */
.comment-form-rating {
    margin: 12px 0;
}

#rating {
    max-width: 300px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px;
    cursor: pointer;
    padding-right: 36px;
}

/* Nút submit */
.form-submit {
    margin-top: 18px;
    text-align: center;
}

#submit {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
}

#submit:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

/* Responsive cho form */
@media (max-width: 768px) {
    .comment-respond {
        padding: 16px;
    }
    .comment-reply-title {
        font-size: 17px;
    }
    #rating {
        max-width: 100%;
    }
    .comment-form input,
    .comment-form textarea,
    #rating {
        font-size: 15px;
        padding: 11px 14px;
    }
}

/* ==============================================
   DANH SÁCH ĐÁNH GIÁ - FIX HOÀN CHỈNH, GỌN GÀNG, ĐẸP MẮT
   ============================================== */

.prc-commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.prc-comment {
    margin-bottom: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e6f0e9;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.prc-comment:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #a7f3d0;
}

.prc-comment-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.prc-avatar {
    flex-shrink: 0;
}

.prc-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e6f0e9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.prc-comment:hover .prc-avatar img {
    transform: scale(1.1);
}

.prc-content {
    flex: 1;
    min-width: 0; /* tránh tràn text */
}

.prc-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.prc-author {
    font-weight: 700;
    font-size: 18px;
    color: #1a5c38;
    margin: 0;
}

.prc-date {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    white-space: nowrap;
}

.prc-rating {
    margin-bottom: 8px;
}

.prc-rating i {
    font-size: 18px;
    color: #fbbf24;
    margin-right: 3px;
}

.prc-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 10px 0;
    word-break: break-word; /* tránh text dài tràn */
}

.prc-text p {
    margin: 0 0 10px 0;
}

.prc-text p:last-child {
    margin-bottom: 0;
}

/* Link trả lời */
.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #15803d;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 30px;
    background: #f0fdf4;
    transition: all 0.25s ease;
}

.comment-reply-link:hover {
    background: #dcfce7;
    color: #065f46;
    transform: translateX(4px);
}

.comment-reply-link::before {
    content: "\f112";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .prc-comment {
        padding: 14px;
    }
    .prc-comment-body {
        flex-direction: column;
        gap: 12px;
    }
    .prc-avatar img {
        width: 42px;
        height: 42px;
    }
    .prc-author {
        font-size: 17px;
    }
    .prc-text {
        font-size: 15px;
    }
    .prc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}