@import url(./moduls/variables.css);
@import url(./moduls/reset.css);
@import url(./moduls/defaults.css);
@import url(./moduls/grid.css);
@import url(./moduls/helper-classes.css);
@import url(./moduls/nav-bar.css);
@import url(./moduls/footer.css);

.nav{
    border-bottom: .5rem solid var(--secondry-color);
    padding-bottom: 5rem;
}

.main{
    padding: 5rem 0 30rem 0;
    color: var(--primary-color);
}

/*
    ----- main top Styles -------
*/

.main__top{
    display: flex;
    justify-content: center;
    font-size: 1.8rem;
    padding-right:35rem;
}
@media screen and (max-width: 1200px) {
    .main__top{
        padding-right:25rem;
    }
    .price-wrap #one,
    .price-wrap #two {
        width: 90px!important;
        font-size: 1.5rem!important;
    }
}
@media screen and (max-width: 992px) {
    .main__top{
        padding-right:5rem;
        font-size:1.5rem;
    }
    .main__content__right{
        width:28% !important;
    }
    .main__content__right h5{
        font-size:1.3rem;
    }
    .cat li a {
        font-size:1.3rem;
    }
    .cat-down, .price-down {
        padding-right: unset!important;
    }
    .price-wrap #one,
    .price-wrap #two {
        width: 60px!important;
        font-size: 1.2rem!important;
    }
    .price-field {
        width: 80% !important;
        right: 20px!important;
    }
}
@media screen and (max-width: 768px) {
    .main__top{
        padding-right:unset;
        font-size:1.2rem;
    }
    .main__row{
        flex-direction:column!important;
    }
    .main__content__right {
        width: 100% !important;
        /*margin:auto;*/
    }
    .main__content__right h5{
        font-size:1.8rem!important;
    }
    .cat li a {
        font-size:1.6rem;
    }
    .cat-down, .price-down {
        padding-right: unset!important;
    }
    .price-wrap #one,
    .price-wrap #two {
        width: 100px!important;
        font-size: 1.6rem!important;
    }
    .price-field {
        width: 100% !important;
        /*right: -50px!important;*/
        margin-top:1rem;
    }
    .main__content {
        width:100%!important;
    }
}
@media screen and (max-width: 576px){
    .main__top{
        font-size:1.5rem!important;
    }
}
.widget{
    padding: 1rem 5rem;
    display: flex;
    color: var(--primary-color);
    border: .2rem solid var(--primary-color);
    border-radius: 10rem;
    font-weight: 900;
    gap: 2rem;
}

.widget__title{}

.widget__item{
    transition: all ease-in-out .2s;
    cursor: pointer;
    text-align: center;
}

.widget__title,
.widget__item{
    padding: .5rem 0;
}


.widget__item--active{
    border-bottom: .3rem solid var(--primary-color);
}
.filter__category{
    padding-top:2rem;
}
.cat-down,.price-down{
    padding-right:1rem;
}
.cat li a{
    font-weight:100;
}
section.filter div.price{
    position: relative;
}
section.filter div.price .price-down{
    position: absolute;
    left: 20px;
    font-size: 14px;
    color: gray;
    cursor: pointer;
}
section.filter div.price #price{
    display: none;
}

/**************** price range ****************/
.wrapper {
    height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.filter-price {
    width: 220px;
    border: 0;
    padding: 0;
    margin: 0;
}
.price-title {
    position: relative;
    color: #fff;
    font-size: 16px;
    line-height: 1.2em;
    font-weight: 400;
    background: #64CCC5;
    padding:1px;
    width: 90%;
    border-radius: 15px;
}
.price-title a{
    width: 100%;
    display: block;
    margin: auto;
    color: black;
    font-weight: bold;
    transition: all 0.5s ease;
}
.price-title a:hover{
    font-size: 18px;
    color: white;
}
.price-container {
    /*display: flex;*/
    /*border: 1px solid #ccc;*/
    padding: 5px;
    margin-left: 57px;
    width:80%;
}
.price-field {
    position: relative;
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    padding-top: 15px;
    padding-left: 0px;
}
.price-field input[type=range] {
    position: absolute;
}
/* Reset style for input range */
.price-field input[type=range] {
    width: 100%;
    height: 7px;
    border: 1px solid #64CCC5;
    outline: 0;
    box-sizing: border-box;
    border-radius: 5px;
    pointer-events: none;
    -webkit-appearance: none;
}
.price-field input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}
.price-field input[type=range]:active,
.price-field input[type=range]:focus {
    outline: 0;
}
.price-field input[type=range]::-ms-track {
    width: 188px;
    height: 2px;
    border: 0;
    outline: 0;
    box-sizing: border-box;
    border-radius: 5px;
    pointer-events: none;
    background: transparent;
    border-color: transparent;
}
/* Style toddler input range */
.price-field input[type=range]::-webkit-slider-thumb {
    /* WebKit/Blink */
    position: relative;
    -webkit-appearance: none;
    margin: 0;
    border: 0;
    outline: 0;
    border-radius: 50%;
    height: 15px;
    width: 15px;
    margin-top: -6px;
    background-color: #64CCC5;
    cursor: pointer;
    pointer-events: all;
    z-index: 100;
}
.price-field input[type=range]::-moz-range-thumb {
    /* Firefox */
    position: relative;
    appearance: none;
    margin: 0;
    border: 0;
    outline: 0;
    border-radius: 50%;
    height: 10px;
    width: 10px;
    margin-top: -5px;
    background-color: #64CCC5;
    cursor: pointer;
    pointer-events: all;
    z-index: 100;
}
.price-field input[type=range]::-ms-thumb  {
    /* IE */
    position: relative;
    appearance: none;
    margin: 0;
    border: 0;
    outline: 0;
    border-radius: 50%;
    height: 10px;
    width: 10px;
    margin-top: -5px;
    background-color:#64CCC5;
    cursor: pointer;
    pointer-events: all;
    z-index: 100;
}
/* Style track input range */
.price-field input[type=range]::-webkit-slider-runnable-track {
    /* WebKit/Blink */
    width: 188px;
    height: 2px;
    cursor: pointer;
    background: #30ccc4;
    border-radius: 5px;
}
.price-field input[type=range]::-moz-range-track {
    /* Firefox */
    width: 188px;
    height: 2px;
    cursor: pointer;
    background: #30ccc4;
    border-radius: 5px;
}
.price-field input[type=range]::-ms-track {
    /* IE */
    width: 188px;
    height: 2px;
    cursor: pointer;
    background: #30ccc4;
    border-radius: 5px;
}
/* Style for input value block */

.price-wrap {
    display: flex;
    /*color: #242424;*/
    font-size: 14px;
    line-height: 1.2em;
    font-weight: 400;
    margin-bottom: 0;
    padding-top:2rem;
    color:inherit;
}
.price-wrap-1,
.price-wrap-2 {
    display: flex;
    margin-left: 0px;
    border-bottom: 1px solid #ccc;
    margin-top: 10px;
}
.price-title {
    margin-right: 5px;
}
.price-wrap_line {
    margin: 6px 0px 5px 5px;
}
.price-wrap #one,
.price-wrap #two {
    width: 120px;
    text-align: right;
    margin:0 ;
    padding: 0;
    margin-right: 30px;
    background:  0;
    border: 0;
    outline: 0;
    font-family:var(--primary-font-bold);
    color:var(--primary-color);
    /*color: #242424;*/
    font-size: 18px;
    line-height: 1.2em;
    font-weight: 400;
    display: block;
}
.price-wrap label {
    text-align: right;
    margin-top: 6px;
    padding-left: 5px;
}
/* Style for active state input */
.price-field input[type=range]:hover::-webkit-slider-thumb {
    box-shadow: 0 0 0 0.5px #242424;
    transition-duration: 0.3s;
}
.price-field input[type=range]:active::-webkit-slider-thumb {
    box-shadow: 0 0 0 0.5px #242424;
    transition-duration: 0.3s;
}
.switch {
    position: absolute;
    display: inline-block;
    width: 50px;
    height: 21px;
    left:15px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/*
    ----- main content Styles -----
*/
.main__row{
    width:100%;
    display:flex;
    justify-content:space-between;
}
.main__content__right{
    width:25%;
    height: fit-content;
    margin-top:5rem;
    padding: 3rem 5rem;
    display: flex;
    flex-direction:column;
    color: var(--primary-color);
    border: .2rem solid var(--primary-color);
    border-radius: 2rem;
    font-weight: 900;
    gap: 2rem;
}
.main__content__right h4{
    font-size:2.2rem;
}
.main__content{
    width:70%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.article-box{
    width: 30%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .2);
    padding: 0 0 2rem 0;
    margin-top: 5rem;
    position:relative;
    min-height:439px;
}

.article-box__banner-wrapper{
    width: 100%;
    background-color: var(--primary-color);
    padding: 2.5rem;
}

.article-box__banner{
    width: 100%;
    height:176px;
    border-radius:5px;
}

.article-box__content{
    padding: 3rem 2rem 0 2rem;
    
}
 .count__exist{
    color: #30ccc4;
}
.count__noexist{
    color: #ff0220;
    font-weight:600;
}
.price__product{
    font-family:Vazir;
    padding-top:2rem;
}
.article-box__title{
    font-size: 2rem;
    font-family: var(--primary-font-bold);
    margin-bottom: 1rem;
}
.article-result__title{
    font-size: 2rem;
    font-family: var(--primary-font-bold);
    margin-bottom: 10rem;
    text-align:center;
}
.article-box__description{
    text-align:justify;
    height:25vh;
}

.article-box__date{
    margin-top:2rem;
    float:left;
    font-size:1.5rem
}
.article-box__view{
display:none;
}
.article-box__olddate{
    display:none;
}
.article-box__date{
    display:none;
}
.shop__icon{
    font-size:2.8rem;
    text-align:left;
    padding:0.5rem 2rem 0;
    position:relative;
    /*color: #30ccc4;*/
}
.loader {
    display:none;
    position: absolute;
    top: -25px;
    left: 9%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 30px;
    height: 30px;
    border: 7px solid var(--primary-color);
    border-top: 7px solid #30ccc4;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.activeFilter{
    background-color: #b6e7df;
    padding:1rem ;
    border-radius:10px;
    font-weight:600!important;
}
/*
    footer styles
*/


















@media screen and (max-width: 992px) {
    .article-box{
        width: 47%;

    }
}

@media screen and (max-width: 768px) {
    .article-box{
        padding-bottom: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .main{
        padding: 5rem 0;
    }

    .widget{
        flex-direction: column;
        padding: 2rem;
        border-radius: 0;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .main__content{
        justify-content: center;
    }

    .article-box{
        width: 80%;
    }
}
/*.sort-select {*/
/*    display: flex;*/
/*    margin-right: 30px;*/
/*}*/
.sort-select > select{
    width: 11rem;
    background: #196a86;
    color:white;
    /*display: flex;*/
    /*height: 40px;*/
    padding:5px;
    margin-top:7px;
    border-radius: 0.5rem;
    margin-right: 0.25rem;
    border: none;
    font-weight:bold;
}
.sort-select > select:focus{
    border:none;
}
.sort-select > select > option{
    color: #000;
    background-color: #F7F7F7;
    font-size:1.5rem;
    /*font-weight:bold;*/
}
.pagination{
    display:block;
    width:250px;
    margin:50px 50px;
}
.pagination li {
    display:inline-block;
    padding:5px;
    width: 30px;
    height: 30px;
    appearance: none;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: #44AAEE;
    margin: 5px;
    transition: 0.4s;
    color: #FFF;
    font-size: 18px;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
    text-align:center;
}
li.active {
    background-color: #176B87;
    box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.2);
}
