/* =========================================
   CARDÁPIO — AZURY
========================================= */

.cardapio {
    padding: 75px 5% 85px;
    text-align: center;
    background: #ffffff;
}

.cardapio > h2 {
    margin: 0 0 10px;
    color: #2b2b2b;
    font-size: 40px;
    font-weight: 800;
}

.cardapio > p {
    max-width: 620px;
    margin: 0 auto 45px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================
   GRADE MONTE O SEU
========================================= */

.menu-grid {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 24px;

    list-style: none;
}

.menu-grid > li {
    min-width: 0;
    min-height: 430px;

    display: flex;
    flex-direction: column;

    position: relative;
    overflow: hidden;

    text-align: left;
    background: #ffffff;

    border: 1px solid #e7eaf0;
    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(22, 43, 82, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.menu-grid > li:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 38px
        rgba(22, 43, 82, 0.13);
}

.monte-seu-imagem {
    width: 100%;
    height: 205px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f1f5ff,
            #ffffff
        );
}

.monte-seu-imagem img {
    width: 100%;
    height: 100%;

    display: block;
    padding: 8px;

    object-fit: contain;
    object-position: center;
}

.menu-grid .badge {
    padding: 7px 12px;

    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;

    color: #ffffff;
    background: var(--cor-principal);

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        0 5px 14px
        rgba(0, 81, 255, 0.22);
}

.menu-grid h3 {
    margin: 18px 18px 8px;

    color: #292929;

    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
}

.menu-grid > li > p {
    min-height: 66px;

    margin: 0;
    padding: 0 18px;

    color: var(--gray);

    font-size: 14px;
    line-height: 1.55;
}

.menu-grid > li > strong {
    margin:
        auto
        18px
        12px;

    display: block;

    color: var(--cor-principal);

    font-size: 25px;
    font-weight: 900;
}

.menu-grid .btn {
    width: auto;
    min-height: 44px;

    margin:
        0
        18px
        18px;

    padding: 11px 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: var(--cor-principal);

    border: none;
    border-radius: 10px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.menu-grid .btn:hover {
    background: #0048df;
    transform: translateY(-1px);
}

.menu-grid .btn:focus-visible {
    outline:
        3px solid
        rgba(0, 81, 255, 0.25);

    outline-offset: 3px;
}


/* =========================================
   FUNDO DO MODAL
========================================= */

.modal-monte-seu {
    width: 100%;
    height: 100%;

    padding: 20px;

    display: none;
    align-items: center;
    justify-content: center;

    position: fixed;
    inset: 0;
    z-index: 9999;

    background:
        rgba(7, 18, 41, 0.68);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* =========================================
   CONTEÚDO DO PEDIDO
========================================= */

.conteudo-monte-seu {
    width: 100%;
    max-width: 760px;
    max-height: 92vh;

    padding: 30px;

    position: relative;
    overflow-y: auto;

    text-align: left;
    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.28);

    scrollbar-width: thin;
    scrollbar-color:
        #b7c8ee
        transparent;
}

.conteudo-monte-seu::-webkit-scrollbar {
    width: 8px;
}

.conteudo-monte-seu::-webkit-scrollbar-thumb {
    background: #b7c8ee;
    border-radius: 999px;
}


/* =========================================
   CABEÇALHO E ETAPAS
========================================= */

.cabecalho-pedido {
    padding-right: 50px;
}

.cabecalho-pedido h2 {
    margin: 0 0 8px;

    color: #171717;

    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.cabecalho-pedido > p {
    margin: 0;

    color: #606775;

    font-size: 14px;
    line-height: 1.5;
}

.indicador-etapas {
    margin: 24px 0 28px;
    padding: 0;

    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 12px;

    list-style: none;
}

.etapa-indicador {
    min-height: 58px;
    padding: 11px 14px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #666d79;
    background: #f7f9fc;

    border: 1px solid #e2e7ef;
    border-radius: 12px;

    font-size: 13px;
    font-weight: 800;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.etapa-indicador span {
    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    color: #6a7280;
    background: #ffffff;

    border: 1px solid #dbe2ec;
    border-radius: 50%;

    font-size: 14px;
    font-weight: 900;
}

.etapa-indicador.ativa {
    color: var(--cor-principal);
    background: #edf3ff;

    border-color:
        var(--cor-principal);
}

.etapa-indicador.ativa span {
    color: #ffffff;
    background: var(--cor-principal);

    border-color:
        var(--cor-principal);
}

.etapa-indicador.concluida {
    color: #166534;
    background: #f0fdf4;

    border-color: #bbf7d0;
}

.etapa-indicador.concluida span {
    color: #ffffff;
    background: #16a34a;

    border-color: #16a34a;
}


/* =========================================
   PAINÉIS
========================================= */

.painel-pedido {
    display: none;
}

.painel-pedido.ativo {
    display: block;
}

.painel-pedido[hidden] {
    display: none !important;
}


/* =========================================
   BOTÃO FECHAR
========================================= */

.fechar-monte-seu {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;

    color: #555555;
    background: #f1f3f7;

    border: none;
    border-radius: 50%;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.fechar-monte-seu:hover {
    color: #ffffff;
    background: var(--cor-principal);

    transform: rotate(4deg);
}

.fechar-monte-seu:focus-visible {
    outline:
        3px solid
        rgba(0, 81, 255, 0.25);

    outline-offset: 2px;
}


/* =========================================
   GRUPOS DO PEDIDO
========================================= */

.grupo-monte-seu {
    margin-bottom: 24px;
}

.grupo-monte-seu h3 {
    margin: 0 0 13px;

    color: #222222;

    font-size: 17px;
    font-weight: 800;
}

.estrutura-acai {
    padding: 17px;

    background: #f8faff;

    border: 1px solid #e1e7f0;
    border-radius: 12px;
}

.estrutura-acai p {
    margin: 0 0 8px;

    color: #4f5561;

    font-size: 14px;
    line-height: 1.55;
}

.estrutura-acai span {
    color: #687080;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================
   ESCOLHA DO TAMANHO
========================================= */

.opcoes-tamanho-produto {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.opcao-tamanho-produto {
    display: block;
    position: relative;

    cursor: pointer;
}

.opcao-tamanho-produto input {
    width: 1px;
    height: 1px;

    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.opcao-tamanho-produto span {
    min-height: 82px;
    padding: 13px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #333333;
    background: #f8faff;

    border: 2px solid #e1e6ef;
    border-radius: 12px;

    text-align: center;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.opcao-tamanho-produto:hover span {
    border-color:
        var(--cor-principal);

    transform: translateY(-2px);
}

.opcao-tamanho-produto input:checked + span {
    color: var(--cor-principal);
    background: #edf3ff;

    border-color:
        var(--cor-principal);

    box-shadow:
        0 6px 16px
        rgba(0, 81, 255, 0.14);
}

.opcao-tamanho-produto input:focus-visible + span {
    outline:
        3px solid
        rgba(0, 81, 255, 0.2);

    outline-offset: 2px;
}

.opcao-tamanho-produto span strong {
    margin: 0;

    color: inherit;

    font-size: 17px;
    font-weight: 800;
}

.opcao-tamanho-produto span small {
    color: inherit;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================
   COMPLEMENTOS E PAGAMENTO
========================================= */

.lista-complementos {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.lista-complementos label {
    min-height: 46px;
    padding: 10px 12px;

    display: flex;
    align-items: center;
    gap: 9px;

    color: #333333;
    background: #f8faff;

    border: 1px solid #e1e6ef;
    border-radius: 9px;

    font-size: 13px;
    line-height: 1.35;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.lista-complementos label:hover {
    background: #f0f5ff;

    border-color:
        var(--cor-principal);
}

.lista-complementos input {
    width: 17px;
    height: 17px;

    flex-shrink: 0;

    accent-color:
        var(--cor-principal);
}

.opcoes-pagamento label {
    min-height: 50px;

    font-weight: 700;
}


/* =========================================
   SUBTOTAL DA PRIMEIRA ETAPA
========================================= */

.resumo-etapa {
    margin: 8px 0 18px;
    padding: 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    background: #f0f5ff;

    border: 1px solid #d9e4ff;
    border-radius: 12px;
}

.resumo-etapa span {
    color: #222222;

    font-size: 16px;
    font-weight: 700;
}

.resumo-etapa strong {
    color: var(--cor-principal);

    font-size: 24px;
    font-weight: 900;

    white-space: nowrap;
}


/* =========================================
   ENDEREÇO
========================================= */

.dados-entrega {
    padding: 18px;

    background: #f8faff;

    border: 1px solid #e1e7f0;
    border-radius: 12px;
}

.aviso-area-entrega {
    margin: -3px 0 16px;
    padding: 11px 13px;

    color: #4b5563;
    background: #ffffff;

    border: 1px solid #dce5f5;
    border-radius: 9px;

    font-size: 13px;
    line-height: 1.5;
}

.dados-entrega > label,
.linha-entrega label {
    margin-bottom: 12px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    color: #333333;

    font-size: 13px;
    font-weight: 700;
}

.dados-entrega input {
    width: 100%;
    min-height: 44px;

    padding: 10px 12px;

    color: #222222;
    background: #ffffff;

    border: 1px solid #dce1e9;
    border-radius: 9px;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.dados-entrega input:focus {
    border-color:
        var(--cor-principal);

    box-shadow:
        0 0 0 3px
        rgba(0, 81, 255, 0.1);
}

.dados-entrega input[readonly] {
    color: #4b5563;
    background: #eef2f7;

    cursor: not-allowed;
}

.linha-entrega {
    display: grid;

    grid-template-columns:
        1fr
        130px;

    gap: 12px;
}


/* =========================================
   STATUS DO ENDEREÇO
========================================= */

.status-endereco {
    margin-top: 4px;
    padding: 12px 13px;

    color: #4b5563;
    background: #ffffff;

    border: 1px solid #dce1e9;
    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.status-endereco.carregando {
    color: #1d4ed8;
    background: #eff6ff;

    border-color: #bfdbfe;
}

.status-endereco.sucesso {
    color: #166534;
    background: #f0fdf4;

    border-color: #bbf7d0;
}

.status-endereco.erro {
    color: #b91c1c;
    background: #fef2f2;

    border-color: #fecaca;
}


/* =========================================
   RESUMO FINAL
========================================= */

.resumo-pedido-final {
    margin: 4px 0 20px;
    padding: 17px;

    background: #f8faff;

    border: 1px solid #dfe6f2;
    border-radius: 12px;
}

.resumo-pedido-final > div {
    padding: 9px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    color: #3f4651;

    border-bottom: 1px solid #e3e8f0;

    font-size: 14px;
}

.resumo-pedido-final > div:first-child {
    padding-top: 0;
}

.resumo-pedido-final > div:last-child {
    padding-bottom: 0;

    border-bottom: none;
}

.resumo-pedido-final strong {
    color: #222222;

    font-size: 15px;
    font-weight: 800;

    text-align: right;
}

.resumo-pedido-final .linha-total-final {
    margin-top: 5px;
    padding-top: 14px;

    color: #111827;

    font-size: 17px;
    font-weight: 800;
}

.resumo-pedido-final .linha-total-final strong {
    color: var(--cor-principal);

    font-size: 25px;
    font-weight: 900;
}


/* =========================================
   BOTÕES DAS ETAPAS
========================================= */

.btn-continuar-pedido,
#btnEnviarMonteSeu,
#btnVoltarPedido {
    min-height: 49px;

    border-radius: 11px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    cursor: pointer;
}

.btn-continuar-pedido,
#btnEnviarMonteSeu {
    width: 100%;

    color: #ffffff;
    background: var(--cor-principal);

    border: none;
}

.btn-continuar-pedido:hover,
#btnEnviarMonteSeu:hover {
    background: #0048df;
}

#btnEnviarMonteSeu:disabled {
    color: #ffffff;
    background: #8ba9e8;

    cursor: not-allowed;
}

.acoes-etapas {
    display: grid;

    grid-template-columns:
        minmax(130px, 0.45fr)
        minmax(0, 1fr);

    gap: 12px;
}

#btnVoltarPedido {
    width: 100%;

    color: var(--cor-principal);
    background: #ffffff;

    border:
        2px solid
        var(--cor-principal);
}

#btnVoltarPedido:hover {
    background: #edf3ff;
}

.btn-continuar-pedido:focus-visible,
#btnEnviarMonteSeu:focus-visible,
#btnVoltarPedido:focus-visible {
    outline:
        3px solid
        rgba(0, 81, 255, 0.25);

    outline-offset: 3px;
}


/* =========================================
   RESPONSIVIDADE
========================================= */

@media (max-width: 950px) {

    .menu-grid {
        max-width: 760px;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .menu-grid > li:last-child {
        width:
            calc(
                50% - 12px
            );

        grid-column:
            1 / -1;

        justify-self: center;
    }
}


@media (max-width: 700px) {

    .modal-monte-seu {
        padding: 10px;

        align-items: flex-start;
    }

    .conteudo-monte-seu {
        max-height:
            calc(
                100vh - 20px
            );

        padding:
            24px
            18px;

        border-radius: 16px;
    }

    .cabecalho-pedido {
        padding-right: 46px;
    }

    .cabecalho-pedido h2 {
        font-size: 23px;
    }

    .indicador-etapas {
        margin-top: 20px;
    }
}


@media (max-width: 620px) {

    .cardapio {
        padding:
            60px
            18px
            70px;
    }

    .cardapio > h2 {
        font-size: 32px;
    }

    .cardapio > p {
        margin-bottom: 34px;

        font-size: 15px;
    }

    .menu-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .menu-grid > li,
    .menu-grid > li:last-child {
        width: 100%;
        min-height: 410px;

        grid-column: auto;
    }

    .monte-seu-imagem {
        height: 205px;
    }

    .lista-complementos {
        grid-template-columns: 1fr;
    }

    .linha-entrega {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .acoes-etapas {
        grid-template-columns: 1fr;
    }

    #btnVoltarPedido {
        order: 2;
    }

    #btnEnviarMonteSeu {
        order: 1;
    }
}


@media (max-width: 480px) {

    .modal-monte-seu {
        padding: 0;
    }

    .conteudo-monte-seu {
        max-height: 100vh;
        min-height: 100vh;

        padding:
            22px
            15px
            28px;

        border-radius: 0;
    }

    .fechar-monte-seu {
        top: 14px;
        right: 14px;
    }

    .cabecalho-pedido h2 {
        max-width: 250px;

        font-size: 21px;
    }

    .cabecalho-pedido > p {
        font-size: 13px;
    }

    .indicador-etapas {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .etapa-indicador {
        min-height: 50px;
    }

    .opcoes-tamanho-produto {
        grid-template-columns: 1fr;
    }

    .opcao-tamanho-produto span {
        min-height: 62px;
        padding: 11px 14px;

        flex-direction: row;
        justify-content: space-between;
    }

    .grupo-monte-seu {
        margin-bottom: 20px;
    }

    .grupo-monte-seu h3 {
        font-size: 16px;
    }

    .resumo-etapa {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }

    .resumo-pedido-final > div {
        align-items: flex-start;
    }
}