/* Shop chrome — heading + search wrap + category nav (.wl-pgrid).
   Used by the Product Grid widget and product category/tag archives. */

.elementor-widget-wl_product_grid {
	width: 100% !important;
	max-width: none !important;
}

body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header,
body.tax-product_tag header.page-header,
body.tax-product_tag .wp-block-query-title,
body.search-results .woocommerce-products-header,
body.search .woocommerce-products-header {
	display: none !important;
}

.wl-pgrid__hero {
	background: #f3eee8;
	padding: 52px 20px 44px;
	text-align: center;
}

.wl-pgrid__hero h1 {
	margin: 0;
	font-family: var(--wl-font-display), Times, serif;
	font-size: 48px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: #111;
	text-transform: uppercase;
}

.wl-pgrid__search {
	position: relative;
	z-index: 5;
	margin: 28px auto 0;
	max-width: 520px;
	width: 100%;
	text-align: left;
}

/* Full pill rules live in shared/search.css (.wl-pgrid__search …)
   so WooCommerce archive form CSS cannot unwind the layout. */

.wl-pgrid__nav {
	background: #fff;
	border-bottom: 1px solid #e6e6e6;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	align-items: center;
	gap: 10px 24px;
	padding: 18px 24px 20px;
	width: 100%;
	box-sizing: border-box;
}

.wl-pgrid__nav a {
	font-family: var(--wl-font-display), Times, serif;
	font-size: 17px;
	color: #222;
	text-decoration: none;
	white-space: nowrap;
}

.wl-pgrid__nav a:hover,
.wl-pgrid__nav a.is-active {
	color: #c9a3ad;
}

@media (max-width: 1200px) {
	.wl-pgrid__hero h1 {
		font-size: 36px;
	}
}

@media (max-width: 767px) {
	.wl-pgrid__hero {
		padding: 32px 16px;
	}

	.wl-pgrid__hero h1 {
		font-size: 28px;
	}

	.wl-pgrid__search {
		margin-top: 20px;
	}

	.wl-pgrid__nav {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0 20px;
		padding: 14px 16px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.wl-pgrid__nav a {
		font-size: 14px;
		flex-shrink: 0;
	}
}
