.menu-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* if you want spacing */
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  margin: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  height: 100%; /* important for grid layout consistency */
}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  max-height: 200px; /* optional: prevent oversized images */
}

#car-grid > .col-lg-4 {
  display: flex;
}
.menu-item {
  flex: 1;
}

.menu-item {
  background: rgba(255, 255, 255, 0.9);
}
.menu-item .info, .menu-item .price {
  background: rgb(255, 255, 255); /* light pink to see if they overflow */
}


.menu-item .info {
  margin-top: 10px;
}

.menu-item .info h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #333;
}

.menu-item .info p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.menu-item .price {
  font-weight: bold;
  color: #f74932;
  font-size: 16px;
  margin-top: 10px;
}

#pagination {
  text-align: center;
  margin-top: 20px;
}

#pagination button {
  margin: 0 5px;
  padding: 8px 12px;
  background-color: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#pagination button.active {
  background-color: #ff6a00;
  color: white;
  font-weight: bold;
}

/* Responsive Design For Phone*/
@media (max-width: 768px) {
  #car-list {
    margin-left: 15%;
  }
}