/* ── Sidebar container ── */
.nav-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #2a796c;
    font-family: Arial, sans-serif;
}

/* ── Brand / logo bar ── */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.nav-brand img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-brand span {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ── Scrollable menu body ── */
.nav-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 12px;
    scrollbar-width: thin;
}

.nav-body::-webkit-scrollbar {
    width: 5px;
}
.nav-body::-webkit-scrollbar-track {
    background: rgb(188,188,188);
    border-radius: 6px;
}
.nav-body::-webkit-scrollbar-thumb {
    background: rgb(144,144,144);
    border-radius: 6px;
}

/* ── Section labels ── */
.nav-section-label {
    padding: 14px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
}

/* ── Menu items ── */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13.5px;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-left-color: #fff;
    font-weight: 600;
}

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
}

.nav-item:hover i,
.nav-item.active i {
    color: #fff;
}

/* ── Cart badge ── */
.nav-badge {
    margin-left: auto;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    line-height: 18px;
    min-width: 20px;
    text-align: center;
}

/* ── Accordion arrow ── */
.nav-arrow {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

.nav-item[aria-expanded="true"] .nav-arrow {
    transform: rotate(180deg);
}

/* ── Submenu ── */
.nav-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.12);
    padding: 2px 0;
}

.nav-submenu.open {
    display: block;
}

/* ── Submenu items ── */
.nav-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 38px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
}

.nav-subitem:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.nav-subitem i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* ── Divider ── */
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 14px;
}

/* ── Pinned footer ── */
.nav-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 0;
}
