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

body {
    font-family: "Montserrat", serif;
    font-weight: 500;
    color: hsl(228, 12%, 48%);

    height: 100vh;
    margin: 0;
    background: hsl(30, 38%, 92%);

    display: flex;
    justify-content: center;
    align-items: center;;
}

h1 {
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: 2rem;
    color: hsl(212, 21%, 14%);
    line-height: 1em;

    margin-bottom: 0.5em;
}

p {
    font-size: 0.875rem;
    line-height: 1.75em;
}

.type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;

    order: -1;
}

.disc-price {
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: 2rem;
    color: hsl(158, 36%, 37%);

    margin-right: 0.7em;
}

.orig-price {
    font-size: 0.8rem;
    text-decoration: line-through;
}

.product-card {
    display: flex;
    flex-direction: column;
    /* 'overflow' required to clip child element to parent's corners*/
    overflow: hidden;

    max-width: 340px;
    border-radius: 7.5px;
}

.description {
    padding: 1.25em;
    background-color: white;

    display: flex;
    flex-direction: column;
}

.price {
    display: flex;
    align-items: center;

    margin-bottom: 0.75em;
}

.price > * {
    margin-bottom: 0;
}

.btn-generic {
    border: none;
}

.add-cart-btn {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;

    background: hsl(158, 36%, 37%);
    width: 100%;
    padding: 1em 0;
    border-radius: 7.5px; 
}

.add-cart-btn:hover,
.add-cart-btn:focus {
    background: hsl(158, 42%, 18%);
}

.btn-icon {
    width: 14px;
    height: 14px;
    display: inline;
    margin-right: 0.5em;
    margin-bottom: -2px;
}

img {
    order: -1;
}

.mobile-display {
    display: initial;
}

.desktop-display {
    display: none;
}

@media (min-width: 340px) {
    .mobile-display {
        display: none;
    }

    .desktop-display {
        display: initial;
        width: 50%;
    }
    
    .product-card {
        max-width: 575px;
        flex-direction: row;
    }

    .description {
        padding: 1.75em 1.5em;
    }
}