/* Two-column layout */
.vendor-area {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 32px;
	align-items: start;
}
.vendor-area__filters {
	position: sticky;
	top: 80px;
}
@media (max-width: 768px) {
	.vendor-area { grid-template-columns: 1fr; }
	.vendor-area__filters { position: static; }
}

/* Stack vendor cards vertically wherever they render — neutralize WC's default
   products grid (columns-N) so a list of .vendor-listing items lays out as a
   single column. */
ul.products:has(> li.product.vendor-listing) {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
ul.products:has(> li.product.vendor-listing)::before,
ul.products:has(> li.product.vendor-listing)::after { content: none; display: none; }

/* Per-card full-width fallback for browsers without :has() and for cases
   where WC inlines width on the grid items. */
li.product.vendor-listing {
	width: 100%;
	max-width: none;
	margin: 0;
	float: none;
	clear: both;
}

/* Horizontal card */
.vendor-listing {
	display: grid;
	grid-template-columns: 200px 1fr 180px;
	gap: 20px;
	padding: 16px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	transition: box-shadow .15s, border-color .15s;
}
.vendor-listing:hover {
	border-color: #c9c9c9;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.vendor-listing__image img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.vendor-listing__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vendor-listing__title {
	font-size: 1.05rem;
	font-weight: 600;
	color: #0a4a8a;
	text-decoration: none;
	line-height: 1.3;
}
.vendor-listing__title:hover { text-decoration: underline; }

.vendor-listing__excerpt {
	color: #444;
	font-size: .9rem;
	line-height: 1.4;
}

.vendor-listing__meta {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: .8rem;
	color: #666;
}
.vendor-listing__seller { color: #0a4a8a; text-decoration: none; }
.vendor-listing__seller:hover { text-decoration: underline; }

.vendor-listing__aside {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	text-align: right;
}
.vendor-listing__price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111;
}

@media (max-width: 600px) {
	.vendor-listing {
		grid-template-columns: 110px 1fr;
	}
	.vendor-listing__aside {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.vendor-listing__image img { height: 110px; }
}
