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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: hsl(30, 38%, 92%);
}
main {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.component {
    display: flex;
    width: 400px;
    margin: 0 auto;
    justify-content: space-between;
    border-radius: 5px;
    overflow: hidden;
    transition: all .3s ease-in-out;
}

.image {
    width: 50%;
  
}

.image img {
    width: 100%;
    display: block;
    /* object-fit: cover; */
}
.content {
    width: 50%;
    text-align: left;
    padding: 20px;
    background-color: white;
    
}
.content h1 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 25px;
    /* text-align: left; */
    margin-top: 10px;
    line-height: 25px;
}
.content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    /* text-align: left; */
    margin-top: 10px;
    color: hsl(228, 12%, 48%);
}

.prize {
    font-family: 'Fraunces', serif;
    font-size: 11px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    /* justify-content:space-evenly; */
    gap: 0.6rem;
    
}
button {
    width: 100%;
    background-color: hsl(158, 36%, 37%);
    border: none;
    border-radius: 8px;
    padding: 8px;
    margin-top: 15px;
    color: white;
    cursor: pointer;
}
span img
{
    width: 10px;
    height: 10px;
    gap: 1 rem;
}

.value
{
    font-size: 20px;
}
.perfume
{
    font-size: 9px;
    letter-spacing: 0.4rem;
    color: hsl(228, 12%, 48%);
}

@media (max-width:768px) {
    .component{
        margin: 10px;
        flex-direction: column;
        width: 450px;
    }
    .image{
        width: 100%;
    }
    .content
    {
        width: 100%;
    }
}