/* =============================================
   ALX Product Filters — Frontend Styles
   All visual properties use CSS custom properties
   for total admin-panel customization control
   ============================================= */

/* === WRAPPER === */
.alx-pf-wrapper {
    --alx-wrapper-bg: #ffffff;
    --alx-wrapper-padding: 20px;
    --alx-wrapper-border-color: #e5e7eb;
    --alx-wrapper-border-width: 1px;
    --alx-wrapper-border-radius: 8px;
    --alx-wrapper-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --alx-wrapper-gap: 20px;
    --alx-btn-bg: #2563eb;
    --alx-btn-color: #ffffff;
    --alx-btn-radius: 6px;
    --alx-btn-font-size: 14px;
    --alx-btn-padding: 10px 20px;
    --alx-btn-hover-bg: #1d4ed8;
    --alx-reset-bg: transparent;
    --alx-reset-color: #ef4444;
    --alx-reset-border: 1px solid #ef4444;
    --alx-reset-hover-bg: #fef2f2;

    background: var(--alx-wrapper-bg);
    padding: var(--alx-wrapper-padding);
    border: var(--alx-wrapper-border-width) solid var(--alx-wrapper-border-color);
    border-radius: var(--alx-wrapper-border-radius);
    box-shadow: var(--alx-wrapper-shadow);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    color-scheme: only light;
    overflow: visible;
    width: 100%;
}
.alx-pf-wrapper *, .alx-pf-wrapper *::before, .alx-pf-wrapper *::after { box-sizing: border-box; }

/* Force Oxygen/Breakdance shortcode wrapper to fill flex parent */
.oxy-shortcode:has(.alx-pf-wrapper),
.bde-shortcode:has(.alx-pf-wrapper) {
    width: 100%;
    align-self: stretch;
}

/* === LAYOUTS === */
.alx-pf-facets-container { display: flex; flex-direction: column; gap: var(--alx-wrapper-gap); }
.alx-pf-layout-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}
.alx-pf-layout-horizontal .alx-pf-facet {
    flex: 1 1 calc(100% / var(--alx-columns, 3) - var(--alx-wrapper-gap));
    min-width: 180px;
}

/* === FACET === */
.alx-pf-facet {
    --alx-heading-ff: inherit;
    --alx-heading-fs: 15px;
    --alx-heading-fw: 600;
    --alx-heading-color: #333333;
    --alx-heading-margin: 0 0 12px 0;
    --alx-item-ff: inherit;
    --alx-item-fs: 14px;
    --alx-item-fw: 400;
    --alx-item-color: #555555;
    --alx-item-color-active: #ffffff;
    --alx-item-bg: transparent;
    --alx-item-bg-active: #2563eb;
    --alx-item-border-color: #d1d5db;
    --alx-item-border-active: #2563eb;
    --alx-item-border-width: 1px;
    --alx-item-border-radius: 4px;
    --alx-item-padding: 6px 10px;
    --alx-item-margin: 0 0 6px 0;
    --alx-item-gap: 8px;
    --alx-count-color: #999999;
    --alx-count-fs: 12px;
    --alx-slider-track: #e5e7eb;
    --alx-slider-range: #2563eb;
    --alx-slider-handle: #ffffff;
    --alx-slider-handle-border: #2563eb;
    --alx-slider-handle-size: 20px;
    --alx-slider-track-h: 6px;
    --alx-swatch-size: 32px;
    --alx-swatch-radius: 50%;
    --alx-swatch-bw: 2px;
    --alx-swatch-bc: #d1d5db;
    --alx-swatch-ba: #333333;
    --alx-star-size: 20px;
    --alx-star-color: #fbbf24;
    --alx-star-empty: #d1d5db;
    --alx-search-h: 40px;
    --alx-search-radius: 6px;
    --alx-width: 100%;

    width: var(--alx-width);
}

/* === GROUP HEADER === */
.alx-pf-group-header {
    margin: 0 0 var(--alx-wrapper-gap, 20px) 0;
    padding-bottom: var(--alx-wrapper-gap, 20px);
    border-bottom: 1px solid var(--alx-wrapper-border-color, #e5e7eb);
}
.alx-pf-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}
.alx-pf-group-icon { display: flex; align-items: center; flex-shrink: 0; }
.alx-pf-group-icon img { max-width: 24px; max-height: 24px; }
.alx-pf-group-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 4px;
}
.alx-pf-group-desc a { color: var(--alx-btn-bg, #2563eb); }

/* === HEADING === */
.alx-pf-facet-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: var(--alx-heading-margin);
}
.alx-pf-facet-icon-custom {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.alx-pf-facet-icon-custom img { max-width: 20px; max-height: 20px; }
.alx-pf-facet-label {
    font-family: var(--alx-heading-ff);
    font-size: var(--alx-heading-fs);
    font-weight: var(--alx-heading-fw);
    color: var(--alx-heading-color);
    line-height: 1.3;
}

/* === FACET DESCRIPTION === */
.alx-pf-facet-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin: -8px 0 10px 0;
}
.alx-pf-facet-desc a { color: var(--alx-item-border-active, #2563eb); }

/* Facet content - must be visible for dropdown panels to show */
.alx-pf-facet-content {
    overflow: visible;
}
/* Scroll only on list elements when max-height is set via CSS var */
.alx-pf-facet-content .alx-pf-list,
.alx-pf-facet-content .alx-pf-swatches,
.alx-pf-facet-content .alx-pf-label-cloud,
.alx-pf-facet-content .alx-pf-image-grid,
.alx-pf-facet-content .alx-pf-rating-list {
    max-height: var(--alx-max-height, none);
    overflow-y: auto;
    overflow-x: hidden;
}
.alx-pf-facet-content::-webkit-scrollbar { width: 5px; }
.alx-pf-facet-content::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.alx-pf-facet-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Direction */
.alx-pf-dir-horizontal { display: flex; flex-wrap: wrap; gap: var(--alx-item-gap); }
.alx-pf-dir-horizontal .alx-pf-list { display: flex; flex-wrap: wrap; gap: var(--alx-item-gap); }

/* === CHECKBOX === */
.alx-pf-checkbox-list, .alx-pf-radio-list { list-style: none; margin: 0; padding: 0; }
.alx-pf-checkbox-list .alx-pf-item, .alx-pf-radio-list .alx-pf-item { margin: var(--alx-item-margin); }

.alx-pf-checkbox-label, .alx-pf-radio-label {
    display: flex;
    align-items: center;
    gap: var(--alx-item-gap);
    cursor: pointer;
    font-family: var(--alx-item-ff);
    font-size: var(--alx-item-fs);
    font-weight: var(--alx-item-fw);
    color: var(--alx-item-color);
    padding: var(--alx-item-padding);
    border-radius: var(--alx-item-border-radius);
    transition: background 0.15s, color 0.15s;
}
.alx-pf-checkbox-label:hover, .alx-pf-radio-label:hover { background: rgba(0,0,0,0.02); }

.alx-pf-checkbox-label input, .alx-pf-radio-label input { display: none; }

/* Checkmark */
.alx-pf-checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: var(--alx-item-border-width) solid var(--alx-item-border-color);
    border-radius: 3px;
    position: relative;
    transition: all 0.15s;
    background: var(--alx-item-bg);
}
.alx-pf-checkbox-label input:checked ~ .alx-pf-checkmark {
    background: var(--alx-item-bg-active);
    border-color: var(--alx-item-border-active);
}
.alx-pf-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.alx-pf-checkbox-label input:checked ~ .alx-pf-checkmark::after { display: block; }

/* Radio Mark */
.alx-pf-radio-mark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: var(--alx-item-border-width) solid var(--alx-item-border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.15s;
    background: var(--alx-item-bg);
}
.alx-pf-radio-label input:checked ~ .alx-pf-radio-mark {
    border-color: var(--alx-item-border-active);
}
.alx-pf-radio-mark::after {
    content: '';
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--alx-item-bg-active);
    border-radius: 50%;
    transform: translate(-50%,-50%);
}
.alx-pf-radio-label input:checked ~ .alx-pf-radio-mark::after { display: block; }

.alx-pf-text { flex: 1; }
.alx-pf-count { font-size: var(--alx-count-fs); color: var(--alx-count-color); }
.alx-pf-sublist { list-style: none; margin: 0; padding: 0 0 0 24px; }

/* Item hidden by count=0 */
.alx-pf-item.alx-pf-disabled { opacity: 0.4; pointer-events: none; }

/* === CUSTOM DROPDOWN (no native <select> — no browser flash) === */
.alx-pf-dropdown {
    position: relative;
    width: 100%;
}
.alx-pf-dropdown-trigger {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--alx-item-border-color, #d1d5db);
    border-radius: var(--alx-item-border-radius, 4px);
    font-family: var(--alx-item-ff, inherit);
    font-size: var(--alx-item-fs, 14px);
    color: var(--alx-item-color, #333);
    background: #fff;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
/* Arrow */
.alx-pf-dropdown-trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #666;
    border-bottom: 1.5px solid #666;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s;
}
.alx-pf-dropdown.alx-pf-open .alx-pf-dropdown-trigger::after {
    transform: translateY(-35%) rotate(-135deg);
}
.alx-pf-dropdown.alx-pf-open .alx-pf-dropdown-trigger {
    border-color: var(--alx-item-border-active, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Options panel */
.alx-pf-dropdown-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--alx-item-border-color, #d1d5db);
    border-radius: var(--alx-item-border-radius, 4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px 0;
}
.alx-pf-dropdown.alx-pf-open .alx-pf-dropdown-options {
    display: block;
}
.alx-pf-dropdown-option {
    padding: 8px 12px;
    font-family: var(--alx-item-ff, inherit);
    font-size: var(--alx-item-fs, 14px);
    color: var(--alx-item-color, #333);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.alx-pf-dropdown-option:hover {
    background: #f1f5f9;
}
.alx-pf-dropdown-option.alx-pf-selected {
    background: var(--alx-item-bg-active, #2563eb);
    color: var(--alx-item-color-active, #fff);
}

/* Scrollbar */
.alx-pf-dropdown-options::-webkit-scrollbar { width: 5px; }
.alx-pf-dropdown-options::-webkit-scrollbar-track { background: #f1f5f9; }
.alx-pf-dropdown-options::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* === RANGE SLIDER (Custom div handles — no native inputs visible) === */
.alx-pf-range-slider {
    /* Padding left/right = half handle size so handles don't overflow */
    padding: 4px calc(var(--alx-slider-handle-size, 20px) / 2) 8px;
    overflow: visible;
}
.alx-pf-range-values {
    display: flex;
    justify-content: space-between;
    font-size: var(--alx-item-fs);
    color: var(--alx-item-color);
    font-weight: 600;
    margin-bottom: 12px;
}
.alx-pf-range-sep { color: var(--alx-count-color); }

.alx-pf-range-track {
    position: relative;
    height: var(--alx-slider-track-h, 6px);
    background: var(--alx-slider-track, #e5e7eb);
    border-radius: calc(var(--alx-slider-track-h, 6px) / 2);
    margin: calc(var(--alx-slider-handle-size, 20px) / 2 + 4px) 0;
    cursor: pointer;
    touch-action: none;
}
.alx-pf-range-fill {
    position: absolute;
    height: 100%;
    background: var(--alx-slider-range, #2563eb);
    border-radius: inherit;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

/* Custom div handles */
.alx-pf-handle {
    position: absolute;
    top: 50%;
    width: var(--alx-slider-handle-size, 20px);
    height: var(--alx-slider-handle-size, 20px);
    transform: translate(-50%, -50%);
    background: var(--alx-slider-handle, #ffffff);
    border: var(--alx-slider-handle-bw, 2px) solid var(--alx-slider-handle-border, #2563eb);
    border-radius: var(--alx-slider-handle-radius, 50%);
    box-shadow: var(--alx-slider-handle-shadow, 0 1px 4px rgba(0,0,0,0.15));
    cursor: grab;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    transition: box-shadow 0.15s;
}
.alx-pf-handle:hover {
    box-shadow: var(--alx-slider-handle-hover-shadow, 0 2px 8px rgba(0,0,0,0.25));
}
.alx-pf-handle:active,
.alx-pf-handle.alx-pf-dragging {
    cursor: grabbing;
    box-shadow: var(--alx-slider-handle-hover-shadow, 0 3px 12px rgba(0,0,0,0.3));
}

/* Handle icon */
.alx-pf-handle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--alx-slider-handle-icon-size, 10px);
    height: var(--alx-slider-handle-icon-size, 10px);
    pointer-events: none;
}
.alx-pf-handle-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--alx-slider-handle-icon-color, var(--alx-slider-handle-border, #2563eb));
}

.alx-pf-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.alx-pf-range-inputs input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--alx-item-border-color, #d1d5db);
    border-radius: var(--alx-item-border-radius, 4px);
    font-size: 13px;
    text-align: center;
    transition: none;
}
.alx-pf-range-input-sep { color: var(--alx-count-color); font-weight: 600; }

/* === COLOR SWATCHES === */
.alx-pf-swatches { display: flex; flex-wrap: wrap; gap: var(--alx-item-gap); }
.alx-pf-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--alx-item-border-radius);
    transition: all 0.15s;
}
.alx-pf-swatch:hover { background: rgba(0,0,0,0.04); }
.alx-pf-swatch.active { outline: 2px solid var(--alx-swatch-ba); outline-offset: 2px; }

.alx-pf-swatch-color {
    width: var(--alx-swatch-size);
    height: var(--alx-swatch-size);
    border-radius: var(--alx-swatch-radius);
    background: var(--swatch-color, #ccc);
    border: var(--alx-swatch-bw) solid var(--alx-swatch-bc);
    transition: border-color 0.15s, transform 0.15s;
}
.alx-pf-swatch.active .alx-pf-swatch-color { border-color: var(--alx-swatch-ba); transform: scale(1.1); }
.alx-pf-swatch-label { font-size: 11px; color: var(--alx-item-color); }

/* === RATING === */
.alx-pf-rating-list { display: flex; flex-direction: column; gap: 6px; }
.alx-pf-rating-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--alx-item-border-radius);
    transition: background 0.15s;
}
.alx-pf-rating-item:hover { background: rgba(0,0,0,0.02); }
.alx-pf-rating-item input { display: none; }
.alx-pf-rating-item.active { background: var(--alx-item-bg-active); }
.alx-pf-rating-item.active .alx-pf-rating-text { color: var(--alx-item-color-active); }

.alx-pf-stars { display: flex; gap: 1px; }
.alx-pf-star { font-size: var(--alx-star-size); line-height: 1; }
.alx-pf-star.filled { color: var(--alx-star-color); }
.alx-pf-star.empty { color: var(--alx-star-empty); }
.alx-pf-rating-text { font-size: var(--alx-item-fs); color: var(--alx-item-color); }

/* === SEARCH === */
.alx-pf-search-box { position: relative; }
.alx-pf-search-input {
    width: 100%;
    height: var(--alx-search-h);
    padding: 0 40px 0 14px;
    border: var(--alx-item-border-width) solid var(--alx-item-border-color);
    border-radius: var(--alx-search-radius);
    font-size: var(--alx-item-fs);
    font-family: var(--alx-item-ff);
    color: var(--alx-item-color);
    transition: border-color 0.15s;
}
.alx-pf-search-input:focus { border-color: var(--alx-item-border-active); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.alx-pf-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--alx-count-color);
}

/* Facet-level search */
.alx-pf-facet-search { margin-bottom: 10px; }
.alx-pf-facet-search-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--alx-item-border-color);
    border-radius: var(--alx-item-border-radius);
    font-size: 13px;
}

/* === TOGGLE === */
.alx-pf-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: var(--alx-item-padding);
}
.alx-pf-toggle-input { display: none; }
.alx-pf-toggle-slider {
    width: 44px;
    height: 24px;
    min-width: 44px;
    background: #d1d5db;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
}
.alx-pf-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.alx-pf-toggle-input:checked ~ .alx-pf-toggle-slider { background: var(--alx-item-bg-active); }
.alx-pf-toggle-input:checked ~ .alx-pf-toggle-slider::after { transform: translateX(20px); }
.alx-pf-toggle-text { font-size: var(--alx-item-fs); color: var(--alx-item-color); }

/* === LABEL CLOUD === */
.alx-pf-label-cloud { display: flex; flex-wrap: wrap; gap: var(--alx-item-gap); }
.alx-pf-label-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--alx-item-padding);
    border: var(--alx-item-border-width) solid var(--alx-item-border-color);
    border-radius: var(--alx-item-border-radius);
    background: var(--alx-item-bg);
    color: var(--alx-item-color);
    font-size: var(--alx-item-fs);
    font-family: var(--alx-item-ff);
    cursor: pointer;
    transition: all 0.15s;
}
.alx-pf-label-tag:hover { border-color: var(--alx-item-border-active); }
.alx-pf-label-tag.active {
    background: var(--alx-item-bg-active);
    border-color: var(--alx-item-border-active);
    color: var(--alx-item-color-active);
}
.alx-pf-label-tag .alx-pf-count {
    font-size: 11px;
    background: rgba(0,0,0,0.08);
    padding: 1px 6px;
    border-radius: 8px;
}
.alx-pf-label-tag.active .alx-pf-count { background: rgba(255,255,255,0.2); color: inherit; }

/* === IMAGE GRID === */
.alx-pf-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: var(--alx-item-gap); }
.alx-pf-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: var(--alx-item-border-width) solid var(--alx-item-border-color);
    border-radius: var(--alx-item-border-radius);
    background: var(--alx-item-bg);
    cursor: pointer;
    transition: all 0.15s;
}
.alx-pf-image-item:hover { border-color: var(--alx-item-border-active); }
.alx-pf-image-item.active { border-color: var(--alx-item-border-active); background: var(--alx-item-bg-active); }
.alx-pf-image-item.active .alx-pf-image-label { color: var(--alx-item-color-active); }
.alx-pf-image-item img { width: 100%; height: auto; border-radius: calc(var(--alx-item-border-radius) - 2px); }
.alx-pf-image-label { font-size: 11px; color: var(--alx-item-color); text-align: center; }

/* === NUMBER INPUT === */
.alx-pf-number-input-group { display: flex; align-items: flex-end; gap: 8px; }
.alx-pf-number-field { flex: 1; }
.alx-pf-number-field label { display: block; font-size: 12px; color: var(--alx-count-color); margin-bottom: 4px; }
.alx-pf-number-field input {
    width: 100%;
    padding: 8px 10px;
    border: var(--alx-item-border-width) solid var(--alx-item-border-color);
    border-radius: var(--alx-item-border-radius);
    font-size: var(--alx-item-fs);
    text-align: center;
}
.alx-pf-number-sep { color: var(--alx-count-color); font-weight: 600; margin-bottom: 8px; }

/* === ACTION BUTTONS === */
.alx-pf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--alx-wrapper-gap);
    padding-top: var(--alx-wrapper-gap);
    border-top: 1px solid var(--alx-wrapper-border-color);
}

/* Apply Button */
.alx-pf-apply-btn {
    padding: var(--alx-btn-padding, 10px 20px);
    margin: var(--alx-btn-margin, 0);
    background: var(--alx-btn-bg, #2563eb);
    color: var(--alx-btn-color, #ffffff);
    font-size: var(--alx-btn-font-size, 14px);
    font-weight: var(--alx-btn-font-weight, 600);
    border-width: var(--alx-btn-border-width, 0);
    border-style: solid;
    border-color: var(--alx-btn-border-color, transparent);
    border-radius: var(--alx-btn-border-radius, 6px);
    box-shadow: var(--alx-btn-shadow, none);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    flex: 1;
}
.alx-pf-apply-btn:hover {
    background: var(--alx-btn-hover-bg, #1d4ed8);
    color: var(--alx-btn-hover-color, #ffffff);
}

/* Reset Button */
.alx-pf-reset-btn {
    padding: var(--alx-reset-padding, 10px 20px);
    margin: var(--alx-reset-margin, 0);
    background: var(--alx-reset-bg, transparent);
    color: var(--alx-reset-color, #ef4444);
    font-size: var(--alx-reset-font-size, 14px);
    font-weight: var(--alx-reset-font-weight, 500);
    border-width: var(--alx-reset-border-width, 1px);
    border-style: solid;
    border-color: var(--alx-reset-border-color, #ef4444);
    border-radius: var(--alx-reset-border-radius, 6px);
    box-shadow: var(--alx-reset-shadow, none);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.alx-pf-reset-btn:hover {
    background: var(--alx-reset-hover-bg, #fef2f2);
    color: var(--alx-reset-hover-color, #dc2626);
}

/* === ACTIVE FILTERS TAGS === */
.alx-pf-active-filters,
.alx-pf-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--alx-tag-gap, 6px);
    margin-top: 12px;
}
.alx-pf-active-filters:empty,
.alx-pf-active-tags:empty { display: none; }
.alx-pf-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: var(--alx-tag-padding, 4px 12px);
    background: var(--alx-tag-bg, #eff6ff);
    color: var(--alx-tag-color, #2563eb);
    font-size: var(--alx-tag-font-size, 13px);
    font-weight: var(--alx-tag-font-weight, 500);
    border: var(--alx-tag-border, none);
    border-radius: var(--alx-tag-border-radius, 16px);
    box-shadow: var(--alx-tag-shadow, none);
    cursor: default;
    transition: background 0.15s, color 0.15s;
}
.alx-pf-active-tag:hover {
    background: var(--alx-tag-hover-bg, #dbeafe);
    color: var(--alx-tag-hover-color, var(--alx-tag-color, #2563eb));
}
.alx-pf-active-tag-remove {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1;
    padding: 0 2px;
    border-radius: 50%;
    color: var(--alx-tag-x-color, currentColor);
    transition: background 0.15s, color 0.15s;
}
.alx-pf-active-tag-remove:hover {
    background: rgba(0,0,0,0.06);
    color: var(--alx-tag-x-hover-color, #ef4444);
}

/* === LOADER === */
.alx-pf-loading-overlay {
    position: relative;
}
.alx-pf-loading-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alx-pf-loading-overlay .alx-pf-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 11;
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: alxSpin 0.6s linear infinite;
}
@keyframes alxSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.alx-pf-loading-opacity { opacity: 0.4; transition: opacity 0.2s; pointer-events: none; }

/* === NO RESULTS === */
.alx-pf-no-results { text-align: center; padding: 40px 20px; }

/* === ANIMATIONS === */
.alx-pf-fade-in { animation: alxFadeIn 0.3s ease; }
@keyframes alxFadeIn { from { opacity: 0; } to { opacity: 1; } }

.alx-pf-slide-in { animation: alxSlideIn 0.3s ease; }
@keyframes alxSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .alx-pf-layout-horizontal { flex-direction: column; }
    .alx-pf-layout-horizontal .alx-pf-facet { flex: 1 1 100%; }
    .alx-pf-range-inputs { flex-direction: row; }
}

/* === EMPTY === */
.alx-pf-empty { color: var(--alx-count-color); font-size: 13px; font-style: italic; }

/* === ADMIN NOTICE (frontend) === */
.alx-pf-admin-notice {
    padding: 12px 16px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    font-size: 14px;
}
.alx-pf-admin-notice a { color: #2563eb; font-weight: 600; }
