@font-face {
    font-family: 'Montserrat';
    font-weight: 500;
    font-style: normal;
    src: url("fonts/montserrat/Montserrat-Medium.woff2") format("woff2"),
    url("fonts/montserrat/Montserrat-Medium.woff") format("woff"),
    url("fonts/montserrat/Montserrat-Medium.ttf") format("truetype");
}

@font-face {
    font-family: 'Montserrat';
    font-weight: 700;
    font-style: normal;
    src: url("fonts/montserrat/Montserrat-Bold.woff2") format("woff2"),
    url("fonts/montserrat/Montserrat-Bold.woff") format("woff"),
    url("fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
}

@font-face {
    font-family: 'Fraunces';
    font-weight: 700;
    font-style: normal;
    src: url("fonts/Fraunces/Fraunces-Bold.woff2") format("woff2"),
     url("fonts/Fraunces/Fraunces-Bold.woff") format("woff"),
     url("fonts/Fraunces/Fraunces-Bold.ttf") format("truetype");
}

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

:root {
    --bg-color: hsl(30, 38%, 92%);
    --primary-cyan: hsl(158, 36%, 37%);
    --primary-cyan-dark: hsl(158, 36%, 20%);
    --primary-light: hsl(228, 12%, 48%);
    --primary-dark: hsl(212, 21%, 14%);
}

::selection {
    color: white;
    background-color: var(--primary-cyan);
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-light)
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
    text-decoration: none;
    color: white;
    font-weight: 700;
    background-color: var(--primary-cyan);
    padding: 1.2em;
    text-align: center;
    outline: none;
    border: none;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.btn:active {
    background-color: var(--primary-cyan-dark);
}

.page {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4vh 0;
}

.product {
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
    
.product__photo img{
 /* to avoid that little gap at the bottom of inline elements , especially for desktop*/
	display: block;
	border-radius: 10px 10px 0 0;
}

.product__content {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product__category {
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.34rem;

}

.product__name {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-dark);
}

.product__description {
    line-height: 1.6;
}

.product__prices {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

.product__price {
    text-decoration: line-through;
}

.btn__icon {
    margin-right: 1rem;
}

@media only screen and (min-width: 62em) {

    .btn:hover {
        background-color: var(--primary-cyan-dark);
    }

    .product {
    	max-width: 600px;
        display: flex;
    }

    .product__photo {
        width: 50%;
        flex: 1 1 50%;
    }
    
       .product__photo img{
        object-fit: cover;
        border-radius: 10px 0 0 10px;
        }

    .product__content {
        padding: 3rem;
        align-self: center;
        flex: 1 1 50%;
    }

}
