/**
 * Новий дизайн меню для nacredit.local
 * Всі стилі з унікальним префіксом nac-menu- для уникнення конфліктів
 */

/* Reset для меню */
.nac-menu-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
.nac-menu-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nac-menu-container {
    max-width: 1140px;
	margin: 0 auto;
    padding: 0 15px;
}

.nac-menu-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

/* Logo */
.nac-menu-logo img {
    height: 32px;
    width: auto;
}

/* Desktop Navigation */
.nac-menu-desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nac-menu-nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.nac-menu-nav-menu > li {
    position: relative;
}

.nac-menu-nav-menu > li > a {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.nac-menu-nav-menu > li > a:hover {
    color: #1a1a1a;
}

/* Активна категорія */
.nac-menu-nav-menu > li.active > a {
    color: #1a1a1a;
    font-weight: 700;
}

/* Dropdown */
.nac-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nac-menu-nav-menu li:hover .nac-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nac-menu-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

.nac-menu-dropdown a:last-child {
    border-bottom: none;
}

.nac-menu-dropdown a:hover {
    background: #f9fafb;
    color: #1a1a1a;
}

/* Search Container */
.nac-menu-search-container {
    position: relative;
    margin-left: 16px;
}

.nac-menu-search-toggle {
    background: none;
    border: none;
    color: #374151;
    padding: 8px;
    cursor: pointer;
}

.nac-menu-search-toggle:hover {
    color: #00955c;
}

.nac-menu-search-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Випадаюча форма пошуку */
.nac-menu-search-form {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    min-width: 280px;
    z-index: 9999;
}

.nac-menu-search-form.active {
    display: block;
}

.nac-menu-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.nac-menu-search-input:focus {
    border-color: #9ca3af;
}


/* Mobile Toggle */
.nac-menu-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #374151;
    padding: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nac-menu-mobile-toggle:hover {
    color: #1a1a1a;
}

.nac-menu-hamburger-icon {
    width: 24px;
    height: 24px;
    fill: rgb(48 147 101);
}

/* Mobile Menu */
.nac-menu-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.nac-menu-mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.nac-menu-mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nac-menu-mobile-menu-header img {
    height: 34px;
    width: auto;
}

.nac-menu-mobile-close {
    background: none;
    border: none;
    font-size: 34px;
    color: #00955C;
    cursor: pointer;
}


/* Mobile Search */
.nac-menu-mobile-search {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.nac-menu-mobile-search-form {
display: flex;
}

.nac-menu-mobile-search input {
    flex: 1 !important;
    padding: 10px 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    padding-left: 12px !important;
    position: static !important;
}

.nac-menu-mobile-search input:focus {
    outline: none !important;
    border-color: #9ca3af !important;
}

.nac-menu-mobile-search-btn {
    background: #00955c;
    color: white;
    border: none;
padding: 10px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.nac-menu-mobile-nav-list {
    list-style: none;
    padding: 0;
}

.nac-menu-mobile-nav-list > li {
    border-bottom: 1px solid #f3f4f6;
}

.nac-menu-mobile-nav-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.nac-menu-mobile-nav-list > li.active > a {
    color: #1a1a1a;
    font-weight: 700;
}

.nac-menu-mobile-nav-list > li.nac-menu-has-dropdown > a::after {
    content: "›";
    font-size: 18px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.nac-menu-mobile-nav-list > li.nac-menu-has-dropdown.open > a::after {
    transform: rotate(90deg);
}

.nac-menu-mobile-dropdown {
    background: #f9fafb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nac-menu-mobile-dropdown.open {
    max-height: 300px;
}

.nac-menu-mobile-dropdown a {
    display: block;
    padding: 12px 40px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.nac-menu-mobile-dropdown a:hover {
    background: #ffffff;
    color: #374151;
}

.nac-menu-mobile-menu.active {
    display: block !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nac-menu-mobile-toggle {
        display: block;
    }
    
    .nac-menu-desktop-nav {
        display: none;
    }
}

/* Додаткові стилі для кращої інтеграції з WordPress */
.nac-menu-header a {
    color: inherit;
    text-decoration: none;
}

.nac-menu-header button {
    background: none;
    border: none;
    cursor: pointer;
}

.nac-menu-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


/* Забезпечення правильного відображення на різних темах */
.nac-menu-header {
    line-height: 1.6;
    color: #1a1a1a;
}
