/* --- CONFIGURAÇÕES GERAIS iFOOD --- */
:root {
    --ifood-red: #ea1d2c;
    --ifood-red-light: #ffebec;
    --ifood-gray: #717171;
    --ifood-bg-search: #f7f7f7;
    --ifood-text-light: #a6a6a6;
    --ifood-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body.ifood-body {
    background-color: #fcfcfc;
    font-family: var(--ifood-font-family);
}

/* --- ESTILO DESKTOP (iFood Style - image_0.png) --- */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
}

/* Ajuste da logo Twig para desktop */
#logo img {
    max-height: 40px;
    margin-right: 15px;
}

/* Barra de busca arredondada iFood (image_0.png) */
.search-container-ifood {
    max-width: 600px;
}
.search-container-ifood .input-group {
    background-color: var(--ifood-bg-search);
    border-radius: 10px;
    padding: 2px 10px;
    border: 1px solid transparent;
    transition: background-color 0.2s;
}

.search-container-ifood .input-group:focus-within {
    background-color: #fff;
    border-color: #f2f2f2;
}

.search-container-ifood input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 14px;
    color: var(--ifood-gray);
    width: 100% !important;
}

.search-container-ifood input::placeholder {
    color: var(--ifood-text-light);
}

.search-container-ifood button {
    background: transparent !important;
    border: none !important;
    color: var(--ifood-red);
}

/* Ações (Localização, Perfil) */
.location-wrapper, .header-action-link {
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.location-wrapper { color: var(--ifood-gray); }
.header-action-link {
    color: var(--ifood-gray);
    font-weight: 500;
}
.fs-7 { font-size: 11px; }

/* MENU DE CATEGORIAS DESKTOP ({{ menu }}) */
.main-menu {
    background-color: #fff;
    padding: 0 0 10px 0;
    margin-top: -5px; /* Alinha com a busca */
}

/* Estiliza seu menu Twig assumindo <ul><li><a> */
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.main-menu ul li a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 0;
}

.main-menu ul li a:hover, .main-menu ul li a.active {
    color: var(--ifood-red);
    font-weight: 600;
}


/* --- ESTILO MOBILE (Barra Inferior iFood - image_1.png) --- */
@media (max-width: 991px) { /* Esconde no desktop */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #eee;
        z-index: 1050;
        padding: 12px 0 8px 0;
        box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
    }

    .nav-link-custom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--ifood-text-light);
        font-size: 11px;
        transition: 0.1s;
    }

    .nav-link-custom i {
        font-size: 18px;
        margin-bottom: 5px;
    }

    /* Estados ativados (vermelho) */
    .nav-link-custom:active, .nav-link-custom.active, .dropup .show > .nav-link-custom {
        color: #2e2e2e;
        font-weight: bold;
    }

    /* Evita que o rodapé fixo cubra o conteúdo da página */
    body { padding-bottom: 80px; } 

    /* Reset do carrinho do OpenCart no mobile */
    #cart-mobile button {
        background: none !important;
        border: none !important;
        color: var(--ifood-text-light);
        font-size: 11px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #cart-mobile i { font-size: 18px; margin-bottom: 5px; }
}

/* Bolinha vermelha de notificação no Perfil */
.profile-icon {
    position: relative;
}
.badge-profile {
    position: absolute;
    top: -2px;
    right: 22%;
    width: 6px;
    height: 6px;
    background-color: var(--ifood-red);
    border-radius: 50%;
}