/* Category and search pages on phones (inc/archive-mobile.php). */
.orbit-filters-btn { display: none !important; }

@media (max-width: 767px) {
	/* "hidden" on both html and body stops anything sticking; "clip" hides the same overflow. */
	html, body { overflow-x: clip; }

	.archive .archive, .woocommerce-shop .archive { padding-top: 14px; }
	.archive-header { margin-bottom: 14px; }

	/* Intro: two lines, then "More". */
	.archive-header .archive-description { margin-top: 6px; }
	.archive-header .archive-description:not(.is-open) p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
	.archive-header .archive-description:not(.is-open) p ~ p { display: none; }
	.orbit-desc-more { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; color: var(--wp--preset--color--navy, #05386b); font: inherit; font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

	/* Subcategories: one swipe row with all of them. */
	.archive-subcategories { margin: 0; }
	.archive-subcategories .subcategories-grid { flex-wrap: nowrap; gap: 12px; margin: 0 -10px; padding: 0 10px 4px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 10px; scrollbar-width: none; }
	.archive-subcategories .subcategories-grid::-webkit-scrollbar { display: none; }
	.archive-subcategories .subcategories-grid li { display: block; flex: 0 0 84px; padding: 0; scroll-snap-align: start; }
	.archive-subcategories .subcategories-grid li a { gap: 6px; }
	.archive-subcategories .subcategories-grid img { display: block; width: 72px; height: 72px; object-fit: cover; }
	.archive-subcategories .subcategory-title { font-size: 13px; line-height: 1.2; }
	.archive-subcategories .subcategories-toggle-container { display: none; }

	/* Filters and Sort: one row that stays in reach. */
	.archive-wrapper .one-quarter { padding-bottom: 0; }
	.one-quarter .product-lens-widget { border: 0; }
	.one-quarter .product-lens-widget > .pl-mobile-toggle { display: none; }
	.archive .woocommerce-notices-wrapper:empty { display: none; }
	.archive-header + .archive-wrapper .woocommerce-shop-controls { margin-top: 0; }
	.archive-subcategories ~ .woocommerce-shop-controls { margin-top: 10px !important; }
	.woocommerce-shop-controls { position: sticky; top: 0; z-index: 60; flex-wrap: nowrap; justify-content: space-between; gap: 8px; margin: 10px -10px 12px; padding: 6px 10px; border-bottom: 1px solid var(--wp--preset--color--slate, #e4eaf0); background: var(--wp--preset--color--white, #fff); }
	/* Two matching light pills, so Add to basket stays the strongest button on the page. */
	.woocommerce-shop-controls .orbit-filters-btn,
	.woocommerce-shop-controls .woocommerce-ordering.is-pill { display: inline-flex !important; flex: 0 1 auto; align-items: center; gap: 7px; width: auto; min-width: 0; height: 38px; margin: 0; padding: 0 14px; box-sizing: border-box; border: 1.5px solid var(--wp--preset--color--navy-50, #c6dbf0); border-radius: 999px; background: var(--wp--preset--color--white, #fff); color: var(--wp--preset--color--navy, #05386b); font: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.woocommerce-shop-controls .orbit-filters-btn { flex: none; position: relative; }
	/* 38px to look at, 44px to tap. */
	.woocommerce-shop-controls .orbit-filters-btn::after { content: ""; position: absolute; inset: -4px 0; }
	.woocommerce-shop-controls .orbit-filters-btn svg { width: 16px; height: 16px; }
	.woocommerce-shop-controls .orbit-filters-btn.has-filters { border-color: var(--wp--preset--color--navy, #05386b); background: #eaf2fa; }
	.orbit-filters-btn__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: var(--wp--preset--color--navy, #05386b); color: #fff; font-size: 0.75rem; font-weight: 700; }
	.orbit-filters-btn__count[hidden] { display: none; }
	/* Sort: the label is drawn, the phone's own menu lies over it, invisible. With no padding of
	   its own its list is not indented, and 16px text stops iPhones zooming in. */
	.woocommerce-shop-controls .woocommerce-ordering.is-pill { position: relative; max-width: 64%; padding: 0 36px 0 37px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none' stroke='%2305386b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v12M7 16l-3-3M7 16l3-3M14 16V4M14 4l-3 3M14 4l3 3'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%2305386b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px center, right 13px center; }
	.orbit-sort-label { padding: 3px 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
	.woocommerce-shop-controls .woocommerce-ordering.is-pill select { position: absolute; inset: -4px 0; width: 100%; height: calc(100% + 8px); min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: pointer; appearance: none; -webkit-appearance: none; }
	.woocommerce-shop-controls .orbit-filters-btn:active,
	.woocommerce-shop-controls .woocommerce-ordering.is-pill:active { background-color: #eaf2fa; }
	.woocommerce-shop-controls .orbit-filters-btn:focus-visible,
	.woocommerce-shop-controls .woocommerce-ordering.is-pill:has(select:focus-visible) { outline: 3px solid var(--wp--preset--color--navy, #05386b); outline-offset: 2px; }
	.woocommerce-shop-controls .woocommerce-result-count { display: none; }
	.woocommerce-shop-controls .woocommerce-notices-wrapper:empty { display: none; }
}
