main {
  position: relative;
  width: 100%;
  min-height: 100%;
  clear: both;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bolder;
  color: #007C89;
}

main ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  background-color: #fed495;
  margin: 50px auto;
  width: auto;
  max-width: 85%;
  border-radius: 5px;
  overflow-x: auto;
}

main ul li {
  padding: 20px 25px 20px 25px;
}

main ul li a {
  text-decoration: none;
  color: #DA5599;
  font-size: 1.2rem;
}

main ul li a:hover {
  color: #DA5599;
}

.products {
  display: grid;
  max-width: 1200px;
  margin: 0 auto;
  grid-gap: 50px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  padding: 20px;
}

main .empty{
  text-align: center;
  margin: 0 auto 0;
  font-size: 1.5rem;
  color: #222;
  margin-top: 100px;
}

.products .product {
  position: relative;
}

.products a{
  text-decoration: none;
  color: black;
}

.products .product img {
  border: 1px solid #cccccc;
  width: 100%;
  height: 250px;
}

.products .product h3 {
  text-align: center;
  font-size: 1.7rem;
  font-weight: bold;
  margin: 10px 10px;
}

.products .product .price {
  font-size: 1.5rem;
  text-align: center;
  margin: 0;
}


.prices {
  position: relative;
  height: 30px;
  text-align: center;
  margin: 10px;
}

.prices .new-price {
  font-size: 1.3rem;
}

.prices .old-price {
  position: absolute;
  margin-left: 5px;
  font-size: 1rem;
  text-decoration: line-through;
  color: #dd1111;
}


.products .product button {
  display: block;
  margin: 10px auto;
  padding: 11px 12px;
  font-size: 1.2rem;
  background-color: #fed495;
  color: #DA5599;
  border: none;
  cursor: pointer;
}

.products .product button:hover {
  background-color: #f8c579;
}


@media only screen and (max-width: 930px) {

  main ul {
    display: block;
    text-align: center;
  }

  .category-opened {
    height: 100%;
  }

  .category-closed li {
    height: 0;
    display: none;
  }

}

@media (max-width: 900px) {
  .products {
    padding: 0!important;
    margin: 0!important;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .products {
    grid-template-columns: none;
  }

  .products .product{margin: 0 auto 0;}

  .products .product img{
    height: auto;
    border-left: none; 
    border-right: none;
  }
}
