/* ================= SIDEBAR ================= */

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 360px; /* leve upgrade */
    height: 100vh;
    background: #fff;
    z-index: 3000;
    transition: 0.4s ease;
    padding: 28px 24px;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

/* HEADER DO MENU */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sidebar-header span {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    letter-spacing: 0.35em;
    color: var(--color-gold);
}

.sidebar-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* LINKS */
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 26px; /* mais respiro */
}

/* LINKS SIMPLES */
.sidebar-links > a {
    font-size: 1rem;
    padding: 14px 6px;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #eee;
}

/* BLOCO COM SUBCATEGORIA */
.sidebar-parent {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
}

/* TOGGLE */
.sidebar-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 6px;
    cursor: pointer;
    font-size: 1rem;
    color: #000;
}

/* SETA */
.sidebar-toggle .arrow {
    font-size: 14px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.sidebar-toggle.active .arrow {
    transform: rotate(90deg);
}

/* SUBCATEGORIAS */
.sub-categories {
    max-height: 0;
    overflow: hidden;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: max-height 0.4s ease;
    background: #fafafa;
}

.sub-categories.active {
    max-height: 600px;
}

.sub-categories a {
    font-size: 0.9rem;
    color: #444;
    padding: 10px 0;
    text-decoration: none;
}

/* HOVER PREMIUM */
.sidebar-links a:hover,
.sidebar-toggle:hover {
    color: var(--color-gold);
}
