@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: hsl(30, 38%, 92%);
  color: hsl(228, 12%, 48%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.cards {
  background-color: white;
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.product-img {
  width: 300px;
  height: 100%;
  object-fit: cover;
  display: block;
}



.info{
  text-align: left;
  margin: 25px;
}

.title{
  font-family: 'Montserrat';
  margin: 20px 0px;
  text-transform: uppercase;
  letter-spacing: 2px;
  
}

h1{
  font-family: 'Fraunces';
  color: hsl(212, 21%, 14%);
  font-size: 30px;
  margin: 20px 20px 20px 0px;
}

p{
  font-family: 'Montserrat';
  font-size: 14px;
  width: 90%;
}

.rate{
  margin: 10px 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.price{
  font-family: 'Fraunces';
  color: hsl(158, 36%, 37%);
}

.mrp{
  font-family: 'Montserrat';
  text-decoration: line-through;
}

.button{
  background-color: hsl(158, 36%, 37%);
  width: 100%;
  height: 40px;
  color: white;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: none;
}

.logo{
  width: 15px;
  height: 15px;
  margin: 0 10px 0 0;
}

.text{
  font-family: 'Montserrat';
}

@media (max-width: 600px) {
   body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .cards {
    flex-direction: column;
    width: 90%;
  }

  .product-img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
