/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Feb 17 2026 | 13:23:47 */
.entire-catalog-on-screen-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2em;
}

.entire-catalog-on-screen-category {
    position: relative;
    text-align: center;
    height: 210px; /* фикс. высота ячейки — соседние элементы НЕ двигаются */
    z-index: 1;
}

/* Весь “разворачиваемый” блок живёт здесь (поверх, без смещения сетки) */
.entire-catalog-on-screen-flyout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;           /* в обычном состоянии = ширина карточки */
    height: 100%;          /* в обычном состоянии = высота карточки */
    overflow: hidden;      /* обрезаем содержимое в рамках 210px */
    padding: 1em 0 0;
    border: 1px solid transparent;
    box-sizing: border-box;
    background: transparent;
}

/* Hover: разворачиваемся “поверх всего”, ширина по контенту, но не больше 300px */
.entire-catalog-on-screen-category:hover {
    z-index: 222;
}

.entire-catalog-on-screen-category:hover .entire-catalog-on-screen-flyout {
    height: auto;
    overflow: visible;
    background-color: var(--e-global-color-primary);
    border-color: var(--e-global-color-secondary);
    box-shadow: 0px 0 10px rgba(0, 0, 0, 0.6);

    width: max-content;   /* ширина по длине строк */
    max-width: 400px;     /* но не больше 300px */
    min-width: 100%;      /* и не меньше ширины исходной карточки */
}

.entire-catalog-on-screen-category .entire-catalog-on-screen-main-link {
    padding: 0 1em;
    display: block;
    border: 1px solid transparent;
    transition: none;
}

.entire-catalog-on-screen-category .entire-catalog-on-screen-main-link:hover,
.entire-catalog-on-screen-category .entire-catalog-on-screen-main-link:hover .entire-catalog-on-screen-title { 
    color: var(--e-global-color-secondary);
}
/*.entire-catalog-on-screen-category .entire-catalog-on-screen-main-link:hover .entire-catalog-on-screen-icon svg {
	--color-print: var(--e-global-color-a601a4b);
}*/

.entire-catalog-on-screen-category:after {
    content: "";
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    height: 100px;
    background: url(https://singifts.ru/wp-content/uploads/blue-gradient.svg) repeat-x;
    pointer-events: none; /* чтобы градиент не “перехватывал” мышь/клики */
}

.entire-catalog-on-screen-category:hover:after {
    content: none;
}

.entire-catalog-on-screen-category .entire-catalog-on-screen-icon {
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
}

.entire-catalog-on-screen-category .entire-catalog-on-screen-icon svg {
    --icon-stroke: 3;
}

.entire-catalog-on-screen-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--e-global-color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.entire-catalog-on-screen-category:hover .entire-catalog-on-screen-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.entire-catalog-on-screen-subcategories {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    background-color: var(--e-global-color-primary);
    padding: 0 1em 1em;
}

.entire-catalog-on-screen-category:hover .entire-catalog-on-screen-subcategories {
    max-height: 1000px;
}

.entire-catalog-on-screen-subcategory-link {
    display: block;
    text-align: left;
    color: var(--e-global-color-text);
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    padding-bottom: 5px;
    padding-top: 5px;
    box-sizing: border-box;
}

.entire-catalog-on-screen-subcategory-link p {
    margin: 0;
    text-overflow: ellipsis;
    overflow: hidden;
}

.entire-catalog-on-screen-category:hover .entire-catalog-on-screen-subcategory-link {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.entire-catalog-on-screen-category:hover .entire-catalog-on-screen-subcategory-link p {
    text-overflow: unset;
    overflow: visible;
}

.entire-catalog-on-screen-category:hover .entire-catalog-on-screen-subcategory-link:hover {
    color: var(--e-global-color-secondary);
}

.entire-catalog-on-screen-hidden {
    display: none;
}

.entire-catalog-on-screen-category:hover .entire-catalog-on-screen-hidden {
    display: block;
}

/* Мобильные/планшеты: оставляем вашу логику, но отключаем absolute-flyout */
@media (max-width: 1023.98px) {
    .entire-catalog-on-screen-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .entire-catalog-on-screen-category {
        height: auto;
        overflow: visible;
        border: 1px solid var(--e-global-color-primary);
        border-radius: 8px;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .entire-catalog-on-screen-flyout {
        position: static;
        width: auto;
        max-width: none;
        min-width: 0;
        height: auto;
        overflow: visible;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .entire-catalog-on-screen-category:after {
        content: none;
    }

    .entire-catalog-on-screen-subcategories {
        display: none !important;
    }

    .entire-catalog-on-screen-category .entire-catalog-on-screen-main-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 12px;
    }

    .entire-catalog-on-screen-title {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 16px;
        font-weight: 600;
    }

    .entire-catalog-on-screen-category .entire-catalog-on-screen-icon,
    .entire-catalog-on-screen-category .entire-catalog-on-screen-icon svg {
        width: 32px;
        height: 32px;
    }
}