/* ============================================================
   Reel Carousel Pro – Frontend CSS  v2.1.3
   Author: Rahul Aggarwal / Solution4u
   ============================================================ */

body.rc-body-lock { overflow: hidden !important; }

.rc-wrap { max-width: 1400px; margin: 0 auto; padding: 20px 0; position: relative; }
.rc-carousel { overflow: hidden; }
.rc-track { display: flex; }

.rc-item { flex-shrink: 0; position: relative; }
.rc-item::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.rc-item iframe { width: 100%; aspect-ratio: 9 / 16; display: block; pointer-events: none; }

.rc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.rc-dots span { width: 8px; height: 8px; border-radius: 50%; cursor: pointer; display: inline-block; transition: background .3s, transform .2s; }
.rc-dots span.active { transform: scale(1.35); }

/* ── Lightbox overlay (appended to body by JS) ── */
.rc-lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.rc-lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000001;
    opacity: .85;
    padding: 0;
    transition: opacity .2s;
    font-family: sans-serif;
}
.rc-lb-close:hover { opacity: 1; }

/* Two-column: video + card */
.rc-lb-layout {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 860px;
    box-sizing: border-box;
}

/* Video side */
.rc-lb-video-wrap { flex-shrink: 0; }
.rc-lb-video {
    height: 82dvh;
    max-height: 82dvh;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}
.rc-lb-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Product card side */
.rc-lb-card-wrap {
    flex-shrink: 0;
    width: 190px;
    display: flex;
    align-items: center;
}

.rc-product-card {
    background: rgba(18, 18, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.rc-pc-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.rc-pc-info {
    padding: 12px 14px 8px;
}

.rc-pc-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

.rc-pc-price {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.rc-pc-btn {
    display: block;
    text-align: center;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin: 0 14px 14px;
    border-radius: 8px;
    transition: opacity .2s, transform .15s;
    letter-spacing: .02em;
}
.rc-pc-btn:hover { opacity: .88; transform: translateY(-1px); }

/* Mobile */
@media (max-width: 680px) {
    .rc-lb-layout {
        flex-direction: column;
        align-items: center;
        padding: 56px 16px 16px;
        gap: 14px;
    }
    .rc-lb-video { height: 60dvh; max-height: 60dvh; }
    .rc-lb-card-wrap { width: 100%; max-width: 300px; }
    .rc-product-card { flex-direction: row; align-items: center; }
    .rc-pc-img { width: 68px; height: 68px; aspect-ratio: 1; flex-shrink: 0; border-radius: 0; }
    .rc-pc-info { flex: 1; padding: 8px 10px; }
    .rc-pc-title { font-size: 12px; }
    .rc-pc-price { font-size: 14px; }
    .rc-pc-btn { margin: 0 10px 0 0; padding: 9px 12px; font-size: 12px; flex-shrink: 0; border-radius: 6px; }
}

/* v2.1.3 fixes: natural close position + clean hover card layout */
.rc-lb-overlay .rc-lb-close,
.rc-lb-close {
    position: fixed !important;
    left: auto !important;
    right: 24px !important;
    top: 24px !important;
    transform: none !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.92) !important;
    color: #111 !important;
    font-size: 26px !important;
    line-height: 1 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.22) !important;
}

.rc-hover-mode {
    overflow: hidden;
}

.rc-hover-card {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(18, 18, 28, 0.76);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
    box-sizing: border-box;
}

.rc-hover-mode:hover .rc-hover-card,
.rc-hover-mode:focus-within .rc-hover-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rc-hover-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rc-hover-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

.rc-hover-info {
    min-width: 0;
    flex: 1;
}

.rc-hover-title {
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 5px;
}

.rc-hover-price {
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 500;
    margin: 0;
}

.rc-hover-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
    box-sizing: border-box;
}
.rc-hover-btn:hover { opacity: .88; transform: translateY(-1px); }

@media (hover: none), (max-width: 680px) {
    .rc-hover-card {
        opacity: 1;
        visibility: visible;
        transform: none;
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 8px;
        gap: 8px;
    }
    .rc-hover-main { gap: 8px; }
    .rc-hover-img { width: 46px; height: 46px; }
    .rc-hover-title { font-size: 11px; line-height: 1.25; }
    .rc-hover-price { font-size: 12px; }
    .rc-hover-btn { min-height: 30px; padding: 7px 9px; font-size: 11px; }
}


/* v2.1.3 product price visibility + product card polish */
.rc-hover-card {
    max-height: calc(100% - 24px);
}
.rc-hover-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}
.rc-hover-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rc-hover-price {
    display: block !important;
    flex-shrink: 0;
    margin-top: 3px;
}
.rc-product-card .rc-pc-price {
    display: block !important;
}
.rc-product-card .rc-pc-title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 680px) {
    .rc-hover-title { -webkit-line-clamp: 2; }
}

/* ── Lightbox navigation arrows ── */
.rc-lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000002;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.32);
    color: #fff;
    font-size: 38px;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .18s, transform .15s;
    user-select: none;
    -webkit-user-select: none;
}
.rc-lb-nav:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-50%) scale(1.08);
}
.rc-lb-prev { left: 20px; }
.rc-lb-next { right: 20px; }

@media (max-width: 680px) {
    .rc-lb-nav { width: 40px; height: 40px; font-size: 28px; }
    .rc-lb-prev { left: 8px; }
    .rc-lb-next { right: 8px; }
}

/* ── Wishlist icon ── */
.rc-lb-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000003;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(80, 80, 180, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .18s, transform .15s;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.rc-lb-wishlist svg { color: #fff; display: block; }
.rc-lb-wishlist:hover { background: rgba(100,100,210,0.95); transform: scale(1.1); }
.rc-lb-wishlist--active { background: #e8344a !important; }
.rc-lb-wishlist--active svg { fill: #fff; stroke: #fff; }

/* ── Add to Cart button ── */
.rc-pc-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin: 0 14px 14px;
    border-radius: 8px;
    transition: opacity .2s, transform .15s;
    letter-spacing: .02em;
    background: #111;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.22);
}
.rc-pc-cart-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

@media (max-width: 680px) {
    .rc-pc-cart-btn {
        margin: 0 10px 8px;
        padding: 9px 10px;
        font-size: 12px;
        border-radius: 6px;
    }
}
