#product-list, .product-list-class, #results-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.5rem;
  padding: 0px 10px 0px 10px;
  max-width: 1100px;
  margin: 0 auto 0 auto;
}

/* Yksittäisten tuotteiden tyylit */
.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem;
  background-color: #fff;
  text-decoration: none;
  color: inherit;
  position: relative; /* Lisää tämä, jotta voimme sijoittaa alennus-tagin */
}

.product img {
  width: 100%;
  height: auto;
  margin-bottom: 7px;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-size: 1rem;
  font-weight: bold;
}

.product-author {
  font-size: 0.9rem;
  color: #555;
}

.product-price {
  font-size: 1.1rem;
  color: #333;
  margin-top: 0rem;
}

.product-price .original-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 0.3rem;
  font-size: 0.9rem;
}

.discount-tag {
  position: absolute;
  top: 10px; /* Sijoittaa tagin hieman kuvan sisäreunaan */
  right: 10px;  /* Sijoittaa tagin hieman kuvan sisäreunaan */
  background-color: #000;
  color: #fff;
  padding: 1px 10px 1px 10px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Lisää varjon, jotta tagi erottuu paremmin */
}

/* Media query pienille laitteille */
@media (max-width: 620px) {
  #product-list, .product-list-class, #results-container {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

#show-more {
  margin: 30px auto;
  text-shadow: none;
  background-color: #006fff; /* Muuta tarvittaessa */
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 25px;
  transition: 0.3s ease;
  cursor: pointer;
  border: none;
  border-radius: 25px;
}
#show-more:hover {
  background-color: #005bd3; /* Muuta tarvittaessa */
}

.page-banner-inner-fullwidth {
  max-width: 100%;
}