:root {
    --cyan: hsl(158, 36%, 37%);
    --cream: hsl(30, 38%, 92%);
    --dark: #1C232B;
    --grey: hsl(228, 12%, 48%);
    --white: hsl(0, 0%, 100%)
}

body {
    margin: 0;
    font-size: 14px;
    font-family: "Inter", serif;
}

p {
    margin: 0;
}

h1 {
    margin: 0
}

* {
    box-sizing: border-box;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--cream);
    height: 100vh;
    padding: 26px 16px;
}

.preview {
    display: flex;
    max-width: 600px;
    border-radius: 10px;
    max-height: 450px;
    overflow: hidden;
}

.preview__wrapper {
    max-height: 450px;
    width: 50%;
}

.preview__img {
    width: 100%;
    height: 100%;
}

.preview__card {
    background-color: var(--white);
    padding: 32px;
    width: 50%;
}

.preview__name {
    font-size: 12px;
    color: var(--grey);
    margin-bottom: 20px;
}

.preview__title {
    color: var(--dark);
    font-size: 32px;
    margin-bottom: 24px;
    font-family: "Fraunces", serif;
    font-weight: 700;
}

.preview__text {
    color: var(--grey);
    margin-bottom: 29px;
}

.preview__prices {
    display: flex;
    align-items: center;
}

.preview__price {
    font-family: "Fraunces", serif;
    font-size: 32px;
    color: var(--cyan);
    margin-right: 19px;
}

.preview__old-price {
    color: var(--grey);
    text-decoration: line-through;
}

.preview__button {
    margin-top: 30px;
    padding: 15px 0;
    background-color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.preview__button > span {
    color: var(--white)
}

.preview__button:hover {
    background-color: #1A4032;
}

@media(max-width: 600px) {
    .preview__wrapper {
        max-height: 290px;
        width: 100%;
    }
    
    main {
        height: auto;
        display: block;
    }

    .preview {
        flex-direction: column;
        margin: 0 auto;
        width: 100%;
        max-height: 100%;
    }

    .preview__card {
        width: 100%;
    }
}