
/* =========================================================
   LA FEMEIA — PREMIUM SKINCARE TESTIMONIALS
   Version: 2.0

   Typography:
   Cormorant Garamond + DM Sans

   Palette:
   Ivory, champagne gold, charcoal, warm beige

   Existing reviews.js selectors preserved.
   ========================================================= */


/* =========================================================
   1. SECTION
   ========================================================= */

.bb-reviews-section {
    --rv-ink: #1A1A1A;
    --rv-muted: #746A60;
    --rv-gold: #C9A46A;
    --rv-gold-dark: #9A784A;
    --rv-bg: #F8F4EE;
    --rv-card: #FFFFFF;
    --rv-beige: #E8D8C3;

    --rv-line: rgba(154, 120, 74, .17);
    --rv-line-strong: rgba(154, 120, 74, .36);

    --rv-serif: 'Cormorant Garamond', Georgia, serif;
    --rv-sans: 'DM Sans', Arial, sans-serif;

    --rv-ease: cubic-bezier(.22, .61, .36, 1);

    --rv-gap: 22px;

    position: relative;
    width: 100%;
    padding: clamp(24px, 3vw, 40px) 28px;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(232, 216, 195, .36),
            transparent 55%
        ),
        var(--rv-bg);

    color: var(--rv-ink);
    font-family: var(--rv-sans);

    overflow: hidden;
}

.bb-reviews-section *,
.bb-reviews-section *::before,
.bb-reviews-section *::after {
    box-sizing: border-box;
}

.bb-reviews-container {
    position: relative;
    max-width: 1380px;
    margin: 0 auto;
}


/* =========================================================
   2. SECTION HEADER
   ========================================================= */

.bb-reviews-header {
    max-width: 760px;
    margin: 0 auto clamp(42px, 5vw, 68px);
    text-align: center;
}

.bb-reviews-subtitle {
    display: block;
    margin: 0 0 19px;

    font-family: var(--rv-sans);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;

    letter-spacing: .21em;
    text-transform: uppercase;

    color: var(--rv-gold-dark);
}

.bb-reviews-header h2 {
    margin: 0 0 22px;

    font-family: var(--rv-serif);
    font-size: clamp(54px, 6vw, 88px);
    font-weight: 500;
    line-height: .94;

    letter-spacing: -.035em;
    color: var(--rv-ink);
}

.bb-reviews-header h2 em {
    font-weight: 500;
    font-style: italic;
    color: var(--rv-gold-dark);
}

.bb-reviews-description {
    max-width: 550px;
    margin: 0 auto 22px;

    font-family: var(--rv-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;

    color: var(--rv-muted);
}

.bb-reviews-overall {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.bb-reviews-decoration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bb-reviews-decoration span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rv-gold);
}

.bb-reviews-decoration span:nth-child(2) {
    width: 7px;
    height: 7px;
}

.bb-reviews-avg {
    font-family: var(--rv-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--rv-gold-dark);
}

.bb-reviews-demo-notice {
    margin: 12px 0 0;
    color: var(--rv-muted);
    font: 400 11px/1.5 var(--rv-sans);
}


/* =========================================================
   3. CAROUSEL
   ========================================================= */

.bb-reviews-wrapper {
    position: relative;
    width: 100%;
}

.bb-reviews-carousel {
    display: flex;
    gap: var(--rv-gap);

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    scrollbar-width: none;

    padding: 5px 2px 17px;
}

.bb-reviews-carousel::-webkit-scrollbar {
    display: none;
}

.bb-reviews-carousel:focus-visible {
    outline: 2px solid var(--rv-gold-dark);
    outline-offset: 4px;
}


/* =========================================================
   4. REVIEW CARD
   ========================================================= */

.bb-review-card {
    position: relative;

    flex: 0 0 calc(
        (100% - var(--rv-gap) * 2) / 3
    );

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 410px;

    margin: 0;
    padding: 30px 30px 26px;

    border: 1px solid var(--rv-line);
    border-radius: 16px;

    background: var(--rv-card);

    scroll-snap-align: start;

    transition:
        transform .5s var(--rv-ease),
        box-shadow .5s var(--rv-ease),
        border-color .5s var(--rv-ease),
        background .5s var(--rv-ease);
}

.bb-review-card:nth-child(3n + 2) {
    background: #F3ECE3;
}

.bb-review-card:nth-child(3n + 3) {
    background: #F9F6F1;
}

@media (hover: hover) and (pointer: fine) {

    .bb-review-card:hover {
        transform: translateY(-5px);

        border-color: var(--rv-line-strong);
        background: #FFFFFF;

        box-shadow:
            0 22px 42px -28px
            rgba(66, 43, 25, .22);
    }
}


/* =========================================================
   5. TOP CATEGORY AND NUMBER
   ========================================================= */

.bb-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
    margin-bottom: 30px;
}

.bb-review-category {
    display: inline-block;
    max-width: 85%;

    padding: 8px 12px;

    border: 1px solid rgba(154, 120, 74, .2);
    border-radius: 100px;

    background: rgba(255, 255, 255, .65);

    font: 500 10px/1.2 var(--rv-sans);
    letter-spacing: .09em;
    text-transform: uppercase;

    color: var(--rv-gold-dark);
}

.bb-review-number {
    font: 500 12px/1 var(--rv-sans);
    letter-spacing: .08em;

    color: var(--rv-gold-dark);
    opacity: .8;
}


/* =========================================================
   6. QUOTATION MARK
   ========================================================= */

.bb-review-quote {
    display: block;
    height: 42px;

    margin: 0 0 13px;

    font-family: var(--rv-serif);
    font-size: 104px;
    font-weight: 500;
    line-height: .8;

    color: var(--rv-gold);

    opacity: .68;
    user-select: none;
}


/* =========================================================
   7. TESTIMONIAL TEXT
   ========================================================= */

.bb-review-text {
    position: relative;
    flex-grow: 1;

    margin: 0 0 30px;
    padding: 0;

    border: none;
    background: transparent;

    font-family: var(--rv-serif);
    font-size: clamp(23px, 1.85vw, 29px);
    font-weight: 500;
    line-height: 1.29;
    letter-spacing: -.013em;

    color: var(--rv-ink);
}


/* =========================================================
   8. AUTHOR ROW
   ========================================================= */

.bb-review-author {
    display: flex;
    align-items: center;
    gap: 13px;

    padding-top: 21px;

    border-top: 1px solid var(--rv-line);
}

.bb-review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 43px;

    width: 43px;
    height: 43px;

    border-radius: 50%;
    border: 1px solid rgba(201, 164, 106, .38);

    background: #F8F4EE;

    font-family: var(--rv-serif);
    font-size: 22px;
    font-weight: 600;

    color: var(--rv-gold-dark);
}

.bb-review-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

.bb-review-name {
    font: 500 13px/1.3 var(--rv-sans);
    color: var(--rv-ink);
}

.bb-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    font: 400 11px/1.4 var(--rv-sans);
    color: var(--rv-muted);
}

.bb-review-author-mark {
    margin-left: auto;

    font-family: var(--rv-serif);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -.03em;

    color: rgba(154, 120, 74, .28);
}


/* =========================================================
   9. NAVIGATION / PROGRESS
   ========================================================= */

.bb-reviews-nav {
    display: flex;
    align-items: center;

    gap: 28px;
    margin-top: clamp(20px, 3vw, 36px);
}

.bb-reviews-progress {
    position: relative;
    flex: 1;

    height: 2px;

    overflow: hidden;
    border-radius: 10px;

    background: rgba(154, 120, 74, .17);
}

.bb-reviews-progress span {
    position: absolute;
    top: 0;
    left: 0;

    height: 100%;
    width: 33%;

    border-radius: inherit;
    background: var(--rv-gold-dark);

    transition:
        left .3s ease,
        width .3s ease;
}

.bb-reviews-controls {
    display: flex;
    align-items: center;
    gap: 9px;

    flex-shrink: 0;
}

.bb-review-prev,
.bb-review-next,
.bb-review-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 46px;
    height: 46px;
    padding: 0;

    border: 1px solid var(--rv-line-strong);
    border-radius: 50%;

    background: rgba(255, 255, 255, .65);
    color: var(--rv-ink);

    cursor: pointer;

    transition:
        background .3s var(--rv-ease),
        color .3s var(--rv-ease),
        border-color .3s var(--rv-ease),
        transform .3s var(--rv-ease);
}

.bb-review-toggle {
    width: 40px;
    height: 40px;

    margin-right: 8px;
}

.bb-review-prev:hover,
.bb-review-next:hover,
.bb-review-toggle:hover {
    background: var(--rv-ink);
    border-color: var(--rv-ink);
    color: #FFFFFF;

    transform: translateY(-2px);
}

.bb-review-toggle .bb-icon-play {
    display: none;
}

.bb-review-toggle[aria-pressed="true"] .bb-icon-pause {
    display: none;
}

.bb-review-toggle[aria-pressed="true"] .bb-icon-play {
    display: block;
}

.bb-reviews-section button:focus-visible {
    outline: 2px solid var(--rv-gold-dark);
    outline-offset: 3px;
}


/* =========================================================
   10. COMPATIBILITY — EXISTING STAR CLASSES
   ========================================================= */

.bb-stars,
.bb-review-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--rv-gold-dark);
}

.bb-stars svg {
    width: 16px;
    height: 16px;
}

.bb-review-stars svg {
    width: 14px;
    height: 14px;
}


/* =========================================================
   11. TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .bb-reviews-section {
        --rv-gap: 18px;
    }

    .bb-review-card {
        flex-basis: calc(
            (100% - var(--rv-gap)) / 2
        );

        min-height: 385px;
        padding: 28px;
    }

    .bb-review-text {
        font-size: 27px;
    }
}


/* =========================================================
   12. MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .bb-reviews-section {
        --rv-gap: 14px;

        padding: 24px 16px;
    }

    .bb-reviews-header {
        padding: 0 22px;
        margin-bottom: 35px;
    }

    .bb-reviews-header h2 {
        font-size: clamp(51px, 11vw, 67px);
    }

    .bb-reviews-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .bb-reviews-carousel {
        padding: 5px 20px 17px;
        scroll-padding-left: 20px;
    }

    .bb-review-card {
        flex-basis: min(84vw, 365px);

        min-height: 365px;
        padding: 25px 23px 23px;

        border-radius: 14px;
    }

    .bb-review-top {
        margin-bottom: 22px;
    }

    .bb-review-quote {
        font-size: 87px;
        height: 35px;
    }

    .bb-review-text {
        font-size: 25px;
        line-height: 1.27;
    }

    .bb-reviews-nav {
        gap: 15px;
        padding: 0 20px;
    }

    .bb-review-prev,
    .bb-review-next {
        width: 42px;
        height: 42px;
    }

    .bb-review-toggle {
        width: 36px;
        height: 36px;
        margin-right: 2px;
    }

    .bb-review-author-mark {
        font-size: 19px;
    }
}


/* =========================================================
   13. SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .bb-reviews-header h2 {
        font-size: 48px;
    }

    .bb-review-card {
        flex-basis: 87vw;
    }

    .bb-review-text {
        font-size: 23px;
    }

    .bb-review-author-mark {
        display: none;
    }
}


/* =========================================================
   14. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bb-reviews-carousel {
        scroll-behavior: auto;
    }

    .bb-reviews-section *,
    .bb-reviews-section *::before,
    .bb-reviews-section *::after {
        transition-duration: .01s !important;
        animation: none !important;
    }
}
