.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    border-bottom: 1px solid var(--sw-border);
    background: #18192b;
    backdrop-filter: none;
}

.header-container {
    min-height: 76px;
    padding-block: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand-logo a,
.site-logo {
    display: inline-block;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: clamp(22px, 2vw, 28px) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-variation-settings: "wght" 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    text-decoration: none;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-synthesis: none !important;
    filter: none;
    text-shadow: none;
    transition: transform .20s var(--sw-ease);
}

.brand-logo__desk {
    display: inline !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-style: inherit !important;
    font-weight: inherit !important;
    font-variation-settings: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    color: #ff6b00 !important;
    -webkit-text-fill-color: #ff6b00 !important;
    vertical-align: baseline !important;
}

.brand-logo a::after {
    content: none !important;
    display: none !important;
}

.brand-logo a:hover,
.brand-logo a:focus-visible {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    filter: none !important;
    text-shadow: none !important;
    transform: translateY(-1px);
}

.brand-logo a:hover .brand-logo__desk,
.brand-logo a:focus-visible .brand-logo__desk {
    color: #ff8a1f !important;
    -webkit-text-fill-color: #ff8a1f !important;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.main-menu a {
    position: relative;
    color: var(--sw-text-soft);
    -webkit-text-fill-color: var(--sw-text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    filter: none;
    text-shadow: none;
    transition:
        color .20s var(--sw-ease),
        text-shadow .20s var(--sw-ease),
        border-color .20s var(--sw-ease),
        background-color .20s var(--sw-ease),
        box-shadow .20s var(--sw-ease),
        transform .20s var(--sw-ease);
}

.main-menu a:not(.cart-link):hover,
.main-menu a:not(.cart-link):focus-visible {
    color: #ff8a1f !important;
    -webkit-text-fill-color: #ff8a1f !important;
    text-shadow:
        0 0 4px rgba(255, 138, 31, .70),
        0 0 10px rgba(255, 107, 0, .40),
        0 0 18px rgba(255, 107, 0, .18) !important;
}

.main-menu a:not(.cart-link)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: #ff8a1f;
    box-shadow:
        0 0 5px rgba(255, 138, 31, .60),
        0 0 10px rgba(255, 107, 0, .32);
    transition: right .24s var(--sw-ease);
}

.main-menu a:not(.cart-link):hover::after,
.main-menu a:not(.cart-link):focus-visible::after {
    right: 0;
}

.cart-link,
.cart-link:link,
.cart-link:visited {
    padding: 11px 18px;
    border: 1px solid var(--sw-border-strong);
    border-radius: 999px;
    background: var(--sw-surface-2);
    color: var(--sw-text) !important;
    -webkit-text-fill-color: var(--sw-text) !important;
    filter: none !important;
    text-shadow: none !important;
    box-shadow: none;
}

.cart-link:hover,
.cart-link:focus,
.cart-link:focus-visible,
.cart-link:active {
    transform: translateY(-1px);
    color: #ff8a1f !important;
    -webkit-text-fill-color: #ff8a1f !important;
    border-color: rgba(255, 138, 31, .58) !important;
    background:
        linear-gradient(
            135deg,
            rgba(255, 107, 0, .18),
            rgba(255, 107, 0, .06)
        ) !important;
    filter: none !important;
    text-shadow:
        0 0 4px rgba(255, 138, 31, .70),
        0 0 10px rgba(255, 107, 0, .38),
        0 0 18px rgba(255, 107, 0, .16) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 138, 31, .08),
        0 0 8px rgba(255, 107, 0, .18),
        0 0 18px rgba(255, 107, 0, .10) !important;
}

.current-menu-item > a,
.current_page_item > a,
.main-menu a[aria-current="page"] {
    color: #ff6b00 !important;
    -webkit-text-fill-color: #ff6b00 !important;
    text-shadow:
        0 0 5px rgba(255, 107, 0, .48),
        0 0 12px rgba(255, 107, 0, .22) !important;
}

.brand-logo a:focus-visible,
.main-menu a:focus-visible {
    outline: 2px solid rgba(255, 138, 31, .60);
    outline-offset: 6px;
}

@media (max-width: 860px) {
    .header-container {
        gap: 18px;
    }

    .main-menu {
        gap: 14px;
    }

    .main-menu a:not(.cart-link) {
        display: none;
    }
}

/* ==================================================
   PRZYCISK „KONFIGURUJ SWOJE BIURKO”
   ================================================== */

.main-menu .configurator-header-link,
.main-menu .configurator-header-link:link,
.main-menu .configurator-header-link:visited {
    min-height: 42px;
    padding: 10px 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 107, 0, .52);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 107, 0, .18),
            rgba(255, 107, 0, .07)
        );

    color: #ff8a1f !important;
    -webkit-text-fill-color: #ff8a1f !important;

    font-weight: 750;
    white-space: nowrap;

    box-shadow:
        inset 0 0 0 1px rgba(255, 138, 31, .06),
        0 0 0 rgba(255, 107, 0, 0);
}

.main-menu .configurator-header-link::after {
    display: none !important;
}

.main-menu .configurator-header-link:hover,
.main-menu .configurator-header-link:focus-visible {
    transform: translateY(-1px);

    border-color: rgba(255, 138, 31, .78);

    background:
        linear-gradient(
            135deg,
            rgba(255, 107, 0, .30),
            rgba(255, 107, 0, .12)
        );

    color: #ff8a1f !important;
    -webkit-text-fill-color: #ff8a1f !important;

    text-shadow:
        0 0 4px rgba(255, 138, 31, .70),
        0 0 10px rgba(255, 107, 0, .40),
        0 0 18px rgba(255, 107, 0, .18) !important;

    box-shadow:
        inset 0 0 0 1px rgba(255, 138, 31, .10),
        0 0 9px rgba(255, 107, 0, .22),
        0 0 20px rgba(255, 107, 0, .12);
}

@media (max-width: 860px) {

    .main-menu .configurator-header-link {
        display: inline-flex !important;
        padding-inline: 13px;
        font-size: 12px;
    }

}

@media (max-width: 560px) {

    .main-menu .configurator-header-link {
        max-width: 146px;
        min-height: 38px;
        padding: 7px 11px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

}



/* Stabilne ikony SVG — bez zależności od fontów/emoji. */
.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cart-link__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-logo a,
.main-menu a {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-synthesis: none;
}

/* ==================================================
   JEDNOLITY STYL WSZYSTKICH POZYCJI MENU
   Ładowane na końcu, aby nadpisać wcześniejsze CTA i styl koszyka.
   ================================================== */
.site-header .main-menu > a,
.site-header .main-menu > a:link,
.site-header .main-menu > a:visited,
.site-header .main-menu .configurator-header-link,
.site-header .main-menu .cart-link {
    position: relative;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    color: var(--sw-text-soft) !important;
    -webkit-text-fill-color: var(--sw-text-soft) !important;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.site-header .main-menu > a:hover,
.site-header .main-menu > a:focus-visible,
.site-header .main-menu > a:active,
.site-header .main-menu .configurator-header-link:hover,
.site-header .main-menu .configurator-header-link:focus-visible,
.site-header .main-menu .cart-link:hover,
.site-header .main-menu .cart-link:focus-visible {
    color: #ff8a1f !important;
    -webkit-text-fill-color: #ff8a1f !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    text-shadow:
        0 0 4px rgba(255, 138, 31, .70),
        0 0 10px rgba(255, 107, 0, .40),
        0 0 18px rgba(255, 107, 0, .18) !important;
}

.site-header .main-menu > a::after,
.site-header .main-menu .configurator-header-link::after,
.site-header .main-menu .cart-link::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 100% !important;
    bottom: -6px !important;
    width: auto !important;
    height: 2px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #ff8a1f !important;
    box-shadow:
        0 0 5px rgba(255, 138, 31, .60),
        0 0 10px rgba(255, 107, 0, .32) !important;
    opacity: 1 !important;
    transform: none !important;
    transition: right .24s var(--sw-ease) !important;
}

.site-header .main-menu > a:hover::after,
.site-header .main-menu > a:focus-visible::after,
.site-header .main-menu .configurator-header-link:hover::after,
.site-header .main-menu .configurator-header-link:focus-visible::after,
.site-header .main-menu .cart-link:hover::after,
.site-header .main-menu .cart-link:focus-visible::after {
    right: 0 !important;
}

.site-header .main-menu .cart-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.site-header .main-menu .cart-link__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke: currentColor;
}

@media (max-width: 560px) {
    .site-header .main-menu .configurator-header-link {
        max-width: none !important;
        min-height: 0 !important;
        padding: 0 !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
    }
}
