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

body {
  font-family: 'Arial', sans-serif;
  background-color: hsl(30, 38%, 92%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Container */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  background-color: hsl(0, 0%, 100%);
  border-radius: 10px;
  overflow: hidden;
  max-width: 375px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Desktop layout */
@media (min-width: 768px) {
  .card {
    flex-direction: row;
    max-width: 600px;
  }

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

/* Mobile image */
.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content */
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
  color: hsl(212, 21%, 14%);
}

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

/* Prices */
.price-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

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

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

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

.cart-button:hover {
  background-color: hsl(158, 36%, 25%);
}
