:root {
    /* Color variables */
    --green500: hsl(158, 36%, 37%);
    --green700: hsl(158, 42%, 18%);
    --black: hsl(212, 21%, 14%);
    --grey: hsl(228, 12%, 48%);
    --cream: hsl(30, 38%, 92%);
    --white: hsl(0, 0%, 100%);
    /* Font variables */
    --fontPrimary: 'Montserrat', sans-serif;--fontSecondary: 'Fraunces', sans-serif;
    --fontSize: 0.7rem;
}

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

body {
    align-items: center;
    background-color: var(--cream);
    display: flex;
    flex-direction: column;
    font-family: var(--fontPrimary);
    height: 100vh;
    justify-content: center;
}

#product-container {
    background-color: var(--white);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    margin: 1rem auto;
    overflow: hidden;
    width: 21.25rem;
}

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

section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

#product-label {
    color: var(--grey);
    font-size: var(--fontSize);
    letter-spacing: 0.3rem;
}

h1 {
    color: var(--black);
    font-family: var(--fontSecondary);
    font-size: 2rem;
}

#product-description {
    color: var(--grey);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5rem;
}

#prices {
    align-items: center;
    display: flex;
    font-size: 0.875rem;
    gap: 1rem;
}

#discounted-price {
    color: var(--green500);
    font-family: var(--fontSecondary);
    font-size: 2rem;
}

#original-price {
    color: var(--grey);
    text-decoration: line-through;
}

button {
    border: none;
    border-radius: 0.5rem;
    background-color: var(--green500);
    color: var(--white);
    display: flex;
    font-weight: 500;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 1.5rem;
}

button:hover {
    background-color: var(--green700);
    cursor: pointer;
}

/* Desktop Version */
@media screen and (min-width: 37.5rem) {
    #product-container {
    align-items: center;
    flex-direction: row;
    height: 28rem;
    width: 37.5rem;
    }

    picture, section {
    flex: none;
    height: 100%;
    width: 50%;
    }

    section {
    justify-content: center;
    padding: 1.875rem;
    }
    
    #product-img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    }
}