*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  scroll-behavior: smooth;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;

}

:root{
  --primary:rgba(222, 19, 52, 0.855);
  --secondary:rgba(15,10,29,0.849);
  --light:#2f3640;
}
header{
  width: 100%;
  height: 100vh;

}

/* nav1 */
.nav1{
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  box-shadow:  2px 0px 3px gray;
  text-align: center;
}
.nav1 .left{
  flex-basis: 50%;
  letter-spacing: 2px;


}
.nav1 .left a{
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
  margin: 0 5px;
}
.right{
  flex-basis: 50%;
}
.right i{
  font-style: 20px;
  margin: 0px 15px;
  background: var(--primary);
  color: white;
  padding: 8px;
  cursor: pointer;
  transition: 0.4s ease-in-out;
}
.nav1 .right i:hover{
  transform: rotate(360deg);
}


/* nav2 */

.nav2{
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}
.nav2 .nav2-left, .nav2 .nav2-center, .nav2 .nav2-right{
  flex-basis: 30%;
  margin: auto;
  cursor: pointer;


}
.nav2 .nav2-left i{
  margin-left: 15px;

}
.nav2 .nav2-center h1{
  color: var(--primary);
  font-size: 2rem;
  letter-spacing: 5px;
  font-weight: bold;
}

.nav2 .nav2-center h1 span{
  color: var(--secondary);

}
.nav2 .nav2-center p{
  color: gray;
  font-size: 15px;
  margin-top: 5px;
}

.nav2 .nav2-right i{
  margin: 0px 5px;
}


/* nav2 */

.nav3{
  width: 100%;
  height: 70px;
  line-height: 70px;

}
.nav3 ul {
  list-style: none;
  text-align: center;
}
.nav3 ul li{
  display: inline-block;
  width: 150px;
  position: relative;
  z-index: 99;
}
.nav3 ul li a{
  text-decoration: none;
  color: black;
  font-weight: 500;
  display: block;
}
.nav3 ul li a:hover{
  color: var(--primary);
}

.nav3 ul li i{
  color: var(--primary);
  margin: 0px 5px;



}

/*  other ul*/
.nav3 ul ul{
  position: absolute;
  top: 70px;
  left: 0;
  display: none;

}
.nav3 ul ul li{
  background-color: #fff;
  border-bottom: 1px solid var(--primary);
}
.nav3 ul li:hover>ul{
  display: block;

}



/* featured section */
.featured{
  width: 100%;
  height: 60vh;
  background: linear-gradient(to right,rgba(0,0,0,0.5) 20%, rgba(255,255,255,0.2)),
    url(./images/back.png);
  background-size: cover;
  background-position: top;
  position: relative;

}
.featured-text{
  max-width: 500px;
  position: absolute;
  top: 50%;
  left: 10%;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 1rem;
  letter-spacing: 3px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;

}
.featured-text button{
  padding: 10px 20px;
  border: none;
  outline: none;
  background-color: var(--primary);
  color: white;
  font-weight: bold;
  margin: 17px 0px;
}


/*  latest section*/
.latest{
  padding: 50px 100px;
}
.product-intro{
  text-align: center;

}
.product-intro h1{
  color: var(--primary);
  letter-spacing: 0.2rem;
  font-size: 2rem;
  font-weight: bolder;
}
.product-intro h1 span{
  color: var(--secondary);
}
.product-intro p{
  color: gray;
  margin: 11px 0px;

}

/* card container*/
.card-container{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  cursor: pointer;

}
.card-container .card{
  flex-basis: 20%;
  padding: 0.8rem;
  position: relative;
}
.card img{
  width: 100%;
  transition: 0.5s ease-in-out ;
  border-radius: 3px;
}
.card h1{
  font-size: 1rem;
}
.card i{
  color: goldenrod;
  margin: 7px 0;
}
.card button{
  background: var(--primary);
  color: white;
  border: none;
  outline: none;
  margin-top:13px;
  padding: 5px 20px;
}

.card:hover img, .card:hover h1{
  width: 80%;
  color: var(--primary);

}
.card::before{
  content:'20% OFF';
  width: 25%;
  
  height: 25px;
  color: #fff;
  line-height: 25px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--primary);
  padding: 0px 4px;
  transform: rotate(-20deg);
}


/* trends */

.trends{
  padding: 50px 100px;
  background-color: rgb(201, 199, 199);
}

 .trends .swiper {
      width: 100%;
      padding: 50px;

      
    }

   .trends .swiper-slide {
      background-position: center;
      background-size: cover;
      width: 400px;
      height: 400px;
    }

   .trends .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
    }


    /* footer section */
    footer{
      background-color: var(--secondary);
      color: #fff;
      display: flex;
      justify-content: space-around;
      font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
      align-items: center;
      flex-wrap: wrap;
      text-align: center;
      font-size: 1rem;
      width: 100%;
      height: 200px;
    }
    footer div{
      flex-basis: 30%;

    }
    footer h1{
      letter-spacing: 0.3rem;

    }

    footer h1 span{
      color: var(--primary);
    }
footer p{
  font-size: 1rem;
}
footer i{
  margin: 0px 5px;
}
#sidenav{
  display: none;
}
#menubar{
  display: none;
}

/*  responsive ness */

@media only screen and (max-width:700px) {


  #sidenav{
    display: block;
  }
  #menubar{
    display: block;
  }
  .nav1{
    position: relative;
    z-index: 2;
    background-color: rgb(161, 154, 154);

  }
  .right i{
    font-size: 10px;
    margin: 0px 5px;
  }

  .nav2{
    width: 100%;
    height: 75px;


  }
  .nav2 .nav2-left i{
    margin-left: 0px;

  }
  .nav2 .nav2-left h1{
    font-size: .5rem;
    


  }
  .nav2 .nav2-center p{
    font-size: 10px;
    margin-top: 5px;
  }
  .nav2 .nav2-right i{
    margin: 0px 5px;
  }
  .nav3{
    display: none;
  }
  .featured{
    background-attachment: fixed;
  }
  .latest{
    padding: 0px 50px;
  }
  .card-container{
    margin: 2rem 0;
  }
  .card-container .card{
    flex-basis: 100%;
    text-align: center;

  }
  .trends{
    padding: 20px 50px;
  }

  .trends .swiper-slide{
    width: 300px;
    height: 300px;
  }
  footer div{
    flex-basis: 50%;
    margin: 10px 0;
  }
}