*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --Dark-cyan: hsl(158, 36%, 37%);
    --Cream: hsl(30, 38%, 92%);
    --Very-dark-blue: hsl(212, 21%, 14%);
    --Dark-grayish-blue: hsl(228, 12%, 48%);
    --White: hsl(0, 0%, 100%);
}

body{
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    background-color: var(--Cream);

}

main{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.container{
    display: flex;
    justify-content: center;
    width: 50%;
    background-color: white;
    min-height: 80%; /*height: 500px;*/
    border-radius: 20px;
    
}


.product-img{
    background-image: url(./images/image-product-desktop.jpg);
    background-size: cover;
    width: 50%;
    border-radius: 20px 0 0 20px;
    background-position: center;
}


.text{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 50%;
    padding: 30px;
    gap: 15px;

}

.product-category{
    text-transform: uppercase;
    letter-spacing: 0.3125rem;
    color: var(--Dark-grayish-blue);
    font-weight: 600;
}

h2{
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    width: 80%;
    line-height: 1.0;
    font-weight: 700;
}

.product-description{
    color: var(--Dark-grayish-blue);
    font-weight: 500;
    line-height: 1.5;
    font-size: 0.875rem;
    width: 80%;
}

.prices{
    display: flex; 
    gap: 20px;
    align-items: center;
}

.actual-price{
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    color: var(--Dark-cyan);
    font-weight: 700;
}

.old-price{
    font-size: 0.875rem;
    color: var(--Dark-grayish-blue);
    text-decoration: line-through;
}

button{
    background-color: var(--Dark-cyan);
    border: none;
    border-radius: 10px;
    padding: 15px;
    color: var(--White);
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.5s;
}

button:hover{
    background-color: var(--Very-dark-blue);
}

@media screen and (max-width: 1000px) {
    .prices{
        flex-direction: column-reverse;
        gap: 5px;
    }
}

@media screen and (max-width: 790px) {

    body{
        min-height: 770px;
    }

    .container{
        display: block;
        width: 90%;
        height: 90%;
      
        
    }

    .product-img{
        display: block;
        background-image: url(./images/image-product-mobile.jpg);
        width: 100%;
        height: 50%;
        background-size: cover;
        background-position: center;
        border-radius: 20px 20px 0 0;

    }

    .text{
        width: 100%;
        background-color: white;
        border-radius: 0 0 20px 20px;
    }

    h2{
        width: 100%;

    }

    .product-description{
        width: 100%;
    }

    .prices{
        flex-direction: row;
        gap: 20px;
    }
}