/* ── Reviews Section ── */
.product-reviews-section {
    max-width: 720px;
}

/* Summary */
.reviews-summary {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.reviews-average {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.avg-number {
    font-size: 2em;
    font-weight: 700;
    line-height: 1;
}

.reviews-count {
    color: #777;
    font-size: 0.9em;
}

/* Stars */
.star {
    color: #ddd;
    font-size: 1.2em;
}

.star.filled {
    color: #ffb900;
}

/* Reviews List */
.reviews-list {
    margin-bottom: 32px;
}

.single-review {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.reviewer-name {
    font-size: 0.95em;
}

.review-date {
    color: #999;
    font-size: 0.85em;
}

.review-stars {
    margin-bottom: 6px;
}

.review-text {
    color: #444;
    line-height: 1.5;
}

/* Form */
.review-form-wrapper {
    margin-top: 24px;
}

.review-form-wrapper h3 {
    margin-bottom: 16px;
}

.review-form .form-row {
    margin-bottom: 14px;
}

.review-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
    box-sizing: border-box;
}

.review-form textarea {
    resize: vertical;
}

.review-form .required {
    color: #e2401c;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.star-rating-input .star-select {
    font-size: 1.6em;
    color: #ddd;
    transition: color 0.15s;
    user-select: none;
}

.star-rating-input .star-select.hovered,
.star-rating-input .star-select.selected {
    color: #ffb900;
}

/* Anti-spam checkbox */
.review-human-check {
    margin: 12px 0;
}

.review-human-check label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

/* Submit button */
.review-form button[type="submit"] {
    padding: 10px 28px;
    font-size: 1em;
    cursor: pointer;
}

/* Messages */
.review-form-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.95em;
}

.review-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.review-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
