.best-section {
  margin: 3rem 0;
  background-color: #f1e5d7;
  padding: 20px;
  border-radius: 8px;
}

.best-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: black;
}

/* 4 columns, auto rows */
.best-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 2rem; /* row-gap col-gap */
}

.best-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border-radius: 8px;
}

.rank {
  font-size: 1.5rem;
  font-weight: bold;
  width: 24px;
  text-align: center;
  color: black;
}

.best-image {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.best-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15),
              0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff8e7; /* optional: makes the card pop */
}

.best-info {
  flex: 1;
  min-width: 0; /* enables text ellipsis */
}

.best-name {
  font-size: 1rem;
  font-weight: 500;
  color: black;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.best-price {
  font-size: 0.9rem;
  color: black;
  margin: 0.25rem 0 0;
}



.best-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* crop while keeping aspect ratio */
  border-radius: 12px; /* match the parent container */
  display: block;      /* remove inline-gap from images */
}