/* ── MAIN NAV ── */
.main-nav {
    padding: .5rem 32px;
    position: sticky;
    top: 0;
    background: var(--surface);
}

.nav-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: auto;
}

/* ── BROWSE BTN ── */
.browse-wrap {
    position: relative;
    flex-shrink: 0;
    margin-right: 28px;
}

.browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    padding: 8px 0;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
    white-space: nowrap;

    i {
        font-size: 1.1rem;
    }
}

.browse-btn:active {
    transform: scale(0.98);
}

/* ── QUICK CATS ── */
.quick-cats {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.quick-cats::-webkit-scrollbar {
    display: none;
}

.quick-cat {
    text-decoration: none;
    color: var(--ink-mid);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 6px 14px;
    white-space: nowrap;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-cat i {
    font-size: 0.78rem;
    opacity: 0.7;
}

.quick-cat:hover {
    color: var(--mzansi-orange);
}

/* ── MEGA DROPDOWN ── */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    width: 720px;
    max-width: calc(100vw - 40px);
    background: var(--surface);
    border-radius: .5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--surface-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.99);
    transform-origin: top left;
    transition: opacity 0.22s ease, transform 0.25s ease, visibility 0.22s;
    overflow: hidden;
}

.mega-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

@media (min-width: 901px) {

    .mega-dropdown:hover,
    .browse-btn:hover+.mega-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
}

.mega-inner {
    display: flex;
    height: 420px;
}

/* ── PARENT COL ── */
.parent-col {
    width: 250px;
    flex-shrink: 0;
    background: var(--surface-2);
    padding: 12px 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}

.parent-col::-webkit-scrollbar {
    width: 4px;
}

.parent-col::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 4px;
}

.parent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.14s;
    margin: 2px 0;
    gap: 8px;
    user-select: none;
}

.parent-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.parent-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: white;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: box-shadow 0.15s;
}

.parent-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-mid);
}

.parent-count {
    font-size: 0.75rem;
    color: var(--ink-soft);
    background: var(--surface-3);
    padding: 2px 7px;
    border-radius: 20px;
    flex-shrink: 0;
}

.parent-item:hover {
    background: white;
}

.parent-item:hover .parent-name {
    color: var(--ink);
}

.parent-item:hover .parent-icon {
    box-shadow: 0 4px 12px rgba(13, 17, 23, 0.12);
}

.parent-item.active {
    background: white;
    box-shadow: var(--shadow-sm);
}

.parent-item.active .parent-name {
    color: var(--ink);
    font-weight: 600;
}

.parent-item.active .parent-count {
    background: var(--ink);
    color: white;
}

/* ── CHILD COL ── */
.child-col {
    flex: 1;
    padding: 20px 24px;
    overflow-y: hidden;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}

.child-col::-webkit-scrollbar {
    width: 4px;
}

.child-col::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 4px;
}

.child-col.active {
    display: block;
}

.child-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--surface-3);
}

.child-header-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.child-see-all {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s;
}

.child-see-all:hover {
    gap: 8px;
}

.child-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
}

.child-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink-mid);
    font-size: 0.765rem;
    font-weight: 450;
    transition: all 0.13s;
    border: 1.5px solid transparent;
}

.child-link:hover {
    background: var(--surface-2);
    border-color: var(--surface-3);
    color: var(--ink);
}

.child-link-count {
    font-size: 0.75rem;
    color: var(--ink-soft);
}

/* ── MOBILE ── */
.mobile-close-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 100;
}

.dropdown-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* z-index: 199; */
}

.dropdown-backdrop.show {
    display: block;
}

@media (max-width: 900px) {
    .top-strip {
        padding: 8px 16px;
    }

    .top-strip-right a:not(.track-btn) {
        display: none;
    }

    .main-nav {
        padding: 5px;
    }

    .mega-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        transform: translateY(20px);
        z-index: 50;
    }

    .mega-dropdown.open {
        transform: translateY(0);
    }

    .mega-inner {
        height: 100%;
        flex-direction: column;
    }

    .parent-col {
        width: 100%;
        height: auto;
        max-height: 38%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        padding: 48px 12px 12px;
        gap: 6px;
        background: var(--ink);
    }

    .parent-col::-webkit-scrollbar {
        display: none;
    }

    .parent-item {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        min-width: 72px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.07);
        flex-shrink: 0;
        box-shadow: none !important;
    }

    .parent-item:hover,
    .parent-item.active {
        background: rgba(255, 255, 255, 0.18);
        box-shadow: none !important;
    }

    .parent-icon {
        background: rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }

    .parent-name {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.72rem;
        text-align: center;
    }

    .parent-item.active .parent-name {
        color: white;
        font-weight: 600;
    }

    .parent-count {
        display: none;
    }

    .child-col {
        flex: 1;
        padding: 5px;
        overflow-y: auto;
    }

    .child-header {
        margin-bottom: 6px;
        padding-bottom: 1px;
    }

    .child-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .child-link {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .mobile-close-btn {
        display: flex !important;
    }

    .quick-cats {
        display: none;
    }
}

@media (min-width: 901px) {
    .dropdown-backdrop {
        display: none !important;
    }

    .mobile-close-btn {
        display: none !important;
    }
}