/* consider whole page  */
.productpage {
  /* border: 1px solid gray; */
  width: 70%;
  height: 2000px;
  margin: auto;
  font-family: "Lato";
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
/* header part of page  */
/* .header {
  width: 100%;
  height: 150px;
  border: 1px solid #37a811;
} */
/* div of image or slider  */
.headDetails {
  /* border: 1px solid rgb(196, 12, 241); */
  height: 300px;
}
/* image in slider  */
.img {
  width: 100%;
  /* border: 1px solid rgb(80, 27, 59); */
}
/* div below the slider  */
.imgDetails {
  width: 74%;
  height: 60px;
  margin: auto;
  display: flex;
  justify-content: center;
  /* border: 1px solid rgb(238, 5, 149); */
}
/* boxes in div below the slider  */
.details {
  width: 120px;
  /* border: 1px solid rgb(238, 5, 149); */
  justify-content: space-around;
  text-align: center;
  font-size: 18px;
  line-height: 15px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
/* middle part of page below slider  */
.middle {
  display: flex;
}
/* middle part contains two parts called left and right  */
.left {
  width: 20%;
  height: 800px;
  /* border: 1px solid palevioletred; */
  margin-left: 15px;
  color: rgb(97, 94, 94);
}
/* in left some headings  */
p {
  font-size: 19px;
  color: black;
}
.foodgrain {
  color: #37a811;
  font-size: 19px;
  /* border: 1px solid rgb(238, 5, 149); */
}
/* first categories in left  */
button {
  background: transparent;
  border: none;
  margin-top: 5px;
  color: rgb(97, 94, 94);
}
/* text content of check boxes  */
.fg {
  color: rgb(70, 66, 66);
  /* border: 1px solid rgb(238, 5, 149); */
}
/* horizontal line  */
hr {
  border-color: #37a811;
}
/* left part ends here  */
.right {
  width: 78%;
  /* height: 3000px; */
  /* border: 1px solid rgb(201, 25, 83); */
  margin-left: 15px;
}
/* in rigth part there is product heading  */
.prohead {
  width: 97%;
  height: 120px;
  /* border: 1px solid rgb(201, 25, 83); */
  margin-left: 15px;
}
/* product heading is separated in rop and bottom  */
.top {
  display: flex;
  justify-content: space-between;
  /* border: 1px solid rgb(238, 5, 149); */
}
/* filter is drop down in top in product head  */
#sortbycat {
  margin-top: 23px;
  height: 30px;
  background: transparent;
  border: #37a811 2px solid;
  border-radius: 5px;
}
.bottum {
  color: grey;
  /* border: 1px solid rgb(238, 5, 149); */
}
/* end of product head  */
/* grids if all product starts here  */
/* this is just a row in grid part  */
#products {
  width: 97%;
  height: auto;
  /* border: 1px solid rgb(238, 5, 149); */
  margin-left: 15px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 350px;
  grid-gap: 15px;
}
/* boxes in row in products grid  */
.boxstyle {
  /* border: 1px solid gray; */
  line-height: 15%;
}
.boxstyle:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 4px 8px;
}
/* image of product in boxes  */
.proimgsize {
  width: 100%;
  height: 200px;
  /* border: 1px solid rebeccapurple; */
}
/* content below the image of product  */
.proDesc {
  /* padding: 10px; */
  background: rgb(233, 232, 230);
  padding-left: 2px;
  /* color:grey; */
  /* border: 1px solid black; */
}
/* some content details  */
.brand {
  /* line-height: 0px; */
  font-size: 12px;
  color: gray;
}
.name:hover {
  color: #37a811;
}

.mrp {
  text-decoration: line-through;
  color: gray;
}
/* delivery  */
.delv {
  font-size: 12px;
}
/* print Qty  */
.button1 {
  border: 1px solid gray;
  border-radius: 3px 0px 0px 3px;
  background-color: rgb(197, 196, 196);
}
/* qty = 1  */
.button2 {
  border: 2px solid rgb(100, 100, 100);
  border-radius: 0px 3px 3px 0px;
  width: 35px;
}
/* ADD  */
.button3 {
  border: 1px solid gray;
  border-radius: 3px;
  background: rgb(235, 196, 123);
  margin-left: 20px;
  width: 60px;
}
/* .hr{
      border: 1px solid;
  } */

/* Footer CSS */

@media only screen and (min-width: 401px) and (max-width: 800px) {
  /* .header {
    display: none;
  } */
  .img {
    display: none;
  }
  .imgDetails {
    display: none;
  }
  .left {
    display: none;
  }
  .fg {
    display: none;
  }
  #products {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 0px) and (max-width: 400px) {
  /* .header {
    display: none;
  } */
  .img {
    display: none;
  }
  .imgDetails {
    display: none;
  }
  .left {
    display: none;
  }
  .fg {
    display: none;
  }
  #sortbycat {
    margin-right: 30px;
    margin-bottom: 20px;
  }
  #bottum {
    margin-top: 10px;
    border: 1px solid black;
  }
  #products {
    grid-template-columns: repeat(1, 1fr);
  }
}
/* NAVBAR STARTs here */
#overP {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
#nav {
  width: 95%;
  display: grid;
  grid-template-rows: 30px 30px 30px;
  grid-template-columns: repeat(12 1fr);
  grid-gap: 5px;
  margin: auto;
}

#burger {
  display: none;
}

#person {
  display: none;
}

#location {
  display: none;
}

#logo {
  display: none;
}

.header {
  /* background-color: rgb(230, 24, 24); */
  grid-row-start: 1;
  grid-row-end: 2;
  grid-column-start: 6;
  grid-column-end: 12;
  border-radius: 2px;
}

.menu {
  /* grid-area: 1/1/4/2; */
  grid-row-start: 1;
  grid-row-end: 4;
  grid-column-start: 1;
  grid-column-end: 2;
  border-radius: 5px;
}

.content {
  /* background-color: teal; */
  /* grid-area: 2/2/4/8; */
  grid-row-start: 2;
  grid-row-end: 4;
  grid-column-start: 2;
  grid-column-end: 9;
  border-radius: 5px;
  display: grid;
}

.card {
  background-color: rgba(202, 202, 202, 0.527);
  /* grid-area: 2/8/4/12; */
  grid-row-start: 2;
  grid-row-end: 4;
  grid-column-start: 10;
  grid-column-end: 12;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.card:hover {
  border: 1px solid black;
}

span {
  margin: 0px;
}

a {
  text-decoration: none;
  color: inherit;
  font-size: 16px;
}

.menu > img {
  object-fit: contain;
  width: 80%;
  height: 80%;
  margin-top: 10px;
}

img:hover,
.find:hover {
  cursor: pointer;
}

li:nth-of-type(2):hover,
li:nth-of-type(3):hover {
  cursor: pointer;
}

#list {
  display: grid;
  grid-template-columns: repeat(3 1fr);
}

ul {
  display: flex;
  justify-content: flex-end;
  margin-right: 30px;
  margin-top: -1px;
  color: rgba(71, 67, 67, 0.74);
}

li {
  list-style: none;
  margin: 0 6px;
}

#input {
  margin: auto;
  /* margin-top: 30px; */
  margin-left: 20px;
  width: 100%;
}

#input > input {
  width: 90%;
  height: 30px;
}

.find {
  width: 30px;
  height: 30px;
  border: none;
  background: rgb(143, 243, 84);
}

#cart {
  display: none;
}
p {
  margin: 5px;
}

#burger:hover,
#person:hover,
#location:hover,
#cart:hover {
  cursor: pointer;
}

.navbar {
  overflow: hidden;
  background-color: #ffffff;
  width: 95%;
  margin: auto;
  border: 0.5px solid rgba(173, 172, 172, 0.39);
}

#burger > i,
#person,
#location,
#cart > i {
  color: #ddd;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 5px;
  text-decoration: none;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  width: 240px;
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 5px;
  background-color: #84c225;
  font-family: inherit;
  margin: 0;
}

.offers {
  /* width: 150px; */
  font-size: 16px;
  border: none;
  outline: none;
  color: rgba(65, 60, 60, 0.863);
  padding: 5px 15px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* .navbar a:hover,
        .dropdown:hover .dropbtn {
          background-color: red;
        } */

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 240px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: #000000;
  padding: 5px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}
.fa-tags {
  color: red;
}

.offers:hover {
  background-color: #628132;
  color: rgb(255, 255, 255);
}

.offers:hover > .fa-tags {
  color: rgb(255, 255, 255);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.sidepanel {
  display: block;
  height: 100%; /* Specify a height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0;
  left: 0;
  margin: auto 0;
  background-color: rgb(233, 233, 233); /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  /* padding-top: 60px; Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidepanel */
}

/* The sidepanel links */
.sidepanel a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 16px;
  color: #000000;
  display: block;
}

hr {
  color: #000000;
  border-width: 0.5px;
  margin: 0 auto;
}

/* When you mouse over the navigation links, change their color */
/* .sidepanel a:hover {
          color: #f1f1f1;
        } */

/* Position and style the close button (top right corner) */
.sidepanel .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

/* Style the button that is used to open the sidepanel */
.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #111;
  color: white;
  padding: 10px 15px;
  border: none;
}

.openbtn:hover {
  background-color: #444;
}

#mySidepanel :nth-of-type(1) {
  background-color: #84c225;
  display: flex;
  justify-content: space-between;
}

.fa-close {
  padding: 5px 7px;
  border-radius: 50%;
  color: #84c225;
}
.sidepanel > .fa-close:hover {
  cursor: pointer;
}
.sidepanel a:hover {
  cursor: pointer;
}

#mySidepanel :nth-of-type(1):hover {
  cursor: default;
}

.person-content {
  display: none;
  position: absolute;
  background-color: #535050e1;
  width: 50%;
  margin-left: -150px;
  margin-top: 50px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.person-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.person-content a:hover {
  background-color: #ddd;
}

.show {
  display: flex;
  flex-direction: column;
  align-content: center;
  padding: 5px;
}

.personbtn :hover,
.person:focus {
  color: red;
}

.Btn {
  width: 90%;
  height: 40px;
  background-color: rgb(255, 166, 0);
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  margin: 15px auto;
  text-align: center;
}

.Btn:nth-of-type(2) {
  background-color: rgb(255, 255, 255);
  color: black;
}

@media (min-width: 340px) and (max-width: 800px) {
  #nav {
    width: 100%;
    display: grid;
    grid-template-rows: 40px 40px;
    grid-template-columns: repeat(12 1fr);
    grid-gap: 5px;
    margin: auto;
    padding-top: 5px;
    background-color: #84c225;
  }
  /* #images {
      position: relative;
      width: 100%;
      height: 250px;
      margin: 10px auto;
    } */

  #images img {
    width: 100%;
    height: 80%;
    /* object-fit: contain; */
    position: absolute;
    animation: fadeInNew ease-in-out infinite 12s;
  }
  #burger {
    display: flex;
    grid-area: 1/2/2/4;
  }

  #person {
    display: flex;
    grid-area: 1/4/2/6;
  }

  #logo {
    display: flex;
    grid-area: 1/6/2/8;
  }
  #logo > img {
    width: 50%;
    object-fit: contain;
    /* height: 50%; */
  }

  #location {
    display: flex;
    grid-area: 1/8/2/10;
  }

  #cart {
    display: flex;
    grid-area: 1/10/2/12;
  }

  .header {
    display: none;
  }

  .menu {
    display: none;
    /* grid-area: 1/6/2/7; */
  }

  .menu > img {
    width: 60%;
    height: 100%;
  }

  /* img:hover {
      cursor: pointer;
    } */
  .content {
    grid-area: 2/1/3/12;
  }

  .card {
    display: none;
  }

  #input {
    width: 100%;
    margin-left: 0px;
    margin: auto;
  }

  .navbar {
    display: none;
  }
}

@media (min-width: 0px) and (max-width: 340px) {
  #nav {
    width: 100%;
    display: grid;
    grid-template-rows: 40px 40px;
    grid-template-columns: repeat(12 1fr);
    grid-gap: 5px;
    margin: auto;
    background-color: #84c225;
  }

  #location {
    font-size: 16px;
  }

  #input {
    width: 100%;
    margin-left: 0;
    /* width: 100%; */
  }
}
