:root {     --color-black: #000000;
    --color-white: #ffffff;
    --color-red: #ff0000;
    --color-gray-400: #999999;
    --color-gray-500: #808080;
    --color-gray-700: #4d4d4d;
    --color-gray-900: #1a1a1a;
    --font-display: "Funnel Display", serif;
    --font-sans: "Funnel Sans", sans-serif;
    --space-2xl: 60px;
    --padding-mobile: 20px;
    --padding-tablet: 40px;
    --padding-desktop: 40px;
    --gutter: var(--padding-mobile);
    --header-new-color-bg: #1a1a1a;
    --header-new-color-bg-soft: rgba(26, 26, 26, 0.94);
    --header-new-color-white: #ffffff;
    --header-new-color-red: #ff0000;
    --header-new-color-red-100: #f4f1f1;
    --header-new-color-border: rgba(255, 255, 255, 0.28);
    --header-new-color-icon: rgba(255, 255, 255, 0.92);
    --header-new-font-sans: "Funnel Sans", Arial, sans-serif;
    --header-new-font-display: "Funnel Display", Arial, sans-serif;
    --header-new-gutter-mobile: 24px;
    --header-new-gutter-tablet: 28px;
    --header-new-gutter-desktop: 28px;
    --header-new-mobile-menu-offset: 78px;
    --admin-bar-height: 0px;
    --nav-height: 65px;
    --search-panel-height: 150px;
}

.site-wrapper--header-new {
    padding-top: var(--nav-height);
}

/* Header New */
.section {
    padding: 0 !important;
}

.header-new a {
    color: inherit;
    text-decoration: none;
    margin: 0;
}
.header-new__nav .nav__icon-btn > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
}

.header-new a.cart-trigger {
    position: relative;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 18px;
    margin: 0 6px 0 0;
}

.header-new .cart-trigger img {
    width: 22px;
    height: 19px;
    max-width: none;
}

.header-new .cart-trigger__count {
    position: absolute;
    top: -10px;
    right: -6px;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    margin: 0;
    font-family: var(--header-new-font-sans);
    font-size: 0.557533755em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background-color: #fe5000;
    border-radius: 100%;
    background-clip: padding-box;
    transition: all 0.2s ease-in-out;
}

.header-new .cart-trigger__count.hide-count {
    opacity: 0;
}
.toolbar__tools--narrow {
    display: block !important;
    position: static !important;
}
.toolbar__tools--narrow svg polygon {
    fill: var(--header-new-color-white);
}
.header-new ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-new img {
    display: block;
    max-width: 100%;
    height: auto;
}

.header-new button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.header-new .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-family: var(--header-new-font-sans);
    transition:
        opacity 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.header-new .btn:hover,
.header-new .nav__link:hover,
.header-new .nav__icon-btn:hover,
.header-new .mobile-menu__link:hover {
    opacity: 0.72;
}

.header-new .btn--primary {
    min-width: 144px;
    height: 44px;
    padding: 0 8px 0 20px;
    gap: 18px;
    justify-content: space-between;
    background-color: var(--header-new-color-red-100);
    color: #000000;
    font-size: 16px;
    font-weight: 500;
}

.header-new .btn--primary svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #000000;
    color: var(--header-new-color-white);
}

.header-new__nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 65px;
    max-height: 65px;
    padding: 12px var(--header-new-gutter-mobile);
    background: #1a1a1a;
    color: var(--header-new-color-white);
}

.header-new > .header-new__nav {
    position: fixed;
    top: var(--admin-bar-height);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.28s ease;
    will-change: transform;
}

.header-new > .header-new__nav.is-scroll-pinned {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.header-new > .header-new__nav.is-scroll-hidden {
    transform: translate3d(0, calc(-100% - var(--admin-bar-height)), 0);
}

/* ===== Standalone article card: coordinate with sticky header =====
   is-scroll-away  = header appeared after scroll-up (not at page top)
   is-scroll-pinned without is-scroll-away = header at very top of page
================================================================= */
.standalone-article__aside .standalone-article__card {
    transition: top 0.28s ease;
}

/* Header visible after scroll-up → push card below header */
body:has(.header-new > .header-new__nav.is-scroll-away)
    .standalone-article__aside
    .standalone-article__card {
    top: 110px;
}

/* Card at top of layout (page top, header not away) → restore default */
body:not(:has(.header-new > .header-new__nav.is-scroll-away))
    .standalone-article__aside
    .standalone-article__card {
    top: 40px;
}

.header-new__nav .nav__logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0;
    margin: 0;
}

.header-new__nav .nav__logo img {
    width: 100px;
    height: 23px;
    max-width: none;
}

.header-new__nav .nav__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    min-width: 0;
}

.header-new__nav .nav__menu {
    display: none;
}

.header-new__nav .nav__link {
    display: inline-flex;
    align-items: center;
    font-family: var(--header-new-font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    color: #999999;
    transition: all 0.2s ease;
}
.header-new__nav .nav__link:hover {
    color: var(--header-new-color-white);
    opacity: 1;
}

/* Active page — red dot to the left */
.header-new__nav .nav__link.is-current {
    color: var(--header-new-color-white);
    position: relative;
    padding-left: 14px;
}

.header-new__nav .nav__link.is-current::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50px;
}

.header-new__nav .nav__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 0 0 auto;
}

.header-new__nav .btn--outline {
    display: none;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 15px;
    border: 1px solid #fff;
    background: transparent;
    color: var(--header-new-color-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.header-new__nav .btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.48);
}

/* Last nav item styled as btn--outline */
.header-new__nav .nav__menu li:last-child {
    margin-left: 50px;
}
.header-new__nav .nav__menu li:last-child .nav__link {
    display: none;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 15px;
    border: 1px solid #fff;
    border-radius: 100px;
    background: transparent;
    color: var(--header-new-color-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.header-new__nav .nav__menu li:last-child .nav__link:hover {
    color: var(--header-new-color-white);
    border-color: rgba(255, 255, 255, 0.48);
    opacity: 1;
}

.header-new__nav .nav__menu li:last-child .nav__link.is-current {
    padding-left: 15px;
}

.header-new__nav .nav__menu li:last-child .nav__link.is-current::before {
    content: none;
}

.header-new__nav
    .nav__icon-btn[aria-controls="search-overlay"][aria-expanded="true"]
    img,
.header-new__nav .nav__icon-btn--active img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(60%) saturate(700%)
        hue-rotate(340deg) brightness(105%);
}

.header-new__nav .nav__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--header-new-color-icon);
    transition: opacity 0.2s ease;
}

.header-new__nav .nav__icon-btn[aria-label="Cart"] {
    width: 22px;
    height: 19px;
    flex: 0 0 22px;
    overflow: visible;
}

.header-new__nav .nav__icon-btn[aria-label="Cart"] > a {
    width: auto;
    height: auto;
}

.header-new__nav .nav__icon-btn[aria-label="Cart"] img {
    width: 22px;
    height: 19px;
    max-width: none;
    max-height: none;
}

.header-new__nav .nav__icon-btn img {
    width: auto;
    max-width: 100%;
    max-height: 19px;
    height: 19px;
}

.header-new__nav .nav__icon-btn[aria-label="Account"] img {
    width: 15px;
    height: 18px;
    max-width: none;
    max-height: none;
}

.header-new__nav .nav__hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 16px;
    color: var(--header-new-color-white);
}

.header-new__nav .nav__hamburger-bottom {
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header-new__nav .nav__hamburger[aria-expanded="true"] {
    color: var(--header-new-color-red);
}

.header-new__nav .nav__hamburger[aria-expanded="true"] .nav__hamburger-bottom {
    transform: scaleX(0.667);
}

/* ── Mobile Drawer Menu ── */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: 9;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 80px var(--gutter) var(--space-2xl);
    gap: 40px;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu__link,
.mobile-menu__list > li > a {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.2;
    color: var(--color-white) !important;
    transition: opacity 0.2s;
}

.mobile-menu__link:hover,
.mobile-menu__list > li > a:hover {
    opacity: 0.7;
}

.mobile-menu__list > li:last-child {
    margin-top: 20px;
}

.mobile-menu__list > li:last-child .mobile-menu__link,
.mobile-menu__list > li:last-child > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid #666666;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
}

.mobile-menu__list > li:last-child .mobile-menu__link:hover,
.mobile-menu__list > li:last-child > a:hover {
    border-color: #8a8a8a;
    opacity: 1;
}

@media (min-width: 768px) {
    .header-new a.cart-trigger {
        width: 22px;
        height: 18px;
    }

    .header-new__nav {
        padding: 12px var(--header-new-gutter-tablet);
    }

    .header-new__nav .nav__logo img {
        width: 100px;
        height: 23px;
    }

    .header-new__nav .nav__right {
        justify-content: space-between;
        gap: 20px;
    }    

    .header-new__nav .nav__menu {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    .header-new__nav .nav__menu li {
        margin: 0;
    }
    .header-new__nav .nav__link {
        margin: 0;
    }

    .header-new__nav .btn--outline {
        display: inline-flex;
        margin: 0;
    }

    .header-new__nav .nav__menu li:last-child .nav__link {
        display: inline-flex;
    }

    .header-new__nav .nav__hamburger,
    .header-new__mobile-menu {
        display: none;
    }
}



@media (min-width: 1200px) {
    .header-new__nav .nav__icon-btn[aria-label="Cart"] {
        width: 26px;
        height: 24px;
        flex-basis: 26px;
    }

    .header-new__nav .nav__icon-btn[aria-label="Cart"] img {
        width: 20px;
        height: 19px;
    }

    .header-new a.cart-trigger {
        width: 28px;
        height: 23px;
    }

    .header-new .cart-trigger img {
        width: 26px;
        height: 24px;
    }

    .header-new .cart-trigger__count {
        top: -19px;
        left: 4px;
        right: auto;
        width: 18px;
        height: 18px;
        font-size: 0.6774035123em;
    }

    .header-new__nav {
        padding-right: var(--header-new-gutter-desktop);
        padding-left: var(--header-new-gutter-desktop);
    }

    .header-new__nav .nav__right {
        gap: 20px;
        margin-left: 44px;
    }

    .header-new__nav .nav__menu {
        gap: 30px;
    }

    .header-new__nav .nav__actions {
        gap: 16px;
    }
}

@media screen and (max-width: 1024px) {
   .header-new__nav .nav__menu{
      gap: 15px;
   }
   .header-new__nav .nav__menu li:last-child{
      margin-left: 0;
   }
}

/* =============================================
   SEARCH OVERLAY (header-new)
   ============================================= */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Allow page content (e.g. blog cards) to receive hover under the dimmed area.
   Close still works via Escape / search icon; panel stays interactive. */
.search-overlay.is-open .search-overlay__backdrop {
    pointer-events: none;
}

.search-overlay__backdrop {
    position: absolute;
    top: calc(
        var(--admin-bar-height) + var(--nav-height) + var(--search-panel-height)
    );
    left: 0;
    width: 100%;
    height: calc(
        100% - var(--admin-bar-height) - var(--nav-height) -
            var(--search-panel-height)
    );
    background-color: rgba(0, 0, 0, 0.85);
    pointer-events: auto;
}

.search-overlay__panel {
    position: absolute;
    top: calc(var(--admin-bar-height) + var(--nav-height));
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 1;
    background-color: #1a1a1a;
    border-top: 1px solid #4d4d4d;
    border-bottom: 1px solid #4d4d4d;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    pointer-events: auto;
}

/* Admin bar (logged in): desktop 32px, mobile 46px */
.admin-bar {
    --admin-bar-height: 32px;
}

@media screen and (max-width: 768px) {
    .header-new__nav {
        z-index: 999999 !important;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar {
        --admin-bar-height: 46px;
    }
}

.search-overlay__inner {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 15px 0;
}

.search-overlay__inner form {
    width: 100%;
}

.search-overlay__input {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: "Funnel Sans", Arial, sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    width: 100%;
    box-shadow: none;
}

.search-overlay__input::placeholder {
    color: #ffffff;
}

.search-overlay__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l12 12M14 2L2 14' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.search-overlay__input:-webkit-autofill,
.search-overlay__input:-webkit-autofill:hover,
.search-overlay__input:-webkit-autofill:focus,
.search-overlay__input:autofill,
.search-overlay__input:autofill:hover,
.search-overlay__input:autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: #ffffff;
}

.search-overlay__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
}

@media (min-width: 768px) {
    .search-overlay__panel {
        padding: 0 40px;
    }

    .search-overlay__input {
        font-size: 24px;
    }

    .search-overlay__backdrop {
        background-color: rgba(0, 0, 0, 0.85);
    }
}
