/* General styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: hsl(30, 38%, 92%);
  font-family: "Inter", sans-serif;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.main_container {
  background-color: hsl(0, 0%, 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  max-width: 375px;
}

/* Image section */
.image img {
  width: 100%;
  display: block;
  height: auto;
}

/* Text content */
.preview {
  padding: 1.5rem;
  font-family: "Figtree", sans-serif;
}

.category {
  letter-spacing: 4px;
  font-size: 12px;
  color: hsl(228, 12%, 48%);
  margin-bottom: 1rem;
}

.preview h1 {
  font-size: 24px;
  margin-bottom: 1rem;
  color: hsl(212, 21%, 14%);
}

.description {
  font-size: 14px;
  color: hsl(228, 12%, 48%);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.current-price {
  color: hsl(158, 36%, 37%);
  font-size: 28px;
  font-weight: 700;
}

.original-price {
  color: hsl(228, 12%, 48%);
  font-size: 14px;
}

/* Button styling */
button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(158, 36%, 37%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: hsl(158, 42%, 18%);
}

button img {
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

/* Attribution footer */
.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 2rem;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

/* Media Query: Larger screens */
@media (min-width: 600px) {
  .main_container {
    flex-direction: row;
    max-width: 600px;
  }

  .image img {
    height: 100%;
    object-fit: cover;
    width: 300px;
  }

  .preview {
    padding: 2rem;
  }

  .preview h1 {
    font-size: 28px;
  }

  .description {
    font-size: 15px;
  }
}
