/* ===== Mobile fixes (2026-11-21). Desktop is untouched: every rule sits in a max-width query. ===== */

/* Contact (phone) icon: mobile header only. */
.contact-btn { display: none; }

@media (max-width: 960px) {
	.site-head .contact-btn { display: grid; }

	/* Shop filter drawer. The desktop rail has align-self:start, which modern browsers also apply to a
	   fixed box, so the drawer shrank to its content height and could not scroll. Stretch it to the
	   viewport and let it scroll on its own. */
	.filters {
		align-self: stretch;
		height: 100vh; height: 100dvh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		touch-action: pan-y;
		padding-bottom: calc(24px + env(safe-area-inset-bottom));
	}
	.filters__close { position: sticky; top: 0; margin: -50px 0 14px auto; z-index: 2; }
	html.filters-lock, html.filters-lock body { overflow: hidden; }
	html.filters-lock body::after { content: ''; position: fixed; inset: 0; z-index: 79; background: rgba(0, 0, 0, .35); }
}

@media (max-width: 720px) {
	/* Header moves with transform only (see main.js place()); keep it on its own layer and use a
	   lighter blur so scrolling stays smooth on phones. */
	.site-head { will-change: transform; transition: background .35s, box-shadow .35s, border-color .35s; }
	.site-head { -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); }

	/* Five header tools must fit inside the pill (they ran 7px past its right edge before). */
	.site-head__in { gap: 10px; padding-inline: 14px 6px; }
	.site-head .brand { min-width: 0; flex: 0 1 auto; }
	.site-head .brand__word { font-size: 16px; }
	.head-tools { gap: 0; flex: 0 0 auto; }
	.head-tools .icon-btn, .head-tools .region__btn { width: 34px; height: 34px; }
	.head-tools .region__flag { width: 24px; height: 24px; }
}

@media (max-width: 370px) {
	.site-head .brand__word { font-size: 14px; }
	.head-tools .icon-btn, .head-tools .region__btn { width: 32px; height: 32px; }
}
