.ktos-header {
    --ktos-header-bg: #ffffff;
    --ktos-header-border: #d0d0d0;
    --ktos-header-text: #1f2937;
    --ktos-header-muted: #6b7280;
    --ktos-gap: 12px;
    --ktos-icon-gap: 10px;
    --ktos-header-radius: 34px;
    --ktos-icon-size: 24px;
    --ktos-logo-size: 48px;
    --ktos-search-height: 48px;
    --ktos-search-radius: 40px;
    --ktos-badge-bg: #111111;
    --ktos-badge-color: #ffffff;
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--ktos-header-bg) !important;
    color: var(--ktos-header-text);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--kt-z-header, 60);
}

.ktos-header,
.ktos-header * {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .ktos-header {
        display: none;
    }
}

.ktos-header__inner {
    max-width: var(--ktos-header-maxw, var(--ktos-header-maxw-bucket, 1300px));
    width: 100%;
    margin: 0 auto;
    padding: 8px var(--ktos-header-px, 16px);
    display: flex;
    align-items: center;
    gap: var(--ktos-gap);
    background: var(--ktos-header-bg);
    border: 1px solid var(--ktos-header-border);
    border-radius: var(--ktos-header-radius, var(--ktos-header-radius-bucket, 34px));
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}


.ktos-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 0;
}

.ktos-brand__link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.ktos-brand__logo {
    width: var(--ktos-logo-size);
    height: var(--ktos-logo-size);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--ktos-header-border);
    background: #ffffff;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: scale(var(--ktos-logo-scale, 1));
    transform-origin: left center;
}

.ktos-brand__logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ktos-brand__logo-fallback {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ktos-header-text);
}

.ktos-brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ktos-brand__title {
    font-size: var(--ktos-title-size, 1.05rem);
    font-weight: var(--ktos-title-weight, 700);
    line-height: 1.2;
    white-space: nowrap;
}

.ktos-brand__tagline {
    font-size: var(--ktos-tagline-size, 0.85rem);
    color: var(--ktos-header-muted);
    line-height: 1.2;
    white-space: nowrap;
}

.ktos-mega-btn {
    flex-shrink: 0;
}

.ktos-search {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ktos-search__field {
    position: relative;
    width: min(100%, var(--ktos-search-width, var(--ktos-search-width-bucket, 520px)));
    flex: 1 1 auto;
}

.ktos-search .ktos-smart-search-box {
    width: 100%;
    position: relative;
    flex: 1 1 auto;
}

.ktos-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9aa0a6;
    pointer-events: none;
}

.ktos-search__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ktos-search__input,
.ktos-search input[type="search"],
.ktos-search input[type="text"],
.ktos-smart-search-input {
    width: 100%;
    height: var(--ktos-search-height);
    padding: 0 16px 0 46px;
    border-radius: var(--ktos-search-radius, var(--ktos-search-radius-bucket, 40px));
    border: 1px solid #dddddd;
    background: #ffffff;
    color: var(--ktos-header-text);
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transition: box-shadow 160ms ease, border-color 160ms ease;
}

.ktos-search .ktos-smart-search-input:focus {
    outline: none;
    border-color: #c7c7c7;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1), 0 0 0 3px rgba(0, 229, 255, 0.16);
}

.ktos-search .ktos-smart-search-input {
    width: 100% !important;
    height: var(--ktos-search-height) !important;
    min-height: var(--ktos-search-height) !important;
    padding: 0 16px 0 46px !important;
    border-radius: var(--ktos-search-radius, var(--ktos-search-radius-bucket, 40px)) !important;
    border: 1px solid #dddddd !important;
    background: #ffffff !important;
    color: var(--ktos-header-text) !important;
    font-size: 0.95rem !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
    transition: box-shadow 160ms ease, border-color 160ms ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ktos-search .ktos-smart-search-results {
    width: 100%;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    border-radius: 16px;
    z-index: 90;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.ktos-search__input:focus,
.ktos-search input[type="search"]:focus,
.ktos-search input[type="text"]:focus,
.ktos-smart-search-input:focus {
    outline: none;
    border-color: #c7c7c7;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1), 0 0 0 3px rgba(0, 229, 255, 0.16);
}

.ktos-actions {
    display: flex;
    align-items: center;
    gap: var(--ktos-icon-gap);
    margin-left: auto;
    flex-shrink: 0;
}

.ktos-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--ktos-icon-size, 24px) + 12px);
    height: calc(var(--ktos-icon-size, 24px) + 12px);
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
    color: var(--ktos-header-text);
    cursor: pointer;
    border-radius: 10px;
    transition: border-color 150ms ease, background-color 150ms ease;
    text-decoration: none;
}

.ktos-action-btn:hover {
    border-color: var(--ktos-header-border);
}

.ktos-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ktos-header-icon svg,
.ktos-header-icon-img {
    width: var(--ktos-icon-size);
    height: var(--ktos-icon-size);
    display: block;
    object-fit: contain;
}

.ktos-theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ktos-theme-icon--dark {
    display: none;
}

.ktos-cart-btn {
    position: relative;
}

.ktos-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ktos-badge-bg);
    color: var(--ktos-badge-color);
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ktos-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: block;
}

.ktos-bucket-gap-xs { --ktos-gap: 6px; }
.ktos-bucket-gap-sm { --ktos-gap: 10px; }
.ktos-bucket-gap-md { --ktos-gap: 14px; }
.ktos-bucket-gap-lg { --ktos-gap: 18px; }
.ktos-bucket-gap-xl { --ktos-gap: 22px; }

.ktos-bucket-icon-gap-xs { --ktos-icon-gap: 6px; }
.ktos-bucket-icon-gap-sm { --ktos-icon-gap: 10px; }
.ktos-bucket-icon-gap-md { --ktos-icon-gap: 14px; }
.ktos-bucket-icon-gap-lg { --ktos-icon-gap: 18px; }
.ktos-bucket-icon-gap-xl { --ktos-icon-gap: 22px; }

.ktos-bucket-icon-xs { --ktos-icon-size: 18px; }
.ktos-bucket-icon-sm { --ktos-icon-size: 20px; }
.ktos-bucket-icon-md { --ktos-icon-size: 24px; }
.ktos-bucket-icon-lg { --ktos-icon-size: 28px; }
.ktos-bucket-icon-xl { --ktos-icon-size: 32px; }

.ktos-bucket-title-xs { --ktos-title-size: 0.9rem; }
.ktos-bucket-title-sm { --ktos-title-size: 1rem; }
.ktos-bucket-title-md { --ktos-title-size: 1.1rem; }
.ktos-bucket-title-lg { --ktos-title-size: 1.25rem; }
.ktos-bucket-title-xl { --ktos-title-size: 1.4rem; }

.ktos-bucket-tagline-xs { --ktos-tagline-size: 0.7rem; }
.ktos-bucket-tagline-sm { --ktos-tagline-size: 0.8rem; }
.ktos-bucket-tagline-md { --ktos-tagline-size: 0.9rem; }
.ktos-bucket-tagline-lg { --ktos-tagline-size: 1rem; }
.ktos-bucket-tagline-xl { --ktos-tagline-size: 1.1rem; }

.ktos-title-weight-400 { --ktos-title-weight: 400; }
.ktos-title-weight-500 { --ktos-title-weight: 500; }
.ktos-title-weight-600 { --ktos-title-weight: 600; }
.ktos-title-weight-700 { --ktos-title-weight: 700; }
.ktos-title-weight-800 { --ktos-title-weight: 800; }

.ktos-bucket-radius-sm {
    --ktos-header-radius-bucket: 16px;
    --ktos-search-radius-bucket: 16px;
}

.ktos-bucket-radius-md {
    --ktos-header-radius-bucket: 24px;
    --ktos-search-radius-bucket: 24px;
}

.ktos-bucket-radius-lg {
    --ktos-header-radius-bucket: 34px;
    --ktos-search-radius-bucket: 34px;
}

.ktos-bucket-radius-xl {
    --ktos-header-radius-bucket: 44px;
    --ktos-search-radius-bucket: 44px;
}

.ktos-bucket-search-w-sm { --ktos-search-width-bucket: 420px; }
.ktos-bucket-search-w-md { --ktos-search-width-bucket: 520px; }
.ktos-bucket-search-w-lg { --ktos-search-width-bucket: 620px; }
.ktos-bucket-search-w-xl { --ktos-search-width-bucket: 720px; }

.ktos-bucket-container-w-md { --ktos-header-maxw-bucket: 1200px; }
.ktos-bucket-container-w-lg { --ktos-header-maxw-bucket: 1400px; }
.ktos-bucket-container-w-xl { --ktos-header-maxw-bucket: 1600px; }

.ktos-mheader {
    --ktos-mheader-bg: #ffffff;
    --ktos-mheader-border: #d0d0d0;
    --ktos-mheader-radius: 20px;
    --ktos-header-text: #1f2937;
    --ktos-header-muted: #6b7280;
    --ktos-mgap: 6px;
    --ktos-micon-size: 20px;
    --ktos-mlogo-size: 42px;
    --ktos-msearch-height: 42px;
    --ktos-msearch-radius: 32px;
    --ktos-msearch-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--ktos-mheader-bg) !important;
    color: var(--ktos-header-text);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

html,
body,
body.kt-app {
    margin: 0 !important;
    padding: 0 !important;
}

body.kt-app {
    padding-top: 96px !important;
}

@media (max-width: 768px) {
    body.kt-app {
        padding-top: 126px !important;
    }
}

.admin-bar .ktos-header,
.admin-bar .ktos-mheader {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ktos-header,
    .admin-bar .ktos-mheader {
        top: 46px;
    }
}

@media (max-width: 768px) {
    .ktos-mheader {
        display: block;
    }
}


.ktos-mheader__inner {
    max-width: var(--ktos-mcontainer-maxw, 100%);
    margin: 0 auto;
    border: 1px solid var(--ktos-mheader-border);
    border-radius: var(--ktos-mheader-radius);
    overflow: hidden;
    background: var(--ktos-mheader-bg);
}

.ktos-mheader__row {
    display: flex;
    align-items: center;
    gap: var(--ktos-mgap);
    padding: 6px var(--ktos-mheader-px, 10px);
}

.ktos-mheader__row--top {
    border-bottom: 1px solid var(--ktos-mheader-border);
    min-height: var(--ktos-mrow1-height, auto);
}

.ktos-mheader__row--bottom {
    min-height: var(--ktos-mrow2-height, auto);
}

.ktos-mbrand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ktos-mbrand__link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.ktos-mbrand__logo {
    width: var(--ktos-mlogo-size);
    height: var(--ktos-mlogo-size);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--ktos-mheader-border);
    background: #ffffff;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: scale(var(--ktos-mlogo-scale, 1));
}

.ktos-mbrand__logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ktos-mbrand__logo-fallback {
    font-weight: 700;
    font-size: 0.9rem;
}

.ktos-mbrand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ktos-mbrand__title {
    font-size: var(--ktos-mtitle-size, 0.95rem);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.ktos-mbrand__tagline {
    font-size: var(--ktos-mtagline-size, 0.75rem);
    color: var(--ktos-header-muted);
    line-height: 1.2;
    white-space: nowrap;
}

.ktos-mactions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--ktos-mgap);
}

.ktos-maction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--ktos-micon-size) + 10px);
    height: calc(var(--ktos-micon-size) + 10px);
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
    color: var(--ktos-header-text);
    border-radius: 10px;
    cursor: pointer;
}

.ktos-mheader .ktos-header-icon svg,
.ktos-mheader .ktos-header-icon-img {
    width: var(--ktos-micon-size);
    height: var(--ktos-micon-size);
}

.ktos-msearch {
    flex: 1;
    min-width: 0;
}

.ktos-msearch__field {
    position: relative;
    width: min(100%, var(--ktos-msearch-width));
}

.ktos-msearch .ktos-smart-search-box {
    width: 100%;
    position: relative;
}

.ktos-msearch__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9aa0a6;
    pointer-events: none;
}

.ktos-msearch__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ktos-msearch__input,
.ktos-msearch input[type="search"],
.ktos-msearch input[type="text"],
.ktos-msearch .ktos-smart-search-input {
    width: 100% !important;
    height: var(--ktos-msearch-height) !important;
    min-height: var(--ktos-msearch-height) !important;
    padding: 0 16px 0 46px !important;
    border-radius: var(--ktos-msearch-radius) !important;
    border: 1px solid #dddddd !important;
    background: #ffffff !important;
    color: var(--ktos-header-text) !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.ktos-msearch .ktos-smart-search-input {
    width: 100%;
    height: var(--ktos-msearch-height);
    padding: 0 16px 0 46px;
    border-radius: var(--ktos-msearch-radius);
    border: 1px solid #dddddd;
    background: #ffffff;
    color: var(--ktos-header-text);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.ktos-msearch .ktos-smart-search-results {
    width: 100%;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    border-radius: 14px;
    z-index: 90;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.ktos-mmega-btn {
    margin-left: var(--ktos-mgap);
}

.ktos-mheader__row--bottom .ktos-mmega-btn {
    width: var(--ktos-msearch-height);
    height: var(--ktos-msearch-height);
}

.ktos-bucket-mgap-xs { --ktos-mgap: 6px; }
.ktos-bucket-mgap-sm { --ktos-mgap: 8px; }
.ktos-bucket-mgap-md { --ktos-mgap: 10px; }
.ktos-bucket-mgap-lg { --ktos-mgap: 12px; }
.ktos-bucket-mgap-xl { --ktos-mgap: 14px; }

.ktos-bucket-mcontainer-full { --ktos-mcontainer-maxw: 100%; }
.ktos-bucket-mcontainer-xs { --ktos-mcontainer-maxw: 420px; }
.ktos-bucket-mcontainer-sm { --ktos-mcontainer-maxw: 520px; }
.ktos-bucket-mcontainer-md { --ktos-mcontainer-maxw: 640px; }
.ktos-bucket-mcontainer-lg { --ktos-mcontainer-maxw: 768px; }
.ktos-bucket-mcontainer-xl { --ktos-mcontainer-maxw: 880px; }

.ktos-bucket-micon-xs { --ktos-micon-size: 18px; }
.ktos-bucket-micon-sm { --ktos-micon-size: 20px; }
.ktos-bucket-micon-md { --ktos-micon-size: 22px; }
.ktos-bucket-micon-lg { --ktos-micon-size: 24px; }
.ktos-bucket-micon-xl { --ktos-micon-size: 26px; }

.ktos-bucket-mrow1-h-xs { --ktos-mrow1-height: 48px; }
.ktos-bucket-mrow1-h-sm { --ktos-mrow1-height: 52px; }
.ktos-bucket-mrow1-h-md { --ktos-mrow1-height: 56px; }
.ktos-bucket-mrow1-h-lg { --ktos-mrow1-height: 62px; }
.ktos-bucket-mrow1-h-xl { --ktos-mrow1-height: 70px; }

.ktos-bucket-mrow2-h-xs { --ktos-mrow2-height: 54px; }
.ktos-bucket-mrow2-h-sm { --ktos-mrow2-height: 58px; }
.ktos-bucket-mrow2-h-md { --ktos-mrow2-height: 62px; }
.ktos-bucket-mrow2-h-lg { --ktos-mrow2-height: 68px; }
.ktos-bucket-mrow2-h-xl { --ktos-mrow2-height: 76px; }

.ktos-bucket-mtitle-xs { --ktos-mtitle-size: 0.85rem; }
.ktos-bucket-mtitle-sm { --ktos-mtitle-size: 0.95rem; }
.ktos-bucket-mtitle-md { --ktos-mtitle-size: 1rem; }
.ktos-bucket-mtitle-lg { --ktos-mtitle-size: 1.05rem; }
.ktos-bucket-mtitle-xl { --ktos-mtitle-size: 1.1rem; }

.ktos-bucket-mtagline-xs { --ktos-mtagline-size: 0.7rem; }
.ktos-bucket-mtagline-sm { --ktos-mtagline-size: 0.75rem; }
.ktos-bucket-mtagline-md { --ktos-mtagline-size: 0.8rem; }
.ktos-bucket-mtagline-lg { --ktos-mtagline-size: 0.85rem; }
.ktos-bucket-mtagline-xl { --ktos-mtagline-size: 0.9rem; }

.ktos-bucket-mradius-xs { --ktos-mheader-radius: 12px; --ktos-msearch-radius: 16px; }
.ktos-bucket-mradius-sm { --ktos-mheader-radius: 16px; --ktos-msearch-radius: 16px; }
.ktos-bucket-mradius-md { --ktos-mheader-radius: 20px; --ktos-msearch-radius: 24px; }
.ktos-bucket-mradius-lg { --ktos-mheader-radius: 24px; --ktos-msearch-radius: 30px; }
.ktos-bucket-mradius-xl { --ktos-mheader-radius: 30px; --ktos-msearch-radius: 36px; }

.ktos-bucket-msearch-h-xs { --ktos-msearch-height: 36px; }
.ktos-bucket-msearch-h-sm { --ktos-msearch-height: 40px; }
.ktos-bucket-msearch-h-md { --ktos-msearch-height: 44px; }
.ktos-bucket-msearch-h-lg { --ktos-msearch-height: 48px; }
.ktos-bucket-msearch-h-xl { --ktos-msearch-height: 52px; }

.ktos-bucket-msearch-r-xs { --ktos-msearch-radius: 18px; }
.ktos-bucket-msearch-r-sm { --ktos-msearch-radius: 22px; }
.ktos-bucket-msearch-r-md { --ktos-msearch-radius: 26px; }
.ktos-bucket-msearch-r-lg { --ktos-msearch-radius: 34px; }
.ktos-bucket-msearch-r-xl { --ktos-msearch-radius: 40px; }

.ktos-bucket-msearch-w-full { --ktos-msearch-width: 100%; }
.ktos-bucket-msearch-w-xs { --ktos-msearch-width: 220px; }
.ktos-bucket-msearch-w-sm { --ktos-msearch-width: 260px; }
.ktos-bucket-msearch-w-md { --ktos-msearch-width: 320px; }
.ktos-bucket-msearch-w-lg { --ktos-msearch-width: 380px; }
.ktos-bucket-msearch-w-xl { --ktos-msearch-width: 440px; }

.ktos-mega-menu {
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 80;
}

.ktos-mega-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 20, 0.5);
}

.ktos-mega-menu-inner {
    position: relative;
    margin: 90px auto 0;
    max-width: 1100px;
    width: calc(100% - 48px);
    background: var(--ktos-header-bg);
    border: 1px solid var(--ktos-header-border);
    border-radius: 16px;
    padding: 24px;
}

body.ktos-mega-open .ktos-mega-menu {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================
   HEADER SEARCH CONTAINER
   ======================================== */
.kt-header__search {
    flex: 1;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   SMART SEARCH INPUT BOX (Header Integration)
   ======================================== */
.ktos-smart-search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.ktos-search-box-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    pointer-events: none;
    z-index: 2;
}

.ktos-smart-search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

.ktos-smart-search-input::placeholder {
    color: #64748b;
}

.ktos-smart-search-input:hover,
.ktos-smart-search-input:focus {
    background: #ffffff;
    border-color: #00a8e8;
    box-shadow: 0 2px 12px rgba(0, 168, 232, 0.2);
}


