/* =============================================
   NS Filter — Outdoor & Offroad
   ============================================= */

#ns-filter {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* ── Header ── */
.ns-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 12px;
    margin-bottom: 8px;
    border-bottom: 2px solid #1A6338;
}

.ns-filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A6338;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ns-filter-clear-all {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: color .15s;
}
.ns-filter-clear-all:hover {
    color: #c00;
}

/* ── Active Tags ── */
.ns-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
}

.ns-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #1A6338;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: background .15s;
}
.ns-active-tag::after {
    content: '✕';
    font-size: 10px;
    opacity: .7;
}
.ns-active-tag:hover {
    background: #c00;
    color: #fff;
}

/* ── Filter Groups ── */
.ns-filter-group {
    border-bottom: 1px solid #e5e5e5;
}

.ns-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

.ns-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform .2s;
}

.ns-filter-group.ns-open .ns-arrow {
    transform: rotate(-135deg);
}

.ns-filter-body {
    display: none;
    padding: 0 0 12px;
    max-height: 280px;
    overflow-y: auto;
}

.ns-filter-group.ns-open .ns-filter-body {
    display: block;
}

/* Scrollbar styling */
.ns-filter-body::-webkit-scrollbar {
    width: 4px;
}
.ns-filter-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ── Filter Items (checkbox style) ── */
.ns-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    text-decoration: none;
    color: #444;
    transition: color .1s;
    cursor: pointer;
}
.ns-filter-item:hover {
    color: #1A6338;
}

.ns-item-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid #ccc;
    border-radius: 3px;
    transition: all .15s;
    position: relative;
}

.ns-filter-item.ns-active .ns-item-check {
    background: #1A6338;
    border-color: #1A6338;
}
.ns-filter-item.ns-active .ns-item-check::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ns-item-label {
    flex: 1;
    font-size: 13px;
    line-height: 1.3;
}

.ns-item-count {
    font-size: 11px;
    color: #999;
    min-width: 20px;
    text-align: right;
}

.ns-filter-item.ns-active {
    color: #1A6338;
    font-weight: 600;
}


/* ── Layout: filter naast producten ── */
#cat-filter-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

#cat-filter-wrapper > .products,
#cat-filter-wrapper > ul.products {
    flex: 1;
    min-width: 0;
}


/* ── Responsive ── */
@media (max-width: 768px) {
    #ns-filter {
        width: 100%;
        min-width: unset;
        margin-bottom: 20px;
        display: none;
    }

    #ns-filter.ns-filter--open {
        display: block;
    }

    #cat-filter-wrapper {
        flex-direction: column;
    }

    .ns-filter-mobile-toggle {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: #1A6338;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 12px;
        width: 100%;
        justify-content: center;
    }
    .ns-filter-mobile-toggle i {
        font-size: 16px;
    }
}

@media (min-width: 769px) {
    .ns-filter-mobile-toggle {
        display: none !important;
    }
}


/* ── JS toggle (accordion) ── */
.ns-filter-head:hover {
    color: #1A6338;
}
