/**
 * Стили для виджета рубрик
 */

.sidebar__section {
    margin-bottom: 30px;
}

.sidebar__title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--wpsc-text-color);
}

.sidebar__items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    padding-left: 10px;  /* Добавьте эту строку */
    /* или margin-left: 15px; */
    text-decoration: none;
    color: var(--wpsc-text-color);
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.sidebar-item:hover {
    color: var(--wpsc-text-color);
    background-color: var(--wpsc-body-bg);
    text-decoration: none;
    border-radius: 10px;
}

.sidebar-item.current-cat {
    color: var(--wpsc-text-color);
    background-color: var(--wpsc-body-bg);
    text-decoration: none;
    border-radius: 10px;
}

.sidebar-item__text {
    font-size: 15px;
    font-weight: 450;
}

.andropov-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: var(--wpsc-text-lighter-color);
}

.andropov-media--rounded {
    border-radius: 50%;
}

.andropov-media--squared {
    border-radius: 8px;
}

.andropov-media--bordered {
    border: var(--wpsc-body-bg);
}

.andropov-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.andropov-media__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.sidebar-item--show-all {
    margin-top: 8px;
    padding-top: 12px;
    color: var(--wpsc-text-color);

    border-radius: 10px;
}

.sidebar-item--show-all:hover {
    color: var(--wpsc-text-color);
    background-color: var(--wpsc-body-bg);
    border-radius: 10px;  /* Тот же радиус, что и у других пунктов */
}

/* Убираем фейковую иконку, которой нет */
.sidebar-item--show-all .andropov-media {
    display: none;
}

/* Настройка иконки шеврона */
.sidebar-item--show-all .icon {
    width: 18px;
    height: 18px;
    margin-left: 7px;  /* Выравнивание с иконками рубрик */
}

.sidebar__hidden-items {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .andropov-media {
        width: 28px;
        height: 28px;
    }
    
    .sidebar-item__text {
        font-size: 14px;
    }
}