/* Noon-style header */
:root {
    --noon-yellow: #f3ea0c;
    --noon-ink: #404553;
    --noon-muted: #7e859b;
    --noon-cat-bg: #f7f7fa;
    --noon-search-bg: #ffffff;
}

.noon-header {
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    background: var(--noon-yellow);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.noon-header__main {
    background: var(--noon-yellow);
}

.noon-header__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 10px 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.noon-header__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.noon-header__logo img {
    max-height: 36px;
    width: auto;
    display: block;
}

.noon-header__brand {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #1f1f1f;
    line-height: 1;
}

.noon-header__deliver {
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: var(--noon-ink);
    cursor: default;
    min-width: 88px;
}

.noon-header__deliver-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.noon-header__deliver-label {
    font-size: 11px;
    color: var(--noon-muted);
}

.noon-header__deliver-city {
    font-size: 13px;
    font-weight: 700;
    color: var(--noon-ink);
}

.noon-header__search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.noon-header__search-form {
    display: flex;
    align-items: center;
    background: var(--noon-search-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    height: 44px;
}

.noon-header__search-input {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--noon-ink);
    background: transparent;
    min-width: 0;
}

.noon-header__search-input::placeholder {
    color: #9aa0b0;
}

.noon-header__search-btn {
    flex: 0 0 48px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--noon-ink);
    font-size: 20px;
    cursor: pointer;
}

.noon-header__search-btn:hover {
    color: #000;
}

.noon-header__icon-btn {
    color: var(--noon-ink);
    padding: 6px;
    line-height: 1;
}

.noon-header__lang,
.noon-header__currency {
    flex: 0 0 auto;
}

.noon-header__lang-toggle {
    font-size: 13px;
    font-weight: 700;
    color: var(--noon-ink) !important;
    white-space: nowrap;
    padding: 6px 4px;
}

.noon-header__lang-toggle::after {
    margin-left: 4px;
}

.noon-header__account {
    flex: 0 0 auto;
    align-items: center;
}

.noon-header__account-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--noon-ink) !important;
    white-space: nowrap;
    text-decoration: none;
}

.noon-header__account-label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noon-header__action {
    flex: 0 0 auto;
    align-items: center;
}

.noon-header__action a,
.noon-header__cart .nav-cart-box > a {
    color: var(--noon-ink) !important;
    text-decoration: none;
}

.noon-header__action .la,
.noon-header__action .las,
.noon-header__cart .la,
.noon-header__cart .las {
    font-size: 24px !important;
    opacity: 1 !important;
    color: var(--noon-ink);
}

.noon-header__action .nav-box-text,
.noon-header__cart .nav-box-text {
    display: none !important;
}

.noon-header__action .badge,
.noon-header__cart .badge {
    background: #404553 !important;
    color: #fff !important;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    padding: 0 5px;
    position: relative;
    top: -8px;
    left: -4px;
}

/* Category strip + mega menu helpers (critical styles are inlined in nav) */
.noon-header__cats {
    position: relative;
    z-index: 30;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.noon-header__cats-list {
    overflow: visible;
}

@media (max-width: 991.98px) {
    .noon-header__cats-list {
        overflow-x: auto;
    }
    .noon-mega {
        display: none !important;
    }
}

/* Mobile search overlay behavior reused from theme */
@media (max-width: 991.98px) {
    .noon-header__inner {
        min-height: 60px;
        padding: 8px 12px;
        gap: 10px;
    }

    /* Keep noon search visible; override aiz-core off-canvas search */
    .noon-header .front-header-search,
    .noon-header__search.front-header-search {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
        background: transparent !important;
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        z-index: 1 !important;
    }
}

@media (max-width: 767.98px) {
    .noon-header .front-header-search,
    .noon-header__search.front-header-search {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        z-index: 1 !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .noon-header .front-header-search.active {
        display: block !important;
        background: transparent !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .noon-header__search-form {
        width: 100%;
        border: 1px solid #dfe1e6;
        height: 40px;
    }

    .noon-header__search-back {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .noon-header__search-back {
        display: none !important;
    }
}
