* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


:root {

    --azul: #2563eb;

    --azul-escuro: #1d4ed8;

    --fundo: #f4f7fb;

    --texto: #172033;

    --cinza: #718096;

    --borda: #e7ebf2;

    --verde: #16a34a;

    --vermelho: #dc2626;

}


body {

    min-height: 100vh;

    font-family:

        -apple-system,

        BlinkMacSystemFont,

        "Segoe UI",

        Arial,

        sans-serif;

    background: var(--fundo);

    color: var(--texto);

}


.app {

    width: 100%;

    max-width: 600px;

    margin: auto;

    padding: 22px 16px 40px;

}


/* CABEÇALHO */

.topo {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 22px;

}


.saudacao {

    color: var(--cinza);

    font-size: 13px;

}


.topo h1 {

    font-size: 28px;

    margin-top: 4px;

    letter-spacing: -0.5px;

}


.icone-carrinho {

    width: 48px;

    height: 48px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: white;

    font-size: 23px;

    box-shadow:

        0 6px 18px

        rgba(

            0,

            0,

            0,

            0.06

        );

}


/* ORÇAMENTO */

.orcamento-card {

    padding: 22px;

    border-radius: 24px;

    background:

        linear-gradient(

            135deg,

            #2563eb,

            #1d4ed8

        );

    color: white;

    box-shadow:

        0 12px 25px

        rgba(

            37,

            99,

            235,

            0.25

        );

    margin-bottom: 15px;

}


.orcamento-topo {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}


.orcamento-topo span {

    display: block;

    font-size: 13px;

    opacity: 0.8;

    margin-bottom: 5px;

}


.orcamento-topo strong {

    display: block;

    font-size: 30px;

}


.icone-dinheiro {

    width: 50px;

    height: 50px;

    border-radius: 16px;

    background: rgba(

        255,

        255,

        255,

        0.18

    );

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

}


.orcamento-input-area {

    display: flex;

    align-items: center;

    gap: 8px;

    background: rgba(

        255,

        255,

        255,

        0.14

    );

    padding: 7px;

    border-radius: 13px;

}


.orcamento-input-area span {

    padding-left: 8px;

    font-weight: bold;

}


.orcamento-input-area input {

    min-width: 0;

    flex: 1;

    border: none;

    outline: none;

    background: transparent;

    color: white;

    font-size: 15px;

}


.orcamento-input-area input::placeholder {

    color: rgba(

        255,

        255,

        255,

        0.7

    );

}


.orcamento-input-area button {

    border: none;

    padding: 11px 14px;

    border-radius: 9px;

    background: white;

    color: var(--azul);

    font-weight: bold;

}


/* RESUMO */

.resumo {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-bottom: 18px;

}


.resumo-card {

    background: white;

    padding: 17px;

    border-radius: 18px;

    border: 1px solid var(--borda);

}


.resumo-card span {

    display: block;

    color: var(--cinza);

    font-size: 12px;

    margin-bottom: 8px;

}


.resumo-card strong {

    font-size: 20px;

}


.positivo strong {

    color: var(--verde);

}


.negativo strong {

    color: var(--vermelho);

}


/* ADICIONAR */

.adicionar-card {

    background: white;

    border-radius: 22px;

    padding: 20px;

    margin-bottom: 20px;

    border: 1px solid var(--borda);

}


.titulo-secao {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}


.titulo-secao span,

.lista-topo span {

    color: var(--cinza);

    font-size: 12px;

}


.titulo-secao h2,

.lista-topo h2 {

    font-size: 20px;

    margin-top: 4px;

}


.mais {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #eff6ff;

    color: var(--azul);

    font-size: 25px;

}


.form-produto {

    display: flex;

    flex-direction: column;

    gap: 14px;

}


.campo {

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.campo label {

    color: #4b5563;

    font-size: 12px;

    font-weight: 600;

}


.campo input {

    width: 100%;

    padding: 14px;

    border: 1px solid var(--borda);

    border-radius: 12px;

    outline: none;

    font-size: 15px;

    background: #fafbfc;

}


.campo input:focus {

    border-color: var(--azul);

    background: white;

}


.linha-campos {

    display: grid;

    grid-template-columns: 1fr 1.4fr;

    gap: 10px;

}


.preco-input {

    display: flex;

    align-items: center;

    border: 1px solid var(--borda);

    border-radius: 12px;

    background: #fafbfc;

    padding-left: 12px;

}


.preco-input span {

    color: var(--cinza);

    font-size: 13px;

}


.preco-input input {

    border: none;

    background: transparent;

}


.btn-adicionar {

    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 13px;

    background: var(--azul);

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

}


.btn-adicionar:active {

    transform: scale(0.98);

}


.btn-adicionar span {

    font-size: 20px;

    margin-right: 5px;

}


/* LISTA */

.lista-section {

    background: white;

    border-radius: 22px;

    padding: 20px;

    border: 1px solid var(--borda);

}


.lista-topo {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 16px;

}


.contador {

    background: #eff6ff;

    color: var(--azul) !important;

    padding: 7px 10px;

    border-radius: 20px;

    font-weight: bold;

}


.pesquisa-area {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    background: #f7f8fa;

    border-radius: 12px;

    margin-bottom: 8px;

}


.pesquisa-area input {

    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    font-size: 14px;

}


.produto {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 16px 0;

    border-bottom: 1px solid var(--borda);

}


.produto-info {

    flex: 1;

    min-width: 0;

}


.produto-info h3 {

    font-size: 15px;

    margin-bottom: 5px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.produto-info p {

    color: var(--cinza);

    font-size: 12px;

}


.produto-total {

    font-size: 14px;

    white-space: nowrap;

}


.btn-excluir {

    width: 32px;

    height: 32px;

    padding: 0;

    border: none;

    border-radius: 9px;

    background: #fff1f2;

    color: var(--vermelho);

    font-size: 20px;

}


.vazio {

    text-align: center;

    padding: 35px 15px;

}


.vazio-icone {

    font-size: 42px;

    margin-bottom: 10px;

}


.vazio h3 {

    font-size: 16px;

    margin-bottom: 6px;

}


.vazio p {

    color: var(--cinza);

    font-size: 13px;

    line-height: 1.5;

}


/* BOTÃO LIMPAR */

.btn-limpar {

    width: 100%;

    margin-top: 15px;

    padding: 14px;

    border: none;

    border-radius: 13px;

    background: #fff1f2;

    color: var(--vermelho);

    font-weight: bold;

}


/* RODAPÉ */

footer {

    text-align: center;

    color: #9ca3af;

    font-size: 11px;

    margin-top: 25px;

}


/* TELAS MAIORES */

@media (min-width: 601px) {

    .app {

        padding-top: 40px;

    }

}
.btn-salvar {

    width: 100%;

    margin-top: 10px;

    padding: 15px;

    border: none;

    border-radius: 13px;

    background: #16a34a;

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

}


.btn-salvar:active {

    transform: scale(0.98);

}