@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
}

#page1 {
  height: 100vh;
  width: 100%;
  background-color: rgb(255, 255, 255);
  padding: 0 2vw;
}

/*Navigation style*/

nav {
  z-index: 99;
  position: sticky;
  top: 0;
  background-color: skyblue;
  padding: 2vw 0vw;
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  padding: 0 4vw;
}

#nav-part2 {
  display: flex;
  align-items: center;
  gap: 1vw;
}

#nav-part2 h4 {
  padding: 10px 20px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 50px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
  transition: all ease 0.4s;
  position: relative;
  font-size: 14px;
  overflow: hidden;
}

#nav-part2 h4::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: black;
  left: 0;
  bottom: -100%;
  border-radius: 50%;
  transition: all ease 0.4s;
}

#nav-part2 h4:hover::after {
  bottom: 0;
  border-radius: 0;
}

#nav-part2 h4 a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 9;
}

#nav-part2 h4:hover a {
  color: white;
}

#nav-part2 h4:hover input {
  background-color: black;
  color: white;
  transition: all ease 0.5s;
}

#searchbar {
  border: none;
  border-radius: 10px;
  margin-right: 10px;
  padding: 0px 10px 0px 10px;
  background-color: skyblue;
}

/*Product and Tagline*/

#mobile-center{
  display: none;
}

#center{
  height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid black;
}

#left {
  z-index: 5;
  padding-left: 2vw;
}

#categories h2 {
  margin: 25px;
  text-align: center;
}

#left h1{
  width: 30vw;
  font-size: 6vw;
  line-height: 7vw;
  margin-bottom: 20px;
}

.bud1 {
  z-index: 2;
  position: absolute;
  width: 300px;
  top: calc(30%);
  left: calc(50% + 335px);
}

.bud2 {
  z-index: 1;
  position: absolute;
  width: 300px;
  top: calc(30%);
  left: calc(50% + 65px);
}

.bud3 {
  z-index: 3;
  position: absolute;
  width: 300px;
  top: calc(24%);
  left: calc(50% + 200px);
}


/*Effect style*/

.rotate-container {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 38%;
  left: 10vw;
  transform: translate(-50%, -50%);
}

.clockwise-div{
  position: absolute;
  width: 25vw;
  height: 25vw;
  border-radius: 30%;
  filter: blur(10px);
  transform: rotate(30deg);
  background-color: skyblue;
  animation-duration: 10s;
  animation-direction: alternate;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.anticlockwise-div{
  position: absolute;
  width: 25vw;
  height: 25vw;
  border-radius: 30%;
  filter: blur(10px);
  background-color: skyblue;
  animation-duration: 15s;
  animation-direction: alternate;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.clockwise-div {
  animation-name: rotateClockwise;
}

.anticlockwise-div {
  animation-name: rotateAnticlockwise;
}

@keyframes rotateClockwise {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateAnticlockwise {
  to {
    transform: rotate(-360deg);
  }
}

.items{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:center;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid black;
}

.product{
    width: 120px;
    height: 150px;
    background-color: aqua;
    margin: 5px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.product:hover{
    background-color: rgb(122, 187, 212);
}

label{
    text-align: center;
    font-size: x-small;
    text-decoration-style: solid;
}


/*Footer Style*/
footer{
  background-color: #eff4f7;
}
.footer-wrap{
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 25px;
}
footer li{
  list-style: none;
  font-size: 12px;
  line-height: 25px;
  color: rgb(140, 140, 140);
}
ul{
  padding: 0;
}
footer h3{
  padding-top: 20px;
  font-size: 20px;
  font-weight: 500;
}
footer h4{
  margin: 0;
}
.right{
  display: flex;
  justify-content: space-between;
  padding: 0px 50px 0px 50px;
}
.right-column{
  padding: 0px 10px 0px 10px;
}
.email-alert{
  display: flex;
}
.newsletter{
  width: 220px;
  height: 35px;
  padding: 10px;
  border: 1px solid black;
  border-radius: 5px 0px 0px 5px;
}
.subscribe{
  font-weight: 600;
  color: white;
  background-color: black;
  border: 1px solid black;
  width: 100px;
  height: 35px;
  border-radius: 0px 5px 5px 0px;
}


/*Items Purchase*/
.purchase-items{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 35px 0px 35px 0px;
  gap: 30px 20px;
}
.trending-items{
  display: flex;
  width: 450px;
  height: 210px;
  background-color: #fafafa;
  border: 1px solid #ECF0F4;
  border-radius: 10px;
}
.purchase-items-image{
  display: flex;
  flex-direction: column;
  width: 200px;
  padding: 5px;
}
.purchase-items-image>img{
  height: 100%;
  border-radius: 10px 10px 12px 12px; 
}
.top-features{
  position: relative;
  padding: 3px;
  top: -18px;
  font-size: 12px;
  font-weight: bold;
  background-color: rgb(252, 235, 45);
  text-align: center;
  border-radius: 0px 0px 10px 10px;
}

.purchase-items-details{
  width: 100%;
  display: flex;
  padding: 12px;
  flex-direction: column;
  justify-content: space-between;
}
.purchase-items-info{
  display: flex;
  flex-direction: column;
}
.item-name{
  font-size: 20px;
  font-weight: 600;
}
.price-rating{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.item-price{
  font-size: 18px;
  font-weight: 600;
}
.item-rating{
  font-size: 12px;
  font-weight: 400;
}
.features{
  display: flex;
  flex-wrap: wrap;
}
.features-label{
  background-color: #EFF4F7;
  font-size: 10px;
  margin: 0px 5px 3px 0px;
  border-radius: 15px;
  padding: 4px 8px 4px;
}
.add-cart{
  position: relative;
}
.add-cart>button{
  width: 100%;
  height: 35px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 8px;
  justify-content: center;
  background-color: black;
  color: white;
}
.fa-cart-shopping{
  padding-right: 15px;
}
.fa-star{
  font-size: 16px;
  color: rgb(233, 233, 124);
}

@media screen and (max-width: 860px) {
  nav>img{
    width: 75px;
  }
  #searchbar{
    width: 100px;
  }
  #mobile-center{
    display: block;
    display: flex;
    flex-direction: column;
    width: 80vw;
    margin: auto;
  }
  #center{
    display: none;
  }
  #mobile-center img{
    width: 300px;
  }
  #mobile-right{
    margin: 50px auto;
  }
  .rotate-container{
    display: none;
  }
  #mobile-left{
    margin-top: 50px;
  }
  #mobile-left h1{
    text-align: center;
    font-size: 76px;
    line-height: 70px;
  }
  #mobile-left h2{
    font-size: 22px;
    text-align: center;
    margin-top: 20px;
  }
  #mobile-left p{
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
  }
  /* footer style */
  .footer-wrap{
    display: flex;
    flex-direction: column;
  }
  .left,.right{
    padding: 25px 0px;
  }
  .right{
    flex-direction: column;
  }
  .right-column{
    margin: 15px 0px;
  }
  footer li{
    font-size: 16px;
  }
  .right-column>h4{
    font-size: 20px;
    margin-bottom: 10px;
  }
}