*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  outline: none;
  font-family: "Poppins", sans-serif;
}
body{
  background-color:aliceblue;
  overflow: hidden;
}
.top-menu{
  width: 100%;
  height: fit-content;
  background-color: rgb(182, 182, 247);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
  box-sizing: border-box;
  box-shadow:0px 2px 2px  ;
  margin-bottom: 6px;
  position: relative; 
}
.head{
  text-decoration: none;
  font-family:'Courier New', Courier, monospace;
  color: black;
  font-weight: 500;
  margin: 0 10px;
  margin-right: 40px;
}
.head:hover{
  border-bottom: 0.2rem solid blue;
}
.close-tag{
 margin-left: 70%;
 cursor: pointer;
}
.close-tag:hover{
  background-color: black;
  border-radius: 50%;
}
.right{
  display: flex;
  align-items: center;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.right button{
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
}
.right button:hover{
  background-color: aliceblue;
  cursor: pointer;
  border-radius: 4px;
}

.brand{
  font-family: 'Courier New', Courier, monospace;
  font-style: italic;
  color: white;
  font-weight: 700;
}
header{
  background-color: white;
  position: sticky;
  top: 0px;
  z-index: 10;
  padding: 0px;  
}
.sub-menu{
  position: absolute;
  top:55px;
  right: 10px;
  width: 200px;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: blue;
  border-radius: 3px;
  padding: 10px 0;
  box-shadow: black 0px 15px 38px;
  display: none;
}
.option{
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  color: aliceblue;
  font-weight: 600;
  padding: 20px 0;
}
.option:hover{
  background-color: aliceblue;
  color: blue;
}
.input-area{
background: transparent;
outline: none;
padding: 8px;
width: 45%;
border-top: none;
border-left: none;
border-right: none;
font-size: medium;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
.search-button{
  padding: 8px 20px;
  background-color: rgb(94, 175, 245);
  border: none;
  border-radius: 2px;
  font-family: 'Courier New', Courier, monospace;
  color: aliceblue;
  font-weight: 400;
  font-size: large;
  margin-left: 5px;
}
.search-button:hover{
  background-color: rgb(199, 221, 241);
}
.search-button:active{
  background-color: aliceblue;
}
.nav{
  display: flex;
  align-items: center;
}
.cart{
  margin-left: 8px;
}
.quantity{
  color:red;
  font-weight: bolder;
  padding-bottom: 5px;
}
.menu{
 margin-left: 20%;
}
.buttons{
  display: flex;
  margin-top: 14px;
  width: 100%;
}

.buttons button{
  padding: 8px;
  border-radius: 20px;
  font-family: 'Courier New', Courier, monospace;
  color: blue;
  background-color: white;
  font-size: medium;
  border-color: rgb(12, 12, 172);
  border-bottom:rgb(12, 12, 172);
}
.buttons button:hover{
  background-color: blue;
  color:aliceblue
}
.buttons button:active{
  background-color: aliceblue;
}

.main{
  padding: 10px;
  display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 4%;
  }

.sub-div{
box-shadow:rgb(134, 132, 132) 5px 4px 4px ;
background-color: white;
height: 60vh;
}
img{
  width: 150px;
  height: 70%;
  display: flex;
  justify-self: center;
  margin-top: 5px;
}
.product-info{
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.name{
  font-family: 'Courier New', Courier, monospace;
  font-weight: bolder;
}
.price{
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: bolder;
  color: green;
}
.add-button{
  padding: 8px;
  margin-right: 10%;
  border-radius: 6px;
  background-color: rgb(102, 102, 247);
  font-family: 'Courier New', Courier, monospace;
  border: none;
  color: aliceblue;
}
.add-button:hover{
  background-color: rgb(226, 226, 248);
  color: black;
}
.add-button:active{
  background-color: aliceblue;
}

/*LOGIN FORM*/
.login-form{
  width: 50%;
  justify-self: center;
  height: auto;
  background-color:white;
  border-color: black;
  box-shadow: rgb(199, 205, 226)  1px 2px 1px 2px ;
  margin-top: 100px;
  border-radius: 4px;
  padding: 20px;
  justify-content: center;
  overflow: hidden;
}
.login-form h2{
font-family: 'Courier New', Courier, monospace;
font-weight: 900;
justify-self: center;
color: blue;
}
.input{
display: flex;
justify-content: space-between;
align-items: center;;
margin-top: 40px;
border:0px;
border-bottom: rgb(161, 159, 248) 2px;
border-style: groove;
cursor: pointer;
padding: 2px;
}
.input input{
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
}
.sub-log{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
}
.rem-me{
  display: flex;
  align-items: center;
  gap:3px;

}
.rem-me p{
  font-size: x-small;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 900;
  color: rgb(6, 6, 85);
}
.forg{
  font-size: x-small;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 900;
  color: rgb(85, 6, 6); 
}
.btn{
  width: 100%;
  padding: 8px;
  margin-top: 20px;
  background-color: blue;
  border: none;
  color: aliceblue;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover{
  background-color: rgb(130, 130, 241);
}
.btn:active{
  background-color: aliceblue;
}
.last-div{
  display:flex;
  margin-top: 12px;
}
.last-div p{
  font-family: 'Courier New', Courier, monospace;
  font-size: small;
  text-decoration: none;
}
.last-div a{
  text-decoration: none;
  font-size: smaller;
}
.form-error{
  color: red;
  justify-self: center;
  font-family: 'Courier New', Courier, monospace;
}

@media (max-width: 640px) {
  .buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 4px;
    display: none;
    
  }
  .main{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .head{
    display: none;
  }
}


