/* ==============================================
   Кнопка "Каталог" в навбаре
   ============================================== */

.nav-item--catalog {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    transition: color 0.2s;
}

.nav-item--catalog:hover,
.nav-item--catalog.nav-item--catalog-open {
    color: #2E9B5E;
}


/* ==============================================
   Оверлей — общий контейнер
   ============================================== */

.catalog-overlay-desktop {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
}


/* ==============================================
   Белый блок поверх хедера
   ============================================== */

.catalog-header-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    /* подберите под высоту вашего хедера */
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    z-index: 502;
    pointer-events: all;

    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.42s cubic-bezier(0.22, 0.8, 0.36, 1);
}

.catalog-overlay-desktop .catalog-header-panel {
    clip-path: inset(0 0 0% 0);
}

.catalog-header-panel__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding: 0 24px;

    opacity: 0;
    animation: dt-fadeIn 0.25s ease 0.25s forwards;
}

.catalog-header-panel__close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.catalog-header-panel__close:hover {
    background: #eaeaea;
    color: #333;
}


/* ==============================================
   Панель категорий под навбаром
   ============================================== */

.catalog-dropdown {
    position: fixed;
    top: 96px;
    /* высота хедера + навбара, подберите под ваш сайт */
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 501;
    pointer-events: all;
    overflow: hidden;

    max-height: 0;
    opacity: 0;
    animation: dt-expandDown 0.42s cubic-bezier(0.22, 0.8, 0.36, 1) 0.08s forwards;
}

/* CategoriesBlock внутри dropdown */
.catalog-dropdown .cat__block {
    display: flex;
    flex-direction: column;
}

.catalog-dropdown .cat__two {
    display: flex;
}

.catalog-dropdown .cat__left {
    overflow-y: auto;
    max-height: 420px;
}

.catalog-dropdown .cat__right {
    flex: 1;
    overflow-y: auto;
    max-height: 420px;
}


/* ==============================================
   Затемнение страницы
   ============================================== */

.catalog-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: all;
    cursor: default;
    background: rgba(0, 0, 0, 0);
    animation: dt-fadeBackdrop 0.35s ease 0.1s forwards;
}


/* ==============================================
   Keyframes
   ============================================== */

@keyframes dt-fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes dt-expandDown {
    to {
        max-height: 480px;
        /* подберите под реальную высоту CategoriesBlock */
        opacity: 1;
    }
}

@keyframes dt-fadeBackdrop {
    to {
        background: rgba(0, 0, 0, 0.18);
    }
}