:root {
    --primary-color: #F9592A;
    --secondary-color: #EF8911;
    --background-color: #FFFFFF;
    --text-color: #000000;
    --font-family: "Lato", sans-serif;
    --font-style: normal;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    --dark-background-color: #1B1B1D;
    --dark-text-color: #FFFFFF;

    --gray-shade10: #C6C8CF;
    --gray-shade50: #868686;


    --desktop-padding: 76px;
    --tablet-padding: 32px;
    --mobile-padding: 16px;
}

section.filter {
    display: none;
    flex-direction: column;
    gap: 16px; 
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #FFFFFF;
    border-radius: 20px 20px 0 0;
    z-index: 6;
    padding-block: 16px;
    font-size: 14px;
}

.dark-mode section.filter {
    background: var(--dark-background-color);

}

section.filter .filter-draggable {
    width: 50px;
    height: 5px;
    background-color: rgba(163, 163, 163, 0.2);
    border-radius: 20px;
    margin-inline: auto;
    border: 3px solid rgba(163, 163, 163, 0.2);
}

section.filter .filter-header {
    padding: var(--mobile-padding);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-shade10);
}

.dark-mode section.filter .filter-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

section.filter .filter-header .title {
    font-weight: bold;
    font-size: 18px;
}

section.filter .filter-header i {
    font-size: 20px;
}

section.filter .filter-body {
    max-height: 50vh;
    overflow-y: auto;
}

section.filter .filter-body .filter-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dark-mode section.filter .filter-body .filter-section {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

section.filter .filter-body .filter-section .section-title {
    color: var(--gray-shade50);
}

section.filter .filter-body .filter-section .section-body .section-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

section.filter .filter-body .filter-section .section-body .section-items .item {
    border: 1px solid #000;
    padding: 0px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.dark-mode section.filter .filter-body .filter-section .section-body .section-items .item {
    border-color: #FFF;
}

section.filter .filter-body .filter-section .section-body .section-items .item.selected {
    color: #FFF;
    background: #000;
}

.dark-mode section.filter .filter-body .filter-section .section-body .section-items .item.selected {
    color: #000;
    background-color: #FFF;
}

section.filter .filter-body .filter-section .section-body .section-items .item:hover {
    color: #FFF;
    background: #000;
}

.dark-mode section.filter .filter-body .filter-section .section-body .section-items .item:hover {
    color: #000;
    background-color: #FFF;
}

.double-slider-container {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.range-slider {
    position: absolute;
    pointer-events: none;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: transparent;
    z-index: 2;
    outline: none;
    border: none;
    top: 10px;
}

.range-slider::-webkit-slider-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFF;
    cursor: pointer;
    -webkit-appearance: none;
    z-index: 3;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.slider-track {
    position: absolute;
    height: 8px;
    width: 100%;
    background: #ddd;
    z-index: 1;
    border-radius: 5px;
}

.range-slider#minRange::-webkit-slider-thumb {
    z-index: 3;
}

.range-slider#maxRange::-webkit-slider-thumb {
    z-index: 4;
}

section.filter .filter-body .filter-section .section-body .input-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

section.filter .filter-body .filter-section .section-body .input-group input {
    margin: 0;
    background: transparent;
}

.dark-mode section.filter .filter-body .filter-section .section-body .input-group input {
    color: #FFF;
}

section.filter .filter-body .filter-section.f-size .section-body .section-items .item {
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0 10px;
}

section.filter .filter-body .filter-section.f-size .section-body .section-items .item:hover {
    color: #FFF;
    background: var(--primary-color);
}

section.filter .filter-body .filter-section.f-size .section-body .section-items .item.selected{
    color: #FFF;
    background: #F9592A  ;
}

section.filter .filter-body .filter-section.f-color .section-body .section-items .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

section.filter .filter-body .filter-section.f-color .section-body .section-items .checkbox-item input {
    margin-bottom: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

section.filter .filter-body .filter-section.f-color .section-body .section-items .checkbox-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

section.filter .filter-body .filter-section.f-color .section-body .section-items .checkbox-item .color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    background: var(--gray-shade10);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

section.filter .filter-body .filter-section.f-rating .section-body .section-items {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

section.filter .filter-body .filter-section.f-rating .section-body .section-items .item {
    display: flex;
    border: none;
    padding: 0;
}

section.filter .filter-body .filter-section.f-rating .section-body .section-items .item:hover {
    background: none;
    color: #000;
}

section.filter .filter-body .filter-section.f-rating .section-body .section-items .item input {
    margin: 7px;
    accent-color: var(--primary-color);
    width: 30px;
    margin-inline: 0;
    cursor: pointer;
}

section.filter .filter-body .filter-section.f-rating .section-body .section-items .item .star-group {
    display: flex;
}

section.filter .filter-body .filter-section.f-rating .section-body .section-items .item .star-group i {
    font-size: 20px;
    color: var(--gray-shade10);
    cursor: pointer;
}

section.filter .filter-body .filter-section.f-rating .section-body .section-items .item .star-group i.active {
    color: var(--secondary-color);
}

section.filter .filter-body .filter-section.f-rating {
    border: none;
}

section.filter .filter-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    padding-inline: var(--mobile-padding);
    padding-top: 16px;
    gap: 16px;
}

.dark-mode section.filter .filter-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

section.filter .filter-footer button {
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 0;
    background: transparent;
}

section.filter .filter-footer button.reset {
    border: 1px solid #000;
}

.dark-mode section.filter .filter-footer button.reset {
    border-color: #FFF;
    color: #FFF;
}

section.filter .filter-footer button.reset:hover {
    color: #FFF;
    background: #000;
}

.dark-mode section.filter .filter-footer button.reset:hover {
    background: #FFF;
    color: #000;
}

section.filter .filter-footer button.filter {
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    color: #FFFFFF;
}

section.filter .filter-footer button.filter:hover {
    background: var(--primary-color);
    opacity: .5;
}



/* Responsive Media Queries */
@media (min-width: 768px) {
    /* Styles for screens greater than 768px */

}

@media (min-width: 992px) {

    /* Styles for screens greater than 992px */
    section.filter {
        position: unset;
        display: flex;
        flex: 1;
        gap: 16px;
        z-index: 0;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        width: 300px;
        min-width: 300px;
        border-radius: 10px;
        max-height: max-content;
        height: fit-content;
    }

    .dark-mode section.filter {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }

    section.filter .filter-draggable {
        display: none;
    }

    section.filter .filter-header {
        display: none;
    }

    .page-body .has-result .filter .filter-body {
        max-height: max-content;
    }
}

@media (min-width: 1200px) {
    /* Styles for screens greater than 1200px */

}