/* GOOGLE FONT MONTSERRAT */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* GOOGLE FONT FRAUNCES */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,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%);

  --montserrat: "Montserrat", sans-serif;
  --fraunces: "Fraunces", serif;
}

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

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

.container {
  max-width: 350px;
  border-radius: 10px;
  background-color: var(--white);
  overflow: hidden;
  margin: 1rem auto;
}

.img-container {
  width: 100%;
  height: 300px;
}

.img-container picture,
.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container .parfum-container {
  padding: 1.25rem;
}

.perfume {
  font-family: var(--montserrat);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.4rem;
  color: var(--grey);
  text-transform: uppercase;
}

.parfum-container .parfum-detail {
  margin: 0.75rem 0 1rem;
}

.parfum-title {
  font-family: var(--fraunces);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.parfum-desc {
  font-size: 14px;
  color: var(--grey);
  font-family: var(--montserrat);
  line-height: 1.5;
}

.parfum-price {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0.86rem;
}

.price-discount {
  font-family: var(--fraunces);
  font-size: 2rem;
  color: var(--green-500);
}

.price {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: line-through;
}

.add-to-cart {
  width: 100%;
  background-color: var(--green-500);
  color: var(--white);
  font-family: var(--montserrat);
  font-weight: 500;
  border: none;
  outline: none;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.add-to-cart:hover,
.add-to-cart:focus {
  background-color: var(--green-700);
}

@media (min-width: 600px) {
  .container {
    display: flex;
    flex-direction: row;
    max-width: 600px;
  }

  .img-container {
    flex: 1;
    height: auto;
  }

  .img-container img {
    height: 100%;
  }

  .parfum-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
  }
}
