@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");

* {
  margin: 0;
  padding: 0;
}

body {
  background-color: hsl(30, 38%, 92%);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.attribution {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background-color: hsl(30, 38%, 92%);
  font-size: 12px;
  color: hsl(228, 12%, 48%);
}

.main-layout {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  max-width: 600px;
  width: 90%;
  background-color: white;
}

.image-block,
.content-block {
  width: 50%;
}

.desktop {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.mobile {
  display: none;
}

.content-block {
  display: flex;
  flex-direction: column;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  padding: 25px;
  background-color: hsl(0, 0%, 100%);
  color: hsl(228, 12%, 48%);
}

.category {
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 14px;
}

.brand {
  font-size: 40px;
  font-weight: 700;
  font-family: "Fraunces", sans-serif;
  color: hsl(212, 21%, 14%);
  line-height: 1;
  margin-bottom: 20px;
}

.description {
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 20px;
}

.discount {
  font-family: "Fraunces", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: hsl(158, 36%, 37%);
  margin-bottom: 20px;
}

.price {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  text-decoration: line-through;
  vertical-align: super;
  color: hsl(228, 12%, 48%);
  font-weight: 500;
  margin-left: 20px;
}

.add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  color: hsl(0, 0%, 100%);
  background-color: hsl(158, 36%, 37%);
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border-radius: 5px;
  gap: 10px;
}

.icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 575.98px) {
  .main-layout {
    flex-direction: column;
    height: 100vh;
    margin-top: 20px;
    margin-bottom: 20px;
  }

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

  .desktop {
    display: none;
  }

  .mobile {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .content-block {
    width: 90%;
    margin: 0 auto;
  }

  .attribution {
    position: absolute;
    bottom: -64px;
  }
}
