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

body {
    font-family: 'Poppins', sans-serif;

    background: #f4f8f5;

    color: #26352a;
}


/* =========================
   PÁGINA
========================= */

.pagina-carrinho {
    width: 100%;
    min-height: 100vh;

    padding: 30px;
}


/* =========================
   TOPO
========================= */

.carrinho-topo {
    max-width: 1100px;

    margin: 0 auto 35px;

    display: flex;

    align-items: center;

    gap: 20px;
}

.voltar {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: white;

    color: #16833a;

    text-decoration: none;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);

    transition: 0.2s;
}

.voltar:hover {
    background: #16833a;

    color: white;
}

.carrinho-topo h1 {
    font-size: 28px;

    color: #174d2a;
}

.carrinho-topo p {
    color: #777;

    font-size: 14px;
}


/* =========================
   CONTEÚDO
========================= */

.conteudo-carrinho {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 350px;

    gap: 25px;
}


/* =========================
   ÁREA DOS PRODUTOS
========================= */

.area-produtos {
    background: white;

    border-radius: 16px;

    padding: 25px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.titulo-area {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.titulo-area h2 {
    font-size: 19px;
}

.titulo-area span {
    color: #777;

    font-size: 13px;
}


/* =========================
   CARRINHO VAZIO
========================= */

.carrinho-vazio {
    min-height: 420px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.icone-carrinho-vazio {
    width: 100px;
    height: 100px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf5ed;

    margin-bottom: 20px;
}

.icone-carrinho-vazio i {
    font-size: 45px;

    color: #80b98e;
}

.carrinho-vazio h2 {
    color: #333;

    margin-bottom: 8px;
}

.carrinho-vazio p {
    color: #888;

    max-width: 400px;

    margin-bottom: 25px;

    font-size: 14px;
}


/* =========================
   BOTÃO CONTINUAR
========================= */

.btn-continuar {
    padding: 12px 20px;

    border-radius: 9px;

    background: #16833a;

    color: white;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s;
}

.btn-continuar:hover {
    background: #11652c;
}


/* =========================
   LISTA DE PRODUTOS
========================= */

.lista-produtos {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


/* =========================
   PRODUTO
========================= */

.produto-carrinho {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px;

    border: 1px solid #eeeeee;

    border-radius: 12px;
}

.produto-carrinho img {
    width: 90px;
    height: 90px;

    object-fit: cover;

    border-radius: 10px;
}

.produto-info {
    flex: 1;
}

.produto-info h3 {
    font-size: 16px;

    margin-bottom: 5px;

    color: #333;
}

.produto-info p {
    font-size: 13px;

    color: #777;

    margin-bottom: 8px;
}

.produto-preco {
    color: #16833a;

    font-weight: 600;
}

.btn-remover {
    border: none;

    background: transparent;

    color: #e34b4b;

    cursor: pointer;

    font-size: 17px;

    padding: 10px;
}

.btn-remover:hover {
    color: #b92828;
}


/* =========================
   RESUMO
========================= */

.resumo-carrinho {
    height: fit-content;

    background: white;

    border-radius: 16px;

    padding: 25px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.resumo-carrinho h2 {
    font-size: 19px;

    margin-bottom: 25px;
}

.linha-resumo {
    display: flex;

    justify-content: space-between;

    margin-bottom: 15px;

    color: #666;
}

.linha-resumo strong {
    color: #333;
}

.resumo-carrinho hr {
    border: none;

    border-top: 1px solid #eeeeee;

    margin: 20px 0;
}


/* =========================
   FINALIZAR
========================= */

.btn-finalizar {
    width: 100%;

    border: none;

    padding: 14px;

    border-radius: 10px;

    background: #16833a;

    color: white;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.btn-finalizar:hover {
    background: #11652c;
}

.mensagem-finalizar {
    text-align: center;

    font-size: 13px;

    color: #d33;

    margin-top: 12px;

    min-height: 18px;
}

.continuar-comprando {
    display: block;

    text-align: center;

    margin-top: 20px;

    color: #16833a;

    text-decoration: none;

    font-size: 13px;
}

.continuar-comprando:hover {
    text-decoration: underline;
}


/* =========================
   CELULAR
========================= */

@media (max-width: 800px) {

    .pagina-carrinho {
        padding: 20px;
    }

    .conteudo-carrinho {
        grid-template-columns: 1fr;
    }

    .resumo-carrinho {
        order: -1;
    }

}


@media (max-width: 500px) {

    .carrinho-topo h1 {
        font-size: 22px;
    }

    .produto-carrinho {
        align-items: flex-start;
    }

    .produto-carrinho img {
        width: 70px;
        height: 70px;
    }

}
