.ds-mega-menu {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;

    display: none;
    padding: 60px;
    overflow-y: auto;
    @media(max-width: 600px)
    { 
        padding: 30px;
    }
}

.ds-mega-menu.active {
    display: block;
}

.ds-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 40px;
    @media(max-width: 600px)
    {
        row-gap: 50px;
    }
}

.ds-mega-column h3 {
    margin-bottom: 15px;
}

.ds-mega-column h3 a {
    font-size: 1.4rem;
    text-decoration: none;
    color: black;
}

.ds-mega-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ds-mega-column li {
    margin: 0;
}

.ds-mega-column a {
    text-decoration: none;
    color: #555;
}

.ds-mega-column a:hover {
    color: black;
}

/* Buttons */
.ds-mega-open {
    background: none;
    border: none;
    padding: 10px 0;
    font: inherit;
    font-weight: 600;
    color: black;
    cursor: pointer;
    text-decoration: none;
}

.ds-mega-open:hover {
    font-weight: bold;
}

.ds-mega-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Prevent background scroll */
body.ds-mega-opened {
    overflow: hidden;
}

/* Base spacing between items */
.ds-sub-menu > li {
    margin-bottom: 6px;
    transition: transform 0.2s ease;
}

.ds-sub-menu > li:hover {
    transform: translateX(5px);
}

/* Level 1 (children of main category) */
.ds-sub-menu {
    margin-top: 10px;
}

/* Level 2+ indentation */
.ds-sub-menu .ds-sub-menu {
    padding-left: 15px;
    border-left: 1px solid #eee;
    margin-top: 5px;
}

/* Make deeper levels slightly smaller */
.ds-sub-menu .ds-sub-menu a {
    font-size: 0.95rem;
    color: #777;
}

/* Even deeper levels */
.ds-sub-menu .ds-sub-menu .ds-sub-menu a {
    font-size: 0.9rem;
    color: #999;
}

/* Hover improvement */
.ds-sub-menu a:hover {
    color: black;
    text-decoration: underline;
}

/* Optional: collapse deeper levels by default */
.ds-sub-menu .ds-sub-menu {
    display: block;
}

/* Show on hover (simple version) */
.ds-sub-item:hover > .ds-sub-menu {
    display: block;
}

/* Optional: smoother feel */
.ds-sub-menu {
    transition: all 0.2s ease;
}