*,
*::before,
*::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  font-family: "Montserrat";
  line-height: 1.5;
  font-weight: 400;
  font-size: 14px;
  background-color: hsl(30, 38%, 92%);
  margin: 40px 0;
}

.card {
    max-width: 352px;
}

.card__content {
    padding: 32px;
    background-color: white;
}

.category {
    font-weight: normal;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 16px;
}

.title {
    font-family: "Fraunces";
    font-size: 32px;
    line-height: 1;
}

.description {
    margin: 16px 0;
}

.card__price {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.current__price {
    font-size: 32px;
    font-family: "Fraunces";
    color: hsl(158, 36%, 37%);
}

.old__price {
    text-decoration: line-through;
}

button {
    font-family: inherit;
    padding: 12px 24px;
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 8px;
    border: none;
    background-color: hsl(158, 36%, 37%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    transition: background-color .2s ease;
}

.card__header img {
    border-radius: 8px 8px 0 0;
}

.card__content {
    border-radius: 0 0 8px 8px;
}

@media (min-width: 1024px) {
    .card {
        display: flex;
        max-width: 600px;
    }

    .card__content, .card__header {
        width: 50%;
    }

    .card__header img {
        height: 100%;
        object-fit: cover;
        object-position: bottom;
        border-radius: 8px 0 0 8px;
    }

    .card__content {
        border-radius: 0 8px 8px 0;
    }

    button:hover {
        background-color: hsl(158, 42%, 18%);
        cursor: pointer;
    }
}