/**
 * HQ Animated Header v1.1.9
 * Site-wide fixed overlay header. Page spacing is intentionally untouched.
 * Transparent state uses explicit white foreground content.
 */

:root {
    --hqah-header-bg: rgba(255, 255, 255, 0.98);
    --hqah-header-border: rgba(0, 0, 0, 0.08);
    --hqah-drawer-width: min(88vw, 380px);
    --hqah-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.hqah-header {
    position: sticky;
    top: 0;
    z-index: 9998;
    width: 100%;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition:
        background-color 380ms var(--hqah-ease),
        border-color 380ms var(--hqah-ease),
        box-shadow 380ms var(--hqah-ease) !important;
}

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

/* Header overlay is intentionally site-wide; page spacing remains Elementor-controlled. */

/* Elementor often paints the white header on nested containers. These are
 * structural shells only; Menu Cart panel descendants are never marked. */
.hqah-header .hqah-shell,
.hqah-header .hqah-shell::before,
.hqah-header .hqah-shell::after,
.hqah-header.hqah-transparent::before,
.hqah-header.hqah-transparent::after,
.hqah-header.hqah-transparent > .elementor,
.hqah-header.hqah-transparent > .e-con,
.hqah-header.hqah-transparent > .elementor > .e-con,
.hqah-header.hqah-transparent > .elementor > .elementor-element {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.hqah-header.hqah-transparent {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.hqah-header.hqah-solid {
    background: var(--hqah-header-bg) !important;
    background-color: var(--hqah-header-bg) !important;
    background-image: none !important;
    border-bottom: 1px solid var(--hqah-header-border) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Navigation interaction. */
.hqah-header .elementor-nav-menu--main .elementor-item,
.hqah-header nav .menu > li > a,
.hqah-header nav ul.menu > li > a {
    background-image: linear-gradient(currentColor, currentColor) !important;
    background-repeat: no-repeat !important;
    background-position: left calc(100% - 1px) !important;
    background-size: 0 1px !important;
    transition:
        color 300ms var(--hqah-ease),
        opacity 300ms var(--hqah-ease),
        background-size 340ms var(--hqah-ease),
        transform 300ms var(--hqah-ease) !important;
}

@media (hover: hover) and (pointer: fine) {
    .hqah-header .elementor-nav-menu--main .elementor-item:hover,
    .hqah-header nav .menu > li > a:hover,
    .hqah-header nav ul.menu > li > a:hover {
        background-size: 100% 1px !important;
        transform: translateY(-1px);
    }

    .hqah-header .elementor-widget-icon .elementor-icon,
    .hqah-header .elementor-menu-cart__toggle .elementor-button-icon,
    .hqah-header a[href*="my-account"],
    .hqah-header a[href*="account"] {
        transition: opacity 300ms var(--hqah-ease), transform 300ms var(--hqah-ease) !important;
    }

    .hqah-header .elementor-widget-icon .elementor-icon:hover,
    .hqah-header .elementor-menu-cart__toggle .elementor-button-icon:hover,
    .hqah-header a[href*="my-account"]:hover,
    .hqah-header a[href*="account"]:hover {
        transform: scale(1.055);
    }
}

/* Transparent state on every page: explicitly WHITE. No difference blending. */
.hqah-header.hqah-transparent .elementor-nav-menu--main .elementor-item,
.hqah-header.hqah-transparent nav .menu > li > a,
.hqah-header.hqah-transparent nav ul.menu > li > a,
.hqah-header.hqah-transparent .elementor-menu-toggle,
.hqah-header.hqah-transparent .elementor-widget-icon .elementor-icon,
.hqah-header.hqah-transparent .elementor-widget-icon a,
.hqah-header.hqah-transparent .elementor-menu-cart__toggle_button,
.hqah-header.hqah-transparent .elementor-menu-cart__toggle .elementor-button,
.hqah-header.hqah-transparent .elementor-menu-cart__toggle .elementor-button-icon,
.hqah-header.hqah-transparent a[href*="my-account"],
.hqah-header.hqah-transparent a[href*="account"] {
    color: #ffffff !important;
    mix-blend-mode: normal !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

/* Transparent-state icon treatment. Hamburger artwork can be safely
 * whitened directly. Elementor Icon widgets (the HQ account icon) are
 * inverted as one composited unit so their background + foreground swap
 * together instead of leaving a black circular backing behind. */
.hqah-header.hqah-transparent .elementor-menu-toggle svg,
.hqah-header.hqah-transparent .elementor-menu-toggle i {
    filter: brightness(0) invert(1) !important;
    mix-blend-mode: normal !important;
}

.hqah-header.hqah-transparent .elementor-widget-icon .elementor-icon {
    filter: invert(1) !important;
    mix-blend-mode: normal !important;
}

.hqah-header.hqah-transparent .elementor-widget-icon .elementor-icon svg,
.hqah-header.hqah-transparent .elementor-widget-icon .elementor-icon i,
.hqah-header.hqah-transparent .elementor-widget-icon .elementor-icon i::before {
    filter: none !important;
}

/* Menu Cart icon — preserve Elementor's exact native artwork and exact
 * native quantity-badge geometry. No replacement glyph, mask, cloned icon,
 * path redraw, or counter-position override is used. */
.hqah-header .elementor-widget-woocommerce-menu-cart,
.hqah-header .elementor-menu-cart__toggle {
    --toggle-button-background-color: transparent !important;
    --toggle-button-hover-background-color: transparent !important;
    --toggle-button-border-color: transparent !important;
    --toggle-button-hover-border-color: transparent !important;
    /* Keep the source artwork black in both states. Transparent mode turns
     * that exact artwork white with an isolated filter on the artwork only. */
    --toggle-button-icon-color: #000000 !important;
    --toggle-button-icon-hover-color: #000000 !important;
}

/* Remove the version-dependent pseudo icon from v1.1.8. Do not suppress
 * ::before because some native icon-font variants use it for their glyph. */
.hqah-header .elementor-menu-cart__toggle .elementor-button-icon::after {
    content: none !important;
    display: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    background: transparent !important;
}

/* Native wrapper / pseudo-icon fallback. */
.hqah-header.hqah-transparent .elementor-menu-cart__toggle .elementor-button-icon {
    color: #ffffff !important;
}

.hqah-header.hqah-solid .elementor-menu-cart__toggle .elementor-button-icon {
    color: #000000 !important;
}

/* JavaScript marks the real cart artwork node, whether Elementor rendered it
 * as an SVG, icon-font node, custom-icon wrapper, or image. Only this artwork
 * is filtered — never the counter. Inverting black/white artwork and using
 * screen blending keeps the exact cart shape white while a white artboard or
 * backing becomes black and therefore visually disappears over the hero. */
.hqah-header .hqah-cart-artwork {
    visibility: visible !important;
    opacity: 1 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
}

.hqah-header.hqah-transparent .hqah-cart-artwork {
    color: #000000 !important;
    filter: invert(1) !important;
    mix-blend-mode: screen !important;
}

.hqah-header.hqah-solid .hqah-cart-artwork {
    color: #000000 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* SVGs keep Elementor's native geometry and source colours so the
 * artwork-level filter works without repainting individual paths. */
.hqah-header .hqah-cart-artwork svg,
.hqah-header svg.hqah-cart-artwork {
    background: transparent !important;
    background-color: transparent !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Keep native artwork visible if an earlier cached stylesheet hid it. */
.hqah-header .elementor-menu-cart__toggle .elementor-button-icon > svg,
.hqah-header .elementor-menu-cart__toggle .elementor-button-icon > i,
.hqah-header .elementor-menu-cart__toggle .elementor-button-icon > img,
.hqah-header .elementor-menu-cart__toggle .elementor-button-icon > .e-icon,
.hqah-header .elementor-menu-cart__toggle .elementor-button-icon > .e-icon-wrapper,
.hqah-header .elementor-menu-cart__toggle .e-toggle-cart-custom-icon {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Preserve Elementor's original bubble placement exactly. There are
 * deliberately no position/top/inset/size/transform declarations here. */
.hqah-header .elementor-menu-cart__toggle .elementor-button-icon-qty {
    z-index: 2 !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    text-shadow: none !important;
}

/* The HQ logo is a dark raster/transparent logo, so this safely renders it white. */
.hqah-header.hqah-transparent .elementor-widget-theme-site-logo img,
.hqah-header.hqah-transparent .elementor-widget-site-logo img,
.hqah-header.hqah-transparent img.custom-logo,
.hqah-header.hqah-transparent .site-logo img,
.hqah-header.hqah-transparent .elementor-widget-image img {
    filter: brightness(0) invert(1) !important;
    mix-blend-mode: normal !important;
}

/* Solid state: black foreground on white. */
.hqah-header.hqah-solid .elementor-nav-menu--main .elementor-item,
.hqah-header.hqah-solid nav .menu > li > a,
.hqah-header.hqah-solid nav ul.menu > li > a,
.hqah-header.hqah-solid .elementor-menu-toggle,
.hqah-header.hqah-solid .elementor-widget-icon .elementor-icon,
.hqah-header.hqah-solid .elementor-widget-icon a,
.hqah-header.hqah-solid .elementor-menu-cart__toggle_button,
.hqah-header.hqah-solid .elementor-menu-cart__toggle .elementor-button,
.hqah-header.hqah-solid .elementor-menu-cart__toggle .elementor-button-icon,
.hqah-header.hqah-solid a[href*="my-account"],
.hqah-header.hqah-solid a[href*="account"] {
    color: #000000 !important;
    mix-blend-mode: normal !important;
    text-shadow: none !important;
}

.hqah-header.hqah-solid .elementor-menu-toggle svg,
.hqah-header.hqah-solid .elementor-menu-toggle i,
.hqah-header.hqah-solid .elementor-widget-icon .elementor-icon,
.hqah-header.hqah-solid .elementor-widget-icon svg,
.hqah-header.hqah-solid .elementor-widget-icon i,
.hqah-header.hqah-solid .elementor-menu-cart__toggle .elementor-button-icon svg,
.hqah-header.hqah-solid .elementor-menu-cart__toggle .elementor-button-icon > i,
.hqah-header.hqah-solid a[href*="my-account"] svg,
.hqah-header.hqah-solid a[href*="account"] svg,
.hqah-header.hqah-solid .elementor-widget-theme-site-logo img,
.hqah-header.hqah-solid .elementor-widget-site-logo img,
.hqah-header.hqah-solid img.custom-logo,
.hqah-header.hqah-solid .site-logo img,
.hqah-header.hqah-solid .elementor-widget-image img {
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Elementor Menu Cart toggle only. Never style the actual side-cart panel. */
.hqah-header .elementor-menu-cart__toggle,
.hqah-header .elementor-menu-cart__toggle .elementor-button-wrapper,
.hqah-header .elementor-menu-cart__toggle_button,
.hqah-header .elementor-menu-cart__toggle_button:hover,
.hqah-header .elementor-menu-cart__toggle_button:focus,
.hqah-header .elementor-menu-cart__toggle_button:active,
.hqah-header .elementor-menu-cart__toggle .elementor-button,
.hqah-header .elementor-menu-cart__toggle .elementor-button:hover,
.hqah-header .elementor-menu-cart__toggle .elementor-button:focus,
.hqah-header .elementor-menu-cart__toggle .elementor-button:active,
.hqah-header .elementor-menu-cart__toggle .elementor-button-icon {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.hqah-header .elementor-menu-cart__toggle_button::before,
.hqah-header .elementor-menu-cart__toggle_button::after,
.hqah-header .elementor-menu-cart__toggle .elementor-button::before,
.hqah-header .elementor-menu-cart__toggle .elementor-button::after {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.hqah-header .elementor-menu-cart__toggle .elementor-button-icon-qty {
    mix-blend-mode: normal !important;
    filter: none !important;
    text-shadow: none !important;
}

.hqah-header a:focus-visible,
.hqah-header button:focus-visible,
.hqah-drawer a:focus-visible,
.hqah-drawer button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* -------------------------------------------------------------------------
 * Mobile left-side navigation drawer (approved behaviour retained)
 * ---------------------------------------------------------------------- */
.hqah-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10010;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 420ms var(--hqah-ease), visibility 0s linear 420ms;
}

.hqah-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10020;
    width: var(--hqah-drawer-width);
    max-width: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #ffffff;
    color: #000000;
    transform: translate3d(-102%, 0, 0);
    visibility: hidden;
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.12);
    transition: transform 500ms var(--hqah-ease), visibility 0s linear 500ms;
    -webkit-overflow-scrolling: touch;
}

.hqah-drawer__top {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px 14px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.hqah-drawer__label {
    margin: 0;
    font: inherit;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hqah-drawer__close,
.hqah-drawer__close:hover,
.hqah-drawer__close:focus,
.hqah-drawer__close:active {
    appearance: none !important;
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    display: inline-grid;
    place-items: center;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: background-color 260ms var(--hqah-ease), transform 300ms var(--hqah-ease) !important;
}

.hqah-drawer__close::before,
.hqah-drawer__close::after {
    content: "";
    position: absolute;
    width: 21px;
    height: 1.5px;
    background: #000000;
    border-radius: 2px;
}

.hqah-drawer__close::before { transform: rotate(45deg); }
.hqah-drawer__close::after { transform: rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
    .hqah-drawer__close:hover {
        background-color: #f1f1f1 !important;
        transform: rotate(4deg);
    }
}

.hqah-drawer__nav { padding: 28px 22px 38px; }
.hqah-drawer__nav ul,
.hqah-drawer__nav li { margin: 0; padding: 0; list-style: none; }
.hqah-drawer__nav > ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; }

.hqah-drawer__nav li {
    opacity: 0;
    transform: translate3d(-16px, 0, 0);
    transition: opacity 500ms var(--hqah-ease), transform 560ms var(--hqah-ease);
    transition-delay: 0ms;
}

.hqah-drawer__nav a {
    display: flex !important;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 5px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #000000 !important;
    font: inherit;
    font-size: clamp(18px, 5.2vw, 24px) !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em;
    text-decoration: none !important;
    transform: none !important;
    transition: opacity 260ms ease, transform 300ms var(--hqah-ease) !important;
}

.hqah-drawer__nav a .sub-arrow { margin-left: auto; }
.hqah-drawer__nav .sub-menu {
    position: static !important;
    width: auto !important;
    margin: 0 0 8px 14px !important;
    padding: 0 !important;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
}
.hqah-drawer__nav .sub-menu a { min-height: 40px; font-size: 15px !important; opacity: 0.66; }

@media (hover: hover) and (pointer: fine) {
    .hqah-drawer__nav a:hover { opacity: 0.52; transform: translateX(4px) !important; }
}

body.hqah-menu-open { overflow: hidden; touch-action: none; }
body.hqah-menu-open .hqah-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 420ms var(--hqah-ease), visibility 0s linear 0s;
}
body.hqah-menu-open .hqah-drawer {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition: transform 500ms var(--hqah-ease), visibility 0s linear 0s;
}
body.hqah-menu-open .hqah-drawer__nav li {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: calc(170ms + (var(--hqah-item-index, 0) * 72ms));
}


@media (max-width: 782px) {
    body.admin-bar .hqah-header { top: 46px; }
}

@media (max-width: 767px) {
    .hqah-header .elementor-nav-menu--dropdown,
    .hqah-header .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        display: none !important;
        height: 0 !important;
        max-height: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hqah-header .elementor-menu-toggle,
    .hqah-header .elementor-menu-toggle:hover,
    .hqah-header .elementor-menu-toggle:focus,
    .hqah-header .elementor-menu-toggle:active {
        background: transparent !important;
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        transition: color 300ms var(--hqah-ease), opacity 300ms var(--hqah-ease), transform 300ms var(--hqah-ease) !important;
    }

    .hqah-header .elementor-menu-toggle:active { transform: scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
    .hqah-header,
    .hqah-backdrop,
    .hqah-drawer,
    .hqah-drawer__nav li,
    .hqah-drawer__nav a,
    .hqah-drawer__close,
    .hqah-header * {
        animation: none !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
}
