/* BASE — mobile-first */
.cover {
    position: relative;
    width: 100%;
    height: 80px; /* <768px */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 14px;
    overflow: hidden;
}

/* GRADIENTE ESTILO IFOOD */
.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.0) 40%,
        rgba(0,0,0,0.35) 100%
    );
}

/* >=768px */
@media (min-width: 768px) {
    .cover {
        height: 120px;
    }
}

/* >=992px */
@media (min-width: 992px) {
    .cover {
        height: 160px;
    }
}

/* >=1200px */
@media (min-width: 1200px) {
    .cover {
        height: 200px;
    }
}
.no-select {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Garante que nada da página fique escondido atrás da barra */
body {
  padding-bottom: 70px;
}
.error {
  color: red;
  font-size: 0.9em;
}
.form-label {
font-weight: 600;          /* Negrito */
color: #495057;            /* Cor cinza escura */
font-size: 0.9rem;         /* Um pouco menor que padrão */
text-transform: capitalize; /* Capitaliza a primeira letra de cada palavra */
margin-bottom: 0.25rem;    /* Pequeno espaçamento abaixo */
display: block;
transition: color 0.3s;    /* Transição suave */
}
.form-check-input:checked {
  background-color: orange;
  border-color: orange;
}
.btn-restaurante {
    background: #EA1D2C !important; /* Vermelho iFood */
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 16px !important;

    border: none !important;
    border-radius: 14px !important; /* Cantos arredondados estilo iFood */

    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 rgba(234, 29, 44, 0.35) !important;

    transition: all .2s ease !important;
    -webkit-appearance: none !important; /* obrigatório para iPhone */
}

.btn-restaurante-small {
    background: #EA1D2C !important; /* Vermelho iFood */
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border: none !important;
    border-radius: 14px !important; /* Cantos arredondados estilo iFood */
    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 rgba(234, 29, 44, 0.35) !important;

    transition: all .2s ease !important;
    -webkit-appearance: none !important; /* obrigatório para iPhone */
}

.btn-restaurante:hover {
    background: #d01725 !important; /* Hover mais escuro */
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(234, 29, 44, 0.5) !important;
}

.btn-restaurante:active {
    transform: scale(0.95) !important; /* efeito de clique */
    background: #b81320 !important;
}

.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: #EA1D2C;
    box-shadow: 0 0 6px rgba(234, 29, 44, 0.35);
}

.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;

    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='16' width='16' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 16,0 8,8'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.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;

    /* remove seta */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* remove qualquer background (como sua seta SVG) */
    background-image: none !important;
}

.select-restaurante:focus {
    border-color: #EA1D2C;
    box-shadow: 0 0 6px rgba(234, 29, 44, 0.35);
}

.select-restaurante-login:focus {
    border-color: #EA1D2C;
    box-shadow: 0 0 6px rgba(234, 29, 44, 0.35);
}

.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: #EA1D2C;
    box-shadow: 0 0 6px rgba(234, 29, 44, 0.35);
}

.textarea-restaurante::placeholder {
    color: #aaa;
}


/* =============================== */
/* CHECKBOX ESTILO IFOOD           */
/* =============================== */
.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: #EA1D2C;
    background: #EA1D2C;
}

.check-restaurante:checked::after {
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: -1px;
    left: 4px;
    font-weight: bold;
}


/* =============================== */
/* RADIO ESTILO IFOOD              */
/* =============================== */
.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: #EA1D2C;
}

.radio-restaurante:checked::after {
    content: '';
    width: 12px;
    height: 12px;

    background: #EA1D2C;
    border-radius: 50%;

    position: absolute;
    top: 0px;
    left: 0px;
}

.label-restaurante {
    font-size: 15px;
    font-weight: 600;
    color: #333;

    display: block;
    margin-bottom: 6px;
    margin-top: 12px;

    letter-spacing: 0.2px;

    /* Suavidade e consistência com inputs */
    transition: color 0.2s ease;
}

.label-restaurante.required::after {
    content: " *";
    color: #EA1D2C;
    font-weight: 700;
}

.link-restaurante {
    color: #EA1D2C;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.2s ease;
    cursor: pointer;
}

.link-restaurante:hover {
    color: #c71623;
    text-decoration: underline;
}

.link-restaurante:active {
    color: #a6121d;
    transform: scale(0.98);
}

.link-restaurante:visited {
    color: #EA1D2C;
}

.footer-restaurante {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);

    padding: 14px 20px;
    display: flex;
    justify-content: center;

    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.35);
}

.erro-restaurante {
    display: none;              /* escondida por padrão */
    color: #EA1D2C;             /* vermelho iFood */
    font-size: 13px;
    font-weight: 600;

    margin-top: 4px;
    padding-left: 2px;

    animation: fadeErro 0.25s ease;

    transition: opacity 0.2s ease;
}

/* Quando quiser exibir: adicionar a classe .ativo */
.erro-restaurante.ativo {
    display: block;
}

/* Animação de entrada suave */
@keyframes fadeErro {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Container com rolagem horizontal para mobile */
.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 base */
.tabela-restaurante {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    min-width: 600px;
    border-radius: 12px;
    overflow: hidden;
}

/* Cabeçalho */
.tabela-restaurante thead {
    background: #EA1D2C;
    color: #fff;
}

.tabela-restaurante th {
    padding: 14px 16px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.25px;
}

/* Linhas */
.tabela-restaurante td {
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

/* Zebra */
.tabela-restaurante tr:nth-child(even) {
    background: #fafafa;
}

/* Hover suave */
.tabela-restaurante tbody tr:hover {
    background: #ffecee;
    transition: 0.2s ease;
}

/* Última linha sem borda */
.tabela-restaurante tr:last-child td {
    border-bottom: none;
}

/* Primeira coluna destacada */
.tabela-restaurante td:first-child {
    font-weight: 600;
}

/* Responsividade – fonte reduz em telas pequenas */
@media (max-width: 500px) {
    .tabela-restaurante td,
    .tabela-restaurante th {
        padding: 10px 12px;
        font-size: 14px;
    }
}
/* Container do nav */
.nav-pills.card-header-pills {
    gap: 8px; /* espaçamento entre os itens */
}

/* Link padrão */
.nav-pills .nav-link {
    /*background: #f8f8f8;*/
    color: #333;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    transition: all .2s ease;
}

/* Hover */
.nav-pills .nav-link:hover {
    background: #ffe6e9;
    color: #EA1D2C;
}

/* Ativo (estilo iFood mesmo!) */
.nav-pills .nav-link.active {
    background: #EA1D2C !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(234, 29, 44, 0.35);
}

/* Estado desativado */
.nav-pills .nav-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Fonte — igual à tabela */
.cardapio-restaurante,
.cardapio-restaurante * {
    font-family: 'Inter', sans-serif !important;
}

/* Estilo base de cada item */
.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;
}

/* Zebra effect (linhas alternadas) */
.cardapio-restaurante .list-group-item:nth-child(even) {
    background: #fafafa;
}

/* Hover estilo iFood */
.cardapio-restaurante .list-group-item:hover {
    background: #ffecee !important;
    cursor: pointer;
    /*transform: translateX(2px);*/
}

/* Separador suave entre itens */
.cardapio-restaurante .list-group-item + .list-group-item {
    border-top: 1px solid #f0f0f0;
}
/* Header vermelho + texto branco */
.modal-header.ifood {
    background-color: #EA1D2C;
    color: #fff;
    border-bottom: none; /* opcional */
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* Títulos e textos brancos dentro do header */
.modal-header.ifood .modal-title,
.modal-header.ifood h4,
.modal-header.ifood small {
    color: #fff !important;
}

/* Botão X branco */
.modal-header.ifood .btn-close {
    filter: brightness(0) invert(1); /* transforma em branco */
    position: absolute;
    right: 1rem;
    top: 1rem;
}
.ifood-icon {
    color: #EA1D2C !important;
    font-size: 32px;
    line-height: 1;
}
/* Mantém tudo na mesma linha */
.input-cep {
    white-space: nowrap;
}

/* Input estilo moderno */
.input-cep .input-restaurante {
    border: 2px solid #EA1D2C;
    border-right: none;
    padding: 10px 14px;
    outline: none;
    font-size: 16px;
    flex: 1;
    border-radius: 10px 0 0 10px;
}

/* Botão da lupa no padrão iFood */
.btn-cep {
    background: #EA1D2C;
    color: #fff;
    border: 2px solid #EA1D2C;
    border-radius: 0 10px 10px 0;
    padding: 10px 14px;
    font-size: 18px;
}

.btn-cep:hover {
    background: #c41722;
    border-color: #c41722;
}

.quantidade-control {
            font-size: 22px;
            font-weight: bold;
            cursor: pointer;
            padding: 0 5px;
            user-select: none; /* Impede seleção de texto */
            color: #007bff;
            transition: color 0.2s ease, transform 0.2s ease;
}
.quantidade-control:hover {
    color: #0056b3;
    transform: scale(1.1);
}
.quantidade-control:active {
    transform: scale(0.95);
}

#quantidade {
    font-size: 20px;
    min-width: 35px; /* Garante largura mínima para o número */
    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; }
}
