/* ============================================================
   KIT SHOWCASE MODAL (slider popup) — copied for home page use,
   same look as product page's kit-showcase modal
   ============================================================ */
.kit-showcase-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 7, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kit-showcase-box {
    position: relative;
    width: fit-content;
    max-width: min(760px, 94vw);
    max-height: 90vh;
    background: #141417;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .6);
    display: flex;
    flex-direction: column;
    animation: kitBoxIn .28s cubic-bezier(.22, .9, .3, 1);
}

@keyframes kitBoxIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kit-showcase-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 30;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
}

.kit-showcase-close:hover {
    background: #e81c1c;
    transform: rotate(90deg);
}

/* stage now flexes to fill whatever space is left after the footer
   takes its natural height — this guarantees the caption/footer
   is NEVER clipped, on any screen size */
.kit-showcase-stage {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    background: #0a0a0c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kit-showcase-frame {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: min(760px, 94vw);
    max-height: min(72vh, 720px);
    overflow: hidden;
}

.kit-showcase-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .4s cubic-bezier(.22, .9, .3, 1);
}

.kit-showcase-slide {
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 12px;
}

.kit-showcase-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

.kit-showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: .85;
    transition: all .2s;
}

.kit-showcase-nav:hover {
    background: #e81c1c;
    opacity: 1;
}

.kit-showcase-nav.prev {
    left: 12px;
}

.kit-showcase-nav.next {
    right: 12px;
}

/* footer never shrinks — this is what keeps the caption always visible */
.kit-showcase-footer {
    flex: 0 0 auto;
    background: #18181c;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 16px 20px 18px;
    text-align: center;
}

.kit-showcase-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .2px;
    min-height: 1.3em;
    word-break: break-word;
}

.kit-showcase-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kit-showcase-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .25);
    cursor: pointer;
    padding: 0;
    transition: all .25s;
}

.kit-showcase-dot.active {
    background: #e81c1c;
    width: 22px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .kit-showcase-box {
        max-width: 96vw;
        border-radius: 16px;
    }

    .kit-showcase-frame {
        max-width: 96vw;
        max-height: 58vh;
    }

    .kit-showcase-nav {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .kit-showcase-title {
        font-size: .95rem;
    }
}

@media (max-width: 480px) {
    .kit-showcase-frame {
        max-width: 96vw;
        max-height: 48vh;
    }

    .kit-showcase-footer {
        padding: 12px 16px 14px;
    }

    .kit-showcase-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
}

@media (min-width: 1200px) {
    .kit-showcase-frame {
        max-width: 760px;
        max-height: 660px;
    }
}

/* ============================================================
   IN-CARD MINI SLIDER
   (used by New Arrivals, Best Sellers, Launching Soon cards —
   cycles images inside the card itself, no modal needed)
   ============================================================ */
.v2-arrival-slider {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* fallback so the slider has a real height even if the card's
   own CSS doesn't already fix one — tweak the ratio if needed */
.v2-arrival-slider:not([style*="height"]) {
    aspect-ratio: 4 / 3;
}

.v2-arrival-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease;
}

.v2-arrival-slide-img.active {
    opacity: 1;
    visibility: visible;
}

.v2-arrival-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
}

.v2-arrival-slider:hover .v2-arrival-nav {
    opacity: 1;
}

.v2-arrival-nav:hover {
    background: #e81c1c;
}

.v2-arrival-nav.prev {
    left: 6px;
}

.v2-arrival-nav.next {
    right: 6px;
}

.v2-arrival-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 4;
}

.v2-arrival-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: background .2s ease, width .2s ease;
}

.v2-arrival-dot.active {
    background: #e81c1c;
    width: 14px;
    border-radius: 4px;
}

@media (max-width: 480px) {
    .v2-arrival-nav {
        opacity: 1;
        width: 24px;
        height: 24px;
    }
}


.carousel-control-next {
    z-index: 5;
}

.new-arrival-popup-content a {
    z-index: 11;
}

.kit-name,
.kit-desc,
.v2-price-box {
    padding: 0px 5px 0px 5px;
}

.kit-desc {
    padding: 5px 0px 5px 10px;
}