/**
 * Shop widget sidebar layout (Voguish Child).
 *
 * Promotes the parent's float-based .wkvot-row into a 2-column grid
 * (products | 312px right rail) so the widget sidebar sits on the RIGHT
 * instead of wrapping below the product grid (footer position).
 *
 * Mirrors the promotion-rail layout (assets/css/shop-promotion.css) but is
 * keyed to body.voguish-child-has-shop-sidebar, which is added only when the
 * "Shop Sidebar" widget area has widgets on a shop / product archive.
 *
 * The parent .wkvot-row carries clearfix ::before/::after pseudos
 * (content:" "; display:table). As grid items they steal cells and shove the
 * rail to a second row, so they MUST be neutralised.
 */

body.voguish-child-has-shop-sidebar #wkvot-shop-products .wkvot-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 312px;
	gap: 56px;
	align-items: start;
}
body.voguish-child-has-shop-sidebar #wkvot-shop-products .wkvot-row::before,
body.voguish-child-has-shop-sidebar #wkvot-shop-products .wkvot-row::after {
	content: none;
	display: none;
}
body.voguish-child-has-shop-sidebar #wkvot-shop-products .wkvot-shop-products-col {
	grid-column: 1;
	float: none;
	min-width: 0;
	width: auto;
	max-width: none;
	flex: none;
}
body.voguish-child-has-shop-sidebar .voguish-child-shop-rail {
	grid-column: 2;
	position: sticky;
	top: 152px;
}

@media (max-width: 1024px) {
	body.voguish-child-has-shop-sidebar #wkvot-shop-products .wkvot-row {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	body.voguish-child-has-shop-sidebar #wkvot-shop-products .wkvot-shop-products-col {
		grid-column: 1;
		order: 1;
	}
	/* Stack the widget sidebar below the product grid on tablets and down. */
	body.voguish-child-has-shop-sidebar .voguish-child-shop-rail {
		grid-column: 1;
		order: 2;
		position: static;
	}
}

/* Widget area chrome. */
.voguish-child-shop-sidebar .widget + .widget {
	margin-top: 26px;
}
.voguish-child-shop-sidebar .wkvot-widget-title {
	margin-bottom: 14px;
}
