* {
  box-sizing: border-box;
}

:root {
  /*Primary colors*/

  --dark-cyan: hsl(158, 36%, 37%);
  --cream: hsl(30, 38%, 92%);

  /*Neutral colors*/

  --very-dark-blue: hsl(212, 21%, 14%);
  --dark-grayish-blue: hsl(228, 12%, 48%);
  --white: hsl(0, 0%, 100%);

  --ff-fraunces: "Fraunces", serif;
  --ff-montserrat: "Montserrat", serif;

  --fw-500: 500;
  --fw-700: 700;
}

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

.container {
  background-color: var(--white);
  border-radius: 10px;
  width: 100%;
}

.parfum-details-container {
  padding: 1.6em;
}
.parfum-image {
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.perfume-text {
  color: var(--dark-grayish-blue);
  font-weight: var(--fw-500);
  letter-spacing: 3px;
  font-size: 0.9rem;
  font-family: var(--ff-montserrat);
}

h1 {
  color: var(--very-dark-blue);
  font-family: var(--ff-fraunces);
  font-weight: var(--fw-700);
}

p {
  font-size: 1.1rem;
  font-family: var(--ff-montserrat);
  line-height: 150%;
  color: var(--dark-grayish-blue);
  font-weight: var(--fw-500);
}

.price-container {
  display: flex;
  align-items: center;
}

.price {
  color: var(--dark-cyan);
  font-family: var(--ff-fraunces);
  font-weight: var(--fw-700);
  font-size: 2rem;
  padding-right: 0.5em;
}

.old-price {
  font-family: var(--ff-montserrat);
  color: var(--dark-grayish-blue);
  text-decoration: line-through;
  font-size: 1rem;
}

.cart-icon {
  margin-right: 10px;
}

button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 100%;
  padding: 1em;
  margin-top: 1.5em;
  border: none;
  border-radius: 7px;
  font-weight: var(--fw-700);
  color: var(--white);
  background-color: var(--dark-cyan);
}

button:hover {
  background-color: hsl(158, 36%, 25%);
  transition: 300ms;
}

.attribution {
  font-size: 11px;
  text-align: center;
  padding: 2em;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

/* Media query for larger screens */
@media (min-width: 550px) {
  html {
    min-height: 100vh;
    display: flex;
    justify-content: center;
  }

  .container {
    width: 100%;
    max-width: 600px;
    display: flex;
  }

  .parfum-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0px 0 10px;
  }

  .image-container {
    width: 100%;
    height: 100%;
  }

  .parfum-details-container {
    width: 100%;
    padding: 2.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  h1 {
    margin-bottom: 0;
  }

  .essence-eau {
    display: block;
  }
}
