/* =========================================================================
   VIDOWEB RATINGS — FRONTEND STYLES
   ========================================================================= */

/* ---- Reset chung ---- */
.vw-product-reviews *,
.vw-post-comments * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- Wrapper chung ---- */
.vw-product-reviews,
.vw-post-comments {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 30px;
}

.vw-post-comments {
    margin-top: 30px;
}

.vw-section-wrap {
    max-width: 100%;
}

/* =========================================================================
   AVATAR
   ========================================================================= */
.vw-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* =========================================================================
   SAO ĐÁNH GIÁ
   ========================================================================= */
.vw-stars {
    display: inline-flex;
    gap: 2px;
}

.vw-star {
    font-size: 13px;
}

.vw-star.filled {
    color: #f59e0b;
}

.vw-star.empty {
    color: #cbd5e1;
}

/* ---- Sao trong product box (loop) — hiển thị trên giá ---- */
.vw-loop-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 6px;
    line-height: 1;
}

.vw-loop-stars .vw-stars {
    gap: 1px;
}

.vw-loop-stars .vw-star {
    font-size: 12px;
}

.vw-loop-stars-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* =========================================================================
   EMPTY STATE (DÙNG CHUNG CHO CẢ 2)
   ========================================================================= */
.vw-empty-state {
    background: #f0f5ff;
    border: 2px dashed #c7d7f5;
    border-radius: 16px;
    padding: 56px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.vw-empty-icon {
    width: 72px;
    height: 72px;
    background: #dde8fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #7ea8d8;
    margin-bottom: 4px;
}

.vw-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.vw-empty-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 360px;
    line-height: 1.6;
}

/* =========================================================================
   PRODUCT REVIEWS — TỔNG QUAN (SUMMARY BOX)
   ========================================================================= */
.vw-summary-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background: #F7F9FE;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.vw-summary-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-right: 1px solid #f1f5f9;
    padding-right: 28px;
}

.vw-summary-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.vw-score {
    font-size: 56px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.vw-score span {
    font-size: 22px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 2px;
}

.vw-summary-stars .vw-star {
    font-size: 20px;
}

.vw-summary-count {
    font-size: 12px;
    color: #64748b;
}

/* Progress bars */
.vw-summary-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.vw-dist-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vw-dist-label {
    font-size: 13px;
    color: #475569;
    width: 42px;
    flex-shrink: 0;
}

.vw-dist-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.vw-dist-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 99px;
    transition: width 0.6s ease;
}

.vw-dist-count {
    font-size: 13px;
    color: #64748b;
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}

/* =========================================================================
   PRODUCT REVIEW CARD
   ========================================================================= */
.vw-review-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .03);
    transition: box-shadow 0.2s;
    background-color: #F7F9FE;
}

.vw-review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
}

.vw-review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.vw-review-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vw-review-author {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.vw-review-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vw-review-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.4px;
}

.vw-review-body {
    font-size: 15px;
    color: #334155;
    line-height: 1.65;
}

/* =========================================================================
   POST COMMENTS — HEADER
   ========================================================================= */
.vw-comments-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 16px;
}

.vw-comments-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.vw-comments-count {
    font-size: 14px;
    color: #64748b;
    margin-top: 6px;
}

/* =========================================================================
   POST COMMENT CARD
   ========================================================================= */
.vw-comment-card {
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
    border: 1px solid #e8edf5;
    background-color: #F7F9FE;
}

.vw-comment-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

.vw-comment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.vw-comment-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vw-comment-author {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.vw-comment-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.vw-comment-body {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
}

/* =========================================================================
   NÚT XEM THÊM
   ========================================================================= */
.vw-load-more-wrap {
    text-align: center;
    margin: 15px 0;
}

.vw-btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0px 24px;
    background: transparent;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: math-auto;
}

.vw-btn-load-more:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff4ff;
}

.vw-btn-load-more.loading {
    pointer-events: none;
    opacity: 0.6;
}

.vw-btn-load-more .fa-chevron-down {
    transition: transform 0.3s;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 640px) {
    .vw-summary-wrap {
        grid-template-columns: 1fr;
    }

    .vw-summary-left {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .vw-comments-header {
        flex-direction: column;
    }

    .vw-comments-title {
        font-size: 20px;
    }
}