body{
    background-color: hsl(30, 38%, 92%);
    box-sizing: border-box;
   
}

p{
    font-size: 14px;
    font-weight: 500, 700;
    font-family: 'Montserrat', sans-serif;
    color:hsl(228, 12%, 48%)

}

h1, h2{
    color: hsl(212, 21%, 14%);
    font-weight: 700;
    font-family: 'Fraunces', serif;

}

h2{
    color:hsl(158, 36%, 37%)
}

button{
    margin: 0PX auto;
    font-weight: bold;
    border-radius: 1rem;
    border: none;
    text-align: center;
    width: 200px;
    height: 50px;
    padding: 2px;
    color: hsl(0, 0%, 100%);
    background-color: hsl(158, 36%, 37%);

}
 span{
    padding-right: 10px; 
    padding-top: auto;  
 }

 

 
@media screen and (max-width: 520px) {
    .main-container{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        margin: 5% auto;
        background-color: hsl(0, 0%, 100%);
        border-radius: 20px;
        width: 80%;
        height: 100%;      
        
    } 
    .price-span{
        display: flex;
        flex-direction: row;
     }
     
     .prev-price{
        text-decoration: line-through;
        flex: 3;
        align-self: center;
        margin-left: 30px;
        justify-content: flex-end;
        
    }
    .new-price{
         flex: 1;
    }

    .product-img img{  
       display: none;      
        
     }

    .product-img-mobile{
                
        flex:1;
        order: 1;
        justify-content: space-between;
    }

    .product-details{
        flex: 3;
        order: 1;
        padding: 20px;
        justify-content: space-around;
        align-self: center;        
    }

    .product-img-mobile img{
        border-radius: 20px 20px 0px 0px;
        height: 100%; 
        width: 100% ;                
        
    }
   
  }

  @media only screen and (min-width: 520px){

    .main-container{ 
        margin:7% auto;  
        background-color: hsl(0, 0%, 100%);
        border-radius: 20px;
        display: flex;
        height: 24rem;
        width: 27rem;
        align-content:center;
        justify-content: space-evenly;
        gap: 1rem;
        /* flex-wrap: wrap; */  
        
    }
    
    .product-details{
        flex: 1;
        order: 1;
        justify-content: space-between;
        align-self: auto;        
    }
    
    .product-img{
        
        flex:1;
        order: 1;
        justify-content: space-between;
    }
    .product-img img{  
        border-radius: 20px 0px 0px 20px;
        height: 100%; 
        width: 100% ;
        
        
     }
    
    .price-span{
        display: flex;
        flex-direction: row;
     }

     .product-img-mobile {
        display: none;
    }

    .prev-price{
    text-decoration: line-through;
    flex: 1;
    align-self: center;
    
    }
    .new-price{
        flex: 1;
    }
   
}
