nav {
  text-align: center;
  padding: 20px;
  margin-top: 10px;

}

nav a:hover {
  color: navy;
  font-weight: bold;
}

.search-bar:hover {
  opacity: 0.4;
}


.hero {
  width: 100%;
  height: 21.75rem;
  margin-top: 3rem;
  border-radius: 1.5rem;
  background-image: url('../img/home/hero.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: hsla(0, 0%, 100%, 1);
}

.hero h1 {
  padding-top: 10rem;
  color: navy;
  font-family: "Didot";
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.products {
  padding: 0 5rem 6rem 5rem;
}

.products h2 {
  margin-top: 2rem;
  font-size: inherit;
  font-family: didot;
  font-weight: bold;
}

.landing .product-list {
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

.categories h3 {
  margin-bottom: 0;
}

.cart:hover {
  transition: 2s ease;
  width: 30%;
  opacity: .8;
  text-align: center;
}


.image-container, .description {
  border: 1px solid black;
}

.links a {
  font-family: didot;
}



a:hover {
  opacity:0.5;
}

h4 {
  font-weight: bold;
  font-family: didot;
}

@media only screen and (max-width: 1020px) {
  .landing .product-list {
    grid-template-columns: repeat(3, 1fr);
  }
}


@media only screen and (max-width: 760px) {
  .landing .product-list {
    grid-template-columns: repeat(2, 1fr);
  }

  
}

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

  .search-bar {
    text-align: center;
    width: 300px;
    margin-right: 10px;
  }

  .hero {
    padding-left: 0;
    text-align: center;
  }

  .hero h2 {
    padding-top: 7rem;
  }

  .hero p {
    width: 90%;
    margin: auto;
  }

  .links a {
    margin-bottom: 10px;
  }
}

@media only screen and (max-width: 490px) {
  nav a {
    padding:10px;
  }


  .landing .product-list {
    grid-template-columns: 1fr;
  }

}
