/* Product Reviews Slider Styles */
.product-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.review-slide {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
}

.review-slide:hover {
    transform: translateY(-5px);
}

.review-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
}

.product-image {
    flex: 0 0 200px;
    margin-right: 40px;
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.review-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;

}

.review-description {
    margin-bottom: 15px;
    width : 60%;
    max-width: 600px;
}

.review-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: black;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; 
    text-overflow: ellipsis;
    overflow: hidden;
    width : 100%;
}

.review-rating {
    margin-bottom: 10px;
}

.review-rating .star {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-right: 3px;
}

.review-rating .star.filled {
    color: #1b1f19c7;
}

.review-meta {
    margin-top: auto;
}

.reviewer-info {
    margin-bottom: 10px;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verified-badge {
    background: #27ae60;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 500;
}

.review-date {
    font-size: 0.85rem;
    color: #95a5a6;
    margin: 0;
}

.product-name {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0;
}

.product-name a {
    color: #4ecdc4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #45b7aa;
    text-decoration: underline;
}

/* Swiper Navigation Styles */
.swiper-button-next,
.swiper-button-prev {
    width: 35px !important;
    height: 35px !important;
    padding:10px;
    border-radius: 100% !important;
    background-color: #aef4dda1;
    transition: all 0.3s ease;
    margin : 0 10px !important;
    position: relative !important;
    left : unset !important;
    right : unset !important;
    margin-top: unset !important;
}

.swiper-nav-btns{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin : 10px 0;
}



.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 0.9rem !important;
    font-weight: bold;
    color: #3f6357 !important;
}



/* Swiper Pagination Styles */
.swiper-pagination {
    position: static;
    margin-top: 0;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #aef4dd77;
    opacity: 0.7;
    margin: 0 5px;
    transition: all 0.3s ease;
}



/* Responsive Design */
@media (max-width: 768px) {
    .review-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        min-height: auto;
    }
    
    .product-image {
        flex: none;
        margin: 0 0 20px 0;
        width: 150px;
        align-self: center;
    }
    
    .product-image img {
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .review-description{
        width: 100%;
    
    }
    .review-description p {
        font-size: 1rem;
    }
    
    .reviewer-name {
        flex-direction: column;
        gap: 5px;
    }
    
    .verified-badge {
        font-size: 0.7rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 20px;
        height: 20px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-reviews-container {
        padding: 10px;
    }
    
    .review-content {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-image {
        width: 120px;
    }
    
    .product-image img {
        height: 160px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .review-rating .star {
        font-size: 1.2rem;
    }
}

/* Loading Animation */
.product-reviews-container .swiper-slide-duplicate {
    opacity: 0.8;
}

.product-reviews-container .swiper-slide-active {
    opacity: 1;
}

/* Custom scrollbar for webkit browsers */
.product-reviews-container::-webkit-scrollbar {
    width: 8px;
}

.product-reviews-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-reviews-container::-webkit-scrollbar-thumb {
    background: #4ecdc4;
    border-radius: 10px;
}

.product-reviews-container::-webkit-scrollbar-thumb:hover {
    background: #45b7aa;
}

/* Accessibility improvements */
.swiper-button-next,
.swiper-button-prev {
    outline: none;
}

.swiper-button-next:focus,
.swiper-button-prev:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

.swiper-pagination-bullet:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* Animation for slide transitions */
.swiper-slide {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.swiper-slide-active .review-slide {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

