/* ==========================================================================
   Customer review screenshots: lightbox, product slider and feedback section
   ========================================================================== */

:root {
    --rf-green: #2d6a4f;
    --rf-green-light: #81b214;
    --rf-bg: #f6faf4;
    --rf-radius: 16px;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.rf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    flex-direction: column;
    background: rgba(10, 18, 12, 0.94);
}

.rf-lightbox.is-open {
    display: flex;
}

.rf-lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
}

.rf-lightbox__btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.rf-lightbox__btn:hover,
.rf-lightbox__btn:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

.rf-lightbox__stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px 16px;
    -webkit-overflow-scrolling: touch;
}

.rf-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    user-select: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Zoomed state: show the screenshot at full width and let the stage scroll */
.rf-lightbox.is-zoomed .rf-lightbox__stage {
    align-items: flex-start;
}

.rf-lightbox.is-zoomed .rf-lightbox__img {
    max-width: none;
    max-height: none;
    width: 180%;
    cursor: zoom-out;
}

.rf-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.rf-lightbox__nav--prev {
    left: 12px;
}

.rf-lightbox__nav--next {
    right: 12px;
}

.rf-lightbox.is-zoomed .rf-lightbox__nav {
    display: none;
}

body.rf-no-scroll {
    overflow: hidden;
}

/* Any element that opens the lightbox */
[data-rf-zoom] {
    cursor: zoom-in;
}

/* ── Product page review slider ──────────────────────────────────────────── */
.rf-product-reviews {
    padding: 56px 0;
    background: var(--rf-bg);
}

.rf-section-head {
    text-align: center;
    margin-bottom: 32px;
}

.rf-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #e3f1dc;
    color: var(--rf-green);
    font-size: 13px;
    font-weight: 600;
}

.rf-section-title {
    margin: 12px 0 6px;
    font-size: 30px;
    font-weight: 700;
    color: #1b2b21;
}

.rf-section-sub {
    margin: 0 auto;
    max-width: 560px;
    color: #667;
}

.rf-slider {
    position: relative;
    padding: 0 52px;
}

.rf-slide-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--rf-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}

.rf-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.rf-slide-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
}

.rf-slider .swiper-slide {
    height: auto;
}

.rf-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.rf-arrow:hover {
    background: var(--rf-green);
    color: #fff;
}

.rf-arrow--prev {
    left: 0;
}

.rf-arrow--next {
    right: 0;
}

.rf-arrow.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── About page feedback section ─────────────────────────────────────────── */
.rf-feedback {
    padding: 64px 0 72px;
    background: linear-gradient(180deg, #fff 0%, var(--rf-bg) 100%);
    scroll-margin-top: 90px;
}

/* Summary cards on the About page (one per product) */
.rf-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.rf-product-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #fff;
    color: #243;
    text-decoration: none;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.rf-product-card:hover,
.rf-product-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--rf-green);
    box-shadow: 0 12px 28px rgba(45, 106, 79, 0.2);
    color: #243;
}

.rf-product-card__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #e8efe4;
}

.rf-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-right: 34px;
}

.rf-product-card__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rf-product-card__cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--rf-green);
}

.rf-tab__count {
    position: absolute;
    top: 10px;
    right: 12px;
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--rf-green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* Dedicated product reviews page */
.rf-page {
    padding: 40px 0 72px;
    background: linear-gradient(180deg, #fff 0%, var(--rf-bg) 100%);
}

.rf-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.rf-breadcrumbs a {
    color: var(--rf-green);
    font-weight: 600;
    text-decoration: none;
}

.rf-breadcrumbs a:hover {
    text-decoration: underline;
}

.rf-product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    margin-bottom: 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.rf-product-header__thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    background: #e8efe4;
}

.rf-product-header__name {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #1b2b21;
}

.rf-product-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    color: #667;
    font-size: 14px;
}

.rf-product-header__badge {
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--rf-green);
    color: #fff;
    font-weight: 700;
}

/* Masonry gallery (CSS columns keeps mixed-height screenshots tight) */
.rf-gallery {
    column-count: 4;
    column-gap: 16px;
}

.rf-item {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    break-inside: avoid;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    transition: transform 0.25s, box-shadow 0.25s;
}

.rf-item[hidden] {
    display: none;
}

.rf-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.rf-item img {
    display: block;
    width: 100%;
    height: auto;
}

.rf-empty {
    padding: 48px 0;
    text-align: center;
    color: #778;
}

@media (max-width: 1199px) {
    .rf-gallery {
        column-count: 3;
    }
}

@media (max-width: 767px) {
    .rf-gallery {
        column-count: 2;
        column-gap: 10px;
    }

    .rf-item {
        margin-bottom: 10px;
    }

    .rf-section-title {
        font-size: 24px;
    }

    .rf-slider {
        padding: 0 34px;
    }

    .rf-product-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .rf-product-header__name {
        font-size: 22px;
    }
}

@media (max-width: 400px) {
    .rf-gallery {
        column-count: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rf-product-card,
    .rf-item,
    .rf-slide-card {
        transition: none;
    }
}

.rf-lightbox__btn[hidden] {
    display: none;
}
