/* ===== Star selector ===== */
.star-selector {
    display: flex;
    gap: 4px;
}

.star-selector__star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    transition: color var(--transition-fast, 150ms ease);
    line-height: 0;
}

.star-selector__star svg {
    width: 24px;
    height: 24px;
    display: block;
}

.star-selector__star.active,
.star-selector__star.hovered,
.star-selector__star:focus-visible {
    color: #fdbe3c;
    outline: none;
}

/* ===== Review form ===== */
.review-form-wrap {
    margin-top: 2rem;
}

.review-form-wrap h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-field__hint {
    color: var(--text-muted);
    font-weight: 400;
}

.form-field input,
.form-field textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 10px 14px;
    font: inherit;
    transition: border-color var(--transition-fast, 150ms ease);
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #f47176;
}

.form-error {
    color: #e73a36;
    font-size: 14px;
    margin-top: -4px;
}

.review-form__success {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5dba47;
    padding: 12px 0;
}

.review-form__success[hidden] {
    display: none !important;
}

.review-form__success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== Review cards (product detail) ===== */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.review-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

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

.review-card__author {
    font-weight: 600;
    font-size: 14px;
}

.review-card__stars {
    display: flex;
    gap: 2px;
}

.review-card__star {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.review-card__star.filled {
    color: #fdbe3c;
}

.review-card__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.reviews-empty {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 1rem;
}
