/* Mobile shop bar - values from Tom's XD "New Mobile Menu", screen 1 (430px artboard). See README.md. */

.bmsb {
	display: none;
}

@media (max-width: 767px) {
	/* ---------- Bar: 52px, directly under the navy MENU / SEARCH bar ---------- */
	.bmsb {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 52px;
		padding: 0 12px 0 24px;
		background: var(--bmh-stone, #eceae6);
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
		position: relative;
		z-index: 2;
		-webkit-tap-highlight-color: transparent;
	}

	.bmsb-toggle,
	.bmsb-sort {
		display: flex;
		align-items: center;
		height: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
		color: rgba(0, 46, 81, 0.8); /* navy at 80% = #2f546f on the bar, as drawn */
		cursor: pointer;
	}

	.bmsb-toggle[hidden],
	.bmsb-sort[hidden] {
		display: none;
	}

	.bmsb-toggle:hover,
	.bmsb-toggle:focus {
		background: none;
		color: rgba(0, 46, 81, 0.8);
	}

	/* Roboto 12 + 0.03em: "SHOW FILTERS" 60-145, "SORTING" 345-396, as drawn (8px caps). */
	.bmsb-label {
		font-family: var(--bmh-font-sans, 'Roboto', Arial, sans-serif);
		font-size: 12px;
		font-weight: 400;
		line-height: 1;
		letter-spacing: 0.03em;
		text-transform: uppercase;
	}

	.bmsb-funnel {
		flex: none;
		margin-right: 20px; /* icon 24-40, label starts at 60 */
		color: var(--bmh-navy, #002e51);
	}

	/* "SORTING" ends at 396, chevron 411-418: the native select sits invisibly on top so
	   the phone's own picker opens. */
	.bmsb-sort {
		position: relative;
		padding-right: 0;
	}

	.bmsb-chevron {
		flex: none;
		margin: 1px 0 0 14px;
	}

	.bmsb-sort-select {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		opacity: 0;
		font-size: 16px; /* no iOS zoom on focus */
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.bmsb-toggle:focus-visible,
	.bmsb-sort:focus-within {
		outline: 2px solid var(--bmh-sky, #92b7e8);
		outline-offset: -4px;
	}

	/* ---------- Filters: hidden until "Show Filters" ---------- */
	.bmsb-page:not(.bmsb-open) .elementor-location-archive .e-con:has(> .elementor-widget-shortcode .filter-heading),
	.bmsb-page:not(.bmsb-open) .bmsb-filters {
		display: none !important;
	}

	/* Sorting moved into the bar; the design goes straight from the title to the grid, so the
	   result count row goes too. The selects stay in the DOM (the bar drives them). */
	.bmsb-page .woocommerce-result-count-wrapper,
	.bmsb-page .woocommerce-ordering {
		display: none !important;
	}

	/* ---------- Category title: caps + spacing ---------- */
	/* Merriweather 27/600 + 0.08em = 165px wide for "CATEGORY", as drawn; cap top sits
	   48px under the bar. */
	.bmsb-page .elementor-location-archive h1.elementor-heading-title {
		margin-top: 29px; /* + 16px container padding + 3px Merriweather cap offset = 48 */
		padding-left: 5px; /* + 16px container padding: "C" ink starts at x=22, as drawn */
		text-transform: uppercase;
		letter-spacing: 0.08em;
	}
}
