/* ==========================================
   2. CABEÇALHO E NAVEGAÇÃO (HEADER & NAV)
========================================== */

/* Barra de Pesquisa por cima do menu (Efeito Sobreposição) */
.search-container { 
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
    background-color: var(--card-bg); z-index: 200; padding: 0 15px; 
    display: flex; align-items: center; margin: 0; max-width: none; 
}
.search-wrapper { display: flex; align-items: center; border: 2px solid var(--primary-green); border-radius: 8px; overflow: hidden; height: 40px; width: 100%; }
.search-input-box { flex-grow: 1; display: flex; align-items: center; background-color: var(--card-bg); height: 100%; padding: 0 15px; gap: 10px; }
.search-input-box input { border: none; background: transparent; width: 100%; height: 100%; font-size: 15px; color: var(--text-main); outline: none; }
.search-input-box svg { color: var(--text-muted); }
.close-search-btn { background-color: var(--primary-green); color: white; border: none; height: 100%; padding: 0 15px; font-weight: 600; font-size: 14px; cursor: pointer; }

 .search-input-box { background-color: #334155; }
 .search-input-box input { color: #f8fafc; }

/* Banner Edge-to-Edge no Topo Absoluto (Fidelidade) */
.fidelidade-banner {
    background-color: var(--primary-green); color: #ffffff; padding: 8px 20px;
    display: flex; justify-content: flex-end; align-items: center; gap: 12px;
    cursor: pointer; width: 100%; margin: 0; box-shadow: none;
}
.fidelidade-banner.hidden { display: none !important; }
.fidelidade-banner:hover { filter: brightness(0.95); }
.fidelidade-banner-text { text-align: right; display: flex; flex-direction: column; line-height: 1.2; }
.fidelidade-banner-text strong { font-size: 14px; font-weight: 800; }
.fidelidade-banner-text span { font-size: 11px; font-weight: 500; opacity: 0.9; }
.fidelidade-avatar { width: 32px; height: 32px; background: white; color: var(--primary-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; text-transform: uppercase; }

/* Banner de Topo (Imagem) */
.top-banner { width: 100%; height: 250px; background-color: #000; overflow: hidden; transition: height 0.3s;}
.top-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Cabeçalho principal */
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10;}
.header-main-layout { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.store-logo-wrapper { margin-top: -60px; z-index: 10; position: relative; transition: margin-top 0.3s;}
.store-logo { width: 140px; height: 140px; border-radius: 16px; object-fit: cover; border: 4px solid var(--card-bg); background-color: #000; transition: all 0.3s; }

.store-details-wrapper { flex: 1; min-width: 300px; padding-top: 20px; }
.store-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 8px; }
.store-title-row h1 { font-size: 26px; font-weight: 700; transition: font-size 0.3s;}
.store-badges { display: flex; align-items: center; gap: 12px; }

button.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--border-color); border-radius: 15px; font-size: 12px; font-weight: 600; background: transparent; cursor: pointer; color: var(--text-main); transition: 0.3s;}
button.status-badge:hover { background: var(--card-bg); }
 button.status-badge:hover { background-color: #334155; }
.status-closed { color: #ef4444; }

.badge-text { font-size: 13px; color: #eab308; font-weight: 600; }
.badge-star { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.store-info-row { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; display: flex; gap: 15px; transition: justify-content 0.3s;}
.store-info-row strong { color: var(--text-main); }

.header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-top: 20px; transition: all 0.3s;}
.social-icons { display: flex; gap: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); text-decoration: none; transition: background-color 0.2s, border-color 0.3s, color 0.3s; background-color: transparent; }
.social-btn:hover { background: var(--card-bg); }
.info-btn { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 8px; background-color: transparent; font-size: 14px; font-weight: 600; color: var(--text-main); cursor: pointer; transition: background-color 0.2s, border-color 0.3s, color 0.3s; }
.info-btn:hover { background: var(--card-bg); }

 .social-btn,  .info-btn,  .action-btn { background-color: transparent; color: #f8fafc; border-color: #334155;}
 .social-btn:hover,  .info-btn:hover,  .action-btn:hover { background-color: #334155; }

/* Sticky Navigation */
.sticky-nav-wrapper { position: sticky; top: 0; z-index: 100; background-color: var(--card-bg); display: flex; align-items: center; gap: 15px; padding: 15px 20px 0 20px; max-width: 1200px; margin: 20px auto 0 auto; border-bottom: 2px solid var(--border-color); transition: background-color 0.3s, border-color 0.3s;}
 .sticky-nav-wrapper { background-color: #1e293b; border-bottom-color: #334155; }

.nav-actions { display: flex; gap: 8px; padding-bottom: 12px; }
.position-relative { position: relative; }
.action-btn { background: transparent; border: 1px solid var(--border-color); border-radius: 8px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-main); transition: 0.3s;}
.action-btn:hover { background: #f3f4f6; }

.dropdown-wrapper { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 5px); left: 0; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); min-width: 220px; z-index: 200; display: flex; flex-direction: column; transition: 0.3s;}
.dropdown-item { padding: 15px 20px; text-decoration: none; color: var(--text-main); font-size: 15px; border-bottom: 1px solid var(--border-color); transition: background 0.2s; }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background-color: var(--bg-color); color: var(--primary-green); }

 .dropdown-menu { background-color: #1e293b; border-color: #334155; }
 .dropdown-item { color: #f8fafc; border-color: #334155; }
 .dropdown-item:hover { background-color: #334155; color: var(--primary-green); }

/* ==========================================
   BARRA DE CATEGORIAS (MENU OTIMIZADO 100% ESCURO)
========================================== */
.nav-tabs { display: flex; gap: 25px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; width: 100%; }
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tabs a { 
    text-decoration: none; 
    color: var(--text-muted); /* Cor cinza clarinha padrão */
    font-weight: 700; 
    font-size: 14px; 
    padding-bottom: 15px; 
    margin-bottom: -2px; 
    border-bottom: 2px solid transparent; 
    transition: color 0.2s ease, border-color 0.2s ease; 
    text-transform: uppercase; 
}

/* 🔥 O EFEITO MÁGICO AO PASSAR O RATO */
.nav-tabs a:hover { 
    color: var(--primary-green) !important; 
}

/* 🔥 A ABA QUE ESTÁ ATIVA NO MOMENTO */
.nav-tabs a.active { 
    color: var(--primary-green) !important; 
    border-bottom: 2px solid var(--primary-green) !important; 
}
