/* Completeness rules kept separate from the authority-mapped core Shop sheet. */
@media (max-width: 767px) {
	.f4u-product-grid--selected .f4u-product-card:nth-child(n+2) { display: flex; }
}

/* One scroll surface for the filter drawer; existing native taxonomies supply
 * the expandable branches. No category data or product assignments are written. */
.f4u-shop .f4u-filter-categories .f4u-filter-tree { display: grid; gap: 2px; }
.f4u-shop .f4u-filter-categories > .f4u-filter-tree { margin-top: 8px; }
.f4u-shop .f4u-filter-branch > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
}
.f4u-shop .f4u-filter-branch > summary::-webkit-details-marker { display: none; }
.f4u-shop .f4u-filter-branch > summary::before {
	content: "";
	order: 2;
	width: 6px;
	height: 6px;
	flex: 0 0 6px;
	margin: 19px;
	border-inline-end: 1px solid currentColor;
	border-block-end: 1px solid currentColor;
	transform: rotate(-45deg);
}
.f4u-shop .f4u-filter-branch[open] > summary::before { transform: rotate(45deg); }
.f4u-shop .f4u-filter-branch > .f4u-filter-tree { margin-inline-start: 14px; padding-inline-start: 10px; border-inline-start: 1px solid var(--f4u-line); }
.f4u-shop .f4u-filter-categories label { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 8px; flex: 1; min-width: 0; min-height: 44px; font: 400 13px/1.4 var(--f4u-font-body); cursor: pointer; }
.f4u-shop .f4u-filter-leaf { padding-inline-start: 0; }
.f4u-shop .f4u-filter-categories small { color: var(--f4u-muted); }
.f4u-shop .f4u-filter-branch > summary:focus-visible { outline: 2px solid var(--f4u-petrol); outline-offset: 2px; }
.f4u-shop .f4u-filter-options { max-height: none; overflow: visible; }

/* Source-range filter only; preserve the approved catalogue and card layout. */
#f4u-shop-filter-form select[name="f4u_size_range"] { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; }

/* Material accessibility correction: icon-only wishlist controls retain a 44px touch target. */
.f4u-product-card .f4u-wishlist { width: 44px; height: 44px; }

/* Only the main catalogue fills its measured space; horizontal recommendations
 * and the global page shell are independent of the column selector. */
.f4u-shop [data-catalogue-results] .f4u-product-grid[data-product-grid][data-grid-adaptive] {
	grid-template-columns: repeat(var(--f4u-auto-grid-columns), minmax(0, 1fr));
	justify-content: stretch;
	width: 100%;
	max-width: none;
}
