@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Montserrat:wght@500;700&display=swap");

* {
  font-family: fraunces, sans-serif;
}
body {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 14px;
}

.container {
  max-width: 85%;
  width: 1440px;
  height: 600px;
  background-color: hsl(30, 38%, 92%);
  margin: 40px auto;
  display: flex;
  justify-content: center;
  border-radius: 5px;
}
.main {
  display: flex;
  max-width: 60%;
  /* width: 600px; */
  max-height: 75%;
  margin: 100px auto;
  border-radius: 10px;
}
.picture-section {
  width: 50%;
}
img {
  width: 100%;
  height: 400px;
  border-radius: 10px 0 0 10px;
}

.info-section {
  width: 50%;
  background-color: hsl(0, 0%, 100%);
  display: flex;
  flex-direction: column;
  border-radius: 0 10px 10px 0;
  gap: 8px;
}
.perfume-title {
  letter-spacing: 0.5em;
  padding: 20px;
  font-size: 12px;
  color: hsl(228, 12%, 48%);
}

h1 {
  padding-left: 20px;
  padding-right: 20px;
  font-size: 35px;
  color: hsl(212, 21%, 14%);
  font-weight: 700;
  margin: 0;
}

p {
  padding-left: 20px;
  padding-right: 20px;
  line-height: 1.3;
  margin: 0;
}
.price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
  padding-right: 100px;
  color: red;
}
.after-price {
  font-size: 30px;
  color: hsl(158, 36%, 37%);
}

.before-price {
  font-size: 12px;
  color: hsl(228, 12%, 48%);
  text-decoration: line-through;
}

.btn-cart {
  width: 70%;
  padding: 13px 16px;
  border-radius: 5px;
  border: none;
  background-color: hsl(158, 36%, 37%);
  font-size: 16px;
  color: hsl(0, 0%, 100%);
  margin: auto;
}

.btn-cart:hover {
  background-color: hsl(212, 21%, 14%);
  cursor: pointer;
}

.footer {
  font-size: 11px;
  text-align: center;
  bottom: 15px;
}

.footer a {
  color: #3c8067;
}

/* Responsive font sizes */

@media screen and (max-width: 1220px) {
  p {
    display: none;
  }
}
/* 
@media screen and (max-width: 600px) {
  .perfume-title {
    font-size: 18px;
  }
  .main {
    flex-direction: column;
  }
  h1 {
    font-size: 25px;
  }

  p {
    font-size: 16px;
  }

  .btn-cart {
    font-size: 18px;
  }
} */
@media screen and (max-width: 800px) {
  .container {
    max-width: 78%;
    height: auto;
    padding: 20px;
    /* border: red solid 2px; */
  }

  .main {
    flex-direction: column;
    max-width: 100%;
    /* border: red solid 2px; */
  }

  .picture-section {
    width: 100%;
  }

  img {
    border-radius: 10px 10px 0 0;
  }

  .info-section {
    width: 100%;
    border-radius: 0 0 10px 10px;
    padding: 30px 0px;
  }

  h1 {
    font-size: 30px;
  }
  p {
    font-size: 14px;

    display: flex;

    .price {
      padding-right: 20px;
    }

    .btn-cart {
      width: 100%;
      height: 100%;
      margin-top: 20px;
    }

    .footer {
      margin-top: 20px;
    }
  }
}
