/**
 * Nett Carousel - Shared Styles
 * Provides horizontal scroll/swipe carousel layout for grid widgets.
 */

/* ==========================================
   CAROUSEL WRAPPER
   ========================================== */
.nett-carousel-wrapper {
    position: relative;
}

/* ==========================================
   CAROUSEL TRACK (applied to grid container)
   ========================================== */
.nett-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nett-carousel-track::-webkit-scrollbar {
    display: none;
}

.nett-carousel-track > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* ==========================================
   NAVIGATION BUTTONS
   ========================================== */
.nett-carousel-nav {
    display: flex;
    gap: 8px;
    z-index: 2;
}

.nett-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #374151;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.nett-carousel-btn:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.nett-carousel-btn.nett-carousel-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.nett-carousel-btn i {
    font-size: 14px;
    line-height: 1;
}

/* ==========================================
   NAV POSITION: TOP RIGHT
   ========================================== */
.nett-carousel-wrapper.nett-nav-top-right {
    padding-top: 48px;
}

.nett-nav-top-right .nett-carousel-nav {
    position: absolute;
    top: 0;
    right: 0;
}

/* ==========================================
   NAV POSITION: TOP LEFT
   ========================================== */
.nett-carousel-wrapper.nett-nav-top-left {
    padding-top: 48px;
}

.nett-nav-top-left .nett-carousel-nav {
    position: absolute;
    top: 0;
    left: 0;
}

/* ==========================================
   NAV POSITION: SIDES (left & right of carousel)
   ========================================== */
.nett-nav-sides .nett-carousel-nav {
    display: contents;
}

.nett-nav-sides .nett-carousel-prev {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.nett-nav-sides .nett-carousel-next {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

/* On mobile, pull side buttons inside when there's no room */
@media (max-width: 767px) {
    .nett-nav-sides .nett-carousel-prev {
        left: 4px;
    }
    .nett-nav-sides .nett-carousel-next {
        right: 4px;
    }
}
