/* ===========================================
   File: header.css
   HISTORICUM HEADER / NAVIGATION STYLES
   =========================================== */

/* -----------------------------------------
   HEADER BASE
----------------------------------------- */
.h-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    transform: translateY(0);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, transform 0.32s ease;
}

.h-header.h-header-scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.h-header.h-header-hidden {
    transform: translateY(-110%);
}

.h-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 2rem;
}

.h-header-left {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    min-width: 0;
}


/* -----------------------------------------
   LOGO
----------------------------------------- */
#masthead .site-branding,
#masthead .site-title,
#masthead .site-description,
.site-header .site-branding,
.site-header .site-title,
.site-header .site-description {
    display: none !important;
}

.h-header-logo {
    flex-shrink: 0;
    font-size: 0;
    line-height: 0;
}

.h-logo-link {
    display: block;
    font-size: 0;
    line-height: 0;
}

.h-logo-img {
    display: block;
    height: 50px;
    width: auto;
    color: transparent !important;
    font-size: 0 !important;
    transition: transform 0.3s ease;
}

.h-logo-link:hover .h-logo-img {
    transform: scale(1.05);
}


/* -----------------------------------------
   MAIN NAVIGATION
----------------------------------------- */
.h-header-nav {
    flex: 0 1 auto;
    margin-left: 2rem;
}

.h-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.h-nav-menu li {
    position: relative;
}

#h-header .h-nav-menu {
    gap: clamp(1rem, 1.45vw, 2rem);
}

.h-nav-menu > li > a {
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--h-white);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.h-nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--h-accent);
    transition: width 0.3s ease;
}

.h-nav-menu > li > a:hover,
.h-nav-menu > li.h-nav-active > a {
    color: var(--h-accent);
}

.h-nav-menu > li > a:hover::after,
.h-nav-menu > li.h-nav-active > a::after {
    width: 100%;
}

/* Old generic dropdown rules — disabled, mega menu handles this now.
   Kept as comments for reference if non-mega dropdowns are ever needed.
*/
/*
.h-nav-menu li ul { ... }
.h-nav-menu li:hover ul { ... }
.h-nav-menu li ul li a { ... }
.h-nav-menu li ul li a:hover { ... }
*/


/* -----------------------------------------
   HEADER RIGHT SIDE
----------------------------------------- */
.h-header-right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

/* Search Toggle */
.h-header-search-toggle {
    background: none;
    border: none;
    color: var(--h-white);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.h-header-search-toggle:hover {
    color: var(--h-accent);
}

/* Cart */
.h-header-cart {
    position: relative;
    color: var(--h-white);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.h-header-cart:hover {
    color: var(--h-accent);
}

#h-header .h-header-search-toggle,
#h-header .h-header-cart,
#h-header .h-header-login,
#h-header .h-header-cart:visited,
#h-header .h-header-login:visited {
    color: var(--h-white) !important;
    opacity: 1 !important;
}

#h-header .h-header-search-toggle svg,
#h-header .h-header-cart svg,
#h-header .h-header-search-toggle svg *,
#h-header .h-header-cart svg * {
    color: currentColor !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

#h-header .h-header-search-toggle:hover,
#h-header .h-header-cart:hover,
#h-header .h-header-login:hover {
    color: var(--h-accent) !important;
    opacity: 1 !important;
}

.h-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--h-accent);
    color: var(--h-black);
    font-family: var(--h-font-cinzel);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Link */
.h-header-login {
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--h-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.h-header-login:hover {
    color: var(--h-accent);
}

/* Highlighted Buttons (Community, Training) */
.h-header-btn {
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: background 0.3s ease, color 0.3s ease;
}

.h-btn-highlight {
    background: var(--h-accent);
    color: var(--h-black);
}

/* Simple hover - just transitions to white smoothly, NO glow */
.h-btn-highlight:hover {
    background: var(--h-white);
    color: var(--h-black);
}


/* -----------------------------------------
   MOBILE TOGGLE
----------------------------------------- */
.h-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.h-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.h-hamburger span {
    display: block;
    height: 2px;
    background: var(--h-white);
    transition: all 0.3s ease;
}

.h-mobile-toggle.active .h-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.h-mobile-toggle.active .h-hamburger span:nth-child(2) {
    opacity: 0;
}

.h-mobile-toggle.active .h-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* -----------------------------------------
   SEARCH OVERLAY
----------------------------------------- */
.h-search-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background:
        radial-gradient(68% 54% at 8% 0%, rgba(235, 188, 0, 0.18) 0%, rgba(235, 188, 0, 0.06) 34%, rgba(0, 0, 0, 0) 68%),
        rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    contain: paint;
    will-change: opacity;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.h-search-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.h-search-overlay-inner {
    --h-search-rip-height: 52px;
    width: 100%;
    max-width: 720px;
    padding: 42px 46px 48px;
    position: relative;
    color: var(--h-black);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 34%),
        var(--h-paper);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.48),
        4px 4px 8px -1px rgba(0, 0, 0, 0.86),
        inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.h-search-overlay-inner::before,
.h-search-overlay-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--h-search-rip-height);
    pointer-events: none;
    background-color: var(--h-paper);
    background-image: none;
    clip-path: polygon(0 68%, 6% 62%, 12% 70%, 18% 64%, 24% 72%, 30% 66%, 36% 74%, 42% 68%, 48% 76%, 54% 70%, 60% 78%, 66% 71%, 72% 77%, 78% 69%, 84% 75%, 90% 67%, 96% 73%, 100% 70%, 100% 100%, 0 100%);
}

.h-search-overlay-inner::before {
    top: calc(var(--h-search-rip-height) * -1 + 1px);
    transform: none;
}

.h-search-overlay-inner::after {
    bottom: calc(var(--h-search-rip-height) * -1 + 1px);
    transform: scaleY(-1);
    transform-origin: center;
}

@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
    .h-search-overlay-inner::before,
    .h-search-overlay-inner::after {
        clip-path: none;
        -webkit-mask-image: url("https://historicum.pl/wp-content/uploads/2026/04/torn-edge.svg");
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: 145% 100%;
        mask-image: url("https://historicum.pl/wp-content/uploads/2026/04/torn-edge.svg");
        mask-repeat: no-repeat;
        mask-size: 145% 100%;
    }

    .h-search-overlay-inner::before {
        -webkit-mask-position: 42% bottom;
        mask-position: 42% bottom;
    }

    .h-search-overlay-inner::after {
        -webkit-mask-position: 58% top;
        mask-position: 58% top;
    }
}

html.h-overlay-open,
body.h-overlay-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.h-search-form {
    display: block;
    width: 100%;
}

.h-search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--h-accent);
    padding: 1rem 0;
    font-family: var(--h-font-cormorant);
    font-size: 24px;
    color: var(--h-white);
    outline: none;
}

.h-search-input::placeholder {
    color: var(--h-gray-mid);
}

.h-search-submit {
    background: var(--h-accent);
    color: var(--h-black);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--h-font-cinzel);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.h-search-submit:hover {
    background: var(--h-white);
}

.h-search-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: var(--h-black);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.22s ease, transform 0.22s ease;
    z-index: 5;
}

.h-search-close:hover {
    color: var(--h-accent);
    transform: rotate(4deg);
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-search-overlay {
        align-items: flex-start;
        padding: 92px 16px 24px;
    }

    .h-search-overlay-inner {
        --h-search-rip-height: 42px;
        padding: 34px 20px 38px;
    }

    .h-search-close {
        top: 10px;
        right: 12px;
        font-size: 30px;
    }
}


/* -----------------------------------------
   MOBILE MENU OVERLAY
----------------------------------------- */
.h-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.h-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

html.h-menu-open,
body.h-menu-open {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    html.h-menu-open,
    body.h-menu-open {
        width: 100%;
        overscroll-behavior: none;
    }

    html.h-menu-open {
        touch-action: none;
    }

    body.h-menu-open .h-mobile-menu-overlay {
        overscroll-behavior: none;
    }
}

.h-mobile-menu-inner {
    padding: 6rem 2rem 2rem;
    min-height: 100%;
}

.h-mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--h-white);
    font-size: 40px;
    cursor: pointer;
}

.h-mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.h-mobile-nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.h-mobile-nav-menu li a {
    display: block;
    padding: 1.25rem 0;
    font-family: var(--h-font-cormorant);
    font-size: clamp(20px, 6vw, 24px);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    color: var(--h-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.h-mobile-nav-menu li a:hover {
    color: var(--h-accent);
}

.h-mobile-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.h-mobile-actions .h-btn {
    display: block;
    width: 100%;
    padding: 1.25rem 0;
    border: 0;
    border-bottom: 1px solid rgba(235, 188, 0, 0.34);
    text-align: left;
    border-radius: 0;
    background: transparent;
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.h-mobile-actions .h-btn:hover,
.h-mobile-actions .h-btn:focus {
    background: rgba(235, 188, 0, 0.12);
    color: var(--h-accent);
}


/* -----------------------------------------
   RESPONSIVE - TABLET
----------------------------------------- */
@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-header-inner {
        padding: 1rem 1.5rem;
    }
    
    .h-nav-menu {
        gap: 1.5rem;
    }
    
    .h-nav-menu > li > a {
        font-size: 12px;
    }
    
    .h-header-right {
        gap: 1rem;
    }
}


/* -----------------------------------------
   RESPONSIVE - MOBILE
----------------------------------------- */
@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-header-nav,
    .h-header-login,
    .h-header-btn {
        display: none;
    }

    .h-mobile-toggle {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex: 0 0 40px;
    }

    /* Push search+cart to the right, hamburger sits right next to them */
    .h-header-inner {
        justify-content: flex-start;
        align-items: center;
        gap: 0.35rem;
    }

    .h-header-right {
        margin-left: auto;
        gap: 0.16rem;
        align-items: center;
    }

    .h-mobile-toggle {
        margin-left: 0.05rem;
    }

    #h-header .h-header-search-toggle,
    #h-header .h-header-cart {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex: 0 0 40px;
        padding: 0;
        line-height: 1;
    }

    #h-header .h-header-search-toggle svg,
    #h-header .h-header-cart svg {
        display: block;
        width: 20px;
        height: 20px;
    }

    .h-logo-img {
        height: 40px;
    }
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-header-inner {
        padding: 0.75rem 1rem;
    }
    
    .h-logo-img {
        height: 35px;
    }
}


/* -----------------------------------------
   GLOBAL FOOTER
----------------------------------------- */
.h-site-footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(235, 188, 0, 0.045) 0%, #050604 18%, #020302 62%, #000000 100%);
    color: var(--h-white);
    border-top: none;
    padding: 86px 32px 44px;
}

.h-site-footer-inner {
    position: relative;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.h-site-footer-top {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0;
    transform: translateX(-50%);
}

.h-site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(18px, 3vw, 46px);
}

.h-site-footer-nav a,
.h-site-footer-nav a:visited,
.h-site-footer-social-links a,
.h-site-footer-social-links a:visited,
.h-site-footer-contact a,
.h-site-footer-contact a:visited {
    color: var(--h-white) !important;
    text-decoration: none;
    transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.h-site-footer-nav a {
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.h-site-footer-nav a:hover,
.h-site-footer-social-links a:hover,
.h-site-footer-contact a:hover {
    color: var(--h-accent) !important;
}

.h-site-footer-top-button {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    background: transparent;
    color: var(--h-white);
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.h-site-footer-top-button:hover {
    border-color: var(--h-accent);
    background: var(--h-accent);
    color: #111111;
    transform: translateY(-2px);
}

.h-site-footer-top-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.h-site-footer-body {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr);
    gap: clamp(48px, 10vw, 180px);
    align-items: stretch;
    padding-top: 0;
}

.h-site-footer-panel {
    display: flex;
    min-width: 0;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
}

.h-site-footer-panel-left {
    align-items: flex-start;
    text-align: left;
}

.h-site-footer-panel-right {
    align-items: flex-end;
    text-align: right;
}

.h-site-footer-nav-left {
    justify-content: flex-start;
}

.h-site-footer-nav-right {
    justify-content: flex-end;
}

.h-site-footer-contact,
.h-site-footer-social {
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    line-height: 1.45;
}

.h-site-footer-contact h2,
.h-site-footer-social h2 {
    margin: 0 0 14px;
    color: var(--h-white);
    font-family: var(--h-font-cinzel);
    font-size: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.h-site-footer-contact p {
    margin: 0 0 5px;
}

.h-site-footer-social {
    margin-top: auto;
    text-align: right;
    color: var(--h-white);
}

.h-site-footer-social h2,
.h-site-footer-social p {
    color: var(--h-white) !important;
}

.h-site-footer-social-links {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.h-site-footer-social-links a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 999px;
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h-site-footer-social-links a:hover {
    border-color: var(--h-accent);
}

.h-site-footer-copy {
    margin: 40px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    text-align: center;
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-site-footer {
        padding: 86px 22px 58px;
    }

    .h-site-footer-top {
        position: static;
        margin-bottom: 44px;
        transform: none;
    }

    .h-site-footer-top-button {
        align-self: center;
        transform: none;
    }

    .h-site-footer-top-button:hover {
        transform: translateY(-2px);
    }

    .h-site-footer-body {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 34px;
        text-align: center;
    }

    .h-site-footer-panel,
    .h-site-footer-panel-left,
    .h-site-footer-panel-right {
        min-height: 0;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }

    .h-site-footer-nav,
    .h-site-footer-nav-left,
    .h-site-footer-nav-right {
        justify-content: center;
        gap: 16px 24px;
    }

    .h-site-footer-social {
        margin-top: 0;
        text-align: center;
    }

    .h-site-footer-social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .h-site-footer-copy {
        margin-top: 50px;
    }
}

/* -----------------------------------------
   FOOTER POLISH PASS
----------------------------------------- */
.h-site-footer {
    background:
        radial-gradient(ellipse at 50% 125%, rgba(235, 188, 0, 0.34) 0%, rgba(96, 70, 0, 0.18) 24%, rgba(0, 0, 0, 0) 58%),
        linear-gradient(180deg, #000000 0%, #000000 40%, #020201 70%, #050402 100%);
}

.h-site-footer-nav-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.h-site-footer-top {
    display: none !important;
}

.h-site-footer-nav-contact-link,
.h-site-footer-nav-contact-link:visited {
    color: var(--h-white) !important;
}

.h-site-footer-top-button {
    flex: 0 0 auto;
}

.h-site-footer-contact {
    margin-top: auto;
}

.h-site-footer-social {
    align-self: flex-end;
    margin-top: auto;
}

.h-site-footer h2,
.h-site-footer h2 a,
.h-site-footer h2 a:visited {
    color: var(--h-white) !important;
}

footer#h-site-footer + footer#h-site-footer,
.h-site-footer + .h-site-footer {
    display: none !important;
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-site-footer-nav-row {
        flex-direction: column;
        gap: 16px;
    }
}

/* Footer glow distance pass: keep the top pure black and make the yellow far softer. */
.h-site-footer {
    background:
        linear-gradient(
            180deg,
            #000000 0%,
            #000000 64%,
            rgba(20, 15, 0, 0.018) 82%,
            rgba(235, 188, 0, 0.045) 100%
        ) !important;
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-site-footer {
        background:
            linear-gradient(
                180deg,
                #000000 0%,
                #000000 70%,
                rgba(20, 15, 0, 0.016) 88%,
                rgba(235, 188, 0, 0.04) 100%
            ) !important;
    }
}

/* Final footer contract: one pure-black footer across every template. */
.h-site-footer,
body .h-site-footer,
body.single-product .h-site-footer {
    background: #000000 !important;
    background-image: none !important;
}

/* -----------------------------------------
   FOOTER NEWSLETTER (Fix 8)
----------------------------------------- */
.h-site-footer-newsletter {
    text-align: right;
}

.h-site-footer-newsletter h2 {
    margin: 0 0 8px;
    color: var(--h-white);
    font-family: var(--h-font-cinzel);
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.h-site-footer-newsletter p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--h-font-cormorant);
    font-size: 16px;
    line-height: 1.4;
}

.h-footer-newsletter-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.h-footer-newsletter-row input[type="email"] {
    flex: 0 1 240px;
    min-width: 0;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--h-white);
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    outline: none;
    transition: border-color 0.22s ease;
}

.h-footer-newsletter-row input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.h-footer-newsletter-row input[type="email"]:focus {
    border-color: var(--h-accent);
}

.h-footer-newsletter-row button {
    padding: 8px 18px;
    border: 1px solid var(--h-accent);
    border-radius: 999px;
    background: var(--h-accent);
    color: var(--h-black);
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease;
    white-space: nowrap;
}

.h-footer-newsletter-row button:hover {
    background: var(--h-white);
    border-color: var(--h-white);
    color: var(--h-black);
}

/* Final footer layout: top link strip, centered arrow, lower contact/newsletter panels. */
.h-site-footer-nav-strip {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 24px;
    margin: 0 0 46px;
    text-align: center;
}

.h-site-footer-nav-main {
    justify-content: center;
    gap: clamp(16px, 2.1vw, 34px);
}

.h-site-footer-nav-main a {
    white-space: nowrap;
}

.h-site-footer-nav-strip .h-site-footer-top-button {
    margin: 0 auto;
}

.h-site-footer-contact {
    margin-top: 0;
}

.h-site-footer-newsletter {
    max-width: 430px;
    margin-left: auto;
}

.h-site-footer-panel-right .h-site-footer-social {
    margin-top: 0;
}

.h-site-footer-panel-right .h-site-footer-newsletter {
    margin-top: auto;
}

@media (min-width: 1400px) and (hover: hover) and (pointer: fine) {
    .h-site-footer-nav-strip {
        align-items: center;
        gap: 34px;
        text-align: center;
    }

    .h-site-footer-nav-main {
        justify-content: center;
        width: 100%;
    }

    .h-site-footer-nav-strip .h-site-footer-top-button {
        align-self: center;
        margin-top: 4px;
    }

    .h-site-footer-panel-right {
        align-items: flex-end;
        justify-content: flex-start;
        text-align: right;
    }

    .h-site-footer-panel-right .h-site-footer-social {
        align-self: flex-end;
        margin-top: 0;
        margin-bottom: 0;
        text-align: right;
    }

    .h-site-footer-panel-right .h-site-footer-social-links {
        justify-content: flex-end;
    }

    .h-site-footer-panel-right .h-site-footer-newsletter {
        margin-top: 42px;
    }
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-site-footer {
        padding-top: 128px;
    }

    .h-site-footer-nav-strip {
        align-items: center;
        gap: 18px;
        margin-bottom: 30px;
        text-align: center;
    }

    .h-site-footer-nav-main {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 14px;
        overflow-x: visible;
        padding-bottom: 0;
        scrollbar-width: none;
    }

    .h-site-footer-nav-main::-webkit-scrollbar {
        display: none;
    }

    .h-site-footer-nav-main a {
        font-size: 11px;
        letter-spacing: 0.07em;
        text-align: center;
    }

    .h-site-footer-social,
    .h-site-footer-social h2 {
        text-align: center;
    }

    .h-site-footer-social-links {
        justify-content: center;
    }
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-site-footer-nav-strip {
        align-items: center;
        gap: 20px;
        margin-bottom: 34px;
        text-align: center;
    }

    .h-site-footer-nav-main {
        justify-content: center;
        text-align: center;
    }

    .h-site-footer-nav-strip .h-site-footer-top-button {
        align-self: center;
        margin: 2px auto 0;
    }

    .h-site-footer-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding-top: 18px;
        text-align: center;
    }

    .h-site-footer-panel,
    .h-site-footer-panel-left,
    .h-site-footer-panel-right {
        width: 100%;
        max-width: 430px;
        min-height: 0;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }

    .h-site-footer-panel-left {
        order: 2;
    }

    .h-site-footer-panel-right {
        order: 1;
        gap: 44px;
    }

    .h-site-footer-contact,
    .h-site-footer-newsletter,
    .h-site-footer-social {
        width: 100%;
        max-width: 430px;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .h-site-footer-contact h2,
    .h-site-footer-newsletter h2,
    .h-site-footer-social h2 {
        font-size: 13px;
        letter-spacing: 0.08em;
    }

    .h-site-footer-contact {
        font-size: 14px;
        line-height: 1.35;
    }

    .h-site-footer-panel-right .h-site-footer-newsletter {
        order: 1;
        margin-top: 0;
    }

    .h-footer-newsletter-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .h-footer-newsletter-row input[type="email"] {
        flex: 1 1 100%;
        max-width: none;
        text-align: center;
    }

    .h-site-footer-panel-right .h-site-footer-social {
        order: 2;
        margin-top: 0;
    }

    .h-site-footer-social-links {
        justify-content: center;
    }
}

/* -----------------------------------------
   FIBOSEARCH PAPER OVERLAY
----------------------------------------- */
.h-search-fibo-wrap,
.h-search-fibo-wrap .dgwt-wcas-search-wrapp,
.h-search-fibo-wrap .dgwt-wcas-search-form,
.h-search-fibo-wrap .dgwt-wcas-sf-wrapp {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.h-search-fibo-wrap .dgwt-wcas-search-form,
.h-search-fibo-wrap .dgwt-wcas-sf-wrapp {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 68px !important;
    border-bottom: 1px solid rgba(10, 10, 10, 0.92) !important;
}

.h-search-fibo-wrap .dgwt-wcas-search-input,
.h-search-fibo-wrap input[type="search"].dgwt-wcas-search-input {
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    padding: 0 58px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--h-black) !important;
    -webkit-text-fill-color: var(--h-black) !important;
    caret-color: var(--h-black) !important;
    font-family: var(--h-font-cormorant) !important;
    font-size: clamp(24px, 3.2vw, 36px) !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

.h-search-fibo-wrap .dgwt-wcas-search-input::placeholder {
    color: rgba(10, 10, 10, 0.46) !important;
    -webkit-text-fill-color: rgba(10, 10, 10, 0.46) !important;
    opacity: 1 !important;
}

.h-search-fibo-wrap .dgwt-wcas-search-submit {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    left: auto !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    background: var(--h-black) !important;
    border: 1px solid rgba(10, 10, 10, 0.92) !important;
    border-radius: 2px !important;
    color: var(--h-accent) !important;
    box-shadow: 3px 3px 6px -2px rgba(0, 0, 0, 0.72) !important;
}

.h-search-fibo-wrap .dgwt-wcas-search-submit:hover {
    background: var(--h-accent) !important;
    color: var(--h-black) !important;
}

.h-search-fibo-wrap .dgwt-wcas-search-submit svg,
.h-search-fibo-wrap .dgwt-wcas-search-submit path,
.h-search-fibo-wrap .dgwt-wcas-ico-magnifier path {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.h-search-fibo-wrap .dgwt-wcas-preloader,
.h-search-fibo-wrap .dgwt-wcas-close {
    right: 54px !important;
}

.dgwt-wcas-suggestions-wrapp {
    z-index: 10020 !important;
    margin-top: 10px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 36%),
        var(--h-paper) !important;
    border: 1px solid rgba(10, 10, 10, 0.88) !important;
    border-radius: 0 !important;
    box-shadow: 4px 4px 8px -1px rgba(0, 0, 0, 0.86) !important;
    color: var(--h-black) !important;
    font-family: var(--h-font-instrument) !important;
    max-height: min(430px, calc(100vh - 260px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

.dgwt-wcas-suggestion {
    min-height: 72px !important;
    padding: 10px 14px !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(10, 10, 10, 0.14) !important;
    color: var(--h-black) !important;
}

.dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
    background: rgba(235, 188, 0, 0.18) !important;
}

.dgwt-wcas-st-title,
.dgwt-wcas-st-title strong,
.dgwt-wcas-suggestion-title,
.dgwt-wcas-suggestion a {
    color: var(--h-black) !important;
    font-family: var(--h-font-cinzel) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.dgwt-wcas-st,
.dgwt-wcas-sku,
.dgwt-wcas-sp,
.dgwt-wcas-sp *,
.dgwt-wcas-pd-price,
.dgwt-wcas-pd-price * {
    color: rgba(10, 10, 10, 0.78) !important;
    font-family: var(--h-font-instrument) !important;
}

body.h-overlay-open .dgwt-wcas-suggestions-wrapp,
body.h-overlay-open .dgwt-wcas-suggestions-wrapp * {
    color: var(--h-black) !important;
    -webkit-text-fill-color: var(--h-black) !important;
}

body:not(.h-overlay-open) .dgwt-wcas-suggestions-wrapp {
    display: none !important;
}

/* GTranslate flags — sits below the action button row, top-right */
@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-search-fibo-wrap .dgwt-wcas-search-form,
    .h-search-fibo-wrap .dgwt-wcas-sf-wrapp {
        min-height: 58px !important;
    }

    .h-search-fibo-wrap .dgwt-wcas-search-input,
    .h-search-fibo-wrap input[type="search"].dgwt-wcas-search-input {
        height: 58px !important;
        min-height: 58px !important;
        padding-right: 50px !important;
        font-size: 22px !important;
    }

    .h-search-fibo-wrap .dgwt-wcas-search-submit {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    .dgwt-wcas-suggestions-wrapp {
        max-height: min(56vh, calc(100vh - 220px)) !important;
    }
}

.h-header-translate {
    position: absolute;
    top: calc(100% + 6px);
    right: 32px;
    z-index: 9998;
    display: flex;
    gap: 8px;
}
.h-header-translate .gtranslate_wrapper a,
.h-header-translate .gtranslate_wrapper img {
    display: inline-block;
    cursor: pointer;
    opacity: 1;
    filter: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.h-header-translate .gtranslate_wrapper a:hover img {
    opacity: 1;
    transform: scale(1.08);
}
.h-header-inner {
    position: relative;
}
@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-header-translate {
        position: static;
        order: 0;
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: 52px;
        margin: 0 2px 0 0;
        gap: 3px;
        line-height: 0;
        overflow: visible;
    }

    .h-header-translate .gtranslate_wrapper {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        max-width: 52px;
        line-height: 0;
        overflow: visible;
    }

    .h-header-translate .gtranslate_wrapper a {
        display: inline-flex;
        width: 22px;
        height: 16px;
        align-items: center;
        justify-content: center;
        flex: 0 0 22px;
        overflow: hidden;
    }

    .h-header-translate .gtranslate_wrapper img {
        display: inline-block;
        width: auto;
        max-width: 22px;
        max-height: 16px;
    }
}

/* Make sure header flags travel with the header on hide */
.h-header .h-header-translate,
.h-header.h-header-hidden .h-header-translate {
    transform: none !important;
    transition: opacity 0.32s ease;
}
.h-header.h-header-hidden .h-header-translate {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu action buttons: match the white nav items exactly, only color differs */
.h-mobile-menu-overlay .h-mobile-actions,
.h-mobile-menu-overlay .h-mobile-actions a,
.h-mobile-menu-overlay .h-mobile-actions .h-btn,
.h-mobile-menu-overlay .h-mobile-actions .h-btn-primary,
.h-mobile-menu-overlay .h-mobile-actions .h-btn-highlight {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1.25rem 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    color: var(--h-accent) !important;
    font-family: var(--h-font-cinzel) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}
.h-mobile-menu-overlay .h-mobile-actions a,
.h-mobile-menu-overlay .h-mobile-actions .h-btn {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.h-mobile-menu-overlay .h-mobile-actions a:hover,
.h-mobile-menu-overlay .h-mobile-actions a:focus,
.h-mobile-menu-overlay .h-mobile-actions .h-btn:hover {
    background: transparent !important;
    color: var(--h-white, #fff) !important;
}


/* ============================================================
   NEXT 2 HEADER PATCH — search overlay refinement + smooth hide
   ============================================================ */

/* Search overlay — single yellow line + clean X position */
.h-search-overlay .h-search-overlay-inner {
    position: relative;
}
.h-search-overlay .h-search-close {
    position: absolute;
    top: 32px;
    right: 32px;
    background: transparent;
    border: 0;
    color: var(--h-white);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    z-index: 5;
}
@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-search-overlay .h-search-close {
        top: 18px;
        right: 18px;
    }
}

/* Mobile 1 — header transform faster + always-on transition, no rigid pause */
.h-header {
    transition: transform 0.22s ease-out, background-color 0.3s ease;
    will-change: transform;
}
.h-header.h-header-hidden {
    transform: translateY(-100%);
}



/* Active FiboSearch overlay chrome */
.h-search-overlay .h-search-close {
    top: 18px;
    right: 18px;
    color: var(--h-black) !important;
}

.h-search-overlay .h-search-close:hover {
    color: var(--h-accent) !important;
}

.h-search-overlay.active .h-search-fibo-wrap .dgwt-wcas-search-form,
.h-search-overlay.active .h-search-fibo-wrap .dgwt-wcas-sf-wrapp {
    border-bottom-color: rgba(10, 10, 10, 0.92) !important;
}

/* ============================================================
   HISTORICUM SEARCH RESULTS PAGE
   ============================================================ */

body.historicum-search-page {
    background: #050604;
    color: #f4ecd4;
    margin: 0;
}

.h-search-results-page {
    min-height: 70vh;
    padding-top: 120px;
}

.h-search-hero {
    padding: 24px clamp(20px, 4vw, 64px) 36px;
    border-bottom: 1px solid rgba(235, 188, 0, 0.18);
}

.h-search-heading {
    margin: 0 0 6px;
    font-family: var(--h-font-cinzel);
    font-size: clamp(22px, 3vw, 36px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f4ecd4;
}

.h-search-count {
    margin: 0;
    color: rgba(244, 236, 212, 0.62);
    font-family: var(--h-font-cinzel);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.h-search-results-grid-wrap {
    padding: 36px clamp(20px, 4vw, 64px) 96px;
}

.h-search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

.h-search-result-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #0b0b0b;
    border: 1px solid rgba(17, 17, 17, 0.78);
    border-radius: 10px;
    color: #f4ecd4;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.h-search-result-card:hover {
    border-color: var(--h-accent);
    transform: translateY(-4px);
}

.h-search-result-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
}

.h-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-search-result-title {
    margin: 0;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f4ecd4;
}

.h-search-result-price {
    color: var(--h-accent);
    font-family: var(--h-font-instrument);
    font-size: 16px;
    font-weight: 700;
}

.h-search-result-post .h-search-result-excerpt {
    color: rgba(244, 236, 212, 0.7);
    font-family: var(--h-font-cormorant);
    font-size: 15px;
    line-height: 1.5;
}

.h-search-empty {
    color: rgba(244, 236, 212, 0.7);
    font-family: var(--h-font-cormorant);
    font-size: 18px;
}


/* ============================================================
   MEGA MENU DROPDOWNS
   Dropdown anchors to .h-header-inner (position:relative) so
   left:0 / right:0 spans the full header. The .h-mega-inner
   is centered inside via margin:auto and capped at 680px.
   ============================================================ */

/* Dropdown anchors to each li — positioned relative so it sits under the hovered item */
.h-has-mega {
    position: relative;
}

.h-has-mega > a {
    position: relative;
    z-index: 2;
}

/* Dropdown aligns left to the nav item; right edge clamped to viewport */
.h-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 8px 0 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
    z-index: 9998;
    width: max-content;
    max-width: calc(100vw - 32px);
}

.h-has-mega:hover > .h-mega-dropdown,
.h-has-mega:focus-within > .h-mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.h-mega-inner {
    display: flex;
    gap: 0;
    padding: 28px 32px 32px;
    background: rgba(5, 6, 4, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(235, 188, 0, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(235, 188, 0, 0.08);
}

.h-mega-col {
    flex: 1 1 0;
    min-width: 150px;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.h-mega-col:first-child { padding-left: 0; }
.h-mega-col:last-child { padding-right: 0; border-right: 0; }

.h-mega-heading {
    display: block;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(235, 188, 0, 0.28);
    color: var(--h-accent);
    font-family: var(--h-font-cormorant);
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
    text-decoration: none;
    transition: color 0.2s ease;
}
a.h-mega-heading:hover { color: var(--h-white); }

/* Reset: undo any inherited generic dropdown styles on mega-menu ULs */
.h-mega-col ul {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    list-style: none;
    margin: 0;
    transition: none !important;
}

.h-mega-col ul li {
    margin: 0;
    padding: 0;
    border: 0;
    position: static;
}

.h-mega-col ul li a {
    display: block;
    min-height: 34px !important;
    padding: 5px 0 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-family: var(--h-font-cormorant) !important;
    font-size: clamp(16px, 1vw, 18px) !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 24px !important;
    text-transform: none !important;
    white-space: nowrap !important;
    text-decoration: none;
    background: transparent !important;
    transition: color 0.18s ease, transform 0.18s ease;
}
.h-mega-col ul li a:hover {
    color: var(--h-accent) !important;
    transform: translateX(6px);
    background: transparent !important;
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-mega-dropdown { display: none !important; }
}

/* Product page isolation: prevent body.single-product color/display overrides
   from bleeding into the header and mega dropdown. Keep dropdowns closed by
   default; only the hovered/focused menu may open. */
body.single-product #h-header .h-mega-dropdown {
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.single-product #h-header .h-has-mega:hover > .h-mega-dropdown,
body.single-product #h-header .h-has-mega:focus-within > .h-mega-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition-delay: 0s !important;
}

body.single-product #h-header .h-mega-inner {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit;
    background: rgba(5, 6, 4, 0.97) !important;
}

body.single-product #h-header .h-mega-col {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit;
    background: transparent;
}

body.single-product #h-header .h-mega-col ul {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.single-product #h-header .h-mega-col ul li {
    display: list-item !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.single-product #h-header .h-mega-col ul li a,
body.single-product #h-header .h-mega-col ul li a:visited {
    color: rgba(255, 255, 255, 0.78) !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

body.single-product #h-header .h-mega-col ul li a:hover {
    color: var(--h-accent) !important;
}

body.single-product #h-header .h-mega-heading,
body.single-product #h-header a.h-mega-heading {
    color: var(--h-accent) !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Protect top-level nav links from product page dark-text inheritance */
body.single-product #h-header .h-nav-menu > li > a,
body.single-product #h-header .h-nav-menu > li > a:visited {
    color: var(--h-white) !important;
}
body.single-product #h-header .h-nav-menu > li > a:hover {
    color: var(--h-accent) !important;
}

/* ============================================================
   MOBILE ACCORDION SUB-MENUS
   ============================================================ */
.h-mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.h-mobile-nav-row > a { flex: 1 1 auto; }

.h-mobile-sub-toggle {
    display: none;
}

.h-mobile-sub-menu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.22s ease;
    will-change: max-height, opacity;
}

.h-mobile-sub-menu.is-open {
    opacity: 1;
}

.h-mobile-sub-menu[hidden] {
    display: none !important;
}

.h-mobile-sub-heading {
    display: block;
    padding: 1rem 0 0.25rem;
    color: var(--h-accent);
    font-family: var(--h-font-cormorant);
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
}

/* ============================================================
   Header left menu rebuild (2026-06): bigger desktop font +
   obvious, button-like clickable tabs. Right side untouched.
   ============================================================ */
@media (min-width: 1400px) and (hover: hover) and (pointer: fine) {
    .h-nav-menu { gap: 0.25rem; }
    .h-nav-menu > li > a {
        font-family: var(--h-font-cinzel);
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.07em;
        line-height: 1;
        text-transform: uppercase;
        padding: 0.5rem 0.85rem;
        border-radius: 6px;
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    .h-nav-menu > li > a:hover,
    .h-nav-menu > li.h-nav-active > a,
    .h-nav-menu > li.h-has-mega:hover > a {
        background-color: rgba(255, 255, 255, 0.12);
        color: var(--h-white);
    }
}

/* ARMOR mega: two-column grid of product-tag links */
.h-mega-inner--armor .h-mega-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 0 28px;
}
.h-mega-col--armor { min-width: 340px; }
.h-mega-inner--armor .h-mega-grid li { margin: 0; }

/* Final header typography contract: top buttons and dropdown rows are separate. */
#h-header .h-nav-menu > li > a,
#h-header .h-nav-menu > li > a:visited,
body.single-product #h-header .h-nav-menu > li > a,
body.single-product #h-header .h-nav-menu > li > a:visited {
    font-family: var(--h-font-cormorant) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 2px !important;
    text-transform: none !important;
}

#h-header .h-mega-inner {
    width: max-content !important;
    max-width: calc(100vw - 32px) !important;
}

#h-header .h-mega-col {
    min-width: max-content !important;
}

#h-header .h-mega-col ul li a,
#h-header .h-mega-col ul li a:visited,
body.single-product #h-header .h-mega-col ul li a,
body.single-product #h-header .h-mega-col ul li a:visited {
    display: block !important;
    min-height: 30px !important;
    padding: 5px 0 !important;
    font-family: var(--h-font-cormorant) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    transform: none;
    transition: color 0.18s ease, transform 0.18s ease !important;
}

#h-header .h-mega-col ul li a:hover,
body.single-product #h-header .h-mega-col ul li a:hover {
    padding-left: 0 !important;
    transform: translateX(6px);
}

/* Final scroll-hide response: leave sooner and quicker over paper sections. */
#h-header.h-header {
    transition:
        transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.12s ease,
        background-color 0.2s ease !important;
    will-change: transform, opacity;
}

#h-header.h-header.h-header-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -115%, 0) !important;
}

/* Footer equipment-help copy above navigation. */
.h-site-footer-help {
    width: min(100%, 980px);
    margin: 0 auto clamp(6px, 1vw, 12px);
    color: var(--h-accent);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.6vw, 21px);
    flex-wrap: wrap;
}

.h-site-footer-help h2 {
    margin: 0;
    color: var(--h-accent) !important;
    font-family: var(--h-font-cinzel);
    font-size: clamp(13px, 1.35vw, 19px);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-transform: uppercase;
}

.h-site-footer-help p {
    width: min(100%, 820px);
    margin: 0 0 0 auto;
    color: var(--h-accent) !important;
    font-family: var(--h-font-cormorant);
    font-size: clamp(17px, 1.7vw, 21px);
    font-weight: 600;
    line-height: 1.48;
    text-align: right;
}

.h-site-footer-help p + p {
    margin-top: 10px;
}

.h-site-footer-help-button,
.h-site-footer-help-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 0;
    padding: 0.56rem 1.08rem;
    border: 1px solid var(--h-accent);
    background: var(--h-accent);
    color: #0a0a0a !important;
    font-family: var(--h-font-cinzel);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.h-site-footer-help-button:hover,
.h-site-footer-help-button:focus-visible {
    background: transparent;
    color: var(--h-accent) !important;
    transform: translateY(-1px);
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    .h-site-footer-help {
        justify-content: center;
        text-align: center;
    }

    .h-site-footer-help p {
        font-size: 17px;
    }

    .h-site-footer-help-button {
        width: min(100%, 176px);
    }
}

/* Header responsive guard: desktop nav needs more width than many laptops have.
   Hide secondary CTA pills first, then switch to the proven mobile overlay before
   links can wrap over each other. */
#h-header .h-header-inner,
#h-header .h-header-left,
#h-header .h-header-right,
#h-header .h-nav-menu {
    flex-wrap: nowrap !important;
}

#h-header .h-header-nav,
#h-header .h-nav-menu > li,
#h-header .h-nav-menu > li > a,
#h-header .h-header-right > * {
    white-space: nowrap !important;
}

@media (min-width: 1600px) and (max-width: 1839px) and (hover: hover) and (pointer: fine) {
    #h-header .h-header-inner {
        padding-right: clamp(18px, 1.55vw, 28px) !important;
        padding-left: clamp(18px, 1.55vw, 28px) !important;
        gap: clamp(10px, 1vw, 18px) !important;
    }

    #h-header .h-header-nav {
        margin-left: clamp(14px, 1.2vw, 24px) !important;
    }

    #h-header .h-nav-menu {
        gap: clamp(2px, 0.32vw, 8px) !important;
    }

    #h-header .h-nav-menu > li > a,
    body.single-product #h-header .h-nav-menu > li > a {
        padding-right: clamp(7px, 0.56vw, 10px) !important;
        padding-left: clamp(7px, 0.56vw, 10px) !important;
        font-size: clamp(15px, 0.98vw, 17px) !important;
        letter-spacing: 1.2px !important;
    }

    #h-header .h-header-right {
        gap: clamp(8px, 0.68vw, 12px) !important;
    }

    #h-header .h-header-btn {
        display: none !important;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) and (hover: hover) and (pointer: fine) {
    #h-header .h-header-inner {
        justify-content: flex-start !important;
        align-items: center !important;
        padding-right: clamp(16px, 1.5vw, 24px) !important;
        padding-left: clamp(16px, 1.5vw, 24px) !important;
        gap: 8px !important;
    }

    #h-header .h-header-nav,
    #h-header .h-header-login,
    #h-header .h-header-btn {
        display: none !important;
    }

    #h-header .h-header-right {
        margin-left: auto !important;
        gap: 4px !important;
    }

    #h-header .h-mobile-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        margin-left: 2px !important;
    }

    #h-header .h-header-search-toggle,
    #h-header .h-header-cart {
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
    }
}
