/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 2 versions,> 1%,not dead
*/

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

@font-face {
    font-family: "Montserrat";
    src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
}

@font-face {
    font-family: "Fraunces";
    src: url("fonts/Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf") format("truetype");
}

html {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: hsl(228, 12%, 48%);
}

body {
    background-color: hsl(30, 38%, 92%);
}

main {
    min-height: 100vh;
    padding-block: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: hsl(0, 0%, 100%);
    margin: auto;
    width: 92%;
    max-width: 418px;
    border-radius: 10px;
}

.contain-img {
    width: 100%;
    max-height: 362.45px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
}

.container .contain-img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.product-card {
    padding: 20px 25px;
    padding-inline: clamp(25px, 6vw, 40px);
    padding-top: clamp(20px, 4vw, 25px);
    padding-bottom: clamp(20px, 4vw, 25px)
}

.product-card .category {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: clamp(0.8rem, 1.7vw, 1rem);
    font-weight: 500;
}

.product-card h1 {
    color: hsl(212, 21%, 14%);
    font-family: "Fraunces", 'Times New Roman', Times, serif;
    font-size: clamp(2.2rem, 5.1vw, 2.5rem);
    line-height: 1;
    margin: 15px 0;
    text-wrap: balance;
}

.product-card .description {
    font-size: clamp(1rem, 2.1vw, 1.3rem);
    line-height: 1.6;
    font-weight: 500
}

.product-card .product-price {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.product-price .price {
    display: flex;
    gap: 20px;
    align-items: center;
}

.price .new-price {
    color: hsl(158, 36%, 37%);
    font-weight: 700;
    font-family: "Fraunces", 'Times New Roman', Times, serif;
    font-size: clamp(2.2rem, 4.4vw, 2.5rem);
}

.price .old-price {
    font-weight: 500;
    text-decoration: line-through;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.product-price button {
    border: none;
    background-color: hsl(158, 36%, 37%);
    color: hsl(0, 0%, 100%);
    font-weight: 700;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    padding: 1.2em;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.product-price button svg {
    width: 15px;
    height: 16px;
}

footer {
    width: 200px;
    margin: auto;
    margin-bottom: 8px;
    color: hsl(228, 12%, 48%);
    font-weight: 500;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s
}

footer a:hover {
    color: hsl(158, 42%, 18%);
    text-decoration: underline;
}

@media only screen and (min-width: 768px) {
    .container {
        max-width: 800px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        aspect-ratio: 800 / 540;
        max-height: 540px;
    }
    .contain-img {
        border-top-right-radius: 0;
        border-bottom-left-radius: 10px;
        max-height: 540px;
    }
    .product-card {
        padding: 40px 50px 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .product-card h1 {
        margin-top: 30px;
    }
    .product-card .product-price {
        gap: 35px
    }
    .product-price .price {
        gap: 30px
    }
    .product-price button svg {
        width: 20px;
        height: 21px
    }
}

@media only screen and (min-height: 801px) {
        footer {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0
    }
}