:root {
  --primary-2: 9, 4, 169;
  --primary-2-shade-1: 9, 4, 169, 0.2;
}


.part-item {
    height: 70px;
    min-width: 200px;
    padding: 10px;
    background-color: white;
    border-bottom: 0.2px solid rgb(234, 234, 234);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border-radius: 5px;
}

.part-item-title {
    font-size: 14px;
    font-weight: 600;
    /* text uppercase  */
    text-transform: uppercase;
}

/* //active  */
.part-item.active {
    border-left: 5px solid red;
    margin-left: 20px;
    box-shadow: 0 0 10px 2px rgba(68, 68, 68, 0.11);
    transform: scale(1.05);
}

.part-item.active .part-item-title {
    color: rgb(var(--primary-2));
    font-size: 16px;
    font-weight: 600;
}

.part-item:hover .part-item-title{
    color: rgb(var(--primary-2));

}


/* filter css ------------------------------------------------------------------ */
.filter-title {
    font-size: 14px;
}

/* range input  */
.range-container {
    width: 200px;
    font-weight: bold;
    /* color: orange; */
    color: #ff3d3d;
}

.price-values {
    margin-bottom: -8px;
    font-size: 12px;
    text-align: left;
}

.slider-wrapper {
    position: relative;
    height: 40px;
}

.slider-track {
    position: absolute;
    height: 8px;
    border-radius: 10px;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1;
    /* background: linear-gradient(to right, orange, #444, orange); */
    background: linear-gradient(to right, #ff3d3d, #444, #ff3d3d); /* temporary, overwritten by JS */
}

/* Common input range styling */
input[type="range"] {
    /* -webkit-appearance: none; */
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 40px;
    background: none;
    z-index: 2;
}

/* Custom thumb (WebKit) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    border-radius: 6px;
    background-color: #ff3d3d;
    border: 2px solid white;
    outline: 2px solid #ff3d3d;
    cursor: pointer;
    pointer-events: all;
    margin-top: -6px;
}

/* Custom thumb (Firefox) */
input[type="range"]::-moz-range-thumb {
    height: 15px;
    width: 15px;
    border-radius: 6px;
    background-color: #ff3d3d;
    border: 2px solid white;
    outline: 2px solid #ff3d3d;
    cursor: pointer;
    pointer-events: all;
}

/* Hide default track */
input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
}

input[type="range"]::-moz-range-track {
    background: transparent;
}

/* When checkbox is checked, style the adjacent label */
.form-check-input:checked + .form-check-label {
    color: orange;
    font-weight: 600;
}


/* product section --------------------------------------------------------------------- */
.card-product-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.card-product-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.card-product-wrapper img:first-child {
    z-index: 1;
    opacity: 1;
}

.card-product-wrapper .img-hover {
    z-index: 2;
    opacity: 0;
}

.card-product-wrapper:hover img:first-child {
    opacity: 0;
}

.card-product-wrapper:hover .img-hover {
    opacity: 1;
}

.text-orange {
    color: orange;
    font-weight: 600;
}

/* scroll overlay--------------------- y*/
.scroll-fade-overlay {
    position: relative;
}

.scroll-fade-overlay::before,
.scroll-fade-overlay::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 4;
    pointer-events: none;
}

.scroll-fade-overlay::before {
    top: 0;
    background: linear-gradient(to bottom, white, rgba(255,255,255,0));
}

.scroll-fade-overlay::after {
    bottom: 0;
    background: linear-gradient(to top, white, rgba(255,255,255,0));
}

/* scroll overlay--------------------- x*/
.scroll-fade-overlay-x {
    position: relative;
}

.scroll-fade-overlay-x::before,
.scroll-fade-overlay-x::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
    z-index: 4;
    pointer-events: none;
}

.scroll-fade-overlay-x::before {
    left: 0;
    background: linear-gradient(to right, white, rgba(255,255,255,0));
}

.scroll-fade-overlay-x::after {
    right: 0;
    background: linear-gradient(to left, white, rgba(255,255,255,0));
}

/* mobile view */
@media (max-width: 768px) {
    .scroll-fade-overlay-x::before,
    .scroll-fade-overlay-x::after {
        width: 0px;
    }
}

/* Ensure .scroll-body scrolls independently */
.scroll-body {
    overflow-y: auto;
    height: 100%;
}


/* total section ----------------------------------------------- */
.selected-product-close {
    cursor: pointer;
}
#floating-total-box{
    transition: all 0.5s;
}

#floating-total-box.collapsed {
    width: 25px !important;
    overflow: hidden;
    padding: 0 !important;
}

#total-box.collapsed {
    width: 0 !important;
    overflow: hidden;
    padding: 0 !important;
}

@media (max-width: 768px) {
    #floating-total-box {
        width: 280px !important;
    }
    #floating-total-box h5 {
        font-size: 18px;
    }
}    