:root{
    --Green-500:hsl(158, 36%, 37%);
    --Green-700:hsl(158, 42%, 18%);
    --Black: hsl(212, 21%, 14%);
    --Grey: hsl(228, 12%, 48%);
    --Cream: hsl(30, 38%, 92%);
    --White: hsl(0, 0%, 100%);
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Montserrat', sans-serif;
    background-color: var(--Cream);
    max-width: 1440px;
    height: 100vh;
    margin: 0 auto;
    
}
main{
    margin: 170px auto;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    max-width: 600px;
    background-color: var(--White);
}
.img{
    flex: 1 1 50%;
}
.img img {
    width: 100%;
    height: 100%;
    border-radius: 10px 0 0 10px;
}
.img .mobile{
    display: none;
}

.perfume{
    flex: 1 1 50%;
    padding: 2rem;
}   
.perfume h2{
    color: var(--Grey);
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.perfume h1 {
    font-family: "Fraunces", serif;
    margin: 30px 0;
    line-height: 1;
    letter-spacing: 1px;
}
.perfume p{
    color: var(--Grey);
    font-size: 14px;
    line-height: 1.5;
}
.perfume .price{
    display: flex;
    align-items: center;
    margin: 30px 0;
    gap: 25px;
}
.perfume .price .current-price{
    font-family: "Fraunces", serif;
    color: var(--Green-500);
    font-size: 32px;
    font-weight: 700;
}
.perfume .price .previous-price{
    color: var(--Grey);
    text-decoration: line-through;
}

.perfume .add-to-cart {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    background-color: var(--Green-500);
    color: var(--White);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    cursor: pointer;
    border: none;
}
.perfume .add-to-cart img {
    margin-right: 15px;
}
.perfume .add-to-cart:hover{
    background-color: var(--Grey);
}
.perfume .add-to-cart:active{
    background-color: var(--Green-700);
}

@media only screen and (max-width:550px){
    body{
        max-width: 375px;
    }
    main {
        flex-direction: column;
    }
    .img .mobile{
        display: block;
        border-radius: 10px 10px 0 0 ;
    }
    .img .desktop{
        display: none;
    }
    .perfume {
        padding: 1.5rem;
    }
    .perfume h1 {
        margin: 25px 0;
    }
    .perfume .price {
        margin: 25px 0;
    }
}