/* Banner */
.banner {
  background: url(../assets/images/banner-image.png);
  background-size: cover;
  width: 100%;
  height: 350px;
  padding: 2.5rem 0;

  display: flex;
  align-items: end;
}

.banner-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.banner-content p {
  margin-bottom: 0.8rem;
  font-weight: bold;
  color: white;
}

/* Products */
.products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

.products .link {
  color: var(--blue);
  font-weight: bold;
}

.products-row {
  margin-bottom: 5rem;
}

.products-row:last-child {
  margin-bottom: unset;
}

.products-row-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.products-row-header .products-category-title {
  font-size: 2rem;
  font-weight: bold;
}

.products-row-product {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  margin-top: 1.25rem;
}

.products-row-product-message {
  font-size: 1.6rem;
  margin-top: 0.625rem;;
}

.products-category-link .category-link:hover {
  border-bottom: #2a7ae4 1px solid;
}

.products-category-link .category-link img {
  vertical-align: middle;
  margin-top: -2px;
  height: 25px;
}

.product {
  width: 15%;
  flex-shrink: 0;
}

.product .product-image {
  display: block;
  aspect-ratio: 1/1;
  width: 100%;
  background-color: brown;
}

.product .product-title {
  margin-top: 0.5rem;
  font-weight: 500;
}

.product .product-price {
  margin-top: 0.5rem;
  font-weight: bold;
}

.product .product-details {
  display: block;
  margin-top: 0.5rem;
}

.product .product-details:hover {
  text-decoration: underline;
}

/* Tablet View */
@media (max-width: 768px) {
  /* Banner */
  .banner-content {
    max-width: 700px;
  }

  /* Products */
  .products {
    max-width: 700px;
  }
  .products-row-header .products-category-title {
    font-size: 1.5rem;
  }
  .products-row-product {
    overflow: hidden;
    gap: 2%;
  }
  .product {
    width: 23.5%;
  }
  .product:nth-last-child(-n + 2) {
    display: none;
  }
}

/* Mobile View */
@media (max-width: 360px) {
  /* Banner */
  .banner {
    padding: 2rem 0;
  }
  .banner-content {
    max-width: 340px;
  }

  /* Products */
  .products {
    padding: 2rem 0;
    max-width: 340px;
  }
  .products-row {
    margin-bottom: 2.5rem;
  }
  .products-row-product {
    flex-wrap: wrap;
    gap: 4%;
  }
  .product {
    width: 48%;
  }
  .product:nth-child(-n + 2) {
    margin-bottom: 1.5rem;
  }
}
