/* INDEX */
.campo_busca {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    flex: 4;
    gap: 0.8rem;
    box-sizing: border-box;
    min-width: 250px;
}

.icone_carrinho {
    position: fixed;
    bottom: calc(81px + env(safe-area-inset-top));
    right: 12px;
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    height: 48px;
    width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.campo_busca i {
    color: #ccc;
    font-size: 1rem;
}

.campo_busca input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: #666;
    background-color: transparent;
}

.campo_busca input:-webkit-autofill,
.campo_busca input:-webkit-autofill:hover,
.campo_busca input:-webkit-autofill:focus,
.campo_busca input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: rgb(0, 0, 0) !important;
    caret-color: rgb(0, 0, 0) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.card_produto {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.6rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.card_produto_favorito {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.6rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.favoritar {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 20px;
    color: red;
}

.container_produtos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.img_produto {
    width: 90%;
    height: 210px;
    margin: auto;
    object-fit: contain;
}

.div_informacoes_produto {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn_adicionar_produto {
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    padding: 0.5rem 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    font-weight: 500;
}

.select_categorias {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    background-image: url(../img/flecha_select.png);
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px;
    outline: none;
}

.nome_produto {
    font-size: 14px;
}

.preco_produto {
    font-weight: 600;
}

.condicao_promocao {
    font-size: 12px;
    font-weight: 400;
}

.preco_unidade {
    font-weight: 600;
    display: flex;
    gap: 0.2rem;
    font-size: 14px;
    align-items: center;
}

.texto_menor_desconto {
    font-weight: 400;
    font-size: 12px;
}

.container_informacoes_produto {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.container_conteudo_index {
    display: flex;
    flex-direction: column;
    justify-content: start;
    margin: 1rem;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 4.5rem;
}

.div_preco_desconto {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tag_desconto {
    padding: 0.2rem 0.4rem;
    background-color: #45BE6D;
    font-size: 12px;
    color: white;
    border-radius: 6px;
    font-weight: 500;
}

.div_preco_tag_desconto {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.container_banners {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carrossel {
    display: flex;
    gap: 0;
}

.img_banner {
    min-width: 100%;
    height: auto;
    scroll-snap-align: start;
    object-fit: cover;
    border-radius: 0px;
    aspect-ratio: 2 / 1;
}

.div_favoritos {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - .5rem);
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.btn_diminuir_produto {
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    box-sizing: border-box;
}

.btn_somar_produto {
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    box-sizing: border-box;
}

.div_quantidade_produtos {
    display: none;
    align-items: center;
    margin-top: 0.5rem;
    border-radius: 6px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    width: 100%;
}

.texto_quantidade {
    width: 100%;
    text-align: center;
}

.contador_carrinho {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff1900;
    color: rgb(255, 255, 255);
    font-size: 12px;
    height: 20px;
    width: 20px;
    font-weight: 400;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media(max-width: 370px) {
    .container_produtos {
        grid-template-columns: repeat(1, 1fr);
    }

    .card_produto_favorito {
        min-width: 192px;
    }

    .div_favoritos {
        display: flex;
    }
}

/* INDEX */

/* ALERTAS */
.container_comentarios {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.data_alerta {
    align-items: end;
    justify-content: end;
    display: flex;
    margin-top: 0.5rem;
}

.card_comentario {
    background: #ffffff;
    color: #000000;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.card_comentario>span {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

/* ALERTAS */

/* CARRINHO */
.container_conteudo_carrinho {
    min-height: calc(100vh - 136.23px);
    display: flex;
    flex-direction: column;
    justify-content: start;
    margin: 1rem;
    gap: 1.5rem;
}

.nome_produto_carrinho{
    font-size: 14px;
    text-align: center;
}

.secao_opcao {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.opcoes_entrega,
.opcoes_pagamento {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.opcao_radio {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 15px;
}

.campo_observacoes {
    font-size: 14px;
    resize: none;
    min-height: 90px;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    flex: 4;
    gap: 0.8rem;
    box-sizing: border-box;
    min-width: 250px;
    outline: none;
}

.texto_info_pagamento {
    font-size: 13px;
    opacity: .7;
    margin-top: .2rem;
}

.container_carrinho {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.2rem;
}

.btn_finalizar_compra {
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    color: #1b1f2a;
    border: none;
    border-radius: 8px;
    padding: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.card_produto_carrinho {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.6rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    display: flex;
    position: relative;
    box-sizing: border-box;
}

.imagem_produto_carrinho {
    width: 120px;
    height: 160px;
    object-fit: contain;
}

.btn_diminuir_produto_carrinho {
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    box-sizing: border-box;
}

.btn_somar_produto_carrinho {
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    box-sizing: border-box;
}

.texto_quantidade_carrinho {
    text-align: center;
}

.div_vertical_carrinho {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.div_quantidade_produtos_carrinho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    background-color: #EAEFF5;
    border-radius: 6px;
    width: 80%;
}

.cards_opcoes {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.card_opcao {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 2rem 1rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .2s;
    text-align: center;
}

.card_opcao i {
    font-size: 26px;
    margin-bottom: .3rem;
    color: #000000;
}

.card_opcao.selected {
    border-color: #ffcc00;
}

.input_agendamento {
    margin-top: .6rem;
    width: 100%;
    padding: .6rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: none;
    box-sizing: border-box;
}

.texto_alterar_endereco {
    font-size: 13px;
    opacity: .7;
    margin-left: .3rem;
}

.texto_alterar_endereco a {
    color: #ffaa00;
    text-decoration: none;
    font-weight: 600;
}

.endereco_box {
    display: flex;
    gap: .6rem;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 6px;
    align-items: flex-start;
}

.texto_endereco {
    font-size: 15px;
    line-height: 20px;
    color: #1b1f2a;
}

.div_valor_total {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.6rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    display: flex;
    position: relative;
    box-sizing: border-box;
    margin-top: 1rem;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

@media(max-width: 320px) {
    .card_produto_carrinho {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .div_vertical_carrinho {
        width: 100%;
    }
}

/* CARRINHO */

/* PERFIL */
.perfil_header {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.div_foto_perfil {
    position: relative;
}

.div_espaco_perfil {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.div_foto_perfil img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #000000;
    position: relative;
}

.icone_camera {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ffffff;
    color: #1b1f2a;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s ease;
}

.foto_input {
    display: none;
}

.dados_usuario h2 {
    margin: 0;
    font-size: 1.1rem;
}

.dados_usuario span {
    font-size: 0.9rem;
    color: #aaa;
}

.secao_perfil {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.secao_perfil h3 {
    margin-bottom: 0.7rem;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
}

.div_inputs_perfil {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.div_dois_perfil_vertical {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 140px;
}

.div_dois_perfil_vertical span {
    font-size: 14px;
}

.div_dois_perfil_vertical input {
    width: 100%;
    padding: 8px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: white;
    box-sizing: border-box;
}

.div_dois_perfil_vertical input:focus {
    outline: 1px solid #00000070;
}

.acoes_perfil {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn_padrao {
    border: none;
    border-radius: 8px;
    padding: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn_salvar {
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    color: #1b1f2a;
}

.btn_logout {
    background: #212224;
    color: #ffffff;
}

.btn_excluir {
    background: #ff0000;
    color: #ffffff;
}

.linha_dupla {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.linha_dupla .div_dois_perfil_vertical {
    flex: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal.hide {
    opacity: 0;
}

.modal-content {
    background-color: #3F444A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.8rem 1.4rem;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 330px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    animation: fadeInScale 0.3s ease forwards;
    transform: scale(0.9);
    box-sizing: border-box;
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #EAEAEA;
}

.icon-sucesso,
.icon-erro {
    font-size: 52px;
    margin-bottom: 1rem;
}

.icon-sucesso {
    color: #ddb40e;
}

.icon-erro {
    color: #ff4f4f;
}

.btn_modal {
    margin-top: 1rem;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    width: 100%;
    transition: 0.2s ease;
}

.btn_modal_erro {
    background-color: #E53935;
}

.btn_modal_sucesso {
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    color: black;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.87);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* PERFIL */

/* PEDIDOS */
.container_pedidos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.container_conteudo_pedidos {
    min-height: calc(100vh - 136.23px);
    display: flex;
    flex-direction: column;
    justify-content: start;
    margin: 1rem;
    gap: 0.5rem;
}

.card_pedido {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 2px 8px;
    cursor: pointer;
    transition: .2s;
}

.linha_pedido {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: .4rem;
}

.modal_pedido {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.modal_pedido.show {
    display: flex;
}

.modal_content_pedido {
    width: 90%;
    max-width: 450px;
    max-height: 90%;
    overflow: auto;
    background: #fff;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 3px 10px;
}

.titulo_modal_pedido {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.item_resumo {
    margin-bottom: .8rem;
    font-size: 14px;
}

.item_resumo b {
    font-weight: 600;
}

.lista_produtos_resumo {
    background: #f2f2f2;
    padding: .5rem;
    border-radius: 8px;
    margin-top: .4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn_fechar_modal {
    width: 100%;
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    border: none;
    padding: .5rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 0.5rem;
    cursor: pointer;
}

.select_estados_pedidos {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    background-image: url(../img/flecha_select.png);
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px;
    outline: none;
    width: 100%;
}

.div_filtros_pedidos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.status_entregue,
.status_acaminho,
.status_cancelado,
.status_separando {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .3px;
}

.status_entregue {
    background: #2ecc71;
    color: #fff;
}

.status_separando{
    background: #f1c40f;
    color: #fff;
}

.status_acaminho {
    background: #3498db;
    color: #fff;
}

.status_cancelado {
    background: #e74c3c;
    color: #fff;
}
/* PEDIDOS */

/* PRODUTOS DETALHES */
.descricao_produto{
    font-size: 14px;
    font-weight: 500;
}

.texto_descricao{
    font-size: 12px;
    font-weight: 400;
}

.div_relacionados{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - .5rem);
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.card_produto_relacionado {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.6rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}
/* PRODUTOS DETALHES */