/* --- Общие стили страницы --- */
body {
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    min-height: 100vh;
    margin: 0;
}

.review-container {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 480px;
    width: 90%;
}

/* --- Блок продукта (картинка + описание) --- */
.product-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.product-image {
    max-width: 150px;
    width: 100%;
    border-radius: 12px;
}

.product-info {
    flex: 1;
    text-align: left;
}

.product-info h1 {
    margin: 0 0 10px;
    font-size: 22px;
}

.product-info p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* --- Звёзды для формы --- */
.stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin-bottom: 20px;
}

.stars input {
    display: none;
}

.stars label {
    font-size: 36px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    margin: 0 2px;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
    color: gold;
    transform: scale(1.2);
}

/* --- Текстовое поле --- */
textarea {
    width: 100%;
    height: 100px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 12px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
}

/* --- Поле имени --- */
input[name="author"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* --- Кнопка --- */
button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #f4b400;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

button:hover {
    background: #e3a100;
    transform: scale(1.02);
}

/* --- Сообщения --- */
.message {
    margin-bottom: 15px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.message.success {
    background: #e6f4ea;
    color: #2e7d32;
}

.message.error {
    background: #fdecea;
    color: #c62828;
}

/* --- Список отзывов --- */
.reviews-list {
    margin-top: 30px;
    text-align: left;
}

/* --- Каждый отзыв --- */
.review-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 4px solid #f4b400;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 600;
}

.review-header .review-author {
    color: #333;
}

.review-header time {
    font-size: 12px;
    color: #777;
}

.review-item .stars-inline {
    color: gold;
    font-size: 20px;
    margin-bottom: 8px;
}

.review-item .review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}
