/* Header, announcement bar, search overlay, and navigation. */

.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}
.top-bar {
    background: var(--top-bar-bg, var(--color-brand-blue-dark));
    color: var(--top-bar-text, var(--color-white));
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.top-bar .container,
.top-bar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    height: var(--top-bar-height, 36px);
}

.top-bar-text {
    grid-column: 2;
    min-width: 0;
    text-align: center;
}

.top-bar-accent {
    color: var(--top-bar-accent, #7bd300);
}

.top-bar-cta,
.top-bar a {
    grid-column: 3;
    justify-self: end;
    color: var(--top-bar-link, var(--color-white));
    flex: 0 0 auto;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.top-bar-cta::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

.top-bar-cta:hover {
    opacity: .82;
}

/* HEADER */
.site-header {
    border-bottom: 1px solid var(--color-border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*height: 80px;*/
}

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

/* =========================================
   BASE
========================================= */
.site-header {
    position: relative;
    background: var(--color-white);
}

.menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;
    padding: 24px 0;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
}

@media (min-width: 1025px) {
    /* ALL MEGA MENU DESKTOP CSS HERE */
/* =========================================
   MEGA PANEL (FIXED FULL WIDTH)
========================================= */
.menu > li > .sub-menu {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 48px 0;

    display: none;

    opacity: 0;
    transition: opacity .2s ease;

    z-index: 999;
}

/* ACTIVE STATE */
.menu > li.mega-open > .sub-menu {
    display: block;
    opacity: 1;
}

/* =========================================
   INNER LAYOUT
========================================= */
.menu > li > .sub-menu {
    display: none;
}

.menu > li.mega-open > .sub-menu {
    display: flex;
    justify-content: center;
    gap: 80px;
}

/* second level column */
.menu > li > .sub-menu > li {
    list-style: none;
    min-width: 220px;
}

/* second level heading */
.menu > li > .sub-menu > li > a {
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
    text-decoration: none;
    color: var(--color-text);
}

/* third level */
.menu > li > .sub-menu > li > .sub-menu {
    display: block;
        padding-left: 5px;
        list-style: none;
}

.menu > li > .sub-menu > li > .sub-menu a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    text-decoration: none;
    color: var(--color-text-muted);
}

.menu > li > .sub-menu > li > .sub-menu a:hover {
    color: var(--color-black);
}

}
/* ================= BURGER ================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
}
/* IMAGE ITEM */
.menu-item.has-image > a {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* IMAGE */
.menu-image img {
    width: 250px;
    height: auto;
    border-radius: 8px;
}

/* TEXT OVER IMAGE */
.menu-image-text {
    display: block;
    font-size: 14px;
    margin-top: 6px;
    color: var(--color-text);
}

/* TITLE */
.menu-title {
    font-weight: 600;
}
/* ================= OFF CANVAS ================= */
@media (max-width: 1024px) {
    .menu-image img {
        width: 125px;
    }
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -420px;
        width: 370px;
        height: 100vh;
        background: var(--color-white);
        padding: 80px 24px 24px;
        overflow-y: auto;
        transition: left .3s ease;
        z-index: 1001;
    }

    .main-nav.open {
        left: -65px;
    }

    /* backdrop */
    .menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        z-index: 1000;
    }

    .menu-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* vertical menu */
    .menu {
        flex-direction: column;
        gap: 0;
    }

    .menu > li {
        border-bottom: 1px solid var(--color-border-subtle);
    }

    .menu > li > a {
        padding: 14px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* SUBMENU */
    .menu .sub-menu {
        display: none;
        padding-left: 12px;
    }

    .menu li.open > .sub-menu {
        display: block;
    }

    .menu .sub-menu li a {
        padding: 10px 0;
        font-size: 14px;
    }
    .level-1 {
        margin-left: 65px;
        width: calc(100% - 65px)!important;
    }
    .level-2 ul {
        list-style: none;
        padding-left: 0;
    }
    .level-2 ul li {
        padding: 20px 0;
    }
    .level-2 ul li a {
        text-decoration: none;
        color: var(--color-black);
    }
    /* LEVEL 2 ITEMS WITH CHILDREN */
    .level-2 li.menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 320px;
    }
    
    /* DEFAULT "+" */
    .level-2 li.menu-item-has-children > a::after {
        content: "+";
        font-size: 20px;
        transition: transform .2s ease;
    }
    
    /* OPEN STATE "−" */
    .level-2 li.open > a::after {
        content: "−";
    }
}
@media (max-width: 1024px) {

    .menu-slider {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform .3s ease;
    }

    .menu-panel {
        width: 100%;
        flex-shrink: 0;
        overflow-y: auto;
        padding: 20px;
    }

    .menu-header {
        display: flex;
        justify-content: center;
        position: relative;
        padding: 16px 0;
        font-weight: 600;
    }

    .menu-back {
        position: absolute;
        left: 0;
        cursor: pointer;
    }

    .level-2 li > ul {
        display: none;
        padding-left: 12px;
    }

    .level-2 li.open > ul {
        display: block;
    }
}
/* MEGA INNER WRAPPER */
.menu > li > .sub-menu .mega-inner {
    display: flex;
    justify-content: center;
    gap: 80px;
}

/* COLUMN */
.menu > li > .sub-menu .mega-col {
    list-style: none;
    min-width: 220px;
    margin: 0;
    padding: 0;
}

/* ITEMS */
.menu > li > .sub-menu .mega-col li {
    margin-bottom: 8px;
}

/* LINKS */
.menu > li > .sub-menu .mega-col a {
    display: block;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 14px;
}

.menu > li > .sub-menu .mega-col a:hover {
    color: var(--color-black);
}
/* ICONS */
.header-icons {
    display: flex;
    gap: 18px;
}

.header-icons .icon {
    width: 18px;
    height: 18px;
    display: block;
    background-color: transparent;    
    background-size: contain;
    background-repeat: no-repeat;
    border: none;
}

/* TEMP ICONS (replace with SVGs later) */
.icon.search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M17.854 17.147 13.611 12.9a7.806 7.806 0 1 0-.707.707l4.242 4.243a.5.5 0 1 0 .708-.707M1 7.778a6.778 6.778 0 1 1 6.777 6.777A6.786 6.786 0 0 1 1 7.778' fill='%23191a1c'/%3E%3C/svg%3E");
}

.icon.account {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18' viewBox='0 0 16 18'%3E%3Cpath d='M8 9a4.5 4.5 0 1 1 4.5-4.5A4.5 4.5 0 0 1 8 9M8 1a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 8 1' fill='%23191a1c'/%3E%3Cpath d='M14.44 18H1.56a1.549 1.549 0 0 1-1.292-.7 1.635 1.635 0 0 1-.149-1.51A8.442 8.442 0 0 1 8 10.493a8.442 8.442 0 0 1 7.881 5.3 1.635 1.635 0 0 1-.149 1.51 1.549 1.549 0 0 1-1.292.7M8 11.493a7.462 7.462 0 0 0-6.971 4.676.611.611 0 0 0 .055.573A.562.562 0 0 0 1.56 17H14.44a.562.562 0 0 0 .476-.258.611.611 0 0 0 .055-.573A7.462 7.462 0 0 0 8 11.493' fill='%23191a1c'/%3E%3C/svg%3E");
}

.icon.cart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='18' viewBox='0 0 15 18'%3E%3Cpath d='M13.294 4.992H11.43V3.932a3.93 3.93 0 1 0-7.86 0v1.06H1.706A1.708 1.708 0 0 0 0 6.7v9.594A1.709 1.709 0 0 0 1.706 18H13.294A1.709 1.709 0 0 0 15 16.293V6.7a1.708 1.708 0 0 0-1.706-1.707M4.57 3.932a2.93 2.93 0 1 1 5.86 0v1.06H4.57ZM14 16.293a.707.707 0 0 1-.706.706H1.706A.707.707 0 0 1 1 16.293V6.7a.706.706 0 0 1 .706-.706H3.57V8.784a.5.5 0 1 0 1 0V5.993h5.86V8.784a.5.5 0 1 0 1 0V5.993h1.864A.706.706 0 0 1 14 6.7Z' fill='%23191a1c'/%3E%3C/svg%3E");
}


:root {
    --top-bar-height: 36px;
    --site-header-height: 80px;
    --header-height: calc(var(--top-bar-height) + var(--site-header-height));
}

.site-header {
    height: var(--site-header-height);
    background: var(--color-white);
}

.top-bar {
    height: var(--top-bar-height);
}

body.no-top-bar {
    --top-bar-height: 0px;
    --header-height: var(--site-header-height);
}
/* DEFAULT: static */
.site-header,
.top-bar {
    position: static;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: transform .3s ease;
}

/* FIXED STATE (only when scrolling) */
.header-fixed .site-header,
.header-fixed .top-bar {
    position: fixed;
}

.top-bar {
    top: 0;
}

.site-header {
    top: var(--top-bar-height);
}

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

.header-hidden .top-bar,
.header-hidden .site-header {
    transform: translateY(-150%);
}


@media (max-width: 1199px) {
    .main-nav .menu {
        gap: 20px;
    }

    .site-logo img {
        height: 36px;
    }
}
@media (max-width: 991px) {

    :root {
        --top-bar-height: 32px;
        --site-header-height: 64px;
        --header-height: calc(var(--top-bar-height) + var(--site-header-height));
    }

    .site-header {
        height: var(--site-header-height);
    }

    .top-bar {
        height: var(--top-bar-height);
        font-size: 12px;
    }

    .main-nav .menu {
        gap: 16px;
        font-size: 13px;
    }
}
@media (max-width: 767px) {

    :root {
        --top-bar-height: 52px;
        --site-header-height: 58px;
        --header-height: calc(var(--top-bar-height) + var(--site-header-height));
    }

    .top-bar {
        display: block;
        font-size: 11px;
        line-height: 1.2;
    }

    .site-header {
        height: var(--site-header-height);
    }

    .top-bar .container,
    .top-bar-inner {
        display: flex;
        height: var(--top-bar-height);
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding-left: 18px;
        padding-right: 18px;
        text-align: center;
    }

    .top-bar-cta,
    .top-bar a {
        font-size: 10px;
        letter-spacing: .1em;
    }

    .site-header .container {
        padding: 10px 30px 0;
    }

    .header-icons {
        gap: 14px;
    }

}

/* =========================================
   YONEX NAVIGATION V2
========================================= */
.yonex-nav-menu,
.yonex-mega-grid,
.yonex-mega-links,
.yonex-sub-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yonex-nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.yonex-nav-item {
    position: static;
}

.yonex-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 28px 0;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.yonex-menu-button {
    font-family: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

.yonex-menu-label {
    min-width: 0;
}

.yonex-menu-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 107, 182, .08);
    color: var(--color-brand-blue);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.15;
    text-transform: uppercase;
    vertical-align: middle;
}

.yonex-menu-description {
    display: block;
    margin-top: 4px;
    max-width: 230px;
    color: var(--color-text-subtle);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.yonex-nav-link:hover,
.yonex-nav-item.mega-open > .yonex-nav-link {
    color: var(--color-brand-blue);
}

.yonex-nav-item.has-children:not(.yonex-hide-arrow) > .yonex-nav-link::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.yonex-mega-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height, 116px);
    display: none;
    background: var(--color-white);
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #e7e7e7;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
    z-index: 998;
}

body.admin-bar .yonex-mega-panel {
    top: calc(var(--header-height, 116px) + 32px);
}

body.header-hidden .yonex-mega-panel {
    top: 0;
}

.yonex-nav-item.mega-open > .yonex-mega-panel {
    display: block;
}

.yonex-mega-shell {
    width: min(1180px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 36px 0 40px;
}

.yonex-menu-back {
    display: none;
}

.yonex-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 34px 44px;
    align-items: start;
}

.yonex-mega-heading {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.yonex-mega-heading:hover {
    color: var(--color-brand-blue);
}

.yonex-mega-links {
    display: grid;
    gap: 13px;
}

.yonex-mega-link,
.yonex-sub-link {
    display: inline-block;
    color: #202020;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.yonex-mega-link:hover,
.yonex-sub-link:hover {
    color: var(--color-brand-blue);
}

.yonex-menu-role-promo {
    align-self: stretch;
}

.yonex-mega-promo {
    display: grid;
    gap: 9px;
    color: var(--color-text);
    text-decoration: none;
}

.yonex-mega-promo-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--color-white) 0%, #f7f8f9 100%);
    border: 1px solid #eceff2;
}

.yonex-mega-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    transition: transform .35s ease;
}

.yonex-mega-promo:hover img {
    transform: scale(1.04);
}

.yonex-mega-promo-eyebrow {
    color: var(--color-text-subtle);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.yonex-mega-promo-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

@media (min-width: 1025px) {
    .yonex-hide-desktop {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .yonex-hide-mobile {
        display: none !important;
    }

    .site-header {
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
    }

    .site-logo img {
        background: var(--color-white);
        max-height: 34px;
    }

    .main-nav {
        left: 0;
        width: min(360px, 86vw);
        max-width: calc(100vw - 28px);
        transform: translateX(-105%);
        transition: transform .28s ease;
        padding: 72px 0 28px;
        box-shadow: 18px 0 45px rgba(0, 0, 0, .18);
    }

    .main-nav.open {
        left: 0;
        transform: translateX(0);
    }

    .yonex-nav-menu {
        display: grid;
        gap: 0;
        padding: 0 22px;
    }

    .yonex-nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 17px 0;
        border-bottom: 1px solid var(--color-border-subtle);
        font-size: 15px;
        text-align: left;
    }

    .yonex-mega-panel {
        position: absolute;
        inset: 0;
        top: 0;
        display: block;
        transform: translateX(105%);
        border: 0;
        box-shadow: none;
        overflow-y: auto;
        transition: transform .28s ease;
        z-index: 2;
        background: var(--color-white);
    }

    .yonex-nav-item.mega-open > .yonex-mega-panel {
        transform: translateX(0);
    }

    .yonex-mega-shell {
        width: auto;
        padding: 0 22px 28px;
    }

    .yonex-menu-back {
        display: inline-flex;
        width: 100%;
        align-items: center;
        gap: 10px;
        padding: 18px 0 8px;
        background: none;
        border: 0;
        color: var(--color-text);
        cursor: pointer;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .yonex-menu-back::before {
        content: "<";
        font-size: 17px;
    }

    .yonex-mobile-menu-title {
        display: block;
        padding: 0 0 18px;
        border-bottom: 1px solid var(--color-border-subtle);
        color: var(--color-brand-blue);
        font-size: 18px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .yonex-mega-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 22px;
    }

    .yonex-mega-heading {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .yonex-menu-description {
        max-width: none;
        font-size: 12px;
    }

    .yonex-menu-badge {
        margin-left: 6px;
    }

    .yonex-mega-links {
        gap: 11px;
    }

    .yonex-mega-link,
    .yonex-sub-link {
        font-size: 15px;
    }

    .yonex-mega-promo-image {
        aspect-ratio: 16 / 8;
        max-height: 190px;
    }

    .yonex-mega-promo-image img {
        padding: 8px;
    }
}

@media (min-width: 1025px) {
    .main-nav {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        overflow: visible;
        transform: none;
        transition: none;
        z-index: auto;
    }
}

