* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Lato", sans-serif;
  padding: 10px; /* Reduced from 20px */
  background-color: #fff;
}

/* Container: two-column grid, bigger max width */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two products side-by-side */
  gap: 20px;
  padding: 20px;
  max-width: 900px; /* Increased from 700px */
  margin: 0 auto;
}

.product-card {
  width: 100%;
  /* max-width: 300px; <-- Remove if you want them wider */
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
}

.product-card img {
  height: 170px;
  width: 70%;
  object-fit: contain;
  object-position: center;
  transition: all 0.3s;
}

.product-card img:hover {
  transform: scale(1.2);
}

.product-name {
  font-size: 16px;
  /* Previously: margin: 15px 0; */
  margin: 15px 0 5px; /* top, left-right, bottom */
  text-align: center;
  min-height: 105px;
}

.check-price-button {
  /* Remove or reduce extra margin here if you prefer */
  margin-bottom: 8px; /* Pull the stars closer */
  background-color: #f39c12;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
  width: 100%;
  text-decoration: none !important;
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
}

.rating {
  /* Reduce the top margin here */
  /* margin-top: 10px; */
  color: #ff9900;
  font-size: 14px;
  text-align: center;
  width: 100%;
  /* If you have extra spacing below, you can reduce or remove margin-bottom here */
  margin-bottom: 0;
}

.star-rating,
.stars {
  /* Keep stars on one line */
  line-height: 1.4;  
  white-space: nowrap;
}

/* Example half-star / full-star if needed */
.full-star  { color: #ff9900; }
.half-star  { color: #ff9900; }
.empty-star { color: #ccc; }

.rating-point {
  color: #212121;
  font-size: 16px;
}

/* If you still want a star icon block with .stars, also ensure line height there. */
.stars {
  font-size: 25px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Responsive: On screens <= 600px, switch to one column and reduce image size. */
@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr; /* One product per row */
    max-width: 90%;
  }
  .product-card {
    max-width: 100%; /* Let it fill the container width */
  }
  .product-card img {
    height: 125px;
    width: 90%;
  }
  .product-name {
    min-height: auto;
  }
}
