/* XYZ marketplace header — redesign palette: ink #17142e, brand #6c5ce7, gold CTA, lavender strip */
.xn { position: relative; z-index: 60; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.xn .xyz-ic { width: 16px; height: 16px; flex: none; }
.xn-in { display: flex; align-items: center; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.xn a { text-decoration: none; }

/* 1 promo bar */
.xn-promo { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 42px; padding: 6px 16px; background: #0f0c22; color: #d8d3f3; font-size: 13.5px; text-align: center; }
.xn-promo p { margin: 0; }
.xn-promo strong { color: #fff; }
.xn .xn-promo-btn { display: inline-flex; align-items: center; flex: none; padding: 6px 16px; border-radius: 8px; font-size: 13px; font-weight: 800; color: #17142e; background: linear-gradient(135deg, #ffd66b, #ffb648); }
.xn .xn-promo-btn:hover { color: #17142e; filter: brightness(1.05); }

/* 2 main bar */
.xn-bar { background: #17142e; }
.xn-bar .xn-in { gap: 28px; min-height: 66px; }
.xn .xn-logo { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.xn-logo span { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.xn-logo b { font-weight: 800; }
.xn-search { flex: 1; max-width: 520px; }
.xn-search-form { position: relative; display: flex; }
.xn .xn-search-form input[type=search] { width: 100%; height: 40px; margin: 0; padding: 0 44px 0 14px; border: 1px solid #36305e; border-radius: 10px; font-size: 14px; color: #fff; background: #221d45; box-shadow: none; }
.xn .xn-search-form input[type=search]::placeholder { color: #9d97c4; }
.xn .xn-search-form input[type=search]:focus { border-color: #6c5ce7; background: #262050; outline: 0; box-shadow: 0 0 0 3px rgba(108, 92, 231, .3); }
.xn .xn-search-form button { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 8px; color: #fff; background: #6c5ce7; }
.xn .dgwt-wcas-search-input { height: 40px !important; border-radius: 10px !important; border: 1px solid #36305e !important; background: #221d45 !important; color: #fff !important; font-size: 14px !important; }
.xn .dgwt-wcas-search-input::placeholder { color: #9d97c4 !important; }
.xn .dgwt-wcas-search-submit { background: #6c5ce7 !important; border-radius: 0 10px 10px 0 !important; }
.xn-util { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.xn .xn-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: #c9c4e6; white-space: nowrap; }
.xn .xn-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.xn-link .xyz-ic { color: #a99bff; }
.xn-sep { width: 1px; height: 20px; margin: 0 6px; background: #36305e; }
.xn .xn-cart { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; background: rgba(255, 255, 255, .08); }
.xn .xn-cart:hover { background: #6c5ce7; color: #fff; }
.xn-cart .xyz-ic { width: 19px; height: 19px; }
.xn-cart-count:empty, .xn-cart-count:is([data-n="0"]) { display: none; }
.xn-cart-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; color: #17142e; background: #ffd66b; }

/* 3 category tabs */
.xn-tabs { background: #17142e; border-top: 1px solid #2a2450; }
.xn-menu { display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; }
.xn-tabs .xn-menu > li { position: relative; margin: 0; }
.xn-tabs .xn-menu > li > a { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 11px; font-size: 14px; font-weight: 600; color: #bdb7dd; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .15s ease, border-color .15s ease; }
.xn-tabs .xn-menu > li:hover > a, .xn-tabs .xn-menu > li:focus-within > a { color: #fff; }
.xn-tabs .xn-menu > li.current-menu-item > a, .xn-tabs .xn-menu > li.current-menu-ancestor > a { color: #fff; border-bottom-color: #6c5ce7; }
.xn-tabs .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 4px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: .7; }
.xn-tabs .sub-menu { position: absolute; left: 0; top: 100%; z-index: 70; min-width: 230px; margin: 0; padding: 8px; list-style: none; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(23, 20, 46, .06), 0 24px 50px -20px rgba(23, 20, 46, .5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.xn-tabs li:hover > .sub-menu, .xn-tabs li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.xn-tabs .sub-menu li { margin: 0; }
.xn-tabs .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #2b2840; }
.xn-tabs .sub-menu a:hover { color: #4f3fd6; background: #f3f1ff; }

/* 4 trust strip */
.xn-strip { background: #fbf9ff; border-bottom: 1px solid #ece9f8; }
.xn-strip .xn-in { gap: 26px; min-height: 36px; font-size: 13px; font-weight: 600; color: #4a4466; }
.xn-strip span { display: inline-flex; align-items: center; gap: 6px; }
.xn-strip .xyz-ic { width: 15px; height: 15px; color: #6c5ce7; }

/* mobile */
.xn-burger, .xn-drawer, .xn-scrim { display: none; }
@media (max-width: 1150px) { .xn-hide-md { display: none !important; } .xn-tabs .xn-menu > li > a { padding: 0 8px; font-size: 13.5px; } }
@media (max-width: 849px) {
	.xn-hide-sm { display: none !important; }
	.xn-tabs { display: none; }
	.xn-bar .xn-in { flex-wrap: wrap; gap: 10px 12px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
	.xn-search { order: 5; flex-basis: 100%; max-width: none; }
	.xn-account span { display: none; }
	.xn-burger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; margin: 0; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); }
	.xn-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; }
	.xn-strip .xn-in { justify-content: center; gap: 14px; overflow: hidden; white-space: nowrap; font-size: 12px; }
	.xn-drawer { position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; display: block; width: min(320px, 86vw); padding: 18px 16px 28px; overflow-y: auto; background: #17142e; transform: translateX(-100%); transition: transform .25s ease; }
	.xn-open .xn-drawer { transform: none; }
	.xn-scrim { position: fixed; inset: 0; z-index: 99; border: 0; background: rgba(10, 8, 30, .55); }
	.xn-open .xn-scrim { display: block; }
	.xn-drawer .xn-menu { flex-direction: column; margin-top: 14px; }
	.xn-drawer .xn-menu a { display: block; padding: 11px 6px; font-size: 15px; font-weight: 600; color: #e4dfff; border-bottom: 1px solid #2a2450; }
	.xn-drawer .sub-menu { margin: 0; padding: 0 0 0 14px; list-style: none; }
	.xn-drawer .sub-menu a { font-size: 14px; color: #bdb7dd; }
	.xn-drawer-cta { display: flex !important; justify-content: center; margin-top: 18px; padding: 12px 16px !important; }
	.xn-promo { font-size: 12.5px; gap: 10px; }
}
@media (max-width: 400px) { .xn-logo span { font-size: 19px; } }
/* fit the 11-item live menu; FiboSearch on desktop, plain search on phones */
.xn-tabs .xn-in { max-width: 1400px; }
.xn-tabs .xn-menu > li > a { padding: 0 9px; font-size: 13.5px; }
@media (max-width: 1360px) { .xn-tabs .xn-menu > li > a { padding: 0 7px; font-size: 13px; } }
@media (max-width: 1150px) { .xn-tabs .xn-menu > li > a { padding: 0 5px; font-size: 12.5px; } }
.xn-mobile-only { display: none !important; }
@media (max-width: 849px) {
	.xn-fibo { display: none; }
	.xn-mobile-only { display: flex !important; }
	.xn-strip .xn-in { justify-content: flex-start; }
	.xn-strip span:nth-child(n+3) { display: none; }
}

/* ===== light version: the previous header colours (white bar, light grey top bar) ===== */
.xn-promo { background: #f7f7f9; color: #4a4466; border-bottom: 1px solid #ececf1; }
.xn-promo strong { color: #17142e; }
.xn-bar, .xn-tabs { background: #fff; }
.xn-tabs { border-top: 1px solid #ececf1; border-bottom: 1px solid #ececf1; }
.xn-logo span { color: #17142e; }
.xn .xn-search-form input[type=search] { color: #17142e; background: #f6f6f9; border-color: #e3e2ec; }
.xn .xn-search-form input[type=search]::placeholder { color: #8c86a8; }
.xn .xn-search-form input[type=search]:focus { background: #fff; border-color: #6c5ce7; box-shadow: 0 0 0 3px rgba(108, 92, 231, .15); }
.xn .dgwt-wcas-search-input { color: #17142e !important; background: #f6f6f9 !important; border-color: #e3e2ec !important; }
.xn .dgwt-wcas-search-input::placeholder { color: #8c86a8 !important; }
.xn .xn-link { color: #3f3a5c; }
.xn .xn-link:hover { color: #4f3fd6; background: #f3f1ff; }
.xn-link .xyz-ic { color: #6c5ce7; }
.xn-sep { background: #e3e2ec; }
.xn .xn-cart { color: #17142e; background: #f3f1fb; }
.xn .xn-cart:hover { color: #fff; background: #6c5ce7; }
.xn-tabs .xn-menu > li > a { color: #3f3a5c; }
.xn-tabs .xn-menu > li:hover > a, .xn-tabs .xn-menu > li:focus-within > a { color: #4f3fd6; }
.xn-tabs .xn-menu > li.current-menu-item > a, .xn-tabs .xn-menu > li.current-menu-ancestor > a { color: #17142e; border-bottom-color: #6c5ce7; }
@media (max-width: 849px) {
	.xn-burger { background: #f3f1fb; }
	.xn-burger span { background: #17142e; }
	.xn-drawer { background: #fff; box-shadow: 10px 0 40px -10px rgba(23, 20, 46, .35); }
	.xn-drawer .xn-menu a { color: #17142e; border-bottom-color: #efedf6; }
	.xn-drawer .sub-menu a { color: #5e5879; }
}
/* the site's own logo image */
.xn .xn-logo img { display: block; width: auto; max-width: 230px; height: auto; max-height: 52px; }
@media (max-width: 849px) { .xn .xn-logo img { max-width: 160px; max-height: 40px; } }
.xn .xn-logo { flex: none; }
.xn .xn-logo img { width: 210px; height: 56px; max-width: none; max-height: none; object-fit: contain; object-position: left center; }
@media (max-width: 849px) { .xn .xn-logo img { width: 150px; height: 40px; } }

/* ===== department mega menu (gate key "nav") ===== */
.xn-tabs .xn-in { position: relative; }
.xn-tabs .xn-menu--depts > li { position: static; }
.xn-tabs .xn-menu--depts > li > a { padding: 0 12px; font-size: 14px; }
.xn-tabs .xn-mega { left: 20px; right: 20px; min-width: 0; padding: 0; overflow: hidden; }
.xn-tabs .xn-mega--sm { left: auto; right: auto; width: 340px; padding: 8px; }
.xn-mega-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(120deg, #f6f4ff, #fff6f8); border-bottom: 1px solid #efedf7; }
.xn-mega-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #6c5ce7, #a855f7); }
.xn-mega-head strong { display: block; font-size: 16px; color: #17142e; }
.xn-mega-head small { font-size: 13px; color: #6a6488; }
.xn .xn-mega-all { margin-left: auto; padding: 9px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 800; color: #fff; background: #6c5ce7; }
.xn .xn-mega-all:hover { color: #fff; background: #5a4bd6; }
.xn-mega-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 16px; margin: 0; padding: 14px 16px 16px; list-style: none; }
.xn-mega-links--1 { grid-template-columns: 1fr; padding: 0; }
.xn-mega-links li { margin: 0; }
.xn-tabs .xn-mega-links a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #2b2840; }
.xn-mega-links a span { font-size: 12.5px; font-weight: 600; color: #9893b3; }
.xn-tabs .xn-mega-links a:hover, .xn-mega-links a[aria-current] { color: #4f3fd6; background: #f3f1ff; }
.xn-tabs .xn-menu--depts > li:last-child .xn-mega--sm, .xn-tabs .xn-menu--depts > li:nth-last-child(2) .xn-mega--sm { right: 20px; }
@media (max-width: 1150px) { .xn-tabs .xn-menu--depts > li > a { padding: 0 8px; font-size: 13.5px; } .xn-mega-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 849px) {
	.xn-drawer .xn-mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: none; padding: 0 0 6px 12px; }
	.xn-drawer .xn-mega-head { display: none; }
	.xn-drawer .xn-mega-links { display: block; padding: 0; }
	.xn-drawer .xn-mega-links a { display: flex; justify-content: space-between; padding: 9px 6px; font-size: 14px; color: #5e5879; }
	.xn-drawer .xn-dept > .sub-menu { display: none; }
	.xn-drawer .xn-dept.is-open > .sub-menu { display: block; }
	.xn-drawer .xn-dept > a { position: relative; }
	.xn-drawer .xn-dept > a::after { content: "+"; position: absolute; right: 8px; font-size: 18px; color: #9893b3; }
	.xn-drawer .xn-dept.is-open > a::after { content: "–"; }
}

/* centred menu, Updater tab, popular-links row */
.xn-tabs .xn-in { justify-content: center; }
.xn-tabs .xn-menu { justify-content: center; }
.xn-tabs .xn-updater-tab > a { gap: 6px; color: #4f3fd6; }
.xn-tabs .xn-updater-tab > a .xyz-ic { width: 15px; height: 15px; }
.xn-tabs .xn-updater-tab em { padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #047857; background: #dcfce7; }
.xn-sub { background: #fbf9ff; border-bottom: 1px solid #ece9f8; }
.xn-sub .xn-in { justify-content: center; flex-wrap: wrap; gap: 4px 18px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.xn-sub-label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9893b3; }
.xn .xn-sub a { font-size: 13px; font-weight: 600; color: #4a4466; white-space: nowrap; }
.xn .xn-sub a:hover { color: #4f3fd6; }
.xn-sub-sep { width: 1px; height: 16px; background: #e0dcf0; }
.xn .xn-sub a.xn-sub-strong { color: #4f3fd6; font-weight: 700; }
@media (max-width: 1150px) { .xn-sub .xn-in { gap: 4px 12px; } .xn .xn-sub a:nth-of-type(n+10) { display: none; } .xn .xn-sub a.xn-sub-strong { display: inline; } }
@media (max-width: 849px) {
	.xn-sub .xn-in { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
	.xn-sub .xn-in::-webkit-scrollbar { display: none; }
	.xn .xn-sub a:nth-of-type(n+10) { display: inline; }
	.xn-drawer .xn-updater-tab a { color: #4f3fd6; }
}
@media (max-width: 1360px) { .xn-tabs .xn-menu--depts > li > a { padding: 0 8px; font-size: 13.5px; } }
@media (max-width: 1240px) { .xn-tabs .xn-menu--depts > li > a { padding: 0 6px; font-size: 13px; } .xn-tabs .xn-updater-tab > a .xyz-ic { display: none; } }
@media (max-width: 1100px) { .xn-tabs .xn-updater-tab em { display: none; } }
/* popular row: always one line, fewer links on narrower screens */
.xn-sub .xn-in { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
@media (max-width: 1440px) { .xn-sub .xn-pop:nth-child(n+11) { display: none; } }
@media (max-width: 1280px) { .xn-sub .xn-pop:nth-child(n+9) { display: none; } }
@media (max-width: 1100px) { .xn-sub .xn-pop:nth-child(n+7) { display: none; } }
/* below 1100px the department menu lives in the slide-in drawer */
@media (max-width: 1100px) and (min-width: 850px) {
	.xn-tabs { display: none; }
	.xn-burger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; margin: 0; padding: 0 10px; border: 0; border-radius: 10px; background: #f3f1fb; }
	.xn-burger span { display: block; height: 2px; border-radius: 2px; background: #17142e; }
	.xn-drawer { position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; display: block; width: 340px; padding: 18px 16px 28px; overflow-y: auto; background: #fff; box-shadow: 10px 0 40px -10px rgba(23, 20, 46, .35); transform: translateX(-100%); transition: transform .25s ease; }
	.xn-open .xn-drawer { transform: none; }
	.xn-scrim { position: fixed; inset: 0; z-index: 99; border: 0; background: rgba(10, 8, 30, .45); }
	.xn-open .xn-scrim { display: block; }
	.xn-drawer .xn-menu { flex-direction: column; margin-top: 14px; }
	.xn-drawer .xn-menu a { display: block; padding: 11px 6px; font-size: 15px; font-weight: 600; color: #17142e; border-bottom: 1px solid #efedf6; }
	.xn-drawer .xn-mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: none; padding: 0 0 6px 12px; }
	.xn-drawer .xn-mega-head { display: none; }
	.xn-drawer .xn-mega-links { display: block; padding: 0; }
	.xn-drawer .xn-mega-links a { display: flex; justify-content: space-between; padding: 9px 6px; font-size: 14px; color: #5e5879; }
	.xn-drawer .xn-dept > .sub-menu { display: none; }
	.xn-drawer .xn-dept.is-open > .sub-menu { display: block; }
	.xn-drawer .xn-dept > a { position: relative; }
	.xn-drawer .xn-dept > a::after { content: "+"; position: absolute; right: 8px; font-size: 18px; color: #9893b3; }
	.xn-drawer .xn-dept.is-open > a::after { content: "–"; }
	.xn-drawer-cta { display: flex !important; justify-content: center; margin-top: 18px; padding: 12px 16px !important; }
}
.xn-drawer .xn-updater-tab a { display: flex !important; align-items: center; gap: 6px; color: #4f3fd6 !important; }
.xn-drawer .xn-updater-tab em { padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: #047857; background: #dcfce7; }
.xn-drawer .xn-updater-tab .xyz-ic { width: 16px; height: 16px; }
/* highlighted POPULAR label */
.xn-sub-label { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff; background: linear-gradient(135deg, #6c5ce7, #a855f7 60%, #ff7a90); box-shadow: 0 6px 14px -6px rgba(108, 92, 231, .7); }
.xn-sub-label .xyz-ic { width: 12px; height: 12px; fill: #ffd66b; stroke: #ffd66b; }
.xn .xn-mega-all, .xn .xn-mega-all:hover, .xn .xn-mega-all:focus { color: #fff !important; }
