:root {
    font-size: 14px;
    --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%);
}

body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: "Montserrat", sans-serif;
    color: var(--grey);
}

.card {
    display: flex;
    background: var(--white);
    border-radius: 1rem;
    max-width: 600px;
}

.card picture {
    display: flex;
    flex: 1;
}

.card picture img {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    width: 100%;
    object-fit: cover;
}

section {
    max-width: 300px;
    box-sizing: border-box;
    padding: 1.4rem 2rem;

}

section .category {
    font-weight: 500;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
}

section h1 {
    font-family: "Fraunces", serif;
    font-weight: 700;
    color: var(--black);
    font-size: 2.5rem;
    margin: 0.5rem 0px;
}

section .description {
    line-height: 1.5;
}

section .price {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

section .price p:first-child {
    font-family: "Fraunces", serif;
    font-weight: 700;
    color: var(--green-500);
    font-size: 2.5rem;
    margin: 0;
}

section .add-cart {
    background: var(--green-500);
    color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    cursor: pointer;
}

section .add-cart:hover {
    background: var(--green-700);
}

@media screen and (max-width: 425px) {
    :root {
        font-size: 13px;
    }

    body {
        height: unset;
        padding: 3rem 1rem;
    }

    .card {
        flex-direction: column;
    }

    .card picture img {
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        border-bottom-left-radius: 0;
        width: 100%;
    }
}