.main {
  margin-top: 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}

.product-container {
  padding-top: 40px;
  padding-bottom: 25px;
  padding-left: 25px;
  padding-right: 25px;

  border-right: 1px solid rgb(231, 231, 231);
  border-bottom: 1px solid rgb(231, 231, 231);

  display: flex;
  flex-direction: column;

  background-color: var(--white);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-image-container {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 180px;
  margin-bottom: 20px;
}

.product-image {
  /* Images will overflow their container by default. To
    prevent this, we set max-width and max-height to 100%
    so they stay inside their container. */
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-name {
  height: 30px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 13px;

  color: var(--text-main);
}

.product-price {
  margin-bottom: 10px;
  font-size: 15px;
  color: rgb(177, 39, 4);
}

.add-button {
  background-color: rgb(67, 233, 123);
  border: 2px solid rgb(34, 197, 94); /* darker green border */
  padding: 8px;
  cursor: pointer;
  width: 100%;
  border-radius: 50px;
  font-size: 16px;
  transition: all 0.2s ease;
}

/* HOVER STATE */
.add-button:hover {
  background-color: rgb(34, 197, 94); /* slightly darker */
  border: 2px solid rgb(22, 163, 74); /* deeper green */
}

/* ACTIVE (CLICK) STATE */
.add-button:active {
  background-color: rgb(22, 163, 74); /* even darker */
  border: 2px solid rgb(21, 128, 61);
  transform: scale(0.98); /* subtle press effect */
}

@media (min-width: 1000px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 450px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}


.no-products-message {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 20px;
  color: rgb(100, 100, 100);
  margin-top: 80px;
}