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

body {
    background-color: hsl(30, 38%, 92%);
    font-optical-sizing: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100%;
    min-height: 100vh;
}

.card {
    background-color: hsl(0, 0%, 100%);
    border-radius: .6rem;
    margin: 2rem;
    overflow: hidden;
}

.card, .prod-img {
    max-width: 20rem;
    height: 100%;
    border-top-left-radius: .6rem; 
    border-top-right-radius: .6rem;
    object-fit: cover;
}

.prod-img {
    display: flex;
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 1.5rem;
}

.prod-type {
    font-size: .9rem;
    letter-spacing: .2em;

}

p, .cart-btn {
    color: hsl(228, 12%, 48%);
    font-family: "Montserrat", serif;
    font-size: .9rem;
    line-height: 1.4rem;
}

.prod-name, .sale-price {
    color: hsl(212, 21%, 14%);
    font-family: "Fraunces", serif;
    font-variation-settings: "SOFT" 0, "WONK" 0;
    line-height: 2.1rem;
    padding: .7rem 0 1rem;
}

.prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: .8rem 0 .2em;
}

.sale-price {
    color: hsl(158, 36%, 37%);
    font-size: 2rem;
    font-weight: 700;
    padding-right: 1.5rem;
}

.original-price {
    text-decoration: line-through;
}

.cart-btn {
    background-color: hsl(158, 36%, 37%);
    color: hsl(0, 0%, 100%);
    font-weight: 500;
    text-align: center;
    border-radius: .5rem;
    padding: .8rem;
    transition: background-color 0.3s ease-in-out;
}

.cart-btn:hover {
    background-color: rgb(36, 63, 50);
    cursor: pointer;
}

.inner-btn {
    display: flex;
    justify-content: center;
}

.btn-text {
    color: white;
    text-decoration: none;
    padding-left: .5rem;
}

@media (min-width: 768px) {
    .card {
        display: flex;
        flex-direction: row;
        justify-content: center;
        max-width: 38rem;
    }

    .prod-img {
        border-top-right-radius: 0rem;
        border-bottom-left-radius: .6rem;
        min-width: 19rem;
    }

    .main {
        padding: 2rem;
    }
}

/* .attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); } */
