
/* In Ấn Q7 – Header & Mega Menu */
body.inq7-hide-theme-header #header,
body.inq7-hide-theme-header .header-wrapper,
body.inq7-hide-theme-header header#header {
    display: none !important;
}

body.inq7-menu-open {
    overflow: hidden;
}

.inq7-site-header,
.inq7-site-header * {
    box-sizing: border-box;
}

.inq7-site-header input,
.inq7-site-header button,
.inq7-site-header select,
.inq7-site-header textarea {
    font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.inq7-site-header {
    position: relative;
    z-index: 999;
    width: 100%;
    background: var(--inq7-primary, #0F2B5C);
    color: #fff;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    line-height: 1.35;
}

body.inq7-sticky-header-enabled .inq7-site-header {
    position: sticky;
    top: 0;
}

body.admin-bar.inq7-sticky-header-enabled .inq7-site-header {
    top: 32px;
}

.inq7-header-container {
    width: min(1560px, calc(100% - 48px));
    margin: 0 auto;
}

.inq7-header-main {
    background: var(--inq7-primary, #0F2B5C);
}

.inq7-header-main-inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: 190px minmax(320px, 520px) 1fr;
    align-items: center;
    gap: 28px;
}

.inq7-header-logo {
    display: block;
    width: 180px;
    line-height: 0;
}

.inq7-header-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

.inq7-product-search {
    width: 100%;
    display: flex;
    align-items: stretch;
    margin: 0;
}

.inq7-product-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 16px;
    border: 2px solid #fff;
    border-radius: 0;
    background: #fff;
    color: #222;
    font-size: 15px;
    box-shadow: none;
}

.inq7-product-search input[type="search"]:focus {
    outline: 2px solid rgba(249, 168, 37, .4);
    outline-offset: 1px;
}

.inq7-product-search button {
    flex: 0 0 44px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--inq7-accent, #F9A825);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.inq7-product-search button svg,
.inq7-site-header svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.inq7-header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 30px;
}

.inq7-social-list {
    display: flex;
    align-items: center;
    gap: 7px;
}

.inq7-social-list > a:not(.inq7-header-hotline) {
    width: 38px;
    height: 38px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: #fff;
    transition: transform .18s ease, filter .18s ease;
}

.inq7-social-list > a:not(.inq7-header-hotline):hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.inq7-social-list svg {
    width: 21px;
    height: 21px;
}

.inq7-social-facebook { background: #3b5998; }
.inq7-social-instagram { background: #43658a; }
.inq7-social-tiktok { background: #050505; }
.inq7-social-youtube { background: #e32926; }

.inq7-header-hotline {
    color: #fff;
    text-align: right;
    text-decoration: none;
    display: grid;
    gap: 1px;
}

.inq7-header-hotline:hover {
    color: var(--inq7-accent, #F9A825);
}

.inq7-header-hotline small {
    font-size: 11px;
    letter-spacing: .08em;
    opacity: .8;
}

.inq7-header-hotline strong {
    font-size: 18px;
    letter-spacing: .03em;
}

.inq7-cart-link {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.inq7-cart-link:hover {
    color: var(--inq7-accent, #F9A825);
}

.inq7-cart-text {
    font-size: 13px;
    font-weight: 700;
}

.inq7-cart-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
}

.inq7-cart-icon svg {
    width: 23px;
    height: 23px;
}

.inq7-cart-icon b {
    position: absolute;
    top: -11px;
    right: -10px;
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    padding: 0 5px;
    background: #fff;
    color: var(--inq7-primary, #0F2B5C);
    font-size: 11px;
    line-height: 21px;
    text-align: center;
}

.inq7-main-nav {
    position: relative;
    background: var(--inq7-primary, #0F2B5C);
    border-top: 1px solid rgba(255,255,255,.07);
}

.inq7-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 52px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
}

.inq7-main-menu > li {
    margin: 0;
    display: flex;
    align-items: stretch;
}

.inq7-main-menu > li > a,
.inq7-mega-trigger {
    border: 0;
    background: transparent;
    color: #fff;
    min-height: 52px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.inq7-main-menu > li > a:hover,
.inq7-main-menu > li > a:focus-visible {
    color: var(--inq7-accent, #F9A825);
}

.inq7-mega-trigger {
    color: var(--inq7-menu-accent, #79E838);
}

.inq7-mega-trigger svg {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.inq7-mega-parent.is-open .inq7-mega-trigger svg {
    transform: rotate(180deg);
}

.inq7-mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1001;
    padding: 0;
    background: #fff;
    color: #18264d;
    border-top: 1px solid #e7e9ef;
    border-bottom: 1px solid #d9dde7;
    box-shadow: 0 15px 35px rgba(8, 23, 54, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}

.inq7-mega-parent:hover .inq7-mega-menu,
.inq7-mega-parent:focus-within .inq7-mega-menu,
.inq7-mega-parent.is-open .inq7-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.inq7-mega-inner {
    width: min(1560px, calc(100% - 48px));
    margin: 0 auto;
    padding: 26px 0 20px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: 0;
}

.inq7-mega-column {
    min-width: 0;
    padding: 0 22px 18px;
    border-right: 1px solid #eef0f5;
}

.inq7-mega-column:first-child {
    padding-left: 0;
}

.inq7-mega-column:last-child {
    border-right: 0;
    padding-right: 0;
}

.inq7-mega-visual {
    display: block;
    height: 105px;
    margin-bottom: 8px;
    text-decoration: none;
}

.inq7-mega-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .2s ease;
}

.inq7-mega-visual:hover img {
    transform: translateY(-3px) scale(1.02);
}

.inq7-mega-column h3 {
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e3e6ed;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.inq7-mega-column h3 a {
    color: var(--inq7-primary, #0F2B5C);
    text-decoration: none;
}

.inq7-mega-column h3 a:hover {
    color: var(--inq7-accent, #F9A825);
}

.inq7-mega-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.inq7-mega-column li {
    margin: 0;
}

.inq7-mega-column li a {
    position: relative;
    display: block;
    padding: 6px 0;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    transition: color .15s ease, padding-left .15s ease;
}

.inq7-mega-column li a:hover {
    color: var(--inq7-accent, #F9A825);
    padding-left: 6px;
}

.inq7-mobile-menu-button,
.inq7-mobile-search-wrap,
.inq7-mobile-panel,
.inq7-mobile-backdrop {
    display: none;
}

@media (max-width: 1180px) {
    .inq7-header-main-inner {
        grid-template-columns: 170px minmax(280px, 1fr) auto;
        gap: 18px;
    }

    .inq7-header-actions {
        gap: 18px;
    }

    .inq7-social-list > a:not(.inq7-header-hotline) {
        width: 34px;
        height: 34px;
    }

    .inq7-cart-text {
        display: none;
    }

    .inq7-main-menu > li > a,
    .inq7-mega-trigger {
        padding-left: 15px;
        padding-right: 15px;
        font-size: 14px;
    }

    .inq7-mega-column {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 900px) {
    body.admin-bar.inq7-sticky-header-enabled .inq7-site-header {
        top: 46px;
    }

    .inq7-header-container {
        width: min(100% - 24px, 760px);
    }

    .inq7-header-main-inner {
        min-height: 70px;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 12px;
    }

    .inq7-mobile-menu-button {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: rgba(255,255,255,.1);
        color: #fff;
        border-radius: 6px;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .inq7-header-logo {
        justify-self: center;
        width: min(190px, 60vw);
    }

    .inq7-header-logo img {
        max-height: 52px;
        object-position: center;
    }

    .inq7-header-main-inner > .inq7-product-search,
    .inq7-header-actions .inq7-social-list,
    .inq7-main-nav {
        display: none;
    }

    .inq7-header-actions {
        justify-self: end;
        display: block;
    }

    .inq7-cart-link {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
    }

    .inq7-cart-icon {
        width: 38px;
        height: 38px;
    }

    .inq7-cart-text {
        display: none;
    }

    .inq7-mobile-search-wrap {
        display: block;
        width: min(100% - 24px, 760px);
        margin: 0 auto;
        padding: 0 0 12px;
    }

    .inq7-product-search-mobile input[type="search"],
    .inq7-product-search-mobile button {
        height: 40px;
    }

    .inq7-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(5, 14, 35, .58);
        backdrop-filter: blur(2px);
    }

    .inq7-mobile-backdrop.is-visible {
        display: block;
    }

    .inq7-mobile-panel {
        display: block;
        position: fixed;
        z-index: 1101;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 390px);
        background: #fff;
        color: #18264d;
        box-shadow: 20px 0 45px rgba(0,0,0,.18);
        transform: translateX(-105%);
        transition: transform .25s ease;
        overflow-y: auto;
    }

    body.admin-bar .inq7-mobile-panel {
        top: 46px;
    }

    .inq7-mobile-panel.is-open {
        transform: translateX(0);
    }

    .inq7-mobile-panel-head {
        min-height: 82px;
        padding: 14px 16px;
        background: var(--inq7-primary, #0F2B5C);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .inq7-mobile-panel-head img {
        width: 170px;
        max-height: 55px;
        object-fit: contain;
        object-position: left center;
    }

    .inq7-mobile-close {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255,255,255,.35);
        border-radius: 6px;
        background: transparent;
        color: #fff;
        display: grid;
        place-items: center;
    }

    .inq7-mobile-panel nav {
        padding: 8px 0 30px;
    }

    .inq7-mobile-panel nav > a,
    .inq7-mobile-products-toggle {
        width: 100%;
        min-height: 48px;
        padding: 0 18px;
        border: 0;
        border-bottom: 1px solid #edf0f5;
        background: #fff;
        color: #17284f;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        text-decoration: none;
        font-size: 14px;
        font-weight: 800;
    }

    .inq7-mobile-products-toggle {
        color: var(--inq7-primary, #0F2B5C);
    }

    .inq7-mobile-products-toggle svg,
    .inq7-mobile-group button > svg {
        width: 17px;
        height: 17px;
        transition: transform .2s ease;
    }

    .inq7-mobile-products-toggle[aria-expanded="true"] svg,
    .inq7-mobile-group button[aria-expanded="true"] > svg {
        transform: rotate(180deg);
    }

    .inq7-mobile-products {
        display: none;
        background: #f7f8fb;
    }

    .inq7-mobile-products.is-open {
        display: block;
    }

    .inq7-mobile-group {
        border-bottom: 1px solid #e7eaf0;
    }

    .inq7-mobile-group button {
        width: 100%;
        min-height: 58px;
        padding: 7px 18px;
        border: 0;
        background: transparent;
        color: var(--inq7-primary, #0F2B5C);
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        font-size: 13px;
        font-weight: 800;
    }

    .inq7-mobile-group button span {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .inq7-mobile-group button img {
        flex: 0 0 52px;
        width: 52px;
        height: 42px;
        object-fit: contain;
    }

    .inq7-mobile-group ul {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0 18px 12px 82px;
    }

    .inq7-mobile-group ul.is-open {
        display: grid;
    }

    .inq7-mobile-group li {
        margin: 0;
    }

    .inq7-mobile-group li a {
        display: block;
        padding: 7px 0;
        color: #222;
        text-decoration: none;
        font-size: 13px;
        font-weight: 650;
    }

    .inq7-mobile-hotline {
        margin: 14px 16px 0;
        min-height: 46px !important;
        border: 0 !important;
        border-radius: 6px;
        background: var(--inq7-accent, #F9A825) !important;
        color: #fff !important;
        justify-content: center !important;
    }
}

@media (max-width: 782px) {
    body.admin-bar.inq7-sticky-header-enabled .inq7-site-header {
        top: 46px;
    }
}

@media (max-width: 480px) {
    .inq7-header-main-inner {
        min-height: 64px;
    }

    .inq7-header-logo {
        width: min(170px, 57vw);
    }

    .inq7-mobile-search-wrap {
        padding-bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inq7-mega-menu,
    .inq7-mobile-panel,
    .inq7-mega-visual img,
    .inq7-mega-column li a,
    .inq7-mega-trigger svg {
        transition: none !important;
    }
}
