* {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: hsl(30, 38%, 92%);
}

h3, p, button {
  font-family: Montserrat, sans-serif;
  color: hsl(228, 12%, 48%);
  font-weight: 500;
}
h1, h2 {
  font-family: Fraunces, sans-serif;
}

.descript-section {
  padding: 3em;
}

.descript-section p {
  line-height: 1.7em;
}

.container {
  display: flex;
  flex-direction: row;
  width: 750px;
  height: 600px;
  background-color: #fff;
  border-radius: 10px;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.image {
  background-image: url('images/image-product-desktop.jpg');
  width: 160%;
  border-top-left-radius: 10px;
  background-position: 50%;
  border-bottom-left-radius: 10px;
  background-size: contain;
  background-size: cover;
}
.category {
  font-size: .8em;
  letter-spacing: 0.4em;
}
.title {
  font-size: 2.8em;
  margin: 0.8em auto;
  line-height: 0.95em;

}
.price-section {
  display: flex;
  margin: 2rem 0;
  justify-content: start;
  align-items: center;
}
.price {
  font-size: 2.5em;
  color: hsl(158, 36%, 37%);
  margin-right: 0.5em;
}

button {
  display: flex;
  justify-content: center;
  padding: 1.4em;
  width: 100%;
  background-color: hsl(158, 36%, 37%);
  color: white;
  border: none;
  border-radius: .6em;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s;
}
button:hover {
  background-color: hsl(158, 42%, 18%);
}
button:active {
  background-color: hsl(158, 42%, 18%);
  box-shadow: 0 0 15px hsl(158, 36%, 37%);
}
.icon-cart {
  margin-right: 0.6rem;
}

/* animations */

@keyframes fadeIn{
  to { opacity: 1;}
}


/* mobile responsive */

@media (max-width: 650px) {
  .container {
    display: flex;
    flex-direction: column; 
    max-width: 350px; 
    height: 740px;
    border-radius: 10px;
  }
  .image {
    width: 350px;
    height: 680px;
    background-image: url('images/image-product-mobile.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0px;
  }
  .category {
    font-size: .7em;
  }
  .title {
   font-size: 1.9rem;
   padding: 0;
  }

  .descript-section {
    margin: 1.4em 1.4rem;
    padding: 0;
  }
  button {
   padding: 0;
  }
  .descript-section p {
    font-size: .95em;
  }
  .price-section {
    padding: 0;
    margin: 1.2em auto;
  }
  .price {
    font-size: 1.8em;
  }
  button {
    padding: 1.4em;
  }
}