/**

 * Scoped normalisation for the mirrored Elementor header (library template 130).

 *

 * Same story as assets/css/site-footer.css: the original header is rendered by Elementor

 * on top of the hello-elementor theme, so on Home / About / Blog it inherits that theme's

 * reset. The product screens are plain plugin output - they never load hello-elementor,

 * so the header would fall back to raw browser defaults: every `ul` keeps its 1em

 * margin-block-start (which alone made the header 16px taller), the cascade uses the

 * page's line-height instead of the theme's 1.5, the text-wrap reset is missing, and so on.

 *

 * Everything is scoped to #jw-site-header so the product listing itself is untouched.

 *

 * The element-level rules use :where(#jw-site-header) on purpose: that keeps their

 * specificity at (0,0,1), i.e. below any class-based rule, so post-130.css / post-95.css

 * and jkit still win exactly like they do on the mirrored pages. Scoping them with the

 * bare id instead would outrank the widget css and flatten its typography.

 */



#jw-site-header,

#jw-site-header *,

#jw-site-header *::before,

#jw-site-header *::after {

	box-sizing: border-box;

}



#jw-site-header {

	line-height: 1.5;

	letter-spacing: normal;

	word-spacing: normal;

	-webkit-font-smoothing: antialiased;

	-moz-osx-font-smoothing: grayscale;

	-webkit-text-size-adjust: 100%;

}



/* The product listing puts its own sticky category bar at z-index 99 in a sibling

   stacking context; the navigation row is also z-index 99, so on mobile the bar paints

   over the slide-in menu and swallows its first entry. Lift the whole header above it. */

#jw-site-header {

	position: relative;

	z-index: 1000;

}



/* WordPress block styles on the theme pass text-wrap:pretty down to the page; the

   mirrored pages wrap with the browser default, so pin it back for the header only. */

#jw-site-header,

#jw-site-header * {

	text-wrap: auto;

	text-wrap-style: auto;

}



/* `text-wrap` is a longhand of `white-space`, so the rule above would undo the nowrap

   the theme's button css gives the hamburger / close buttons. Put it back, higher up. */

#jw-site-header button,

#jw-site-header button * {

	white-space: nowrap;

}



/* Browser default for lists is `margin-block-start: 1em` - the single reason the

   navigation column ended up 116px instead of 100px. Only the top level is reset:

   the dropdowns get their margins and padding from post-130.css and must keep them. */

:where(#jw-site-header) ul,

:where(#jw-site-header) ol {

	list-style: none;

}



:where(#jw-site-header) :where(.jkit-menu:not(.sub-menu)) {

	margin-block-start: 0;

	margin-block-end: 0;

	padding-inline-start: 0;

}



:where(#jw-site-header) li {

	background-color: transparent;

	border: 0;

}



:where(#jw-site-header) :where(h1, h2, h3, h4, h5, h6) {

	color: inherit;

	font-family: inherit;

	font-weight: 500;

	line-height: 1.2;

	margin-block-end: 0;

	margin-block-start: 0;

}



:where(#jw-site-header) p {

	margin-block-end: .9rem;

	margin-block-start: 0;

}



:where(#jw-site-header) img {

	border-style: none;

	height: auto;

	max-width: 100%;

}



:where(#jw-site-header) :where(input, select, textarea) {

	font-family: inherit;

	font-size: 1rem;

	line-height: 1.5;

}



/* Buttons keep jkit's own font (the kit maps them to the Montserrat typography) and

   only inherit the bits the theme reset used to provide. */

:where(#jw-site-header) button {

	line-height: 1.5;

}



/* Newsletter form in the off-canvas panel. On the mirrored pages the field metrics come

   from the WordPress block-library base styles (font-size 1rem, padding .5rem 1rem, 1px

   border) which the product screens never load - without them the plugin's own

   14px / 10px 14px win and the field is 4px taller than on Home / About / Blog. */

#jw-site-header .cxb-form-input,

#jw-site-header .cxb-form-textarea,

#jw-site-header .cxb-form-select {

	border: 1px solid #666;

	font-size: 1rem;

	padding: .5rem 1rem;

}



#jw-site-header .cxb-form-label {

	vertical-align: middle;

}



#jw-site-header .cxb-form-submit {

	display: inline-block;

}



/* The mirrored pages force the search field's "clear" affordance visible even while the

   field is empty (their own inline css uses !important over the widget's display:none).

   Copy it so the search box looks the same on every page. */

#jw-site-header .nbb2b-cxb-search .nbb2b-cxb-search-clear {

	display: inline-flex !important;

	align-items: center;

}



/* Shared navigation repair: let the real navigation fit beside search and actions. */
#jw-site-header.elementor-130 .elementor-element.elementor-element-9f9f32e {
    gap: 24px !important;
    padding-inline: clamp(16px, 3vw, 40px) !important;
    inline-size: 100%;
}
#jw-site-header.elementor-130 .elementor-element.elementor-element-20ce463 {
    min-inline-size: 0;
    padding: 0 !important;
    gap: 24px !important;
}
#jw-site-header.elementor-130 .elementor-element.elementor-element-6814514 {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    flex: 0 0 170px;
    inline-size: 170px !important;
}
#jw-site-header.elementor-130 .elementor-element.elementor-element-a1bae8f {
    padding: 0 !important;
}
#jw-site-header.elementor-130 ul.jkit-menu {
    gap: clamp(16px, 2vw, 30px);
}
#jw-site-header.elementor-130 .jkit-menu > li > a {
    font-size: 15px;
    white-space: nowrap;
}
#jw-site-header .offcanvas-sidebar-button,
#jw-site-header .offcanvas-close-button {
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
#jw-site-header a:focus-visible,
#jw-site-header button:focus-visible,
#jw-site-header input:focus-visible {
    outline: 2px solid #c59140 !important;
    outline-offset: 3px;
}
#jw-site-header .jw-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    inline-size: 24px;
    block-size: 44px;
    line-height: 1;
    font-size: 12px;
}
#jw-site-header .jkit-menu > li > .jw-submenu-toggle { color: #fff; }
#jw-site-header .jkit-menu .sub-menu .jw-submenu-toggle {
    position: absolute;
    inset-inline-end: 4px;
    inset-block-start: 0;
    color: #333030;
}
#jw-site-header .jkit-menu li > a > .jki,
#jw-site-header .jkit-menu .sub-menu li.menu-item-has-children > a::after {
    display: none !important;
}
@media (min-width: 1025px) {
    #jw-site-header .jkit-hamburger-menu,
    #jw-site-header .jkit-nav-identity-panel,
    #jw-site-header .jkit-overlay { display: none !important; }
    #jw-site-header .jkit-menu li.jw-submenu-open > .sub-menu,
    #jw-site-header .jkit-menu li:hover > .sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto;
    }
}
@media (max-width: 1150px) and (min-width: 1025px) {
    #jw-site-header.elementor-130 .elementor-element.elementor-element-9f9f32e,
    #jw-site-header.elementor-130 .elementor-element.elementor-element-20ce463 { gap: 16px !important; }
    #jw-site-header.elementor-130 ul.jkit-menu { gap: 16px; }
}
/* Use the primary links on small screens, rather than an unrelated information drawer. */
@media (max-width: 1024px) {
    #jw-site-header.elementor-130 .elementor-element.elementor-element-20ce463 {
        display: flex !important;
        flex: 0 0 auto !important;
        justify-content: flex-end !important;
        margin-inline-start: auto;
    }
    #jw-site-header.elementor-130 .elementor-element.elementor-element-6814514,
    #jw-site-header.elementor-130 .elementor-element.elementor-element-a1bae8f { display: none !important; }
    #jw-site-header .jkit-nav-menu { position: static; }
    #jw-site-header .jkit-hamburger-menu {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        inline-size: 44px;
        block-size: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #fff !important;
        cursor: pointer;
    }
    #jw-site-header .jkit-hamburger-menu i { color: #fff !important; font-size: 24px; }
    #jw-site-header .jkit-menu-wrapper {
        display: none !important;
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: stretch;
        gap: 0 !important;
        position: fixed !important;
        inset: 70px 0 0 auto !important;
        inline-size: min(90%, 380px) !important;
        max-inline-size: 100%;
        block-size: calc(100vh - 70px) !important;
        block-size: calc(100dvh - 70px) !important;
        max-block-size: calc(100vh - 70px);
        max-block-size: calc(100dvh - 70px);
        padding: 0 0 96px !important;
        margin: 0 !important;
        overflow: auto !important;
        overscroll-behavior: contain;
        background: #fff !important;
        box-shadow: -12px 12px 30px rgba(0,0,0,.18);
        transform: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none;
        transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
        z-index: 1002 !important;
    }
    #jw-site-header .jkit-menu-wrapper.active {
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
    }
    #jw-site-header .jkit-nav-identity-panel {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        order: -1;
        flex: 0 0 auto;
        position: static;
        min-block-size: 0 !important;
        margin: 0 !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid #e8e0d8;
    }
    #jw-site-header .jkit-menu-container { flex: 0 0 auto; inline-size: 100%; }
    #jw-site-header .jkit-nav-identity-panel .jw-brand-logo { height: 50px !important; }
    #jw-site-header .jkit-close-menu {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        inline-size: 44px;
        block-size: 44px;
        padding: 0;
        border: 0;
        color: #7a1f1f !important;
        background: transparent;
    }
    #jw-site-header .jkit-close-menu i { color: #7a1f1f !important; }
    #jw-site-header.elementor-130 ul.jkit-menu {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        margin: 0;
    }
    #jw-site-header .jkit-menu li {
        position: relative;
        display: block !important;
        inline-size: 100%;
        block-size: auto !important;
        height: auto !important;
        min-block-size: 0 !important;
        flex: 0 0 auto !important;
    }
    #jw-site-header.elementor-130 .jkit-menu > li > a,
    #jw-site-header.elementor-130 .jkit-menu .sub-menu li > a {
        display: block !important;
        block-size: auto !important;
        height: auto !important;
        min-block-size: 0 !important;
        min-height: 0 !important;
        padding: 12px 54px 12px 20px !important;
        font-size: 15px;
        line-height: 1.5 !important;
        white-space: normal;
        color: #333030 !important;
    }
    #jw-site-header .jkit-menu .jw-submenu-toggle,
    #jw-site-header .jkit-menu .sub-menu .jw-submenu-toggle {
        position: absolute;
        inset-block-start: 2px;
        inset-inline-end: 8px;
        inline-size: 44px;
        block-size: 44px;
        color: #7a1f1f !important;
        z-index: 2;
    }
    #jw-site-header.elementor-130 .jkit-menu .sub-menu {
        display: none !important;
        position: static !important;
        min-inline-size: 0;
        inline-size: 100% !important;
        max-inline-size: 100%;
        margin: 0 !important;
        padding: 0 0 0 16px !important;
        background: #f7f4ef !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    #jw-site-header.elementor-130 .jkit-menu .sub-menu.dropdown-open { display: block !important; }
    #jw-site-header .jkit-overlay {
        display: none !important;
        position: fixed !important;
        inset: 70px 0 0 !important;
        background: rgba(0,0,0,.35);
        opacity: 1;
        visibility: visible;
        z-index: 1001 !important;
    }
    #jw-site-header .jw-navigation-open .jkit-overlay { display: block !important; }
}
@media (prefers-reduced-motion: reduce) {
    #jw-site-header .jkit-menu-wrapper { transition: none !important; }
}

@media (max-width: 1024px) {
    body.admin-bar #jw-site-header .jkit-menu-wrapper {
        inset-block-start: 116px !important;
        block-size: calc(100vh - 116px) !important;
        block-size: calc(100dvh - 116px) !important;
        max-block-size: calc(100vh - 116px);
        max-block-size: calc(100dvh - 116px);
    }
    body.admin-bar #jw-site-header .jkit-overlay { inset-block-start: 116px !important; }
}
@media (min-width: 783px) and (max-width: 1024px) {
    body.admin-bar #jw-site-header .jkit-menu-wrapper {
        inset-block-start: 102px !important;
        block-size: calc(100vh - 102px) !important;
        block-size: calc(100dvh - 102px) !important;
        max-block-size: calc(100vh - 102px);
        max-block-size: calc(100dvh - 102px);
    }
    body.admin-bar #jw-site-header .jkit-overlay { inset-block-start: 102px !important; }
}

/* The home template stores 1400/1200px inner rows. Cap those rows to their
   containing block so intermediate desktop widths do not overflow the viewport. */
@media (min-width: 1025px) {
    body.home .elementor-1591 .elementor-element.elementor-element-736ee49,
    body.home .elementor-1591 .elementor-element.elementor-element-a9772d9,
    body.home .elementor-1591 .elementor-element.elementor-element-345663b {
        --width: min(100%, 1400px);
        width: min(100%, 1400px) !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }
    body.home .elementor-1591 .elementor-element.elementor-element-cfed1e5 {
        --width: min(100%, 1200px);
        width: min(100%, 1200px) !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }
}

/* The same fixed rows also appear at tablet widths; keep their existing
   responsive width, while limiting each one to its own parent. */
body.home .elementor-1591 .elementor-element.elementor-element-736ee49,
body.home .elementor-1591 .elementor-element.elementor-element-a9772d9,
body.home .elementor-1591 .elementor-element.elementor-element-345663b,
body.home .elementor-1591 .elementor-element.elementor-element-cfed1e5,
body.home .elementor-1591 .elementor-element.elementor-element-4cca3f6,
body.home .elementor-1591 .elementor-element.elementor-element-f847123 {
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}
