/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: hsl(30, 38%, 92%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.card {
  display: flex;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  max-width: 600px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h4 {
  letter-spacing: 5px;
  color: hsl(228, 12%, 48%);
  font-size: 0.75rem;
}

.card-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  margin: 10px 0;
}

.card-content p {
  font-size: 0.9rem;
  color: hsl(228, 12%, 48%);
  margin-bottom: 16px;
}

.price {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.current-price {
  color: hsl(158, 36%, 37%);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Fraunces', serif;
}

.original-price {
  text-decoration: line-through;
  font-size: 0.9rem;
  color: hsl(228, 12%, 48%);
}

.add-to-cart {
  background-color: hsl(158, 36%, 37%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
}

.add-to-cart:hover {
  background-color: hsl(158, 36%, 20%);
}


@media (max-width: 600px) {
  .card {
    flex-direction: column;
    max-width: 340px;
  }

  .card-image img {
    content: url("../images/image-product-mobile.jpg");
    /* 모바일용 이미지 교체 */
  }

  .card-content {
    padding: 20px;
  }

  .card-content h2 {
    font-size: 1.25rem;
  }

  .current-price {
    font-size: 1.3rem;
  }

  .add-to-cart {
    width: 100%;
  }
}