@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@700&family=Montserrat:wght@100..900&display=swap');


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

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: hsl(30, 38%, 92%);
    overflow-x: hidden;
    padding: 10px;
}

.main {
    min-height: 400px;
    max-width: 550px;
    background-color: hsl(0, 0%, 100%);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    border-radius: 10px;
}

.img-box img {
    /* width: 100%; */
    height: auto;
    max-width: 100%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    flex: 1;
}

.img-box picture,
.img-box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

h1 {
    line-height: 1;
    font-family: 'Fraunces', serif;
}

.content-box {
    padding: 19px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.title {
    letter-spacing: 3px !important;
    color: hsl(228, 12%, 48%);
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
}

.content {
    line-height: 1.4;
    color: hsl(228, 12%, 48%);
    font-family: 'Montserrat', sans-serif;
}

.price-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.new-price {
    font-size: 33px;
    color: hsl(158, 36%, 37%);
    font-weight: 700;
    font-family: 'Fraunces', serif;
}

.old-price {
    text-decoration: line-through;
    color: hsl(228, 12%, 48%);
    font-family: 'Montserrat', sans-serif;
}

button {
    border: none;
    padding: 13px;
    border-radius: 10px;
    color: white;
    background-color: hsl(158, 36%, 37%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background-color: hsl(158, 42%, 18%);
}


@media (max-width:475px) {
    .main {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .img-box img {
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0px;
    }

    .content-box {
        padding: 16px;
    }
}