:root {
    --filter-width: 300px;
}

#back-filtros {
    display: grid;
    position: relative;
    height: 100%;
    grid-template-columns: 300px 1fr;
}



#filtros {
    position: relative;
    width: var(--filter-width);
    transition: 0.4s ease;
    overflow: hidden;
}

#content-filtro {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    height: calc(100vh - 100px);
    z-index: 10;
    width: 300px;
    overflow: auto;
  }

#content-filtro h3 {
    color: #333;
    font-weight: 600;
    padding-left: 10px;
    font-size: 0.9em;
    padding-top: 9px;
}


.hidePanel {
    width: 0 !important;
    opacity: 0;
}

.showPanel {
    width: var(--filter-width) !important;
    opacity: 1;
}

.resultados-cont {
    position: relative;
    z-index: 10;
    min-height: 800px;
    width: 100%;
}

#sort {
    font-family: 'Poppins', sans-serif;
}

.products-page {
    padding: 0 15px;
}

.filtrar-por {
    margin: 0;
    font-size: 1.2em;
    padding-left: 5px;
}

#filter-cont {
    margin: 7px 20px 15px 20px;
}

.filter-item {
    background-color: #D8E9F9;
    border-radius: 15px;
    min-width: 80px;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 7px;
    margin: 4px 4px;
    font-size: 0.8em;
    text-transform: capitalize;
    color: #1C58B7;
    float: left;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.filter-item img {
    width: 20px;
    padding-left: 7px;
    margin-top: -3px;
}

#range {
    height: 10px;
}

#range .noUi-connect {
    background: #74d130;
}
#range .noUi-touch-area::before, #range .noUi-touch-area::after {
    display:none;
}
#range .noUi-tooltip {
    display: none;
}

#range .noUi-active .noUi-tooltip {
    display: block;
}

#range .noUi-handle {
    height: 28px;
    width: 28px;
    top: -10px;
    right: -14px;
    border-radius: 15px;
}


.bottom-sheet-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    pointer-events: none;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.1s linear;
    z-index: 1001;
}

.bottom-sheet-container.show {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet-container .sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background: #04014e;
}

.bottom-sheet-container .sheet-content {
    width: 100%;
    position: relative;
    background: white;
    max-height: 100vh;
    height: 50vh;
    max-width: 1150px;
    transform: translateY(100%);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: 0.3s ease;
    color: black;
    overflow: hidden;
}

.bottom-sheet-container.show .sheet-content {
    transform: translateY(0%);
}

.bottom-sheet-container.dragging .sheet-content {
    transition: none;
}

.bottom-sheet-container.fullscreen .sheet-content {
    border-radius: 0;
    overflow-y: hidden;
}

.bottom-sheet-container .sheet-header {
    display: flex;
    justify-content: center;
}

.sheet-header .drag-icon {
    cursor: grab;
    user-select: none;
    padding: 15px;
}

.sheet-header .drag-icon span {
    height: 4px;
    width: 40px;
    display: block;
    background: #c7d0e1;
    border-radius: 50px;
}

.bottom-sheet-container .sheet-body {
    height: 100%;
    padding: 15px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bottom-sheet-container .sheet-body::-webkit-scrollbar {
    width: 0;
}

.sheet-body h2 {
    font-size: 1.8rem;
}

.sheet-body p {
    margin-top: 20px;
    font-size: 1.05rem;
}


#filtro-mobile {
    display: none;
    background: white;
    padding: 5px 15px;
    justify-content: space-between;
    align-items: center;
    color: #1C58B7;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #F2F4F7;
    box-sizing: border-box;
}

#filtro-mobile > div {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
}

.back-bottom {
    padding: 10px 35px;
    height: 159px;
}

@media (max-width: 800px) {

    .resultados-cont {
        z-index: 0;
        padding-top: 50px;
    }

    #filtros {
        width: 0;
    }

    #filtro-mobile {
        display: flex;
    }

    .products-page {
        padding: 0;
    }

    #crumbs {
        display: none;
    }

    .ordenar {
        display: none;
    }

    #back-filtros {
        grid-template-columns: 0px 1fr;
    }

    #content-filtro {
        display: none;
    }
}




