/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Page layout === */
body {
  font-family: "Montserrat", sans-serif;
  background-color: hsl(30, 38%, 92%);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

.page-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === Card container === */
.card {
  width: 700px;
  height: 500px;
  display: flex;
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* === Left image === */
.card-img {
  width: 50%;
  height: 100%;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Right content === */
.card-info {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.product-category {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: hsl(228, 12%, 48%);
}

.product-title {
  font-family: "Fraunces", serif;
  font-size: 32px;
  line-height: 1.1;
  color: hsl(212, 21%, 14%);
  font-weight: 700;
}

.product-description {
  font-size: 14px;
  line-height: 1.6;
  color: hsl(228, 12%, 48%);
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 20px;
}

.current-price {
  font-size: 28px;
  color: hsl(158, 36%, 37%);
  font-weight: 700;
}

.old-price {
  text-decoration: line-through;
  color: hsl(228, 12%, 48%);
  font-size: 14px;
}

/* === Button === */
.add-to-cart {
  background-color: hsl(158, 36%, 37%);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: hsl(158, 36%, 27%);
}

/* === Attribution === */
.attribution {
  font-size: 12px;
  text-align: center;
  color: hsl(228, 12%, 48%);
  margin-top: 20px;
}
