/* includes/latest_reviews_block.php — винесено з inline <style> 20260908_2104 */
/* Стилі для блоку відгуків - BLANK.IN.UA */
.latest-reviews-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.latest-reviews-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.reviews-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.view-all-reviews-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.view-all-reviews-link:hover {
    color: #666;
    text-decoration: none;
}

/* Reviews Grid - 2x2 на ПК */
.latest-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.latest-review-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
}

.latest-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #000000;
}

.latest-review-card a {
    position: relative;
    z-index: 2;
}

/* Product Section */
.latest-review-product {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
}

/* Product Image */
.latest-review-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.latest-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.latest-review-image img:hover {
    transform: scale(1.05);
}

/* Product Info */
.latest-review-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.latest-review-info-left {
    flex: 1;
}

.latest-review-product-name {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 6px;
    line-height: 1.3;
}

.latest-review-product-name:hover {
    color: #666;
    text-decoration: none;
}

.latest-review-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.latest-review-current-price {
    color: #000000;
    font-weight: 600;
}

.latest-review-old-price {
    color: #666666;
    text-decoration: line-through;
    font-size: 13px;
}

.latest-review-info-right {
    text-align: right;
}

.latest-review-date {
    font-size: 12px;
    color: #666666;
    white-space: nowrap;
}

/* Author Section */
.latest-review-author {
    padding: 0 4px;
}

.latest-review-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.latest-review-author-name {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.latest-review-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* SVG зірочки */
.latest-review-rating .latest-review-star {
    width: 16px;
    height: 16px;
    color: #ddd;
    transition: all 0.3s ease;
}

.latest-review-rating .latest-review-star.filled {
    color: #ffd700;
}

/* Review Text */
.latest-review-text {
    color: #333333;
    line-height: 1.5;
    font-size: 14px;
    padding: 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .latest-reviews-section {
        padding: 30px 0;
    }

    .reviews-section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .reviews-section-title {
        font-size: 1.5rem;
    }
    
    .latest-reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .latest-review-card {
        padding: 12px;
    }
    
    .latest-review-product {
        padding: 10px;
        gap: 10px;
    }
    
    .latest-review-details {
        flex-direction: column;
        gap: 6px;
    }
    
    .latest-review-info-right {
        text-align: left;
    }
    
    .latest-review-image {
        width: 50px;
        height: 50px;
    }
    
    .latest-review-author-info {
        gap: 8px;
    }
    
    .latest-review-author-name {
        font-size: 15px;
    }
    
    .latest-review-product-name {
        font-size: 16px;
    }
    
    .latest-review-text {
        font-size: 15px;
    }

    /* Відключаємо анімації на мобільних */
    .latest-review-card {
        transition: none !important;
        transform: none !important;
    }

    .latest-review-card:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }

    .latest-review-image img {
        transition: none !important;
    }

    .latest-review-image img:hover {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .latest-reviews-section {
        padding: 20px 0;
    }
    
    .reviews-section-title {
        font-size: 1.3rem;
    }
    
    .latest-review-card {
        padding: 10px;
    }
    
    .latest-review-product-name {
        font-size: 16px;
    }
    
    .latest-review-text {
        font-size: 15px;
        -webkit-line-clamp: 4;
    }
}
