/* A3 audit fixes: shop, categories, search (pairs with inc/areas/fix-a3-shop.php + assets/js/areas/fix-a3-shop.js).
   Scoped to: body.yb-fix-a3-search-grid (product search with results), body.logged-in.yb-cat-grid,
   .yb-fix-a3-sale-empty, .yb-fix-a3-content-hint. */

/* ---------- 1. Promo tile "Sign in / Sign up" is only for signed-out shoppers ---------- */
body.yb.logged-in.yb-cat-grid .products .yb-cat-grid-promo { display: none !important; }

/* ---------- 2. Search results on the category grid system ---------- */
/* Heading row spans the page above filters + grid (search.js moves it); no stray top gap from the grid title band. */
body.yb.yb-fix-a3-search-grid .page-title { display: none !important; }
body.yb.yb-fix-a3-search-grid .yb-search-head { padding-top: 24px; }
/* Toolbar: sort only (count lives in the "Products (N)" tab), right-aligned like the category page. */
body.yb.yb-fix-a3-search-grid .shop-loop-head .woocommerce-result-count { display: none !important; }
@media (min-width: 1025px) {
	body.yb.yb-fix-a3-search-grid .shop-loop-head { justify-content: flex-end !important; }
}
/* Search never shows the category SEO block or promo tile. */
body.yb.yb-fix-a3-search-grid .yb-cat-grid-promo,
body.yb.yb-fix-a3-search-grid .yb-cat-grid-seo { display: none !important; }

/* ---------- 3. Product search with no products: link to matching pages/articles ---------- */
.yb .yb-fix-a3-content-hint {
	margin: 20px 0 0;
	text-align: center;
	font: 400 16px/1.5 var(--yb-font, inherit);
}
.yb .yb-fix-a3-content-hint a {
	color: #111;
	text-decoration: none;
	border-bottom: 1px solid #111;
	padding-bottom: 2px;
}
.yb .yb-fix-a3-content-hint a:hover { color: #d22030; border-bottom-color: #d22030; }

/* ---------- 4. /sale/ with nothing on sale ---------- */
.yb .yb-fix-a3-sale-empty {
	max-width: 720px;
	margin: 40px auto 8px;
	padding: 48px 24px;
	border: 1px solid #e5e5e5;
	background: #fff;
	color: #111;
	text-align: center;
}
.yb .yb-fix-a3-sale-empty__title {
	margin: 0 0 12px;
	color: #111;
	font: 600 26px/1.25 var(--yb-font, inherit);
	letter-spacing: 0;
	text-transform: none;
}
.yb .yb-fix-a3-sale-empty__text {
	max-width: 520px;
	margin: 0 auto 24px;
	color: #57585b;
	font-size: 17px;
	line-height: 1.45;
}
.yb .yb-fix-a3-sale-empty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	border-radius: 4px;
	background: #111;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none !important;
}
.yb .yb-fix-a3-sale-empty__btn:hover { background: #333; }
@media (max-width: 767px) {
	.yb .yb-fix-a3-sale-empty { margin: 24px 0 8px; padding: 36px 16px; }
	.yb .yb-fix-a3-sale-empty__title { font-size: 22px; }
}
