/* Основные стили для списка товаров с отзывами */
.products-reviews-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-review-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.product-review-header {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
}

.product-image {
    flex: 0 0 100px;
    margin-right: 20px;
}

.product-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    flex: 1;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.product-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-link:hover {
    color: #0073aa;
}

.product-rating-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-number {
    font-weight: bold;
    color: #ffb400;
    font-size: 16px;
}

.reviews-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.reviews-count svg {
    color: #0073aa;
}

.view-reviews-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.view-reviews-btn:hover {
    background: #005a87;
    color: white;
}

/* Стили для детальных отзывов */
.product-detailed-reviews {
    margin-top: 30px;
}

.detailed-review {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.review-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-date {
    color: #666;
    font-size: 13px;
}

.review-content {
    line-height: 1.6;
    color: #333;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .products-reviews-list {
        padding: 10px;
    }
    
    .product-review-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .product-image {
        flex: 0 0 80px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .product-image img {
        width: 80px;
        height: 80px;
    }
    
    .product-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .product-rating-info {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .average-rating {
        flex-wrap: wrap;
    }
    
    .rating-number {
        font-size: 14px;
    }
    
    .reviews-count {
        font-size: 13px;
    }
    
    .view-reviews-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Адаптация для детальных отзывов на мобильных */
    .product-detailed-reviews .detailed-review {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-author {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .product-review-header {
        padding: 12px;
    }
    
    .product-image {
        flex: 0 0 60px;
    }
    
    .product-image img {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 15px;
    }
    
    .view-reviews-btn {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    /* Скрываем иконку стрелки на очень маленьких экранах */
    @media (max-width: 360px) {
        .view-reviews-btn svg {
            display: none;
        }
    }
}

/* Анимация для лучшего UX */
.product-review-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для звёздного рейтинга WooCommerce */
.star-rating {
    color: #ffb400;
    font-size: 16px;
    line-height: 1;
}

.star-rating span:before {
    color: #ffb400;
}

/* Улучшаем кликабельную область на мобильных */
@media (max-width: 768px) {
    .product-review-header {
        position: relative;
    }
    
    .product-review-header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
    
    .product-link, .view-reviews-btn {
        position: relative;
        z-index: 2;
    }
}