/* =========================================
   Napikosár – HEADER + SIDEBAR (clean, modern, nem tákolt)
   Mobil:
   - hamburger mindig látszik
   - fontos oldalak csak sidebarban
   - kategóriák 1 oszlop (külön sor), nincs oldal scroll
   Desktop:
   - header linkek ikon+szöveg
   - kategória chip sáv látszik
   - sidebar: floating panel + 2 oszlop (Menü | Kategóriák) -> nem üres
   ========================================= */

:root {
    --nk-bg: #ffffff;
    --nk-text: #111827;
    --nk-muted: #4b5563;
    --wx-fg-on-light: #0f172a;
    --wx-muted-on-light: rgba(15, 23, 42, .72);
    --wx-fg-on-dark: #e2e8f0;
    --wx-muted-on-dark: rgba(226, 232, 240, .72);

    --nk-top-bg: #0f172a;
    --nk-top-text: #e5e7eb;
    --nk-top-muted: #9ca3af;

    --nk-accent: #f59e0b;

    --nk-bd: rgba(148, 163, 184, .26);
    --nk-bd2: rgba(148, 163, 184, .14);

    --nk-r: 12px;
    --nk-r2: 14px;
    --nk-pill: 999px;

    --nk-shadow-1: 0 1px 0 rgba(15, 23, 42, .06);

    --nk-pad: 10px;
    --nk-container: 1240px;
}

html {
    background: var(--nk-top-bg, #0f172a);
}

/* iOS safe-area top fill (V2) – ne maradjon fehér csík a notch/status bar alatt */
body.ui-v2::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    background: var(--nk-top-bg, #0f172a);
    pointer-events: none;
    z-index: 1090;
}

/* =========================
     HEADER BASE
  ========================= */
.nk-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: var(--nk-bg);
    box-shadow: var(--nk-shadow-1);
}

/* =========================
     TOP BAR
  ========================= */
.nk-header-top {
    background: var(--nk-top-bg);
    color: var(--nk-top-text);
    font-size: 12px;
}

.nk-header-top-inner {
    max-width: var(--nk-container);
    margin: 0 auto;
    padding: 5px var(--nk-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nk-header-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nk-top-msg-main {
    font-weight: 600;
}

.nk-top-msg-secondary {
    color: var(--nk-top-muted);
}

.nk-top-link {
    color: var(--nk-top-text);
    text-decoration: none;
    font-weight: 500;
}

.nk-top-link:hover {
    text-decoration: underline;
}

/* =========================
     MAIN HEADER ROW
  ========================= */
.nk-header-main-inner {
    max-width: var(--nk-container);
    margin: 0 auto;
    padding: 8px var(--nk-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.nk-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* LOGO */
.nk-header-left {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.nk-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nk-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* =========================
     STICKY SHRINK (scroll)
  ========================= */
.nk-header-main-inner,
.nk-header-top-inner {
    transition:
        padding 180ms cubic-bezier(.22, .61, .36, 1),
        gap 180ms cubic-bezier(.22, .61, .36, 1);
}

.nk-logo-img {
    transition:
        height 180ms cubic-bezier(.22, .61, .36, 1);
}

.nk-header.is-compact .nk-header-main-inner {
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 8px;
}

.nk-header.is-compact .nk-logo-img {
    height: 40px;
}

.nk-header.is-compact .nk-header-top-inner {
    padding-top: 2px;
    padding-bottom: 2px;
}

@media (max-width: 720px) {
    .nk-header.is-compact .nk-logo-img {
        height: 36px;
    }
}

/* SEARCH (desktop) */
.nk-header-center {
    display: none;
    /* mobilon rejtve */
    flex: 1 1 auto;
    min-width: 260px;
    max-width: 620px;
}

.nk-header-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nk-search-open {
    flex: 1 1 auto;
    min-width: 0;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    border: 0;
    border-radius: var(--nk-r);
    background: rgba(148, 163, 184, .14);
    color: var(--wx-fg-on-light, var(--nk-text));

    cursor: pointer;
    text-align: left;
}

.nk-search-open:hover {
    background: rgba(148, 163, 184, .20);
}

.nk-search-open-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .75;
    flex: 0 0 auto;
}

.nk-search-open-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.nk-search-open-placeholder {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: rgba(15, 23, 42, .8);
}

.nk-search-open-btn {
    width: 40px;
    padding: 0;
}

.nk-search-open-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.nk-search-form {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--nk-bd);
    border-radius: var(--nk-r);
    background: #fff;
    box-shadow: none;
    /* ne legyen dobozos */
}

.nk-search-icon {
    opacity: .6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.nk-search-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.nk-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
}

.nk-search-input::placeholder {
    color: var(--wx-muted-on-light, var(--nk-muted));
}

.nk-search-button {
    border: 1px solid rgba(245, 158, 11, .55);
    background: transparent;
    color: var(--wx-fg-on-light, var(--nk-text));
    font-size: 11px;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: var(--nk-pill);
    cursor: pointer;
    white-space: nowrap;
}

/* RIGHT SIDE */
.nk-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* CONTACT (desktop only) */
.nk-header-contact {
    display: none;
    line-height: 1.1;
}

.nk-contact-link {
    display: block;
    font-size: 11px;
    text-decoration: none;
    color: inherit;
    opacity: .85;
}

.nk-contact-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* DESKTOP MAIN NAV */
.nk-main-nav {
    display: none;
    /* mobilon rejtve */
    align-items: center;
    gap: 10px;
}

.nk-main-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--wx-fg-on-light, var(--nk-text));
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.nk-main-link:hover {
    border-bottom-color: rgba(245, 158, 11, .55);
}

.nk-main-link-icon {
    font-size: 13px;
    opacity: .92;
}

.nk-main-link-label {
    letter-spacing: .01em;
}

/* ACTIONS */
.nk-main-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.nk-search-toggle {
    order: 1;
}

.nk-login-chip {
    order: 2;
}

.nk-main-cart {
    order: 3;
}

.nk-main-favorites {
    order: 4;
}

.nk-main-account {
    order: 5;
}

.nk-quick-links {
    order: 1;
}

.nk-menu-toggle {
    order: 6;
}

/* =========================================
   Header quick links (Viber / Hívás / Kosár)
   ========================================= */
.nk-quick-links {
    --nk-quick-size: 34px;

    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 2px;
}

.nk-quick-link {
    width: var(--nk-quick-size);
    height: var(--nk-quick-size);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--wx-fg-on-light, var(--nk-text));
    position: relative;
    transition:
        transform .12s ease,
        box-shadow .12s ease,
        border-color .12s ease,
        filter .12s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
}

.nk-quick-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 14px;
}

.nk-quick-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .14);
    border-color: rgba(245, 158, 11, .22);
}

.nk-quick-link--viber {
    background: #7360f2;
    border-color: rgba(49, 46, 129, .22);
    color: #fff;
}

.nk-quick-link--call {
    background: #22c55e;
    border-color: rgba(20, 83, 45, .22);
    color: #fff;
}

.nk-quick-link--cart {
    background: rgba(255, 255, 255, .96);
}

.nk-quick-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    background: #ef4444;
    color: #fff;
    border: 1px solid rgba(127, 29, 29, .22);
}

.nk-quick-badge[hidden] {
    display: none !important;
}

@media (hover:hover) {
    .nk-quick-link--cart.is-pulsing {
        animation: nk-quick-cart-pulse 0.62s ease-out;
    }

    .nk-quick-link--cart.is-pulsing .nk-quick-badge {
        animation: nk-quick-cart-badge-pop 0.62s ease-out;
    }
}

/* Search toggle button (mobil) */
.nk-icon-button {
    width: 44px;
    height: 44px;
    border-radius: var(--nk-pill);
    border: 1px solid var(--nk-bd);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.nk-search-toggle {
    width: 44px;
    padding: 0;
    gap: 0;
}

.nk-search-toggle-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    color: var(--wx-fg-on-light, var(--nk-text));
}

.nk-login-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .2);
    background: rgba(255, 255, 255, .95);
    color: #0f172a;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.nk-login-chip:hover {
    border-color: rgba(245, 158, 11, .6);
    background: #fff8e2;
    transform: translateY(-1px);
}

/* Cart / Favorites / Account */
.nk-main-cart,
.nk-main-account,
.nk-main-favorites {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: var(--nk-pill);
    border: 1px solid var(--nk-bd);
    background: #fff;
    color: var(--wx-fg-on-light, var(--nk-text));
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease,
        background-color 160ms ease;
}

.nk-main-cart:hover,
.nk-main-account:hover,
.nk-main-favorites:hover {
    border-color: rgba(245, 158, 11, .45);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.nk-main-cart {
    padding: 0 12px;
    position: relative;
}

.nk-main-cart-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
}

.nk-main-cart--primary {
    border-color: rgba(245, 158, 11, .58);
    background: linear-gradient(180deg, #fff8df, #ffefbf);
}

.nk-main-cart--primary:hover {
    border-color: rgba(245, 158, 11, .78);
    background: linear-gradient(180deg, #fff4cf, #ffe8a4);
}

.nk-main-account,
.nk-main-favorites {
    width: 44px;
    padding: 0;
    position: relative;
}

.nk-main-account.is-guest {
    border-color: rgba(245, 158, 11, .62);
    background: linear-gradient(180deg, #fff8df, #ffefbf);
}

.nk-main-account-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(127, 29, 29, .2);
}

.nk-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nk-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.nk-main-cart-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--nk-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    background: #111827;
    color: #fff;
    border: 1px solid rgba(15, 23, 42, .22);
}

.nk-main-fav-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--nk-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    background: #ef4444;
    color: #fff;
    border: 1px solid rgba(127, 29, 29, .22);
}

.nk-main-cart-count[hidden],
.nk-main-fav-count[hidden] {
    display: none !important;
}

/* HAMBURGER – mobilon mindig látszódjon */
.nk-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--nk-pill);
    border: 1px solid rgba(245, 158, 11, .55);
    background: rgba(245, 158, 11, .10);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--wx-fg-on-light, var(--nk-text));
    font-size: 24px;
    line-height: 1;

    flex: 0 0 auto;
    visibility: visible;
    opacity: 1;
}

/* Tight mobile */
@media (max-width:420px) {

    .nk-main-cart-label,
    .nk-main-account-label {
        display: none;
    }

    .nk-main-cart,
    .nk-main-account,
    .nk-main-favorites {
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .nk-search-toggle-label {
        display: none;
    }

    .nk-logo-img {
        height: 42px;
    }
}

/* Mobilon a main nav biztosan ne jelenjen meg */
@media (max-width:767px) {
    .nk-main-nav {
        display: none !important;
    }

    .nk-header-contact {
        display: none !important;
    }

    .nk-menu-toggle {
        display: inline-flex !important;
    }

    /* Mobil: legyen kompakt, hogy a gyorsgombok is beférjenek a fejlécbe */
    .nk-main-actions {
        gap: 6px;
    }

    .nk-login-chip {
        display: none;
    }

    .nk-search-toggle {
        width: 44px;
        padding: 0;
    }

    .nk-main-cart,
    .nk-main-account,
    .nk-main-favorites {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        position: relative;
    }

    .nk-main-cart-label {
        display: none;
    }

    .nk-main-cart-count {
        position: absolute;
        top: -7px;
        right: -7px;
    }

    .nk-main-fav-count {
        position: absolute;
        top: -7px;
        right: -7px;
    }

    .nk-quick-link {
        width: 34px;
        height: 34px;
        border-radius: 13px;
        box-shadow: 0 10px 18px rgba(15, 23, 42, .10);
    }
}

/* =========================
   CATEGORY NAV + MEGA PANEL
  ========================= */
.nk-nav {
    position: relative;
    width: 100%;
    border-top: 1px solid var(--nk-bd2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
    z-index: 1089;
    margin: 0;
    padding: 0;
}

.nk-category-nav-shell {
    position: relative;
    width: 100%;
    max-width: var(--nk-container);
    margin: 0 auto;
    padding: 10px var(--nk-pad) 9px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    justify-content: center;
    flex-wrap: nowrap;
}

.nk-category-nav-shell--chips-only {
    gap: 0;
}

.nk-category-mega {
    flex: 0 0 auto;
    min-width: 0;
}

.nk-category-quick {
    flex: 1 1 auto;
    min-width: 0;
    display: none;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 1px;
    scroll-snap-type: x proximity;
    margin-inline: auto;
}

.nk-category-quick::-webkit-scrollbar {
    display: none;
}

.nk-category-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .34);
    background: rgba(255, 255, 255, .94);
    color: rgba(30, 41, 59, .92);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    transition:
        border-color 170ms ease,
        background-color 170ms ease,
        color 170ms ease,
        box-shadow 170ms ease,
        transform 170ms ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .06);
    scroll-snap-align: start;
}

.nk-category-chip.is-active,
.nk-category-chip[aria-current="true"] {
    border-color: rgba(245, 158, 11, .55);
    background: linear-gradient(180deg, rgba(255, 243, 214, .98), rgba(255, 234, 184, .96));
    color: rgba(120, 53, 15, .96);
    box-shadow: 0 8px 18px rgba(245, 158, 11, .14);
}

@media (hover: hover) and (pointer: fine) {
    .nk-category-chip:hover {
        border-color: rgba(245, 158, 11, .42);
        background: rgba(255, 251, 235, .98);
        color: rgba(15, 23, 42, .96);
        box-shadow: 0 8px 16px rgba(15, 23, 42, .08);
        transform: translateY(-1px);
    }
}

.nk-category-chip:active {
    transform: scale(.98);
    box-shadow: 0 4px 8px rgba(15, 23, 42, .08);
}

.nk-category-chip:focus-visible {
    outline: 2px solid rgba(245, 158, 11, .55);
    outline-offset: 2px;
}

.nk-category-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: .01em;
    padding: 0 14px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
    transition:
        background-color 170ms ease,
        border-color 170ms ease,
        box-shadow 170ms ease,
        transform 170ms ease;
}

.nk-category-trigger:hover {
    background: #1f2937;
    border-color: #1f2937;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .22);
    transform: translateY(-1px);
}

.nk-category-trigger:active {
    transform: scale(.985);
}

.nk-category-nav.is-open .nk-category-trigger {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #111827;
    box-shadow: 0 10px 22px rgba(245, 158, 11, .26);
}

.nk-category-trigger:focus-visible {
    outline: 2px solid rgba(245, 158, 11, .5);
    outline-offset: 2px;
}

.nk-category-trigger-icon {
    font-size: 13px;
}

.nk-category-mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    z-index: 1095;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-top: 1px solid var(--nk-bd2);
    border-bottom: 1px solid var(--nk-bd2);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
        max-height 260ms cubic-bezier(.16, 1, .3, 1),
        opacity 220ms cubic-bezier(.16, 1, .3, 1),
        transform 220ms cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 26px 60px rgba(15, 23, 42, .14);
}

.nk-category-mega-panel.is-open {
    max-height: min(var(--nk-category-panel-h, 460px), calc(100dvh - 132px));
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nk-nav.is-open .nk-category-mega-panel {
    max-height: min(var(--nk-category-panel-h, 460px), calc(100dvh - 132px));
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nk-category-mega-inner {
    max-width: var(--nk-container);
    margin: 0 auto;
    padding: 18px var(--nk-pad) 22px;
}

/* Mega panel content (Telekom-szeru: oszlopok, cimsor + linklista) */
.nk-category-mega-view {
    display: none;
}

.nk-category-mega-view.is-active {
    display: block;
}

.nk-category-mega-view-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.nk-category-mega-view-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--wx-fg-on-light, var(--nk-text));
    text-decoration: none;
}

.nk-category-mega-view-title:hover {
    text-decoration: underline;
}

.nk-category-mega-view-all {
    font-size: 12px;
    font-weight: 800;
    color: rgba(15, 23, 42, .78);
    text-decoration: none;
    white-space: nowrap;
}

.nk-category-mega-view-all:hover {
    text-decoration: underline;
}

.nk-category-mega-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nk-category-col {
    min-width: 0;
}

.nk-category-mega-panel .nk-category-link.nk-category-col-title {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    font-weight: 900;
    font-size: 13px;
    color: rgba(15, 23, 42, .96);
    text-decoration: none;
    border-radius: 10px;
}

.nk-category-mega-panel .nk-category-link.nk-category-col-title:hover {
    background: rgba(245, 158, 11, .10);
}

.nk-category-col-links {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.nk-category-mega-panel .nk-category-link.nk-category-col-link {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 650;
    color: rgba(15, 23, 42, .78);
    text-decoration: none;
    border-radius: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.nk-category-mega-panel .nk-category-link.nk-category-col-link:hover {
    color: rgba(15, 23, 42, .96);
    background: rgba(15, 23, 42, .05);
}

.nk-category-mega-empty {
    padding: 8px 0;
}

/* Meglevo .nk-category-link card-szeru stilusokat felulirjuk a mega panelben */
.nk-category-mega-panel .nk-category-link {
    border: 0;
    background: transparent;
    min-height: 0;
    box-shadow: none;
    transform: none;
    padding: 0;
    border-radius: 0;
}

.nk-category-mega-panel .nk-category-link:hover {
    transform: none;
}

/* A háttér elsötétítése itt direkt nincs: a felhasználói visszajelzés szerint
   ez rontotta a kategória/al-kategória olvashatóságát és "bugos" érzetet adott. */
body.nk-category-open::before {
    display: none;
}

.nk-category-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nk-category-mega-link,
.nk-category-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: #fff;
    color: var(--wx-fg-on-light, var(--nk-text));
    text-decoration: none;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    transition:
        border-color 160ms ease,
        transform 160ms ease,
        background-color 160ms ease;
}

.nk-category-mega-link:hover,
.nk-category-link:hover {
    border-color: rgba(245, 158, 11, .45);
    background: rgba(245, 158, 11, .08);
    transform: translateY(-1px);
}

.nk-category-mega-link:focus-visible,
.nk-category-link:focus-visible {
    outline: 2px solid rgba(245, 158, 11, .5);
    outline-offset: 2px;
}

/* =========================
     SIDEBAR OVERLAY (base)
  ========================= */
body.nk-no-scroll {
    overflow: hidden;
}

body.nk-search-modal-open {
    overflow: hidden;
}

.nk-sidebar {
    position: fixed;
    inset: 0;
    z-index: 1300;
    pointer-events: none;
    opacity: 0;
    transition: opacity .08s linear;
}

.nk-sidebar.is-open {
    opacity: 1;
    pointer-events: auto;
}

.nk-sidebar-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .40);
}

.nk-sidebar-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 14px calc(14px + env(safe-area-inset-right)) 18px calc(14px + env(safe-area-inset-left));
    background: #fff;
    color: var(--wx-fg-on-light, var(--nk-text));
    overflow: hidden;
}

.nk-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.nk-sidebar-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nk-sidebar-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nk-sidebar-logo-text {
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--nk-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nk-sidebar-close {
    width: 34px;
    height: 34px;
    border-radius: var(--nk-pill);
    border: 1px solid var(--nk-bd);
    background: #fff;
    cursor: pointer;
    position: relative;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nk-close-line {
    position: absolute;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

.nk-close-line:first-child {
    transform: rotate(45deg);
}

.nk-close-line:last-child {
    transform: rotate(-45deg);
}

.nk-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.nk-sidebar-mascot {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nk-sidebar-mascot img {
    width: clamp(74px, 24vw, 110px);
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .22));
}

/* szekció spacing */
.nk-sidebar-section {
    margin: 10px 0 14px;
}

.nk-sidebar-section-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--wx-muted-on-light, var(--nk-muted));
}

/* Mobilon a sidebar contact blokk ne legyen */
.nk-sidebar-contact {
    display: none !important;
}

.nk-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nk-sidebar-item {
    min-width: 0;
}

/* Közös “pill” */
.nk-sidebar-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--nk-r);
    border: 1px solid rgba(148, 163, 184, .20);
    background: #fff;
    color: var(--wx-fg-on-light, var(--nk-text));
    text-decoration: none;
    min-height: 40px;
}

.nk-sidebar-pill,
.nk-sidebar-pill .nk-pill-label,
.nk-sidebar-section-title,
.nk-category-mega-panel .nk-category-link,
.nk-category-mega-panel .nk-category-link.nk-category-col-title,
.nk-category-mega-panel .nk-category-link.nk-category-col-link {
    color: var(--wx-fg-on-light, #0f172a);
}

.nk-sidebar-section-title {
    color: var(--wx-muted-on-light, rgba(15, 23, 42, .72));
}

/* ===== MENÜ: mobilon 4 oszlop (ikon felül + szöveg alul) ===== */
.nk-sidebar-list--menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 2px 2px 6px;
}

.nk-sidebar-pill--menu {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 78px;
    padding: 10px 6px;
    border-radius: var(--nk-r2);
}

.nk-pill-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, .12);
    font-size: 15px;
}

.nk-pill-label {
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== KATEGÓRIÁK: MOBILON 1 OSZLOP / KÜLÖN SOROK ===== */
.nk-sidebar-list--categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 2px 2px 14px;
    align-content: start;
}

.nk-sidebar-pill--category {
    width: 100%;
    max-width: none;
    min-height: 38px;
    padding: 9px 12px 9px 12px;
    border-radius: var(--nk-r2);
    justify-content: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.nk-sidebar-pill--category::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .75);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.nk-sidebar-pill--category .nk-pill-label {
    text-align: left;
    padding-left: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.15;
}

/* finom hover */
@media (hover:hover) {
    .nk-sidebar-pill:hover {
        border-color: rgba(245, 158, 11, .35);
    }
}

/* =========================
     DESKTOP (>=768): header + chip sáv
  ========================= */
@media (min-width:768px) {
    :root {
        --nk-pad: 16px;
    }

    .nk-header-center {
        display: block;
    }

    .nk-main-nav {
        display: none;
    }

    .nk-nav {
        display: block;
    }

    .nk-category-quick {
        display: flex;
    }

    .nk-category-mega-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nk-search-toggle {
        display: none;
    }

    .nk-logo-img {
        height: 56px;
    }
}

@media (max-width:1023px) {
    .nk-category-nav-shell {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .nk-category-mega-panel {
        left: var(--nk-pad);
        right: var(--nk-pad);
        width: auto;
        top: calc(100% + 8px);
        border: 1px solid var(--nk-bd2);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
    }

    .nk-category-mega-panel.is-open,
    .nk-nav.is-open .nk-category-mega-panel {
        max-height: min(var(--nk-category-panel-h, 460px), calc(100dvh - 172px));
    }

    .nk-category-mega-inner {
        padding: 14px;
    }

    .nk-category-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width:767px) {
    .nk-category-trigger {
        min-height: 36px;
        padding: 0 12px;
        font-size: 11px;
    }

    .nk-category-mega-panel {
        left: 10px;
        right: 10px;
        top: calc(100% + 6px);
        border-radius: 12px;
        box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
    }

    .nk-category-mega-panel.is-open,
    .nk-nav.is-open .nk-category-mega-panel {
        max-height: min(var(--nk-category-panel-h, 420px), calc(100dvh - 186px));
    }

    .nk-category-mega-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .nk-category-col-links {
        gap: 6px;
    }
}

/* iOS Safari: ne zoomoljon a kereső input fókusznál (>=16px). */
.nk-search-form--modal .nk-search-input {
    font-size: 16px;
}

/* =========================
     DESKTOP SIDEBAR (>=1024):
     floating panel + 2 oszlop (Menü | Kategóriák)
     -> nem lesz “üres” full-screen fehér
  ========================= */
@media (min-width:1024px) {
    :root {
        --nk-pad: 24px;
    }

    .nk-header-contact {
        display: none;
    }

    .nk-logo-img {
        height: 62px;
    }

    .nk-category-mega-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .nk-category-mega-item {
        min-width: 0;
    }

    /* erősebb backdrop, panel “lebeg” */
    .nk-sidebar-backdrop {
        background: rgba(15, 23, 42, .55);
    }

    /* középre tett floating panel */
    .nk-sidebar {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nk-sidebar-content {
        position: relative;
        inset: auto;
        width: min(1120px, calc(100% - 48px));
        height: auto;
        max-height: min(720px, calc(100dvh - 48px));
        border-radius: 18px;
        border: 1px solid rgba(148, 163, 184, .22);
        box-shadow: 0 18px 60px rgba(15, 23, 42, .28);
        padding: 18px 20px 20px;
        overflow: hidden;
    }

    .nk-sidebar-header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    /* 2 oszlopos layout a navban:
       1. szekció (Menü) balra, 2. szekció (Kategóriák) jobbra */
    .nk-sidebar-nav {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 16px;
        align-content: start;
        padding-bottom: 0;
    }

    .nk-sidebar-section {
        margin: 0;
        /* grid kezeli a spacinget */
    }

    /* Menü: 2x2 (nagyobb, kitölti a bal oszlopot) */
    .nk-sidebar-list--menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0;
    }

    .nk-sidebar-pill--menu {
        min-height: 110px;
        padding: 14px 10px;
    }

    .nk-pill-icon {
        width: 36px;
        height: 36px;
        border-radius: 14px;
        font-size: 18px;
    }

    .nk-pill-label {
        font-size: 11px;
    }

    /* Kategóriák: 3 oszlop (kevésbé “üres”, nagyobb chipek) */
    .nk-sidebar-list--categories {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 12px;
        padding: 0 0 10px;
    }

    .nk-sidebar-pill--category {
        min-height: 42px;
        padding: 10px 12px 10px 12px;
    }

    .nk-sidebar-pill--category .nk-pill-label {
        font-size: 11px;
    }

    /* asztalin ne legyen kényszerített 1 oszlopos kategória */
}

/* Nagyon széles asztali: kategóriák 4 oszlopban */
@media (min-width:1280px) {
    .nk-main-nav {
        display: none;
    }

    .nk-category-mega-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* =========================
   HEADER MODERN OVERRIDE
========================= */
.nk-header {
    background: rgba(248, 250, 252, .82);
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Scroll-lag csökkentés: mobilon és reduced-motion módban ne legyen drága blur réteg. */
@media (max-width: 1024px) {
    .nk-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nk-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

.nk-header-main {
    padding: 5px 0 4px;
    position: relative;
    overflow: visible;
}

.nk-header-main-inner {
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    position: relative;
    z-index: 2;
}

.nk-header-main-inner.has-home-mascot {
    padding-right: clamp(74px, 7.2vw, 108px);
}

.nk-header-mascot {
    position: absolute;
    right: clamp(4px, 1.2vw, 16px);
    top: -8px;
    width: clamp(52px, 4.4vw, 78px);
    margin: 0;
    pointer-events: none;
    z-index: 3;
}

.nk-header-mascot img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, .2));
}

/* V2.3 – egyetlen, globális fix figura */
body.ui-v2 .nk-fixed-mascot {
    position: fixed;
    right: max(22px, calc(env(safe-area-inset-right) + 22px));
    top: calc(env(safe-area-inset-top) + clamp(16px, 3.8vh, 42px));
    width: clamp(140px, 12.6vw, 248px);
    margin: 0;
    line-height: 0;
    pointer-events: none;
    z-index: 1208;
}

body.ui-v2 .nk-fixed-mascot img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, .24));
}

@media (max-width:1023px) {
    body.ui-v2 .nk-fixed-mascot {
        right: max(10px, calc(env(safe-area-inset-right) + 10px));
        top: calc(env(safe-area-inset-top) + clamp(34px, 7.2vh, 74px));
        width: clamp(96px, 14.1vw, 156px);
    }
}

.nk-header-center {
    max-width: 680px;
}

.nk-search-open {
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 999px;
    background: #f8fafc;
}

.nk-search-open:hover {
    border-color: rgba(245, 158, 11, .5);
    background: #fff;
}

.nk-main-actions {
    gap: 8px;
}

.nk-main-cart--primary {
    border-color: rgba(217, 119, 6, .28);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    box-shadow: 0 8px 16px rgba(217, 119, 6, .26);
}

.nk-main-cart--primary:hover {
    border-color: rgba(194, 65, 12, .5);
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.nk-main-cart-count {
    background: rgba(17, 24, 39, .95);
    border-color: rgba(17, 24, 39, .45);
}

.nk-category-chip {
    min-height: 34px;
    border-color: rgba(148, 163, 184, .3);
    background: rgba(255, 255, 255, .95);
    box-shadow: none;
}

.nk-category-chip.is-active,
.nk-category-chip[aria-current="true"] {
    border-color: #111827;
    background: #111827;
    color: #f8fafc;
    box-shadow: none;
}

.nk-category-chip:hover {
    box-shadow: none;
}

/* Hard guard: sidebar + mega panel szöveg ne tudjon elhalványulni világos paneleken. */
body.ui-v2 .nk-sidebar-content .nk-sidebar-pill,
body.ui-v2 .nk-sidebar-content .nk-sidebar-pill *,
body.ui-v2 .nk-sidebar-content .nk-pill-label,
body.ui-v2 .nk-sidebar-content .nk-sidebar-logo-text,
body.ui-v2 .nk-sidebar-content .nk-sidebar-section-title,
body.ui-v2 .nk-category-mega-panel .nk-category-link,
body.ui-v2 .nk-category-mega-panel .nk-category-link * {
    color: #0f172a !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

body.ui-v2 .nk-sidebar-content .nk-sidebar-section-title,
body.ui-v2 .nk-sidebar-content .muted,
body.ui-v2 .nk-category-mega-panel .muted {
    color: rgba(15, 23, 42, .72) !important;
    opacity: 1 !important;
}

.nk-header.is-compact .nk-header-main-inner {
    padding-top: 6px;
    padding-bottom: 6px;
}

@media (max-width:767px) {
    .nk-header-main {
        padding-top: 4px;
        padding-bottom: 3px;
    }

    .nk-header-main-inner {
        padding: 7px 8px;
        border-radius: 14px;
    }

    .nk-header-main-inner.has-home-mascot {
        padding-right: 60px;
    }

    .nk-main-actions {
        gap: 5px;
    }

    .nk-header-mascot {
        width: 46px;
        right: 3px;
        top: -6px;
    }

    body.ui-v2 .nk-header-main-inner .nk-fixed-mascot {
        position: relative;
        right: auto;
        top: auto;
        width: clamp(62px, 20.7vw, 87px);
        height: 0;
        margin: 0 6px 0 4px;
        flex: 0 0 auto;
        line-height: 0;
        z-index: 1206;
        align-self: flex-start;
        overflow: visible;
        pointer-events: none;
    }

    body.ui-v2 .nk-header-main-inner .nk-fixed-mascot img {
        width: 100%;
        height: auto;
        display: block;
        transform: translateY(4px);
        transform-origin: top center;
    }
}

/* =========================
   CATEGORY-FIRST COMPACT TUNING
========================= */
.nk-category-nav-shell {
    padding-top: 7px;
    padding-bottom: 6px;
}

.nk-category-quick {
    gap: 8px;
}

.nk-category-chip {
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
}

@media (min-width:768px) {
    .nk-header-main {
        padding: 3px 0 2px;
    }

    .nk-header-main-inner {
        padding: 6px 10px;
        border-radius: 14px;
    }

    .nk-header-center {
        max-width: 640px;
    }

    .nk-logo-img {
        height: 48px;
    }

    .nk-search-open {
        min-height: 40px;
    }

    .nk-main-cart,
    .nk-main-account,
    .nk-main-favorites,
    .nk-icon-button,
    .nk-menu-toggle,
    .nk-login-chip {
        min-height: 40px;
    }

    .nk-main-account,
    .nk-main-favorites,
    .nk-icon-button,
    .nk-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .nk-main-cart {
        padding: 0 11px;
    }

    .nk-main-cart-label {
        font-size: 11px;
    }

    .nk-main-actions {
        gap: 6px;
    }

    .nk-header.is-compact .nk-header-main-inner {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .nk-header.is-compact .nk-logo-img {
        height: 40px;
    }
}

@media (min-width:1024px) {
    .nk-logo-img {
        height: 50px;
    }
}

@media (max-width:767px) {
    .nk-category-nav-shell {
        padding-top: 6px;
        padding-bottom: 5px;
    }

    .nk-category-chip {
        min-height: 30px;
        padding: 0 11px;
        font-size: 11px;
    }
}

@media (max-width:520px) {
    .nk-header-mascot {
        width: 40px;
        right: 2px;
        top: -4px;
    }

    body.ui-v2 .nk-header-main-inner .nk-fixed-mascot {
        width: clamp(60px, 22.4vw, 81px);
        margin-right: 5px;
    }

    body.ui-v2 .nk-header-main-inner .nk-fixed-mascot img {
        transform: translateY(5px);
    }
}

/* Mobile mascot policy:
   mascot remains only on home hero context; other pages hide it to avoid card/header overlaps. */
@media (max-width:767px) {
    body.ui-v2:not(.page-home) .nk-fixed-mascot {
        display: none !important;
    }
}
