@charset "UTF-8";
@import url("common.css");
body {
  margin: 0;
  background-color: #f9f9f9;
}

header {
  padding: 20px 40px;
  border-bottom: 1px solid #ddd;
}

header h1 {
  margin: 0;
  font-size: 22px;
  color: #8b0000;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px;
  gap: 50px;
}

.card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 30%;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 12px;
  align-items: flex-end;
}

.card-title span {
  font-family: "BrandonG bold";
}

.price {
  font-size: 14px;
  color: #555;
  min-width: 98px;
}

.card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "aritaD medium";
}

.info-box {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 13px;
  background: #fafafa;
  transition: background 0.2s;
}

.info-box:hover {
  background: #eaf6ff;
}

.card-body .inquiry {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 20px 0;
  font-family: "aritaD medium";
}

.inquiry .button {
  border: 1px solid #000;
  padding: 10px 13%;
}
.inquiry .button:hover {
  background: #f9c702;
  border: 1px solid #f9c702;
}

/* 반응형 */
@media (max-width: 1200px) {
  .card {
    width: 45%;
  }
}

@media (max-width: 780px) {
  .card {
    width: 96%;
  }
  .container {
    padding: 0;
  }
}
