/**
 * Custom Customer Reviews Slider Styles
 */

.bobo-customer-reviews-section {
    padding: 60px 0;
    background: transparent;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Ensure padding matches site container */
@media (min-width: 768px) {
    .bobo-customer-reviews-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    .bobo-customer-reviews-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.bobo-reviews-title {
    font-family: inherit;
    font-weight: 600;
    font-size: 24px;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 35px;
    color: inherit;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .bobo-reviews-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
}

.bobo-reviews-slider-outer {
    position: relative;
    width: 100%;
}

.bobo-reviews-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 15px;
    margin-bottom: -15px;
    /* offset padding to avoid extra blank space */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.bobo-reviews-slider-track::-webkit-scrollbar {
    display: none;
}

/* Nav Buttons */
.bobo-slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #111111;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    padding: 0;
}

.bobo-slider-btn:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.bobo-slider-prev {
    left: -22px;
}

.bobo-slider-next {
    right: -22px;
}

/* Hide buttons on mobile view */
@media (max-width: 1024px) {
    .bobo-slider-prev {
        left: -10px;
    }

    .bobo-slider-next {
        right: -10px;
    }
}

@media (max-width: 767px) {
    .bobo-slider-btn {
        display: none;
    }
}

/* Review Card */
.bobo-review-card {
    flex: 0 0 calc(25% - 12px);
    /* 4 columns on desktop */
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bobo-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #d1d1d1;
}

/* Responsive Column Widths */
@media (min-width: 1400px) {
    .bobo-review-card {
        flex: 0 0 calc(20% - 12.8px);
        /* 6 columns on large screens 16.666% - 13.33px */
    }
}

@media (min-width: 1025px) and (max-width: 1399px) {
    .bobo-review-card {
        flex: 0 0 calc(25% - 12px);
        /* 4 columns on desktop */
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .bobo-review-card {
        flex: 0 0 calc(33.333% - 11px);
        /* 3 columns on tablet */
    }
}

@media (max-width: 767px) {
    .bobo-review-card {
        flex: 0 0 calc(50% - 8px);
        /* EXACTLY 2 cards per row on mobile */
    }
}

/* Image section */
.bobo-review-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5;
}

.bobo-review-customer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bobo-review-card:hover .bobo-review-customer-image {
    transform: scale(1.04);
}

.bobo-review-instagram-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: #111111;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease;
}

.bobo-review-card:hover .bobo-review-instagram-overlay {
    background: #ffffff;
    color: #e1306c;
    /* Instagram pink on hover */
}

/* Content block */
.bobo-review-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

.bobo-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 4px;
}

.bobo-review-name {
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    color: #111111;
    text-transform: capitalize;
}

.bobo-review-rating {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #222222;
    font-family: inherit;
}

.bobo-star {
    color: #000000;
    /* Matching Littlebox black star */
    margin-right: 3px;
    font-size: 13px;
}

.bobo-rating-val {
    font-weight: 600;
    margin-right: 2px;
}

.bobo-rating-count {
    color: #777777;
}

.bobo-review-comment {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: #555555;
    margin-bottom: 15px;
}

/* Product Card Box */
.bobo-review-product-box {
    margin-top: auto;
    display: flex;
    align-items: center;
    background: #f7f8fa;
    border-radius: 6px;
    padding: 8px;
    text-decoration: none;
    color: #111111;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.bobo-review-product-box:hover {
    background: #f0f1f4;
    border-color: #e0e0e0;
}

.bobo-review-prod-thumb {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 10px;
    background: #eef0f2;
}

.bobo-review-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bobo-review-prod-info {
    flex-grow: 1;
    min-width: 0;
    /* for text ellipsis */
    margin-right: 8px;
}

.bobo-review-prod-title {
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 2px 0;
    color: #111111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bobo-review-prod-price {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #111111;
    display: block;
}

.bobo-review-prod-price del {
    font-size: 10px;
    color: #777777;
    margin-right: 4px;
    font-weight: normal;
}

.bobo-review-prod-price ins {
    text-decoration: none;
}

.bobo-review-prod-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.bobo-review-product-box:hover .bobo-review-prod-arrow {
    transform: translateX(3px);
}

/* Slider Pagination Dots */
.bobo-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    margin-bottom: 5px;
}

.bobo-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
}

.bobo-slider-dot:hover {
    background: #a0a0a0;
    transform: scale(1.1);
}

.bobo-slider-dot.bobo-active-dot {
    background: var(--site-accent-color, #bfa260);
    width: 20px;
    border-radius: 4px;
}