[type=checkbox]:checked, [type=checkbox]:not(:checked){
    position: absolute;
    opacity: 0;
    z-index: -1;
    padding: 0;
    box-sizing: border-box;
}
[type=checkbox]+i {
    position: relative;
    cursor: pointer;
    display: block;
    height: 30px;
    line-height: 30px;
    padding-left: 20px;
    font-size: inherit;
    -webkit-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -ms-user-select: none;
   
}
[type=checkbox]+i span{font-style: normal;}
[type=checkbox]+i::before{
    content: '';
    position: absolute;
    top: calc(50% - 9px);
    left: 0;
    width: 13px;
    height: 13px;
    z-index: 0;
    border: 1px solid #ddd;
    border-radius: 1px;
    margin: 0;
    -webkit-transition: .2s;
    transition: .2s;
}
[type=checkbox]:checked+i span{color:#EF5350;font-style: normal;}
[type=checkbox]:checked+i::after {
     border: 1px solid #EF5350;
     background: rgba(239, 83, 80, .2);
     border-radius: 100%;
}
[type=checkbox]:checked+i::before {
    left: 4px;
    top: 7px;
    width: 4px;
    height: 8px;
    border: solid #EF5350;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
}
[type=checkbox]:checked~span {
    font-weight: 600;
    color: var(--blue);
}
.categories h1{
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    font-size: 30px;
    position: relative;
    margin: 1rem 0;
}
.box-filter {
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(255,255,255,1);
    box-shadow: 0px 3px 45px 0px rgba(43,43,43,0.12);
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px;
}
.box-filter > span{
    font-weight: bold;
    text-transform: uppercase;
}
.box-filter img{height: 30px;}
.categories-grid.brand,
.categories-grid.prices{
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.categories-grid label{
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    position: relative;
    font-size: 14px;
    white-space: nowrap;
} 
.box-sort label{
    font-size: 14px;
    height: 30px;
    white-space: nowrap;
}
.product-content {
    width: 100%;
}
.product-content h1{
    font-size: 16px;
    text-transform: uppercase;
}
.product-content h1 span{text-transform: lowercase;}


.categories-grid [type=checkbox]+i{
    width: 100%;
    height: 40px;
    position: absolute;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.box-sort [type=checkbox]+i{
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    box-sizing: border-box;
    padding:0 .5rem
}
.box-sort [type=checkbox]+i:hover,
.categories-grid [type=checkbox]+i:hover{
    border: 1px solid var(--color-link);
    z-index: 1;
}
.box-sort [type=checkbox]:checked+i,
.categories-grid [type=checkbox]:checked+i{
    border: 1px solid #EF5350;
    width: 100%;
    z-index: 1;
    background: rgba(239, 83, 80,.2);
}
.box-sort [type=checkbox]:checked+i{
    padding: 0 1.5rem 0 .5rem;
}
.box-sort [type=checkbox]+i::before,
.categories-grid [type=checkbox]+i::before{
    border: 0;
}
.categories-grid [type=checkbox]:checked+i::before {
    top: 0px;
    left: 3px;
    width: 3px;
    height: 6px;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    -webkit-transform: rotate(40deg);
    -ms-transform: rotate(40deg);
    transform: rotate(40deg);
    z-index: 1;
}

.categories-grid [type=checkbox]:checked+i::after {
    background: none;
    top: -8px;
    left: -8px;
    content: '';
    width: 0;
    height: 0;
    border: 12px solid var(--color-link);
    border-radius: 12px;
    display: inline-block;
    vertical-align: middle;
    position: absolute;
}
.box-sort [type=checkbox]:checked + label{color:var(--color-link)}
.box-sort [type=checkbox]:checked+i::before {
    top: calc(50% - 6px);
    left: unset;
    right: .5rem;
    width: 4px;
    height: 8px;
    border-right: 2px solid var(--color-link);
    border-bottom: 2px solid var(--color-link);
}
.box-sort [type=checkbox]:checked+i::after {
    display: none;
}

@media (max-width: 767px){
    .categories-grid p{font-weight: bold;}
    .categories-grid p.title{margin-bottom: 1rem;}
    .categories-grid.first label{
        padding: 0;
        width: calc(25% - 1rem);
    }
    .categories-grid.filter span{
        display: block;
        padding: .5rem;
    }

}

label.price {display: inline-block;}
label.hidden{display: none;}
label.show{display: flex;}
.checklist{
    width: 13px;
    height: 13px;
    border: 1px solid #ddd;
    border-radius: 2px;
    display: inline-block;
    vertical-align: text-top;
}
.price a{color: #333;}
.price.check .checklist{
    border: 1px solid #EF5350;
    position: relative;
    background: #EF5350;
}
.price.check .checklist::before{
    position: absolute;
    content: '';
    width: 3px;
    height: 7px;
    top: 0;
    left: -1px;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    -webkit-transform: rotate(40deg);
    -ms-transform: rotate(40deg);
    transform: rotate(40deg);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    transform-origin: 100% 100%;

}

.chosse-filter{
    display: flex;
    overflow-x: auto;
    clear: both;
    width: 100%;
    margin: 10px 0;
}
.chosse-filter div{flex-shrink: 0;}
.chosse-filter #delFilterAll a{
    background: #EF5350;
}
.chosse-filter a{
    display: inline-flex;
    align-items: center;
    padding: 5px 5px 5px 10px;
    background: rgba(0,0,0,0.05);
    font-size: 12px;
    color: #333;
    border-radius: 20px;
    position: relative;
    height: 16px;
    width: auto;
    margin-right: 10px;
} 
.chosse-filter a:hover{
    color: #fff;
    background: #EF5350;
}
.chosse-filter i{
    position: relative;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 100%;
    margin-left: 4px;
    padding: 2px;
}
.chosse-filter i::before{
    position: absolute;
    width: 10px;
    height: 2px;
    content: '';
    background: #fff;
    display: block;
    -webkit-transform: rotateZ(45deg);
    -moz-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
    top: calc(50% - 1px);
    left: calc(50% - 5px);
}
.chosse-filter i::after{
    position: absolute;
    width: 10px;
    height: 2px;
    content: '';
    background: #fff;
    display: block;
    -webkit-transform: rotateZ(-45deg);
    -moz-transform: rotateZ(-45deg);
    transform: rotateZ(-45deg);
    top: calc(50% - 1px);
    left: calc(50% - 5px);
}

.no-product{
    background: #eee;
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-top: 15px;
}
.viewmore{
    display: flex;
    align-items: center;
    position: relative;
    font-size: 14px;
    margin: 0 0 -1px -1px;
    justify-content: center;
    padding: 0 30px;
    width: calc(10% - 1rem);
    height: 40px;
}
.viewmore span{
    color: var(--blue);
    border: 1px solid #eee;
    border-radius: 8px;
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    box-sizing: border-box;
    text-align: center;
    position: absolute;
} 
.viewmore:hover span{border: 1px solid var(--color-link);}
.viewmore span::after{
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid #288ad6;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}
.viewmore.show span::after{
    content: '';
    width: 0;
    height: 0;
    border-top: transparent;
    border-bottom: 5px solid #288ad6;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}
.sort{
    position: relative;
    cursor: pointer;
    height: 40px;
    z-index: 3;
}
.sort label{
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    position: relative;
    font-size: 14px;
    white-space: nowrap;
}


/*new*/
.product-image-list {
    display: flex;
    display: -moz-flex;
    display: -o-flex;
     flex-wrap: nowrap;
    width: 100%;
    position: absolute;
    bottom: -100%;
    z-index: 999;
    background: white;
    padding: 0px 0 0 0px;
    transition: all 0.6s ease-in-out 0s;
    -moz-transition: all 0.2s ease-in-out 0s;
    -o-transition: all 0.2s ease-in-out 0s;
    -webkit-transition: all 0.2s ease-in-out 0s;
    -ms-transition: all 0.2s ease-in-out 0s;
    align-items: center;
    justify-content: center;
}
.product-image:hover .product-image-list {bottom: 0;}
.product-image-list > span{
    display: inline-block;
    cursor: pointer;    
    margin: 10px 5px;
    border: 1px solid #fff;
}
.product-image-list > span.active{border: 1px solid #ed1c24;}
.product-image-list > span span {
    font-size: 9px;
    clear: both;
    width: 100%;
    float: left;
}
.product-image-list img {
    max-width: 35px;
    height: 40px;
    display: block;
}

/* image slider hover effect */
.hover-effect-slider .small-slider-arrow {
    position: absolute;
    top: calc(50% - 10px);
    width: 25px;
    height: 35px;
    border: 1px solid #e2e2e2;
    line-height: 37px;
    cursor: pointer;
    background: #fff;
    font-size: 0;
    text-indent: -99999px;
    opacity: 0;
    z-index: 1;
}
.hover-effect-slider .arrow-right {
    right: 0px;
    border-radius: 7px 0 0 7px;
}
.hover-effect-slider .arrow-left {
    left: 0px;
    border-radius: 0 7px 7px 0;
}
.hover-effect-slider .arrow-right::before,
.hover-effect-slider .arrow-left::before {
    content: '';
    width: 6px;
    height: 6px;
    position: absolute;
    top: calc(50% - 3px);
    right: 10px;
    border-top: 1px solid var(--color-primary);
    border-right: 1px solid var(--color-primary);
    transform: rotate(45deg);
}
.hover-effect-slider .arrow-left::before{
    transform: rotate(-135deg);
    right: 7px;
}
.hover-effect-slider .arrow-left:hover {
    background: rgba(255,0,0,0.8);
    border: none;
}
.hover-effect-slider .arrow-right:hover {
    background: rgba(255,0,0,0.8);
    border: none;
}
.listproduct li:hover .small-slider-arrow{opacity: 1;}
.hover-effect-slider .slider-counter {
    position: absolute;
    bottom: 0;
    left: 0px;
    font-size: 11px;
    opacity: 0;
    padding: 4px;
    line-height: 30px;
}
.hover-effect-slider:hover .slider-counter {opacity: 1;z-index: 1;}
/* end image slider hover effect */


@media (max-width: 767px){
    .categories h1{
        font-size: 20px;
    }
    .products .box-name{
        background: rgb(28 36 48 /.9);
        font-weight: 500;
        color: #fff;
        padding: 0 20px;
        border-radius: 30px;
        cursor: pointer;
        box-sizing: border-box;
        width: 220px;
        height: 48px;
        position: fixed;
        bottom: 10px;
        left: calc(50% - 110px);
        z-index: 3;
    }
    .products .ic-filter, .products .ic-sort{width: 24px;height: 24px;}
    .products.open-filter .box-name,
    .products.open-sort .box-name{position: unset;}
    .products.open-filter .box-name__filter{
        z-index: 11;
        position: fixed;
        top: 10%;
        left: 0;
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        background: var(--white);
        color: var(--color-primary);
        width: 100%;
        border-bottom: 1px solid var(--light);
        transition: top .25s ease-in-out;
        padding: .5rem 1rem;
        box-sizing: border-box;
    }
    .products.open-sort .box-name__sort{
        z-index: 11;
        position: fixed;
        bottom: 150px;
        left: 0;
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        background: var(--white);
        color: var(--color-primary);
        width: 100%;
        border-bottom: 1px solid var(--light);
        transition: top .25s ease-in-out;
        padding: .5rem 1rem;
        box-sizing: border-box;
    }
    .products.open-filter .box-name__filter::before,
    .products.open-sort .box-name__sort::before{
        position: absolute;
        width: 16px;
        height: 2px;
        content: '';
        background: var(--gray);
        display: block;
        -webkit-transform: rotateZ(45deg);
        -moz-transform: rotateZ(45deg);
        transform: rotateZ(45deg);
        top: calc(50% - 1px);
        right: 1rem;
    }
    .products.open-filter .box-name__filter::after,
    .products.open-sort .box-name__sort::after{
        position: absolute;
        width: 16px;
        height: 2px;
        content: '';
        background: var(--gray);
        display: block;
        -webkit-transform: rotateZ(-45deg);
        -moz-transform: rotateZ(-45deg);
        transform: rotateZ(-45deg);
        top: calc(50% - 1px);
        right: 1rem;
    }
    .box-filter{
        background: #fff;
        height: 100%;
        width: 100%;
        z-index: 10;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 3rem 1rem calc(2rem + 10%) 1rem;
        margin: 0;
        border-radius: unset;
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        position: fixed;
        top: calc(100% + 3rem);
        transition: top .35s ease-in-out, height .35s ease-in-out;
    }
    
    .box-sort {
        background: #fff;
        height: 0;
        width: 100%;
        z-index: 10;
        overflow-y: auto;
        overflow-x: hidden;
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        transition: height .35s ease-in-out;
    }
    
    .box-filter::-webkit-scrollbar {width: 0;}
    .products.open-filter .box-filter {
        top: 10%;
        left: 0;
        transition:top .35s ease-in-out;
    }
    .products.open-filter .box-filter .filter div{
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .products.open-sort .box-sort{
        height: 150px;
        max-height:200px;
        transition:height .35s ease-in-out;
    }
    .box-sort label{
        height: unset;
        padding: 0 1rem;
    }
    .box-sort [type=checkbox]+i{
        padding: .5rem;
        height: unset;
        border: unset;
        width: calc(100% - 1rem);
        margin: 0 auto;
        border-radius: unset;
    }
    .box-sort label:not(:last-child) [type=checkbox]+i{
        border-bottom: 1px solid #eee;
    }
    
    .box-sort label [type=checkbox]:checked+i {
        padding: 0.5rem 1rem;
        border: 1px solid var(--color-link);
        margin-top: -1px;
        border-radius: 0.5rem;
    }
    .box-sort [type=checkbox]:checked+i::before{
        right: 1rem;
    }
    
    
}
@media (min-width: 768px){
    .categories-grid.filter{
        position: relative;
    }
    .categories-grid.filter .show{
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
    }
    .categories-grid.filter > p{
        display: block;
        padding: 2px 10px;
        margin-bottom: .5rem;
        cursor: pointer;
        border: 1px solid #eee;
        border-radius: 7px;
    }
    .categories-grid.filter:hover > p,
    .categories-grid.filter.active > p{
        background-color: rgba(239, 83, 80,.2);
        border: 1px solid var(--color-link);
        color: var(--color-primary);
    }
    .categories-grid.filter > p.active::before{
        content: "";
        position: absolute;
        width: 1rem;
        height: 1rem;
        background: #fff;
        transform: rotate(45deg);
        top: calc(100% - .3rem);
        left: calc(50% - 1rem);
        box-shadow: -2px -2px 5px -4px;
        z-index: 3;
    }
    .categories-grid.filter > p::after{
        content: '';
        width: 0;
        height: 0;
        border-top: 5px solid var(--gray);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        display: inline-block;
        vertical-align: middle;
        margin-left: 5px;
    }
    .categories-grid.filter:hover > p::after,
    .categories-grid.filter.active:hover > p::after{
        border-bottom: 5px solid var(--color-link);
        border-top: none;
    }
    .categories-grid.filter.active > p::after{
        border-top: 5px solid var(--color-link);
    }
    .categories-grid.filter div{
        display: none;
        min-width: 250px;
        max-width: 600px;
        overflow: visible;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 5px 10px 10px rgba(0,0,0,.1);
        padding: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 2;
        width: max-content;
        white-space: nowrap;
    }

}
.policy{
    height: auto;
    display: flex;
    flex-wrap: wrap;
    background: var(--white);
    border-radius: .5rem;
    overflow: hidden;
}
.policy .item:first-child {
    flex-basis: 100%;
    background: #288ad6;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    padding: 1rem 0;
}
.policy .item{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex:1 0 20%;
    padding: .5rem 0;
}
.policy .item span{padding:0 0 0 10px !important;font-size: 13px;line-height: 1.5;white-space: nowrap;}

@media (min-width: 1200px){
    .policy{
        border: 1px solid #288ad6;
        background: var(--white);
        border-radius: 8px;
        display: flex;
        align-items: stretch;
        justify-content: start;
        overflow: hidden;
        column-gap: 1rem;
        height: 70px;
    }
    .policy .item{
        display: flex;
        align-items: center;
        flex:1 0 max-content;
        flex-direction: row;
    }
    .policy .item:first-child{
        background: #288ad6;
        padding-right: 1rem;
        box-sizing: border-box;
        color: #fff;
        text-transform: uppercase;
        position: relative;
        font-weight: bold;
        height: 70px;
        flex-basis: unset;
    }
    .policy .item:first-child::after{
        content: '';
        vertical-align: middle;
        border-top: 35px solid #fff;
        border-left: 20px solid #288ad6;
        border-right: 3px solid #fff;
        border-bottom: 35px solid #fff;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
    }

}