/* =====================================================================
   Product filters — shop, category, subcategory and brand pages only.
   Light theme with a gaming "HUD" feel: red→orange accent with glow,
   angled corners, uppercase display headings, tick-marked range track.
   Everything is scoped to #filter-panel (the sidebar / mobile drawer) so
   it wins over the older generic rules in collection.css, which loads
   asynchronously and may arrive after this file.
   ===================================================================== */

:root {
    --gf-bg: #ffffff;
    --gf-surface: #f4f5f7;
    --gf-raise: #eceef2;
    --gf-line: #e7e9ee;
    --gf-line-strong: #d2d6de;
    --gf-text: #14161b;
    --gf-soft: #3b404b;
    --gf-muted: #6b7280;
    --gf-dim: #8a909c;
    --gf-accent: #ff3c3c;
    --gf-accent-2: #ff7a2f;
    --gf-accent-ink: #c81e1e;
    --gf-glow: rgba(255, 60, 60, 0.35);
    --gf-grad: linear-gradient(90deg, #ff3c3c 0%, #ff7a2f 100%);
    --gf-display: "Chakra Petch", "Rajdhani", "Segoe UI", system-ui, -apple-system, sans-serif;
    --gf-cut: 12px;
}

/* ---------- Panel card ---------- */
#filter-panel form .shop-sidebar:first-child {
    margin: 0;
    padding: 0;
    border-top: 0;
}
#filter-panel #dynamic-filter-sidebar {
    position: relative;
    margin: 20px 0 35px;
    padding: 0 16px 14px;
    color: var(--gf-text);
    font-size: 13px;
    background:
        radial-gradient(140% 40% at 100% 0%, rgba(255, 60, 60, 0.07), transparent 60%),
        var(--gf-bg);
    border: 1px solid var(--gf-line);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - var(--gf-cut)) 0, 100% var(--gf-cut), 100% 100%, var(--gf-cut) 100%, 0 calc(100% - var(--gf-cut)));
}
#filter-panel #dynamic-filter-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gf-grad);
    box-shadow: 0 0 14px var(--gf-glow);
}

/* ---------- Header ---------- */
#filter-panel #dynamic-filter-sidebar > .filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 -16px 2px;
    padding: 18px 16px 12px;
    border-bottom: 1px solid var(--gf-line);
}
#filter-panel .filter-header h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 auto 0 0;
    font-family: var(--gf-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gf-text);
}
#filter-panel .filter-header h4::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--gf-accent);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--gf-glow);
}
#filter-panel .filter-active-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--gf-grad);
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    letter-spacing: 0;
    text-align: center;
    box-shadow: 0 0 10px var(--gf-glow);
}
#filter-panel .clear-all-filters {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 5px 9px;
    border: 1px solid var(--gf-line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--gf-muted);
    font-family: var(--gf-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
#filter-panel .clear-all-filters:hover,
#filter-panel .clear-all-filters:focus-visible {
    color: var(--gf-accent-ink);
    border-color: var(--gf-accent);
    background: rgba(255, 60, 60, 0.06);
    box-shadow: none;
}

/* ---------- Groups ---------- */
#filter-panel .filter-group {
    margin: 0;
    padding: 2px 0 12px;
    border-bottom: 1px solid var(--gf-line);
}
#filter-panel .filter-group:last-child {
    border-bottom: 0;
}
#filter-panel .filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 8px;
    cursor: pointer;
    user-select: none;
}
#filter-panel .filter-group-header h5 {
    margin: 0;
    font-family: var(--gf-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gf-text);
    transition: color 0.15s;
}
#filter-panel .filter-group-header:hover h5 {
    color: var(--gf-accent-ink);
}
#filter-panel .toggle-btn {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--gf-line-strong);
    border-radius: 0;
    background: var(--gf-surface);
    color: var(--gf-muted);
    font-size: 10px;
    transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
#filter-panel .filter-group-header:hover .toggle-btn,
#filter-panel .toggle-btn:focus-visible {
    color: var(--gf-accent);
    border-color: var(--gf-accent);
    box-shadow: 0 0 8px var(--gf-glow);
    outline: none;
}
#filter-panel .filter-group-body {
    padding: 2px 0 0;
}

/* ---------- Checkbox / radio lists ---------- */
#filter-panel .filter-values {
    max-height: 228px;
    overflow-x: hidden;
    overflow-y: auto;
    margin-right: -6px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--gf-line-strong) transparent;
}
#filter-panel .filter-values.expanded {
    max-height: none;
}
#filter-panel .filter-values::-webkit-scrollbar {
    width: 4px;
}
#filter-panel .filter-values::-webkit-scrollbar-thumb {
    background: var(--gf-line-strong);
}
#filter-panel .filter-values::-webkit-scrollbar-thumb:hover {
    background: var(--gf-accent);
}
#filter-panel .filter-value {
    padding: 0;
    min-height: 0;
}
#filter-panel .filter-value.disabled {
    opacity: 0.4;
}
#filter-panel .filter-value.disabled .checkbox-label {
    text-decoration: none;
    cursor: not-allowed;
}
#filter-panel .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 6px;
    color: var(--gf-soft);
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
#filter-panel .checkbox-label:hover {
    background: rgba(255, 60, 60, 0.05);
    color: var(--gf-text);
}
#filter-panel .checkbox-label .value-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#filter-panel .checkbox-label .value-count {
    margin-left: auto;
    padding-left: 8px;
    color: var(--gf-dim);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
#filter-panel .checkbox-label:has(input:checked) {
    color: var(--gf-text);
}
#filter-panel .checkbox-label:has(input:checked) .value-name {
    font-weight: 600;
}
#filter-panel .checkbox-label input[type="checkbox"],
#filter-panel .checkbox-label input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 18px;
    min-width: 0;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1.5px solid var(--gf-line-strong);
    border-radius: 3px;
    background: var(--gf-surface) center / 12px 12px no-repeat;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
#filter-panel .checkbox-label input[type="radio"] {
    border-radius: 50%;
}
#filter-panel .checkbox-label:hover input:not(:disabled) {
    border-color: var(--gf-accent);
}
#filter-panel .checkbox-label input[type="checkbox"]:checked {
    border-color: var(--gf-accent);
    background-color: var(--gf-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.18), 0 0 12px var(--gf-glow);
}
#filter-panel .checkbox-label input[type="radio"]:checked {
    border-color: var(--gf-accent);
    background-color: var(--gf-accent);
    box-shadow: inset 0 0 0 4px var(--gf-surface), 0 0 12px var(--gf-glow);
}
#filter-panel .checkbox-label input:focus-visible {
    outline: 2px solid var(--gf-accent);
    outline-offset: 2px;
}

#filter-panel .filter-value-search-wrap {
    margin-bottom: 8px !important;
}
#filter-panel .filter-value-search,
#filter-panel .filter-dropdown {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--gf-line-strong);
    border-radius: 0;
    background-color: var(--gf-surface);
    color: var(--gf-text);
    font-size: 12px;
    box-shadow: none;
}
#filter-panel .filter-value-search {
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='%236a7181' stroke-width='1.6'/%3E%3Cpath d='M10.5 10.5L14 14' stroke='%236a7181' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 14px;
}
#filter-panel .filter-value-search::placeholder {
    color: var(--gf-dim);
}
#filter-panel .filter-value-search:focus,
#filter-panel .filter-dropdown:focus {
    border-color: var(--gf-accent);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.12);
    color: var(--gf-text);
    outline: none;
}
#filter-panel .show-more-btn {
    padding: 8px 0 0;
    border: 0;
    background: none;
    color: var(--gf-accent);
    font-family: var(--gf-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
#filter-panel .show-more-btn:hover {
    color: var(--gf-accent-2);
    text-decoration: none;
}

/* ---------- Range slider: one track, two handles ---------- */
#filter-panel .price-range-slider {
    padding: 2px 0 0;
}
#filter-panel .itg-range {
    position: relative;
    height: 30px;
    margin: 4px 10px 0;
}
#filter-panel .itg-range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    transform: translateY(-50%);
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(20, 22, 27, 0.09) calc(10% - 1px) 10%),
        var(--gf-raise);
    border: 1px solid var(--gf-line);
}
#filter-panel .itg-range-fill {
    position: absolute;
    top: -1px;
    bottom: -1px;
    background: var(--gf-grad);
    box-shadow: 0 0 10px var(--gf-glow);
}
#filter-panel .itg-range-input {
    position: absolute;
    top: 0;
    left: -10px;
    width: calc(100% + 20px);
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    touch-action: none;
    outline: none;
    z-index: 3;
}
#filter-panel .itg-range-high {
    z-index: 4;
}
#filter-panel .itg-range.is-low-on-top .itg-range-low {
    z-index: 5;
}
#filter-panel .itg-range-input::-webkit-slider-runnable-track {
    height: 30px;
    background: transparent;
    border: 0;
}
#filter-panel .itg-range-input::-moz-range-track {
    height: 30px;
    background: transparent;
    border: 0;
}
#filter-panel .itg-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin-top: 5px;
    border: 2px solid var(--gf-accent);
    border-radius: 50%;
    background: radial-gradient(circle, var(--gf-accent) 0 3px, #fff 3.5px);
    box-shadow: 0 0 0 4px rgba(255, 60, 60, 0.15), 0 0 14px var(--gf-glow);
    cursor: grab;
    pointer-events: auto;
    transition: transform 0.12s, box-shadow 0.12s;
}
#filter-panel .itg-range-input::-moz-range-thumb {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gf-accent);
    border-radius: 50%;
    background: radial-gradient(circle, var(--gf-accent) 0 3px, #fff 3.5px);
    box-shadow: 0 0 0 4px rgba(255, 60, 60, 0.15), 0 0 14px var(--gf-glow);
    cursor: grab;
    pointer-events: auto;
    transition: transform 0.12s, box-shadow 0.12s;
}
#filter-panel .itg-range-input:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(255, 60, 60, 0.22), 0 0 18px var(--gf-glow);
}
#filter-panel .itg-range-input:active::-moz-range-thumb {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(255, 60, 60, 0.22), 0 0 18px var(--gf-glow);
}
#filter-panel .itg-range-input:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(255, 60, 60, 0.35), 0 0 14px var(--gf-glow);
}
#filter-panel .itg-range-input:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(255, 60, 60, 0.35), 0 0 14px var(--gf-glow);
}

#filter-panel .price-range-labels,
#filter-panel .spec-range-slider-wrap .range-labels {
    display: flex;
    justify-content: space-between;
    margin: 2px 0 0;
    color: var(--gf-dim);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
#filter-panel .spec-range-slider-wrap {
    padding: 4px 0 2px;
}
#filter-panel .spec-range-slider-wrap .range-labels {
    color: var(--gf-soft);
    font-size: 12px;
}

/* Min / Max price readouts */
#filter-panel .price-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 8px;
    margin-top: 12px;
}
#filter-panel .price-input-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
}
#filter-panel .price-input-label {
    color: var(--gf-dim);
    font-family: var(--gf-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
#filter-panel .price-input-field {
    display: flex;
    align-items: center;
    border: 1px solid var(--gf-line-strong);
    background: var(--gf-surface);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
    transition: border-color 0.15s, box-shadow 0.15s;
}
#filter-panel .price-input-field:focus-within {
    border-color: var(--gf-accent);
    box-shadow: inset 0 0 0 1px var(--gf-accent);
}
#filter-panel .price-input-currency {
    padding-left: 9px;
    color: var(--gf-accent);
    font-size: 13px;
    font-weight: 700;
}
#filter-panel .price-inputs input,
#filter-panel .price-inputs input.form-control {
    width: 100%;
    min-width: 0;
    padding: 8px 8px 8px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--gf-text);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
    -moz-appearance: textfield;
}
#filter-panel .price-inputs input:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
    color: var(--gf-text);
}
#filter-panel .price-inputs input::-webkit-outer-spin-button,
#filter-panel .price-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#filter-panel .price-input-sep {
    width: 10px;
    height: 2px;
    margin-bottom: 17px;
    background: var(--gf-line-strong);
}

/* ---------- Applied filter chips ---------- */
#filter-panel .applied-filters {
    margin: 4px 0 0;
    padding: 12px 0 2px;
    border-top: 1px solid var(--gf-line);
}
#filter-panel .applied-filters h5 {
    margin: 0 0 10px;
    color: var(--gf-dim);
    font-family: var(--gf-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
#filter-panel .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
#filter-panel .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 10px;
    border: 1px solid rgba(255, 60, 60, 0.45);
    border-radius: 0;
    background: rgba(255, 60, 60, 0.07);
    color: var(--gf-accent-ink);
    font-size: 12px;
    font-weight: 600;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
#filter-panel .filter-chip .remove-chip {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(255, 60, 60, 0.16);
    color: var(--gf-accent-ink);
    font-size: 15px;
    line-height: 1;
    transition: background-color 0.15s;
}
#filter-panel .filter-chip .remove-chip:hover,
#filter-panel .filter-chip .remove-chip:focus-visible {
    background: var(--gf-accent);
    color: #fff;
    outline: none;
}

/* ---------- Apply button (mobile drawer only; hidden ≥992px by d-lg-none) ---------- */
#filter-panel .dynamic-apply-filters-btn {
    width: 100%;
    min-height: 48px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--gf-grad);
    color: #fff;
    font-family: var(--gf-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: none;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: filter 0.15s;
}
#filter-panel .dynamic-apply-filters-btn:hover,
#filter-panel .dynamic-apply-filters-btn:active {
    filter: brightness(1.12);
    background: var(--gf-grad);
    color: #fff;
}
#filter-panel .dynamic-apply-filters-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
    box-shadow: none;
}

/* ---------- Floating "Filters" button (mobile) ---------- */
body .mobile-filter-toggle.filter-button {
    overflow: visible;
    border: 1px solid rgba(255, 60, 60, 0.7);
    background: #14161b;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.2), 0 0 18px var(--gf-glow), 0 6px 18px rgba(0, 0, 0, 0.45);
}
body .mobile-filter-toggle.filter-button:hover,
body .mobile-filter-toggle.filter-button:active {
    background: var(--gf-accent);
}
body .mobile-filter-toggle.filter-button[data-count]::after {
    content: attr(data-count);
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--gf-grad);
    color: #fff;
    font: 700 11px/20px var(--gf-display);
    text-align: center;
    box-shadow: 0 0 10px var(--gf-glow);
}

/* ---------- Mobile drawer (≤991px) ---------- */
@media (max-width: 991px) {
    /* Above the site header (z-index 1990) and bottom menu (999),
       below the mobile nav drawer (2000/2001) */
    body .shop-sidebar-inner #filter-panel {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1995;
        width: min(400px, calc(100% - 40px));
        max-width: none;
        padding: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--gf-bg);
        border-right: 1px solid var(--gf-line);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
        visibility: hidden;
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.28s;
    }
    body .shop-sidebar-inner #filter-panel.active {
        visibility: visible;
        transform: translateX(0);
        transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    body .screen-bg {
        z-index: 1994;
        background: rgba(10, 12, 16, 0.55);
    }

    /* Lock the page behind the drawer and hide floating buttons over it */
    body.itg-filter-open {
        overflow: hidden;
    }
    /* Once the page is scrolled the header turns sticky at z-index 9999; drop it
       below the drawer while it's open (same convention as the menu/cart drawers) */
    body.itg-filter-open #stickyheader,
    body.itg-filter-open #stickyheader .main-header {
        z-index: 1990 !important;
    }
    body.itg-filter-open .mobile-filter-toggle,
    body.itg-filter-open #gb-root {
        display: none !important;
    }

    #filter-panel #dynamic-filter-sidebar {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        padding: 0 16px;
        border: 0;
        clip-path: none;
    }
    /* Sticky header: title, Clear All and close stay reachable */
    #filter-panel #dynamic-filter-sidebar > .filter-header {
        position: sticky;
        top: 0;
        z-index: 6;
        padding: 14px 16px 12px;
        background: rgba(255, 255, 255, 0.97);
    }
    #filter-panel .filter-header .close-sidebar {
        position: static;
        display: grid;
        place-items: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        min-width: 0;
        border: 1px solid var(--gf-line-strong);
        border-radius: 0;
        background: var(--gf-surface);
        color: var(--gf-text);
        font-size: 16px;
        box-shadow: none;
        clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    }
    #filter-panel .filter-header .close-sidebar:hover,
    #filter-panel .filter-header .close-sidebar:active {
        border-color: var(--gf-accent);
        color: var(--gf-accent);
    }
    /* Sticky Apply bar, pinned to the bottom even when the list is short */
    #filter-panel .filter-apply-bar {
        position: sticky;
        bottom: 0;
        z-index: 6;
        margin: auto -16px 0;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        background: var(--gf-bg);
        border-top: 1px solid var(--gf-line);
        box-shadow: 0 -8px 20px rgba(20, 22, 27, 0.08);
    }

    /* Bigger touch targets */
    #filter-panel .checkbox-label {
        padding: 10px 8px;
        font-size: 14px;
    }
    #filter-panel .checkbox-label input[type="checkbox"],
    #filter-panel .checkbox-label input[type="radio"] {
        width: 20px;
        height: 20px;
    }
    #filter-panel .filter-group-header h5 {
        font-size: 14px;
    }
    #filter-panel .toggle-btn {
        width: 30px;
        height: 30px;
    }
    #filter-panel .filter-chip {
        font-size: 13px;
    }
    #filter-panel .filter-chip .remove-chip {
        width: 22px;
        height: 22px;
    }
}

/* Larger slider handles for fingers */
@media (pointer: coarse) {
    #filter-panel .itg-range {
        height: 36px;
    }
    #filter-panel .itg-range-input {
        height: 36px;
        left: -13px;
        width: calc(100% + 26px);
    }
    #filter-panel .itg-range-input::-webkit-slider-runnable-track {
        height: 36px;
    }
    #filter-panel .itg-range-input::-moz-range-track {
        height: 36px;
    }
    #filter-panel .itg-range-input::-webkit-slider-thumb {
        width: 26px;
        height: 26px;
        margin-top: 5px;
    }
    #filter-panel .itg-range-input::-moz-range-thumb {
        width: 26px;
        height: 26px;
    }
    #filter-panel .itg-range {
        margin-left: 13px;
        margin-right: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #filter-panel,
    #filter-panel *,
    body .mobile-filter-toggle.filter-button {
        transition: none !important;
        animation: none !important;
    }
}
