/* ==========================================
   NOVA SHOP HEADER - БАЗОВЫЕ СТИЛИ СЕТКИ
   ========================================== */

.nova-header-top-bar,
.nova-header-main-header,
.nova-header-bottom-header,
.nova-header-mobile-section {
    position: relative;
    z-index: 9996;
    width: 100%;
}

/* 🔥 БАЗОВАЯ СЕТКА (Фоллбэк, если настройки не заданы) */
.nova-header-row {
    display: grid;
    /* По умолчанию сбалансированная сетка. 
       Реальное управление теперь идет через классы .nova-flex-* */
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    padding: 0 15px;
    /* Плавный переход, если макет меняется динамически (опционально) */
    transition: grid-template-columns 0.3s ease; 
        grid-auto-flow: column;
}

.nova-header-col { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.nova-header-col-left { justify-content: flex-start; }
.nova-header-col-center { justify-content: center; }
.nova-header-col-right { justify-content: flex-end; }


/* ==========================================
   ПЕРЕКЛЮЧЕНИЕ ДЕСКТОП / МОБИЛКА
   ========================================== */
.nova-header-mobile-section { display: none; }

@media (max-width: 768px) {
    .nova-header-top-bar,
    .nova-header-main-header,
    .nova-header-bottom-header { display: none !important; }
    
    .nova-header-mobile-section { display: block !important; }
    
    /* 🔥 НА МОБИЛЬНЫХ УНИЧТОЖАЕМ ЛЮБОЙ ВЫБРАННЫЙ DESKTOP LAYOUT */
    .nova-header-row {
        grid-template-columns: 1fr !important; /* Всегда 1 колонка на телефоне */
        gap: 10px;
    }
    
    .nova-header-col-left,
    .nova-header-col-center,
    .nova-header-col-right {
        justify-content: center; /* На мобильном всё по центру */
        width: 100%;
    }
}

/* ==========================================
   STICKY HEADER + ФИКС ВЫПАДАЮЩИХ МЕНЮ
   ========================================== */
.nova-sticky-section,
.nova-sticky-section .ns-container,
.nova-sticky-section .nova-header-row {
    overflow: visible !important; /* 🔥 КЛЮЧЕВОЕ: запрещаем обрезку dropdown */
}

.nova-sticky-section {
    position: sticky;
    top: 0;
    z-index: 9995 !important; /* 🔥 База для sticky */
    background-color: #ffffff;
    transition: 
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease;
    will-change: transform, opacity;
}



/* 🔑 Анимации появления (как в WoodMart) */
@keyframes ns-fade-in {
    from { opacity: 0.85; }
    to { opacity: 1; }
}
@keyframes ns-slide-up-in {
    from { transform: translateY(15px); opacity: 0.9; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes ns-zoom-in {
    from { transform: scale(0.98); opacity: 0.95; }
    to { transform: scale(1); opacity: 1; }
}

/* Применение анимаций */
.nova-sticky-section.is-sticky[data-effect="fade"] {
    animation: ns-fade-in var(--ns-transition-duration, 300ms) ease forwards;
}
.nova-sticky-section.is-sticky[data-effect="slide-up"] {
    animation: ns-slide-up-in var(--ns-transition-duration, 300ms) ease forwards;
}
.nova-sticky-section.is-sticky[data-effect="zoom"] {
    animation: ns-zoom-in var(--ns-transition-duration, 300ms) ease forwards;
}

/* 🖥️ ДЕСКТОП: Фиксация без скачков */
@media (min-width: 769px) {
/* Найди этот блок (в медиа-запросе десктопа и мобилки) и замени z-index */
.nova-sticky-section.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: var(--ns-sticky-bg, #ffffff) !important;
    backdrop-filter: blur(var(--ns-sticky-blur, 0px));
    -webkit-backdrop-filter: blur(var(--ns-sticky-blur, 0px));
    box-shadow: var(--ns-sticky-shadow, none) !important;
   
}
}

/* 📱 МОБИЛЬНЫЕ */
@media (max-width: 768px) {
    .nova-sticky-section.is-sticky {
        position: fixed !important;
        top: env(safe-area-inset-top, 0px) !important;
        left: 0 !important;
        width: 100% !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        background-color: var(--ns-sticky-bg, #ffffff) !important;
        backdrop-filter: blur(var(--ns-sticky-blur, 0px));
        box-shadow: var(--ns-sticky-shadow, none) !important;
        
    }
}

/* 🔥 Спейсер для компенсации отступа (как в WoodMart) */
.nova-sticky-spacer {
    transition: height 0.3s ease;
}

/* 🗜️ Сжатие (Shrink) */
.nova-sticky-section.is-sticky.is-shrink {
    padding-top: var(--ns-sticky-pt, 8px) !important;
    padding-bottom: calc(var(--ns-sticky-pt, 8px) / 2) !important;
    min-height: var(--ns-sticky-height, 60px);
    transition: padding 0.3s ease;
}
/* ==========================================
   ЭЛЕМЕНТЫ ШАПКИ (Без изменений)
   ========================================== */
.nova-header-element { display: flex; align-items: center; }
.nova-text-logo { font-size: 24px; font-weight: 700; color: var(--ns-primary, #2563eb); text-decoration: none; }
.custom-logo { max-height: 50px; width: auto; }
.nova-main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 24px; }
.nova-element-nav_menu .nova-main-nav a { text-decoration: none; color: inherit !important; font-weight: 500; transition: color 0.2s; }
.nova-element-nav_menu .nova-main-nav a:hover { color: var(--ns-menu-hover, var(--ns-primary, #2563eb)) !important; }
.nova-cart-icon { position: relative; display: flex; align-items: center; gap: 6px; text-decoration: none; color: #334155; }
.nova-cart-count { background: var(--ns-primary, #2563eb); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 10px; }
.nova-search-toggle { background: none; border: none; font-size: 20px; cursor: pointer; color: #334155; }
.nova-spacer { flex: 1; }


/* 🔥 ТЕЛЕФОН: ФИКС МИГАНИЯ И ВЫРАВНИВАНИЕ ИКОНКИ */
.nova-phone {
    font-weight: 600;
    color: #1e293b; /* Fallback на случай если инлайн не сработает */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.nova-phone:hover {
    color: var(--ns-primary, #2563eb);
}

.nova-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    line-height: 1;
}

.nova-phone-icon img {
    display: block;
    object-fit: contain;
    vertical-align: middle;
}











/* ==========================================
   🔥 МОБИЛЬНОЕ МЕНЮ (БУРГЕР + ПАНЕЛЬ)
   ========================================== */
.nova-mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}
.nova-mobile-menu-toggle:hover svg { stroke-opacity: 0.8; }
.nova-burger-text { font-size: 14px; font-weight: 500; }

.nova-mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nova-mobile-menu-overlay.active { display: block; opacity: 1; }

.nova-mobile-menu-panel {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 25px rgba(0,0,0,0.15);
}
.nova-mobile-menu-overlay.active .nova-mobile-menu-panel { transform: translateX(0); }

.nova-mobile-menu-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}
.nova-mobile-menu-close {
    background: none; border: none;
    font-size: 32px; line-height: 1;
    cursor: pointer; color: #64748b;
    padding: 0 8px;
}
.nova-mobile-menu-close:hover { color: #1e293b; }

.nova-mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Мобильное меню список */
.nova-mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.nova-mobile-nav-list .menu-item { border-bottom: 1px solid #f1f5f9; }
.nova-mobile-nav-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; text-decoration: none; color: #334155; font-weight: 500;
}
.nova-mobile-nav-list .menu-item-has-children > a::after {
    content: '+'; font-size: 20px; font-weight: 300; color: #94a3b8;
    transition: transform 0.2s ease;
}
.nova-mobile-nav-list .menu-item-has-children.active > a::after {
    content: '−'; transform: rotate(180deg);
}

/* Подменю (аккордеон) */
.nova-mobile-nav-list .sub-menu {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 16px;
}
.nova-mobile-nav-list .menu-item-has-children.active > .sub-menu {
    max-height: 1000px;
}
.nova-mobile-nav-list .sub-menu a { font-size: 14px; color: #475569; padding: 10px 0; }

.nova-menu-loading { text-align: center; padding: 40px 0; color: #94a3b8; }


/* ==========================================
🔥 ПОИСК (Управление через Конструктор + Логика выпадашки)
========================================== */

/* 1. Базовая обертка (Ширина и Фон задаются inline из конструктора) */
.nova-search-expandable,
form.nova-ajax-search-form {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible; /* Важно, чтобы выпадашка не обрезалась */
}

/* Растягиваем форму, если она в центре хедера */
.nova-header-col-center form.nova-ajax-search-form {
    width: 100%;
}

/* 2. Кнопка иконки (Сброс базовых стилей) */
.nova-search-toggle-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    outline: none;
}

/* 3. Поле ввода (Делаем прозрачным, чтобы был виден фон обертки из конструктора) */
.nova-search-input,
.nova-search-input-large {
    flex: 1;
    width: 100%;
    border: none !important;
    background: transparent !important;
    outline: none;
    font-size: 14px;
    color: #1e293b;
    padding: 0 12px;
    height: 100%;
    min-height: 40px;
    box-sizing: border-box;
}

.nova-search-input::placeholder,
.nova-search-input-large::placeholder {
    color: #94a3b8;
}

/* Оверлей на весь экран */
.nova-search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.nova-search-close-btn {
    position: absolute;
    top: 30px; right: 30px;
    background: none; border: none;
    color: #fff; font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================
🔥 ВЫПАДАЮЩИЙ СПИСОК РЕЗУЛЬТАТОВ (AJAX)
========================================== */
.nova-ajax-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 99999;
    max-height: 450px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}

/* Класс is-visible добавляется через JS */
.nova-ajax-search-results.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Стрелочка сверху */
.nova-ajax-search-results.is-visible::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    border-top-left-radius: 2px;
    box-shadow: -2px -2px 0 0 #ffffff;
}

/* Список товаров */
.nova-ajax-search-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    max-height: 380px;
    overflow-y: auto;
}

/* Кастомный скроллбар */
.nova-ajax-search-list::-webkit-scrollbar { width: 6px; }
.nova-ajax-search-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.nova-ajax-search-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.nova-ajax-search-list::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Элемент товара */
.nova-search-item { margin-bottom: 4px; }
.nova-search-item:last-child { margin-bottom: 0; }

.nova-search-item-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: #1e293b;
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nova-search-item-link:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

/* Изображение товара */
.nova-search-item-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.nova-search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контент товара */
.nova-search-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nova-search-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nova-search-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--ns-primary, #c96a2e);
}
.nova-search-item-price del {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 6px;
}
.nova-search-item-sku {
    font-size: 11px;
    color: #94a3b8;
}

/* Лоадер и состояния */
.nova-search-loading,
.nova-search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.nova-search-loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--ns-primary, #c96a2e);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================
📱 АДАПТИВНОСТЬ ПОИСКА
========================================== */
@media (max-width: 768px) {
    .nova-search-expandable,
    form.nova-ajax-search-form {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .nova-ajax-search-results {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 95vw;
        min-width: auto;
    }
    .nova-ajax-search-results.is-visible {
        transform: translateX(-50%) translateY(0);
    }
    .nova-ajax-search-results.is-visible::before {
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }
}



/* ==========================================
🔥 ФИКС НАХЛЕСТА ПОИСКА (padding + height)
========================================== */

/* Сбрасываем padding у внешнего контейнера */
.nova-element-search {
    padding: 0 !important;
}







/* ==========================================
 FLEX LAYOUT ДЛЯ СЕКЦИЙ (MAX SPECIFICITY)
========================================== */

/* По умолчанию: левая и правая по контенту, центр растягивается */
div.nova-header-top-bar.nova-flex-default div.nova-header-row,
div.nova-header-main-header.nova-flex-default div.nova-header-row,
div.nova-header-bottom-header.nova-flex-default div.nova-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

div.nova-flex-default div.nova-header-col-left,
div.nova-flex-default div.nova-header-col-right {
    flex: 0 0 auto !important;
}

div.nova-flex-default div.nova-header-col-center {
    flex: 1 1 auto !important;
    justify-content: center !important;
}

/* Центр шире (для поиска на всю ширину) */
div.nova-header-top-bar.nova-flex-center-full div.nova-header-row,
div.nova-header-main-header.nova-flex-center-full div.nova-header-row,
div.nova-header-bottom-header.nova-flex-center-full div.nova-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

div.nova-flex-center-full div.nova-header-col-left,
div.nova-flex-center-full div.nova-header-col-right {
    flex: 0 0 auto !important;
}

div.nova-flex-center-full div.nova-header-col-center {
    flex: 1 1 100% !important;
    justify-content: center !important;
}

/* Только центр растягивается */
div.nova-header-top-bar.nova-flex-center-only div.nova-header-row,
div.nova-header-main-header.nova-flex-center-only div.nova-header-row,
div.nova-header-bottom-header.nova-flex-center-only div.nova-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

div.nova-flex-center-only div.nova-header-col-left,
div.nova-flex-center-only div.nova-header-col-right {
    flex: 0 0 auto !important;
}

div.nova-flex-center-only div.nova-header-col-center {
    flex: 1 1 auto !important;
    justify-content: center !important;
}

/* Левая фиксирована, центр и правая гибкие */
div.nova-header-top-bar.nova-flex-left-auto div.nova-header-row,
div.nova-header-main-header.nova-flex-left-auto div.nova-header-row,
div.nova-header-bottom-header.nova-flex-left-auto div.nova-header-row {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

div.nova-flex-left-auto div.nova-header-col-left {
    flex: 0 0 auto !important;
}

div.nova-flex-left-auto div.nova-header-col-center {
    flex: 1 1 auto !important;
}

div.nova-flex-left-auto div.nova-header-col-right {
    flex: 0 0 auto !important;
}

/* Правая фиксирована, левая и центр гибкие */
div.nova-header-top-bar.nova-flex-right-auto div.nova-header-row,
div.nova-header-main-header.nova-flex-right-auto div.nova-header-row,
div.nova-header-bottom-header.nova-flex-right-auto div.nova-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

div.nova-flex-right-auto div.nova-header-col-left {
    flex: 1 1 auto !important;
}

div.nova-flex-right-auto div.nova-header-col-center {
    flex: 0 0 auto !important;
}

div.nova-flex-right-auto div.nova-header-col-right {
    flex: 0 0 auto !important;
}

/* Центр занимает максимум места */
div.nova-header-top-bar.nova-flex-full-center div.nova-header-row,
div.nova-header-main-header.nova-flex-full-center div.nova-header-row,
div.nova-header-bottom-header.nova-flex-full-center div.nova-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

div.nova-flex-full-center div.nova-header-col-left,
div.nova-flex-full-center div.nova-header-col-right {
    flex: 0 0 auto !important;
}

div.nova-flex-full-center div.nova-header-col-center {
    flex: 1 1 300% !important;
    justify-content: center !important;
}

/* Элементы внутри центральной колонки на всю ширину */
div.nova-flex-center-full div.nova-header-col-center div.nova-element-search,
div.nova-flex-center-only div.nova-header-col-center div.nova-element-search,
div.nova-flex-full-center div.nova-header-col-center div.nova-element-search,
div.nova-flex-left-auto div.nova-header-col-center div.nova-element-search,
div.nova-flex-right-auto div.nova-header-col-center div.nova-element-search {
    width: 100% !important;
    max-width: 100% !important;
}

div.nova-flex-center-full div.nova-header-col-center div.nova-search-expandable,
div.nova-flex-center-only div.nova-header-col-center div.nova-search-expandable,
div.nova-flex-full-center div.nova-header-col-center div.nova-search-expandable,
div.nova-flex-left-auto div.nova-header-col-center div.nova-search-expandable,
div.nova-flex-right-auto div.nova-header-col-center div.nova-search-expandable {
    width: 100% !important;
    max-width: 100% !important;
}

/* Адаптивность: на мобильных всегда в 1 колонку */
@media (max-width: 768px) {
    div.nova-header-top-bar div.nova-header-row,
    div.nova-header-main-header div.nova-header-row,
    div.nova-header-bottom-header div.nova-header-row {
        flex-direction: column !important;
    }
    
    div.nova-header-top-bar div.nova-header-col,
    div.nova-header-main-header div.nova-header-col,
    div.nova-header-bottom-header div.nova-header-col {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ==========================================
    ЭЛЕМЕНТ "КАРТИНКА" В ШАПКЕ
   ========================================== */

.nova-header-image-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nova-header-image-link:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.nova-header-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nova-header-image {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ==========================================
   🔥 КАТАЛОГ ТОВАРОВ (АБСОЛЮТНО РАБОЧИЙ)
   ========================================== */

.nova-catalog-menu {
    position: relative;
    display: inline-block;
    /* УБРАЛИ z-index отсюда */
}

.nova-menu-opener {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;

    transition: opacity 0.2s ease;
    border-radius: 4px;
    user-select: none;
    position: relative;
    z-index: 2;
}

.nova-menu-opener.has-bg {
    background: #f5f5f5;
    padding: 12px 18px;
}

.nova-menu-opener:hover {
    opacity: 0.85;
}

.nova-menu-opener-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-menu-opener-icon img {
    max-width: 100%;
    height: auto;
}

.nova-menu-open-label {
    line-height: 1.2;
}









/* 🔥 ВЫПАДАЮЩЕЕ МЕНЮ КАТАЛОГА */
.nova-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0px 0px 8px 8px;
    z-index: 9999999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.nova-catalog-menu.nova-active > .nova-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 🔥 ОВЕРЛЕЙ (затемнение фона) */
.nova-catalog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9990 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.nova-catalog-overlay.nova-active {
    opacity: 1;
    visibility: visible;
}

/* Остальные стили каталога... */
.nova-color-scheme-light .nova-dropdown {
    background: #fff;
    color: #333;
}

.nova-color-scheme-dark .nova-dropdown {
    background: #2c2c2c;
    color: #fff;
}

.nova-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nova-nav > li {
    border-bottom: 1px solid #f0f0f0;
}

.nova-color-scheme-dark .nova-nav > li {
    border-bottom-color: #3a3a3a;
}

.nova-nav > li:last-child {
    border-bottom: none;
}

.nova-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.nova-nav-link:hover {
    background: rgba(0,0,0,0.05);
}

.nova-color-scheme-dark .nova-nav-link:hover {
    background: rgba(255,255,255,0.05);
}

.nova-nav-img {
    border-radius: 4px;
    object-fit: cover;
}

.nova-nav-link-text {
    flex: 1;
    font-weight: 500;
}

/* Подменю */
.nova-dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 250px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 101 !important;
    padding: 10px 0;
    
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.nova-color-scheme-dark .nova-dropdown-menu {
    background: #2c2c2c;
}

.nova-dropdown-parent.nova-active > .nova-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.nova-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nova-sub-menu a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.nova-sub-menu a:hover {
    background: rgba(0,0,0,0.05);
    padding-left: 20px;
}

.nova-color-scheme-dark .nova-sub-menu a:hover {
    background: rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .nova-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        margin-top: 0;
        overflow-y: auto;
    }
    
    .nova-dropdown-menu {
        position: static;
        box-shadow: none;
        transform: none;
    }
}








/* ==========================================
 ФИКС РАСТЯГИВАНИЯ ПОИСКА В ЦЕНТРЕ
========================================== */

/* Форма поиска растягивается на всю ширину колонки */
.nova-header-col-center .nova-ajax-search-form {
    flex: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Инпут заполняет всё доступное пространство */
.nova-header-col-center .nova-search-input,
.nova-header-col-center .nova-search-input-large {
    flex: 1 !important;
    width: 100% !important;
    min-width: 0 !important; /* Критически важно для flex */
}

/* Обёртка поиска тоже растягивается */
.nova-header-col-center .nova-search-expandable {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
}

/* Убираем фиксированную ширину у формы поиска в центре */
.nova-flex-center-full div.nova-header-col-center form.nova-ajax-search-form,
.nova-flex-center-only div.nova-header-col-center form.nova-ajax-search-form,
.nova-flex-full-center div.nova-header-col-center form.nova-ajax-search-form,
.nova-flex-left-auto div.nova-header-col-center form.nova-ajax-search-form,
.nova-flex-right-auto div.nova-header-col-center form.nova-ajax-search-form {
    width: 100% !important;
    max-width: 100% !important;
}

/* Иконка остаётся на своём месте (справа или слева) */
.nova-header-col-center .nova-search-toggle-btn {
    flex-shrink: 0 !important;
}


/* ==========================================
🔥 ИКОНКИ В ШАПКЕ (Wishlist & Compare)
========================================== */
.nova-header-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    padding: 8px;
}

.nova-header-icon-wrap:hover {
    /* 🔥 Увеличение убрано — иконка остаётся того же размера */
    opacity: 0.85;
}
.nova-header-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* Счётчик товаров */
.nova-header-count {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
    padding: 2px;
    margin-right: -8px;
    pointer-events: none; /* Чтобы клик по счётчику проходил сквозь него на иконку */
}

/* Позиции счётчика */
.nova-header-count.pos-top-right {
    top: -6px;
    right: 0px;
}

.nova-header-count.pos-bottom-right {
    bottom: 2px;
    right: 2px;
}

.nova-header-count.pos-top-left {
    top: 2px;
    left: 2px;
}

.nova-header-count.pos-bottom-left {
    bottom: 2px;
    left: 2px;
}

/* Скрываем счётчик, если он равен 0 (опционально, можно убрать, если хотите показывать "0") */
.nova-header-count:empty,
.nova-header-count[data-wishlist-fragment="0"],
.nova-header-count[data-compare-fragment="0"] {
    display: none;
}



/* ==========================================
🛒 КНОПКА «В КОРЗИНУ» В РЕЗУЛЬТАТАХ ПОИСКА
========================================== */
.nova-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nova-search-item-link {
    flex: 1;
    min-width: 0;
}
.nova-search-add-to-cart {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin-right: 8px;
    background: var(--ns-primary, #c96a2e);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nova-search-add-to-cart:hover {
    background: var(--ns-hover, #a85525);
    transform: translateY(-1px);
}
.nova-search-add-to-cart.loading {
    opacity: 0.6;
    pointer-events: none;
}
.nova-search-add-to-cart.added {
    background: #10b981;
}
/* На мобильных оставляем только иконку */
@media (max-width: 600px) {
    .nova-search-add-to-cart .nova-add-to-cart-text { display: none; }
    .nova-search-add-to-cart { padding: 8px 10px; }
}



/* ============================================
   📱 НИЖНЯЯ МОБИЛЬНАЯ ПАНЕЛЬ (BOTTOM BAR)
   ============================================ */
.nova-mobile-bottom-bar { display: none; }

@media (max-width: 768px) {
    .nova-mobile-bottom-bar {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 9998;
        background: #fff;
        border-top: 1px solid #e8ecf1;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .nova-mbb-inner { display: flex; align-items: stretch; }
    .nova-mbb-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 8px 2px 7px;
        position: relative;
    }
    /* Подпись под иконкой */
    .nova-mbb-item::after {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 600;
        color: #334155;
        line-height: 1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nova-mbb-item > * { margin: 0 !important; }
    .nova-mbb-item a,
    .nova-mbb-item button,
    .nova-mbb-item .nova-menu-opener {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        color: #334155 !important;
        text-decoration: none !important;
    }
    .nova-mbb-item svg, .nova-mbb-item img { width: 22px; height: 22px; }

    /* Телефон: скрываем номер, оставляем иконку */
    .nova-mbb-item--phone .nova-phone { font-size: 0 !important; }
    .nova-mbb-item--phone .nova-phone-icon { margin-right: 0 !important; }

    /* Корзина / Избранное / Сравнение: иконка + счётчик */
    .nova-mbb-item .nova-header-icon-wrap { padding: 0 !important; position: relative; }
    .nova-mbb-item .nova-header-count { top: -9px !important; right: -3px !important; padding: 3px !important; }

    /* Каталог: текст кнопки скрыт, меню открывается ВВЕРХ */
    .nova-mbb-item--catalog_menu .nova-menu-open-label { display: none !important; }
    .nova-mbb-item--catalog_menu .nova-catalog-menu { width: 100%; display: flex; justify-content: center; }
    .nova-mbb-item--catalog_menu .nova-dropdown {
        top: auto !important;
        bottom: calc(100% + 10px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(10px);
    }
    .nova-mbb-item--catalog_menu .nova-catalog-menu.nova-active > .nova-dropdown {
        transform: translateX(-50%) translateY(0);
    }

    /* Кнопка: текст скрыт (подпись снизу) */
    .nova-mbb-item--button .nova-cta-button { font-size: 0 !important; padding: 0 !important; }
}







/* 🛒 Dropdown-корзина из нижней панели — выезжает ВВЕРХ над панелью */
@media (max-width: 768px) {
    .nova-mobile-bottom-bar .nova-cart-dropdown {
        position: fixed !important;
        left: 8px !important;
        right: 8px !important;
        top: auto !important;
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        z-index: 9999;
        display: none;
        max-height: 70vh;
        overflow-y: auto;
        background: #fff;
        border: 1px solid #e8ecf1;
        border-radius: 14px;
        box-shadow: 0 -10px 40px rgba(15, 23, 42, .2);
    }
    .nova-mobile-bottom-bar .nova-cart-dropdown.nova-dropdown-open {
        display: block !important;
    }
}




/* ============================================
   🧩 МЕГА-МЕНЮ «Каталог товаров»
   ============================================ */
/* 🔥 Якорь по левому краю кнопки — панель НЕ уходит за экран влево */
.nova-mega-width-full,
.nova-mega-width-container {
    left: 0 !important;
    right: auto !important;
    transform: translateY(10px) !important;
    top: 46px;
}
.nova-catalog-menu.nova-active > .nova-mega-width-full,
.nova-catalog-menu.nova-active > .nova-mega-width-container {
    transform: translateY(0) !important;
        width: 600px;
    margin-left: 17px;
}
.nova-mega-width-container { width: min(1240px, calc(100vw - 30px)); }
.nova-mega-width-full { width: calc(100vw - 30px); max-width: 1400px; border-radius: 0 0 12px 12px; }

.nova-mega-grid { display: grid; gap: 28px; padding: 12px 28px; width: 92%;}
.nova-mega-title {
    font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .04em;
    color: #0f172a; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 1px solid #eef0f4;
}
.nova-mega-nav { list-style: none; margin: 0; padding: 0; }
/* Вертикальный список */
.nova-mega-nav--vertical li { margin-bottom: 4px; }
.nova-mega-nav--vertical a {
    display: block; padding: 6px 10px; border-radius: 6px;
    
    
    transition: background .15s, color .15s;
}
.nova-mega-nav--vertical a:hover { background: rgba(0,0,0,.05); color: var(--ns-primary, #2563eb); }
.nova-mega-nav--vertical .sub-menu {
    list-style: none; margin: 4px 0 6px 12px;
    padding-left: 10px; border-left: 1px solid #eef0f4;
}
.nova-mega-nav--vertical .sub-menu a { font-size: 13px;    margin-top: -3px;
 color: #64748b; padding: 4px 8px; }
/* Горизонтальный (плитка) */
.nova-mega-nav--horizontal { display: flex; flex-wrap: wrap; gap: 8px; }
.nova-mega-nav--horizontal a {
    display: inline-block; padding: 7px 14px;
    background: #f1f5f9; border-radius: 999px;
    text-decoration: none; color: #334155; font-size: 13px;
    transition: background .15s;
}
.nova-mega-nav--horizontal a:hover { background: #e2e8f0; }
.nova-mega-nav--horizontal .sub-menu { display: none; }
/* Тёмная схема */
.nova-color-scheme-dark .nova-mega-title { color: #f1f5f9; border-color: #3a3a3a; }
.nova-color-scheme-dark .nova-mega-nav--vertical a { color: #cbd5e1; }
.nova-color-scheme-dark .nova-mega-nav--vertical a:hover { background: rgba(255,255,255,.06); }
.nova-color-scheme-dark .nova-mega-nav--horizontal a { background: #2c2c2c; color: #e2e8f0; }
/* Мобильные */
@media (max-width: 768px) {
    .nova-mega-grid { grid-template-columns: 1fr !important; gap: 20px; padding: 20px; }
    .nova-mega-width-full, .nova-mega-width-container { width: 100vw; max-width: 100vw; }
}


/* ============================================
   🌉 МОСТ: расширяем зону клика/наведения каталога
   (мышь спокойно долетает до меню, не закрывая его)
   ============================================ */
@media (min-width: 769px) {
    /* 1) Зона наведения кнопки тянется ВНИЗ на 80px */
    .nova-catalog-menu::after {
        content: '';
        position: absolute;
        left: 5;
        right: -33;
        top: -3%;
        height: 58px;
    }

    /* 2) Зона панели тянется ВВЕРХ на 80px (работает, когда меню открыто) */
    .nova-catalog-menu .nova-dropdown::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -62px;
        height: 73px;
        width: 35%;
    }
}



/* ============================================
   📂 MEGA: режимы подменю (accordion / hover / always)
   ============================================ */
/* Аккордеон и hover: подменю СКРЫТО по умолчанию */
.nova-mega-sub-accordion .nova-mega-nav .sub-menu,
.nova-mega-sub-hover .nova-mega-nav .sub-menu {
    display: none;
    margin: 2px 0 6px 12px;
    padding-left: 10px;
    border-left: 1px solid #eef0f4;
}
/* Аккордеон: раскрыт по клику (класс nova-open из JS) */
.nova-mega-sub-accordion .nova-mega-nav li.nova-open > .sub-menu {
    display: block;
    animation: novaMegaSlide .25s ease;
}
/* Hover: раскрыт при наведении */
.nova-mega-sub-hover .nova-mega-nav li:hover > .sub-menu {
    display: block;
    animation: novaMegaSlide .25s ease;
}
@keyframes novaMegaSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
/* Аккордеон: кликабельная стрелка у пунктов с детьми */
.nova-mega-sub-accordion .nova-mega-nav li.menu-item-has-children > a {
    position: relative;
    padding-right: 26px;
}
.nova-mega-toggle {
    position: absolute;
    right: 2px; top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.nova-mega-toggle::after {
    content: '';
    width: 7px; height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .5;
    transition: transform .2s ease;
}
.nova-mega-sub-accordion li.nova-open > a .nova-mega-toggle::after {
    transform: rotate(-135deg);
}
/* Hover-режим: декоративные стрелки (если включены) */
.nova-mega-arrows.nova-mega-sub-hover .nova-mega-nav li.menu-item-has-children > a {
    position: relative;
    padding-right: 20px;
}
.nova-mega-arrows.nova-mega-sub-hover .nova-mega-nav li.menu-item-has-children > a::after {
    content: '';
    position: absolute; right: 24px; top: 50%;
    width: 7px; height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    opacity: .5;
    transition: transform .2s ease;
}
.nova-mega-arrows.nova-mega-sub-hover .nova-mega-nav li:hover > a::after {
    transform: translateY(-20%) rotate(-135deg);
}

/* ============================================
   🧩 MEGA ФИНАЛ: ВЕРТИКАЛЬНОЕ подменю — ВПРАВО (напротив пункта)
   (удвоенный селектор перебивает все старые блоки)
   ============================================ */
.nova-mega-grid.nova-mega-grid .nova-mega-nav--vertical > li {
    position: relative !important;
}
.nova-mega-grid.nova-mega-grid .nova-mega-nav--vertical > li > .sub-menu {
    display: flex !important;
    position: absolute !important;
    top: 3.7px !important;
    left: 91% !important;
    right: auto !important;
    bottom: auto !important;
    margin: -16px 0 0 27px !important;
    padding: 15px 0px 0px 0px !important;
    min-width: 220px;
    max-width: 312px;
   
    background: #ffffff !important;
     border: 0px solid #eef0f4 !important; 
    border-radius: 0px 0px 10px 0px !important;
    /* box-shadow: 0 12px 30px rgba(15, 23, 42, .14) !important; */
    opacity: 0 !important;
    visibility: hidden !important;
    /* transform: translateX(10px); */
    /* transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; */
    z-index: 70;
    flex-direction: column;
    flex-wrap: nowrap;
}
.nova-mega-grid.nova-mega-grid .nova-mega-nav--vertical > li:hover > .sub-menu,
.nova-mega-grid.nova-mega-grid .nova-mega-nav--vertical > li.nova-open > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0);
    transition-delay: 0s;
}
/* «мост» в щели между списком и панелью — hover не теряется */
.nova-mega-grid.nova-mega-grid .nova-mega-nav--vertical > li > .sub-menu::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: -14px;
    width: 14px;
}
/* стрелка у родителей: закрыто → ВПРАВО, открыто → вниз */
.nova-mega-grid.nova-mega-grid .nova-mega-nav--vertical > li.menu-item-has-children > a::after {
    transform: translateY(-50%) rotate(-45deg) !important;
}

/* вложенные 3-го уровня — простым списком внутри панели */
.nova-mega-grid.nova-mega-grid .nova-mega-nav--vertical .sub-menu .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-left: 1px solid #eef0f4 !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 4px 0 0 10px !important;
    padding: 4px 0 0 10px !important;
    min-width: 0 !important;
    max-width: none !important;
}
/* 📱 мобильные: вправо некуда — аккордеон вниз по тапу */
@media (max-width: 768px) {
    .nova-mega-grid.nova-mega-grid .nova-mega-nav--vertical > li > .sub-menu {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin: 4px 0 6px 12px !important;
        padding: 0 0 0 10px !important;
        border: 0 !important;
        border-left: 1px solid #eef0f4 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .nova-mega-grid.nova-mega-grid .nova-mega-nav--vertical > li.nova-open > .sub-menu {
        display: block !important;
    }
}



/* ============================================
   🧭 ЭЛЕМЕНТ «МЕНЮ»: подменю как в каталоге
   (скрыто → выпадает при наведении)
   ============================================ */
.nova-main-nav li { position: relative; }

/* Подменю 1 уровня — выпадает ВНИЗ */
.nova-element-nav_menu .nova-main-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    display: block;
    gap: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
    z-index: 9999;
}
/* «мост», чтобы мышь не теряла подменю */
.nova-element-nav_menu .nova-main-nav ul ul::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -10px;
    height: 10px;
}

/* 2+ уровень — вылетает ВБОК */
.nova-element-nav_menu .nova-main-nav ul ul ul {
    top: -8px;
    left: 100%;
    margin-left: 6px;
    transform: translateX(-10px);
}

/* Открытие при наведении */
.nova-element-nav_menu .nova-main-nav li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
    transition-delay: 0s;
}

/* Пункты подменю */
.nova-element-nav_menu .nova-main-nav ul ul a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #334155 !important;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.nova-element-nav_menu .nova-main-nav ul ul a:hover {
    background: rgba(0, 0, 0, .05);
    color: var(--ns-primary, #15a699) !important;
}

/* Стрелка у пунктов с детьми */
.nova-element-nav_menu .nova-main-nav li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .5;
}
/* В тёмной схеме шапки — белый фон подменю остаётся, текст тёмный */
.nova-color-scheme-dark .nova-main-nav ul ul {
    background: #2c2c2c;
}
.nova-color-scheme-dark .nova-main-nav ul ul a {
    color: #e2e8f0 !important;
}
.nova-color-scheme-dark .nova-main-nav ul ul a:hover {
    background: rgba(255, 255, 255, .06);
}



/* ============================================
   🔤 ШРИФТЫ МЕГА-МЕНЮ (из настроек элемента)
   ============================================ */
.nova-mega-grid.nova-mega-grid .nova-mega-title {
    font-size: var(--mega-title-size, 13px);
    color: var(--mega-title-color, #0f172a);
    font-weight: var(--mega-title-weight, 700);
}
.nova-mega-grid.nova-mega-grid .nova-mega-nav a {
    font-size: var(--mega-link-size, 14px);
    color: var(--mega-link-color, #334155);
    font-weight: var(--mega-link-weight, 500);
    transition: color .15s ease;
}
.nova-mega-grid.nova-mega-grid .nova-mega-nav a:hover {
    color: var(--mega-link-hover, #15a699);
}


/* ============================================
   ✨ ЭФФЕКТЫ НАВЕДЕНИЯ МЕНЮ (выбор в админке)
   ============================================ */
.nova-main-nav.nova-menu-fx-underline .nova-nav-list a,
.nova-main-nav.nova-menu-fx-border .nova-nav-list a,
.nova-main-nav.nova-menu-fx-mirror .nova-nav-list a,
.nova-main-nav.nova-menu-fx-shine .nova-nav-list a,
.nova-main-nav.nova-menu-fx-bg .nova-nav-list a {
    position: relative;
    padding: 6px 12px;
    border-radius: 10px;
}

/* 1) Линия снизу (slide) */
.nova-menu-fx-underline .nova-nav-list a::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s ease;
}
.nova-menu-fx-underline .nova-nav-list a:hover::after { transform: scaleX(1); }

/* 2) Рамка вокруг пункта */
.nova-menu-fx-border .nova-nav-list a {
    border: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.nova-menu-fx-border .nova-nav-list a:hover {
    border-color: currentColor;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

/* 3) 🪞 ПРЕМИУМ: зеркальное отражение текста + бордер */
.nova-menu-fx-mirror .nova-nav-list a {
    border: 1px solid transparent;
    transition: border-color .3s ease;
}
.nova-menu-fx-mirror .nova-nav-list a:hover {
    border-color: var(--ns-primary, #15a699);
    background-image: linear-gradient(120deg,
        var(--ns-primary, #15a699) 0%,
        var(--ns-primary, #15a699) 35%,
        #ffffff 50%,
        var(--ns-primary, #15a699) 65%,
        var(--ns-primary, #15a699) 100%) !important;
    background-size: 220% 100%;
    background-position: 130% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: nova-menu-shine 1.1s ease forwards;
    -webkit-box-reflect: below -14px linear-gradient(transparent 60%, rgba(0, 0, 0, .22));
}
@keyframes nova-menu-shine {
    from { background-position: 130% 0; }
    to   { background-position: -30% 0; }
}

/* 4) Блик (волна света) */
.nova-menu-fx-shine .nova-nav-list a { overflow: hidden; }
.nova-menu-fx-shine .nova-nav-list a::before {
    content: '';
    position: absolute;
    top: 0; left: -70%;
    width: 45%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
    pointer-events: none;
}
.nova-menu-fx-shine .nova-nav-list a:hover::before { left: 125%; }

/* 5) Заливка фоном */
.nova-menu-fx-bg .nova-nav-list a {
    border-radius: 999px;
    transition: background .25s ease, color .25s ease;
}
.nova-menu-fx-bg .nova-nav-list a:hover {
    background: var(--ns-primary, #15a699);
    color: #ffffff !important;
}
