*{
    font-family: "poppins";
    box-sizing: border-box;
}
body{
    margin: 0;
}
#njs-layer{
    overflow: hidden;
    height: 100vh;
    background: #00000082;
}
#njs-header{
    padding: 32px 48px;
    display: grid;
    grid-template-columns: min-content 1fr min-content;
    grid-gap: 12px;
    gap: 12px;
    align-items: end;
    background: white;
}
#njs-main-logo{
    height: 38px;
    width: 148px;
}
#njs-back-button{
    display: none;
}
#njs-input-container{
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--njs-bar);
}
#njs-input-container #search-logo{
    padding: 10px 5px;
}
#njs-searchbox-main{
    flex: 1 1 auto;
    position: relative;
}
#njs-searchbox-main div{
    position: absolute;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 13px 0;
    font: inherit;
    color: #4d5c6d63;
    font-size: 18px;
}
#njs-searchbox-main input{
    position: relative;
    z-index: 1;
    display: block;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    background: none;
    color: #4D5C6D;
    font-size: 18px;
    padding: 0;
}
#njs-header button{
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    align-self: center;
}
#njs-init-search{
    display: flex;
    padding: 0 48px 48px;
    justify-content: space-between;
}
#njs-popular-search{
    width: 220px;
}
#njs-recommended-product{
    width: calc(100% - 250px);
}
#njs-search-results,
#njs-init-content{
    background: white;
}
.njs-title{
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px;
}
#njs-recommended-product .njs-title{
    margin: 0 0 20px;
}
#njs-popular-search button{
    width: 100%;
    text-align: start;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 6px;
}
#njs-popular-search button:hover{
    text-decoration: underline;
}
#njs-popular-search button span{
    width: max-content;
    display: block;
}
#njs-tabs-nav{
    padding: 0 48px;
    margin-bottom: 48px;
    display: flex;
    border-bottom: 1px solid #cbcccd;
    white-space: nowrap;
    overflow-x: auto;
}
#njs-tabs-nav .njs-tabs-item{
    display: flex;
    margin-left: 1em;
    padding: 8px;
    color: #75787a;
    cursor: pointer;
}
#njs-tabs-nav .njs-tabs-item:first-child{
    margin-left: 0;
}
#njs-tabs-nav .njs-tabs-active{
    font-weight: bold;
    color: #1d1d1b;
    border-bottom: 3px solid var(--njs-bar);
}
#njs-tabs-nav .njs-tabs-disabled{
    cursor: not-allowed;
    color: #cbcccd;
}
#njs-result-total{
    margin: 0 48px 20px;
    display: flex;
    justify-content: space-between;
}
#njs-filter-sort{
    position: relative;
}
#njs-filter-sort #njs-main-button-filter{
    background: none;
    border: none;
    display: flex;
    text-align: start;
    gap: 5px;
    color: black;
}
#njs-filter-sort #njs-main-button-filter p{
    margin: 0;
}
#njs-filter-sort #njs-main-button-filter:hover{
    text-decoration: underline;
    cursor: pointer;
}
#njs-filter-sort #njs-main-button-filter img{
    width: 18px;
    height: 18px;
    margin-left: 10px;
}
#njs-filter-sort.active #njs-main-button-filter img{
    transform: rotate(180deg);
}
#njs-filter-sort-options{
    position: absolute;
    width: 250px;
    right: 0;
    display: none;
    flex-direction: column;
    text-align: start;
    border: 1px solid #cbcccd;
    background: #ffffff;
    z-index: 2;
    padding: 5px 16px;
    box-shadow: 0px 6px 20px 0px rgb(70 69 79 / 26%);
    border-radius: 4px;
    top: 35px;
}
#njs-filter-sort.active #njs-filter-sort-options{
    display: flex;
}
#njs-filter-sort-options button{
    text-align: start;
    padding: 14px 0;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 1px solid #cbcccd;
    color: black;
}
#njs-filter-sort-options button:hover{
    text-decoration: underline;
}
#njs-filter-sort-options button:last-child{
    border: none;
}
#njs-filter-price-container .close button{
    display: none;
}
.njs-results{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-gap: 16px;
    padding: 20px;
    margin-bottom: 70px;
}
.njs-result-item{
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    color: #1d1d1b;
    font-size: 14px;
    text-align: left;
    overflow-wrap: break-word;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.4s ease-in-out;
    text-decoration: none;
}
/* .njs-result-item.splide__slide{
    width: 200px;
} */
/* .njs-result-item:hover{
    border-color: #e3383e;
    box-shadow: 0 0 0 1px #e3383e;
} */
.njs-result-item .njs-result-media{
    position: relative;
    margin-bottom: 12px;
    width: 100%;
    padding: 13px;
}
.njs-result-item .njs-result-thumbnail{
    min-height: 158px;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 14px;
}
.njs-result-item .njs-result-thumbnail img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: initial;
    margin: auto;
    position: absolute;
    bottom: 0;
    left: 0;
}
.njs-result-item .njs-result-detail{
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 13px 20px;
}
.njs-result-item .njs-result-title{
    color: var(--njs-title);
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 12px;
    flex: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.njs-result-item .njs-result-description{
    margin-top: auto;
}
.njs-result-item .njs-result-description p{
    margin: 0 0 5px;
}
.njs-result-item .njs-result-description span.link{
    color: #e3383e;
    text-decoration: underline;
    margin-top: 10px;
    display: block;
}
#njs-result-content{
    /* height: 680px; */
    padding: 0 48px 48px;
}
#njs-result-content{
    overflow: auto;
    max-height: calc(100vh - 320px);
    height: 100%;
}
.njs-sale-price{
    display: flex;
    gap: 10px;
}
.njs-regular-price-corsi-pratici{
    margin-bottom: 5px;
}
.njs-sale-price span:first-child{
    color: var(--njs-slashed_price);
    text-decoration: line-through;
}
.njs-sale-price span:last-child{
    color: var(--njs-final_price);
    font-weight: 700;
}
.njs-sale-badge{
    position: absolute;
    background: var(--njs-discount_box);
    color: var(--njs-discount_box_text);
    padding: 3px 7px;
    left: 20px;
    bottom: 20px;
    font-weight: bold;
    font-size: 12px;
    z-index: 1;
    border-radius: 5px;
}
#njs-include-price-results{
    display: flex;
    gap: 20px;
}
#njs-floating-filter-container{
    display: none;
}
#njs-filter-price-container{
    width: 300px;
}
#njs-filter-results{
    width: 100%;
    /* width: calc(100% - 320px); */
}
#njs-word-suggestion-container{
    grid-column: 2;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    align-content: space-between;
    padding: 0;
    gap: 8px;
}
#njs-word-suggestion-container button{
    border: 1px solid;
    padding: 5px 14px;
    color: #75787a;
    border-radius: 50px;
}
#njs-word-suggestion-container button mark{
    background: none;
    font-weight: 700;
    color: #75787a;
}
#njs-word-suggestion-container button:hover mark,
#njs-word-suggestion-container button:hover{
    color: #000;
    cursor: pointer;
}
#njs-recommended-product .splide__list{
    padding: 20px !important;
}
#njs-recommended-product .splide__arrow--prev{
    left: -3em;
}
#njs-recommended-product .splide__arrow--next{
    right: -3em;
}
#njs-recommended-product .splide__arrow{
    background: none;
    opacity: 1;
}
#njs-recommended-product .splide__arrow svg{
    fill: var(--njs-bar);
    height: 4.2em;
    width: 2.2em;
}
#njs-recommended-product .splide__arrow:disabled,
#njs-recommended-product .splide__arrow:hover:not(:disabled){
    opacity: 1;
}
#njs-recent-search-word-container{
    grid-column: 2;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    align-content: space-between;
    padding: 0;
    gap: 8px;
}
#njs-recent-search-word-container div{
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    align-content: space-between;
    padding: 0;
    gap: 8px;
}
#njs-recent-search-word-container .njs-title{
    font-size: 14px;
    color: gray;
    margin: 0 10px 0 0;
}
#njs-recent-search-word-container .njs-recent-search-word{
    border: 1px solid;
    color: #75787a;
    display: flex;
    border-radius: 50px;
    align-items: center;
}
#njs-recent-search-word-container .njs-recent-search-word:hover{
    color: #000;
    cursor: pointer;
}
#njs-recent-search-word-container .njs-recent-search-word span:nth-of-type(1){
    padding: 5px 15px;
    display: block;
    width: max-content;
}
#njs-recent-search-word-container .njs-recent-search-word span:nth-of-type(2){
    padding: 5px 8px;
    display: flex;
}
#njs-recent-search-word-container a{
    display: block;
    color: #e3383e;
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
}
#njs-recent-search-word-container a:hover{
    text-decoration: underline;
}
#njs-recent-search-word-container .njs-recent-search-word img{
    width: 20px;
}
#njs-filter-price-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#njs-filter-price-header img{
    width: 20px;
    height: 20px;
}
#njs-filter-price-range{
    margin-top: 30px;
}
#njs-range-slider-container {
    position: relative;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

#njs-range-slider {
    width: 90%;
    height: 10px;
    position: relative;
    border-radius: 20px;
    border: 1px solid #e3383e;
}

#njs-range-track {
    height: 100%;
    position: absolute;
    border-radius: 20px;
    background-color: #e3383e;
}

#njs-range-slider-container input {
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    top: 50%;
    transform: translateY(-50%);
}

#njs-range-slider-container input::-webkit-slider-thumb {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    border: 3px solid gray;
    background-color: #ffffff;
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    margin-bottom: 1px;
}

#njs-range-slider-container input::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    border: 3px solid gray;
    background-color: #ffffff;
    pointer-events: auto;
    -moz-appearance: none;
    cursor: pointer;
    margin-top: 30%;
}

#njs-price-result-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

#njs-range-slider-container .njs-min-value,
#njs-range-slider-container .njs-max-value {
    padding: 6px 9px;
    background: #e3383e;
    border-radius: 7px;
    color: white;
    display: flex;
    font-weight: 600;
}

#njs-range-price-tooltip {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  margin-top: 25px;
}
#njs-range-slider-container .njs-range-tooltip-value{
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    display: flex;
}
#njs-range-slider-container .njs-range-tooltip-value span:first-child{
  width: 2px;
  height: 5px;
  background: #e5e6e6;
  display: block;
  position: relative;
  top: -10px;
}
#njs-range-price-tooltip .njs-range-tooltip-value:nth-of-type(1){
  align-items: start;
}
#njs-range-price-tooltip .njs-range-tooltip-value:nth-of-type(1) span:last-child{
    position: absolute;
    top: 35px;
    left: -10px;
}
#njs-range-price-tooltip .njs-range-tooltip-value:nth-of-type(9) span:last-child{
    position: absolute;
    top: 35px;
}
#njs-range-price-tooltip .njs-range-tooltip-value:nth-of-type(17) span:last-child{
    position: absolute;
    top: 35px;
    right: -10px;
}
#njs-range-price-tooltip .njs-range-tooltip-value:nth-of-type(17){
  align-items: end;
}
#njs-range-price-tooltip .njs-range-tooltip-value:nth-of-type(1) span:first-child,
#njs-range-price-tooltip .njs-range-tooltip-value:nth-of-type(9) span:first-child,
#njs-range-price-tooltip .njs-range-tooltip-value:nth-of-type(17) span:first-child{
  height: 10px;
}
@media screen and (max-width : 800px) {
    #njs-header{
        padding: 4px 0 0;
        display: block;
    }
    #njs-main-logo{
        display: none;
    }
    #njs-header button{
        display: none;
    }
    /* #njs-word-suggestion-container button{
        display: block;
    } */
    #njs-header #njs-back-button{
        display: none;
    }
    #njs-input-container #njs-back-button{
        display: block;
        height: 35px;
        width: 35px;
        margin: 5px;
        padding: 5px;
        align-self: center;
    }
    #njs-input-container #search-logo{
        order: 3;
        padding: 6px;
        width: 35px;
        height: 35px;
        align-self: center;
    }
    #njs-searchbox-main input{
        font-size: 14px;
    }
    #njs-searchbox-main div{
        display: none;
    }
    #njs-tabs-nav{
        padding: 0 10px;
        margin-bottom: 16px;
        font-size: 15px;
    }
    #njs-result-total{
        margin: 0 16px 10px;
        font-size: 13px;
    }
    #njs-filter-sort #njs-main-button-filter{
        font-size: 13px;
    }
    #njs-filter-sort-options button{
        font-size: 13px;
        padding: 11px 0;
    }
    #njs-result-content{
        padding: 0 15px 40px;
    }
    #njs-result-content,
    #njs-result-content.is-scrollable{
        max-height: calc(100vh - 150px);
        overflow: auto;
    }
    .njs-result-title{
        font-size: 14px;
    }
    #njs-include-price-results{
        display: block;
    }
    #njs-filter-results{
        width: 100%;
    }
    #njs-floating-filter-container{
        display: flex;
        justify-content: center;
        position: fixed;
        width: 100%;
        bottom: 30px;
        left: 0;
        z-index: 2;
    }
    #njs-floating-filter-container button{
        background: #e3383e;
        border: 1px solid #e3383e;
        padding: 10px 18px;
        border-radius: 36px;
        display: flex;
        color: white;
        font-weight: 700;
        gap: 4px;
        align-items: center;
    }
    #njs-filter-price-container{
        width: 100%;
        position: fixed;
        background: #000000b0;
        left: 0;
        bottom: 0;
        height: 100%;
        display: none;
        flex-direction: column;
        justify-content: end;
        z-index: 3;
    }
    #njs-filter-price-container.show{
        display: flex;
    }
    #njs-filter-price-container .njs-backdrop{
        background: white;
        height: 90%;
        border-radius: 10px 10px 0 0;
        padding: 20px;
    }
    #njs-filter-price-container .njs-backdrop .close{
        text-align: end;
    }
    #njs-filter-price-container .close button{
        background: none;
        border: none;
        padding: 0;
        display: inline-block;
    }
    #njs-init-search{
        display: block;
        padding: 0;
    }
    #njs-popular-search {
        padding: 13px 13px 20px;
        box-shadow: 0px 6px 12px 0px rgba(0,0,0,.06);
        margin-bottom: 30px;
        width: 100%;
    }
    #njs-popular-search div{
        display: flex;
        flex-flow: row;
        align-items: center;
        gap: 8px;
        overflow: auto;
    }
    #njs-popular-search .njs-title{
        display: block;
        width: 100%;
        font-size: 14px;
        margin: 0;
        font-weight: 600;
        color: black;
        margin-bottom: 10px;
    }
    #njs-popular-search button{
        border: 1px solid;
        padding: 5px 14px;
        color: #75787a;
        border-radius: 50px;
        margin-bottom: 0;
    }
    #njs-recommended-product{
        width: 100%;
        height: calc(100vh - 230px);
        overflow: auto;
        padding-bottom: 40px;
    }
    .njs-has-suggestions #njs-recommended-product{
        height: calc(100vh - 280px);
    }
    #njs-recommended-product .njs-title{
        font-size: 16px;
        margin: 0 0 10px;
        padding: 0 13px;
    }
    #njs-recommended-product-carousel{
        padding: 0 13px;
    }
    #njs-recommended-product .splide__list{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        grid-gap: 10px;
        margin-bottom: 20px;
    }
    #njs-recommended-product .splide__arrows{
        display: none;
    }
    #njs-recommended-product .splide__slide{
        width: 100% !important;
        margin-right: 0 !important;
    }
    #njs-recommended-product .njs-title{
        font-size: 16px;
    }
    #njs-recent-search-word-container{
        padding: 15px;
        gap: 12px 8px;
    }
    #njs-recent-search-word-container .njs-title{
        order: 1;
        width: 50%;
        font-weight: 600;
        color: black;
    }
    #njs-recent-search-word-container div{
        order: 3;
        display: flex;
        flex-flow: row;
        align-items: center;
        gap: 8px;
        overflow: auto;
    }
    #njs-recent-search-word-container a{
        order: 2;
        width: 44%;
        margin: 0;
        text-align: end;
    }
}

@media screen and (max-width: 476px) {
    .njs-result-item .njs-result-thumbnail{
        min-height: 200px;
    }
    #njs-filter-sort #njs-main-button-filter p span{
        display: inline-block;
    }
    #njs-filter-sort #njs-main-button-filter{
        max-width: 260px;
    }
    #njs-filter-sort-options{
        top: 44px;
    }
}