.shop-filter-toggle {
    display: none;
}

.shop-filter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
}

.shop-filter .filter {
    position: relative;
}

.shop-filter .select-item, .shop-filter .check-item {
    cursor: pointer;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.shop-filter .select-item:hover, .shop-filter .check-item:hover {
    background-color: #f8f8f8;
}

.shop-filter .select-item.active {
    background-color: #10c956;
    color: white;
}

.shop-filter .check-item {
    padding-left: 30px;
    position: relative;
}

.shop-filter .check-item:before {
    content: '';
    font-size: 1em;
    position: absolute;
    top: calc(50% - 8px);
    left: 5px;
    height: 16px;
    width: 16px;
    border: 1px solid #d6d6d6;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-filter .check-item.active:before {
    content: '\2713';
    background-color: #10c956;
    color: white;
    border-color: #10c956;
    font-size: 1em;
}

.shop-filter .filter-header {
    display: none;
}

.shop-filter button {
    margin-right: 10px;
    position: relative;
    background-color: #f8f8f8;
    color: #000;
    border: none;
    padding: 10px 30px 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.shop-filter button:after {
    content: "\e877";
    font-family: "entypo-fontello";
    font-size: 1em;
    color: #a5a5a5;
    position: absolute;
    right: 10px;
}

.shop-filter .filter-collection > button svg {
    position: absolute;
    right: 8px;
}

.shop-filter .filter-collection > button:after {
    content: '';
}

.shop-filter .sort > button:after {
    content: '\e86e';
}

.shop-filter .search > button:after {
    content: '\e803';
}

.shop-filter .visible > button:after {
    transform: rotate(180deg);
}

.shop-filter .search.visible > button:after {
    transform: rotate(0deg);
}

.shop-filter button.active span:before {
    content: "\2715";
    font-size: 12px;
    color: white;
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #10c956;
}

.shop-filter .sort .select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-filter .filter-box, .shop-filter .filter-collection-box {
    display: none;
    position: absolute;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: max-content;
    margin: 0 auto;
    z-index: 20;
}

.shop-filter .filter-box {
    min-width: 120px;
    overflow: hidden;
}

.shop-filter .search .filter-box {
    min-width: 250px;
}

.shop-filter .range-box {
    padding: 10px;
}

.shop-filter .filter-collection > div {
    display: none;
}

.shop-filter .filter-collection.visible > div {
    display: block;
}

.shop-filter .filter-collection-box {
    padding: 10px 10px 0 10px;
    min-width: 320px;
}

.shop-filter .filter-collection-box .filter {
    margin-bottom: 10px;
}

.shop-filter .filter-collection-box button {
    width: 100%;
}

.shop-filter .filter-collection-box .filter-box {
    position: relative;
    box-shadow: none;
    padding: 0;
    width: 100%;
    min-width: 300px;
    height: auto;
    max-height: 200px;
    overflow-y: auto;
}


.shop-filter .filter.visible .filter-box {
    display: block;
}

.shop-filter .range-container {
    padding: 20px 10px;
    position: relative;
}

.shop-filter .range-slider {
    position: relative;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
}

.shop-filter .range-track {
    position: absolute;
    height: 4px;
    background-color: #10c956;
    border-radius: 2px;
}

.shop-filter .range-input {
    position: absolute;
    top: -10px;
    width: 100%;
    height: 20px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}

.shop-filter .range-input::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    left: 20px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #10c956;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.shop-filter .range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #10c956;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.shop-filter .range-slider .min-range {
    left: -5px;
}

.shop-filter .input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
}

.shop-filter .input-group {
    flex: 1;
}

.input-group label {
    display: block;
    color: #10c956;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.shop-filter .input-wrapper {
    position: relative;
}

#top .shop-filter .input-wrapper > input[type='number'] {
    width: 100%;
    padding: 15px 40px 15px 15px;
    font-size: 18px;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

#top .shop-filter .input-wrapper .input[type='number']:focus {
    outline: none;
    border-color: #f8f9fa;
    background-color: white;
}

.shop-filter .input-wrapper .symbol {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.shop-filter .separator {
    color: #ebebeb;
    font-size: 20px;
    font-weight: bold;
    margin: 0 10px;
    align-self: flex-end;
    padding-bottom: 15px;
}

.shop-filter #search-input {
    background-color: white!important;
}

.cannazen_sorter-external {
    margin-left: auto;
}

@media screen and (max-width: 900px) {
    .shop-filter-toggle {
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        border: 1px solid #d8d8d8;
        border-radius: 5px;
        padding: 10px 15px;
        font-size: 16px;
        color: #474747;
        background-color: #f8f8f8;
        transition: background-color 0.3s ease;
    }

    .shop-filter {
        position: fixed;
        display: none;
        justify-content: flex-end;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        z-index: 999;
        padding: 0;
        box-sizing: border-box;
    }
    .shop-filter.visible {
        display: flex;
    }

    .shop-filter .filter-overlay {
        background-color: rgba(0, 0, 0, 0.5);
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .shop-filter-inner {
        padding-top: 20px;
        height: 100%;
        width: 85%;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        z-index: 2;
        overflow-y: scroll;
    }

    .shop-filter .filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        height: 50px;
    }

    .shop-filter .filter-header h4 {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
        color: #474747;
    }

    .shop-filter .filter-header .filter-reset {
        display: none;
        color: #f34e4e;
        text-decoration: underline;
        cursor: pointer;
    }

    .shop-filter-inner .filter {
        margin-bottom: 10px;
    }

    .shop-filter button {
        width: 100%;
        text-align: left;
    }

    .shop-filter .filter-collection > div {
        display: block;
    }

    .shop-filter .filter-collection > button {
        display: none;
    }

    .shop-filter .filter-collection-box {
        position: relative;
        padding: 0;
        box-shadow: none;
        width: 100%;
    }

    .shop-filter .filter-collection-box .filter {
        margin-right: 8px;
    }

    .shop-filter .filter-box {
        position: relative;
        width: 100%;
        min-width: auto;
        margin-top: 2px;
        padding: 10px;
        border-radius: 5px;
        box-shadow: none;
    }

    .cannazen_sorter-external {
        margin: 20px 5px 20px auto;
    }
}