:root {
    --Green-500: #3c8067;
    --Green-700: #1b4133;
    --Off-Black: #1c232b;
    --Grey: #6c7289;
    --Cream: #f2ebe3;
    --White: #fff;
}

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}
/* 2. Remove default margin */
* {
  margin: 0;
}
/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}
/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}
/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

body {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    background-color: var(--Cream);
}

main {
    padding: 1em;
}

.product-card {
    background-color: var(--White);
    margin: 5em auto;
    border-radius: .5em;
    display: grid;
    max-width: 600px;
}

.product-img img {
    border-radius: .5em .5em 0 0;
}

.product-content-wrap {
    padding: 2.2em;
}

.category-name {
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    color: var(--Grey);
    font-size: .7rem;
    font-weight: 500;
}

.product-title {
    font-family: "Fraunces", serif;
    font-size: 2rem;
    line-height: 1em;
    color: var(--Off-Black);
    margin-top: .6em;
}

.product-description {
    color: var(--Grey);
    margin-top: 1.6em;
    font-weight: 500;
}

.product-price-wrapper {
    display: flex;
    margin-top: 1.5em;
    align-items: center;
}

.product-price-wrapper p {
    font-family: "Fraunces", serif;
}

.product-price-new {
    color: var(--Green-500);
    font-weight: bold;
    margin-right: .5em;
    font-size: 2rem;
}

.product-price-old {
    color: var(--Grey);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: var(--Green-500);
    color: var(--White);
    padding: 1em 0;
    border-radius: .5em;
    margin-top: 1em;
    transition: all .2s;
    font-weight: bold;
}

.add-to-cart-btn:hover {
    background-color: var(--Green-700);
}

.add-to-cart-btn[data-icon="shopping-cart"]::before {
    content: "";
    background-image: url("/images/icon-cart.svg");
    width: 15px;
    height: 16px;
    margin-right: .6em;
}

@media screen and (min-width: 600px) {
     main {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100vw;
        height: 100vh;
    }

    .product-card {
        grid-template-columns: 1fr 1fr;
    }

    .product-img img {
        border-radius: .5em 0 0 .5em;
    }
}