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

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

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}
* {
    margin : 0; 
    padding: 0; 
    box-sizing: border-box;
}

body
{
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    background-color: hsl(30, 38%, 92%);
    display:flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height:calc(100vh - 0.1px); 
    margin: 0 1.5rem; 
    

}
.main{
    max-width: 600px; 
}
.img{
   
    content: url("./images/image-product-desktop.jpg"); 
    
    max-width: 100%;
}
h1, .price {
    font-family: 'Fraunces', serif;
}
h1{
    color: hsl(212, 21%, 14%);
    margin-bottom: 1rem;
    font-size: 2rem;
}
.price{
    display: flex;
    align-items: center;
}
.new-price{
    color: hsl(158, 36%, 37%);
    font-size: 2rem;
    font-weight: 700; 
}
.old-price{
    font-size: 0.75rem;
    font-weight: 500; 
    text-decoration: line-through;
    margin-left : 1.5rem; 

}

.div-price{
    display: flex;
    align-items: center;
    
}
h4{
    font-weight: 500;
    margin-bottom: 1rem; 
    color: hsl(228, 12%, 48%);
    letter-spacing: 0.25rem;
    font-size: 0.75rem;
}
p{
    color: hsl(228, 12%, 48%);
    font-weight: 500;
    margin-bottom: 1rem; 

}
button{
    font-family: inherit;
}

.container{
    background-color:  hsl(0, 0%, 100%);
    padding: 1.5rem; 
    border-radius: 0px 10px 10px 0px;
    margin-bottom : 1rem;  
}
.btn-cart{
    background-color: hsl(158, 36%, 37%);
    color: white; 
    border: none; 
    border-radius : 10px; 
    width: 100%;
    font-weight: 700;
    outline : none; 
    padding : 1rem 2rem ; 
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.btn-cart img{
    margin-right: 0.5rem; 
}
.btn-cart:hover{
    background-color: hsl(159, 46%, 16%);
}

/*Phone*/
@media only screen and (max-width: 375px) {
    
    .img {
        content: url("./images/image-product-mobile.jpg"); 
        border-radius: 10px 10px 0 0;
    }
    .container{
        border-radius: 0 0 10px 10px;
    }
}

@media only screen and (min-width:600px){
.main{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    
}
.img {
   
    border-radius: 10px 0 0 10px;
}
.container{
    border-radius: 0 10px 10px 0;
    margin-bottom : 0; 
}
}
