/* ── Google Fonts ─────────────────────────────────────────── */
/* Sora loaded in <head> via link tag */

/* ── Announcement bar ─────────────────────────────────────── */
#hb-ann {
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .01em;
    position: relative;
    z-index: 1001;
}
.hb-ann-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 9px 48px 9px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hb-ann-link {
    font-weight: 700;
    text-decoration: underline;
    color: inherit;
    white-space: nowrap;
    margin-left: 4px;
}
.hb-ann-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: .7;
    line-height: 1;
    padding: 4px;
    transition: opacity var(--t-fast);
}
.hb-ann-close:hover { opacity: 1; }

/* ── Header shell ─────────────────────────────────────────── */
.hb-header {
    position: relative;
    width: 100%;
    background: var(--hb-hdr-bg);
    color: var(--hb-hdr-text);
    z-index: 1000;
    font-family: 'Sora', sans-serif;
    transition:
        background var(--t-mid),
        box-shadow var(--t-mid),
        height var(--t-mid),
        color var(--t-fast);
}
.hb-header { border-bottom: 1px solid var(--hb-hdr-border); }
.hb-header { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hb-header.hb-shadow { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

/* ── Sticky modes ─────────────────────────────────────────── */
.hb-sticky-always,
.hb-sticky-desktop { position: sticky; top: 0; }
@media (max-width: 768px) {
    .hb-sticky-desktop { position: relative; }
    .hb-sticky-mobile  { position: sticky; top: 0; }
}

/* ── Transparent hero mode ────────────────────────────────── */
.hb-transparent {
    position: absolute;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom-color: transparent !important;
}
.hb-transparent .hb-nav > ul > li > a,
.hb-transparent .hb-site-title,
.hb-transparent .hb-icon-btn,
.hb-transparent .hb-auth-btn { color: #fff; }

/* ── Scrolled state (JS adds .hb-scrolled) ───────────────── */
.hb-header.hb-scrolled {
    position: fixed;
    background: var(--hb-hdr-scroll-bg) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.hb-header.hb-scrolled .hb-header-inner { height: var(--hb-hdr-h-scroll); }

/* ── Inner container ─────────────────────────────────────── */
.hb-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: var(--hb-hdr-h);
    display: flex;
    align-items: center;
    gap: 0;
    transition: height var(--t-mid);
}

/* ── Logo ─────────────────────────────────────────────────── */
.hb-logo { flex-shrink: 0; margin-right: 40px; }
.hb-logo--center { flex: 1; text-align: center; margin-right: 0; }
.hb-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--hb-hdr-text);
}
.hb-logo-img {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--t-fast);
}
.hb-logo-dark  { display: none; }
body.ss-dark-mode .hb-logo-light { display: none; }
body.ss-dark-mode .hb-logo-dark  { display: block; }

.hb-site-title {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--hb-hdr-text);
    letter-spacing: -.02em;
    white-space: nowrap;
    background: var(--hb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Desktop navigation ───────────────────────────────────── */
.hb-nav {
    flex: 1;
    display: flex;
    align-items: center;
}
.hb-nav--center { justify-content: center; }
.hb-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--hb-nav-spacing);
}
.hb-nav > ul { gap: var(--hb-nav-spacing); }
.hb-nav > ul > li { position: relative; }
.hb-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--hb-nav-size);
    font-weight: var(--hb-nav-weight);
    color: var(--hb-nav-text);
    text-decoration: none !important;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
        transition: color var(--t-fast);
}
.hb-nav > ul > li > a:hover,
.hb-nav > ul > li > a:focus { color: var(--hb-nav-hover); }
.hb-nav > ul > li.current-menu-item > a,
.hb-nav > ul > li.current-menu-ancestor > a { color: var(--hb-nav-active); }

/* ── Nav underline style ─────────────────────────────────── */

/* ── Dropdown chevron ─────────────────────────────────────── */
.hb-nav > ul > li.menu-item-has-children > a .hb-chevron {
    display: inline-block;
    width: 14px;
    height: 14px;
    opacity: .5;
    transition: transform var(--t-fast), opacity var(--t-fast);
    flex-shrink: 0;
}
.hb-nav > ul > li.menu-item-has-children:hover > a .hb-chevron,
.hb-nav > ul > li.menu-item-has-children:focus-within > a .hb-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── CANVAS DROPDOWN MEGA MENU ─────────────────────────────── */
.hb-nav > ul > li.menu-item-has-children {
    position: static;
}
.hb-nav > ul > li.menu-item-has-children > .sub-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;    min-width: 220px;
    background: var(--hb-dd-bg);
    border-radius: var(--hb-dd-radius);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.97);
    transform-origin: top left;
    transition: opacity var(--t-mid), transform var(--t-mid), visibility var(--t-mid);
        box-shadow: 0 8px 40px rgba(0,0,0,.14), 0 2px 12px rgba(0,0,0,.06);
        border: 1px solid rgba(0,0,0,.06);
    z-index: 1001;
}
body.ss-dark-mode .hb-nav > ul > li.menu-item-has-children > .sub-menu {
    border-color: rgba(255,255,255,.06);
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.hb-nav > ul > li.menu-item-has-children:hover > .sub-menu,
.hb-nav > ul > li.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
/* dropdown items */
.hb-nav > ul > li > .sub-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--hb-dd-text);
    text-decoration: none;
    border-radius: calc(var(--hb-dd-radius) - 2px);
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
}
.hb-nav > ul > li > .sub-menu > li > a:hover {
    background: var(--hb-dd-hover);
    color: var(--hb-nav-hover);
    transform: translateX(3px);
}
/* 3rd level */
.hb-nav > ul > li > .sub-menu > li.menu-item-has-children { position: relative; }
.hb-nav > ul > li > .sub-menu > li.menu-item-has-children > .sub-menu {
    position: absolute;
    left: calc(100% + 4px);
    top: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity var(--t-mid), transform var(--t-mid), visibility var(--t-mid);
    background: var(--hb-dd-bg);
    border-radius: var(--hb-dd-radius);
    padding: 8px;
        box-shadow: 0 8px 40px rgba(0,0,0,.14);
        border: 1px solid rgba(0,0,0,.06);
    z-index: 1002;
}
.hb-nav > ul > li > .sub-menu > li.menu-item-has-children:hover > .sub-menu {
    opacity: 1; visibility: visible; transform: translateX(0);
}

/* ── Canvas-style product mega dropdown ───────────────────── */
/* Triggered by adding CSS class "mega-menu" to a menu item in WP */
.hb-nav > ul > li.mega-menu {
    position: static !important;
}
.hb-nav > ul > li.mega-menu > .sub-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-8px) scale(.97) !important;
    transform-origin: top center;
    width: 760px;
    max-width: calc(100vw - 48px);
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.hb-nav > ul > li.mega-menu:hover > .sub-menu,
.hb-nav > ul > li.mega-menu:focus-within > .sub-menu {
    transform: translateX(-50%) translateY(0) scale(1) !important;
    opacity: 1;
    visibility: visible;
}
.hb-nav > ul > li.mega-menu > .sub-menu > li {
    padding: 24px 20px;
    border-right: 1px solid rgba(0,0,0,.05);
}
body.ss-dark-mode .hb-nav > ul > li.mega-menu > .sub-menu > li {
    border-right-color: rgba(255,255,255,.05);
}
.hb-nav > ul > li.mega-menu > .sub-menu > li:last-child { border-right: none; }
.hb-nav > ul > li.mega-menu > .sub-menu > li > a {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 0 !important;
    margin-bottom: 16px;
    font-size: .78rem !important;
    font-weight: 700 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hb-nav-hover) !important;
    background: none !important;
    transform: none !important;
    white-space: normal !important;
    cursor: default;
    pointer-events: none;
}
.hb-nav > ul > li.mega-menu > .sub-menu > li > a:hover { transform: none !important; }
.hb-nav > ul > li.mega-menu > .sub-menu > li > .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: 0 !important;
}
.hb-nav > ul > li.mega-menu > .sub-menu > li > .sub-menu > li > a {
    padding: 8px 0 !important;
    font-size: .875rem !important;
    color: var(--hb-dd-text) !important;
    white-space: normal !important;
    border-radius: 0 !important;
    border-bottom: 1px solid transparent;
}
.hb-nav > ul > li.mega-menu > .sub-menu > li > .sub-menu > li > a:hover {
    background: none !important;
    color: var(--hb-nav-hover) !important;
    transform: none !important;
    border-bottom-color: var(--hb-nav-hover) !important;
}

/* ── Right actions ────────────────────────────────────────── */
.hb-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Icon buttons ─────────────────────────────────────────── */
.hb-icon-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: none;
    color: var(--hb-nav-text);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.hb-icon-btn:hover {
    background: rgba(var(--hb-primary-rgb), .08);
    color: var(--hb-primary);
}

/* ── Auth buttons ─────────────────────────────────────────── */
.hb-auth-btn {
    font-family: 'Sora', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: var(--hb-auth-radius);
    transition: all var(--t-fast);
    white-space: nowrap;
}
.hb-auth-login.hb-style-text   { color: var(--hb-nav-text); background: none; }
.hb-auth-login.hb-style-text:hover { color: var(--hb-nav-hover); }
.hb-auth-login.hb-style-ghost  { border: 1.5px solid var(--hb-auth-bg); color: var(--hb-auth-bg); }
.hb-auth-login.hb-style-button,
.hb-auth-register.hb-style-button {
    background: var(--hb-auth-bg);
    color: var(--hb-auth-text);
    box-shadow: 0 2px 10px rgba(var(--hb-primary-rgb), .25);
}
.hb-auth-register.hb-style-text { color: var(--hb-nav-text); background: none; }
.hb-auth-register.hb-style-text:hover { color: var(--hb-nav-hover); }
.hb-auth-login.hb-style-button:hover,
.hb-auth-register.hb-style-button:hover {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--hb-primary-rgb), .35);
}
.hb-auth-logout {
    color: var(--hb-nav-text);
    font-size: .82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hb-auth-logout:hover { color: var(--hb-nav-hover); }

/* ── CTA button ───────────────────────────────────────────── */
.hb-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--hb-cta-bg);
    color: var(--hb-cta-text);
    font-family: 'Sora', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    border-radius: var(--hb-cta-radius);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    box-shadow: 0 3px 14px rgba(var(--hb-primary-rgb), .3);
    position: relative;
    overflow: hidden;
}
.hb-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transform: translateX(-100%);
    transition: transform .5s;
}
.hb-cta-btn:hover::before { transform: translateX(100%); }
.hb-cta-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(var(--hb-primary-rgb), .4);
}
.hb-cta-btn svg { flex-shrink: 0; }

/* ── Hamburger button ─────────────────────────────────────── */
.hb-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1.5px solid rgba(var(--hb-primary-rgb), .25);
    border-radius: 9px;
    padding: 9px 10px;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast);
    width: 42px;
    height: 40px;
    align-items: center;
    justify-content: center;
}
.hb-burger:hover { border-color: var(--hb-primary); background: rgba(var(--hb-primary-rgb), .06); }
.hb-burger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--hb-hdr-text);
    border-radius: 2px;
    transition: transform var(--t-mid), opacity var(--t-fast), width var(--t-mid);
}
.hb-burger.is-open .hb-burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hb-burger.is-open .hb-burger-bar:nth-child(2) { opacity: 0; width: 0; }
.hb-burger.is-open .hb-burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hb-burger-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--hb-hdr-text);
}

/* ── Search overlay ───────────────────────────────────────── */
.hb-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-mid), visibility var(--t-mid);
}
.hb-search-overlay.is-open { opacity: 1; visibility: visible; }
.hb-search-inner {
    width: 100%;
    max-width: 620px;
    padding: 0 20px;
    position: relative;
}
.hb-search-inner .search-form,
.hb-search-inner form {
    display: flex;
    gap: 0;
}
.hb-search-inner input[type="search"],
.hb-search-inner input[type="text"] {
    flex: 1;
    padding: 16px 24px;
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    background: #fff;
    border: none;
    border-radius: 14px 0 0 14px;
    outline: none;
    color: #111;
}
body.ss-dark-mode .hb-search-inner input { background: #1e2538; color: #edf0f9; }
.hb-search-inner button[type="submit"] {
    padding: 16px 24px;
    background: var(--hb-gradient);
    color: #fff;
    border: none;
    border-radius: 0 14px 14px 0;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    white-space: nowrap;
    transition: opacity var(--t-fast);
}
.hb-search-inner button[type="submit"]:hover { opacity: .88; }
.hb-search-close {
    position: absolute;
    top: -56px;
    right: 20px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast);
}
.hb-search-close:hover { background: rgba(255,255,255,.25); }
.hb-search-hint {
    margin-top: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    text-align: center;
}

/* ── Mobile drawer ────────────────────────────────────────── */
.hb-drawer {
    position: fixed;
    top: 0;
    height: 100%;
    width: min(320px, 90vw);
    background: var(--hb-hdr-bg);
    z-index: 9001;
    overflow-y: auto;
    transition: transform var(--t-mid);
    display: flex;
    flex-direction: column;
}
.hb-drawer-slide-right,
.hb-drawer-dropdown { right: 0; transform: translateX(100%); }
.hb-drawer-slide-left  { left: 0; transform: translateX(-100%); }
.hb-drawer-fullscreen  {
    width: 100%;
    right: 0;
    transform: translateX(100%);
}
.hb-drawer.is-open { transform: translateX(0) !important; }

.hb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-mid), visibility var(--t-mid);
}
.hb-overlay.is-open { opacity: 1; visibility: visible; }

.hb-drawer-inner { padding: 0 0 32px; min-height: 100%; display: flex; flex-direction: column; }
.hb-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    border-bottom: 1px solid var(--hb-hdr-border);
    position: sticky;
    top: 0;
    background: var(--hb-hdr-bg);
    z-index: 1;
}
.hb-drawer-logo img { height: 36px; }
.hb-drawer-close {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(var(--hb-primary-rgb), .08);
    border: none;
    color: var(--hb-hdr-text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--t-fast);
}
.hb-drawer-close:hover { background: rgba(var(--hb-primary-rgb), .15); }

.hb-drawer-nav { flex: 1; padding: 12px 12px; }
.hb-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hb-drawer-menu li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    font-family: 'Sora', sans-serif;
    font-size: .92rem;
    font-weight: 500;
    color: var(--hb-hdr-text);
    text-decoration: none;
    border-radius: 9px;
    transition: background var(--t-fast), color var(--t-fast);
}
.hb-drawer-menu li > a:hover,
.hb-drawer-menu li.current-menu-item > a {
    background: rgba(var(--hb-primary-rgb), .07);
    color: var(--hb-primary);
}
.hb-drawer-menu .hb-sub-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background var(--t-fast), transform var(--t-fast);
    flex-shrink: 0;
}
.hb-drawer-menu .hb-sub-toggle.open { transform: rotate(180deg); }
.hb-drawer-menu ul {
    list-style: none;
    margin: 4px 0 4px 12px;
    padding: 0;
    border-left: 2px solid rgba(var(--hb-primary-rgb), .15);
    display: none;
}
.hb-drawer-menu ul.open { display: block; }
.hb-drawer-menu ul li > a {
    padding: 9px 12px;
    font-size: .85rem;
    font-weight: 400;
}

.hb-drawer-cta {
    padding: 16px 20px 0;
    border-top: 1px solid var(--hb-hdr-border);
    margin-top: auto;
}
.hb-drawer-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--hb-gradient);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(var(--hb-primary-rgb), .3);
    transition: opacity var(--t-fast), transform var(--t-fast);
}
.hb-drawer-cta-btn:hover { opacity: .88; transform: translateY(-1px); }

.hb-drawer-auth {
    display: flex;
    gap: 8px;
    padding: 12px 20px 0;
}
.hb-drawer-auth-login,
.hb-drawer-auth-reg {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 9px;
    font-family: 'Sora', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
}
.hb-drawer-auth-login {
    border: 1.5px solid var(--hb-hdr-border);
    color: var(--hb-hdr-text);
}
.hb-drawer-auth-login:hover { border-color: var(--hb-primary); color: var(--hb-primary); }
.hb-drawer-auth-reg {
    background: var(--hb-gradient);
    color: #fff;
    box-shadow: 0 2px 10px rgba(var(--hb-primary-rgb), .3);
}

/* ── Body shift when header is sticky ───────────────────────  */
body.hb-has-sticky-header { scroll-padding-top: 60px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hb-nav { display: none; }
    .hb-burger { display: flex; }
    .hb-header-inner { height: var(--hb-hdr-h-mob); padding: 0 20px; }
    .hb-logo { margin-right: 0; }
    .hb-logo-img { height: 36px; }
    .hb-actions { gap: 6px; }
    .hb-cta-btn { display: none; }
    .hb-auth-btn { display: none; }
    .hb-icon-btn { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
    .hb-header-inner { padding: 0 16px; }
}

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--hb-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    font-family: 'Sora', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 10000;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* ── No-JS safety ─────────────────────────────────────────── */
.no-js .hb-burger { display: none !important; }
.no-js .hb-nav { display: flex !important; }