:root {
    --primary-color: #005bff;
    --hover-color: #f2f2f2;
    --border-color: #e5e5e5;
    --text-color: #333;
    --menu-width: 280px;
}

body {
    margin: 0;
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;*/
	font-family: monospace;
    color: var(--text-color);
}

.header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    position: relative;
    z-index: 1001;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.catalog-btn:hover {
    background: #0052e5;
}

.catalog-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.menu-container {
    display: flex;
    background: white;
    max-width: 1200px;
    margin: 60px auto 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    position: relative;
}

.main-categories {
    width: var(--menu-width);
    margin: 0;
    padding: 0;
    list-style: none;
    border-right: 1px solid var(--border-color);
    background: white;
	overflow: auto;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    gap: 12px;
}

.category-item:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

.category-icon {
    width: 24px;
    text-align: center;
}

.arrow {
    margin-left: auto;
    font-size: 18px;
}

.subcategories-container {
    flex: 1;
    background: white;
}

.subcategories {
    display: none;
    padding: 24px;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
	
}


.category-row {
    display: flex
;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    
}
.subcategories.active {
    display: grid;
    top: 26px;
    /*position: sticky;*/
	position: sticky;
	height: 100%;
}

.subcategory-column {padding-bottom: 7px;}

.subcategory-column h3 {
    margin: 0 0 5px;
    font-size: 14px;
    color: var(--text-color);
	font-family: system-ui;
	font-weight: bold;
	
}

.subcategory-column h3 a{
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-color);
	underline: none;
}
.subcategory-column h3 a:hoversubcategory-column li{
 	underline: none;
}


.subcategory-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
	max-height: 64px;
    overflow: hidden;
}

.subcategory-column li {
    padding: 0 0 2px 0;
    color: #666;
    cursor: pointer;
}
.subcategory-column li a {
    padding: 1px 0;
    color: #666;
    cursor: pointer;
	font-size: 12px;
}

.subcategory-column li:hover {
    color: var(--primary-color);
}

.catalog-menu.active {
    display: block;
}

.mobile-back-btn {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    padding: 16px;
    background: white;
    border: none;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    text-align: left;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 2;
}

.mobile-back-btn:hover {
    background: var(--hover-color);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .catalog-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        background: white;
        z-index: 1002;
    }

    .menu-container {
        margin: 0;
        height: 100vh;
        max-height: none;
        box-shadow: none;
        overflow-y: auto;
    }

    .main-categories {
        width: 100%;
        border-right: none;
        height: 100%;
        overflow-y: auto;
    }

    .subcategories {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
        height: 100%;
        padding-top: 60px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: white;
        z-index: 1;
        overflow-y: auto;
    }

    .category-item {
        padding: 16px;
    }

    .subcategory-column {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }

    .subcategory-column:last-child {
        border-bottom: none;
    }

    .mobile-back-btn {
        display: block;
    }

    .menu-container.show-subcategories .main-categories {
        display: none;
    }

    .menu-container.show-subcategories .subcategories.active {
        display: grid;
    }
}