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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: hsl(30, 38%, 92%);
  padding: 40px 20px;
}

.container{
  width: 50%;
  background-color: hsl(0, 0%, 100%);
  border-radius: 10px;
}

.card{
  display: grid;
  grid-template-columns: 6fr 6fr
  
}
img{
  width: 100%;
  object-fit: cover;
  object-position: center;
   border-radius: 10px 0 0 10px;

}
.card-content{
  padding: 30px 40px;
}
.card-content .perfume{
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  color:  hsl(228, 12%, 48%)

}

.card-content h1{
  font-family: 'Fraunces', serif;
  margin-top: 15px;
  font-size: 2.4rem;
  line-height: 1.2;
}
.card-content .text{
  font-size: 13px;
  color: hsl(228, 12%, 48%);
  font-family: 'Montserrat', sans-serif;
  line-height: 2;
  margin: 20px 0;
}
.price{
  display: flex;
  align-items: center;
  gap: 20px;
}
.price .discounted-price{
  font-size: 2rem;
   font-family: 'Fraunces', serif;
   color: hsl(158, 42%, 18%);
   font-weight: 700;
}
.price .original-price{
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  color: hsl(228, 12%, 48%);
  text-decoration: line-through;
}
.add-to-cart img{
  width: 20px;
  height: 20px;
  display: inline-block;
   
}
.add-to-cart{
  
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  margin-top: 30px;
  padding: 10px;
border-radius: 10px; 
box-shadow: 2px 2px 1px hsl(158, 36%, 37%);
  background-color: hsl(158, 36%, 37%);
  outline: none;
  border: none;
  cursor:pointer;
  color: hsl(0, 0%, 100%);
  font-family: 'Montserrat', sans-serif;
}
.add-to-cart:hover{
  background-color: hsl(158, 42%, 18%);
}
.attribution {
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-align: center;
  color: hsl(228, 12%, 48%);
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
/* ==========
    Responsive
   ===========
 */
@media(max-width: 1341px){
  .container{
    width: 52%;
  }
}
@media(max-width: 1230px){
  .container{
    width: 56%;
  }
}
@media(max-width: 1200px){
   .container{
    width: 60%
   }

}
@media(max-width: 1100px){
   .container{
    width: 65%
   }
   .card{
    grid-template-columns: 5fr 5fr;
   }

}
@media(max-width: 1026px){
   .container{
    width: 70%
   }
  

}
@media(max-width: 958px){
   .container{
    width: 75%
   }
  

}
@media(max-width: 898px){
   .container{
    width: 80%
   }
  

}
@media(max-width: 836px){
   .container{
    width: 85%
   }
  

}
@media(max-width: 787px){
   .container{
    width: 90%
   }
  

}
@media(max-width: 750px){
  .card{
    display: flex;
    flex-direction: column;
    ;
  }
  img{
    width: 100%;
    height: 400px; /* important for keeping image proportions */
    border-radius: 10px 10px 0 0; /* fix border corners */
  }

  .container {
    width: 90%; /* or 100% if you want edge-to-edge on small screens */
  }
 
}
@media(max-width: 750px){
  
  img{
   
    height: 350px; /* important for keeping image proportions */
    
  }

  .container {
    width: 100%; /* or 100% if you want edge-to-edge on small screens */
  }
 
}

