.site-header {
    position: relative;
    z-index: 60;
}

.topbar {
    background: var(--warm);
    border-bottom: 1px solid #e9e5df;
}

.topbar-inner {
    width: var(--content-width);
    margin: auto;
    min-height: 42px;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar-inner > p {
    font-size: 12px;
    letter-spacing: 0.25px;
    color: #596168;
}

.topbar-tools {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 26px;
}

.topbar-phone {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
}

.topbar-phone svg {
    width: 15px;
    height: 15px;
    color: var(--brand);
}

.language-menu {
    position: relative;
}

.language-menu > button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    font-size: 12px;
    padding: 3px 0;
}

.language-menu > button svg {
    width: 12px;
    height: 12px;
}

.language-options {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 145px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 10px 25px #222b301a;
    z-index: 80;
    padding: 6px;
}

.language-options a {
    display: block;
    padding: 7px 12px;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
    color: var(--brand);
    background: var(--brand-pale);
}

.main-nav {
    background: white;
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    width: var(--content-width);
    min-height: 94px;
    margin: auto;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    position: relative;
}

.brand-logo {
    flex: 0 1 190px;
    min-width: 130px;
}

.brand-logo img {
    width: auto;
    height: auto;
    max-height: 63px;
    max-width: 100%;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-left: auto;
}

.desktop-nav a {
    padding: 14px 0;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    transition: color 160ms;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
    color: var(--brand);
}

.desktop-nav a[aria-current="page"]::after {
    content: '';
    position: absolute;
    height: 2px;
    background: var(--brand-bright);
    bottom: 4px;
    left: 0;
    width: 100%;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid var(--line);
    padding-left: 25px;
}

.nav-tools button,
.nav-tools > a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    width: 34px;
    height: 40px;
    position: relative;
}

.nav-tools button:hover,
.nav-tools > a:hover {
    color: var(--brand);
}

.nav-tools .menu-toggle {
    display: none;
}

.cart-badge {
    background: var(--brand);
    color: white;
    border: 2px solid white;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    top: -1px;
    right: -7px;
    font-size: 10px;
    text-align: center;
    line-height: 16px;
}

.global-search {
    position: absolute;
    right: 0;
    top: 100%;
    width: 620px;
    max-width: 100%;
    background: white;
    box-shadow: 0 12px 30px #222b3026;
    border-top: 3px solid var(--brand-bright);
    padding: 25px;
    z-index: 70;
}

.global-search-fields {
    display: flex;
    gap: 10px;
}

.global-search input[type="search"] {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
}

.global-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    color: white;
    background: var(--brand);
    border: 0;
    border-radius: 3px;
}

.global-search button:hover {
    background: var(--ink);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: #18202780;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: min(360px, 88vw);
    background: white;
    padding: 25px;
    overflow-y: auto;
    box-shadow: -10px 0 30px #0002;
}

.drawer-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding-bottom: 25px;
}

.drawer-heading img {
    max-width: 170px;
    width: auto;
    height: auto;
    max-height: 66px;
}

.drawer-close {
    border: 0;
    background: var(--warm);
    padding: 10px;
}

.mobile-drawer nav a {
    display: flex;
    justify-content: space-between;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 600;
}

.mobile-drawer nav a:hover {
    color: var(--brand);
}

@media (max-width: 1150px) {
    .desktop-nav {
        gap: 20px;
    }
    .nav-inner {
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    .nav-tools .menu-toggle {
        display: flex;
    }

    .nav-inner {
        padding: 12px 0;
        min-height: 82px;
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        padding: 8px 0;
        gap: 12px;
    }
    .topbar-inner > p {
        font-size: 12px;
        line-height: 1.4;
    }
    .welcome-prefix,
    .topbar-phone {
        display: none;
    }
    .topbar-tools {
        gap: 0;
    }
    .nav-inner {
        min-height: 76px;
        padding: 12px 0;
        gap: 15px;
    }
    .brand-logo {
        flex-basis: 150px;
        min-width: 100px;
    }
    .brand-logo img {
        max-height: 51px;
    }
    .nav-tools {
        padding-left: 12px;
        gap: 5px;
    }
    .global-search {
        padding: 20px;
    }
    .global-search-fields {
        flex-direction: column;
    }
}
