/* ── SHOWCASE SLIDER WRAPPER ── */
.ns-showcase-wrapper {
    position: relative;
    width: 100%;
    font-family: 'Outfit', sans-serif;
}

/* Controls (Arrows) positioned at top right */
.ns-showcase-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 24px;
}

/* Button default and bug-fix styles */
.ns-sc-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    background: transparent;
    outline: none !important;
    box-shadow: none !important;
}

/* Overriding theme default focus colors */
.ns-sc-btn:hover, 
.ns-sc-btn:focus, 
.ns-sc-btn:active {
    border-color: #0873EA !important;
    background: rgba(8, 115, 234, 0.18) !important;
    outline: none !important;
}

.ns-sc-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
    stroke-width: 1.5;
}

/* Track and Card Layout */
.ns-showcase-track-wrap {
    overflow: hidden;
    width: 100%;
}

.ns-showcase-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.ns-showcase-card {
    /* 100% width minus 2 gaps (40px), divided by 3 cards */
    flex: 0 0 calc((100% - 40px) / 3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #081230;
    transition: border-color 0.3s;
    cursor: pointer;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}

.ns-showcase-card:hover {
    border-color: rgba(8, 115, 234, 0.25);
}

/* Card Image */
.ns-sc-img {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.ns-sc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.85);
}

.ns-showcase-card:hover .ns-sc-img img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* ── PRODUCT BADGES ── */
.ns-sc-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Card Content */
.ns-sc-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ns-sc-tag {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0873EA;
    font-weight: 600;
    margin-bottom: 10px;
}

.ns-sc-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.ns-sc-detail {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
    line-height: 1.6;
}

/* Card Footer & Arrow */
.ns-sc-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 20px;
}

.ns-sc-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    color: white;
}

.ns-showcase-card:hover .ns-sc-arrow {
    border-color: #0873EA;
    background: #0873EA;
}

.ns-sc-arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* =========================================
   RESPONSIVE DESIGN (FIXED FOR ELEMENTOR)
========================================= */

/* Tablet Responsive (Exactly 2 Cards for 768px to 1024px) */
@media (max-width: 1024px) {
    .ns-showcase-card {
        /* Container width minus 1 gap (20px), divided by 2 */
        flex: 0 0 calc((100% - 20px) / 2) !important;
    }
}

/* Mobile Responsive (Exactly 1 Card & Center Controls for 767px and below) */
@media (max-width: 767px) {
    .ns-showcase-controls {
        justify-content: center !important;
        margin-bottom: 0;
        margin-top: 24px;
        order: 1; /* ← pushes controls below the track */
    }

    .ns-showcase-track-wrap {
        order: 0; /* ← track stays above */
    }

    .ns-showcase-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .ns-showcase-card {
        /* Full container width */
        flex: 0 0 100% !important;
    }
}