.wn-site-header,
.wn-site-header * {
    box-sizing: border-box;
}

.wn-site-header {
    position: relative;
    z-index: 999;
    background: var(--wn-header-bg);
}

.wn-header-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
}

.wn-header-top {
    font-size: 15px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.wn-header-top__inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wn-header-top__center,
.wn-header-top__center p,
.wn-header-top__center span,
.wn-header-top__center a {
    margin: 0;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: .01em;
}

.wn-desktop-header {
    background: var(--wn-header-bg);
    border-bottom: 1px solid var(--wn-header-border);
}

.wn-desktop-header__inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: 220px minmax(280px, 520px) 220px;
    align-items: center;
    gap: 24px;
    justify-content: center;
}

.wn-header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    min-width: 0;
}

.wn-header-logo img,
.wn-mobile-header__logo img,
.wn-mobile-drawer__logo img {
    max-height: 58px;
    width: auto;
    object-fit: contain;
}

.wn-header-search {
    position: relative;
    width: 100%;
    max-width: 520px;
    justify-self: center;
    display: flex;
    align-items: center;
    border: 1px solid var(--wn-header-border);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
    overflow: visible;
    transition: .2s ease;
}

.wn-header-search:focus-within {
    border-color: rgba(252, 137, 52, .45);
    box-shadow: 0 10px 26px rgba(252, 137, 52, .12);
}

.wn-header-search input {
    width: 100%;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px 0 18px;
    color: #111827;
    font-size: 13px;
}

.wn-header-search button {
    width: 42px;
    height: 42px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: var(--wn-header-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    transition: .2s ease;
}

.wn-header-search button:hover {
    background: var(--wn-header-primary-dark);
}

.wn-header-search .search_result {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .14);
    overflow: hidden;
}

.wn-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: 0;
}

.wn-header-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    text-decoration: none;
    border-radius: 16px;
    transition: .2s ease;
    flex: 0 0 auto;
}

.wn-header-action:hover {
    color: var(--wn-header-primary);
    transform: translateY(-1px);
}

.wn-header-action__icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wn-header-icon-text);
    background: var(--wn-header-icon-bg);
    border: 1px solid rgba(252, 137, 52, .16);
    font-size: 16px;
    position: relative;
    transition: .2s ease;
}

.wn-header-action:hover .wn-header-action__icon {
    background: var(--wn-header-primary);
    color: #fff;
    border-color: var(--wn-header-primary);
    box-shadow: 0 10px 24px rgba(252, 137, 52, .22);
}

.wn-header-action__icon b,
.wn-cart-icon span,
.wn-mobile-bottom-nav b {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    font-weight: 600;;
}

.wn-header-cart {
    position: relative;
}

.wn-cart-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid var(--wn-header-border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
    border-radius: 18px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s ease;
    z-index: 1001;
}

.wn-header-cart:hover .wn-cart-dropdown,
.wn-cart-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wn-cart-dropdown__item {
    display: grid;
    grid-template-columns: 54px 1fr 28px;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
}

.wn-cart-dropdown__item:hover {
    background: #f9fafb;
}

.wn-cart-dropdown__image img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--wn-header-border);
}

.wn-cart-dropdown__info a {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
}

.wn-cart-dropdown__info span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.wn-cart-dropdown button {
    border: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #ef4444;
    background: #fee2e2;
}

.wn-cart-dropdown__footer {
    border-top: 1px solid var(--wn-header-border);
    margin-top: 8px;
    padding: 12px 8px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.wn-cart-dropdown__footer strong {
    color: #111827;
    font-size: 15px;
}

.wn-cart-dropdown__footer a {
    color: #fff;
    background: var(--wn-header-primary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;;
}

.wn-cart-dropdown__empty {
    padding: 22px 10px;
    text-align: center;
    color: #6b7280;
}

.wn-header-nav {
    background: var(--wn-header-menu-bg);
    border-bottom: 1px solid var(--wn-header-border);
}

.wn-header-nav__scroll {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow: visible;
}

.wn-nav-item {
    position: relative;
}

.wn-nav-item > a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    color: var(--wn-header-menu-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: .2s ease;
    white-space: nowrap;
}

.wn-nav-item > a:hover,
.wn-nav-item:hover > a {
    color: var(--wn-header-menu-hover);
    background: rgba(252, 137, 52, .08);
}

.wn-nav-item > a em {
    font-style: normal;
    font-size: 10px;
    color: #fff;
    background: #ef4444;
    padding: 1px 6px;
    border-radius: 999px;
}

.wn-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 280px;
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 8px;
    background: #fff;
    border: 1px solid var(--wn-header-border);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .14);
    padding: 14px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: .2s ease;
}

.wn-nav-item:hover .wn-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.wn-mega-menu__group {
    min-width: 0;
}

.wn-mega-menu a {
    display: block;
    color: #4b5563;
    text-decoration: none;
    padding: 6px 7px;
    border-radius: 8px;
    font-size: 13px;
}

.wn-mega-menu a:hover {
    color: var(--wn-header-primary);
    background: #fff7ed;
}

.wn-mega-menu__title {
    color: #111827 !important;
    font-weight: 600;;
}

.wn-mobile-header,
.wn-mobile-search-bar,
.wn-mobile-bottom-nav {
    display: none;
}

.wn-mobile-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
}

.wn-mobile-drawer.is-open {
    pointer-events: auto;
}

.wn-mobile-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    transition: .24s ease;
}

.wn-mobile-drawer.is-open .wn-mobile-drawer__overlay {
    opacity: 1;
}

.wn-mobile-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(88vw, 380px);
    height: 100%;
    background: #fff;
    transform: translateX(-105%);
    transition: .24s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 60px rgba(0, 0, 0, .20);
}

.wn-mobile-drawer.is-open .wn-mobile-drawer__panel {
    transform: translateX(0);
}

.wn-mobile-header {
    background: var(--wn-header-bg);
    border-bottom: 1px solid var(--wn-header-border);
}

.wn-mobile-header__inner {
    height: 62px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 10px;
}

.wn-mobile-header__logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.wn-header-icon-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--wn-header-icon-bg);
    color: var(--wn-header-icon-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.wn-mobile-search-bar {
    padding: 8px 0 10px;
    background: var(--wn-header-bg);
    border-bottom: 1px solid var(--wn-header-border);
}

.wn-header-search--mobile {
    max-width: 100%;
}

.wn-header-search--mobile input {
    height: 42px;
    font-size: 13px;
}

.wn-header-search--mobile button {
    height: 42px;
    width: 42px;
    flex-basis: 42px;
}

.wn-mobile-drawer__head {
    height: 70px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--wn-header-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wn-mobile-drawer__close {
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ef4444;
    background: #fee2e2;
}

.wn-mobile-drawer__search {
    position: relative;
    margin: 12px;
    display: flex;
    border: 1px solid var(--wn-header-border);
    border-radius: 14px;
    overflow: visible;
}

.wn-mobile-drawer__search input {
    flex: 1;
    height: 42px;
    border: 0;
    outline: 0;
    padding: 0 12px;
    font-size: 13px;
}

.wn-mobile-drawer__search button {
    width: 42px;
    border: 0;
    color: #fff;
    background: var(--wn-header-primary);
}

.wn-mobile-drawer__quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 12px 10px;
}

.wn-mobile-drawer__quick a {
    min-height: 58px;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    background: #f8fafc;
    color: #111827;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.wn-mobile-drawer__quick i {
    color: var(--wn-header-primary);
    font-size: 16px;
}

.wn-mobile-menu-list {
    padding: 6px 12px 24px;
    overflow-y: auto;
    flex: 1;
}

.wn-mobile-menu-title {
    font-size: 12px;
font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 8px 2px;
}

.wn-mobile-menu-item,
.wn-mobile-submenu-item {
    border-bottom: 1px solid #f3f4f6;
}

.wn-mobile-menu-main,
.wn-mobile-submenu-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wn-mobile-menu-link,
.wn-mobile-submenu-main a {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.wn-mobile-menu-link img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--wn-header-border);
}

.wn-submenu-toggle {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f9fafb;
    color: #4b5563;
    transition: .2s ease;
}

.wn-submenu-toggle.is-active i {
    transform: rotate(180deg);
}

.wn-mobile-submenu,
.wn-mobile-childmenu {
    display: none;
    padding-left: 18px;
}

.wn-mobile-submenu.is-open,
.wn-mobile-childmenu.is-open {
    display: block;
}

.wn-mobile-childmenu a {
    display: block;
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 0;
}

.wn-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: #fff;
    border-top: 1px solid var(--wn-header-border);
    box-shadow: 0 -10px 35px rgba(15, 23, 42, .10);
    grid-template-columns: repeat(5, 1fr);
}

.wn-mobile-bottom-nav a {
    min-width: 0;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
}

.wn-mobile-bottom-nav span {
    position: relative;
    color: var(--wn-header-primary);
    font-size: 17px;
}

.wn-mobile-bottom-nav small {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.wn-drawer-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .wn-desktop-header__inner {
        grid-template-columns: 190px minmax(260px, 460px) 190px;
        gap: 16px;
    }

    .wn-header-action__icon {
        width: 40px;
        height: 40px;
    }

    .wn-nav-item > a {
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .wn-desktop-header,
    .wn-header-nav,
    .wn-header-top {
        display: none;
    }

    .wn-mobile-header,
    .wn-mobile-search-bar {
        display: block;
    }

    .wn-mobile-bottom-nav {
        display: grid;
    }

    body {
        padding-bottom: 58px;
    }
}

@media (min-width: 992px) {
    .wn-mobile-drawer {
        display: block;
    }
}

@media (max-width: 575px) {
    .wn-mobile-header__inner {
        height: 58px;
    }

    .wn-header-icon-btn {
        width: 40px;
        height: 40px;
    }

    .wn-mobile-drawer__panel {
        width: min(92vw, 360px);
    }
}