/* =========================================
   WC Review Screenshots — Frontend Slider
   ========================================= */

/* ── Section wrapper ── */
.wcrs-section {
    margin: 40px 0;
    clear: both;
}

.wcrs-section-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: inherit;
}

/* ── Slider wrapper ── */
.wcrs-slider-wrap {
    position: relative;
    user-select: none;
}

/* ── Track ── */
.wcrs-track-outer {
    overflow: hidden;
    border-radius: 10px;
}

.wcrs-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Individual slide ── */
.wcrs-slide {
    flex: 0 0 25%;
    min-width: 0;
    padding: 0 6px;
    box-sizing: border-box;
}

.wcrs-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
    line-height: 0;
}

.wcrs-img-wrap img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Lightbox hover state */
.wcrs-has-lightbox {
    cursor: zoom-in;
}

.wcrs-has-lightbox:hover img {
    transform: scale(1.015);
}

/* Zoom icon overlay */
.wcrs-zoom-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}

.wcrs-zoom-icon svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.wcrs-has-lightbox:hover .wcrs-zoom-icon {
    opacity: 1;
}

/* Caption */
.wcrs-slide-caption {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin: 10px 0 0;
    font-style: italic;
    line-height: 1.4;
}

/* ── Arrows ── */
.wcrs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);  /* nudge up slightly to account for caption */
    z-index: 10;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background .2s, box-shadow .2s, transform .15s;
    padding: 0;
}

.wcrs-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.wcrs-arrow:active {
    transform: translateY(-60%) scale(0.93);
}

.wcrs-arrow svg {
    width: 18px;
    height: 18px;
    color: #333;
    display: block;
}

.wcrs-prev { left: -20px; }
.wcrs-next { right: -20px; }

.wcrs-arrow.wcrs-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Dots ── */
.wcrs-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.wcrs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s, width .25s;
    flex-shrink: 0;
}

.wcrs-dot:hover {
    background: #999;
}

.wcrs-dot-active {
    background: #333;
    width: 22px;
    border-radius: 4px;
    transform: none;
}

/* ── Lightbox ── */
.wcrs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcrs-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    cursor: zoom-out;
}

.wcrs-lb-inner {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wcrs-lb-img-wrap {
    position: relative;
    max-width: 88vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wcrs-lb-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
    opacity: 0;
    transition: opacity .3s;
}

#wcrs-lb-img.wcrs-lb-loaded {
    opacity: 1;
}

.wcrs-lb-spinner {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wcrs-spin .7s linear infinite;
}

.wcrs-lb-spinner.wcrs-lb-hidden {
    display: none;
}

@keyframes wcrs-spin {
    to { transform: rotate(360deg); }
}

.wcrs-lb-caption {
    color: rgba(255,255,255,.85);
    font-size: 0.9em;
    text-align: center;
    margin: 0;
    max-width: 80vw;
    line-height: 1.4;
}

.wcrs-lb-close {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    z-index: 2;
    padding: 0;
}

.wcrs-lb-close:hover {
    background: rgba(255,255,255,.28);
}

.wcrs-lb-close svg {
    width: 20px;
    height: 20px;
    color: #fff;
    display: block;
}

/* ── Lightbox open — body lock ── */
body.wcrs-lb-open {
    overflow: hidden;
}

/* ── Entrance animation ── */
.wcrs-lightbox {
    animation: wcrs-lb-in .2s ease;
}

@keyframes wcrs-lb-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .wcrs-slide {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 768px) {
    .wcrs-slide {
        flex: 0 0 50%;
    }

    .wcrs-prev { left: -8px; }
    .wcrs-next { right: -8px; }

    .wcrs-arrow {
        width: 34px;
        height: 34px;
    }

    .wcrs-arrow svg {
        width: 15px;
        height: 15px;
    }

    .wcrs-img-wrap img {
        max-height: 380px;
    }
}

@media (max-width: 480px) {
    .wcrs-slide {
        flex: 0 0 100%;
    }

    .wcrs-prev { left: 4px; }
    .wcrs-next { right: 4px; }

    .wcrs-arrow {
        background: rgba(0,0,0,.35);
        border-color: transparent;
    }

    .wcrs-arrow svg {
        color: #fff;
    }
}
