/* ================= BASE ================= */ /* ================= NAVBAR ================= */
.app-navbar {
    background-color: var(--color-brand-dark);
    border-bottom: 3px solid var(--color-brand-accent);
    padding: 12px 24px;
    position: relative;
    z-index: 1030;
}

/* ================= BRAND ================= */
.app-brand-text {
    font-weight: 700; /* más fuerte */
    font-size: 1.4rem; /* más protagonista */
    color: var(--color-surface);
    letter-spacing: 0.5px; /* más elegante */
    transition: 0.3s;
}

/* efecto sutil hover */
.app-navbar .navbar-brand:hover .app-brand-text {
    color: var(--color-brand-tan);
}

/* ================= LINKS ================= */
.app-nav-link {
    color: var(--color-text-on-dark-muted);
    position: relative;
    transition: 0.3s;
    font-weight: 500;
}

.app-nav-link i {
    font-size: 18px;
    margin-right: 5px;
}

.app-nav-link:hover {
    color: var(--color-brand-tan);
}

/* underline animation */
.app-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-brand-tan);
    transition: 0.3s;
}

.app-nav-link:hover::after {
    width: 100%;
}

/* ================= RIGHT SIDE ================= */
.app-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ================= SEARCH ================= */
.app-search-form {
    width: 100%;
    display: flex;
    background: var(--color-surface);
    border-radius: 10px;
    overflow: hidden;
}

.app-search-form input {
    border: none;
    padding: 7px 12px;
    outline: none;
    flex: 1;
    width: 100%;
    min-width: 0;
}

.app-search-form button {
    border: none;
    background: var(--color-brand-accent);
    color: white;
    padding: 7px 12px;
    transition: 0.3s;
}

.app-search-form button:hover {
    background: var(--color-brand-accent-dark);
}

/* ================= PROFILE ================= */
.app-profile-btn {
    color: var(--color-surface);
    font-size: 26px; /* más visible */
    cursor: pointer;
    transition: 0.3s;
}

.app-profile-btn:hover {
    color: var(--color-brand-tan);
    transform: scale(1.1);
}

/* ================= DROPDOWN ================= */
.app-navbar .dropdown-menu {
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow-dropdown);
    z-index: 1060;
}

/* ================= TABLET ================= */
@media (max-width: 991px) {
    .app-nav-right {
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
    }

    .app-search-form {
        width: 100%;
    }

    .app-search-form input {
        width: 100%;
    }

    .app-profile-btn {
        text-align: center;
        width: 100%;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 576px) {
    .app-navbar {
        padding: 8px 12px;
    }

    .app-brand-text {
        font-size: 1.1rem;
    }

    .app-profile-btn {
        font-size: 22px;
    }

    .app-search-form input {
        flex: 1 1 0%;
        width: 0;
        min-width: 0;
    }

    .app-search-form {
        min-width: 0;
    }

    .app-search-form button {
        flex: 0 0 44px;
        min-height: 42px;
        padding: 0;
    }
}

/* Opcional: pequeño detalle visual admin */
.app-navbar .bi-shield-lock {
    color: var(--color-brand-accent);
    font-size: 20px;
}

.app-cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--color-danger);
    color: var(--color-surface);
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50%;
}

.app-navbar button.app-nav-link {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.app-navbar button.app-profile-btn {
    border: 0;
    background: transparent;
    padding: 0.35rem;
}

.app-navbar :is(a, button, input):focus-visible {
    border-radius: var(--radius-sm);
    outline: 3px solid var(--color-brand-tan);
    outline-offset: 3px;
    box-shadow: none;
}
