#last-news {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: 0.3s;
  z-index: 10;
  opacity: 1;
}
#last-news.invisible {
  opacity: 0;
  z-index: -1;
}
#last-news .post {
  position: absolute;
  float: left;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-height: 300px;
  padding: 25px;
  background: #528403;
  color: #fff;
  border-radius: 25px;
}
#last-news .post .title {
  position: relative;
  float: left;
  width: 100%;
  font-size: 25px;
  font-weight: 700;
}
#last-news .post .text {
  position: relative;
  float: left;
  width: 100%;
  max-height: 200px;
  overflow-y: scroll;
  overflow-x: hidden;
  margin-top: 10px;
  font-size: 15px;
}
#last-news .btn {
  position: relative;
  float: left;
  left: 50%;
  transform: translate(-50%);
  margin-top: 10px;
  padding: 10px 20px;
  color: #528403;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}
.background-color {
  position: relative;
  float: left;
  width: 100%;
}
.background-color .background {
  position: absolute;
  float: left;
  width: 100%;
  height: 100%;
  background: rgba(133, 165, 4, 0.9);
}
#search {
  position: relative;
  float: left;
  width: 50%;
  left: 50%;
  transform: translate(-50%);
  margin-top: calc(5% + 80px);
  z-index: 2;
}
#search input[type="text"] {
  width: 100%;
  font-size: 25px;
  line-height: 25px;
  padding-top: 2%;
  padding-left: 2%;
  padding-bottom: 2%;
  border-radius: 10px;
  border: 2px solid #85a504;
  background: #fff;
  font-family: Roboto, sans-serif;
  font-weight: 300;
  box-sizing: border-box;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  outline: 0;
}
#search input[type="image"] {
  position: absolute;
  float: right;
  height: 70%;
  padding: 1.5%;
  right: 0;
  border: none;
  background: 0 0;
  cursor: pointer;
  -webkit-appearance: none;
  opacity: 0.8;
}
#cards {
  position: relative;
  float: left;
  width: 90%;
  padding: 2% 5%;
  margin-top: 3%;
}
#cards .card {
  position: relative;
  float: left;
  width: calc(28.3333333% - 4px);
  border: 2px solid #85a504;
  padding: 2% 1%;
  margin: 1.5%;
  left: 0;
  transform: translate(0);
  border-radius: 10px;
  font-weight: 700;
  font-size: 17px;
  background: #fff;
}
#cards .card img {
  position: absolute;
  float: right;
  right: 0;
  bottom: 0;
  height: 150%;
}
#products {
  position: relative;
  float: left;
  width: 1200px;
  left: 50%;
  transform: translate(-50%);
  margin-top: 3%;
  z-index: 2;
}
#products .product {
  position: relative;
  float: left;
  width: 248px;
  margin: 0 25px 25px 25px;
  border: 1px solid silver;
  box-shadow: 5px 5px 10px 2px #e5e4e2;
  border-radius: 30px;
  background: #fff;
  transition: 0.3s;
}
#products .product.offer {
  border-color: #528403;
}
#products .product.offer .title {
  color: #528403;
}
#products .product.offer .price {
  color: #528403;
}
#products .product:hover {
  box-shadow: 5px 5px 10px 2px #dcdcdc;
}
#products .product .img-offer {
  position: absolute;
  float: right;
  top: 85px;
  right: 25px;
  z-index: 2;
  width: 50px;
}
#products .product .img-offer img {
  width: 100%;
}
#products .product .img {
  position: relative;
  float: left;
  width: 60%;
  padding-top: 60%;
  left: 50%;
  transform: translate(-50%);
  overflow: hidden;
}
#products .product .img img {
  position: absolute;
  float: left;
  top: 0;
  height: 100%;
  left: 50%;
  transform: translate(-50%);
}
#products .product .title {
  position: relative;
  float: left;
  width: calc(100% - 50px);
  height: 40px;
  margin: 25px;
  font-size: 15px;
  text-align: center;
  z-index: 2;
}
#products .product .title h4 {
  margin: 0;
}
#products .product .price {
  position: relative;
  float: left;
  width: calc(100% - 50px);
  margin: 5px 25px;
  text-align: center;
  font-size: 20px;
  font-weight: 100;
}
#products .product .price .unit {
  font-size: 15px;
}
#products .product .quantity {
  position: relative;
  float: left;
  width: 110px;
  left: 50%;
  margin-top: 5px;
  transform: translate(-50%);
  text-align: center;
}
#products .product .quantity input {
  position: relative;
  float: left;
  width: 50px;
  height: 25px;
  padding: 0;
  margin: 0 5px;
  font-size: 15px;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  outline: 0;
  text-align: center;
  color: #555;
}
#products .product .quantity .icon {
  position: relative;
  float: left;
  width: 25px;
  height: 25px;
  background: #555;
  cursor: pointer;
}
#products .product .quantity .icon img {
  height: 70%;
  padding: 15%;
}
#products .product #add-cart {
  position: relative;
  float: left;
  width: calc(96% - 50px);
  margin: 15px 25px 25px 25px;
  font-size: 14px;
  background: #528403;
  color: #fff;
  padding: 3% 2%;
  text-align: center;
  cursor: pointer;
}
#pages {
  position: relative;
  float: left;
  width: 100%;
  margin: 5% 0;
  margin-bottom: -2%;
}
#pages #pages-n {
  position: relative;
  float: left;
  left: 50%;
  transform: translate(-50%);
}
#pages .icon {
  position: relative;
  float: left;
  height: 40px;
  cursor: pointer;
}
#pages .icon img {
  height: 100%;
}
#pages .testo {
  position: relative;
  float: left;
  width: 100px;
  text-align: center;
  line-height: 40px;
}
#title {
  position: relative;
  float: left;
  width: 100%;
  padding-top: calc(3% + 80px);
  text-align: center;
  font-size: 50px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.75);
  color: #528403;
  padding-bottom: 3%;
}
#access {
  position: relative;
  float: left;
  width: 40%;
  margin-top: 3%;
  left: 50%;
  transform: translate(-50%);
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  padding: 3% 5%;
  border: 2px solid #528403;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 25px;
  color: #528403;
  cursor: pointer;
  transition: 0.3s;
}
#access:hover {
  background: #fff;
}
@media (max-width: 1300px) {
  #products {
    width: 900px;
  }
}
@media (max-width: 1000px) {
  #title {
    font-size: 30px;
  }
  #last-news .post {
    width: 80%;
    max-height: 500px;
    padding: 5%;
  }
  #last-news .post .text {
    width: 100%;
    max-height: 350px;
  }
  #search {
    width: 90%;
  }
  #cards .card {
    font-size: 13px;
    width: calc(43% - 4px);
    margin: 2.5%;
  }
  #cards .card img {
    height: 130%;
  }
  #products {
    width: 95%;
    max-width: 700px;
  }
  #products .product {
    width: calc(45% - 2px);
    margin: 0 2.5% 2.5% 2.5%;
    border-radius: 15px;
  }
  #products .product .title {
    width: calc(100% - 15px);
    margin: 5%;
    font-size: 13px;
  }
  #products .product .price {
    width: 100%;
    margin: 0;
  }
  #products .product .quantity {
    width: 100px;
  }
  #products .product .quantity input {
    width: 40px;
  }
  #products .product #add-cart {
    font-size: 13px;
  }
  #access {
    width: 80%;
    margin-top: 5%;
    font-size: 25px;
    border-radius: 15px;
  }
}
