/* Стили блока отзывов-слайдера в стилистике сайта "Мир Спорта" */

.product-reviews-section {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 25px;
    margin-top: 30px;
    font-family: Arial, sans-serif;
    color: #333333;
}

.reviews-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 20px;
    gap: 15px;
}

.reviews-header h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: #222;
}

.reviews-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 16px;
    color: #cccccc;
}

.star.filled {
    color: #ffbc00; /* Брендовый желтый цвет звезд */
}

.rating-score {
    font-weight: bold;
    font-size: 16px;
}

.reviews-count {
    color: #777777;
    font-size: 13px;
}

/* Кнопки стрелок слайдера */
.reviews-slider-arrows {
    display: flex;
    gap: 6px;
}

.slider-arrow {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.slider-arrow:hover {
    background: #e31e24; /* Фирменный красный при наведении */
    color: #ffffff;
    border-color: #e31e24;
}

/* Контейнер и лента слайдера */
.reviews-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.reviews-track {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease-in-out;
}

/* Карточка отдельного отзыва в слайдере */
.review-card {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 15px;
    flex: 0 0 calc(33.333% - 10px); /* 3 отзыва на десктопе */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    transition: border-color 0.2s ease;
}

.review-card:hover {
    border-color: #d0d0d0;
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

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

.reviewer-avatar {
    width: 34px;
    height: 34px;
    background: #e31e24; /* Фирменный красный цвет */
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.reviewer-name {
    font-weight: bold;
    font-size: 13px;
    color: #222;
}

.review-date {
    font-size: 11px;
    color: #888888;
    margin-top: 1px;
}

.review-stars {
    display: flex;
    gap: 1px;
}

.review-stars .star {
    font-size: 13px;
}

.review-text {
    font-size: 13px;
    line-height: 1.45;
    color: #444444;
}

/* Адаптивность слайдера */
@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(50% - 8px); /* 2 отзыва на планшетах */
    }
}

@media (max-width: 768px) {
    .product-reviews-section {
        padding: 15px;
        margin-top: 20px;
    }
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .reviews-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .review-card {
        flex: 0 0 100%; /* 1 отзыв на мобильных устройствах */
    }
}
