:root {
    --corpadrao1: #00ffff;
    --corpadrao2: #141b31;

    --color-white: #fff;
    --color-black: #000;

    --colorclara: white;
    --corescura: black;
    --corfundoraiz: #c9c9c9;

    --cor_CTA: #3daa0b;
    --cor_CTA_hover: #3daa0b;

    --cor01: #d9241a;
    --cor02: #d9241a;
}


/* Estilos do fundo escuro */
.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Fundo preto semi-transparente */
    z-index: 999;
    display: none;
    /* Inicialmente escondido */
}

/* Estilos da seção modal */
.modal-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: white;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    /* Inicialmente escondido */
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Quando a classe "mostrar" for adicionada */
.modal-section.mostrar {
    display: block;
    opacity: 1;
}

/* Botão de fechar o modal */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}


.carrinho {
    display: flex;
    margin: auto;
    justify-content: space-between;
    align-items: center;

    padding: 10px 20px;
}

.carrinho img {
    width: 100px;
}

.carrinho i {
    font-size: 3rem;
    color: var(--cor_CTA);
}

.finalizar-compra {
    font-size: 1rem;
    background-color: var(--cor02);
    padding: 10px 20px;

    color: var(--colorclara);
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;

    transition: all 0.4s ease-in-out;
}

.finalizar-compra:hover {
    transform: scale(1.05);
}

.carrinho h5 {
    font-weight: bold;
    font-size: 1.2rem;
    margin: auto;
    padding: 0px;
}

.carrinho p {
    margin: auto;
    padding: 0px;
}


.upsell-caruda {
    border: 2px solid var(--corpadrao2);
    border-radius: 20px;
    padding: 20px 40px;


    margin: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.upsell-caruda h1 {
    color: var(--corpadrao2);
    font-size: 2rem;
    font-weight: bold;
    margin: auto;
    margin-bottom: 20px;
}

.upsell-caruda .carrinho {
    justify-content: space-around;
}

.upsell-caruda .preco h2 {
    color: var(--cor_CTA);
    font-size: 1.8rem;
    font-weight: bold;
}

.upsell-caruda .carrinho img {
    padding: 0px 10px;
}

.upsell-caruda i {
    color: var(--cor_CTA);
    font-size: 3rem;
    text-align: center;
    margin: auto;
    line-height: 1rem;
}

.upsell-caruda .preco span {
    color: var(--cor02);
    font-weight: bold;
    font-size: 1.3rem;
    text-decoration: line-through;
    line-height: 1rem;
}

.d5 {
    justify-content: space-around;
    align-items: center;
}

.d5 a {
    background-color: var(--cor_CTA_hover);
    padding: 10px 20px;
    color: var(--colorclara);
    font-weight: bold;
    text-decoration: none;
    border-radius: 15px;

    font-size: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.d5 a:hover {
    transform: scale(1.05);
}

.d5 .preco h2 {
    font-size: 2.6rem;
}

.d5 .preco span {
    font-size: 1.6rem;
}


@media (max-width: 790px) {

    .modal-section {
        padding: 10px;
        width: 100%;
        border-radius: 10px;
    }

    .close-modal {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .carrinho {
        padding: 5px 5px;
        margin-bottom: 20px;
    }

    .carrinho img {
        width: 80px;
    }

    .carrinho.item-produto img {
        width: 100px;
    }

    .carrinho i {
        font-size: 2.5rem;
        margin-right: 10px;
        color: var(--cor_CTA);
    }

    .finalizar-compra {
        line-height: 1rem;
        padding: 15px 20px;
    }

    .carrinho h5 {
        text-align: center;
        margin: 0px 5px;
        font-size: 1rem;
    }

    .carrinho p {
        display: none;
    }

    .upsell-caruda {
        padding: 10px 10px;
    }

    .upsell-caruda .carrinho {
        justify-content: space-between;
    }

    .preco.acafe h2,
    .preco.ufsc h2 {
        display: none;
    }

    /* .preco.acafe, .preco.ufsc {
        background-color: red;
    } */


    .d5 {
        align-items: center;
        justify-content: center;
    }


    .d5 a {
        line-height: 1.7rem;
        font-size: 1.3rem;
        padding: 10px 10px;
    }

    .d5 .preco h2 {
        font-size: 1.8rem;
        min-width: 200px;
    }

    .d5 .preco span {
        font-size: 1.4rem;
    }

}