
:root {
    --ifood-red: #ea1d2c;
    --ifood-gray: #717171;
    --ifood-light-gray: #f2f2f2;
    --ifood-dark: #3e3e3e;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: #fff;
    padding-top: 80px; /* Compensa o header fixo */
}

/* HEADER GERAL */
header {
    background: #fff;
    border-bottom: 1px solid var(--ifood-light-gray);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ENDEREÇO ESTILO IFOOD */
.address-selector {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    max-width: 550px;
    transition: var(--transition);
}

.address-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ifood-gray);
    margin-bottom: -2px;
}

.address-current {
    font-size: 14px;
    font-weight: 700;
    color: var(--ifood-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

.address-current i {
    color: var(--ifood-red);
    font-size: 12px;
}

/* BUSCA DESKTOP */
.search-container {
    flex: 1;
    max-width: 500px;
}

#search {
    border-radius: 8px;
    background-color: #f7f7f7;
}


#search .input-group {
    background: var(--ifood-light-gray);
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 4px 12px;
    transition: var(--transition);
}

#search .input-group:focus-within {
    background: #fff;
    border-color: var(--ifood-red);
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.1);
}

#search input {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 14px;
    color: var(--ifood-dark);
}


#search .btn-lg {
    background: transparent;
    border: none;
    color: var(--ifood-red);
}
#search:focus-within {
    border: 2px solid #dbdbdb; /* Cor da borda quando focado (ex: azul) */
    border-radius: 8px;
}

/* AÇÕES (PERFIL E CARRINHO) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--ifood-gray);
    text-decoration: none;
}

.user-profile-btn:hover {
    background-color: var(--ifood-light-gray);
    color: var(--ifood-red);
}

.user-profile-btn i { font-size: 20px; }
.user-profile-btn span { font-weight: 600; font-size: 14px; }

/* MENU INFERIOR MOBILE */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    display: none;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--ifood-light-gray);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ifood-gray);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 10px;
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item:active {
    transform: scale(0.9);
    color: var(--ifood-red);
}

.nav-item.active {
    color: var(--ifood-dark);
}

/* AJUSTES MOBILE */
@media (max-width: 990px) {
    body { padding-top: 70px; padding-bottom: 70px; }
    .bottom-nav { display: flex; }
    .search-container, #account_menu, #instagram_logo, #div-whatsapp-button { display: none !important; }

    
    .header-row {
        justify-content: flex-start;
        gap: 15px;
        padding: 0 10px 0px 10px;
    }

    .logo-wrapper img { max-height: 50px; }
    
    .address-selector {
        flex: 1;
        /* Centraliza o container do seletor */
        display: flex !important;
        align-items: end !important;
        justify-content: end !important;
    }

    .address-current {
        /* Centraliza o texto e o ícone internamente */
        justify-content: end !important;
        width: 100%;
        text-align: end;
    }
    
    
    .address-text-mobile {
    font-size: 13px;
    font-weight: 700;
    }
}

/* MODAL SEARCH */
.modal-full-search .modal-content {
    border: none;
    border-radius: 0;
    height: 100vh;
}

.modal-header .btn-close {
    color: var(--ifood-red);
    opacity: 1;
}

/* ANIMATIONS */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


#ifood-search-fix .mb-3 {
    margin-bottom: 0 !important;
}