/* ============================================================
 * Shortcode: [product_reviews_slider]
 * File: assets/css/product-reviews.css
 * ============================================================ */

.product-reviews-slider-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 45px;
    background: transparent;
}

/* Fallback before Swiper initializes or in UX Builder */
.product-reviews-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-reviews-swiper:not(.swiper-initialized) .swiper-slide {
    width: 100% !important;
}

/* Swiper Slide & Card Item */
.product-reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.review-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 25px 35px 25px;
    width: 100%;
    position: relative;
    border-right: 1px solid #eef2f6;
    transition: transform 0.3s ease;
}

.swiper-slide:last-child .review-card-item {
    border-right: none;
}

/* Avatar Ring */
.review-avatar-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #c8102e;
    padding: 3px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.12);
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.review-card-item:hover .review-avatar-ring {
    transform: scale(1.06);
}

.review-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Author Name & Role */
.review-author-name {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.review-author-role {
    font-size: 13.5px;
    color: #718096;
    margin-bottom: 10px;
    display: block;
}

/* Stars Rating */
.review-stars-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}

.review-stars-rating .star {
    font-size: 18px;
    line-height: 1;
}

.review-stars-rating .star-filled {
    color: #ffb800;
}

.review-stars-rating .star-empty {
    color: #e2e8f0;
}

/* Review Text Content */
.review-content-text {
    font-size: 14px;
    color: #718096;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: normal;
}

/* === Swiper Navigation Buttons === */
.product-reviews-slider-wrap .reviews-btn-prev,
.product-reviews-slider-wrap .reviews-btn-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    top: 45%;
}

.product-reviews-slider-wrap .reviews-btn-prev::after,
.product-reviews-slider-wrap .reviews-btn-next::after {
    font-size: 16px;
    font-weight: 700;
}

.product-reviews-slider-wrap .reviews-btn-prev {
    left: 0;
}

.product-reviews-slider-wrap .reviews-btn-next {
    right: 0;
}

.product-reviews-slider-wrap .reviews-btn-prev:hover,
.product-reviews-slider-wrap .reviews-btn-next:hover {
    background: #c8102e;
    color: #ffffff;
    border-color: #c8102e;
    transform: scale(1.08);
}

/* === Swiper Pagination Dots === */
.product-reviews-slider-wrap .reviews-pagination {
    position: relative;
    margin-top: 25px;
    bottom: 0 !important;
}

.product-reviews-slider-wrap .reviews-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #cbd5e0;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.product-reviews-slider-wrap .reviews-pagination .swiper-pagination-bullet-active {
    background: #c8102e;
    width: 14px;
    border-radius: 6px;
}

/* === Responsive === */
@media (max-width: 991px) {
    .product-reviews-slider-wrap {
        padding: 20px 30px;
    }

    .review-avatar-ring {
        width: 90px;
        height: 90px;
    }

    .review-author-name {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .product-reviews-slider-wrap {
        padding: 15px 10px;
    }

    .review-card-item {
        border-right: none;
        padding: 15px 10px;
    }

    .product-reviews-slider-wrap .reviews-btn-prev,
    .product-reviews-slider-wrap .reviews-btn-next {
        display: none;
    }

    .product-reviews-swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: 1fr;
    }
}
