.products {
  gap: 2rem; /* optional: spacing between items */
  list-style: none;
  padding: 0;
  margin: 0;
  /* background-color: rgb(230, 215, 173); */
}

.products img {
  max-width: 200px;
}

.products li {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 5%;
  /* background-color: lightgreen; */
}
 
.products a {
  text-decoration: none; 
  font-size: 1.2rem;
  font-weight: bold;
  /* background-color: aqua; */
}

.view-more a {
  display: flex;
  justify-content: right;
  color: #3EB489;
  font-weight: 100;
  font-family: 'Source Sans Pro';
  font-size: 1.2rem;
  padding-right: 3rem;
}


.product-title-rendered {
  margin-bottom: 20px;
}

.display-image {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* optional: center them */
}

.leaf-item {
  display: flex;
  flex-direction: column;
  width: 25%;
  align-items: center;
  margin-bottom: 1rem;
  justify-content: flex-end;
}

.leaf-info {
  display: flex;
  text-align: center;
  width: 100%;
  align-items: flex-end;
  /* background-color: lightsalmon; */
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 3rem 0 3rem;
}

.leaf-title {
  font-weight: bold;
  font-family: 'Source Sans Pro';
  white-space: nowrap;       /* Prevents the text from wrapping */
  overflow: hidden;          /* Hides the overflowed text */
  text-overflow: ellipsis;   /* Adds the ellipsis (...) */
  max-width: 100%;           /* Optional: limits the width of the element */
}

.leaf-price {
  margin-top: 0.5rem;
  font-weight: 100;
  color: #1e1e1eb6;
  white-space: nowrap;       /* Prevents the text from wrapping */ 
}

@media (max-width: 768px) {
  .leaf-item {
    width: 100%;
  }

  .display-image {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
  }

  .display-image::-webkit-scrollbar {
    display: none; /* Hides scrollbar on WebKit browsers */
  }

  .leaf-item {
    flex: 0 0 75%;
    max-width: 75%;
  }
}