
/*CSS for page layout*/
.container{
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(35rem, 1fr) );
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
            "navbar navbar navbar navbar"
            "products-filter main main main"
            "footer footer footer footer";
}

.navbar{
    grid-area : navbar;
}

.products-filter{
    margin: 4rem 2rem 4rem 4rem;
    max-height: 70rem;
    grid-area: products-filter;
}

.main{
    grid-area: main;
    margin:4rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer{
    grid-area: footer;
}

/* Card */

.card-btn{
    margin-top: 1rem;
}

.card-img{
    max-height: 27rem;
}

.product-rating{
    padding: 5px 10px;
    margin-left:1.5rem;
}

/*Products filter*/

.products-filter{
    max-width: 28rem;
    border-radius: 5px;
}

.products-filter-header{
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--GRAY-COLOR);
}

.products-filter-type{
    border-bottom: 1px solid var(--GRAY-COLOR);
    padding: 1rem 1rem 2rem 1rem;
    margin-bottom: 1rem;
}

.filter-heading{
    margin-left:0;
}

/*slider styles*/

.price-slider {
    -webkit-appearance: none; 
    width: 100%;
    height: 1rem;
    background:var(--GRAY-COLOR);
    outline: none;
    border-radius: 5px;
    opacity: 0.8;
  }

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50px;
    background:var(--PRIMARY-COLOR) ;
    cursor: pointer;
  }
  
.price-slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50px;
    background:var(--PRIMARY-COLOR) ;
    cursor: pointer;
  }

.price-slider:hover {
    opacity: 1;
  }

.rating-slider-range{
      justify-content: space-between;
  }


/*Media Query*/
@media screen and (max-width: 45rem) {

    .products-filter{
        display: none;
    }

    .container{
        grid-template-areas: 
                "navbar navbar navbar navbar"
                "main main main main"
                "footer footer footer footer";
    }
    
    .main{
        justify-content: center;
    }

}

