@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

:root {
    /* colors */
    --green: #3c8067;
    --green-hover: #1b4133;
    --black: #1c232b;
    --grey: #6c7289;
    --cream: #f2ebe3;
    --white: #ffffff;

    /* typography */
    --montserrat: "Montserrat", sans-serif;
    --fraunces: "Fraunces", serif;
    --line-height: 150%;
    --bold: 700;
    --medium: 500;

    /* general */
    --gap-mobile-1: .875rem;
    --gap-mobile-2: 1.5rem;
    --gap-desktop-1: 1.25rem;
    --gap-desktop-2: 2rem;
}


/* ---> General Styles <--- */
body {
    background-color: var(--cream);
    font-family: var(--montserrat);
    line-height: var(--line-height);
    color: var(--grey);
}

@media (max-width: 1024px) {
    body {
        padding: 1.125rem;
    }
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
}

article {
    display: flex;
}

img {
    width: 100%;
    height: 100%;
    border-radius: 10px 0px 0px 10px;
}

@media (max-width: 767px) {
    img {
        border-radius: 10px 10px 0px 0px;
    }
}

h1 {
    font-size: 2rem;
    font-weight: var(--bold);
    font-family: var(--fraunces);
    line-height: 105%;
    color: var(--black);
}

p {
    font-size: 0.875rem;
}

a {
    text-decoration: none;
    /* transition: 1s; */
}

a:hover {
    text-decoration: underline;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    background-color: var(--green);
    font-size: .875rem;
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: var(--bold);
    transition: 0.8s ease;

}

button:hover {
    background-color: var(--green-hover);
}

/* ---> Product Card <--- */
.product-container {
    display: flex;
    max-width: 37.5rem;
}

.image-card,
.product-card {
    width: 50%;
}

.product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    padding: 2rem;
    gap: var(--gap-desktop-2);
    border-radius: 0px 10px 10px 0px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--gap-desktop-1);
}

@media (max-width: 767px) {
    .product-container {
        flex-direction: column;
        align-items: center;
        max-width: 21.875rem;
    }

    .image-card,
    .product-card {
        width: 100%;
    }

    .product-card {
        border-radius: 0px 0px 10px 10px;
        padding: 1.5rem;
        gap: var(--gap-mobile-2);
        margin-top: -7px;
    }

    .product-info {
        gap: var(--gap-mobile-1);
    }
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.product-price {
    display: flex;
    gap: var(--gap-desktop-1);
}

.price-lrg {
    font-family: var(--fraunces);
    font-size: 2rem;
    font-weight: var(--bold);
    color: var(--green);
}

.price-s {
    font-size: .875rem;
    text-decoration: line-through;
}


@media (max-width: 767px) {
    .attribution {
        padding: 1.5rem 0rem 0rem;
    }
}

.attribution {
    text-align: center;
    font-size: 12px;
}

.attribution a {
    color: var(--green-hover);
}

