:root {
    --DarkCyan: hsl(158, 36%, 37%);
    --Cream: hsl(30, 38%, 92%);
    --VeryDarkBlue: hsl(212, 21%, 14%);
    --DarkGrayishBlue: hsl(228, 12%, 48%);
    --White: hsl(0, 0%, 100%);
    --HoverCyan: hsl(159, 39%, 49%);
}

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

main {
    display: flex;
    background: var(--White);
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
}

h2, 
.price {
    font-family: "Fraunces", serif;
}

.product-img {
    flex: 1.2;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
    padding: 2em;
}

h1 {
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.3em;
    font-weight: 500;
    color: var(--DarkGrayishBlue);
}

h2 {
    font-family: "Fraunces", serif;
    font-size: 1.7em;
    color: var(--VeryDarkBlue);
}

p {
    font-size: 0.8em;
    color: var(--DarkGrayishBlue);
    line-height: 1.8;
}

.price {
    display: flex;
    align-items: center;
    gap: 1.3em;
    margin: 1.5em 0;
}

.offer {
    font-weight: bold;
    color: var(--DarkCyan);
    font-size: 1.8em;
}

.original {
    text-decoration: line-through;
    color: var(--DarkGrayishBlue);
    font-size: 0.9em;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--DarkCyan);
    color: var(--White);
    width: 100%;
    font-size: 0.8em;
    font-weight: bold;
    padding: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button img {
    margin-right: 0.8em;
}

button:hover {
    background-color: var(--HoverCyan);
    transition: background-color 0.3s ease-in-out;
}

@media (max-width: 768px) {
    body {
        padding: 1em;
    }
    main {
        flex-direction: column;
    }

    .product-img img {
        content: url('./images/image-product-mobile.jpg');
    }

    h1 {
        font-size: 0.85em;
    }

    h2 {
        font-size: 2em;
    }

    p {
        font-size: 0.89em;
    }

    h2 br,
    p br {
        display: none;
    }
}