.car-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: space-between;
}

.car-card, .car-item {
  display: flex;
  flex-direction: column;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background-color: #fff;
  width: calc(33.33% - 20px);
  min-width: 300px;
  max-width: 100%;
  transition: transform 0.25s ease;
}

.car-card:hover, .car-item:hover {
  transform: scale(1.05);
  z-index: 2;
}

.car-card h3, .car-item h3 {
  text-align: center;
  background-color: #f0f0f0;
  padding: 14px;
  margin: 0;
  font-size: 1.4em;
  border-bottom: 1px solid #ddd;
}

.car-card-content, .car-item-content {
  display: flex;
  flex-direction: row;
  padding: 16px;
  gap: 20px;
  align-items: flex-start;
}

.car-card img, .car-item img {
  width: 270px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.car-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end; 
  font-size: 1.05em;
  gap: 8px;
  flex-grow: 1;
}

.order-button {
  margin: 15px auto 20px auto;
  padding: 12px 24px;
  font-size: 1em;
  background-color: black;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.order-button:hover {
  transform: scale(1.05);
  background-color: #333;
}