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

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

*,
h1,h2,h3 {
    margin: 0;
}

.spacing{
    margin-bottom: var(--flow-space, 1.5rem);
}

body {
    background-color: hsl(30, 38%, 92%);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    display: grid;
    place-items: center;
    min-height: 100vh;
    margin: 1.5rem 1rem;
}

.card {
    max-width: 350px;
}

.image {
    --flow-space: -3px;
}

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

.product-details {
    background-color: #fff;
    padding: clamp(1.3em, 3vw, 5em);
    border-radius: 0 0 10px 10px;
}

.heading{
    color: hsl(212, 21%, 14%);
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    line-height: 2rem;
}

.sub-heading {
    --flow-space: .8rem;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: .7rem;
    font-weight: 200;
    letter-spacing: 2.5px;
}

p,
.sub-heading {
    color: hsl(228, 12%, 48%);
}

p {
    line-height: 1.3rem;
}

.price-details {
    --flow-space: clamp(1.5rem, 2vw, 2.5rem);
    display: flex;
    gap: 1rem;
}

.price-details .disc-price {
    color: hsl(158, 36%, 37%);
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.price-details .org-price {
    text-decoration: line-through;
    font-size: .7rem;
}

button {
    cursor: pointer;
    padding: 1em;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: #fff;
    background-color: hsl(158, 36%, 37%);
    border: 0;
    border-radius: 10px;

    display: flex;
    justify-content: center;
    gap: 1rem;
}

button:hover {
    background-color: #1a4031;
}

@media screen and (min-width: 38em) {
    .card {
        display: flex;
        max-width: 575px;
    }

    picture {
        width: 100%;
    }

    .image  {
        --flow-space: 0;
        width: 180%;
    }

    .card .image img{
        height: 100%;
        border-radius: 10px 0 0 10px;
    }

    .sub-heading {
        --flow-space: 1rem;
    }

    .product-details {
        --flow-space: 2rem;
        max-width: 300px;
        padding: clamp(1.3em, 2vw, 5em);
        border-radius: 0 10px 10px 0;
    }

    .price-details {
        --flow-space: 2rem;
    }

}
