@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600&display=swap');

*{
   outline: none; border:none;
   transition: all .2s linear;
}
/* ::-webkit-scrollbar { display:none } */

html{
   font-size: 62.5%;
   overflow-y: auto;
}

body{
   background: var(--main);
}

.content{
   margin-top: 12vh;
   /* height:  --heightOfTopNav*/

}


.products-container{
   max-width: 1200px;
   margin:0 auto;
   padding:3rem 2rem;
}

.content .title{
   font-size: 3.5rem;
   color:white;
   margin-bottom: 1rem;
   text-transform: uppercase;
   text-align: center;
}

.content .products-container{
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
   gap:2rem;
}

.content .products-container .product{
   text-align: center;
   padding:3rem 2rem;
   background: #fff;
   box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
   outline: .1rem solid #ccc;
   outline-offset: -1.5rem;
   cursor: pointer;
   border-radius: 10px;
   animation: appear linear;
   animation-timeline: view();
   animation-range: entry 0% cover 20%;
}

.content .products-container .product:hover{
   outline: .2rem solid #222;
   outline-offset: 0;
}

.content .products-container .product img{
   height: 20rem;
   border-radius: 5px;
}

.content .products-container .product:hover img{
   transform: scale(.9);
}

.content .products-container .product h3{
   padding:.5rem 0;
   font-size: 2rem;
   color:#444;
}

.content .products-container .product:hover h3{
   color:var(--main);
}

.content .products-container .product .price{
   font-size: 2rem;
   color:#444;
}

.products-preview{
   position: fixed;
   top:0; left:0;
   min-height: 100vh;
   width: 100%;
   background: rgba(0,0,0,.8);
   display: none;
   align-items: center;
   justify-content: center;
}

.products-preview .preview{
   display: none;
   padding:2rem;
   text-align: center;
   background: #fff;
   position: relative;
   margin:2rem;
   width: 40rem;
}

.products-preview .preview.active{
   display: inline-block;
}

.products-preview .preview img{
   height: 20rem;
   border-radius: 5px;
}

.products-preview .preview .fa-times{
   position: absolute;
   top:1rem; right:1.5rem;
   cursor: pointer;
   color:#444;
   font-size: 4rem;
}

.products-preview .preview .fa-times:hover{
   transform: rotate(90deg);
}

.products-preview .preview h3{
   color:#444;
   padding:.5rem 0;
   font-size: 2.5rem;
}

.products-preview .preview p{
   line-height: 1.5;
   padding:1rem 0;
   font-size: 1.6rem;
   color:#777;
}

.products-preview .preview .price{
   padding:1rem 0;
   font-size: 2.5rem;
   color:var(--main);
}


@media (max-width:994px){
   html{
      font-size: 55%;
   }
}



@media (max-width:768px){
   .products-preview .preview img{
      height: 25rem;
   }
}


@media (max-width:450px){
   html{
      font-size: 50%;
   }
}



