/* ============================================================
   estiloPedidos.css — BASE COM VARIÁVEIS DE TEMA
   Para alterar o tema, adicione a classe no <body>:
   <body class="tema-acai"> ou <body class="tema-pizza"> etc.
   ============================================================ */

/* ── Tema padrão (iFood) ── */
:root {
    --cor-primaria:     #EA1D2C;
    --cor-primaria-rgb: 234, 29, 44;
    --cor-hover:        #d01725;
    --cor-active:       #b81320;
    --cor-hover-bg:     #ffecee;
    --cor-hover-nav:    #ffe6e9;
    --cor-icon-bg:      #fff0f1;
    --cor-sombra:       rgba(234, 29, 44, 0.35);
    --cor-sombra-forte: rgba(234, 29, 44, 0.5);
}

/* =============================== */
/* COVER — ajustes                 */
/* =============================== */
.cover {
    position: relative;
    width: 100%;
    height: 140px;                  /* era 100px */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 14px;
    overflow: hidden;
}

/* Gradiente agora cobre mais a parte inferior para garantir
   legibilidade do nome/categoria independente da imagem */
.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.0) 30%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
}

@media (min-width: 768px)  { .cover { height: 160px; } }
@media (min-width: 992px)  { .cover { height: 180px; } }
@media (min-width: 1200px) { .cover { height: 200px; } }

/* ── Logo dentro da cover ── */
.cover-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    width: 72px;
    height: 72px;
}
.cover-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    display: block;
}

@media (min-width: 768px) {
    .cover-logo       { width: 80px; height: 80px; }
    .cover-logo img   { border-radius: 16px; }
}
@media (min-width: 992px) {
    .cover-logo       { width: 90px; height: 90px; }
    .cover-logo img   { border-radius: 18px; }
}

/* ── Badges (Aberto/Fechado + Info): superior direito ── */
.cover-badges {
    position: absolute;
    top: 20px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Nome e categoria: inferior esquerdo ── */
.cover-loja-info {
    position: absolute;
    bottom: 12px;
    left: 20px;
    right: 16px;        /* ← isso que faltava */
    z-index: 2;
}

.cover-loja-nome {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 1px 3px rgba(0,0,0,0.9),
        0 2px 8px rgba(0,0,0,0.7),
        1px 1px 0   rgba(0,0,0,0.5),
        -1px -1px 0 rgba(0,0,0,0.3);
}

.cover-loja-sub {
    margin: 3px 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 1px 3px rgba(0,0,0,0.9),
        0 2px 6px rgba(0,0,0,0.7);
}

@media (min-width: 768px) {
    .cover-loja-nome { font-size: 17px; }
    .cover-loja-sub  { font-size: 12px; }
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body {
    padding-bottom: 70px;
}

.error {
    color: red;
    font-size: 0.9em;
}

.form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: capitalize;
    margin-bottom: 0.25rem;
    display: block;
    transition: color 0.3s;
}

.form-check-input:checked {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
}

/* =============================== */
/* BOTÕES                          */
/* =============================== */
.btn-restaurante {
    background: var(--cor-primaria) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 12px 20px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: 0 4px 12px var(--cor-sombra) !important;
    transition: all .2s ease !important;
    -webkit-appearance: none !important;
}

.btn-restaurante-small {
    background: var(--cor-primaria) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 8px 12px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: 0 4px 12px var(--cor-sombra) !important;
    transition: all .2s ease !important;
    -webkit-appearance: none !important;
}

.btn-restaurante:hover {
    background: var(--cor-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px var(--cor-sombra-forte) !important;
}

.btn-restaurante:active {
    transform: scale(0.95) !important;
    background: var(--cor-active) !important;
}

.btn-fechado {
    background: var(--cor-primaria) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 12px 20px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: 0 4px 12px var(--cor-sombra) !important;
    transition: all .2s ease !important;
    -webkit-appearance: none !important;
}

/* ── Status Aberto ── */
.btn-aberto {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #43a047;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition: background .2s;
}
.btn-aberto::before {
    content: '';
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    flex-shrink: 0;
}
.btn-aberto:hover { background: #388e3c; }
 
/* ── Status Fechado ── */
.btn-lojafechado {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition: background .2s;
}
.btn-lojafechado::before {
    content: '';
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    flex-shrink: 0;
}
.btn-lojafechado:hover { background: #c62828; }

/* ── Info ── */
/* ── Ver mais ── */
.btn-info {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background .2s, border-color .2s;
}
.btn-info:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* ── Variações de tamanho ── */
.btn-aberto.sm, .btn-lojafechado.sm {
    padding: .28rem .7rem;
    font-size: .68rem;
}
.btn-aberto.sm::before, .btn-lojafechado.sm::before {
    width: 5px; height: 5px;
}

/* ── Animação ponto verde ── */
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 2px #c8e6c9; }
    50%       { box-shadow: 0 0 0 4px #a5d6a7; }
}

/* =============================== */
/* INPUTS                          */
/* =============================== */
.input-restaurante {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.25s ease;
    outline: none;
}
.input-restaurante:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 6px var(--cor-sombra);
}
.input-restaurante::placeholder { color: #aaa; }

.select-restaurante {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.25s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.select-restaurante:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 6px var(--cor-sombra);
}

.select-restaurante-login {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
}
.select-restaurante-login:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 6px var(--cor-sombra);
}

.textarea-restaurante {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    resize: vertical;
    transition: all 0.25s ease;
    outline: none;
}
.textarea-restaurante:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 6px var(--cor-sombra);
}
.textarea-restaurante::placeholder { color: #aaa; }

/* =============================== */
/* CHECKBOX                        */
/* =============================== */
.check-restaurante {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
}
.check-restaurante:checked {
    border-color: var(--cor-primaria);
    background: var(--cor-primaria);
}
.check-restaurante:checked::after {
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: -1px;
    left: 4px;
    font-weight: bold;
}

/* =============================== */
/* RADIO                           */
/* =============================== */
.radio-restaurante {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
}
.radio-restaurante:checked {
    border-color: var(--cor-primaria);
}
.radio-restaurante:checked::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--cor-primaria);
    border-radius: 50%;
    position: absolute;
    top: 0px;
    left: 0px;
}

/* =============================== */
/* LABELS E LINKS                  */
/* =============================== */
.label-restaurante {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
    margin-top: 12px;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}
.label-restaurante.required::after {
    content: " *";
    color: var(--cor-primaria);
    font-weight: 700;
}

.link-restaurante {
    color: var(--cor-primaria);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.link-restaurante:hover  { color: var(--cor-hover); text-decoration: underline; }
.link-restaurante:active { color: var(--cor-active); transform: scale(0.98); }
.link-restaurante:visited { color: var(--cor-primaria); }

/* =============================== */
/* FOOTER                          */
/* =============================== */
.footer-restaurante {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.35);
}

/* =============================== */
/* ERROS                           */
/* =============================== */
.erro-restaurante {
    display: none;
    color: var(--cor-primaria);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    padding-left: 2px;
    animation: fadeErro 0.25s ease;
    transition: opacity 0.2s ease;
}
.erro-restaurante.ativo { display: block; }

@keyframes fadeErro {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================== */
/* TABELA                          */
/* =============================== */
.tabela-restaurante-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}
.tabela-restaurante {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    min-width: 600px;
    border-radius: 12px;
    overflow: hidden;
}
.tabela-restaurante thead {
    background: var(--cor-primaria);
    color: #fff;
}
.tabela-restaurante th {
    padding: 14px 16px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.25px;
}
.tabela-restaurante td {
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.tabela-restaurante tr:nth-child(even) { background: #fafafa; }
.tabela-restaurante tbody tr:hover {
    background: var(--cor-hover-bg);
    transition: 0.2s ease;
}
.tabela-restaurante tr:last-child td { border-bottom: none; }
.tabela-restaurante td:first-child { font-weight: 600; }

@media (max-width: 500px) {
    .tabela-restaurante td,
    .tabela-restaurante th { padding: 10px 12px; font-size: 14px; }
}

/* =============================== */
/* NAV PILLS                       */
/* =============================== */
.nav-pills.card-header-pills { gap: 8px; }

.nav-pills .nav-link {
    color: #333;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    transition: all .2s ease;
}
.nav-pills .nav-link:hover {
    background: var(--cor-hover-nav);
    color: var(--cor-primaria);
}
.nav-pills .nav-link.active {
    background: var(--cor-primaria) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 3px 10px var(--cor-sombra);
}
.nav-pills .nav-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =============================== */
/* CARDÁPIO                        */
/* =============================== */
.cardapio-restaurante,
.cardapio-restaurante * { font-family: 'Inter', sans-serif !important; }

.cardapio-restaurante .list-group-item {
    background: #fff;
    border: none;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: background .25s ease, transform .15s ease;
}
.cardapio-restaurante .list-group-item:nth-child(even) { background: #fafafa; }
.cardapio-restaurante .list-group-item:hover {
    background: var(--cor-hover-bg) !important;
    cursor: pointer;
}
.cardapio-restaurante .list-group-item + .list-group-item {
    border-top: 1px solid #f0f0f0;
}

/* =============================== */
/* MODAL                           */
/* =============================== */
.modal-header.ifood {
    background-color: var(--cor-primaria);
    color: #fff;
    border-bottom: none;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.modal-header.ifood .modal-title,
.modal-header.ifood h4,
.modal-header.ifood small { color: #fff !important; }

.modal-header.ifood .btn-close {
    filter: brightness(0) invert(1);
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.ifood-icon {
    color: var(--cor-primaria) !important;
    font-size: 32px;
    line-height: 1;
}

/* =============================== */
/* CEP                             */
/* =============================== */
.input-cep { white-space: nowrap; }
.input-cep .input-restaurante {
    border: 2px solid var(--cor-primaria);
    border-right: none;
    padding: 10px 14px;
    outline: none;
    font-size: 16px;
    flex: 1;
    border-radius: 10px 0 0 10px;
}
.btn-cep {
    background: var(--cor-primaria);
    color: #fff;
    border: 2px solid var(--cor-primaria);
    border-radius: 0 10px 10px 0;
    padding: 10px 14px;
    font-size: 18px;
}
.btn-cep:hover {
    background: var(--cor-hover);
    border-color: var(--cor-hover);
}

/* =============================== */
/* QUANTIDADE                      */
/* =============================== */
.quantidade-control {
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    user-select: none;
    color: var(--cor-primaria);
    transition: color 0.2s ease, transform 0.2s ease;
}
.quantidade-control:hover {
    color: var(--cor-hover);
    transform: scale(1.1);
}
.quantidade-control:active { transform: scale(0.95); }

#quantidade {
    font-size: 20px;
    min-width: 35px;
    text-align: center;
    color: #333;
}

/* =============================== */
/* ANIMAÇÕES                       */
/* =============================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ── demo layout ── */
.demo { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.demo-label {
    font-family: 'DM Mono', monospace;
    font-size: .65rem;
    color: #aaa;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .2rem;
}
.demo-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.card-demo {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-width: 280px;
}
.card-demo-name { font-size: .9rem; font-weight: 600; color: #1a1a1a; }
.card-demo-sub  { font-size: .75rem; color: #999; margin-top: .15rem; }

.cover-loja-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.cover-loja-detalhes {
    text-align: right;
    flex-shrink: 0;
}

.cover-loja-detalhes .cover-loja-sub {
    margin: 0;
    line-height: 1.6;
}