/* =========================================================
   PÁGINA DE PRÉ-ORÇAMENTO — OMG TÊXTIL
========================================================= */

.orcamento-page {
    background: #ffffff;
}

.orcamento-page-hero {
    padding: 70px 0 48px;
    background: #ffffff;
}

.orcamento-page-content,
.orcamento-resumo {
    padding: 60px 0 100px;
    background: #f6f8fb;
}


/* =========================================================
   ESTRUTURA PRINCIPAL
========================================================= */

.orcamento-page-layout,
.orcamento-resumo-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(330px, 410px);

    align-items: start;

    gap: 36px;
}

.orcamento-page-main {
    min-width: 0;
}


/* =========================================================
   CABEÇALHO DA LISTA
========================================================= */

.orcamento-page-header,
.orcamento-list-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 28px;
}

.orcamento-page-header h2,
.orcamento-list-header h2 {
    margin: 18px 0 0;

    color: var(--black);

    font-size: 42px;
    line-height: 1.05;
}


/* =========================================================
   BOTÃO LIMPAR
========================================================= */

.orcamento-limpar {
    min-height: 46px;

    padding: 0 20px;

    border: 1px solid #e93562;
    border-radius: 8px;

    background: transparent;

    color: #e93562;

    cursor: pointer;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.orcamento-limpar:hover {
    background: #e93562;
    color: #ffffff;
}


/* =========================================================
   LISTA
========================================================= */

.orcamento-lista {
    display: grid;

    width: 100%;

    gap: 16px;
}


/* =========================================================
   ESTADO DO ORÇAMENTO
========================================================= */

#orcamentoPageVazio[hidden],
.orcamento-page-vazio[hidden],
.orcamento-vazio[hidden] {
    display: none !important;

    visibility: hidden !important;

    opacity: 0 !important;

    height: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}

#orcamentoPageLista:not([hidden]) {
    display: grid !important;

    width: 100%;

    gap: 16px;
}


/* =========================================================
   ORÇAMENTO VAZIO
========================================================= */

.orcamento-vazio {
    padding: 55px 35px;

    border: 1px dashed var(--border);
    border-radius: 24px;

    background: #ffffff;

    text-align: center;
}

.orcamento-vazio h3 {
    margin: 0 0 12px;

    color: var(--black);

    font-size: 30px;
}

.orcamento-vazio p {
    max-width: 520px;

    margin: 0 auto 26px;

    color: var(--text);

    line-height: 1.7;
}


/* =========================================================
   CARD DO PRODUTO
========================================================= */

.orcamento-page-item {
    display: grid;

    grid-template-columns:
        150px
        minmax(0, 1fr);

    align-items: center;

    width: 100%;

    gap: 22px;

    padding: 20px;

    border: 1px solid #e1e6ed;
    border-radius: 18px;

    background: #ffffff;

    box-sizing: border-box;

    box-shadow:
        0 6px 22px
        rgba(15, 23, 42, 0.04);
}


/* =========================================================
   IMAGEM DO PRODUTO
========================================================= */

.orcamento-item-imagem {
    display: flex;

    width: 150px;
    height: 150px;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid #e5e9ef;
    border-radius: 14px;

    background: #f8fafc;
}

.orcamento-item-imagem img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   CONTEÚDO DO PRODUTO
========================================================= */

.orcamento-item-conteudo {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    grid-template-areas:
        "topo topo"
        "linha linha"
        "obs obs";

    align-items: center;

    width: 100%;
    min-width: 0;

    column-gap: 18px;
    row-gap: 10px;
}


/* =========================================================
   TOPO DO PRODUTO
========================================================= */

.orcamento-item-topo {
    grid-area: topo;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin: 0;
}

.orcamento-item-topo h3 {
    margin: 0 0 6px;

    color: #061e45;

    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.orcamento-item-topo p {
    margin: 0;

    color: #687385;

    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   BOTÃO REMOVER
========================================================= */

.orcamento-remover-item {
    flex: 0 0 auto;

    padding: 8px 13px;

    border: 1px solid #e52d55;
    border-radius: 8px;

    background: transparent;

    color: #e52d55;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.orcamento-remover-item:hover {
    background: #e52d55;
    color: #ffffff;
}


/* =========================================================
   LINHA — TAMANHOS + VALORES UNITÁRIOS
========================================================= */

.orcamento-item-inline-row {
    grid-area: linha;

    display: flex;

    width: 100%;
    min-width: 0;

    align-items: center;
    justify-content: space-between;

    gap: 16px;
}


/* =========================================================
   TAMANHOS
========================================================= */

.orcamento-item-tamanhos {
    display: flex;

    min-width: 0;

    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin: 0;
}

.orcamento-item-tamanho {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 7px 10px;

    border-radius: 9px;

    background: #edf4ff;

    color: #1558be;

    font-size: 11px;
    line-height: 1.2;

    white-space: nowrap;
}

.orcamento-item-tamanho strong {
    font-weight: 900;
}

.orcamento-item-tamanho span {
    font-weight: 700;
}


/* =========================================================
   BLOCO VALOR UNITÁRIO
========================================================= */

.orcamento-item-unitarios {
    flex: 0 0 auto;

    min-width: 205px;

    margin: 0 0 0 auto;

    padding: 8px 10px;

    border: 1px solid #e1e7f0;
    border-radius: 10px;

    background: #f8faff;

    box-sizing: border-box;
}


/* TÍTULO */

.orcamento-item-unitarios-titulo {
    display: block;

    margin-bottom: 5px;

    color: #667085;

    font-size: 8px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* COLUNAS DOS PREÇOS */

.orcamento-item-unitarios-grid {
    display: flex;

    align-items: flex-start;
    flex-wrap: wrap;

    gap: 7px 14px;
}


/* P AO GG / XGG / MARMORIZADO */

.orcamento-item-unitario-grupo {
    min-width: 78px;
}

.orcamento-item-unitario-tipo {
    display: block;

    margin-bottom: 3px;

    color: #061e45;

    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
}


/* PIX E CARTÃO */

.orcamento-item-unitario-linha {
    display: flex;

    align-items: baseline;
    justify-content: space-between;

    gap: 7px;

    margin-top: 2px;

    white-space: nowrap;
}

.orcamento-item-unitario-linha span {
    color: #667085;

    font-size: 8px;
    font-weight: 600;
}

.orcamento-item-unitario-linha strong {
    color: #061e45;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}


/* SOB CONSULTA */

.orcamento-item-unitario-pendente {
    color: #667085;

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   OBSERVAÇÕES
========================================================= */

.orcamento-item-observacao {
    grid-area: obs;

    margin: 0;

    color: #687385;

    font-size: 12px;
    line-height: 1.5;
}

.orcamento-item-observacao strong {
    color: #061e45;
}


/* =========================================================
   PREÇOS ANTIGOS DO CARD
   NÃO EXIBIR
========================================================= */

.orcamento-item-precos {
    display: none !important;
}

.orcamento-item-preco-linha {
    display: none !important;
}

.orcamento-item-preco-especial {
    display: none !important;
}

.orcamento-item-valores-row {
    display: none !important;
}


/* =========================================================
   SIDEBAR
========================================================= */

.orcamento-sidebar,
.orcamento-page-sidebar {
    position: sticky;

    top: 110px;

    min-width: 0;
}

.orcamento-summary-card,
.orcamento-resumo-card {
    padding: 32px;

    border: 1px solid var(--border);
    border-radius: 26px;

    background: #ffffff;

    box-shadow: var(--shadow-md);
}

.orcamento-summary-card h2,
.orcamento-resumo-card h2 {
    margin: 22px 0 28px;

    color: var(--black);

    font-size: 30px;
    line-height: 1.1;
}


/* =========================================================
   RESUMO
========================================================= */

.orcamento-resumo-numeros {
    display: grid;

    margin-top: 28px;
}

.orcamento-resumo-linha {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid #e1e5ec;
}

.orcamento-resumo-linha:first-child {
    padding-top: 0;
}

.orcamento-resumo-linha span {
    color: #697184;

    font-size: 14px;
    line-height: 1.4;
}

.orcamento-resumo-linha strong {
    flex: 0 0 auto;

    color: #1558be;

    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}


/* =========================================================
   VALOR TOTAL DO ORÇAMENTO
========================================================= */

.orcamento-resumo-linha-valor {
    display: flex !important;

    flex-direction: row !important;
    flex-wrap: wrap !important;

    align-items: center !important;
    justify-content: space-between !important;

    padding-top: 23px;
    padding-bottom: 23px;
}

.orcamento-resumo-linha-valor > span {
    width: auto !important;

    flex: 0 1 auto !important;

    color: #202631;

    font-weight: 800;
}

.orcamento-resumo-linha-valor > strong {
    width: auto !important;

    flex: 0 1 auto !important;

    color: #061e45;

    font-size: 24px;
    font-weight: 900;

    letter-spacing: -0.5px;

    white-space: nowrap;
}


/* =========================================================
   AVISO DO PAGAMENTO
========================================================= */

.orcamento-resumo-linha-valor > .orcamento-aviso-pagamento {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    flex: 0 0 100% !important;

    margin: 8px 0 0 !important;
    padding: 0 !important;

    color: #6b7280;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;

    text-align: right;
}


/* =========================================================
   CAMPOS DO CLIENTE
========================================================= */

.orcamento-customer {
    margin-top: 26px;
}

.orcamento-dados-grid {
    display: grid;

    gap: 19px;

    margin-top: 28px;
}

.orcamento-dado-field {
    display: grid;

    gap: 9px;
}

.orcamento-dado-field label {
    color: #17191e;

    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
}

.orcamento-dado-field input {
    display: block;

    width: 100%;
    min-height: 56px;

    padding: 0 17px;

    border: 1px solid #dce1e9;
    border-radius: 14px;

    background: #ffffff;

    color: #17191e;

    font: inherit;
    font-size: 15px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.orcamento-dado-field input::placeholder {
    color: #858b96;
}

.orcamento-dado-field input:focus {
    border-color: #1558be;

    box-shadow:
        0 0 0 3px
        rgba(21, 88, 190, 0.1);
}


/* =========================================================
   COMPATIBILIDADE COM ESTRUTURA ANTIGA
========================================================= */

.orcamento-summary-card .orcamento-field {
    margin-bottom: 18px;
}

.orcamento-summary-card .orcamento-field input {
    width: 100%;
    height: 50px;

    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #ffffff;

    font: inherit;

    box-sizing: border-box;
}


/* =========================================================
   PREÇO PENDENTE
========================================================= */

.orcamento-valor-pendente {
    margin: 18px 0 0;

    padding: 13px 15px;

    border: 1px solid #eed9aa;
    border-radius: 11px;

    background: #fffaf0;

    color: #725d31;

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   FRETE
========================================================= */

.orcamento-frete-aviso {
    margin-top: 24px;

    padding: 17px;

    border-radius: 13px;

    background: #f3f6fb;
}

.orcamento-frete-aviso strong {
    display: block;

    margin-bottom: 5px;

    color: #061e45;

    font-size: 14px;
    font-weight: 900;
}

.orcamento-frete-aviso p {
    margin: 0;

    color: #687185;

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   BOTÃO WHATSAPP
========================================================= */

.orcamento-whatsapp,
.orcamento-enviar-whatsapp {
    display: block !important;

    width: fit-content !important;
    min-height: 54px;

    margin-top: 24px;
    margin-left: auto !important;
    margin-right: auto !important;

    align-items: center;
    justify-content: center;

    border: 0;

    cursor: pointer;

    box-sizing: border-box;
}

.orcamento-whatsapp:disabled,
.orcamento-enviar-whatsapp:disabled {
    cursor: not-allowed;

    opacity: 0.5;
}


/* =========================================================
   FEEDBACK
========================================================= */

.orcamento-page-feedback {
    min-height: 20px;

    margin: 14px 0 0;

    color: #b42318;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;

    text-align: center;
}

.orcamento-page-feedback.is-success {
    color: #18794e;
}

.orcamento-page-feedback.is-error {
    color: #b42318;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .orcamento-page-layout,
    .orcamento-resumo-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, 350px);

        gap: 26px;
    }

    .orcamento-summary-card,
    .orcamento-resumo-card {
        padding: 26px;
    }
}


/* =========================================================
   TABLET — CARD
========================================================= */

@media (max-width: 980px) {

    .orcamento-item-inline-row {
        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }

    .orcamento-item-unitarios {
        width: 100%;
        min-width: 0;

        margin-left: 0;
    }

    .orcamento-item-unitarios-grid {
        justify-content: flex-start;
    }
}


/* =========================================================
   SIDEBAR PARA BAIXO
========================================================= */

@media (max-width: 900px) {

    .orcamento-page-layout,
    .orcamento-resumo-grid {
        grid-template-columns: 1fr;
    }

    .orcamento-sidebar,
    .orcamento-page-sidebar {
        position: static;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .orcamento-page-hero {
        padding: 45px 0 32px;
    }

    .orcamento-page-content,
    .orcamento-resumo {
        padding: 45px 0 70px;
    }


    /* CABEÇALHO */

    .orcamento-page-header,
    .orcamento-list-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;
    }

    .orcamento-page-header h2,
    .orcamento-list-header h2 {
        font-size: 36px;
    }

    .orcamento-limpar {
        width: 100%;
    }


    /* CARD */

    .orcamento-page-item {
        grid-template-columns:
            95px
            minmax(0, 1fr);

        align-items: start;

        gap: 13px;

        padding: 13px;

        border-radius: 15px;
    }


    /* IMAGEM */

    .orcamento-item-imagem {
        width: 95px;
        height: 110px;

        border-radius: 11px;
    }


    /* CONTEÚDO */

    .orcamento-item-conteudo {
        display: block;
    }


    /* TOPO */

    .orcamento-item-topo {
        gap: 8px;
    }

    .orcamento-item-topo h3 {
        font-size: 15px;
    }

    .orcamento-item-topo p {
        font-size: 11px;
    }


    /* REMOVER */

    .orcamento-remover-item {
        padding: 5px 7px;

        font-size: 9px;
    }


    /* LINHA DOS TAMANHOS */

    .orcamento-item-inline-row {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        margin-top: 12px;
    }


    /* TAMANHOS */

    .orcamento-item-tamanhos {
        gap: 6px;
    }

    .orcamento-item-tamanho {
        padding: 6px 8px;

        border-radius: 8px;

        font-size: 9px;
    }


    /* VALORES UNITÁRIOS */

    .orcamento-item-unitarios {
        width: 100%;
        min-width: 0;

        margin: 0;

        padding: 8px 9px;
    }

    .orcamento-item-unitarios-grid {
        gap: 8px 14px;
    }

    .orcamento-item-unitario-grupo {
        min-width: 76px;
    }

    .orcamento-item-unitarios-titulo {
        font-size: 8px;
    }

    .orcamento-item-unitario-tipo {
        font-size: 9px;
    }

    .orcamento-item-unitario-linha span {
        font-size: 8px;
    }

    .orcamento-item-unitario-linha strong {
        font-size: 9px;
    }


    /* OBSERVAÇÃO */

    .orcamento-item-observacao {
        margin-top: 10px;

        font-size: 11px;
    }


    /* RESUMO */

    .orcamento-summary-card,
    .orcamento-resumo-card {
        padding: 25px 20px;

        border-radius: 22px;
    }

    .orcamento-summary-card h2,
    .orcamento-resumo-card h2 {
        font-size: 28px;
    }

    .orcamento-resumo-linha {
        padding: 17px 0;
    }


    /* VALOR TOTAL */

    .orcamento-resumo-linha-valor {
        align-items: flex-start !important;

        flex-direction: column !important;

        gap: 8px;
    }

    .orcamento-resumo-linha-valor > strong {
        font-size: 24px;
    }

    .orcamento-resumo-linha-valor >
    .orcamento-aviso-pagamento {
        text-align: left;
    }


    /* FORM */

    .orcamento-dados-grid {
        gap: 17px;
    }

    .orcamento-dado-field input {
        min-height: 54px;
    }
}


/* =========================================================
   MOBILE MUITO PEQUENO
========================================================= */

@media (max-width: 420px) {

    .orcamento-page-item {
        grid-template-columns: 82px minmax(0, 1fr);

        gap: 10px;

        padding: 11px;
    }

    .orcamento-item-imagem {
        width: 82px;
        height: 100px;
    }

    .orcamento-item-topo h3 {
        font-size: 14px;
    }

    .orcamento-item-tamanho {
        padding: 5px 7px;

        font-size: 8px;
    }

    .orcamento-item-unitarios-grid {
        gap: 7px 10px;
    }

    .orcamento-item-unitario-grupo {
        min-width: 70px;
    }
}