/* Customer Opinions Module - Styles */

.customer-opinions-module {
    padding: 60px 0;
    background: #ffffff;
    overflow: hidden;
}

.opinions-header {
    text-align: center;
    margin-bottom: 50px;
}

.opinions-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.opinions-divider {
    width: 80px;
    height: 4px;
    margin: 0 auto 15px;
    border-radius: 2px;
}

.opinions-source {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.opinions-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.opinions-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 20px 0;
}

.opinions-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.opinion-card {
    flex: 0 0 100%;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
}

.opinion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.opinion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.product-model {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
}

.rating-section {
    text-align: right;
}

.rating-number {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stars-container {
    display: flex;
    gap: 3px;
    justify-content: flex-end;
    margin-bottom: 5px;
}

.star {
    font-size: 20px;
    line-height: 1;
}

.star.filled {
    opacity: 1;
}

.star.half {
    opacity: 0.5;
}

.star.empty {
    color: #ddd;
}

.total-reviews {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.comfort-info {
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.opinion-photos-section {
    margin-bottom: 25px;
}

.photos-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
}

.opinion-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-rating {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.photo-rating .star {
    color: #ffd700;
    font-size: 14px;
}

.opinion-text {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.review-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}

.opinion-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background: #f8f9fa;
    border-color: #333;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: -25px;
}

.slider-btn.next {
    right: -25px;
}

.slider-btn svg {
    color: #333;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active,
.dot:hover {
    background: #333;
    transform: scale(1.3);
}

/* Responsive Design */
@media (min-width: 768px) {
    .opinion-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (min-width: 992px) {
    .opinion-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 767px) {
    .opinions-title {
        font-size: 24px;
    }

    .opinion-card {
        padding: 20px;
    }

    .opinion-header {
        flex-direction: column;
    }

    .rating-section {
        text-align: left;
    }

    .stars-container {
        justify-content: flex-start;
    }

    .product-model {
        font-size: 18px;
    }

    .rating-number {
        font-size: 36px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn.prev {
        left: 0;
    }

    .slider-btn.next {
        right: 0;
    }

    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth scroll animation */
@media (prefers-reduced-motion: reduce) {
    .opinions-slider {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .slider-btn,
    .slider-dots {
        display: none;
    }

    .opinion-card {
        page-break-inside: avoid;
    }
}
