header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background-color: #fff;
    max-width: 1450px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
}

.header_container {
    display: flex;
    max-height: 100px;
    margin-top: 5px;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.header_logo {
    display: flex;
    align-items: center;
}

.header_logo_img {
    height: 82px;
    padding-left: 40px;
    margin-top: 15px;
}

.header_menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    margin-left: 20px;
    gap: 10px;
}

.header_search {
    position: relative;
    min-width: 300px;
    width: 100%;
    max-width: 460px;
    margin-right: 15px;
}

.header_search form {
    width: 100%;
    display: flex;
}

.header_search input[type="text"] {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    outline: none;
}

.header_search button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

.header_search button img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}


@media (min-width: 1200px) {
    .header_search input[type="text"] {
        font-size: 16px;
    }
}

.header_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-right: auto;
}

.header_info_l {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.header_info_icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.header_info_span {
    font-size: 12px;
    color: #002080;
    white-space: nowrap;
    font-family: 'Exo 2', sans-serif;
    display: flex;
}

.header_info_r {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.header_cart {
    margin: 0 10px;
}

.header_cart_lower {
    display: flex;
    gap: 5px;
}

.header_cart_link {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 5px;
}

.header_cart_icon {
    margin-right: 10px;
}

.header_cart_icon img {
    width: 24px;
    height: 24px;
}

.header_cart_info {
    display: flex;
    flex-direction: column;
}

.header_cart_title {
    font-size: 13px;
    color: #333;
    font-weight: bold;
}

.header_cart_count {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.header_cart_price {
    font-size: 12px;
    color: #FF6600;
    font-weight: bold;
    white-space: nowrap;
}

.header_upper_menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header_lower_menu {
    display: flex;
    width: 100%;
    gap: 2px;
}

.header_menu_item {
    position: relative;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    cursor: pointer;
    background-color: #002080;
    font-size: 18px;
    font-family: "Font Awesome 5 Free";
    line-height: 20px !important;
}

.header_menu_item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.header_menu_item_span {
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    font-family: 'Exo 2', sans-serif;
}

.header_menu_item:hover {
    background-color: #8c8c8c;;
}

/* Специальные стили для OUTLET */
.header_menu_item:nth-child(6) .header_menu_item_span {
    font-weight: bold;
}

/* Стили для модальных окон (мега-меню) */
.mega_menu {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100vw;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.header_menu_item:hover .mega_menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega_menu_content {
    max-width: 1450px;
    margin: 0 auto;
    display: flex;
    padding: 20px 30px;
    gap: 30px;
    flex-wrap: wrap;
}

.mega_menu_bottom {
    max-width: 1450px;
    margin: 0 auto;
    display: flex;
    padding: 0 30px 20px 30px;
    gap: 30px;
    border-top: 1px solid #ddd;
    margin-top: 20px;
    padding-top: 20px;
}

.mega_menu_column {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}

.mega_menu_column h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Exo 2', sans-serif;
}

.mega_menu_column h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mega_menu_column h3 a:hover {
    color: #002080;
}

.mega_menu_column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 15px;
}

.mega_menu_column ul:last-child {
    margin-bottom: 0;
}

.mega_menu_column ul li {
    margin-bottom: 4px;
}

.mega_menu_column ul li a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Exo 2', sans-serif;
    transition: color 0.2s ease;
    display: block;
    padding: 2px 0;
}

.mega_menu_column ul li a:hover {
    color: #002080;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .mega_menu {
        top: 100px;
        width: 100%;
        left: 0;
    }
    
    .mega_menu_content,
    .mega_menu_bottom {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .mega_menu_column {
        min-width: auto;
        max-width: none;
    }
    
    .mega_menu_column h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .mega_menu_column ul li a {
        font-size: 14px;
        padding: 3px 0;
    }
}

/* Анимация появления */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega_menu.show {
    animation: fadeInDown 0.3s ease;
}

/* Дополнительные стили для улучшения внешнего вида */
.mega_menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #002080, #FF6600);
}

/* Стили для пустых заголовков */
.mega_menu_column h3:not(:has(+ ul)) {
    margin-bottom: 20px;
    color: #666;
    border-bottom: 1px solid #ccc;
}

