:root {
    --site-header-height: 118px;
}

.header-area {
    position: fixed;
    inset: 0 0 auto;
    z-index: 999;
    padding: 18px 0;
    background: rgba(248, 250, 252, .96);
    box-shadow: 0 8px 30px rgba(34, 49, 63, .07);
    backdrop-filter: blur(12px);
}

.main-wrapper { padding-top: var(--site-header-height); }
.ztm-category-bar { display: none; }

.header-middle > .container {
    width: min(1320px, calc(100% - 30px));
    max-width: none;
    padding-inline: 0;
}

.ztm-header-card {
    display: grid;
    grid-template-columns: max-content minmax(240px, 350px) max-content;
    justify-content: space-between;
    align-items: center;
    gap: 34px;
    min-height: 82px;
    padding: 14px 28px;
    border: 1px solid #dce5e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(34, 49, 63, .08);
}

.ztm-brand a { display: inline-flex; align-items: center; gap: 10px; }
.ztm-brand-mark {
    color: var(--ztm-primary);
    font-size: 40px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    letter-spacing: -5px;
}
.ztm-brand-mark span { color: var(--ztm-accent); }
.ztm-brand-name { color: var(--ztm-text); font-size: 23px; font-weight: 800; letter-spacing: -.7px; }

.ztm-header-search { width: min(100%, 350px); min-width: 0; }
.ztm-header-search .categori-search-wrap { width: 100%; border: 0; background: transparent; }
.ztm-header-search .search-wrap-3 { width: 100%; }
.ztm-header-search .search-wrap-3 form { position: relative; }
.ztm-header-search .search-wrap-3 form input {
    width: 100%; height: 52px; padding: 0 52px 0 22px;
    border: 1.5px solid var(--ztm-accent); border-radius: 999px;
    color: var(--ztm-text); background: #fff;
}
.ztm-header-search .categori-search-wrap.categori-search-wrap-modify-3 .search-wrap-3 form button.blue {
    position: absolute; right: 6px; top: 50%; width: 40px; height: 40px; min-height: 0;
    padding: 0; border: 0; border-radius: 50%; background: var(--ztm-primary); color: #fff;
    transform: translateY(-50%); display: grid; place-items: center;
}
.ztm-header-search .categori-search-wrap.categori-search-wrap-modify-3 .search-wrap-3 form button.blue:hover {
    color: #fff;
    background: var(--ztm-accent);
}

.ztm-header-links { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.ztm-header-links a { position: relative; color: var(--ztm-text); font-size: 13px; font-weight: 700; }
.ztm-header-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: var(--ztm-accent); transition: right .2s; }
.ztm-header-links a:hover { color: var(--ztm-primary); }
.ztm-header-links a:hover::after { right: 0; }
.ztm-nav-dropdown { position: relative; }
.ztm-nav-dropdown > a i { margin-left: 4px; font-size: 9px; }
.ztm-nav-dropdown-menu {
    position: absolute; top: calc(100% + 18px); left: -18px; display: grid; min-width: 175px;
    padding: 10px; border: 1px solid #dce5e8; border-radius: 14px; background: #fff;
    box-shadow: 0 15px 35px rgba(34,49,63,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.ztm-nav-dropdown:hover .ztm-nav-dropdown-menu,
.ztm-nav-dropdown:focus-within .ztm-nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ztm-nav-dropdown-menu a { padding: 9px 10px; border-radius: 8px; }
.ztm-nav-dropdown-menu a::after { display: none; }
.ztm-nav-dropdown-menu a:hover { background: var(--ztm-highlight); }

.mobile-header-active { z-index: 1001; pointer-events: none; transform: translateX(100%); -webkit-transform: translateX(100%); }
.mobile-header-active.sidebar-visible { pointer-events: auto; transform: translateX(0); -webkit-transform: translateX(0); }
.site-mobile-contact { background: var(--ztm-highlight); }
.site-mobile-contact ul { margin: 0; }
.site-mobile-contact ul li { display: flex; gap: 10px; color: #657485; line-height: 1.5; overflow-wrap: anywhere; }
.site-mobile-contact ul li i { color: var(--ztm-accent); }
.site-mobile-contact a { color: #657485; }

.header-small-device .header-action.header-action-flex { display: flex; justify-content: flex-end; }
.header-small-device .header-action .same-style-2 a.mobile-header-button-active {
    display: flex; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center;
    border: 1px solid #cfe1e1; border-radius: 12px; background: var(--ztm-highlight); color: var(--ztm-primary); font-size: 22px;
}

@media (max-width: 1199px) {
    .ztm-header-card {
        grid-template-columns: max-content minmax(190px, 220px) max-content;
        gap: 14px;
        padding-inline: 14px;
    }
    .ztm-header-search { max-width: 220px; }
    .ztm-header-links { gap: 10px; }
    .ztm-header-links a { font-size: 11px; }
    .ztm-brand a { gap: 7px; }
    .ztm-brand-name { font-size: 18px; }
    .ztm-brand-mark { font-size: 35px; }
}

@media (max-width: 991px) {
    :root { --site-header-height: 80px; }
    .header-area { padding: 12px 0; }
    .header-small-device > .container { width: calc(100% - 20px); max-width: none; }
    .header-small-device.small-device-ptb-1 { padding: 0; }
    .ztm-brand-mark { font-size: 34px; }
    .ztm-brand-name { font-size: 20px; }
}

@media (max-width: 390px) { .ztm-brand-name { font-size: 17px; } }
