/* ================================================================
   ACTIESCOOTERS — Filter Components
   Sidebar filters, color swatches, price slider, active tags
   ================================================================ */

/* ── Filter Sidebar ── */
.acties-filter-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

/* ── Filter Close Button (mobile only) ── */
.acties-filter-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 4px;
    transition: color 0.2s;
}

.acties-filter-close:hover {
    color: var(--text-primary);
}

/* ── Filter Toggle Button (mobile only) ── */
.acties-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.acties-filter-toggle:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

/* ── Filter Block (card) ── */
.acties-filter-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
}

.acties-filter-block__title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

/* ── Price Slider ── */
.acties-price-slider-wrap {
    position: relative;
    padding-top: 40px;
}

.acties-range-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 16px;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: 1;
}

.acties-range-fill {
    position: absolute;
    top: 16px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    pointer-events: none;
}

.acties-range {
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 32px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    margin: 0;
    outline: none;
    z-index: 2;
}

.acties-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid #fff;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.25);
    transition: box-shadow 0.2s;
}

.acties-range::-webkit-slider-thumb:hover,
.acties-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 5px rgba(255, 77, 0, 0.35);
}

.acties-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid #fff;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.25);
    transition: box-shadow 0.2s;
}

.acties-range::-moz-range-thumb:hover {
    box-shadow: 0 0 0 5px rgba(255, 77, 0, 0.35);
}

.acties-price-inputs {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.acties-price-inputs input[type="number"] {
    width: 100%;
    max-width: none;
    min-width: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 6px 10px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.acties-price-inputs input[type="number"]::-webkit-inner-spin-button,
.acties-price-inputs input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.acties-price-inputs input[type="number"]:focus {
    border-color: var(--border-hover);
}

.acties-price-prefix,
.acties-price-sep {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.acties-price-prefix {
    justify-self: end;
}

.acties-price-sep {
    justify-self: center;
}

/* ── Color Swatches ── */
.acties-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.acties-swatch-item {
    display: contents;
}

.acties-filter-colors button.acties-swatch {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    border-radius: 50% !important;
    border: 2px solid var(--border-subtle);
    cursor: pointer;
    transition: transform 0.18s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)),
                border-color 0.18s;
    flex-shrink: 0;
    padding: 0 !important;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: content-box;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    background-origin: border-box !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.acties-filter-colors button.acties-swatch:hover {
    transform: scale(1.1);
    border-color: var(--border-hover);
    background-color: inherit;
}

.acties-filter-colors button.acties-swatch.is-active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.35);
    transform: scale(1.08);
}

/* ── Brand Swatches ── */
.acties-brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.acties-brand-item {
    display: contents;
}

.acties-filter-brands button.acties-brand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(50% - 4px) !important;
    height: 90px !important;
    border-radius: 8px !important;
    border: 2px solid var(--border-subtle) !important;
    background: #ffffff !important;
    cursor: pointer;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
    padding: 5px !important;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    line-height: normal;
}

.acties-filter-brands button.acties-brand-btn:hover {
    transform: scale(1.05);
    border-color: var(--border-hover) !important;
}

.acties-filter-brands button.acties-brand-btn.is-active {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.35);
}

.acties-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.acties-brand-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Hide checkbox visually - brand filter uses button-style clicks */
.acties-brand-checkbox-hidden {
    display: none;
}

/* ── Sort Select ── */
.acties-sort-select {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.acties-sort-select:focus,
.acties-sort-select:hover {
    border-color: var(--border-hover);
}

/* ── Active Filter Tags ── */
.acties-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.acties-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px 4px 12px;
    line-height: 1;
}

.acties-tag-remove {
    cursor: pointer;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.acties-tag-remove:hover {
    opacity: 1;
}

.acties-clear-all {
    color: var(--accent-secondary);
    background: none;
    border: none;
    padding: 4px 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    align-self: center;
}

.acties-clear-all:hover {
    opacity: 0.75;
}

/* ── Products Loading State ── */
.acties-products-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ── Result Count ── */
.acties-result-count {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Grid Swatches (product card color dots) ── */
.acties-grid-swatches {
    display: flex;
    gap: 6px;
    padding: 8px 0 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.acties-grid-swatch {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
    display: inline-block;
    overflow: hidden;
    box-sizing: content-box;
    background-origin: border-box !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.acties-grid-swatch:hover {
    transform: scale(1.2);
    border-color: var(--accent-primary, #FF4D00);
}

.acties-grid-swatch.is-active {
    border-color: var(--accent-primary, #FF4D00);
    box-shadow: 0 0 0 2px rgba(255, 77, 0, 0.3);
}

/* ── Parts Navigation Context ── */
.acties-parts-nav__context {
    margin: 0 0 12px;
}

.acties-parts-nav__eyebrow {
    margin: 0 0 4px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.acties-parts-nav__description {
    margin: 0 0 12px;
    max-width: 62ch;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* ── Mobile Apply Button ── */
.acties-filter-apply {
    display: none;
}

/* ── Mobile Breakpoint ── */
@media (max-width: 768px) {
    .acties-price-inputs {
        grid-template-columns: auto minmax(0, 1fr) auto auto minmax(0, 1fr);
        gap: 10px 6px;
    }

    .acties-price-inputs input[type="number"] {
        font-size: 0.82rem;
        padding-inline: 8px;
    }

    .acties-filter-toggle {
        display: inline-flex;
    }

    .acties-filter-close {
        display: block;
    }

    .acties-filter-apply {
        display: block;
        width: 100%;
        background: var(--accent-primary);
        color: #fff;
        border: none;
        border-radius: var(--radius-full);
        font-family: var(--font-body);
        font-size: 0.95rem;
        font-weight: 600;
        padding: 12px 24px;
        cursor: pointer;
        margin-top: 8px;
        transition: opacity 0.2s;
    }

    .acties-filter-apply:hover {
        opacity: 0.88;
    }
}
