:root {
  --green-500: hsl(158, 36%, 37%);
  --green-700: hsl(158, 42%, 18%);
  --black: hsl(212, 21%, 14%);
  --grey: hsl(228, 12%, 48%);
  --cream: hsl(30, 38%, 92%);
  --white: hsl(0, 0%, 100%);
  --font-body: "Montserrat", sans-serif;
  --font-heading: "Fraunces", serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  max-width: 600px;
  display: flex;
  flex-direction: row;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin: 2rem;
}
.card__image {
  flex: 1 1 50%;
  min-width: 220px;
  background: var(--cream);
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__content {
  flex: 1 1 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card__category {
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.card__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.card__desc {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.card__prices {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.card__price--current {
  color: var(--green-500);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}
.card__price--old {
  color: var(--grey);
  text-decoration: line-through;
  font-size: 14px;
  font-family: var(--font-body);
}
.card__btn {
  background: var(--green-500);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 1rem 0;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.card__btn:focus,
.card__btn:hover {
  background: var(--green-700);
  outline: none;
}
.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 2rem;
  color: var(--grey);
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 600px) {
  .card {
    flex-direction: column;
    max-width: 340px;
  }
  .card__image img {
    content: url("./images/image-product-mobile.jpg");
    height: 240px;
    border-radius: 10px 10px 0 0;
  }
  .card__image {
    min-width: 0;
    height: 240px;
  }
  .card__content {
    padding: 1.5rem;
  }
}
@media (min-width: 601px) {
  .card__image img {
    content: url("./images/image-product-desktop.jpg");
    min-height: 100%;
    border-radius: 10px 0 0 10px;
  }
}
