﻿:root {
    --bg: #f6f7f9;
    --card: #ffffff;
    --muted: #7a7f85;
    --accent: #1e90a8;
    --green: #2db85b;
    --border: #e6e9ee;
    --radius: 12px;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    --cor-empresa: #2779c1;
}

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container centralizado e responsivo */
.wrap {
    width: 100%;
    margin: 18px auto;
    background: #ececec;
    padding: 0 12px;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .wrap {
        max-width: 420px;
    }
}

.panel {
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20,30,40,0.06);
    overflow: hidden;
    /*border: 1px solid var(--border);*/
}

/* Search bar */
.search {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
}

.search-wrapper {
    position: relative;
    width: 100%;
}

    .search-wrapper input {
        width: 100%;
        height: 40px;
        padding: 0 12px 0 40px; /* espaço para a lupa à esquerda */
        border-radius: 10px;
        border: 1px solid #e9edf2;
        background: transparent;
        outline: none;
        font-size: 14px;
        box-sizing: border-box;
    }

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}


/* top small cards */
.top-cards {
    display: flex;
    gap: 10px;
    padding: 10px;
    /*border-bottom: 1px solid var(--border);*/
    background: linear-gradient(180deg,#fff, #fbfdff);
}

.top-card {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #f0f3f6;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .top-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 12px rgba(25,40,60,0.06);
    }

    .top-card .txt {
        font-size: 13px;
        color: var(--muted);
        line-height: 1.05
    }

    .top-card .strong {
        font-weight: 700;
        color: #222;
        font-size: 13px
    }

.cart-bubble {
    margin-left: auto;
    /*background: var(--accent);
    color: #fff;*/
    background: transparent;
    color: #1480b3;
    padding: 6px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
}

/* tabs */
.tabs {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    /*border-bottom: 1px solid var(--border);*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 8px 12px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all .12s ease;
}

    .tab.active {
        background: linear-gradient(90deg,var(--card),#f6fbfc);
        color: var(--cor-empresa);
        box-shadow: inset 0 -3px 0 rgba(30,144,168,0.06);
    }

/* list */
.list {
    max-height: 64vh;
    overflow: auto;
    padding: 5px 0px;
    margin-top: 5px;
    background: #e3e3e3;
}

.item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.92));
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

    .item + .item {
        margin-top: 4px;
    }

    .item .meta {
        flex: 1;
    }

    .item h4 {
        margin: 0 0 6px 0;
        font-size: 16px;
        color: #111;
    }

    .item p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        margin-bottom: 8px;
    }

.price {
    color: var(--green);
    font-weight: 700;
    margin-top: 6px;
    font-size: 15px;
}

.thumb {
    width: 88px;
    height: 66px;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(10,10,20,0.04);
}

/* responsive tweaks */
@media (max-width:420px) {
    .thumb {
        width: 78px;
        height: 60px;
    }

    .top-cards {
        gap: 8px
    }
}

/* subtle hover for items */
.item:hover {
    transform: translateY(-4px);
    transition: transform .12s ease;
    box-shadow: 0 8px 18px rgba(15,25,40,0.06)
}

/* empty state */
.empty {
    padding: 24px;
    text-align: center;
    color: var(--muted)
}

/* small utilities */
.muted {
    color: var(--muted);
    font-size: 9px
}

.loja-header {
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    /*box-shadow: 0 6px 16px rgba(0,0,0,0.05);*/
    margin-bottom: 16px;
}

.loja-banner-top img {
    width: 100%;
    height: auto;
    display: block;
}

.loja-header-info {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center; /* centraliza os filhos */
    text-align: center;
}

.loja-logo-round {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: -45px;
    background: #fff;
    border: 3px solid #fff;
}

.loja-header-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin: 12px 0 6px;
}

.loja-open-date {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.loja-status {
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 20px;
    margin-top: 6px;
}

.loja-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f2f2f2; /* verde bem claro */
    color: #2e7d32;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    margin: 14px auto 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: background 0.3s ease;
    width: fit-content;
}

    .loja-status .dot-online {
        width: 10px;
        height: 10px;
        background-color: #34c759; /* verde vibrante iOS-like */
        border-radius: 50%;
    }

.ver-horarios {
    font-size: 13px;
    color: var(--cor-empresa);
    text-decoration: none;
    border-bottom: 1px dashed #1e88e5;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    cursor: pointer;
}

    .ver-horarios:hover {
        color: #0d47a1;
        border-bottom: 1px solid #0d47a1;
    }


/*@media (max-width: 768px) {
    .modal-dialog {
        margin: 0 !important; 
        max-width: 100vw !important;
        width: 100vw !important;
        height: 100vh !important;
    }

    .modal-content {
        border-radius: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        overflow-y: auto;
    }

    .modal-body {
        overflow-y: auto;
        flex: 1 1 auto;
        padding: 1rem !important; 
    }

    .modal-header,
    .modal-footer {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}*/

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0 !important;
        max-width: 100vw !important;
        width: 100vw !important;
        height: 100dvh !important; /* Altura dinâmica corrige iOS Safari */
        display: flex;
        flex-direction: column;
    }

    .modal-content {
        border-radius: 0 !important;
        width: 100% !important;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        overflow-y: auto !important;
        flex: 1 1 auto;
        padding: 1rem !important;
    }

    .modal-header,
    .modal-footer {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Garante que o botão no footer não fique escondido */
    .modal-footer {
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 10;
    }
}




.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-header {
    background-color: #5a6268;
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 16px 24px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: none;
    padding: 16px;
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: #333;
}

    .table thead th {
        border-bottom: 2px solid #dee2e6;
        font-weight: 600;
    }

    .table tbody td, .table tbody th {
        padding: 10px;
        vertical-align: middle;
        border-top: 1px solid #dee2e6;
    }

.btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
}

    .btn-secondary:hover {
        background-color: #5a6268;
    }


.loja-status.aberto {
    color: #1aae2a;
    font-weight: 600;
}

.loja-status.fechado {
    color: #ff0000;
    font-weight: 600;
}

.dot-online, .dot-offline {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.dot-online {
    background-color: #1aae2a;
}

.dot-offline {
    background-color: #ff0000;
}



/* Estilizando o select */
.form-select {
    width: 100%; /* Define a largura do select */
    padding: 10px 15px; /* Adiciona espaço interno */
    border: 1px solid #ccc; /* Borda leve e arredondada */
    border-radius: 8px; /* Borda arredondada */
    background-color: #fff; /* Fundo branco */
    color: #333; /* Cor do texto */
    font-size: 16px; /* Tamanho da fonte */
    font-family: Arial, sans-serif; /* Fonte */
    transition: border-color 0.3s, box-shadow 0.3s; /* Efeito de transição suave */
}

    /* Foco no select */
    .form-select:focus {
        border-color: #007bff; /* Borda azul ao focar */
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* Efeito de sombra */
        outline: none; /* Remove o contorno padrão */
    }

    /* Estilizando as opções */
    .form-select option {
        padding: 10px; /* Espaçamento nas opções */
        font-size: 16px; /* Tamanho da fonte */
    }

        /* Estilo para o primeiro item */
        .form-select option:first-child {
            color: #999; /* Cor mais clara para o primeiro item */
        }

        /* Mudando a cor ao passar o mouse */
        .form-select option:hover {
            background-color: #f1f1f1; /* Cor de fundo ao passar o mouse */
        }

/* Adiciona um ícone de seta personalizada */
.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"%3E%3Cpath d="M7.5 3L4 6.5 0.5 3" stroke="%23333" stroke-width="1.5" fill="none" stroke-linecap="round" /%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}


/*MODAL DO HORARIOS*/

/* Escopo apenas para o modal de horários */
#myModalHorarios .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', sans-serif;
}

#myModalHorarios .modal-header {
    border-bottom: none;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
}

#myModalHorarios .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

#myModalHorarios .modal-body {
    padding: 1rem 1.5rem;
    background-color: #ffffff;
}

#myModalHorarios table.table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

#myModalHorarios table thead th {
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.95rem;
    color: #666;
    text-align: left;
    padding: 8px;
}

#myModalHorarios table tbody th,
#myModalHorarios table tbody td {
    padding: 10px 8px;
    font-size: 1rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

#myModalHorarios .modal-footer {
    border-top: none;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
}

#myModalHorarios .btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    color: #fff;
    transition: background-color 0.2s ease-in-out;
}

    #myModalHorarios .btn-secondary:hover {
        background-color: #5a6268;
    }

.modal.modal-bottoms .modal-dialog {
    position: fixed;
    bottom: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.modal.modal-bottoms.show .modal-dialog {
    transform: translateY(0);
}


@media (max-width: 768px) {
    .modal.modal-bottoms .modal-dialog {
        /*margin: 0 !important;
        max-width: 100vw !important;
        width: 100vw !important;
        height: 100dvh !important;*/ /* Altura dinâmica corrige iOS Safari */
        /*display: flex;
        flex-direction: column;*/

        bottom: 0;
        margin: 0;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }

    .modal.modal-bottoms.show .modal-dialog {
        transform: translateY(0);
    }

    #myModalHorarios .modal-content {
        border-radius: 12px 12px 0 0;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
    }

    body.modal-open {
        overflow: hidden;
    }
}


/* Centraliza o título */
#myModalHorarios .modal-title {
    text-align: center;
    width: 100%;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

/* Remove a tabela antiga */
#myModalHorarios table {
    display: none;
}

/* Estilo para as linhas de horário */
.horario-body {
    padding: 1rem 1.5rem;
    background-color: #fff;
}

.horario-linha {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: #333;
}

    .horario-linha strong {
        font-weight: 600;
        color: #000;
        min-width: 100px;
    }

    .horario-linha span {
        text-align: right;
        flex-grow: 1;
        padding-left: 10px;
    }


/*.floating-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #2779c1;
    color: #fff;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 9999;
    border-radius: 0;
}

    .floating-cart .cart-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .floating-cart strong {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
    }

#cartDescText {
    font-size: 13px;
    line-height: 1.2;
}

.floating-cart .cart-right {
    font-size: 14px;
    font-weight: bold;
}


@media (max-width: 600px) {
    .floating-cart {
        height: 48px;
        padding: 0 12px;
    }

        .floating-cart strong {
            font-size: 13px;
        }

    #cartDescText {
        font-size: 12px;
    }

    .floating-cart .cart-right {
        font-size: 13px;
    }
}










.modal-bottom {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    z-index: 1055;
}

    .modal-bottom .modal-dialog {
        margin: 0 auto;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .modal-bottom .modal-content {
        border-radius: 16px 16px 0 0;
        border: none;
        background: #fff;
        padding: 20px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
        max-height: 80vh;
        overflow-y: auto;
    }
.modal.show .modal-dialog {
    transform: none !important;
}


#modalCarrinho {
    z-index: 10010 !important;
}




.titulo-pedido {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.item-carrinho {
    margin-bottom: 20px;
}

.detalhes-item {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}

.nome {
    font-size: 15px;
    color: #333;
}

.preco {
    font-size: 15px;
    color: #333;
}

.acoes-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controle-qtd {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .controle-qtd input[type="number"] {
        width: 45px;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 4px;
    }

.btn-qtd {
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.remover {
    background: none;
    border: none;
    color: #ff6f6f;
    font-weight: bold;
    cursor: pointer;
}

hr {
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.total-container {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
}

.botoes-carrinho {
    display: flex;
    gap: 10px;
}

.btn-voltar {
    flex: 1;
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-finalizar {
    flex: 1;
    background: #2779c1;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
*/

.floating-cart {
    z-index: 9999;
}

.floating-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    /*background-color: #2779c1;*/
    background-color: var(--cor-empresa);
    color: #fff;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 9999;
    border-radius: 0;
}

    .floating-cart .cart-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 50px; /* garantir alinhamento vertical */
    }

    .floating-cart strong {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
    }

#cartDescText {
    font-size: 13px;
    line-height: 1.2;
}

.floating-cart .cart-right {
    flex-shrink: 0; /**/
    font-size: 14px;
    font-weight: bold;
}


@media (max-width: 600px) {
    .floating-cart {
        height: 48px;
        padding: 0 12px;
    }

        .floating-cart strong {
            font-size: 13px;
        }

    #cartDescText {
        font-size: 12px;
    }

    .floating-cart .cart-right {
        font-size: 13px;
    }
}










.modal-bottom {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    z-index: 1055;
}

    .modal-bottom .modal-dialog {
        margin: 0 auto;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .modal-bottom .modal-content {
        border-radius: 16px 16px 0 0;
        border: none;
        background: #fff;
        padding: 20px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
        max-height: 80vh;
        overflow-y: auto;
    }

.modal.show .modal-dialog {
    transform: none !important;
}


#modalCarrinho {
    z-index: 10010 !important;
}


/* AGORA O CONTEUDO */

.titulo-pedido {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.item-carrinho {
    margin-bottom: 20px;
}

.detalhes-item {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}

.nome {
    font-size: 15px;
    color: #333;
}

.preco {
    font-size: 15px;
    color: #333;
}

.acoes-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controle-qtd {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .controle-qtd input[type="number"] {
        width: 45px;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 4px;
    }

.btn-qtd {
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.remover {
    background: none;
    border: none;
    color: #ff6f6f;
    font-weight: bold;
    cursor: pointer;
}

hr {
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.total-container {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
}

.botoes-carrinho {
    display: flex;
    gap: 10px;
}

.btn-voltar {
    flex: 1;
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-finalizar {
    flex: 1;
    background: var(--cor-empresa);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

