/* ── Reset / base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f5f4f0;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* ── Barra topo (anúncio/entrega) ───────────────── */
.topbar {
    background: #860bab;
    color: rgba(255,255,255,.7);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .02em;
    padding: .4rem 0;
    text-align: center;
}

.topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ── Navbar ─────────────────────────────────────── */
.site-navbar {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.07);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 64px;
    padding: 0 1rem;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

/* logo */
.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -.4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo:hover { color: #1a1a1a; }

/* links centrais */
.nav-links {
    display: flex;
    align-items: center;
    gap: .15rem;
    flex-shrink: 0;
}

.nav-link-item {
    font-size: .82rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    padding: .4rem .75rem;
    border-radius: 8px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.nav-link-item:hover,
.nav-link-item.active { background: #f0efeb; color: #1a1a1a; }

/* search */
.nav-search {
    flex: 1;
    min-width: 0;
    max-width: 400px;
    margin: 0 auto;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: #f5f4f0;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 30px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.nav-search-form:focus-within {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26,26,26,.07);
    background: #fff;
}

.nav-search-input {
    flex: 1; border: none; background: transparent;
    font-size: .82rem; font-family: 'Plus Jakarta Sans', sans-serif;
    padding: .52rem 1rem; color: #1a1a1a; min-width: 0;
}

.nav-search-input:focus { outline: none; }
.nav-search-input::placeholder { color: #bbb; }

.nav-search-btn {
    background: none; border: none; cursor: pointer;
    padding: 0 .85rem; color: #888; font-size: .9rem;
    display: flex; align-items: center;
    transition: color .15s;
}

.nav-search-btn:hover { color: #1a1a1a; }

/* ações */
.nav-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.nav-icon-btn {
    position: relative;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: transparent;
    color: #555; text-decoration: none;
    font-size: 1.1rem;
    transition: background .15s, color .15s, transform .15s;
}

.nav-icon-btn:hover { background: #f0efeb; color: #1a1a1a; transform: translateY(-1px); }

.nav-badge {
    position: absolute; top: 3px; right: 3px;
    min-width: 16px; height: 16px;
    background: #e11d48; color: #fff;
    font-size: .58rem; font-weight: 800;
    border-radius: 30px; padding: 0 .3rem;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; border: 1.5px solid #fff;
}

.nav-btn {
    font-size: .77rem; font-weight: 700;
    border-radius: 30px; padding: .38rem .9rem;
    text-decoration: none; white-space: nowrap;
    transition: background .15s, color .15s, transform .15s, box-shadow .15s;
    display: inline-flex; align-items: center; gap: .3rem;
}

.nav-btn-outline {
    color: #1a1a1a;
    border: 1.5px solid rgba(0,0,0,.15);
    background: transparent;
}

.nav-btn-outline:hover { background: #f0efeb; color: #1a1a1a; border-color: rgba(0,0,0,.25); }

.nav-btn-solid {
    background: #1a1a1a; color: #fff; border: 1.5px solid #1a1a1a;
    box-shadow: 0 4px 12px rgba(26,26,26,.2);
}

.nav-btn-solid:hover { background: #333; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(26,26,26,.25); }

/* separador vertical */
.nav-sep { width: 1px; height: 22px; background: rgba(0,0,0,.1); }

/* ── Hamburger (mobile) ─────────────────────────── */
.nav-hamburger {
    display: none;
    width: 38px; height: 38px;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; background: none; border: none; cursor: pointer; padding: 0;
    border-radius: 8px; transition: background .15s;
}

.nav-hamburger:hover { background: #f0efeb; }

.ham-line {
    width: 22px; height: 2px; background: #1a1a1a; border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.nav-hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open .ham-line:nth-child(2) { opacity: 0; }
.nav-hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menu mobile drawer ─────────────────────────── */
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(3px);
    z-index: 1029;
}

.mobile-drawer.open { display: block; }

.mobile-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 90vw);
    background: #fff;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    animation: slideIn .22s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.mobile-panel .mob-link {
    display: flex; align-items: center; gap: .6rem;
    font-size: .88rem; font-weight: 600; color: #1a1a1a;
    text-decoration: none; padding: .75rem .5rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
    transition: color .15s;
}

.mobile-panel .mob-link:last-child { border-bottom: none; }
.mobile-panel .mob-link:hover { color: #555; }
.mobile-panel .mob-link i { font-size: 1.1rem; color: #aaa; width: 22px; text-align: center; }

.mobile-search-wrap {
    margin-bottom: 1.25rem;
}

.mobile-search-form {
    display: flex; align-items: center;
    background: #f5f4f0; border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 12px; overflow: hidden;
}

.mobile-search-input {
    flex: 1; border: none; background: transparent;
    font-size: .83rem; font-family: 'Plus Jakarta Sans', sans-serif;
    padding: .6rem .85rem; color: #1a1a1a;
}

.mobile-search-input:focus { outline: none; }
.mobile-search-input::placeholder { color: #bbb; }

.mobile-search-btn {
    background: #1a1a1a; border: none; color: #fff;
    padding: 0 .9rem; font-size: .85rem; cursor: pointer;
    height: 42px; display: flex; align-items: center;
}

.mob-section-label {
    font-size: .67rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: #ccc; margin: 1.1rem 0 .5rem .5rem;
}

.mob-auth-row {
    display: flex; gap: .5rem; margin-top: 1.25rem;
}

.mob-auth-row .nav-btn {
    flex: 1; justify-content: center;
}

/* ── Flash messages ─────────────────────────────── */
.flash-wrap {
    padding: .6rem 0 0;
}

.flash-msg {
    border-radius: 12px;
    font-size: .83rem;
    padding: .7rem 1rem;
    display: flex; align-items: center; gap: .5rem;
    border: 1px solid transparent;
    margin-bottom: .5rem;
}

.flash-msg i { font-size: 1rem; flex-shrink: 0; }

.flash-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flash-danger  { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.flash-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.flash-info    { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* ── Responsividade ─────────────────────────────── */
@media (max-width: 900px) {
    .nav-links  { display: none; }
    .nav-search { display: none; }
    .nav-btn    { display: none; }
    .nav-sep    { display: none; }
    .nav-hamburger { display: flex; }
    .navbar-inner { gap: .5rem; }
}

@media (max-width: 480px) {
    .topbar { font-size: .68rem; padding: .32rem 0; }
    .navbar-inner { height: 58px; }
    .mobile-drawer { top: 58px; }
}
