/* ==========================================================================
   Mobile polish — header, bottom bar, type, buttons, motion (0.6.6.1)

   Everything here is scoped to <=767px except the reduced-motion block and the
   shared button easing, so desktop is untouched. Motion is opacity/transform
   only, which stays on the compositor.
   ========================================================================== */

@media (max-width: 767px) {

	/* -------------------------------------------------------------- header */

	/*
	 * The header read heavy because it kept a desktop-sized block even when
	 * empty. Tighten the vertical rhythm, let the logo breathe, and only show
	 * a shadow once the page has actually scrolled.
	 */
	.wt-header__inner {
		min-height: 3.9rem;
		padding-block: .45rem;
	}

	.wt-header__logo img,
	.wt-header__logo--core img,
	.wt-header__logo--bundled img {
		max-height: 2.7rem;
	}

	.wt-header {
		transition: box-shadow .22s ease, background-color .22s ease;
	}

	.wt-header.is-stuck {
		box-shadow: 0 6px 20px rgba(16, 30, 45, .13);
		background: rgba(255, 255, 255, .97);
		backdrop-filter: saturate(180%) blur(10px);
	}

	.wt-menu-toggle {
		height: 42px;
		min-height: 42px;
		padding-inline: .75rem;
		font-size: .78rem;
	}

	.wt-menu-toggle .wt-icon {
		width: 18px;
		height: 18px;
	}

	/* --------------------------------------------------------- bottom bar */

	.wt-mobile-bar {
		padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid rgba(255, 255, 255, .08);
		box-shadow: 0 -8px 26px rgba(6, 14, 22, .3);
		backdrop-filter: saturate(160%) blur(12px);
	}

	.wt-mobile-bar__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: .18rem;
		min-height: 52px;
		padding: .35rem .3rem;
		border-radius: 12px;
		font-size: .66rem;
		font-weight: 800;
		letter-spacing: .02em;
		line-height: 1;
		transition: transform .16s ease, background-color .18s ease;
	}

	.wt-mobile-bar__item .wt-icon {
		width: 21px;
		height: 21px;
		transition: transform .18s ease;
	}

	.wt-mobile-bar__item:active {
		transform: scale(.94);
		background: rgba(255, 255, 255, .09);
	}

	.wt-mobile-bar__item:active .wt-icon {
		transform: translateY(-1px);
	}

	/* The accent action earns a little elevation rather than just colour. */
	.wt-mobile-bar__item--accent {
		box-shadow: 0 4px 14px rgba(214, 83, 46, .34);
	}

	.wt-mobile-bar__item:focus-visible {
		outline: 2px solid #fff;
		outline-offset: 2px;
	}

	/* -------------------------------------------------------- typography */

	.wt-tire-card__brand {
		font-size: .62rem;
		letter-spacing: .08em;
		color: #7c8996;
	}

	/* Price is the decision point, so it outranks the name visually. */
	.wt-tire-card__price {
		color: #142433;
		font-weight: 900;
		letter-spacing: -.01em;
	}

	.wt-tire-card__size {
		letter-spacing: -.005em;
	}

	.wt-page-hero__title,
	.wt-hero__title {
		line-height: 1.14;
		letter-spacing: -.015em;
		text-wrap: balance;
	}

	.wt-page-hero__lead,
	.wt-hero__lead {
		font-size: .95rem;
		line-height: 1.55;
	}

	/* ------------------------------------------------------------ buttons */

	.wt-btn {
		border-radius: 11px;
		transition: transform .14s ease, box-shadow .2s ease, background-color .18s ease;
	}

	.wt-btn:active {
		transform: scale(.975);
	}

	/* ------------------------------------------------------------- images */

	.wt-tire-card__media img {
		transition: transform .45s cubic-bezier(.22, .61, .36, 1);
		will-change: transform;
	}

	.wt-tire-card:active .wt-tire-card__media img {
		transform: scale(1.04);
	}

	/* -------------------------------------------------------- filter drawer */

	.wt-shop-filters {
		transition: transform .3s cubic-bezier(.22, .61, .36, 1),
		            visibility .3s cubic-bezier(.22, .61, .36, 1);
	}
}

/* Motion is opt-out everywhere, not just in the catalog. */
@media (prefers-reduced-motion: reduce) {
	.wt-header,
	.wt-mobile-bar__item,
	.wt-mobile-bar__item .wt-icon,
	.wt-btn,
	.wt-tire-card__media img,
	.wt-shop-filters {
		transition: none !important;
	}

	.wt-tire-card:active .wt-tire-card__media img {
		transform: none;
	}
}

/* Vehicle finder: inline guidance + reset (0.6.6.6) */
.wt-finder__inline-note {
	margin: .75rem 0 0;
	padding: .7rem .85rem;
	border-left: 3px solid #d6532e;
	border-radius: 0 10px 10px 0;
	background: #fdf3ef;
	color: #7a3620;
	font-size: .85rem;
	line-height: 1.5;
}

.wt-finder__reset-row { margin: .6rem 0 0; }

.wt-finder__reset {
	padding: 0;
	border: 0;
	background: none;
	color: #5d6b78;
	font-size: .8rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.wt-finder__reset:hover { color: #d6532e; }

/* Administrator demo banner (0.6.6.7) */
.wt-fitment-demo-banner {
	position: relative;
	z-index: 200;
	padding: .55rem 1rem;
	background: #7a3620;
	color: #fff;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .03em;
	text-align: center;
}
