/* =============================================
   GForce — Header / Nav (header.css)
   All nav & mobile-menu styles. Mobile-first.
   ============================================= */

:root {
    --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;
}

.admin-bar {
    --admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar {
        --admin-bar-height: 46px;
    }
}

/* ── Nav ── */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--padding-mobile) var(--gutter) 0;
    position: relative;
    z-index: 10;
}

.header-new > .nav {
    position: fixed;
    top: var(--admin-bar-height);
    left: 0;
    right: 0;
    width: 100%;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.28s ease,
        padding-bottom 0.28s ease;
    will-change: transform;
}

.header-new > .nav.is-scroll-pinned {
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); */
}

.header-new > .nav.is-scroll-hidden {
    transform: translate3d(0, calc(-100% - var(--admin-bar-height)), 0);
}

.nav--overlay {
    background: linear-gradient(
        to top,
        transparent 0%,
        rgba(26, 26, 26, 1) 100%
    );
    padding-bottom: 60px;
}

.header-new > .nav.nav--overlay.is-scroll-pinned {
    /* background: linear-gradient(to top, rgba(26, 26, 26, 0.84) 0%, rgba(26, 26, 26, 0.96) 100%); */
}

.header-new > .nav.nav--overlay.is-scroll-away {
    padding-bottom: 13px;
}

.nav__logo {
    color: var(--color-white);
    display: inline-flex;
    flex-shrink: 0;
}

.nav__logo img {
    width: 100px;
    height: 23px;
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav__right ul li {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    color: #ffffff;
    transition: all 0.2s ease;
}
.nav__right ul li:hover {
    color: var(--color-white);
    opacity: 1;
}
.nav__menu {
    display: none;
}

.nav__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    transition: opacity 0.2s;
}

.nav__link:hover {
    opacity: 0.7;
}

/* ── Nav Solid Modifier ── */

.nav--solid {
    background-color: var(--color-gray-900);
    border-bottom: 1px solid var(--color-gray-700);
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    height: 65px;
}

.nav--solid .nav__link {
    color: var(--color-gray-400);
}

.nav__link--active {
    color: var(--color-white) !important;
    position: relative;
    padding-left: 10px;
}

.nav__link--active::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--color-red);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn--outline {
    display: none;
}

.nav__icon-btn {
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.header-new a.cart-trigger {
    position: relative;
    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;
    pointer-events: none;
}

.header-new .cart-trigger__count.hide-count {
    opacity: 0;
}

@media (min-width: 1200px) {
    .header-new .cart-trigger__count {
        top: -19px;
        left: 4px;
        right: auto;
        width: 18px;
        height: 18px;
        font-size: 0.6774035123em;
    }
}

.nav__icon-btn:hover {
    opacity: 0.7;
}

.nav__icon-btn[aria-controls="search-overlay"][aria-expanded="true"] img,
.nav__icon-btn--active img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(60%) saturate(700%)
        hue-rotate(340deg) brightness(105%);
}

.nav__hamburger {
    display: inline-flex;
    color: var(--color-white);
    position: relative;
    z-index: 12;
    transition: color 0.3s ease;
}

.nav__hamburger-bottom {
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav__hamburger[aria-expanded="true"] {
    color: var(--color-red);
}

.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 .menu-item a,
.mobile-menu__list > li > a {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.2;
    color: var(--color-white);
    transition: opacity 0.2s;
}

.mobile-menu__link:hover,
.mobile-menu__list .menu-item a:hover,
.mobile-menu__list > li > a:hover {
    opacity: 0.72;
}

.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,
.mobile-menu__list > li:last-child.menu-item > 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,
.mobile-menu__list > li:last-child.menu-item > a:hover {
    border-color: #8a8a8a;
    opacity: 1;
}

/* ── Search Overlay ── */

.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;
}

.search-overlay.is-open .search-overlay__backdrop {
    pointer-events: none;
}

.search-overlay__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 0;
    pointer-events: auto;
}

.search-overlay__panel {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    z-index: 1;
    background-color: rgba(26, 26, 26, 0.1);
    border-bottom: 1px solid var(--color-gray-700);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 226px;
    padding: 0 20px;
    pointer-events: auto;
}

.header-new:has(.search-overlay.is-open) > .nav.nav--overlay.is-scroll-ready,
.header-new:has(.search-overlay.is-open)
    > .nav.nav--overlay.is-scroll-ready.is-scroll-pinned,
.product-hero:has(.search-overlay.is-open) > .nav.nav--overlay.is-scroll-ready,
.product-hero:has(.search-overlay.is-open)
    > .nav.nav--overlay.is-scroll-ready.is-scroll-pinned > .nav__right{
    z-index: 10001;
    padding-bottom: 14px;
}

.search-overlay__inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-gray-500);
    padding: 16px 0;
}

.search-overlay__inner form {
    width: 100%;
}

.search-overlay__input {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 21px;
    font-weight: 400;
    width: 100%;
    line-height: 1;
    box-shadow: none;
}

.search-overlay__input::placeholder {
    color: var(--color-white);
}

.search-overlay__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    margin-right: 17px;
    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: #fff !important;
    color: #fff !important;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: #fff;
}

.search-overlay__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* =============================================
   TABLET (768px+)
   ============================================= */

@media (min-width: 768px) {
    .nav {
        padding: 18px var(--gutter) 0;
    }

    .nav--overlay {
        padding-bottom: 80px;
    }

    .nav__logo img {
        width: 100px;
        height: 23px;
    }

    .nav__menu {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    

    .header-new .nav__menu > li:last-child > .nav__link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        padding: 8px 18px;
        border: 1px solid #666666;
        border-radius: 50px;
        color: var(--color-white);
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        transition:
            border-color 0.2s ease,
            opacity 0.2s ease;
    }

    .header-new .nav__menu > li:last-child > .nav__link:hover {
        border-color: #8a8a8a;
        opacity: 1;
    }

    .btn--outline {
        display: inline-flex;
    }

    .nav__hamburger {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .nav__right {
        gap: 20px;
    }

    .header-new__nav .nav__icon-btn[aria-label="Cart"] img,
    .nav__icon-btn[aria-label="Cart"] img {
        width: 20px;
        height: 19px;
    }

    .search-overlay__backdrop {
        top: 0;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85);
    }

    .search-overlay__panel {
        top: 65px;
        height: 148px;
        padding: 0 40px;
    }

    .search-overlay__inner {
        max-width: 600px;
    }

    .search-overlay__input {
        font-size: 24px;
    }
}

/* =============================================
   DESKTOP (1280px+)
   ============================================= */

@media (min-width: 1280px) {
    .nav--overlay {
        padding-bottom: 100px;
    }

    .nav__right {
        gap: 20px;
    }

    .header-new .nav__menu > li:last-child {
        margin-left: 50px;
    }
}

@media screen and (max-width: 1024px) {
     .header-new .nav__menu > li:last-child {
        margin-left: 0px;
    }
    .nav__menu {
        gap: 15px;
    }
}
