/* ==========================================================================
   Shoe Hero
   Every selector is prefixed with .shoe-hero so theme / Elementor kit styles
   for h1, p, a and img don't leak in.
   ========================================================================== */

.shoe-hero {
	--sh-accent: #e8862a;
	--sh-ink: #111111;
	--sh-muted: #5b5b5b;
	--sh-line: #ececec;
	--sh-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--sh-ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
	--sh-float-time: 4.2s;
	--sh-settle: 1.6s; /* when the shoe has landed and starts hovering */

	/* Header + hero + ticker fit one screen. --sh-offset (site header height)
	   comes from the shortcode's header_offset attribute. */
	--sh-offset: 100px;
	--sh-ticker-h: 58px;
	--sh-h: clamp(440px, calc(100svh - var(--sh-offset) - var(--sh-ticker-h)), 720px);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	color: var(--sh-ink);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.shoe-hero *,
.shoe-hero *::before,
.shoe-hero *::after {
	box-sizing: border-box;
}

.shoe-hero .sh-inner {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(16px, 3vw, 48px);
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	height: var(--sh-h);
	padding: clamp(20px, 4vh, 48px) clamp(20px, 5vw, 64px);
}

/* Themes love underlining links; never here. */
.shoe-hero a,
.shoe-hero a:hover,
.shoe-hero a:focus,
.shoe-hero a:visited,
.shoe-hero a * {
	text-decoration: none !important;
	border-bottom: 0;
	background-image: none;
}

/* ---------- Copy ---------- */

.shoe-hero .sh-copy {
	position: relative;
	z-index: 2;
}

.shoe-hero .sh-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 16px 8px 12px;
	border: 1px solid var(--sh-line);
	border-radius: 999px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--sh-ink);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.6s ease 0.1s, transform 0.8s var(--sh-ease-out) 0.1s;
}

.shoe-hero .sh-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sh-accent);
}

.shoe-hero .sh-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--sh-accent);
	animation: sh-ping 1.8s ease-out infinite;
}

.shoe-hero .sh-title {
	margin: 0 0 0.3em;
	padding: 0;
	font-family: "Bebas Neue", Impact, sans-serif;
	/* Scales with the hero height too, so short screens still fit. */
	font-size: clamp(56px, min(8.4vw, calc(var(--sh-h) * 0.18)), 150px);
	font-weight: 400;
	line-height: 0.88;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--sh-ink);
}

/* Each line is a mask; letters rise up into it. */
.shoe-hero .sh-line {
	display: block;
	overflow: hidden;
	padding-top: 0.04em;
	margin-top: -0.04em;
}

.shoe-hero .sh-line--accent {
	color: var(--sh-accent);
}

.shoe-hero .sh-word {
	display: inline-block;
	white-space: nowrap;
}

.shoe-hero .sh-char {
	display: inline-block;
	transform: translateY(105%) skewY(8deg);
	transition: transform 0.9s var(--sh-ease-out);
	transition-delay: calc(0.25s + var(--i) * 0.03s);
}

.shoe-hero.is-in .sh-char {
	transform: translateY(0) skewY(0);
}

.shoe-hero .sh-sub {
	max-width: 30em;
	margin: 0 0 clamp(28px, 3vw, 40px);
	font-size: clamp(16px, 1.25vw, 18px);
	line-height: 1.6;
	color: var(--sh-muted);
}

.shoe-hero .sh-sub,
.shoe-hero .sh-actions {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s ease, transform 0.9s var(--sh-ease-out);
	transition-delay: var(--sh-after-title, 0.8s);
}

.shoe-hero .sh-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
	transition-delay: calc(var(--sh-after-title, 0.8s) + 0.12s);
}

.shoe-hero.is-in .sh-eyebrow,
.shoe-hero.is-in .sh-sub,
.shoe-hero.is-in .sh-actions {
	opacity: 1;
	transform: none;
}

/* Button with an accent fill that sweeps in on hover. */
.shoe-hero .sh-btn,
.shoe-hero .sh-btn:visited {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 18px 30px;
	border-radius: 999px;
	background: var(--sh-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s var(--sh-ease-out), box-shadow 0.3s ease;
}

.shoe-hero .sh-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--sh-accent);
	border-radius: inherit;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s var(--sh-ease-out);
}

.shoe-hero .sh-btn {
	z-index: 0;
}

.shoe-hero .sh-btn svg {
	transition: transform 0.3s var(--sh-ease-out);
}

.shoe-hero .sh-btn:hover,
.shoe-hero .sh-btn:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 18px 34px -14px var(--sh-accent);
}

.shoe-hero .sh-btn:hover::before,
.shoe-hero .sh-btn:focus-visible::before {
	transform: scaleX(1);
}

.shoe-hero .sh-btn:hover svg,
.shoe-hero .sh-btn:focus-visible svg {
	transform: translateX(4px);
}

.shoe-hero .sh-btn:focus-visible,
.shoe-hero .sh-shoe-link:focus-visible {
	outline: 2px solid var(--sh-accent);
	outline-offset: 4px;
}

.shoe-hero .sh-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0;
	font-family: "Bebas Neue", Impact, sans-serif;
	line-height: 1;
}

.shoe-hero .sh-price strong {
	font-size: 44px;
	font-weight: 400;
	color: var(--sh-ink);
}

.shoe-hero .sh-price s {
	font-size: 26px;
	color: #a3a3a3;
	text-decoration-thickness: 2px;
}

/* ---------- Shoe ---------- */

.shoe-hero .sh-visual {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1.12;
	/* Never taller than the hero itself. */
	width: min(100%, calc((var(--sh-h) - 40px) * 1.12));
	justify-self: end;
}

/* Dot grid behind the shoe. It fades out toward the edges and drifts sideways,
   so the shoe looks like it's gliding through the air. */
.shoe-hero .sh-grid {
	--sh-grid-gap: 22px;
	position: absolute;
	inset: -8% -16% -8% -12%;
	z-index: 0;
	background-image: radial-gradient(
		circle,
		color-mix(in srgb, var(--sh-accent) 55%, #b5b5b5) 1.9px,
		transparent 2.4px
	);
	background-size: var(--sh-grid-gap) var(--sh-grid-gap);
	-webkit-mask-image: radial-gradient(ellipse 58% 54% at 52% 52%, #000 30%, transparent 78%);
	mask-image: radial-gradient(ellipse 58% 54% at 52% 52%, #000 30%, transparent 78%);
	opacity: 0;
	transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px), 0);
	transition: opacity 1.2s ease 0.4s;
	animation: sh-drift 2.6s linear infinite;
	pointer-events: none;
}

.shoe-hero.is-in .sh-grid {
	opacity: 1;
}

.shoe-hero .sh-shoe-link {
	position: relative;
	z-index: 2;
	display: block;
	width: 104%;
	margin-left: -4%;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/* 1. Entrance: the shoe flies in from the right and settles at a lift-off angle. */
.shoe-hero .sh-enter {
	display: block;
	opacity: 0;
	transform: translate3d(70%, -6%, 0) rotate(22deg);
	transition: transform 1.4s var(--sh-ease-out) 0.3s, opacity 0.5s ease 0.3s;
}

.shoe-hero.is-in .sh-enter {
	opacity: 1;
	transform: translate3d(0, 0, 0) rotate(-9deg);
}

/* 2. Hover in the air forever. */
.shoe-hero .sh-float {
	display: block;
	animation: sh-float var(--sh-float-time) ease-in-out var(--sh-settle) infinite;
}

/* 3. Follow the mouse a little, and grow when hovered. */
.shoe-hero .sh-tilt {
	display: block;
	transform: translate3d(calc(var(--mx, 0) * 22px), calc(var(--my, 0) * 14px), 0)
		rotate(calc(var(--mx, 0) * -4deg));
	transition: scale 0.5s var(--sh-ease-back), rotate 0.5s var(--sh-ease-back);
}

.shoe-hero .sh-shoe-link:hover .sh-tilt,
.shoe-hero .sh-shoe-link:focus-visible .sh-tilt {
	scale: 1.05;
	rotate: -3deg;
}

.shoe-hero img.sh-shoe {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	filter: drop-shadow(0 28px 26px rgba(0, 0, 0, 0.14));
	user-select: none;
	-webkit-user-drag: none;
}

/* "View product" chip that appears when hovering the shoe. */
.shoe-hero .sh-view {
	position: absolute;
	top: 4%;
	right: 10%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--sh-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(8px) scale(0.92);
	transition: opacity 0.3s ease, transform 0.4s var(--sh-ease-back);
	pointer-events: none;
}

.shoe-hero .sh-shoe-link:hover .sh-view,
.shoe-hero .sh-shoe-link:focus-visible .sh-view {
	opacity: 1;
	transform: none;
}

/* Ground shadow that breathes in sync with the float. */
.shoe-hero .sh-shadow {
	position: absolute;
	z-index: 1;
	bottom: 13%;
	left: 22%;
	width: 62%;
	height: 7%;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0) 70%);
	opacity: 0;
	transition: opacity 1s ease 1s;
	animation: sh-shadow var(--sh-float-time) ease-in-out var(--sh-settle) infinite;
}

.shoe-hero.is-in .sh-shadow {
	opacity: 1;
}

/* Speed streaks behind the shoe as it arrives. */
.shoe-hero .sh-streaks {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.shoe-hero .sh-streaks i {
	position: absolute;
	right: 0;
	height: 4px;
	border-radius: 4px;
	background: var(--sh-accent);
	opacity: 0;
	transform-origin: right center;
}

.shoe-hero .sh-streaks i:nth-child(1) { top: 34%; width: 34%; }
.shoe-hero .sh-streaks i:nth-child(2) { top: 46%; width: 22%; right: 6%; background: var(--sh-ink); }
.shoe-hero .sh-streaks i:nth-child(3) { top: 58%; width: 28%; right: 2%; }

.shoe-hero.is-in .sh-streaks i {
	animation: sh-streak 1.1s var(--sh-ease-out) forwards;
}

.shoe-hero.is-in .sh-streaks i:nth-child(1) { animation-delay: 0.45s; }
.shoe-hero.is-in .sh-streaks i:nth-child(2) { animation-delay: 0.55s; }
.shoe-hero.is-in .sh-streaks i:nth-child(3) { animation-delay: 0.65s; }

/* Discount sticker. */
.shoe-hero .sh-badge {
	position: absolute;
	top: 8%;
	left: 4%;
	z-index: 3;
	display: grid;
	place-content: center;
	width: clamp(84px, 8vw, 112px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--sh-ink);
	color: #fff;
	text-align: center;
	font-family: "Bebas Neue", Impact, sans-serif;
	line-height: 0.9;
	transform: scale(0) rotate(-120deg);
	transition: transform 0.9s var(--sh-ease-back) 1.3s;
}

.shoe-hero.is-in .sh-badge {
	transform: scale(1) rotate(-12deg);
}

.shoe-hero .sh-badge::before {
	content: "";
	position: absolute;
	inset: -7px;
	border: 2px dashed var(--sh-accent);
	border-radius: 50%;
	animation: sh-spin 14s linear infinite;
}

.shoe-hero .sh-badge-off {
	font-size: clamp(30px, 3vw, 42px);
	color: #fff;
}

.shoe-hero .sh-badge-label {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* ---------- Ticker ---------- */

.shoe-hero .sh-ticker {
	position: relative;
	z-index: 2;
	overflow: hidden;
	display: flex;
	align-items: center;
	height: var(--sh-ticker-h);
	padding-top: 2px; /* Bebas sits a touch high */
	background: var(--sh-ink);
	color: #fff;
	font-family: "Bebas Neue", Impact, sans-serif;
	font-size: clamp(22px, 2.2vw, 30px);
	letter-spacing: 0.06em;
	line-height: 1;
	white-space: nowrap;
	transform: translateY(100%);
	transition: transform 0.9s var(--sh-ease-out) 0.9s;
}

.shoe-hero.is-in .sh-ticker {
	transform: none;
}

.shoe-hero .sh-ticker-track {
	display: flex;
	width: max-content;
	animation: sh-marquee var(--sh-ticker-time, 30s) linear infinite;
}

.shoe-hero .sh-ticker-group,
.shoe-hero .sh-ticker-set {
	display: flex;
	flex-shrink: 0;
}

.shoe-hero .sh-ticker span {
	display: inline-flex;
	align-items: center;
	gap: 28px;
	padding-right: 28px;
}

.shoe-hero .sh-ticker b {
	font-size: 0.7em;
	font-weight: 400;
	color: var(--sh-accent);
}

/* ---------- Keyframes ---------- */

@keyframes sh-float {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50%      { transform: translateY(-24px) rotate(1.6deg); }
}

@keyframes sh-shadow {
	0%, 100% { transform: scale(1);    filter: blur(0); }
	50%      { transform: scale(0.78); filter: blur(2px); opacity: 0.6; }
}

@keyframes sh-streak {
	0%   { opacity: 0; transform: translateX(30%) scaleX(0); }
	35%  { opacity: 1; transform: translateX(0) scaleX(1); }
	100% { opacity: 0; transform: translateX(-60%) scaleX(0); }
}

@keyframes sh-spin {
	to { transform: rotate(360deg); }
}

@keyframes sh-drift {
	to { background-position: var(--sh-grid-gap) 0; }
}

@keyframes sh-ping {
	0%   { transform: scale(1);   opacity: 0.7; }
	100% { transform: scale(3.2); opacity: 0; }
}

@keyframes sh-marquee {
	to { transform: translateX(-50%); }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.shoe-hero .sh-inner {
		grid-template-columns: 1fr;
		gap: 0;
		height: auto;
		padding-top: 24px;
		padding-bottom: 40px;
	}

	.shoe-hero .sh-title {
		font-size: clamp(56px, 16vw, 104px);
	}

	/* Shoe first on phones so the fly-in is the first thing you see. */
	.shoe-hero .sh-visual {
		order: -1;
		width: 100%;
		max-width: 560px;
		margin: 0 auto;
	}

	.shoe-hero .sh-shoe-link {
		width: 100%;
		margin-left: 0;
	}

	.shoe-hero .sh-badge {
		top: 10%;
		left: 12px;
	}

}

/* No hover on touch screens: keep the "View product" hint visible. */
@media (hover: none) {
	.shoe-hero.is-in .sh-view {
		opacity: 1;
		transform: none;
		transition-delay: 1.8s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shoe-hero *,
	.shoe-hero *::before,
	.shoe-hero *::after {
		animation: none !important;
		transition: none !important;
	}
}
