:root {
    --wfh-button-bg: #ffd000;
    --wfh-button-text: #000;
    --wfh-button-hover-bg: #1E3050;
    --wfh-button-hover-text: #ffd000;
    --wfh-button-radius: 10px;
    --wfh-button-font-size: 16px;
    --wfh-button-font-weight: 700;
    --wfh-button-padding-y: 13px;
    --wfh-button-padding-x: 22px;
    --wfh-menu-font-size: 32px;
    --wfh-scroll-bg: rgba(0,0,0,.5);
    --wfh-overlay-bg: rgba(0,0,0,.5);
    --wfh-logo-desktop: 174px;
    --wfh-logo-tablet: 150px;
    --wfh-logo-mobile: 126px;
}

.wfh-header,
.wfh-header * ,
.wfh-overlay,
.wfh-overlay * { box-sizing: border-box; }

.wfh-header {
    position: fixed;
    z-index: 9990;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    transition: background-color .25s ease, backdrop-filter .25s ease;
}

/* WoodMart: pull the page content underneath the transparent custom header
   so the theme's default white header strip is not visible. */
body .whb-header {
    margin-bottom: -92px !important;
    background: transparent !important;
}

body .whb-header .whb-main-header,
body .whb-header .whb-row {
    background: transparent !important;
}

/* Keep the WordPress admin toolbar above and clickable. */
#wpadminbar {
    z-index: 99999 !important;
}

body.admin-bar .wfh-header {
    top: 32px;
}

body.admin-bar .wfh-overlay {
    top: 32px;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}

.wfh-header.is-scrolled {
    background: var(--wfh-scroll-bg);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.wfh-inner {
    width: 100%;
    min-height: 92px;
    padding: 18px clamp(18px, 3vw, 54px) 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wfh-left,
.wfh-desktop-ctas { display: flex; align-items: center; }
.wfh-left {
    gap: clamp(22px, 3vw, 46px);
    min-width: 0;
    padding-left: calc(var(--wfh-logo-desktop) + clamp(22px, 3vw, 46px));
}
.wfh-desktop-ctas { gap: 12px; }
.wfh-logo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 0;
    margin: 0 !important;
    padding: 0 !important;
}
.wfh-logo img {
    display: block;
    width: var(--wfh-logo-desktop);
    height: auto;
    max-height: 78px;
    margin: 0 !important;
    padding: 0 !important;
}

.wfh-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: var(--wfh-button-padding-y) var(--wfh-button-padding-x);
    border: 0;
    border-radius: var(--wfh-button-radius);
    background: var(--wfh-button-bg);
    color: var(--wfh-button-text);
    font-family: "Work Sans", sans-serif;
    font-style: normal;
    font-size: var(--wfh-button-font-size);
    font-weight: var(--wfh-button-font-weight);
    line-height: 16px;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.wfh-cta:hover,
.wfh-cta:focus-visible {
    background: var(--wfh-button-hover-bg);
    color: var(--wfh-button-hover-text);
}

.wfh-cta.is-active {
    background: var(--wfh-button-hover-bg);
    color: var(--wfh-button-hover-text);
    box-shadow: inset 0 0 0 2px var(--wfh-button-bg);
}

#wfh-header .wfh-burger {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    padding: 0;
    border: 0;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: var(--wfh-button-bg) !important;
    background-color: var(--wfh-button-bg) !important;
    background-image: none !important;
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: background-color .2s ease;
}

#wfh-header .wfh-burger span {
    display: block;
    width: 23px;
    height: 3px;
    border-radius: 3px;
    background: #000 !important;
    transition: background-color .2s ease;
}

#wfh-header .wfh-burger:hover,
#wfh-header .wfh-burger:focus,
#wfh-header .wfh-burger:focus-visible {
    background: var(--wfh-button-hover-bg) !important;
    background-color: var(--wfh-button-hover-bg) !important;
    background-image: none !important;
}

#wfh-header .wfh-burger:hover span,
#wfh-header .wfh-burger:focus span,
#wfh-header .wfh-burger:focus-visible span {
    background: var(--wfh-button-bg) !important;
}

.wfh-overlay {
    position: fixed;
    z-index: 9991;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 100px clamp(24px, 6vw, 110px) 50px;
    background: var(--wfh-overlay-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    transition: opacity .28s ease, visibility .28s ease;
}

.wfh-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.wfh-overlay-content { width: min(100%, 980px); min-height: calc(100% - 40px); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }

#wfh-overlay .wfh-close {
    position: fixed !important;
    z-index: 2;
    top: 28px;
    right: clamp(22px, 3vw, 54px) !important;
    left: auto !important;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: var(--wfh-button-bg) !important;
    background-color: var(--wfh-button-bg) !important;
    background-image: none !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-color .2s ease;
}
#wfh-overlay .wfh-close span {
    position: absolute;
    left: 10px;
    top: 24px;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: #000 !important;
    transition: background-color .2s ease;
}
#wfh-overlay .wfh-close:hover,
#wfh-overlay .wfh-close:focus,
#wfh-overlay .wfh-close:focus-visible {
    background: var(--wfh-button-hover-bg) !important;
    background-color: var(--wfh-button-hover-bg) !important;
    background-image: none !important;
}
#wfh-overlay .wfh-close:hover span,
#wfh-overlay .wfh-close:focus-visible span {
    background: var(--wfh-button-bg) !important;
}
#wfh-overlay .wfh-close span:first-child { transform: rotate(45deg); }
#wfh-overlay .wfh-close span:last-child { transform: rotate(-45deg); }

#wfh-header .wfh-burger::before,
#wfh-header .wfh-burger::after,
#wfh-overlay .wfh-close::before,
#wfh-overlay .wfh-close::after {
    border-radius: 10px !important;
}

.wfh-mobile-ctas { display: none; }
.wfh-menu { list-style: none; padding: 0; margin: 0; text-align: center; }
.wfh-menu li { margin: 0; padding: 0; }
.wfh-menu > li + li { margin-top: 18px; }
.wfh-menu a {
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 20px;
    font-weight: var(--wfh-button-font-weight);
    line-height: 1.2;
    text-decoration: none !important;
    transition: none !important;
}
.wfh-menu a:hover,
.wfh-menu a:focus,
.wfh-menu a:focus-visible,
.wfh-menu .current-menu-item > a,
.wfh-menu .current-menu-ancestor > a,
.wfh-menu .current_page_item > a,
.wfh-menu .current_page_ancestor > a {
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
}
.wfh-menu .sub-menu { list-style: none; margin: 12px 0 0; padding: 0; }
.wfh-menu .sub-menu li + li { margin-top: 8px; }
.wfh-menu .sub-menu a { font-size: .62em; font-weight: 500; }
.wfh-menu-notice { color: #fff; text-align: center; font-size: 18px; }
body.wfh-menu-open { overflow: hidden !important; }

@media (max-width: 1024px) {
    .wfh-menu a { font-size: 18px; }
    body .whb-header { margin-bottom: -82px !important; }
    .wfh-inner { min-height: 82px; padding-top: 14px; padding-bottom: 14px; }
    .wfh-logo img { width: var(--wfh-logo-tablet); max-height: 68px; }
    .wfh-left { gap: 24px; padding-left: calc(var(--wfh-logo-tablet) + 24px); }
    .wfh-cta { font-size: min(var(--wfh-button-font-size), 15px); padding-left: 17px; padding-right: 17px; }
}

@media (max-width: 767px) {
    body .whb-header { margin-bottom: -72px !important; }
    .wfh-inner { min-height: 72px; padding: 12px 18px 12px 0; }
    .wfh-logo img { width: var(--wfh-logo-mobile); max-height: 58px; }
    .wfh-left { padding-left: var(--wfh-logo-mobile); }
    .wfh-desktop-ctas { display: none; }
    #wfh-header .wfh-burger { width: 48px; height: 48px; flex-basis: 48px; }
    .wfh-overlay { padding: 92px 22px 38px; }
    #wfh-overlay .wfh-close { top: 19px; right: 17px; }
    .wfh-overlay-content { justify-content: flex-start; padding-top: 24px; }
    .wfh-mobile-ctas { display: grid; grid-template-columns: 1fr; gap: 12px; width: min(100%, 420px); margin: 0 auto 38px; }
    .wfh-mobile-cta { width: 100%; white-space: normal; }
    .wfh-menu > li + li { margin-top: 14px; }
    .wfh-menu a { font-size: 16px; }
}

@media (max-width: 782px) {
    body.admin-bar .wfh-header { top: 46px; }
    body.admin-bar .wfh-overlay {
        top: 46px;
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wfh-header, .wfh-overlay, .wfh-cta, .wfh-burger, .wfh-burger span, .wfh-close, .wfh-close span, .wfh-menu a { transition: none; }
}


/* Force neutral menu states against theme/WoodMart selectors. */
#wfh-overlay .wfh-nav .wfh-menu li,
#wfh-overlay .wfh-nav .wfh-menu li:hover,
#wfh-overlay .wfh-nav .wfh-menu li:focus,
#wfh-overlay .wfh-nav .wfh-menu li.current-menu-item,
#wfh-overlay .wfh-nav .wfh-menu li.current-menu-ancestor,
#wfh-overlay .wfh-nav .wfh-menu li.current_page_item,
#wfh-overlay .wfh-nav .wfh-menu li.current_page_ancestor {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

#wfh-overlay .wfh-nav .wfh-menu li > a,
#wfh-overlay .wfh-nav .wfh-menu li > a:hover,
#wfh-overlay .wfh-nav .wfh-menu li > a:focus,
#wfh-overlay .wfh-nav .wfh-menu li > a:active,
#wfh-overlay .wfh-nav .wfh-menu li.current-menu-item > a,
#wfh-overlay .wfh-nav .wfh-menu li.current-menu-ancestor > a,
#wfh-overlay .wfh-nav .wfh-menu li.current_page_item > a,
#wfh-overlay .wfh-nav .wfh-menu li.current_page_ancestor > a {
    color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
    filter: none !important;
}

#wfh-overlay .wfh-nav .wfh-menu li > a::before,
#wfh-overlay .wfh-nav .wfh-menu li > a::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

/* Textový odkaz Návrat na všetkých ostatných vnútorných stránkach. */
.wfh-return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #b7b7b7 !important;
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    text-decoration: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: color .2s ease;
}

#wfh-header .wfh-return:hover,
#wfh-header .wfh-return:focus,
#wfh-header .wfh-return:focus-visible {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    outline: none;
}


/* v1.0.7: light return link on all non-home, non-section pages. */
#wfh-header .wfh-return {
    color: #d6d6d6 !important;
}
#wfh-header .wfh-return:hover,
#wfh-header .wfh-return:focus,
#wfh-header .wfh-return:focus-visible {
    color: #d6d6d6 !important;
}
