* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    --font1: "Montserrat", sans-serif;
    --font2: "Fraunces", serif;
    --medium: "500";
    --bold: "700";

    --green500: #3D8169;
    --green700: #1C4736;

    --black: #1C232B;
    --grey: #767982;
    --cream: #F2EAE2;
    --white: #ffffff;
}

body{
    font-family: var(--font1);
    background: var(--cream);
    display: flex;
    flex-direction: row;
    justify-content: center;
    min-height: 100vh;
    padding: 2px;
}

main {
    width: 100%;
    max-width: 600px;
}

.card{
    background-color: var(--white);
    display: flex;
    flex-direction: row;
    justify-self: center;
    width: 100%;
    border-radius: 13px;
    margin-top: 100px;
    overflow: hidden;
}

.product-content{
    width: 50%;
    padding: 32px;
}

.product-image {
    width: 50%;
}

.product-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    width: 50%;
    padding: 32px;
}

.product-description {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

h1{
    font-family: var(--font2);
    font-weight: var(--bold);
    font-size: 35px;
    line-height: 1;
    margin-top: 30px;
    color: var(--black)

}

.product-category{
    font-family: var(--font1);
    font-weight: var(--medium);
    font-size: 13px;
    letter-spacing: 5px;
    color: var(--black)
}

.product-description{
    font-family: var(--font1);
    font-weight: var(--medium);
    font-size: 14px;
    color: var(--grey);
    margin-top: 20px;
    line-height: 1.5;
}

.product-price{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    color: var(--green500);
    margin-top: 20px;
}

.product-price h2{
    font-size: 30px;
    font-family: var(--font2);
    font-weight: var(--medium);
}

.product-price p{
    font-size: 13px;
    font-family: var(--font2);
    font-weight: var(--medium);
}

.btn-cart{
    background-color: var(--green500);
    color: var(--white);
    font-family: var(--font1);
    font-weight: var(--bold);
    border-radius: 10px;
    border: none;
    width: 100%;
    padding: 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-cart:hover{
    background-color: var(--green700);
}

@media (max-width: 600px) {
    body {
        padding: 16px;
    }

    .card {
        flex-direction: column;
        margin-top: 40px;
    }

    .product-image,
    .product-content {
        width: 100%;
    }

    .product-image img {
        height: auto;
    }

    h1 {
        font-size: 28px;
    }

}