/* Shared ITOI header for homepage, shop lists, item pages, and common pages. */
.pub-header,
.header-zone {
    display: none !important;
}

.itoi-topbar {
    position: relative !important;
    z-index: 1300 !important;
    width: min(100%, 1920px) !important;
    height: 40px !important;
    margin: 0 auto !important;
    background: #3b3836 !important;
    overflow: visible !important;
}

.itoi-topbar-inner {
    position: relative !important;
    z-index: 1 !important;
    width: 1200px !important;
    height: 40px !important;
    margin: 0 auto !important;
    overflow: visible !important;
}

body.itoi-common-page .itoi-topbar,
body.itoi-shop-subpage .itoi-topbar,
body.itoi-shop-search-page .itoi-topbar {
    position: relative !important;
    z-index: 1300 !important;
    height: 40px !important;
    overflow: visible !important;
}

.itoi-topbar .itoi-cart-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    overflow: visible !important;
}

.itoi-topbar .itoi-cart-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 14px !important;
    height: 14px !important;
    margin-left: -1px !important;
    padding: 0 3px !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 14px !important;
    letter-spacing: 0 !important;
    border-radius: 8px !important;
    background: #ff7f32 !important;
    box-sizing: border-box !important;
}

.itoi-topbar .itoi-cart-badge.is-empty {
    display: none !important;
}

.itoi-mainnav,
body.itoi-common-page .itoi-mainnav,
body.itoi-shop-subpage .itoi-mainnav,
body.itoi-shop-search-page .itoi-mainnav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: 900 !important;
    width: 100% !important;
    height: 80px !important;
    background: #e7ebf3 !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.itoi-mainnav-inner,
body.itoi-common-page .itoi-mainnav-inner {
    position: relative !important;
    width: 1200px !important;
    height: 80px !important;
    margin: 0 auto !important;
}

.itoi-main-logo,
body.itoi-common-page .itoi-main-logo,
body.itoi-shop-subpage .itoi-main-logo,
body.itoi-shop-search-page .itoi-main-logo {
    position: absolute !important;
    left: 0 !important;
    top: 19px !important;
    width: 133px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 133px 42px !important;
}

.itoi-main-logo *,
.itoi-main-logo img {
    opacity: 0 !important;
    visibility: hidden !important;
}

.itoi-main-menu,
body.itoi-common-page .itoi-main-menu {
    position: absolute !important;
    left: 374px !important;
    right: 226px !important;
    top: 0 !important;
    width: auto !important;
    height: 80px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

.itoi-menu-item,
body.itoi-common-page .itoi-menu-item {
    position: relative !important;
    flex: 0 0 auto !important;
    height: 80px !important;
    margin: 0 !important;
    padding: 0 20px !important;
}

.itoi-menu-link,
.itoi-main-menu > .itoi-menu-item > .itoi-menu-link,
body.itoi-common-page .itoi-menu-link,
body.itoi-common-page .itoi-main-menu > .itoi-menu-item > .itoi-menu-link {
    display: block !important;
    height: 80px !important;
    color: #111820 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 80px !important;
    text-shadow: none !important;
    white-space: nowrap !important;
}

.itoi-menu-item.has-panel .itoi-menu-link::after {
    margin-left: 5px !important;
    border-top-color: currentColor !important;
}

.itoi-menu-item:hover .itoi-menu-link::before,
.itoi-menu-item.active .itoi-menu-link::before {
    left: 50% !important;
    right: auto !important;
    bottom: 3px !important;
    width: 48px !important;
    height: 1px !important;
    background: #1c355d !important;
    transform: translateX(-50%) !important;
}

.itoi-main-search,
body.itoi-common-page .itoi-main-search {
    position: absolute !important;
    right: 0 !important;
    top: 24px !important;
    width: 176px !important;
    height: 32px !important;
    margin: 0 !important;
}

.itoi-main-search .searchbar,
.itoi-main-search form,
.itoi-main-search input {
    width: 176px !important;
    height: 32px !important;
}

.itoi-main-search form {
    position: relative !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    overflow: hidden !important;
}

.itoi-main-search input {
    margin: 0 !important;
    padding: 0 50px 0 16px !important;
    color: #777f88 !important;
    font-size: 11px !important;
    line-height: 32px !important;
    border: 0 !important;
    border-radius: 17px !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.itoi-main-search form::before {
    right: 43px !important;
    top: 8px !important;
    height: 16px !important;
}

.itoi-main-search .btn-search {
    right: 0 !important;
    top: 0 !important;
    width: 43px !important;
    height: 32px !important;
}

.itoi-main-search .btn-search::before {
    left: 11px !important;
    top: 7px !important;
    width: 13px !important;
    height: 13px !important;
}

.itoi-main-search .btn-search::after {
     left: 22px !important;
    top: 17px !important;
}

/* Lists, details, and regular pages use the same light header. */
body.itoi-common-page .itoi-mainnav,
body.itoi-shop-subpage .itoi-mainnav,
body.itoi-shop-search-page .itoi-mainnav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    background: #e7ebf3 !important;
    box-shadow: none !important;
}

body.itoi-common-page .itoi-main-logo,
body.itoi-shop-subpage .itoi-main-logo,
body.itoi-shop-search-page .itoi-main-logo {
    background-image: url("home/image11.png") !important;
}

body.itoi-shop-subpage .aituai,
body.itoi-shop-search-page .aituai {
    min-height: 80px !important;
    height: 80px !important;
    margin: 0 !important;
    background: #e7ebf3 !important;
    overflow: visible !important;
}

body.itoi-shop-subpage .index-swiper,
body.itoi-shop-search-page .index-swiper {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

/* Homepage overlays the hero with a dark gradient until an overlay opens. */
body:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-mainnav {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    background: linear-gradient(180deg, rgba(12, 22, 29, 0.50), rgba(12, 22, 29, 0)) !important;
    box-shadow: none !important;
    height: 80px !important;
}

body:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-main-logo {
    background-image: url("home/image10.png") !important;
}

body:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-main-menu a,
body:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-menu-link {
    color: #fff !important;
}

body:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-menu-item:hover .itoi-menu-link::before,
body:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-menu-item.active .itoi-menu-link::before {
    background: #fff !important;
}

body:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) {
    background: #e7ebf3 !important;
    box-shadow: 0 10px 24px rgba(22, 34, 48, 0.12) !important;
}

body:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) .itoi-main-logo {
    background-image: url("home/image11.png") !important;
}

body:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) .itoi-menu-link {
    color: #111820 !important;
}

body.itoi-overlay-closed:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-mainnav,
body.itoi-overlay-closed:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) {
    background: linear-gradient(180deg, rgba(12, 22, 29, 0.50), rgba(12, 22, 29, 0)) !important;
    box-shadow: none !important;
}

body.itoi-overlay-closed:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-main-logo,
body.itoi-overlay-closed:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) .itoi-main-logo {
    background-image: url("home/image10.png") !important;
}

body.itoi-overlay-closed:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-main-menu a,
body.itoi-overlay-closed:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-menu-link,
body.itoi-overlay-closed:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) .itoi-menu-link {
    color: #fff !important;
}

/* Shared category hover panel. */
.itoi-menu-item.has-panel .itoi-nav-panel {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.itoi-menu-item.has-panel:hover .itoi-nav-panel {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.itoi-overlay-closed .itoi-menu-item.has-panel:hover .itoi-nav-panel {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.itoi-nav-panel,
body.itoi-common-page .itoi-nav-panel {
    position: fixed !important;
    left: 50% !important;
    top: 120px !important;
    z-index: 500 !important;
    width: 1200px !important;
    height: 472px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    border: 0 !important;
    background: #e7ebf3 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.itoi-nav-side {
    flex: 0 0 250px !important;
    width: 250px !important;
    height: 472px !important;
    padding: 48px 0 0 !important;
    background: #e1e5ef !important;
    box-sizing: border-box !important;
}

.itoi-nav-title {
    height: 45px !important;
    padding-left: 48px !important;
    color: #111820 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 45px !important;
}

.itoi-nav-child {
    position: relative !important;
    display: block !important;
    height: 36px !important;
    padding-left: 48px !important;
    color: #4f5662 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 36px !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.itoi-nav-child:first-of-type {
    height: 56px !important;
    padding-left: 48px !important;
    color: #111820 !important;
    font-weight: 600 !important;
    line-height: 56px !important;
    background: #c8ccd6 !important;
}

.itoi-nav-child:first-of-type::before {
    content: "" !important;
    position: absolute !important;
    left: 36px !important;
    top: 50% !important;
    width: 3px !important;
    height: 3px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #111820 !important;
    transform: translateY(-50%) !important;
}

.itoi-nav-child:first-of-type + .itoi-nav-child {
    margin-top: 6px !important;
}

.itoi-nav-detail {
    position: relative !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 472px !important;
    padding: 110px 0 0 70px !important;
    background: #edf0f6 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.itoi-nav-detail::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(90deg, rgba(237, 240, 246, 0.98) 0%, rgba(237, 240, 246, 0.82) 34%, rgba(237, 240, 246, 0.18) 63%, rgba(237, 240, 246, 0) 100%) !important;
    pointer-events: none !important;
}

.itoi-nav-img {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.itoi-nav-detail h3,
.itoi-nav-detail dl {
    position: relative !important;
    z-index: 2 !important;
}

.itoi-nav-detail h3 {
    width: 460px !important;
    margin: 0 0 42px !important;
    color: #111820 !important;
    font-size: 23px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    white-space: nowrap !important;
}

.itoi-nav-detail dl {
    display: grid !important;
    grid-template-columns: 102px 90px !important;
    column-gap: 33px !important;
    row-gap: 28px !important;
    width: 225px !important;
    margin: 0 !important;
    color: #1b2430 !important;
    font-size: 15px !important;
    line-height: 21px !important;
}

.itoi-nav-detail dt,
.itoi-nav-detail dd {
    min-height: 41px !important;
    margin: 0 !important;
    color: #1b2430 !important;
    font-size: 15px !important;
    line-height: 21px !important;
}

.itoi-nav-detail dt::after,
.itoi-nav-detail dd::after {
    display: block !important;
    color: #8d96a3 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 15px !important;
}

.itoi-nav-detail dt:nth-of-type(1)::after {
    content: "上架时间" !important;
}

.itoi-nav-detail dd:nth-of-type(1)::after {
    content: "领型" !important;
}

.itoi-nav-detail dt:nth-of-type(2)::after {
    content: "版型" !important;
}

.itoi-nav-detail dd:nth-of-type(2)::after {
    content: "厚度" !important;
}

.itoi-nav-detail dt:nth-of-type(3)::after {
    content: "面料成分" !important;
}

.itoi-nav-detail dd:nth-of-type(3)::after {
    content: "商品重量" !important;
}

.itoi-mainnav:has(.itoi-menu-item.has-panel:hover)::before {
    content: "" !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 120px !important;
    bottom: 0 !important;
    z-index: 1 !important;
    background: rgba(12, 20, 28, 0.42) !important;
    pointer-events: none !important;
}

/* Shared expanded-search state. */
.itoi-search-panel,
body.itoi-common-page .itoi-search-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 40px !important;
    z-index: 1100 !important;
    width: min(100%, 1920px) !important;
    height: 332px !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.itoi-search-panel.show {
    display: block !important;
}

body.itoi-search-active .itoi-topbar {
    z-index: 1300 !important;
}

.itoi-search-panel-inner {
    position: relative !important;
    width: 100% !important;
    max-width: 1920px !important;
    height: 332px !important;
    margin: 0 auto !important;
    background: transparent !important;
    overflow: visible !important;
}

.itoi-search-panel-inner::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto !important;
    z-index: 0 !important;
    display: block !important;
    height: 80px !important;
    background: #e7ebf3 !important;
}

.itoi-search-panel-inner::after {
    content: "" !important;
    position: absolute !important;
    left: calc(50% - 344px) !important;
    top: 80px !important;
    z-index: 0 !important;
    display: block !important;
    width: 688px !important;
    height: 252px !important;
    background: #e7ebf3 !important;
}

.itoi-search-logo,
body.itoi-search-active .itoi-search-logo {
    left: calc(50% - 600px) !important;
    top: 19px !important;
    z-index: 3 !important;
    width: 133px !important;
    height: 42px !important;
    background: url("home/image11.png") center / 133px 42px no-repeat !important;
    overflow: hidden !important;
}

.itoi-search-logo * {
    opacity: 0 !important;
    visibility: hidden !important;
}

.itoi-search-panel-form {
    position: absolute !important;
    left: calc(50% - 344px) !important;
    top: 0 !important;
    z-index: 4 !important;
    width: 688px !important;
    height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #cfd5df !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.itoi-search-panel-form span {
    position: absolute !important;
    left: 18px !important;
    top: 31px !important;
    width: 14px !important;
    height: 14px !important;
    border: 1.5px solid #4a5563 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.itoi-search-panel-form span::after {
    content: "" !important;
    position: absolute !important;
    right: -7px !important;
    bottom: -2px !important;
    width: 8px !important;
    height: 1.5px !important;
    border-radius: 2px !important;
    background: #4a5563 !important;
    transform: rotate(45deg) !important;
    transform-origin: left center !important;
}

.itoi-search-panel-form input {
    position: absolute !important;
    left: 47px !important;
    top: 0 !important;
    display: block !important;
    width: 590px !important;
    height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #36404d !important;
    font-family: "Microsoft YaHei", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 80px !important;
    border: 0 !important;
    background: transparent !important;
    outline: none !important;
}

.itoi-search-panel-form input::placeholder {
    color: #4a5563 !important;
    opacity: 1 !important;
}

.itoi-search-close {
    position: absolute !important;
    right: 12px !important;
    top: 27px !important;
    z-index: 5 !important;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    background: transparent !important;
}

.itoi-search-close::before,
.itoi-search-close::after {
    content: "" !important;
    position: absolute !important;
    left: 6px !important;
    top: 12px !important;
    width: 14px !important;
    height: 1px !important;
    background: #4a5563 !important;
}

.itoi-search-close::before {
    transform: rotate(45deg) !important;
}

.itoi-search-close::after {
    transform: rotate(-45deg) !important;
}

.itoi-hot-search {
    position: absolute !important;
    left: calc(50% - 344px) !important;
    top: 80px !important;
    z-index: 2 !important;
    width: 688px !important;
    height: 252px !important;
    min-height: 0 !important;
    padding: 21px 0 0 30px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.itoi-hot-search p,
.itoi-hot-search strong {
    margin: 0 0 9px !important;
    color: #9ca4af !important;
    font-family: "Microsoft YaHei", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
}

.itoi-hot-search a {
    display: block !important;
    margin: 0 0 8px !important;
    padding-left: 30px !important;
    color: #202833 !important;
    font-family: "Microsoft YaHei", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

.itoi-hot-search a:last-child {
    margin-bottom: 0 !important;
}

.itoi-hot-search a:hover,
.itoi-hot-search a:focus-visible {
    color: #1c355d !important;
}

body.itoi-search-active:not(.itoi-common-page):not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-mainnav,
body.itoi-search-active.itoi-common-page .itoi-mainnav,
body.itoi-search-active.itoi-shop-subpage .itoi-mainnav,
body.itoi-search-active.itoi-shop-search-page .itoi-mainnav {
    background: #e7ebf3 !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.itoi-search-active .itoi-mainnav-inner {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Prevent legacy top-level anchor rules from stretching dropdown rows. */
body .itoi-main-menu .itoi-nav-panel a.itoi-nav-child {
    height: 44px !important;
    padding-left: 48px !important;
    color: #4f5662 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 44px !important;
}

body .itoi-main-menu .itoi-nav-panel a.itoi-nav-child:first-of-type {
    height: 56px !important;
    color: #111820 !important;
    font-weight: 600 !important;
    line-height: 56px !important;
}

/* Align the 1200px header controls with the scaled design frame. */
body:not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-main-menu,
body.itoi-shop-subpage .itoi-main-menu,
body.itoi-shop-search-page .itoi-main-menu {
    left: 350px !important;
    right: 220px !important;
    width: auto !important;
    height: 80px !important;
    justify-content: flex-end !important;
}

body:not(.itoi-shop-subpage):not(.itoi-shop-search-page) .itoi-main-search,
body.itoi-shop-subpage .itoi-main-search,
body.itoi-shop-search-page .itoi-main-search {
    right: 0 !important;
    top: 24px !important;
}

body .itoi-menu-item.has-panel > .itoi-menu-link::after {
    content: "" !important;
    display: inline-block !important;
    width: 6px !important;
    height: 4px !important;
    margin-left: 6px !important;
    vertical-align: 3px !important;
    border: 0 !important;
    background: currentColor !important;
    clip-path: polygon(0 0, 100% 0, 50% 100%) !important;
}

body .itoi-menu-item:hover > .itoi-menu-link::before,
body .itoi-menu-item.active > .itoi-menu-link::before {
    left: 50% !important;
    right: auto !important;
    bottom: 3px !important;
    width: 48px !important;
    transform: translateX(-50%) !important;
}

/* Force every header variant onto the same centered 1200px grid. */
.itoi-topbar-inner,
.itoi-mainnav-inner,
body.itoi-common-page .itoi-mainnav-inner,
body.itoi-shop-subpage .itoi-mainnav-inner,
body.itoi-shop-search-page .itoi-mainnav-inner {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: 1200px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Signed-in account menu. */
.itoi-topbar-right .itoi-account {
    position: relative !important;
    z-index: 20 !important;
    order: 4 !important;
    height: 40px !important;
    overflow: visible !important;
}

.itoi-topbar-right {
    position: relative !important;
    z-index: 10 !important;
    overflow: visible !important;
}

.itoi-account-trigger {
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-family: "Microsoft YaHei", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 40px !important;
    background: transparent !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.itoi-account-trigger:hover,
.itoi-account-trigger:focus-visible {
    color: #fff !important;
}

.itoi-account-name {
    display: inline-block !important;
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: top !important;
}

.itoi-account-arrow {
    flex: 0 0 auto !important;
    width: 6px !important;
    height: 6px !important;
    margin: -3px 0 0 7px !important;
    border-right: 1px solid currentColor !important;
    border-bottom: 1px solid currentColor !important;
    transform: rotate(45deg) !important;
}

.itoi-account-dropdown {
    position: absolute !important;
    right: 0 !important;
    top: 36px !important;
    z-index: 100 !important;
    min-width: 96px !important;
    padding: 6px 0 !important;
    border: 1px solid #dfe3eb !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(16, 24, 36, 0.14) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-4px) !important;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s !important;
    pointer-events: auto !important;
}

.itoi-account:hover .itoi-account-dropdown,
.itoi-account:focus-within .itoi-account-dropdown,
.itoi-account.is-open .itoi-account-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.itoi-topbar .itoi-account-dropdown a {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    height: 34px !important;
    padding: 0 16px !important;
    color: #222a35 !important;
    font-size: 12px !important;
    line-height: 34px !important;
    text-align: center !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.itoi-topbar .itoi-account-dropdown a:hover {
    color: #132f5c !important;
    background: #f2f4f8 !important;
}

/* Homepage overlays the hero; dropdown/search states use the shared light header. */
body.itoi-shop-home-page .aituai {
    position: relative !important;
}

body.itoi-shop-home-page .itoi-mainnav {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    background: linear-gradient(180deg, rgba(12, 22, 29, 0.50), rgba(12, 22, 29, 0)) !important;
    box-shadow: none !important;
}

body.itoi-shop-home-page .itoi-main-logo {
    background-image: url("home/image10.png") !important;
}

body.itoi-shop-home-page .itoi-main-menu a,
body.itoi-shop-home-page .itoi-menu-link {
    color: #fff !important;
}

body.itoi-shop-home-page .itoi-menu-item:hover > .itoi-menu-link::before,
body.itoi-shop-home-page .itoi-menu-item.active > .itoi-menu-link::before {
    background: #fff !important;
}

body.itoi-shop-home-page .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) {
    background: #e7ebf3 !important;
    background-image: none !important;
    box-shadow: 0 14px 32px rgba(15, 23, 31, 0.16) !important;
}

body.itoi-shop-home-page .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) .itoi-main-logo {
    background-image: url("home/image11.png") !important;
}

body.itoi-shop-home-page .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) .itoi-main-menu a,
body.itoi-shop-home-page .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) .itoi-menu-link {
    color: #111820 !important;
}

body.itoi-shop-home-page .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) .itoi-menu-item:hover > .itoi-menu-link::before,
body.itoi-shop-home-page .itoi-mainnav:has(.itoi-menu-item.has-panel:hover) .itoi-menu-item.active > .itoi-menu-link::before {
    background: #1c355d !important;
}

/* Search control and empty-result layout, aligned with the expanded Figma state. */
.itoi-main-search .hots,
.itoi-main-search .hot-word {
    display: none !important;
}

.itoi-main-search .itoi-compact-search-form {
    cursor: text !important;
}

.itoi-main-search .itoi-compact-search-input {
    padding-right: 50px !important;
    outline: none !important;
    cursor: text !important;
}

.itoi-main-search .itoi-compact-search-trigger {
    display: block !important;
    cursor: pointer !important;
}

.itoi-main-search .itoi-compact-search-trigger:focus-visible,
.itoi-search-close:focus-visible {
    outline: 1px solid #1c355d !important;
    outline-offset: -3px !important;
}

body.itoi-shop-search-page #main.main {
    min-height: calc(100vh - 490px) !important;
    box-sizing: border-box !important;
}

body.itoi-shop-search-page .itoi-shop-search-content {
    padding-top: 18px !important;
    box-sizing: border-box !important;
}

/* Common item/list templates contain a legacy underline offset; keep it on the shared grid. */
body.itoi-common-page .itoi-main-menu .itoi-menu-item:hover > .itoi-menu-link::before,
body.itoi-common-page .itoi-main-menu .itoi-menu-item.active > .itoi-menu-link::before {
    left: 50% !important;
    right: auto !important;
    bottom: 3px !important;
    width: 48px !important;
    height: 1px !important;
    transform: translateX(-50%) !important;
}
