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

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Montserrat;
}
html,body{
    width: 100%;
    height: 100%;
}

main{
    width: 100%;
    height: 100%;
    background-color: hsl(30, 38%, 92%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.productCard{
    width:90%;
    max-width:400px;
    height:auto;
    border-radius: 12px;
    background-color: hsl(0, 0%, 100%);
}
.productImg{
    width:100%;
    height: 240px;
    background-image: url(./images/image-product-mobile.jpg);
    background-size: cover;
    background-position: center 32%;
    border-top-left-radius:12px;
    border-top-right-radius: 12px;
}

.productDets{
    width: 100%;
    padding:20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.productTag{
    width: fit-content;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: hsl(228, 12%, 48%);
}
.productDets h1{
    font-size: 2rem;
    line-height: 1;
    font-family: Fraunces;
}

.descText{
    font-size: 0.9rem;
    font-weight: 500;
    color: hsl(228, 12%, 48%);
}
.productPrice{
    display: flex;
    align-items: center;
    gap: 1rem;
}
.discPrice{
    font-size: 2rem;
    font-weight: 700;
    font-family:Fraunces;
    color: hsl(158, 36%, 37%);
}
.realPrice{
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: line-through;
    color:hsl(228, 12%, 48%) ;
}
.addCartBtn{
    width: 100%;
    padding: 1rem;
    background-color: hsl(158, 36%, 37%);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}


@media (min-width:768px) {
    .productCard{
        max-width:640px;
        height:460px;
        display: flex;
    }
    .productImg{
        width: 50%;
        height: 100%;
        background-image: url(./images/image-product-desktop.jpg);
        background-size: cover;
        background-position: center;
        border-top-right-radius:0;
        border-bottom-left-radius: 12px;
    }
    .productDets{
        width: 50%;
       height: 100%;
       padding: 2.4rem;
       gap:1.4rem;
    }

    .productTag{
        width: fit-content;
        text-transform: uppercase;
        font-size: 0.8rem;
        font-weight: 500;
        letter-spacing: 4px;
        color: hsl(228, 12%, 48%);
    }
    .productDets h1{
        font-size: 2.4rem;
        line-height: 1;
        font-family: Fraunces;
    }
    
    .descText{
        font-size:0.9rem;
        font-weight: 500;
        line-height: 1.5;
    }
    .productPrice{
        gap: 1.2rem;
    }

    .addCartBtn:hover{
        background-color: hsl(154, 35%, 26%);
    }
}