*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: #f3eae3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0 20px;
}

  
main{
    display: flex;
    width: 650px;
    max-height: 450px;
    margin: auto;
    /* border: 1px solid #111; */
    background-color: #ffff;
    border-radius: 20px;
    overflow: hidden;   
    align-items: stretch;
    
    
}
.pic {
    width: 50%;
    height: 100%;
}

.pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail{
    width: 50%;
    padding: 35px;
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
}
.detail h4{
    color: #898890;
    letter-spacing: 6px;
    font-size: small;
    font-weight: 100;
    margin-bottom: 15px;
}
.detail h1{
    font-weight: 900;
    line-height: 2.1rem;
    margin-bottom: 20px;
    font-size: 2.1rem;
}
.detail p{
    color: #898890;
    letter-spacing: 1px;
    line-height: 1.3rem;
    font-size: 15px;
    margin-bottom: 17px;
}
.detail h2{
    color: #42866d;
    font-size: 2rem;
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 20px;
}
.detail span{
    color: #898890;
    text-decoration: line-through;
    display: inline-block;
    font-size: 0.9rem;
}
.detail button{
    width: 100%;
    background-color: #3F8068;
    color: #ffff;
    font-size: 0.9rem;
    padding: 15px 8px;
    border: none;
    border-radius: 7px;
    margin: 5px 0;
}
.detail button i {
    color: #ffff; 
    margin-right: 8px; 
}
.detail button:hover{
    background-color: #1a4031;
    cursor: pointer;
}
@media (max-width: 768px) {
    main{
        flex-direction: column;
        width: 100%;
        height:650px;
        max-height: unset;
    }
    .pic{
        width: 100%;
        height: 320px;
    }
    .detail{
        width: 100%;
        padding: 20px;
        
    }
}