/* fullscreen-menu.css */


.brand-image {
/*    max-width: 50px;*/
    max-height: 50px;
    margin-right: 10px;
    vertical-align: middle;
}
.child-category {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 10px;
}
.child-category span {
    font-size: 14px;
    color: #333;
}

/* Общие стили для fullscreen меню */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    display: none;
}

.fullscreen-menu.open {
    transform: translateX(0);
}

.menu-content {
    width: 100%;
    height: 100%;
}

.categories-container {
    display: flex;
    height: 100%;
    overflow: hidden;
    padding: 12px;
    gap: 12px;
}

/* Стили для левой колонки */
.left-column {
    width: 300px;
    background: #f8f8f8;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Стили для шапки меню */
.menu-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    gap: 20px;
    height: 70px; /* Фиксированная высота для шапки */
    position: relative;
    z-index: 9999;
}

/* Стили для логотипа */
.menu-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.menu-logo img,
.menu-logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}

.menu-logo h1 {
    margin: 0;
    font-size: 16px;
    line-height: 32px;
}

/* Стили для поиска */
.search-bar {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 99999;
}

.search-wrapper {
    width: 100%;
    position: relative;
}

.search-wrapper input[type="text"],
#live-search {
    width: 100%;
    height: 32px;
    padding: 6px 10px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    font-size: 12px;
    transition: all 0.3s ease;
    margin: 0;
}

.search-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #999;
}

/* Стили для кнопки закрытия */
.close-menu-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    color: #333;
    transition: color 0.3s ease;
    line-height: 1;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.close-menu-btn:hover {
    color: #000;
}

/* Стили для результатов поиска */
#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 1px;
    z-index: 99999;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    font-size: 14px;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f8f8;
}

.search-result-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 12px;
}

.search-result-description {
    color: #666;
    font-size: 11px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Стили для списка категорий */
.parent-categories-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.parent-category {
    font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.parent-category:hover {
    background: #eee;
}

.parent-category.active {
    background: #333;
    color: #fff;
}

/* Стили для правой колонки */
.children-categories-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.children-panel {
    display: none;
}

.children-panel.active {
    display: block;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
    padding: 12px;
}

.child-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 12px;
    margin: 3px;
}

.child-category:hover {
    background: #eee;
    transform: translateY(-2px);
}

.no-children {
    color: #666;
    text-align: center;
    padding: 15px;
    font-size: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .fullscreen-menu {
        width: 100%;
    }

    .left-column {
        width: 100%;
        height: auto;
    }
    
    .categories-container {
        flex-direction: column;
    }

    .parent-categories-list {
        width: 100%;
        max-height: 40vh;
    }

    .children-categories-content {
        padding: 15px;
    }

    .children-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .menu-header {
        height: 60px;
        padding: 10px 15px;
        gap: 15px;
    }
    
    .menu-logo {
        max-width: 150px;
    }
    
    .menu-logo img,
    .menu-logo-img {
        height: 30px;
    }
    
    .menu-logo h1 {
        font-size: 18px;
        line-height: 30px;
    }

    .search-wrapper input[type="text"] {
        height: 36px;
    }
    
    .close-menu-btn {
        height: 36px;
        width: 36px;
    }
}
