/* filter-sidebar.css — Mobile FAB filter button + ẩn nút LỌC của Flatsome */

/* ── Ẩn nút LỌC mặc định của Flatsome trên mobile ── */
@media (max-width: 767px) {
    .category-filtering.category-filter-row {
        display: none !important;
    }
}

/* ── FAB filter button (floating action button) ── */
.mitn-filter-fab {
    display: none; /* ẩn mặc định, chỉ hiện trên mobile qua media query bên dưới */
    position: fixed;
    top: 85px;
    right: 0;
    z-index: 200;
    width: 35px;
    height: 42px;
    border-radius: 8px 0 0 8px;
    background: var(--color-brand-primary, #dd3333);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none !important;
    transition: background 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.mitn-filter-fab:hover,
.mitn-filter-fab:focus-visible {
    background: var(--color-brand-primary-hover, #c12424);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.34);
    color: #fff;
    text-decoration: none;
}

.mitn-filter-fab:active {
    background: var(--color-brand-primary-active, #a51d1d);
    transform: scale(0.93);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

/* Icon bên trong FAB */
.mitn-filter-fab i {
    pointer-events: none;
    line-height: 1;
}

/* Badge số lượng filter đang active */
.mitn-filter-fab__badge {
    display: none;
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--color-brand-secondary, #0b2f73);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    font-family: var(--font-numeric, monospace);
    border: 2px solid #fff;
    pointer-events: none;
}

.mitn-filter-fab__badge.is-active {
    display: block;
}

/* Hiện FAB chỉ trên mobile */
@media (max-width: 767px) {
    .mitn-filter-fab {
        display: flex;
    }
}
