: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%);
    --text-copy: Montserrat, serif;
    --text-display: Fraunces, sans-serif;
}

*,
*::before,
*::after{
    margin: 0;
    box-sizing: border-box;
}

img {
    width: 100%;
    display: block;
}

/* typography */
.card_tag {
    font-family: var(--text-copy);
    font-weight: 500;
    font-size: .75rem;
    line-height: 1.2;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--grey);
}

.card_title,
.card_price {
    font-family: var(--text-display);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: var(--black);
}

.card_text,
.card_oldprice {
    font-family: var(--text-copy);
    font-weight: 500;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--grey);
}

.card_price {
    color: var(--green-500);
}

.card_oldprice {
    font-size: .8125rem;
    line-height: 1.2;
    text-decoration: line-through;
}

.card_btn {
    font-family: var(--text-copy);
    font-weight: 700;
    font-size: .875rem;
    line-height: 1.1;
    color: var(--white);
}
/* utility */


/* element */
main {
    display: flex;    
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 .75em;
    background: var(--cream);
}

.card {
    border-radius: .5em;
    overflow: hidden;
    background-color: var(--white);
}

.card_content {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    padding: 2em;
}

.card_img {
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center center;
}

.card_price_container{
    display: flex;
    gap: 1em;
    align-items: center;
}

.card_btn{
    width: 100%;
    padding: 1.25em;
    background-color: var(--green-500);
    border: none;
    border-radius:.5rem ;
}


.card_btn::before {
    content: "";
    display: inline-block;
    width: 1.125em;
    height: 1.125em;
    background-image: url(images/icon-cart.svg);
    background-size: contain;
    vertical-align: middle;
    margin-right: .5em;
}

.card_btn:hover,
.card_btn:active{
    background-color: var(--green-700);
}

@media (min-width:600px){
    .card{
        display: flex;
        max-width: 600px;
    }

    .card > *{
        flex-basis: 50%;
    }

    .card_img {
        aspect-ratio: auto;
        object-fit: cover;
    }    
}