/* ---------------------------------------------------------------------
   Menu item styling (set per item in Appearance > Menus).
   Text effects (.sr-fx--*), pill badges (.sr-pill--*) and colours.
   Works in the header, the mobile menu and the footer.
   ------------------------------------------------------------------- */

/* ---- Text effects --------------------------------------------------- */
.sr-mi__text { display: inline-block; }
.sr-fx { display: inline-block; }

/* Shimmer: solid colour with a soft light sweep, same loop as the sale prices. */
.sr-fx--shimmer { color: var(--sr-mi-c, #d6301f); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.sr-fx--shimmer {
		background-image: linear-gradient(105deg,
			var(--sr-mi-c, #d6301f) 0%, var(--sr-mi-c, #d6301f) 42%,
			color-mix(in srgb, var(--sr-mi-c, #d6301f) 40%, #ffffff) 50%,
			var(--sr-mi-c, #d6301f) 58%, var(--sr-mi-c, #d6301f) 100%);
		background-size: 200% 100%;
		background-repeat: repeat-x;
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		animation: sr-mi-shimmer 3.6s linear infinite;
	}
}

/* Gradient flow: the colour drifts into yellow and back. */
.sr-fx--gradient { color: var(--sr-mi-c, #d6301f); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.sr-fx--gradient {
		background-image: linear-gradient(90deg, var(--sr-mi-c, #d6301f) 0%, #ffcf3a 50%, var(--sr-mi-c, #d6301f) 100%);
		background-size: 200% 100%;
		background-repeat: repeat-x;
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		animation: sr-mi-shimmer 4.5s linear infinite;
	}
}

/* Soft pulse and glow keep the text colour (default, or the colour you chose). */
.sr-fx--pulse { animation: sr-mi-pulse 1.9s ease-in-out infinite; }
.sr-fx--glow { animation: sr-mi-glow 2.2s ease-in-out infinite; }

@keyframes sr-mi-shimmer { from { background-position: 0 0; } to { background-position: -200% 0; } }
@keyframes sr-mi-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.04); } }
@keyframes sr-mi-glow {
	0%, 100% { text-shadow: 0 0 0 rgba(0, 0, 0, 0); }
	50% { text-shadow: 0 0 10px currentColor; }
}

/* ---- Pill badge ------------------------------------------------------ */
.sr-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 8px;
	padding: 3px 9px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	vertical-align: middle;
	-webkit-text-fill-color: currentColor;
}
.sr-pill--yellow { background-color: #ffcf3a; border-color: #ffcf3a; color: #111; }
.sr-pill--red { background-color: #d6301f; border-color: #d6301f; color: #fff; }
.sr-pill--dark { background-color: #111; border-color: #111; color: #ffcf3a; }
.sr-pill--green { background-color: #1f9d55; border-color: #1f9d55; color: #fff; }
.sr-pill--blue { background-color: #1e73be; border-color: #1e73be; color: #fff; }
.sr-pill--outline { background-color: transparent; border-color: currentColor; color: inherit; }

/* The "live" dot: a small dot with a ring that pulses outward. */
.sr-pill__dot {
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	animation: sr-mi-dot 1.6s ease-out infinite;
}
@keyframes sr-mi-dot {
	0% { box-shadow: 0 0 0 0 currentColor; }
	70% { box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.sr-pill--pulse { animation: sr-mi-pillpulse 1.9s ease-in-out infinite; }
@keyframes sr-mi-pillpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

.sr-pill--shimmer {
	background-image: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 70%);
	background-size: 250% 100%;
	background-repeat: no-repeat;
	animation: sr-mi-pillshine 2.8s ease-in-out infinite;
}
@keyframes sr-mi-pillshine { from { background-position: 150% 0; } to { background-position: -150% 0; } }

/* ---- Header menu overflow: "More" dropdown -------------------------- */
/* Hidden until the script marks the page compact (850px to 1180px, or whenever the items would wrap). */
#header .header-nav-main .sr-more { position: relative; }
html:not(.sr-nav-compact) #header .header-nav-main .sr-more { display: none !important; }
@media (min-width: 850px) {
	html.sr-nav-compact #header .header-nav-main.nav-left { flex-wrap: nowrap; }
	html.sr-nav-compact #header .header-nav-main .sr-more { display: flex !important; }
	html.sr-nav-compact #header .header-nav-main .sr-more-src { display: none !important; }
}
#header .sr-more > a .sr-more-chev { margin-left: 6px; transition: transform .2s; }
#header .sr-more.is-open > a .sr-more-chev { transform: rotate(180deg); }
#header .sr-more > .sr-more-panel {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 60;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility 0s linear .18s;
}
#header .sr-more:hover > .sr-more-panel,
#header .sr-more:focus-within > .sr-more-panel,
#header .sr-more.is-open > .sr-more-panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .18s, transform .18s;
}
#header .sr-more-panel li { display: block; margin: 0; padding: 0; }
#header .sr-more-panel li > a {
	display: flex;
	align-items: center;
	height: auto;
	padding: 12px 16px;
	border-radius: 12px;
	color: #111;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	transition: background .15s;
}
#header .sr-more-panel li > a:hover { background: #f4f2ef; }
#header .sr-more-panel li.current-menu-item > a { font-weight: 700; }

/* Keep a pill next to the label on one line inside header menus. */
.nav > li > a .sr-mi__text + .sr-pill,
.nav > li > a .sr-pill { flex: none; }

@media (prefers-reduced-motion: reduce) {
	.sr-fx--shimmer, .sr-fx--gradient { animation: none; background-image: none; -webkit-text-fill-color: currentColor; }
	.sr-fx--pulse, .sr-fx--glow, .sr-pill--pulse, .sr-pill--shimmer, .sr-pill__dot { animation: none; }
}
