/*OVERALL
---------------------------*/
html {
    box-sizing: border-box;
    font-size: 62.5%;
}

body {
    margin: 0;
    background-color: hsl(30, 38%, 92%);
    font-family: "Montserrat", serif;
    font-weight: 500;
    font-style: normal;
}
/*CARD
---------------------------*/
main {
    display: grid;
    height: 100vh;
    place-items: center;
}
.card {
    display: flex;
    flex-direction: column; /*Mobile*/
    max-width: 400px; /*Mobile*/
    margin: 15px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

/*Media for desktop*/
@media screen and (min-width:769px) {
    .card {
        display: flex;
        flex-direction: row;
        max-width: 620px;
    }
}

/*CARD/image
---------------------------*/
.image-wrapper {
    display: flex;
    margin-bottom: -3px; /*Mobile*/
    width: 100%;
}
.image-wrapper img {
    width: 100%;
}

/*Media for desktop*/
@media screen and (min-width:769px) {
    .image-wrapper {
        margin-bottom: -3px;
        width: 50%;
        flex: 1;
    }
    .image-wrapper img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

/*CARD/text
---------------------------*/
.info-wrapper {
    display: flex;
}
.info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    flex-shrink: 0;
    justify-content: space-between;
}

.info h3 {
    text-transform: uppercase;
    color: hsl(228, 12%, 48%);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.5rem;
    margin: 0;
}

.info h1 {
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 3.2rem;
    margin: 1.2rem 0;
}

.info p {
    color: hsl(228, 12%, 48%);
    font-size: 1.4rem;
    line-height: 2.4rem;
    margin: 0.4rem 0;
}

/*Media for desktop*/
@media screen and (min-width:769px) {
    .info-wrapper {
        width: 50%;
        flex: 1;
    }
    .info {
        padding: 3.5rem;
    }
}

/*CARD/price
---------------------------*/
.price {
    display: flex;
    align-items: center;
    margin: 1.4rem 0;
}
.price h2 {
    display: inline-block;
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: 3.2rem;
    color: hsl(158, 36%, 37%);
    margin: 0;
}

.price p {
    display: inline-block;
    color: hsl(228, 12%, 48%);
    font-size: 1.3rem;
    text-decoration: line-through;
    margin: 0 2rem;
}
/*CARD/button
---------------------------*/

.add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: hsl(158, 36%, 37%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.add-cart img {
    display: inline-block;
}

.add-cart p {
    display: inline-block;
    font-family: "Montserrat", serif;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    padding-left: 1rem;
    margin: 1.1rem 0;
}

.add-cart:hover {
    background-color: #1a4031;
}

/*FOOTER
---------------------------*/
.attribution {
    display: block;
    width: 100vw;
    position: fixed;
    bottom: 0;
    text-align: center;
    font-size: 1rem;
}

.attribution a {
    text-decoration: none;
    font-weight: 700;
    color: hsl(158, 36%, 37%);;
}
