.productListPage {
    padding-bottom: 10px;
}

.productListHeader {
    background-color: #F4F4F4;
    color: #333;
    padding: 5px;
    line-height: 24px;
    font-size: 11px;
    font-weight: normal;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

    .productListHeader .filterSortContainer {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .productListHeader .title {
        color: #000;
        font-size: 20px;
        font-weight: normal;
        line-height: 22px;
        padding: 0px 5px;
    }
    .productListHeader select {
        font-size: 10px;
        color: #333333;
        width: 150px;
        height: auto;
        line-height: normal;
        margin-bottom: 0px;
        padding: 2px;
    }
    .productListHeader .btnInStock {
        padding-left:10px;
    }
    .productListHeader .btnInStock button {
        margin-top:2px;
    }

.sortContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
}

.sortContainer .form-select {
    width: 160px;
}

.productListLayout {
    display: grid;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.filterContainer {
    position: relative;
    background: #fff;
}

.closeFilters {
    display: none;
}

.priceFilter {
    margin-bottom: 20px;
}

.priceFilter h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 16px;
}

.priceValues {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#budget-range {
    position: relative;
    --price-from-position: 0%;
    --price-until-position: 100%;
    border: none;
    border-radius: inherit;
    width: 80%;
    height: 12px;
    margin: 40px auto 15px;
}

#budget-range::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 12px;
    border-radius: 3px;
    background: linear-gradient(to right,
        #d9d9d9 0 var(--price-from-position),
        #333 var(--price-from-position) var(--price-until-position),
        #d9d9d9 var(--price-until-position) 100%);
}

#budget-range input[type="range"] {
    position: absolute;
    left: 0;
    top: -5px;
    width: 100%;
    height: 22px;
    margin: 0;
    pointer-events: none;
    appearance: none;
    background: transparent;
}

#budget-range input[type="range"]::-webkit-slider-runnable-track {
    height: 12px;
    background: transparent;
}

#budget-range input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    appearance: none;
    pointer-events: auto;
    cursor: pointer;
    margin-top: -5px;
}

#budget-range input[type="range"]::-moz-range-track {
    height: 12px;
    background: transparent;
}

#budget-range input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    pointer-events: auto;
    cursor: pointer;
}

#budget-range .priceValues span {
    position: absolute;
    bottom: 100%;
    transform: translateX(-50%);
    border: none;
    font-family: "Open Sans Condensed", sans-serif;
    font-size: 15px;
    font-weight: 300;
    white-space: nowrap;
    padding: 4px 8px 10px;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    z-index: 1;
}

#budget-range .priceValues span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333;
}

#priceFromValue {
    left: var(--price-from-position);
}

#priceUntilValue {
    left: var(--price-until-position);
}

.clearPrice {
    display: inline-block;
    font-size: 13px;
    margin-top: 5px;
}
section.productListSection {
    width: 100%;
    max-width: none;
    padding: 0;
}
.productCategoryMenu .catMenu {
    margin-bottom: 0;
}

.productListContainer {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 30px);
}

.productListItem {
    min-width: 0;
}

.listProductImageBox {
    position: relative;
}

.listProductImage {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.listProductImage img {
    position: absolute;
    inset: 0;
    width: 90%;
    height: 90%;
    margin: auto;
    object-fit: contain;
}

.productInfo {
    padding-top: 10px;
}

.productTitle {
    margin-bottom: 3px;
    color: #333333;
    font-weight: bold;
    font-size: 13px;
    line-height: 1.3;
}

.productBrand,
.listPrice {
    color: #777;
    font-size: 13px;
    margin-top: 4px;
}

.listPrice {
    color: #666666;
    font-size: 12px;
    line-height: 16px;
    border-bottom: 1px solid #999999;
    padding-bottom: 3px;
    background: url(../images/layout/icon_next.gif) no-repeat right 3px;
}

.turnOffTradePrices .dealerPrice {
    display: none;
}

.pageNav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    font-size: 14px;
}

.pageNav .currentPage {
    min-width: 28px;
    padding: 4px 8px;
    text-align: center;
    background: var(--cara-green);
    color: #fff;
}

.productFilterOverlay {
    display: none;
}

@media (max-width: 1199.98px) {
    .productListContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .productListPage {
        padding-top: 5px;
    }
    .productListHeader {
        font-size: 14px;
        line-height: 34px;
        display: block;
    }
        .productListHeader .btnInStock button {
            padding: 10px 20px;
            height: 34px;
        }
        .productListHeader .title {
            line-height: 34px;
        }
        .productListHeader select {
            font-size: 16px;
        }
    .productListLayout {
        display: block;
    }

    .filterContainer {
        position: fixed;
        z-index: 301;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(340px, 88vw);
        overflow-y: auto;
        padding-top: 48px;
        transform: translateX(-105%);
        transition: transform .25s ease;
    }

    .filterContainer.showFilter {
        transform: translateX(0);
    }

    .filterContainer .productCategoryMenu {
        display: none;
    }

    .closeFilters {
        display: block;
        position: absolute;
        top: 5px;
        right: 12px;
        border: 0;
        background: transparent;
        font-size: 30px;
    }

    .productFilterOverlay {
        position: fixed;
        z-index: 300;
        inset: 0;
        background: rgba(0, 0, 0, .42);
    }

    .productFilterOverlay.showOverlay {
        display: block;
    }
    #sidebarCollapse {
        margin-bottom: 15px;
    }

    .filterSortContainer {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .sortContainer {
        margin-left: unset;
    }

    .sortContainer span {
        display: none;
    }

    .sortContainer .form-select {
        width: 140px;
    }

    .productListContainer {
        gap: 20px 12px;
    }

    .productTitle {
        font-size: 18px;
    }
}
