@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');

:root {
    --green-500: hsl(158, 36%, 37%);
    --green-700: hsl(158, 42%, 18%);
    --gray: hsl(228, 12%, 48%);
    --cream: hsl(30, 38%, 92%);
    --white: hsl(0, 0%, 100%);
    --black: hsl(212, 21%, 14%);
}
html, body {
    margin: 0;
    padding: 0;
    background-color: var(--cream);
}

::selection {
    background-color: var(--green-500);
    color: var(--white);
}

.mainContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 200px auto;
}

.content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.dekstopProductImage {
    display: block;
    height: 500px;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.mobileProductImage {
    display: none;
    width: 30rem;
}

.rightSide {
    background-color: var(--white);
    padding-left: 35px;
    padding-right: 35px;
    padding-top: 20px;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    width: 263.333px;
    height: 480px;
}

h1 {
    font-family: "Fraunces", sans-serif;
    font-size: 35px;
    width: 250px;
}

h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    letter-spacing: 10px;
    color: var(--gray);
    font-size: 18px;
}

.productDescription {
    font-family: "Montserrat", sans-serif;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 15px;
}

.priceTag {
    margin-top: 35px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.newPrice {
    margin-top: 0px;
    margin-bottom: 0px;
    font-family: "Fraunces", sans-serif;
    font-size: 40px;
    color: var(--green-500);
    font-weight: 700;
}

.oldPrice {
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 30px;
    font-family: "Fraunces", sans-serif;
    text-decoration: line-through;
    font-size: 20px;
    color: var(--gray);
}

.buyButton {
    margin-top: 20px;
    background-color: var(--green-500);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
}

.buyButton img {
    cursor: pointer;
    width: 18px;
}

.buyButton label {
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 18px;
    padding-right: 0px;
}

.buyButton:hover {
    background-color: var(--green-700);
    cursor: pointer;
}

@media (max-width: 750px) {
    .mainContainer {
        flex-direction: column;
        margin: 75px auto;
    }

    .content {
        flex-direction: column;
    }

    .dekstopProductImage {
        display: none;
    }

    .mobileProductImage {
        display: block;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }
    
    .rightSide {
        border-top-right-radius: 0px;
        border-bottom-left-radius: 24px;
        width: 410px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .priceTag {
        margin-top: 15px;
    }
    
    .buyButton {
        width: 250px;
        padding-left: 0px;
        margin-bottom: 35px;
    }
}

@media (max-width: 550px) {
    .mainContainer {
        margin: 0px auto;
    }

    .mobileProductImage {
        display: block;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        width: 100%;
    }

    .rightSide {
        width: 100%;
    }

    .productDescription {
        width: 375px;
    }
}