@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

: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%);
}

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

html {
  font-size: 14px;
}

body {
  height: 100vh;
  background-color: var(--cream);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

main {
  max-width: 650px;
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 8px 0 0 hsl(212, 21%, 14%);
  transition: transform 0.3s ease-in, box-shadow 0.8s ease;
  border: 2px solid hsl(212, 21%, 14%);
}

main:hover {
  transform: scale(1.03);
  box-shadow: 12px 12px 0 0 hsl(212, 21%, 14%);
}

.card-image img {
  width: 100%;
  height: 100%;
}

.card-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-info h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--grey)
}

.card-info h1 {
  font-family: "Fraunces", serif;
  font-size: 3rem;
  color: var(--black);
}

.card-info .info-description {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.6;
}

.info-price {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "Fraunces", serif;
}

.info-price p:first-child {
  color: var(--green-500);
  font-size: 3rem;
}

.info-price p:last-child {
  text-decoration: line-through;
  color: var(--grey)
}

.card-info button {
  border: none;
  cursor: pointer;
  background-color: var(--green-500);
  padding: 15px 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease-in;
}

.card-info button:hover {
  background-color: var(--green-700);
}

@media  (min-width: 768px) {
  main {
    flex-direction: row;
  }

  .card-image {
    width: 50%;
  }

  .card-info {
    width: 50%;
    justify-content: space-between;
    gap: 0;
  }
}