.icon {
    width: 1.25em;
    height: 1.25em;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-small {
    width: 1em;
    height: 1em;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: left 0.3s ease;
    overflow-y: auto;
}
.sidebar.active {
    left: 0;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}
.sidebar-header h3 {
    font-family: 'Kumar One', serif;
    font-size: 1.5rem;
    color: #000;
    margin: 0;
}
.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-close:hover {
    color: #000;
}
.sidebar-close:hover .icon {
    fill: #000;
}
.sidebar-content {
    padding: 20px;
}
.sidebar-category {
    margin-bottom: 20px;
}
.sidebar-category-header {
    padding: 12px 15px;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s;
    margin-bottom: 5px;
    font-family: 'Bayon', sans-serif;
}
.sidebar-category-header:hover {
    background: #e0e0e0;
}
.sidebar-subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 15px;
}
.sidebar-subcategories.active {
    max-height: 500px;
}

.sidebar-subcategory {
    padding: 14px 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Bayon', sans-serif;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.sidebar-subcategory::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: #000000;
    transition: all 0.4s ease;
    border-radius: 0 3px 3px 0;
}

.sidebar-subcategory-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    font-size: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    border: 2px solid #000;
    overflow: hidden;
    filter: grayscale(100%) contrast(200%);
}

.sidebar-subcategory:hover {
    background: #fff;
    transform: translateX(5px);
    border-color: #000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.sidebar-subcategory:hover::before {
    width: 6px;
}
.sidebar-subcategory:hover .sidebar-subcategory-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    filter: grayscale(100%) contrast(300%) brightness(0.9);
}

.sidebar-subcategory-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
    flex: 1;
}
.sidebar-subcategory-title {
    font-weight: bold;
    font-size: 16px;
    line-height: 1.3;
}
.sidebar-subcategory-details {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
    color: #333;
}

.sidebar-links {
    margin-top: 30px;
}
.sidebar-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px 0;
    transition: background 0.3s;
    font-family: 'Bayon', sans-serif;
}
.sidebar-link:hover {
    background: #f0f0f0;
    color: #000;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 500px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }
    .sidebar.active {
        left: 0;
    }
}

@media (max-width: 499px) and (min-width: 350px) {
    .sidebar {
        width: calc(280px - (500px - 100vw) * 0.5);
        left: calc(-280px + (500px - 100vw) * 0.5);
    }
    .sidebar.active {
        left: 0;
    }
    .sidebar-subcategory {
        padding: 12px;
        gap: 12px;
    }
    .sidebar-subcategory-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 349px) and (min-width: 220px) {
    .sidebar {
        width: calc(219px + (349px - 100vw) * 0.3);
        left: calc(-219px - (349px - 100vw) * 0.3);
    }
    .sidebar.active {
        left: 0;
    }
    .sidebar-subcategory {
        padding: 10px;
        gap: 10px;
    }
    .sidebar-subcategory-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .sidebar-subcategory-title {
        font-size: 14px;
    }
}

@media (max-width: 219px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    .sidebar.active {
        left: 0;
    }
    .sidebar-header {
        padding: 15px;
    }
    .sidebar-content {
        padding: 15px;
    }
    .sidebar-subcategory {
        padding: 8px;
        gap: 8px;
    }
    .sidebar-subcategory-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .sidebar-subcategory-title {
        font-size: 13px;
    }
    .sidebar-subcategory-details {
        font-size: 11px;
    }
}
/* ===== БЫСТРЫЕ ССЫЛКИ (Афиша, Скидки, Лента) ===== */
.sidebar-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-link-highlight {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px !important;
    background: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    color: #000 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-align: center;
}

.sidebar-link-highlight:hover,
.sidebar-link-highlight:active {
    background: #000;
    color: #fff !important;
    transform: scale(0.97);
}

.sidebar-link-icon {
    font-size: 18px;
}

.sidebar-link-highlight span {
    line-height: 1.2;
}