.search-page {
    background: #fff;
}

.pagination,
.page-item,
.page-link {
    display: none !important;
}

.d-none {
    display: none !important;
}

.search-filter-toolbar-wrap {
    width: 100%;
    margin-bottom: 22px;
}

.search-filter-toolbar-shell {
    position: relative;
    width: 100%;
    display: block;
}

.search-filter-toolbar {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: unset;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.search-filter-toolbar::-webkit-scrollbar {
    display: none;
}

.filter-scroll-btn {
    position: absolute;
    margin-top:-6px;
    top: 50%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #868C98;
    background: #FFFFFF;
    color: #868C98;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease, border-color .2s ease, color .2s ease, background .2s ease;
    font-size: 18px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) scale(.88);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.filter-scroll-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.filter-scroll-prev {
    left: 0;
}

.filter-scroll-next {
    right: 0;
}

.filter-scroll-btn:hover {
    border-color: #354052;
    color: #354052;
    background: #fff;
}

.filter-main-btn {
    height: 42px;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: #354052;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    cursor: pointer;
    transition: .2s ease;
    flex-shrink: 0;
}

.filter-main-btn:hover {
    background: #263244;
}

.custom-select-chip {
    position: relative;
    height: 54px;
    min-width: 190px;
    flex-shrink: 0;
}

.custom-select-sort {
    min-width: 330px;
}

.custom-select-trigger {
    width: 100%;
    height: 42px;
    border: 1px solid #F0F0F0;
    border-radius: 30px;
    background: #F8F8F8;
    color: #0A0D14;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 24px;
    cursor: pointer;
    transition: .2s ease;
    white-space: nowrap;
}

.custom-select-trigger span {
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color:#0A0D14;

}

.custom-select-trigger span b {
    font-weight: 800;
}

.custom-select-trigger i {
    font-size: 14px;
    flex-shrink: 0;
    transition: .2s ease;
}

.custom-select-chip.active .custom-select-trigger {
    background: #fff;
    border-color: #d9dee8;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.custom-select-chip.active .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: fixed;
    min-width: 220px;
    max-width: 340px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eef0f4;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 100000;
}

.custom-select-chip.active .custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-menu::-webkit-scrollbar {
    width: 5px;
}

.custom-select-menu::-webkit-scrollbar-thumb {
    background: #d9dbe1;
    border-radius: 20px;
}

.custom-select-menu button {
    width: 100%;
    min-height: 42px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    padding: 0 13px;
    cursor: pointer;
    transition: .18s ease;
    white-space: nowrap;
}

.custom-select-menu button:hover,
.custom-select-menu button.selected {
    background: #f4f6f9;
}

.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 99998;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-sidebar {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 360px;
    max-width: 100vw;
    background: #fff;
    border-radius: 0 !important;
    z-index: 99999;
    transform: translateX(-100%);
    transition: .28s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filter-sidebar.active {
    transform: translateX(0);
}

.filter-sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.filter-sidebar-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.filter-close-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #111827;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.filter-sidebar-body {
    padding: 0 28px 100px;
    overflow-y: auto;
    flex: 1;
}

.filter-sidebar-body::-webkit-scrollbar {
    width: 5px;
}

.filter-sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}

.filter-sidebar-body::-webkit-scrollbar-thumb {
    background: #d9dbe1;
    border-radius: 20px;
}

.filter-group {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-group:first-child {
    padding-top: 12px;
}

.filter-group-title {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #0A0D14;
}

.filter-group-title span {
    color: #FA3A4D;
}

.filter-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #F8F8F8;
    border-radius: 12px;
    padding: 6px 8px;
    cursor: pointer;
    color: #0A0D14;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    user-select: none;
}

.filter-check input {
    display: none;
}

.custom-check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid #e4e6ec;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}

.filter-check input:checked + .custom-check,
.rating-row input:checked + .custom-check {
    border-color: #4167ff;
    background: #4167ff;
}

.filter-check input:checked + .custom-check::after,
.rating-row input:checked + .custom-check::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.show-more-filter {
    margin-top: 14px;
    border: none;
    background: transparent;
    color: #FA3A4D;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    display: flex;
    align-items: end;
    gap: 8px;
    cursor: pointer;
    padding: 0;
}

.show-more-filter span {
    font-size: 25px;
    line-height: 1;
    font-weight: 300;
    transition: .2s ease;
}

.show-more-filter em {
    font-style: normal;
}

.show-more-filter.active span {
    transform: rotate(45deg);
}

.filter-more-items {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.filter-more-items.active {
    display: flex;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
}

.color-item {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.color-item input {
    display: none;
}

.color-box {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    display: block;
}

.color-item input:checked + .color-box {
    outline: 2px solid #4167ff;
    outline-offset: 3px;
}

.rating-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
}

.rating-row input {
    display: none;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    color: #ff9800;
    line-height: 1;
}

.rating-stars .muted {
    color: #ffdfad;
}

.price-range-design {
    width: 100%;
    padding: 6px 0 14px;
}

.price-range-values {
    width: 100%;
    height: 42px;
    position: relative;
    margin-bottom: 2px;
}

.price-value-bubble {
    position: absolute;
    top: 0;
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 9px;
    border-radius: 9px;
    border: 2px solid #e1e4ea;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    line-height: 1px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 4;
}

.price-value-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 2px solid #e1e4ea;
    border-bottom: 2px solid #e1e4ea;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

.price-range-track {
    position: relative;
    width: 100%;
    height: 5px;
    border-radius: 30px;
    background: #dfe2e8;
    margin-top: 8px;
}

.price-range-active {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 30px;
    background: #4167ff;
    z-index: 1;
}

.price-range-dot {
    position: absolute;
    top: 50%;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 8px solid #fff;
    background: #4167ff;
    box-shadow: 0 8px 22px rgba(65, 103, 255, 0.24);
    transform: translate(-50%, -50%);
    cursor: pointer;
    padding: 0;
    z-index: 3;
    pointer-events: none;
}

.price-range-input {
    position: absolute;
    left: 0;
    top: -12px;
    width: 100%;
    height: 30px;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    z-index: 5;
}

.price-range-input::-webkit-slider-thumb {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
}

.price-range-input::-moz-range-thumb {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
}

.filter-sidebar-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 28px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 -18px 35px rgba(255, 255, 255, 0.92);
}

.clear-filter-btn,
.apply-filter-btn {
    height: 40px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: .2s ease;
}

.clear-filter-btn {
    background: #F8F8F8;
    color: #0A0D14;
}

.clear-filter-btn:hover {
    background: #eeeeee;
}

.apply-filter-btn {
    background: #FA3A4D;
    color: #fff;
}

.apply-filter-btn:hover {
    background: #EC3045;
}

body.filter-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .search-filter-toolbar {
        min-height: 54px;
        gap: 9px;
    }

    .filter-scroll-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 14px;
    }

    .filter-main-btn {
        height: 44px;
        min-width: 104px;
        padding: 0 16px;
        font-size: 14px;
    }

    .custom-select-chip {
        height: 44px;
        min-width: 150px;
    }

    .custom-select-sort {
        min-width: 240px;
    }

    .custom-select-trigger {
        height: 44px;
        padding: 0 18px;
    }

    .custom-select-trigger span {
        font-size: 14px;
    }

    .custom-select-menu {
        min-width: 200px;
        max-width: 290px;
    }

    .filter-sidebar {
        width: 86vw;
        max-width: 86vw;
    }

    .filter-sidebar-header {
        padding: 22px 24px 14px;
    }

    .filter-sidebar-header h3 {
        font-size: 23px;
    }

    .filter-sidebar-body {
        padding: 0 24px 96px;
    }

    .filter-group-title {
        font-size: 17px;
    }

    .filter-check {
        font-size: 14px;
    }

    .filter-sidebar-footer {
        padding: 14px 24px 18px;
    }

    .clear-filter-btn,
    .apply-filter-btn {
        height: 50px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .filter-sidebar {
        width: 88vw;
        max-width: 88vw;
    }

    .filter-sidebar-header {
        padding: 20px 20px 12px;
    }

    .filter-sidebar-body {
        padding: 0 20px 92px;
    }

    .filter-sidebar-footer {
        padding: 13px 20px 16px;
        gap: 10px;
    }

    .filter-sidebar-header h3 {
        font-size: 22px;
    }

    .filter-group-title {
        font-size: 16px;
    }

    .filter-check {
        font-size: 13px;
    }

    .custom-check {
        width: 17px;
        height: 17px;
    }

    .clear-filter-btn,
    .apply-filter-btn {
        height: 48px;
        font-size: 15px;
        border-radius: 13px;
    }
}