/* ============================================================
   Nexsky — Filter Panel (product_list.html, category.html)
   Loaded AFTER inline <style> blocks; wins by cascade order
   and by specificity (2 classes vs 1).
   ============================================================ */

/* ---------- Container ---------- */
.filter-sidebar.filter-sidebar {
    background: var(--surface, #14181f);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    font-family: var(--font-body, 'IRANSans', sans-serif);
    transition: background 0.3s, border-color 0.3s;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,240,255,0.3) transparent;
}
body.light-mode .filter-sidebar.filter-sidebar {
    background: #ffffff;
    border-color: #E2E8F0;
    box-shadow: 0 4px 20px rgba(15,23,42,0.06);
}
.filter-sidebar.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}
.filter-sidebar.filter-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,240,255,0.3);
    border-radius: 3px;
}

/* ---------- Section separator ---------- */
.filter-sidebar .sidebar-filter-item + .sidebar-filter-item {
    border-top: 1px solid var(--border, rgba(255,255,255,0.06));
    padding-top: 16px;
    margin-top: 4px;
}
body.light-mode .filter-sidebar .sidebar-filter-item + .sidebar-filter-item {
    border-top-color: #F1F5F9;
}

/* ---------- Labels ---------- */
.filter-sidebar .sidebar-filter-item label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-secondary, #9aa3b2);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-sidebar .sidebar-filter-item label i {
    font-size: 0.75rem;
    opacity: 0.6;
    color: var(--primary, #00f0ff);
}
body.light-mode .filter-sidebar .sidebar-filter-item label i {
    color: #0891B2;
}

/* ---------- Inputs, selects ---------- */
.filter-sidebar .sidebar-filter-item input,
.filter-sidebar .sidebar-filter-item select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-light, rgba(255,255,255,0.12));
    background: var(--bg-secondary, rgba(255,255,255,0.03));
    color: var(--text, #fff);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.filter-sidebar .sidebar-filter-item select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%239aa3b2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 36px;
    cursor: pointer;
}
.filter-sidebar .sidebar-filter-item input::placeholder {
    color: var(--text-muted, #64748B);
    opacity: 0.7;
}
.filter-sidebar .sidebar-filter-item input:focus,
.filter-sidebar .sidebar-filter-item select:focus {
    border-color: var(--primary, #00f0ff);
    box-shadow: 0 0 0 3px rgba(0,240,255,0.12);
    background: var(--bg-secondary, rgba(255,255,255,0.05));
}
body.light-mode .filter-sidebar .sidebar-filter-item input,
body.light-mode .filter-sidebar .sidebar-filter-item select {
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: #0F172A;
}
body.light-mode .filter-sidebar .sidebar-filter-item select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: left 14px center;
}
body.light-mode .filter-sidebar .sidebar-filter-item input:focus,
body.light-mode .filter-sidebar .sidebar-filter-item select:focus {
    background: #ffffff;
    border-color: #0891B2;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}

/* ---------- Price range ---------- */
.filter-sidebar .price-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ---------- Apply button ---------- */
.filter-sidebar .sidebar-actions-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}
.filter-sidebar .sidebar-actions-top button {
    width: 100%;
    min-height: 46px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary, #00f0ff), #0ea5e9);
    color: #001018;
    font-weight: 800;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(0,240,255,0.28);
}
.filter-sidebar .sidebar-actions-top button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,240,255,0.4);
}
body.light-mode .filter-sidebar .sidebar-actions-top button {
    background: linear-gradient(135deg, #0891B2, #0E7490);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(8,145,178,0.25);
}
body.light-mode .filter-sidebar .sidebar-actions-top button:hover {
    box-shadow: 0 10px 24px rgba(8,145,178,0.35);
}

/* ---------- Reset link ---------- */
.filter-sidebar .reset-btn {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    color: var(--text-secondary, #9aa3b2);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-sidebar .reset-btn:hover {
    border-color: rgba(255,80,100,0.4);
    color: #ff7b8a;
    background: rgba(255,80,100,0.06);
}
body.light-mode .filter-sidebar .reset-btn {
    border-color: #E2E8F0;
    color: #64748B;
}
body.light-mode .filter-sidebar .reset-btn:hover {
    border-color: rgba(220,38,38,0.4);
    color: #DC2626;
    background: rgba(220,38,38,0.05);
}

/* ---------- Accordion groups ---------- */
.filter-sidebar .filter-group {
    border-top: 1px solid var(--border, rgba(255,255,255,0.06));
    margin-top: 4px;
    padding-top: 4px;
}
body.light-mode .filter-sidebar .filter-group {
    border-top-color: #F1F5F9;
}
.filter-sidebar .filter-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text, #fff);
    list-style: none;
    transition: color 0.2s;
}
.filter-sidebar .filter-group summary::-webkit-details-marker { display: none; }
.filter-sidebar .filter-group summary:hover {
    color: var(--primary-light, #60f3ff);
}
body.light-mode .filter-sidebar .filter-group summary:hover {
    color: #0891B2;
}
.filter-sidebar .filter-group summary span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-sidebar .filter-group summary span i {
    font-size: 0.75rem;
    color: var(--primary, #00f0ff);
    opacity: 0.75;
}
body.light-mode .filter-sidebar .filter-group summary span i {
    color: #0891B2;
}
.filter-sidebar .filter-group summary > i.fa-chevron-down {
    font-size: 0.7rem;
    color: var(--text-secondary, #9aa3b2);
    transition: transform 0.25s ease;
}
.filter-sidebar .filter-group[open] summary > i.fa-chevron-down {
    transform: rotate(180deg);
}
.filter-sidebar .filter-group-body {
    padding: 4px 0 12px;
}
.filter-sidebar .filter-group-body .sidebar-filter-item + .sidebar-filter-item {
    border-top: none;
    padding-top: 12px;
    margin-top: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .filter-sidebar * { transition: none !important; }
}

/* ---------- Mobile: adapt container inside bottom sheet ---------- */
@media (max-width: 899px) {
    .filter-sidebar.filter-sidebar {
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        padding: 18px 16px;
        max-height: none;
        position: static;
        box-shadow: none;
    }
}

/* ============================================================
   Filter groups — enhanced v2
   Overrides the earlier basic .filter-group rules by cascade order.
   ============================================================ */

.filter-sidebar .filter-group {
    border: 1px solid transparent;
    border-radius: 12px;
    margin: 2px 0;
    padding: 0;
    background: transparent;
    transition: background 0.2s, border-color 0.2s;
    overflow: hidden;
}
body.light-mode .filter-sidebar .filter-group {
    border-color: transparent;
}

.filter-sidebar .filter-group:hover {
    background: rgba(255,255,255,0.02);
}
body.light-mode .filter-sidebar .filter-group:hover {
    background: #F8FAFC;
}

.filter-sidebar .filter-group[open] {
    background: rgba(0,240,255,0.04);
    border-color: rgba(0,240,255,0.18);
}
body.light-mode .filter-sidebar .filter-group[open] {
    background: rgba(8,145,178,0.05);
    border-color: rgba(8,145,178,0.20);
}

.filter-sidebar .filter-group summary {
    position: relative;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text, #fff);
    list-style: none;
    border-radius: 12px;
    transition: color 0.2s;
}
.filter-sidebar .filter-group summary::-webkit-details-marker { display: none; }

/* Accent bar on the right (RTL) when group is open */
.filter-sidebar .filter-group summary::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    width: 3px;
    height: 60%;
    background: var(--primary, #00f0ff);
    border-radius: 3px;
    transition: transform 0.25s ease;
}
.filter-sidebar .filter-group[open] summary::before {
    transform: translateY(-50%) scaleY(1);
}

.filter-sidebar .filter-group summary span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-sidebar .filter-group summary span i {
    font-size: 0.75rem;
    color: var(--primary, #00f0ff);
    opacity: 0.75;
}
body.light-mode .filter-sidebar .filter-group summary span i {
    color: #0891B2;
}

/* Chevron in a circular pill */
.filter-sidebar .filter-group summary > i.fa-chevron-down {
    font-size: 0.7rem;
    color: var(--text-secondary, #9aa3b2);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s, color 0.25s;
}
body.light-mode .filter-sidebar .filter-group summary > i.fa-chevron-down {
    background: #F1F5F9;
    color: #64748B;
}
.filter-sidebar .filter-group[open] summary > i.fa-chevron-down {
    transform: rotate(180deg);
    background: rgba(0,240,255,0.15);
    color: var(--primary, #00f0ff);
}
body.light-mode .filter-sidebar .filter-group[open] summary > i.fa-chevron-down {
    background: rgba(8,145,178,0.15);
    color: #0891B2;
}

/* Body — indented, hairline separator on top */
.filter-sidebar .filter-group-body {
    padding: 4px 14px 14px;
    border-top: 1px solid var(--border, rgba(255,255,255,0.06));
    margin-top: 2px;
}
body.light-mode .filter-sidebar .filter-group-body {
    border-top-color: #E2E8F0;
}

/* ---------- Auto-submit loading state ---------- */
.filter-sidebar.filter-loading {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.15s;
}


/* ============================================================
   Active filter chips (above the product grid)
   ============================================================ */
.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    background: var(--surface, #14181f);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 14px;
}
.active-filter-chips__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #9aa3b2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.active-filter-chips__label i { color: var(--primary, #00f0ff); }
.active-filter-chips__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0,240,255,0.10);
    border: 1px solid rgba(0,240,255,0.25);
    color: var(--primary-light, #60f3ff);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}
.filter-chip:hover {
    background: rgba(0,240,255,0.18);
    border-color: var(--primary, #00f0ff);
    transform: translateY(-1px);
}
.filter-chip i { font-size: 0.72rem; opacity: 0.85; flex-shrink: 0; }
.filter-chip--clear {
    background: rgba(255,80,100,0.08);
    border-color: rgba(255,80,100,0.25);
    color: #ff7b8a;
}
.filter-chip--clear:hover {
    background: rgba(255,80,100,0.15);
    border-color: rgba(255,80,100,0.4);
}
body.light-mode .active-filter-chips {
    background: #ffffff;
    border-color: #E2E8F0;
    box-shadow: 0 4px 18px rgba(15,23,42,0.05);
}
body.light-mode .filter-chip {
    background: rgba(8,145,178,0.08);
    border-color: rgba(8,145,178,0.22);
    color: #0891B2;
}
body.light-mode .filter-chip:hover {
    background: rgba(8,145,178,0.15);
    border-color: #0891B2;
}
body.light-mode .filter-chip--clear {
    background: rgba(220,38,38,0.06);
    border-color: rgba(220,38,38,0.22);
    color: #DC2626;
}
body.light-mode .filter-chip--clear:hover {
    background: rgba(220,38,38,0.12);
    border-color: rgba(220,38,38,0.4);
}
@media (max-width: 600px) {
    .active-filter-chips { padding: 10px 12px; gap: 8px; }
    .active-filter-chips__label { font-size: 0.76rem; }
    .filter-chip { font-size: 0.72rem; padding: 5px 10px; }
    .filter-chip span { max-width: 140px; }
}

/* ============================================================
   FIX-1.3-CLOSE-SHEET  — mobile filter sheet close button.
   Overrides the bare inline rules in category.html / product_list.html
   (loaded earlier in the cascade, equal specificity).
   ============================================================ */
.filter-sheet .close-sheet {
    width: 36px;
    height: 36px;
    padding: 0;
    top: 6px;
    right: 6px;
    border-radius: 50%;
    border: 1px solid var(--border, rgba(255,255,255,0.12));
    background: rgba(255,255,255,0.04);
    color: var(--text, #fff);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.18s;
}
.filter-sheet .close-sheet:hover,
.filter-sheet .close-sheet:focus-visible {
    background: rgba(255,80,100,0.12);
    border-color: rgba(255,80,100,0.35);
    color: #ff7b8a;
    transform: rotate(90deg);
    outline: none;
}
body.light-mode .filter-sheet .close-sheet {
    background: #F1F5F9;
    border-color: #E2E8F0;
    color: #0F172A;
}
body.light-mode .filter-sheet .close-sheet:hover,
body.light-mode .filter-sheet .close-sheet:focus-visible {
    background: rgba(220,38,38,0.08);
    border-color: rgba(220,38,38,0.3);
    color: #DC2626;
}
@media (prefers-reduced-motion: reduce) {
    .filter-sheet .close-sheet,
    .filter-sheet .close-sheet:hover,
    .filter-sheet .close-sheet:focus-visible {
        transition: none;
        transform: none;
    }
}

/* FIX-3-UNSCOPE: FIX-3 rules are global (not .filter-sidebar-scoped)
   because the mobile clone lives inside .filter-sheet.
   ============================================================ */
/* ============================================================
   FIX-3-CUSTOM-SELECT  —  custom dropdown for Category + Brand.
   Desktop only (>=900px). Mobile keeps the native OS picker.
   ============================================================ */
@media (min-width: 0px) {  /* FIX-3-MOBILE-ENHANCE: was 900px */
    .fs-select { position: relative; width: 100%; }
    .fs-select > select.fs-native {
        /* FIX-3-HIDE-NATIVE: display:none still submits with the form.
           Removes the 1x1 ghost box + focus ring the weak rule left behind. */
        display: none !important;
    }
    .fs-trigger {
        width: 100%; min-height: 44px;
        padding: 10px 14px;
        border-radius: 10px;
        border: 1px solid var(--border-light, rgba(255,255,255,0.12));
        background: var(--bg-secondary, rgba(255,255,255,0.03));
        color: var(--text, #fff);
        font-family: inherit; font-size: 0.88rem;
        cursor: pointer;
        display: flex; align-items: center; justify-content: space-between;
        gap: 8px; text-align: right;
        transition: border-color .2s, box-shadow .2s, background .2s;
    }
    .fs-trigger:hover { border-color: var(--border-light); }
    .fs-trigger[aria-expanded="true"] {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(0,240,255,0.12);
        background: var(--bg-secondary);
    }
    body.light-mode .fs-trigger {
        background: #F8FAFC; border-color: #E2E8F0; color: #0F172A;
    }
    body.light-mode .fs-trigger[aria-expanded="true"] {
        border-color: #0891B2;
        box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
        background: #ffffff;
    }
    .fs-trigger-label {
        flex: 1; min-width: 0;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .fs-trigger-arrow {
        flex-shrink: 0; font-size: 0.72rem;
        color: var(--text-secondary, #9aa3b2);
        transition: transform .22s ease, color .22s ease;
    }
    .fs-trigger[aria-expanded="true"] .fs-trigger-arrow {
        transform: rotate(180deg);
        color: var(--primary);
    }
}
.fs-panel {
    position: absolute; z-index: 100;
    top: calc(100% + 6px); left: 0; right: 0;
    max-height: 340px;  /* FIX-3-MOBILE-ENHANCE */
    background: var(--bg-secondary, #0a0e1d);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.25);
    display: flex; flex-direction: column;
    overflow: hidden; padding: 6px;
    font-family: var(--font-body, 'IRANSans', sans-serif);
}
.fs-panel[hidden] { display: none; }
.fs-search-wrap {
    padding: 4px 4px 8px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
    flex-shrink: 0;
}
.fs-search {
    width: 100%; min-height: 36px;
    padding: 6px 10px; border-radius: 8px;
    border: 1px solid var(--border-light, rgba(255,255,255,0.12));
    background: var(--surface, rgba(255,255,255,0.05));
    color: var(--text, #fff);
    font-family: inherit; font-size: 0.84rem;
    outline: none; transition: border-color .2s;
}
.fs-search:focus { border-color: var(--primary); }
.fs-list {
    flex: 1; overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,240,255,0.3) transparent;
    padding: 4px 0; outline: none;
}
.fs-list::-webkit-scrollbar { width: 6px; }
.fs-list::-webkit-scrollbar-thumb { background: rgba(0,240,255,0.3); border-radius: 3px; }
.fs-group-label {
    position: sticky; top: 0; z-index: 1;
    padding: 8px 12px 5px;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-muted, #94a3b8);
    background: var(--bg-secondary, #0a0e1d);
    display: flex; align-items: center; gap: 8px;
}
.fs-group-label::before {
    content: ''; width: 3px; height: 12px;
    background: var(--primary); border-radius: 3px; flex-shrink: 0;
}
.fs-group-count {
    color: var(--primary); font-size: 0.68rem;
    font-weight: 600; opacity: 0.85;
}
.fs-option {
    padding: 8px 12px; border-radius: 6px; cursor: pointer;
    font-size: 0.86rem; color: var(--text-secondary, #9aa3b2);
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    transition: background .12s ease, color .12s ease;
}
.fs-option:hover, .fs-option.is-active {
    background: rgba(0, 240, 255, 0.12); color: var(--text, #fff);
}
.fs-option.is-selected { color: var(--primary); font-weight: 600; }
.fs-option.is-selected::after { content: '\2713'; color: var(--primary); font-weight: 700; }
.fs-empty {
    padding: 22px 12px; text-align: center;
    color: var(--text-muted, #94a3b8); font-size: 0.82rem;
}
body.light-mode .fs-panel {
    background: #ffffff; border-color: #E2E8F0;
    box-shadow: 0 20px 50px rgba(15,23,42,0.15), 0 4px 12px rgba(15,23,42,0.08);
}
body.light-mode .fs-search { background: #F8FAFC; border-color: #E2E8F0; color: #0F172A; }
body.light-mode .fs-search:focus { border-color: #0891B2; }
body.light-mode .fs-group-label { background: #ffffff; color: #64748B; }
body.light-mode .fs-group-count { color: #0891B2; }
body.light-mode .fs-option { color: #475569; }
body.light-mode .fs-option:hover, body.light-mode .fs-option.is-active {
    background: rgba(6,152,214,0.08); color: #0F172A;
}
body.light-mode .fs-option.is-selected { color: #0891B2; }
@media (prefers-reduced-motion: reduce) {
    .fs-trigger, .fs-trigger-arrow, .fs-option { transition: none !important; }
}
/* FIX-3-CUSTOM-SELECT */



/* ============================================================
   FIX-3-FAB-RESTYLE  —  animated filter button.
   Visual only. Position + offsets stay in base.css.
   ============================================================ */
html body .mobile-filter-fab {
    color: #051a20 !important;
    background: linear-gradient(120deg,
        var(--primary-light) 0%,
        var(--primary) 40%,
        var(--primary-dark) 60%,
        var(--primary) 80%,
        var(--primary-light) 100%) !important;
    background-size: 260% 260% !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 20px !important;
    min-height: 48px !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-body, 'IRANSans', sans-serif) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.01em !important;
    box-shadow:
        0 8px 24px rgba(0, 240, 255, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
    overflow: visible !important;
    animation: fabGradientShift 6s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    isolation: isolate;
}

html body .mobile-filter-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--primary), var(--primary-light));
    z-index: -1;
    pointer-events: none;
    animation: fabHaloPulse 2.6s ease-out infinite;
}

html body .mobile-filter-fab > i {
    font-size: 1.05rem !important;
    line-height: 1 !important;
    transform-origin: center;
    animation: fabIconNudge 4.5s ease-in-out infinite;
}

html body .mobile-filter-fab:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(0, 240, 255, 0.55),
        0 6px 16px rgba(0, 0, 0, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
html body .mobile-filter-fab:active {
    transform: scale(0.95);
    box-shadow:
        0 4px 12px rgba(0, 240, 255, 0.40),
        inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

html body.light-mode .mobile-filter-fab {
    color: #ffffff !important;
    box-shadow:
        0 8px 24px rgba(6, 152, 214, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.40) !important;
}
html body.light-mode .mobile-filter-fab:hover {
    box-shadow:
        0 12px 32px rgba(6, 152, 214, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

@keyframes fabGradientShift {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}
@keyframes fabIconNudge {
    0%, 55%, 100% { transform: translateX(0) rotate(0deg); }
    65%           { transform: translateX(-3px) rotate(-8deg); }
    75%           { transform: translateX( 2px) rotate( 6deg); }
    85%           { transform: translateX(-1px) rotate(-3deg); }
}
@keyframes fabHaloPulse {
    0%   { transform: scale(1);    opacity: 0.55; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html body .mobile-filter-fab,
    html body .mobile-filter-fab::before,
    html body .mobile-filter-fab > i {
        animation: none !important;
        transition: none !important;
    }
}
/* FIX-3-FAB-RESTYLE */

/* ============================================================
   FIX-3-CENTER-TRIGGERS
   Center the label text inside .fs-trigger. Arrow stays pinned left
   (RTL: arrow appears on the left, label sits centered in the
   remaining space).
   ============================================================ */
.fs-trigger {
    justify-content: center !important;
    position: relative;
}
.fs-trigger .fs-trigger-label {
    text-align: center !important;
    padding-left: 26px;   /* reserve space for arrow so centering looks balanced */
    padding-right: 0;
}
.fs-trigger .fs-trigger-arrow {
    position: absolute !important;
    left: 14px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
}
.fs-trigger[aria-expanded="true"] .fs-trigger-arrow {
    transform: translateY(-50%) rotate(180deg) !important;
}
/* FIX-3-CENTER-TRIGGERS */


/* ================================================================
   OLIVER-FILTER-PANEL-LIGHT-RED-V1
   Category / product-list filter panel: light-mode cyan -> red.
   Dark mode untouched (vars resolve cyan outside .light-mode).
   ================================================================ */
html body.light-mode .filter-sidebar.filter-sidebar {
    scrollbar-color: rgba(216,27,63,0.35) transparent;
}
html body.light-mode .filter-sidebar.filter-sidebar::-webkit-scrollbar-thumb {
    background: rgba(216,27,63,0.35) !important;
}
html body.light-mode .filter-sidebar .sidebar-filter-item label i,
html body.light-mode .fs-group-count,
html body.light-mode .fs-option.is-selected,
html body.light-mode .fs-option.is-selected::after,
html body.light-mode .active-filter-chips__label i {
    color: #d81b3f !important;
}
html body.light-mode .filter-sidebar .sidebar-filter-item input:focus,
html body.light-mode .filter-sidebar .sidebar-filter-item select:focus,
html body.light-mode .fs-search:focus {
    border-color: #d81b3f !important;
    box-shadow: 0 0 0 3px rgba(255,45,85,0.15) !important;
}
html body.light-mode .filter-sidebar .sidebar-actions-top button {
    background: linear-gradient(135deg, #d81b3f, #a80023) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(216,27,63,0.30) !important;
}
html body.light-mode .filter-sidebar .sidebar-actions-top button:hover {
    box-shadow: 0 10px 24px rgba(216,27,63,0.42) !important;
}
html body.light-mode .fs-option:hover,
html body.light-mode .fs-option.is-active {
    background: rgba(255,45,85,0.10) !important;
    color: #0F172A !important;
}
html body.light-mode .mobile-filter-fab {
    box-shadow:
        0 8px 24px rgba(216,27,63,0.35),
        0 4px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.40) !important;
}
html body.light-mode .mobile-filter-fab:hover {
    box-shadow:
        0 12px 32px rgba(216,27,63,0.45),
        0 6px 16px rgba(0,0,0,0.20),
        inset 0 1px 0 rgba(255,255,255,0.45) !important;
}
html body.light-mode .mobile-filter-fab:active {
    box-shadow:
        0 4px 12px rgba(216,27,63,0.40),
        inset 0 2px 4px rgba(0,0,0,0.25) !important;
}

