* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
  text-decoration: none;
}
body{
    font-family: monospace;
    overflow-x: hidden;
    font-synthesis: 15px;
  background-size: cover;
}
a{
    text-decoration: none;
}
.container{
    width: 90%;
    margin: auto;
    max-width: 100%;
    transition: transform 1s;
    padding-top: 200px;
}
header img{
    width: 60px;
}
header {
  margin: auto;
  max-width: 100%;
  transition: transform 1s;
  padding-top: 200px;
  border: 2px solid;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 20px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url('grocery.jpg');
  box-shadow: var(--box-shadow);
  z-index: 99;
}
.hew
{
  border: 1px;
  top: 120px;
  left: 0;
  right: 0;
  height: 90px;
  position: fixed;
  display: flex;
  z-index: 99;
  justify-content: space-between;
  background-color: white;
}
.hew a
{
  border: 1px;
  width: 133px;
  height: 50px;
  margin-top: 1rem;
  display: inline-block;
  padding: .1rem 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: .5rem;
  cursor: pointer;
  color: black;
  text-align: center;
}

.hew a:hover
{
  color: deeppink;
}
header .iconCart{
    position: relative;
    z-index: 1;
}
header .totalQuantity{
    position: absolute;
    top: 0;
    right: 0;
    font-size: x-large;
    background-color: #b31010;
    width: 40px;
    height: 40px;
    color: #fff;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transform: translateX(20px);
}
.listProduct{
  text-align: center;
}
.listProduct .newtk
{
  padding-top: 2rem;
}
.listProduct .rice,
.listProduct .dhal,
.listProduct .spice,
.listProduct .millet,
.listProduct .masala,
.listProduct .flour,
.listProduct .instant,
.listProduct .dry,
.listProduct .coffee,
.listProduct .snack,
.listProduct .house,
.listProduct .soap,
.listProduct .oil,
.listProduct .salt,
.listProduct .dairy,
.listProduct .health{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
    background-color: pink;
  padding: 2rem;
  width: 1000px;
  max-width: 100%;
  margin: 50px auto 0;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
}
.listProduct .item img{
    width: 150px;
        height: 150px;
    object-fit: cover;
  padding-top: .5rem;
  border-radius: .5rem;
}
.listProduct .item{
    position: relative;
  border: 0px solid;
  border-radius: .5rem;
  background-color: #ffdbe1;
}
.listProduct .item h2{
    font-weight: 700;
    font-size: large;
}
.listProduct .item .price{
    font-size: x-large;
}

.listProduct .item button{
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #e6572c;
    color: #fff;
    width: 100%;
    border: none;
    padding: 20px 30px;
    box-shadow: 0 10px 50px #000;
    cursor: pointer;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
}
.listProduct .item:hover button{
    transition:  0.5s;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.cart{
    color: black;
    position: fixed;
    width: 450px;
    max-width: 80vw;
    height: 100vh;
    background-color: pink;
    top: 0px;
    right: -100%;
    display: grid;
    grid-template-rows: 50px 1fr 50px;
    gap: 20px;
    transition: right 1s;
    z-index:100;
}

.cart .buttons .checkout{
    background-color: hotpink;
    color: black;
}
.cart h2{
    color: black;
    padding: 20px;
    height: 75px;
    margin: 0;
  border: 0px solid;
  background-color: hotpink;
}


.cart .listCart .item{
    display: grid;
    grid-template-columns: 50px 1fr 70px;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;

}
.cart .listCart img{
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
}
.cart .listCart .item .name{
    font-weight: bold;
}
.cart .listCart .item .quantity{
    display: flex;
    justify-content: end;
    align-items: center;
}
.cart .listCart .item button{
  width: 30px;
}
.cart .listCart .item .quantity span{
    display: block;
    width: 70px;
    text-align: center;
}

.cart .listCart{
    padding: 20px;
    overflow: auto;
}
.cart .listCart::-webkit-scrollbar{
    width: 0;
}

.cart .buttons{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
}
.cart .buttons div{
    background-color: hotpink;
  color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
}
.cart .buttons a{
    color: black;
    text-decoration: none;
}
.checkoutLayout{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding: 20px;
}
.checkoutLayout .right{
    background-color: #3F5EFB;
    height: 42rem;
    border-radius: 20px;
    padding: 40px;
    color: black;
}
.checkoutLayout .right .form{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    border-bottom: 1px solid #3F5EFB;
    padding-bottom: 20px;
    color: black;
}
.checkoutLayout .form h1,
.checkoutLayout .form .group:nth-child(-n+6){
    grid-column-start: 1;
    grid-column-end: 3;
}
.checkoutLayout .form input, 
.checkoutLayout .form select
{
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    border-radius: 20px;
    margin-top: 10px;
    border:none;
    background-color: white;
    color: black;
}
.checkoutLayout .right .return .row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.checkoutLayout .right .return .row div:nth-child(2){
    font-weight: bold;
    font-size: x-large;
}
.buttonCheckout{
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 20px;
    background-color: lightblue;
    margin-top: 20px;
    font-weight: bold;
    color: black;
}
.returnCart h1{
    border-top: 1px solid black;  
    padding: 20px 0;
}
.returnCart .list .item img{
    height: 80px;
}
.returnCart .list .item{
    display: grid;
    grid-template-columns: 80px 1fr  50px 80px;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 10px;
    box-shadow: 0 10px 20px #5555;
    border-radius: 20px;
}
.returnCart .list .item .name,
.returnCart .list .item .returnPrice{
    font-size: large;
    font-weight: bold;
}

.containor{
  background-color: lightpink;
  width: 1000px;
  max-width: 100%;
  margin: 50px auto 0;
  border-radius: 10px;
}
.filter
{
  padding: 20px;
  display: grid;
  grid-template-columns: 40% 20% 40%;
  column-gap: 1%;
}
.filter .item
{
  background-color: #ffdbe1;
  display: flex;
  justify-content: center;
  text-align: center;
  border: 1px solid;
  font-size: 1.2rem;
}
.filter .item select,
.filter .item input,
.filter .item button{
  width: 100%;
  padding: 5px;
  border: none;
  background-color: white;
  outline: none;
}
.filter .item label
{
  display: block;
  width: 40%;
  padding: 0 10px;
}
.filter .item.j
{
  width: 23rem;
  border-left: 1px solid black;
  text-align: center;
  padding-top: 5px;
}
.filter .item.submit button
{
  background-color: #ffdbe1;
  font-size: 1.5rem;
  width: 10rem;
}
.countResults
{
  font-size: xx-large;
  text-align: center;
  padding: 20px;
}
#list
{
  padding: 20px;
  display: grid;
  column-gap: 1%;
  grid-template-columns: 32.66% 32.66% 32.66%;
  row-gap: 10px;
}
#list .item{
  text-align: center;
  background-color: #fff5;
  border-radius: 10px;
}
#list .item img
{
  width: 300px;
  height: 300px;
  object-fit: cover;
  margin: 20px 0;
  border-radius: 10px;
}
#list .item .title
{
  font-weight: bold;
  padding-top: -100px;
}
.countResults #list .item .price
{
 color: darkorange;
  letter-spacing: 1px;
  padding: 20px;
}
header a
{
  border: .2rem solid black;
  width: 200px;
  margin-top: 1rem;
  display: inline-block;
  padding: .8rem 3rem;
  font-size: 1.7rem;
  border-radius: .5rem;
  cursor: pointer;
  color: black;
  text-align: center;
  background-color: lightgray;
}

header a:hover
{
  background: gray;
  color: white;
}
.returnCart a
{
  border: .2rem solid black;
  width: 300px;
  margin-top: 1rem;
  display: inline-block;
  padding: .8rem 3rem;
  font-size: 1.7rem;
  border-radius: .5rem;
  cursor: pointer;
  background-color: pink;
  color: black;
  text-align: center;
}

.returnCart a:hover
{
  background: hotpink;
  color: white;
}
.Thankyou
{
  text-align: center;
  color: transparent;
}
.Thankyou.active p
{
  font-size: 2rem;
  color: black;
}
.Thankyou.active
{
  text-align: center;
  color: black;
}

.Thankyou .kkoi
{
  color: transparent;
}























@media (max-width: 991px)
{
  html
  {
    font-size: 25%;
  }
  .container
  {
    width: 100%;
  }
  .listProduct
  {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px)
{
  header a
  {
    width: 100px;
  }
  .listProduct
  {
    grid-template-columns: repeat(3, 1fr);
  }
    .filter .item.j
{
  width: 100%;
  font-size: 3rem;
}
.filter .item.submit button
{
  width: 100%;
}
}

@media (max-width: 450px)
{
  html
  {
    font-size: 50%;
  }
  .listProduct .rice,
  .listProduct .dhal,
  .listProduct .spice,
  .listProduct .millet,
  .listProduct .masala,
  .listProduct .flour,
  .listProduct .instant,
  .listProduct .dry,
  .listProduct .coffee,
  .listProduct .snack,
  .listProduct .house,
  .listProduct .soap,
  .listProduct .oil,
  .listProduct .salt,
  .listProduct .dairy,
  .listProduct .health
  {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }
  .container
  {
    width: 100%;
  }
  .cart{
    height: 100%;
    font-size: 150%;
  }
header{
    width: 100%;
    position: fixed;
    justify-content: space-between;
    padding: 20px 10px;
  }
  .hew{
    width: 100%;
    height: 5%;
    display:grid;
  }
  .checkoutLayout .right{
    height: 100rem;
  }
  .checkoutLayout .right .form{
    font-size: 180%;
  }
  .returnCart{
    font-size: 150%;
  }
  .checkoutLayout .return{
    font-size: 180%;
  }
  .filter .item.j
{
  width: 100%;
}
.filter .item.submit button
{
  width: 100%;
}
  #list
  {
    grid-template-columns: 50% 50%;
  }
  #list .item img
  {
    width: 15rem;
    height: 15rem;
  }
  #list .item .title
{
  font-size: 2rem;
}
  header a
  {
    width: 30%;
  }
  .checkoutLayout
  {
    grid-template-columns: repeat(1,1fr);
    width: 100%;
    padding-left: 1.5rem;
  }
  .checkoutLayout .right
  {
    height: 112rem;
  }
  .Thankyou
  {
    font-size: 2rem;
  }
}
