@charset "UTF-8";

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

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

:root {
    --color-cream: hsl(30, 54%, 94%);
    /* Cor de fundo */
    --color-dark-cyan: hsl(158, 36%, 37%);
    /* Cor do botão e preço principal */
    --color-darker-cyan: hsl(158, 36%, 20%);
    /* Cor do botão hover */
    --color-very-dark-blue: hsl(212, 21%, 14%);
    /* Cor do título */
    --color-dark-grayish-blue: hsl(228, 12%, 48%);
    /* Cor da descrição e preço antigo */
    --color-white: hsl(0, 0%, 100%);
    /* Branco */
}

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

body {
    background-color: var(--color-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main {
    background-color: white;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.450);
    max-width: 375px;
    width: 100%;
    /* Ocupa 100% da largura disponível até o max-width */
    margin: 20px 0px;
    /* Espaço entre o card e o footer */
}

.img {
    background: url(../images/image-product-mobile.jpg) no-repeat;
    background-size: cover;
    height: 200px;
    display: block;
    background-position: center top;
    height: 350px;
}

#info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

#info h2 {
    font-family: "Montserrat";
    font-weight: 500;
    letter-spacing: 4px;
    color: hsl(212, 21%, 14%);
    text-transform: uppercase;
    font-size: 14px;
}

#info h1 {
    font-family: "Fraunces";
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--color-very-dark-blue);
}

#info p {
    font-family: "Montserrat";
    font-weight: 500;
    color: var(--color-dark-grayish-blue);
    font-size: 14px;
}

.preco {
    display: flex;
    align-items: center;
    gap: 16px;
}

#info #preco-atual{
    font-family: "Fraunces";
    font-weight: 700;
    font-size: 36px;
    color: hsl(158, 36%, 37%);
}

#info #preco-antigo{
    text-decoration: line-through;
}

#btn-comprar{
    text-decoration: none;
    background-color: var(--color-dark-cyan);
    color: var(--color-white);
    border-radius: 8px;
    font-size: 1rem;
    padding: 15px 0;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Transição suave na cor de fundo */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#btn-comprar:hover{
    background-color: var(--color-darker-cyan);
}

.attribution a {
    color: hsl(228, 45%, 44%);
    text-decoration: none;
}
.attribution a:hover {
    text-decoration: underline;
}