/* ==========================================================================
   ADTPK Header — modern refresh
   Layout reference: clean corporate header (logo left / nav center / CTA +
   plain phone icon on the right), single row, sticky on scroll.
   Loaded after style.min.css — rules here intentionally win on specificity.
   Template's own mobile/meanmenu breakpoint is max-width:992px, so all
   desktop-only layout changes below are scoped to min-width:993px to avoid
   fighting that breakpoint.
   ========================================================================== */

.m-head {
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
    transition: box-shadow .25s ease;
    font-family: 'Open Sans', Arial, sans-serif;
}
.m-head.is-stuck {
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

@media (min-width: 993px) {
    .m-head {
        position: sticky !important;
        top: 0;
        z-index: 999999999;
    }
    .m-h {
        display: flex;
        align-items: center;
        min-height: 80px;
    }
    .m-head .logo {
        position: static !important;
        left: auto !important;
        top: auto !important;
        float: none !important;
        margin-right: auto !important;
        display: inline-flex !important;
        align-items: center;
        order: 1;
    }
    .m-head .logo h1 {
        margin: 0;
        width: auto !important;
    }
    .m-head .logo-01 img {
        max-height: 60px;
        width: auto;
    }

    /* ---- Primary nav ---- */
    .nav-heng {
        float: none !important;
        display: flex;
        align-items: center;
        margin: 0 40px 0 0 !important;
        order: 2;
    }
    .nav-heng > li {
        padding: 24px 0 !important;
        margin: 0 23px !important;
    }
    .nav-heng > li > a {
        font-family: 'Open Sans', Arial, sans-serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        letter-spacing: .02em;
        color: var(--color-heading) !important;
        text-transform: uppercase;
        position: relative;
        padding: 0 0 4px 0 !important;
        white-space: nowrap;
    }
    .nav-heng > li > a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 0;
        height: 4px;
        background: var(--color-accent);
        transition: width .45s ease;
    }
    .nav-heng > li:hover > a,
    .nav-heng > li > a[aria-current="page"] {
        color: var(--color-accent) !important;
        background: transparent !important;
    }
    .nav-heng > li:hover > a::after,
    .nav-heng > li > a[aria-current="page"]::after {
        width: 100%;
    }

    /* Dropdown panels: clean card instead of the old boxy default */
    .nav-shu-box, .nav-heng-box {
        border-radius: 6px !important;
        border: 1px solid var(--color-border-light) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,.12) !important;
    }

    /* Products mega-menu: the category row was left-anchored under the logo
       instead of centered under the panel — center it as a group. */
    .nav-heng-box > ul {
        display: flex !important;
        justify-content: center;
        gap: 50px;
    }
    .nav-heng-box > ul > li {
        width: auto !important;
        flex: 0 0 auto;
        border-left: 0 !important;
    }

    /* ---- Header actions: CTA button ---- */
    .attr-nav {
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        order: 3;
    }
}

/* .attr-nav a carries a leftover background:url(sou.png) search-icon watermark
   from the template's unused search widget — strip it so our own button renders clean. */
.attr-nav a {
    background: none !important;
    width: auto !important;
    height: auto !important;
}

.attr-nav .hdr-cta {
    display: inline-flex;
    align-items: center;
    width: auto !important;
    height: 40px !important;
    padding: 0 24px;
    border-radius: 20px;
    background: var(--color-accent) !important;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}
.attr-nav .hdr-cta:hover {
    background: #8a1526 !important;
    transform: translateY(-1px);
    color: #fff;
}

/* ---- Mobile (matches template's own breakpoint) ----
   Hide the phone/CTA action cluster entirely: it floats in the same row as
   the meanmenu hamburger and fights its layout, and mobile already has the
   WhatsApp widget + footer social links for quick contact. ---- */
@media (max-width: 992px) {
    .attr-nav { display: none !important; }
}
