/* Xiaomi Stores Christmas 1.0.8 */
:root {
	--xsc-pine: #0b2a20;
	--xsc-pine-deep: #071b15;
	--xsc-pine-light: #134232;
	--xsc-red: #d6202a;
	--xsc-gold: #f5c35b;
	--xsc-orange: #ff6900;
	--xsc-snow: #ffffff;
	--xsc-mist: #cfe2d8;
	--xsc-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22V10C8 4 16 9 25 7c10-3 17 4 27 2 10-3 16-7 26-4 9 3 15 5 24 2 10-4 18-5 27-1 8 3 15 4 24 1 9-3 17-4 26 0 8 3 14 3 21 1V22z' fill='%23fff'/%3E%3Cpath d='M30 14c0 4 3 6 3 6s3-2 3-6M122 14c0 5 3 7 3 7s3-2 3-7' fill='%23fff'/%3E%3C/svg%3E");
	--xsc-drift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70V40c70-18 150-6 230-14 100-10 170 16 280 8 110-8 170-24 290-14 110 10 180 20 280 8 50-6 90-4 120 0v42z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M0 70V52c90-14 170 2 260-6 110-10 190 12 300 6 120-6 180-20 300-10 120 10 200 14 340 2v26z' fill='%23fff'/%3E%3C/svg%3E");
	--xsc-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.9 6.6 7.1.6-5.4 4.7 1.6 7-6.2-3.7-6.2 3.7 1.6-7L2 8.7l7.1-.6z' fill='%23f5c35b'/%3E%3C/svg%3E");
}

/* ---------- hero scene (Christmas page and homepage) ---------- */
.nxs.xsc-scene {
	--nxs-ink: #ffffff !important;
	--nxs-muted: #d3e4da !important;
	--nxs-highlight: #ff7a1a !important;
	--nxs-base: #0b2a20 !important;
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(60% 70% at 58% 78%, rgba(255, 105, 0, .20), transparent 60%),
		radial-gradient(40% 60% at 92% 0%, rgba(245, 195, 91, .16), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, rgba(214, 32, 42, .18), transparent 70%),
		linear-gradient(160deg, #124031 0%, #0b2a20 48%, #071b15 100%) !important;
}
.nxs.xsc-scene .nxs__ambient { opacity: .25; mix-blend-mode: screen; }
.nxs.xsc-scene .nxs__background-image { display: none; }
.nxs.xsc-scene .nxs__inner { position: relative; z-index: 2; }
.nxs.xsc-scene .nxs__heading { color: #fff; }
.nxs.xsc-scene .nxs__description { color: var(--xsc-mist); }
.nxs.xsc-scene .nxs__eyebrow { color: #fff; }
.nxs.xsc-scene button.nxs__control {
	color: #fff;
	border-color: rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .08);
	transition: background-color .2s ease, border-color .2s ease;
}
/* the slider turns these solid white on hover, which hid the white arrow; keep them glass */
.nxs.xsc-scene button.nxs__control:hover,
.nxs.xsc-scene button.nxs__control:focus-visible,
.nxs.xsc-scene button.nxs__control:active {
	color: #fff;
	border-color: rgba(255, 255, 255, .6);
	background: rgba(255, 255, 255, .22);
}
.nxs.xsc-scene button.nxs__control:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* the slider's own ribbon/halo layers are replaced by the night scene */
.nxs.xsc-scene::before,
.nxs.xsc-scene::after { display: none !important; }
.nxs.xsc-scene .nxs__scene-backdrop { opacity: .16; }
.xsc-drift {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 46px;
	background: var(--xsc-drift) center bottom / 100% 100% no-repeat;
	pointer-events: none;
	z-index: 1;
}

/* string lights */
.xsc-lights {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 60px;
	z-index: 4;
	pointer-events: none;
	color: rgba(255, 255, 255, .26);
}
.nxs .xsc-lights svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; overflow: visible; }
.xsc-bulb {
	position: absolute;
	width: 9px;
	height: 14px;
	margin: 1px 0 0 -4.5px;
	border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%;
	background: var(--xsc-bulb, #f5c35b);
	box-shadow: 0 0 10px 2px var(--xsc-glow, rgba(245, 195, 91, .65));
	animation: xsc-twinkle 2.4s ease-in-out infinite;
}
.xsc-bulb::before {
	content: "";
	position: absolute;
	top: -3px;
	left: 2px;
	width: 5px;
	height: 4px;
	border-radius: 1px;
	background: #3b3b3b;
}
.xsc-bulb--gold { --xsc-bulb: #ffd36b; --xsc-glow: rgba(255, 211, 107, .7); }
.xsc-bulb--red { --xsc-bulb: #ff3b45; --xsc-glow: rgba(255, 59, 69, .65); }
.xsc-bulb--orange { --xsc-bulb: #ff8a2a; --xsc-glow: rgba(255, 138, 42, .7); }
.xsc-bulb--white { --xsc-bulb: #fff6dc; --xsc-glow: rgba(255, 246, 220, .75); }
.xsc-bulb--green { --xsc-bulb: #5be38f; --xsc-glow: rgba(91, 227, 143, .6); }
@keyframes xsc-twinkle {
	0%, 100% { opacity: 1; filter: brightness(1.05); }
	50% { opacity: .55; filter: brightness(.8); }
}

/* countdown */
.xsc-countdown {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 4px !important;
	padding: 6px 13px 6px 10px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}
.xsc-countdown__star { width: 15px; height: 15px; background: var(--xsc-star) center / contain no-repeat; }

/* savings card wrapped like a gift */
.nxs.xsc-scene .nxs__card {
	--nxs-ink: #151820 !important;
	--nxs-muted: #525a68 !important;
	position: relative;
	overflow: visible;
	color: #151820;
}
/* the card is left unclipped for the bow, so its parts keep the card's rounded corners themselves */
.nxs.xsc-scene .nxs__saving-ticket {
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
}
.nxs.xsc-scene .nxs__card-inner {
	/* the slider sets 16px 16px 0 0 here and the panel overhangs the card a little */
	border-bottom-left-radius: 24px !important;
	border-bottom-right-radius: 24px !important;
}
.nxs.xsc-scene .nxs__saving-ticket {
	background:
		linear-gradient(90deg, transparent 83%, rgba(255, 216, 128, .95) 83%, rgba(255, 216, 128, .95) 88%, transparent 88%),
		linear-gradient(135deg, #b5121b 0%, #e2341f 45%, #ff6900 100%) !important;
}
.nxs.xsc-scene .nxs__saving-ticket::before { opacity: 0; }
.xsc-bow {
	position: absolute;
	top: -17px;
	left: 85.5%;
	width: 62px;
	height: 40px;
	transform: translateX(-50%) scale(0);
	z-index: 5;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3));
	animation: xsc-bow-pop .6s .25s cubic-bezier(.2, 1.4, .4, 1) forwards;
	pointer-events: none;
}
.nxs .xsc-bow svg { display: block; width: 100% !important; height: 100% !important; max-width: none !important; }
@keyframes xsc-bow-pop { to { transform: translateX(-50%) scale(1); } }

/* hero snow */
.xsc-snow {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

/* ---------- Christmas page ---------- */
body.xsc-page,
body.xsc-page .website-wrapper,
body.xsc-page .main-page-wrapper {
	background-color: var(--xsc-pine-deep) !important;
}
body.xsc-page .main-page-wrapper {
	background:
		radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.6px) 0 0 / 26px 26px,
		radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.6px) 13px 13px / 26px 26px,
		radial-gradient(70% 40% at 10% 10%, rgba(255, 105, 0, .08), transparent 70%),
		radial-gradient(60% 40% at 95% 45%, rgba(214, 32, 42, .08), transparent 70%),
		linear-gradient(180deg, #0b2a20 0%, #0a251d 55%, #071b15 100%) !important;
}
body.xsc-page #main-content { padding-bottom: 0 !important; }
body.xsc-page .wd-prefooter { display: none !important; }
.xsc-page-snow {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 0;
}
body.xsc-page .xiaomi-hub {
	position: relative;
	z-index: 1;
	color: #fff;
	background: transparent !important;
}
body.xsc-page .xiaomi-hub > .xiaomi-hub-section {
	background: transparent !important;
	border: 0 !important;
}

/* headings */
/* the runtime paints mosaic headings black with a [data-hub-section-type] rule, so match its weight */
body.xsc-page .xiaomi-hub > .xiaomi-hub-section[data-hub-section-type] .xiaomi-hub-section__heading h2,
body.xsc-page .xiaomi-hub-section__heading h2 {
	color: #fff !important;
}
body.xsc-page .xiaomi-hub-section__heading h2::before {
	content: "";
	display: inline-block;
	width: .8em;
	height: .8em;
	margin-right: .35em;
	vertical-align: -.04em;
	background: var(--xsc-star) center / contain no-repeat;
}
body.xsc-page .xiaomi-hub > .xiaomi-hub-section[data-hub-section-type] .xiaomi-hub-section__heading p,
body.xsc-page .xiaomi-hub-section__heading p { color: var(--xsc-mist) !important; }

/* category rail: hanging baubles */
body.xsc-page .xiaomi-home-category-rail { padding-top: 26px; }
body.xsc-page .xiaomi-home-category-rail > a {
	position: relative;
	color: #fff !important;
	transform-origin: 50% -26px;
	transition: transform .5s ease;
}
body.xsc-page .xiaomi-home-category-rail > a:nth-child(even) { margin-top: 14px; }
body.xsc-page .xiaomi-home-category-rail > a::before {
	content: "";
	position: absolute;
	top: -26px;
	left: 50%;
	width: 1px;
	height: 26px;
	background: linear-gradient(rgba(245, 195, 91, 0), rgba(245, 195, 91, .8));
}
body.xsc-page .xiaomi-home-category-rail > a:nth-child(even)::before { top: -40px; height: 40px; }
body.xsc-page .xiaomi-home-category-rail > a::after {
	content: "";
	position: absolute;
	top: -5px;
	left: 50%;
	width: 16px;
	height: 9px;
	margin-left: -8px;
	border-radius: 3px 3px 2px 2px;
	background: linear-gradient(90deg, #a87a22, #f5d27a 45%, #b98a2c);
	z-index: 2;
}
body.xsc-page .xiaomi-home-category-rail__media {
	border-radius: 50% !important;
	background: radial-gradient(circle at 34% 28%, #fff 0 38%, #eef4f1 70%, #dfe9e4 100%) !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 -6px 14px rgba(0, 0, 0, .06);
}
body.xsc-page .xiaomi-home-category-rail strong { color: #fff !important; }
body.xsc-page .xiaomi-home-category-rail > a:hover { animation: xsc-swing 1.1s ease-in-out; }
@keyframes xsc-swing {
	0% { transform: rotate(0); }
	25% { transform: rotate(4deg); }
	55% { transform: rotate(-3deg); }
	80% { transform: rotate(1.5deg); }
	100% { transform: rotate(0); }
}

/* product cards: white, with snow settled on top */
body.xsc-page .xiaomi-hub-card {
	position: relative;
	overflow: visible !important;
	border: 0 !important;
	border-radius: 18px !important;
	color: #191919 !important;
	background: #fff !important;
	box-shadow: 0 16px 38px rgba(0, 0, 0, .32);
}
body.xsc-page .xiaomi-hub-card::before {
	content: "";
	position: absolute;
	top: -9px;
	left: 6px;
	right: 6px;
	height: 20px;
	background: var(--xsc-cap) center top / 100% 100% no-repeat;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12));
	z-index: 3;
	pointer-events: none;
}
body.xsc-page .xiaomi-hub-card__media,
body.xsc-page .xiaomi-hub-card .ndovu-collection-stage { border-radius: 18px 18px 0 0; }
body.xsc-page .xiaomi-hub-card__media { overflow: hidden; background: #fff !important; }
body.xsc-page .xiaomi-hub-card__body {
	border-radius: 0 0 18px 18px;
	color: #191919 !important;
	background: #fff !important;
}
body.xsc-page .xiaomi-hub-card h3,
body.xsc-page .xiaomi-hub-card h3 a,
body.xsc-page .xiaomi-hub-card .ndovu-card-title a { color: #191919 !important; }
body.xsc-page .xiaomi-hub-card__brand { color: var(--xsc-orange) !important; }
body.xsc-page .xiaomi-hub-card__price,
body.xsc-page .xiaomi-hub-card__price ins { color: var(--xsc-orange) !important; }
body.xsc-page .xiaomi-hub-card__price del { color: #8a8a8a !important; }

/* a gift bow on the gift-guide sections */
body.xsc-page :is(#featured-deals, #gifts-under-5000, #gifts-under-15000) .xiaomi-hub-card::after {
	content: "";
	position: absolute;
	top: -16px;
	right: 18px;
	width: 44px;
	height: 28px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath d='M32 20C24 6 8 2 6 10c-2 8 12 12 26 10z' fill='%23d6202a'/%3E%3Cpath d='M32 20C40 6 56 2 58 10c2 8-12 12-26 10z' fill='%23d6202a'/%3E%3Cpath d='M32 20C26 10 14 7 12 11c-1 4 9 8 20 9zM32 20c6-10 18-13 20-9 1 4-9 8-20 9z' fill='%23ff5a5f' opacity='.55'/%3E%3Cpath d='M30 21l-9 18 6-2 3 3 2-19zM34 21l9 18-6-2-3 3-2-19z' fill='%23b5121b'/%3E%3Crect x='27' y='15' width='10' height='10' rx='4' fill='%23f2333c'/%3E%3C/svg%3E") center / contain no-repeat;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25));
	z-index: 4;
	pointer-events: none;
}

/* tabs and buttons on green */
body.xsc-page .xiaomi-home-tabs button {
	border-color: rgba(255, 255, 255, .28) !important;
}
body.xsc-page .xiaomi-hub-button--outline {
	border-color: rgba(255, 255, 255, .4) !important;
	color: #fff !important;
	background: transparent !important;
}
body.xsc-page .xiaomi-hub-card .xiaomi-hub-button--outline {
	border-color: #d4d4d4 !important;
	color: #191919 !important;
}

/* stores and guide */
body.xsc-page .xiaomi-home-store {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .12) !important;
	border-radius: 20px;
	color: #fff;
	background: rgba(19, 66, 50, .82) !important;
}
body.xsc-page .xiaomi-home-store__details,
body.xsc-page .xiaomi-home-store h3,
body.xsc-page .xiaomi-home-store address,
body.xsc-page .xiaomi-home-store__hours { color: #fff !important; background: transparent !important; }
body.xsc-page .xiaomi-home-store__contact a,
body.xsc-page .xiaomi-location-guide__secondary { color: #ffb36b !important; }
body.xsc-page .xiaomi-location-guide__photo { background: transparent !important; }
body.xsc-page .xiaomi-hub-editorial {
	border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(19, 66, 50, .72) !important;
}
body.xsc-page .xiaomi-hub-editorial,
body.xsc-page .xiaomi-hub-editorial__body,
body.xsc-page .xiaomi-hub-editorial__body p { color: var(--xsc-mist) !important; }
body.xsc-page .xiaomi-hub-editorial h2 { color: #fff !important; }

@media (max-width: 767px) {
	.xsc-drift { height: 30px; }
	.nxs.xsc-scene .nxs__copy { padding-top: 30px; }
	/* phones: the slider's pause/prev/next sit on the product photo; move them under the card */
	.nxs.xsc-scene .nxs__stage { padding-bottom: 60px; }
	.nxs.xsc-scene .nxs__controls {
		top: auto !important;
		right: auto !important;
		bottom: 6px !important;
		left: 50% !important;
		transform: translateX(-50%);
	}
	.xsc-bow { width: 50px; height: 32px; top: -14px; }
	body.xsc-page .xiaomi-home-category-rail > a:nth-child(even) { margin-top: 0; }
	body.xsc-page .xiaomi-home-category-rail > a:nth-child(even)::before { top: -26px; height: 26px; }
	body.xsc-page :is(#featured-deals, #gifts-under-5000, #gifts-under-15000) .xiaomi-hub-card::after { width: 34px; height: 22px; top: -12px; right: 10px; }
	.xsc-countdown { font-size: 12px; margin-top: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.xsc-bulb, .xsc-bow, body.xsc-page .xiaomi-home-category-rail > a:hover { animation: none; }
	.xsc-bow { transform: translateX(-50%); }
}
