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

:root {
    --Green-1: hsl(158, 36%, 37%);
    --Green-2: hsl(158, 42%, 18%);
    --Black: hsl(212, 21%, 14%);
    --Grey: hsl(228, 12%, 48%);
    --Cream: hsl(30, 38%, 92%);
    --White: hsl(0, 0%, 100%);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--Cream);
}

.main {
    background-color: var(--White);
    width: 500px;
    height: 380px;
    border-radius: 10px;
    display: flex;
}

img {
    width: 253px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.content_box {
    margin: 30px 20px;
}

.name {
    font-family: 'Montserrat',san-serif;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--Grey);
}

.product_name {
    margin-top: 15px;
    font-size: 31px;
}

.description {
    margin-top: 20px;
    font-size: 12px;
    font-family: 'Fraunces',sans-serif;
    color: var(--Grey);
}

.price {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

h2 {
    font-family: 'Fraunces', sans-serif;
    color: var(--Green-1);
}

.price p {
    margin-left: 20px;
    font-size: 12px;
    text-decoration: line-through;
    color: var(--Grey);
}

button{
    margin-top: 15px;
    width: 200px;
    padding: 10px;
    border-radius: 8px;
    background-color: var(--Green-1);
    color: var(--White);
    border: none;
}


button:hover{
    background-color: var(--Green-2);
    cursor: pointer;
}

span{
    margin-right: 12px;
}

@media (max-width:500px){

    body{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .main{
        flex-direction: column;
        width: 330px;
        height: 100vh;
        height: auto;
    }

    img{
        border-bottom-left-radius: 0;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        width: 330px;
        height: 190px;
    }

    .name{
        margin-top: -7px;
    }

    .description{
        margin-top: 10px;
    }

    button{
        width: 280px;
    }

    button:hover{
        background-color: var(--Green-2);
        cursor: pointer;
    }
}
