/* HEADER MODULE CSS */
.top-bar {
    background: #F2F2F2;
    padding: 8px 0;
    font-size: 12px;
    color: #555;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.social-icons { display: flex; gap: 8px; align-items: center; }
.social-icons a {
    display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; text-decoration: none; font-size: 14px;
}
.social-icons .fb { background: #1877F2; }
.social-icons .yt { background: #FF0000; }
.social-icons .zl { background: #0084FF; line-height: 1; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--clr-border);
    position: sticky; top: 0; z-index: 1000;
}
.header-main {
    display: flex; justify-content: space-between; align-items: center; height: 100px;
}
.logo, .logo a { height: 100%; display: flex; align-items: center; }
.logo img { height: 96%; width: auto; object-fit: contain; transition: 0.3s ease; }
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 25px; }
.main-nav a { font-weight: 700; font-size: 13px; text-transform: uppercase; padding: 30px 0; display: block;}
.main-nav a:hover, .main-nav li.current-menu-item a { color: var(--clr-primary); box-shadow: inset 0 -3px 0 var(--clr-primary); }

/* MEGAMENU SYSTEM */
.has-megamenu { position: static; }
.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 24px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
    border-top: 3px solid var(--clr-primary);
}
.has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: flex-start;
}
.megamenu-col {
    border-right: 1px solid #f0f0f0;
    padding-right: 15px;
}
.megamenu-col:last-child {
    border-right: none;
    padding-right: 0;
}

@media (max-width: 1200px) {
    .megamenu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .megamenu-col {
        border-right: none;
        padding-right: 0;
        margin-bottom: 15px;
    }
}

.megamenu-col h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(0, 52, 120, 0.12);
    letter-spacing: 0.5px;
}
.megamenu-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.megamenu-col li { margin-bottom: 0; }
.megamenu-col ul li a {
    font-weight: 500;
    font-size: 13px;
    color: #444;
    padding: 0 !important;
    text-transform: none;
    box-shadow: none !important;
    transition: 0.2s;
    display: block;
}
.megamenu-car-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    transition: all 0.25s ease;
    border-radius: 6px;
    background: #fdfdfd;
    border: 1px solid #f5f5f5;
}
.megamenu-car-item:hover {
    background: #f4f7fa;
    border-color: rgba(0, 52, 120, 0.15);
    box-shadow: 0 4px 12px rgba(0, 52, 120, 0.05);
}
.megamenu-car-thumb {
    width: 65px;
    height: 38px;
    flex-shrink: 0;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.megamenu-car-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.megamenu-col ul li a:hover .megamenu-car-thumb img {
    transform: scale(1.1) translateX(2px);
}
.megamenu-car-name {
    line-height: 1.2;
    font-weight: 700;
    font-size: 11.5px;
    color: #333;
    transition: color 0.2s;
}
.megamenu-col ul li a:hover .megamenu-car-name {
    color: var(--clr-primary);
}

@media (max-width: 991px) {
    .megamenu-grid { grid-template-columns: repeat(3, 1fr); }
}

.header-right { display: flex; align-items: center; gap: 20px; }
.header-contact { display: flex; align-items: center; gap: 10px; text-align: right; }
.header-contact .icon { color: var(--clr-primary); font-size: 24px; }
.header-contact b { display: block; color: var(--clr-primary); font-size: 16px; }
.header-contact span { font-size: 12px; color: var(--clr-text-muted); }

@media (max-width: 768px) {
    .header-main { height: 70px; }
    .logo img { height: 96%; }
    .header-contact, .header-right .btn-red { display: none; }
}
