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

body {
    background-color: hsl(30, 38%, 92%);
    font-family: 'Montserrat', sans-serif;
}

p {
    margin-top: 20px;
    line-height: 24px;
    color: hsl(228, 12%, 48%);
    font-size: 15px;
}

h1 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    margin-top: 35px;
    font-size: 42px;
    line-height: 35px;
}

figcaption {
    text-transform: uppercase;
    letter-spacing: 7px;
    color: hsl(228, 12%, 48%);
    position: absolute;
    margin-left: 310px;
    margin-top: 5px;
    padding: 15px;
    font-size: 12px;
    font-weight: 500;
}

figure {
    float: left;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

button {
    background-color: hsl(158, 36%, 37%);
    border: none;
    border-radius: 5px;
    padding: 15px;
    margin-top: 30px;
    width: 100%;
    color: white;
    font-size: 15px;
    font-weight: 700;
    transition: scale 0.1s ease, background-color 0.2s ease;
}

button img {
    margin-right: 10px;
}

button:hover {
   scale: 1.02;
   background-color: hsl(158, 42%, 18%);
}

button:focus {
    background-color: hsl(158, 42%, 18%);
    outline: rgb(171, 226, 171) solid 3px;
}

.product-img {
    width: 100%;
    border-radius: 12px 0 0 12px;
}

.product-card {
    margin: 200px auto 300px;
    height: 420px;
    width: 600px;
    text-align: left;
    background-color: hsl(0, 0%, 100%);
    border-radius: 12px;
    color: hsl(212, 21%, 14%);
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    padding: 15px 30px 0 25px;
}

.product-price {
    display: flex;
    justify-content: left;
    flex-direction: row;
    width: 100%;
}

.sale {
    color: hsl(158, 36%, 37%);
    font-family: 'Fraunces';
    font-weight: 700;
    font-size: 40px;
    text-align: left;
}

.past {
    text-decoration-line: line-through;
    margin-left: 20px;
}

@media (max-width: 480px) {
    figure {
        width: 100%;
        height: 50%;
        display: flex;
        flex-direction: column;
    }

    figcaption {
    position: static;
    margin-left: 20px;
    margin-top: 20px;
    padding: 10px;
    font-size: 15px;
}

    h1 {
        margin-top: 5px;
    }

    button {
        margin-bottom: 50px;
        padding: 30px;
        font-size: 20px;
    }

    p {
        font-size: 18px;
    }

    .product-img {
        border-radius: 12px 12px 0 0;
    }

    .product-card {
    margin:  100px auto;
    height: 100%;
    width: 90%;
    }

    .product-info {
    align-items: flex-start;
    width: 100%;

}
    
}
