@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%);
    --Black: hsl(212, 21%, 14%);
    --Grey: hsl(228, 12%, 48%);
    --Cream: hsl(30, 38%, 92%);
    --White: hsl(0, 0%, 100%);
    --paragraph: 14px;
}

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

body {
    min-height: 100vh;
    background-color: var(--Cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main {
    max-width: 600px;
    display: flex;
    flex-direction: row;
    background-color: var(--White);
    color: var(--Grey);
    border-radius: 0.8rem;
}

.desktop-image {
    width: 100%;
    height: 100%;
    border-radius: 0.8rem 0 0 0.8rem;
}

.mobile-image {
    display: none;
}

.image {
    flex-basis: 50%;
}

.container {
    padding: 2rem;
    font-family: "Montserrat";
    font-size: var(--paragraph);
    flex-basis: 50%;
}

.product {
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.name {
    color: black;
    font-family: "Frounces";
    font-size: 2.5rem;
    line-height: 2.3rem;
    margin-bottom: 1.5rem;
}

.about {
    margin-bottom: 1.5rem;
    line-height: 1.3rem;
}

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

.new-price {
    color: var(--Green-500);
    font-size: 2rem;
    font-family: "Fraunces";
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
}

.cart-btn img {
    width: 15px;
    height: 15px;
}

.cart-btn {
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: var(--Green-500);
    color: var(--White);
    font-family: "Montserrat";
    font-weight: 700;
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.4rem;
    cursor: pointer;

    &:hover{
        background-color: var(--Green-700);
        transition: 0.2s all;
    }
}


/* Mobile Responsive */
@media screen and (max-width: 600px) {
    .main {
        display: block;
        margin: 5rem 1rem;
    }

    .desktop-image {
        display: none;
    }

    .mobile-image{
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 0.7rem 0.7rem 0 0;
    }

    .name {
        font-size: 2rem;
    }
}