/* ==========================================
   สไตล์เฉพาะหน้ารีวิว (reviews/reviews.css)
   ========================================== */

.custom-review-sec {
    background-color: transparent;
    padding: 20px 0;
    box-shadow: none;
    margin-top: 0;
}

.review-summary-card {
    background: var(--card-bg);
    border: 1px solid var(--cream-accent);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    box-shadow: var(--shadow);
}

.summary-score {
    text-align: center;
    min-width: 140px;
}

.big-rating {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-brown);
    line-height: 1;
}

.stars {
    color: #FFB800;
    font-size: 20px;
    margin: 6px 0;
}

.total-reviews {
    font-size: 13px;
    color: var(--text-muted);
}

.summary-bars {
    flex-grow: 1;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 8px;
}

.bar-bg {
    background: #EAE3D2;
    height: 10px;
    border-radius: 5px;
    flex-grow: 1;
    overflow: hidden;
}

.bar-fill {
    background: var(--secondary-brown);
    height: 100%;
    border-radius: 5px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--cream-accent);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.user-name {
    font-weight: 600;
    color: var(--primary-brown);
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-img-wrap {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 0;
    background-color: var(--bg-light);
}

.review-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag {
    font-size: 12px;
    color: var(--secondary-brown);
    font-weight: 600;
    margin-bottom: 6px;
}

.review-comment {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .review-summary-card {
        flex-direction: column;
        text-align: center;
    }
    
    .summary-bars {
        width: 100%;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}