/* Product archives grid (reference layout).
   Scope: body.yb-cat-grid = /shop/ + product categories/tags, never search (class added in inc/areas/category-grid.php).
   Filter sidebar and search styles live in other area files. */

/* ---------------------------------------------------------------
   1. Title area: breadcrumb above a 30px/600 H1, no big band
   --------------------------------------------------------------- */
.yb.yb-cat-grid .page-title {
	padding: 24px 0 0 !important;
	margin: 0 !important;
	min-height: 0;
	background: none !important;
	text-align: left;
}
.yb.yb-cat-grid .page-title .container { display: flex; flex-direction: column; align-items: flex-start; }
.yb.yb-cat-grid .page-title .wd-back-btn,
.yb.yb-cat-grid .page-title .wd-btn-show-cat,
.yb.yb-cat-grid .page-title .wd-nav-product-cat { display: none !important; }
.yb.yb-cat-grid .page-title .title,
.yb.yb-cat-grid .page-title .entry-title {
	margin: 14px 0 20px !important;
	font-size: 30px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0;
	text-transform: none;
	color: #111 !important;
}
.yb.yb-cat-grid .main-page-wrapper { padding-top: 0 !important; }

/* Breadcrumb (copied above the H1 by JS; hidden in the toolbar) */
.yb.yb-cat-grid .shop-loop-head .wd-breadcrumbs,
.yb.yb-cat-grid .shop-loop-head .woocommerce-breadcrumb { display: none !important; }
.yb.yb-cat-grid .yb-cat-grid-crumbs .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #111;
}
.yb.yb-cat-grid .yb-cat-grid-crumbs .woocommerce-breadcrumb a,
.yb.yb-cat-grid .yb-cat-grid-crumbs .breadcrumb-last {
	display: inline-block !important;
	position: relative;
	padding: 0 0 1px;
	border-bottom: 1px solid #d5d5d5;
	color: #111 !important;
	font-size: 14px;
	font-weight: 400 !important;
	text-decoration: none;
}
.yb.yb-cat-grid .yb-cat-grid-crumbs .woocommerce-breadcrumb a { margin-right: 26px; }
.yb.yb-cat-grid .yb-cat-grid-crumbs .woocommerce-breadcrumb a:hover { border-bottom-color: #111; }
/* "/" separator outside the underline */
.yb.yb-cat-grid .yb-cat-grid-crumbs .woocommerce-breadcrumb a::after {
	content: "/" !important;
	position: absolute;
	top: 0;
	right: -17px;
	margin: 0 !important;
	color: #8d8d8d;
	font-size: 14px;
}
.yb.yb-cat-grid .yb-cat-grid-crumbs .woocommerce-breadcrumb .wd-delimiter { display: none; }

/* ---------------------------------------------------------------
   2. Toolbar: "N products | Sort by [Featured]" right-aligned, sticky
   --------------------------------------------------------------- */
.yb.yb-cat-grid .shop-loop-head {
	position: sticky;
	top: var(--yb-cat-grid-sticky, 0px);
	z-index: 20;
	display: flex !important;
	flex-wrap: nowrap !important;
	justify-content: flex-end !important;
	align-items: center !important;
	gap: 0 !important;
	margin: 0 0 16px !important;
	padding: 10px 0;
	border: 0 !important;
	background: var(--yb-cat-grid-ground, #FAFAFA);
}
.yb.yb-cat-grid .shop-loop-head .wd-shop-tools {
	display: flex;
	flex: 0 0 auto !important;
	align-items: center;
	order: 0 !important;
	margin: 0 !important;
	gap: 0;
}
.yb.yb-cat-grid .shop-loop-head .woocommerce-result-count {
	display: block !important;
	margin: 0 16px 0 0 !important;
	padding: 4px 16px 4px 0 !important;
	border: 0 !important;
	border-right: 1px solid #d5d5d5 !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.3;
	color: #111;
	white-space: nowrap;
}
.yb.yb-cat-grid .shop-loop-head .woocommerce-result-count::before,
.yb.yb-cat-grid .shop-loop-head .woocommerce-result-count::after { content: none !important; }
.yb.yb-cat-grid .shop-loop-head .wd-products-per-page,
.yb.yb-cat-grid .shop-loop-head .wd-products-shop-view { display: none !important; }
.yb.yb-cat-grid .shop-loop-head .woocommerce-ordering {
	display: flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
.yb.yb-cat-grid .shop-loop-head .woocommerce-ordering::before {
	content: "Sort by" !important;
	display: inline-block !important;
	margin: 0 12px 0 0;
	font-size: 16px;
	font-weight: 400;
	color: #111;
	white-space: nowrap;
}
.yb.yb-cat-grid .shop-loop-head .woocommerce-ordering::after { content: none !important; }
/* Same boxed select before and after AJAX (WoodMart swaps style classes) */
.yb.yb-cat-grid .woocommerce-ordering select.orderby,
.yb.yb-cat-grid .woocommerce-ordering.wd-style-underline select.orderby {
	-webkit-appearance: none;
	appearance: none;
	width: 236px !important;
	min-width: 0 !important;
	max-width: 100%;
	height: 47px !important;
	margin: 0 !important;
	padding: 0 44px 0 20px !important;
	border: 1px solid #c8c8c8 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.6' d='M1 1.5l7 7 7-7'/%3E%3C/svg%3E") no-repeat right 18px center / 15px 9px !important;
	color: #111 !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 45px !important;
	cursor: pointer;
}
.yb.yb-cat-grid .woocommerce-ordering select.orderby:focus { border-color: #111 !important; outline: none; }
.yb.yb-cat-grid .woocommerce-ordering .select2,
.yb.yb-cat-grid .woocommerce-ordering .wd-ordering-mb-icon-btn { display: none !important; }

/* Intro copy (sub-categories) sits above the toolbar */
.yb.yb-cat-grid .yb-term-intro { margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: #111; }
.yb.yb-cat-grid .yb-term-intro p { margin: 0; }
.yb.yb-cat-grid .yb-term-intro a { color: #111; text-decoration: underline; }

/* ---------------------------------------------------------------
   3. Product cards: no lift, image fills card at 5:6
   --------------------------------------------------------------- */
/* PARITY-RECHECK row 9: tile bottom margin 44px → lululemon's measured 48px (existing !important kept). */
.yb.yb-cat-grid .products .product-grid-item,
.yb.yb-cat-grid .products .yb-cat-grid-promo { margin-bottom: 48px !important; }
.yb.yb-cat-grid .product-grid-item .content-product-imagin { display: none !important; }
.yb.yb-cat-grid .product-grid-item .product-wrapper,
.yb.yb-cat-grid .product-grid-item:hover .product-wrapper,
.yb.yb-cat-grid .product-grid-item.state-hover .product-wrapper {
	transform: none !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}
.yb.yb-cat-grid .product-grid-item .hover-content,
.yb.yb-cat-grid .product-grid-item .wd-more-desc,
.yb.yb-cat-grid .product-grid-item .wd-more-desc-btn,
.yb.yb-cat-grid .product-grid-item .product-labels,
.yb.yb-cat-grid .product-grid-item .wd-product-cats,
.yb.yb-cat-grid .product-grid-item .star-rating { display: none !important; }

.yb.yb-cat-grid .product-grid-item .product-element-top {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	overflow: visible;
}
.yb.yb-cat-grid .product-grid-item .product-element-top::after { content: none !important; }
.yb.yb-cat-grid .product-grid-item .product-image-link {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 5 / 6;
	overflow: hidden;
	border-radius: 0 !important;
	background: #F2F2F2;
}
.yb.yb-cat-grid .product-grid-item .product-image-link img,
.yb.yb-cat-grid .product-grid-item .product-image-link picture {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	mix-blend-mode: multiply; /* white photo grounds read as the light-grey tile */
	transform: none !important;
}
/* Second image on hover (when products have a gallery image) */
.yb.yb-cat-grid .product-grid-item .hover-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	aspect-ratio: 5 / 6;
	overflow: hidden;
	background: #F2F2F2;
}
.yb.yb-cat-grid .product-grid-item .hover-img a,
.yb.yb-cat-grid .product-grid-item .hover-img img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* Badge: white rectangle bottom-left inside the image */
.yb.yb-cat-grid .yb-cat-grid-badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 5px 8px;
	border-radius: 2px;
	background: #fff;
	color: #111;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	pointer-events: none;
}

/* Wishlist heart: white circle top-right inside the image */
.yb.yb-cat-grid .product-grid-item .wd-bottom-actions .wrap-wishlist-button { top: 12px !important; right: 12px !important; }
.yb.yb-cat-grid .product-grid-item .wd-wishlist-icon > a { width: 32px; height: 32px; }

/* Colour swatches (when present): round, thin grey ring */
.yb.yb-cat-grid .product-grid-item .wrapp-swatches { padding: 12px 0 0 !important; }
.yb.yb-cat-grid .product-grid-item .wd-swatches-grid {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	margin: 0 !important;
	overflow: hidden;
	justify-content: flex-start !important;
}
/* PARITY-RECHECK row 12 (size half): swatch 26px → lululemon's measured 24px circle.
   The ring itself is set to 1.5px #8D9196 by fix-parity.css. Existing !important kept. */
.yb.yb-cat-grid .product-grid-item .wd-swatches-grid .wd-swatch {
	flex: 0 0 auto;
	width: 24px !important;
	height: 24px !important;
	margin: 0 !important;
	/* row 12: lululemon's ring hugs the colour circle, so drop the 2px ground-coloured
	   inset that pushed fix-parity.css's #8D9196 ring 2px away from the swatch. */
	border: 0 !important;
	border-radius: 50% !important;
	/* A9-ROUND2 §4.3: #c8c8c8 ring is 1.62:1; #949494 is 3.03:1 on white (1.4.11). */
	box-shadow: 0 0 0 1px #949494;
	overflow: hidden;
}
.yb.yb-cat-grid .product-grid-item .wd-swatches-grid .wd-swatch.wd-active,
.yb.yb-cat-grid .product-grid-item .wd-swatches-grid .wd-swatch:hover { box-shadow: 0 0 0 1px #111; }
.yb.yb-cat-grid .product-grid-item .wd-swatches-grid .wd-swatch .wd-swatch-bg,
.yb.yb-cat-grid .product-grid-item .wd-swatches-grid .wd-swatch img { border-radius: 50%; }
.yb.yb-cat-grid .product-grid-item .wd-swatches-grid .wd-swatch-divider { display: none; }

/* Name, price */
.yb.yb-cat-grid .product-grid-item .product-element-bottom {
	padding: 14px 0 0 !important;
	margin: 0 !important;
	transform: none !important;
	background: none !important;
	text-align: left;
}
.yb.yb-cat-grid .product-grid-item .wd-entities-title {
	margin: 0 0 12px !important;
	font-size: 17px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	text-transform: none;
}
.yb.yb-cat-grid .product-grid-item .wd-entities-title a { color: #222 !important; }
.yb.yb-cat-grid .product-grid-item .price {
	display: flex !important;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	margin: 0;
	color: #222 !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1.35;
}
.yb.yb-cat-grid .product-grid-item .price .amount { color: inherit; font-weight: 400; }
.yb.yb-cat-grid .product-grid-item .price ins { order: 1; text-decoration: none; color: #222; font-weight: 400; }
.yb.yb-cat-grid .product-grid-item .price del { order: 2; color: #656565; font-size: 14px; opacity: 1; }
.yb.yb-cat-grid .product-grid-item .price del .amount { color: #656565; }

/* Quick Shop: bag icon + underlined text (icon from JS; old icon-font glyph off) */
.yb.yb-cat-grid .product-grid-item .fade-in-block {
	display: block !important;
	position: static !important;
	height: auto !important;
	max-height: none !important;
	margin: 10px 0 0 !important;
	padding: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	background: none !important;
	overflow: visible !important;
}
.yb.yb-cat-grid .product-grid-item .wd-bottom-actions { display: block; margin: 0 !important; padding: 0 !important; }
.yb.yb-cat-grid .product-grid-item .wrap-quickview-button,
.yb.yb-cat-grid .product-grid-item .wd-quick-view-icon {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
	text-align: left;
}
.yb.yb-cat-grid .product-grid-item .wd-quick-view-icon > a,
.yb.yb-cat-grid .product-grid-item .wd-quick-view-icon > a.yb-quick {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 8px !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: #111 !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	white-space: nowrap;
}
.yb.yb-cat-grid .product-grid-item .wd-quick-view-icon > a::before,
.yb.yb-cat-grid .product-grid-item .wd-quick-view-icon > a::after,
.yb.yb-cat-grid .product-grid-item .wd-quick-view-icon > a.yb-quick::before,
.yb.yb-cat-grid .product-grid-item .wd-quick-view-icon > a.yb-quick::after { content: none !important; display: none !important; }
.yb.yb-cat-grid .yb-cat-grid-qs__icon { flex: 0 0 auto; display: block; width: 14px; height: 16px; }
/* PARITY-RECHECK row 15: Quick Shop underline must read as the same component as home —
   1px #8D9196 with a 4px gap, turning #D31334 on hover, and no thickness change. */
.yb.yb-cat-grid .yb-cat-grid-qs__text { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid var(--yb-underline); line-height: 1.2; transition: border-color .15s ease-in-out; }
.yb.yb-cat-grid .yb-cat-grid-qs:hover .yb-cat-grid-qs__text { border-bottom-color: var(--yb-red); }

/* ---------------------------------------------------------------
   4. Promo tile (grid position 6)
   --------------------------------------------------------------- */
.yb.yb-cat-grid .yb-cat-grid-promo__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	height: 100%;
	padding: 32px 28px;
	background: linear-gradient(160deg, #c8102e 0%, #d42a52 38%, #e0668f 66%, #cdb4e8 100%);
	color: #fff;
	text-align: center;
}
.yb.yb-cat-grid .yb-cat-grid-promo__inner:not([style*="min-height"]) { aspect-ratio: 5 / 7.4; }
.yb.yb-cat-grid .yb-cat-grid-promo__title { margin: 0; color: #fff; font-size: 26px; font-weight: 600; line-height: 1.2; }
.yb.yb-cat-grid .yb-cat-grid-promo__text { margin: 0; color: #fff; font-size: 17px; line-height: 1.45; }
.yb.yb-cat-grid .yb-cat-grid-promo__btn {
	display: inline-block;
	margin-top: 8px;
	padding: 15px 30px;
	border: 1px solid #111;
	background: #fff;
	color: #111 !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.yb.yb-cat-grid .yb-cat-grid-promo__btn:hover { border-color: #fff; background: transparent; color: #fff !important; }

/* ---------------------------------------------------------------
   5. "X of Y" + SEE MORE
   --------------------------------------------------------------- */
.yb.yb-cat-grid .yb-cat-grid-progress {
	margin: 8px 0 16px;
	text-align: center;
	color: #111;
	font-size: 15px;
	line-height: 1.4;
}
.yb.yb-cat-grid .products-footer,
.yb.yb-cat-grid .wd-loop-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 8px 0 0;
	text-align: center;
}
.yb.yb-cat-grid .products-footer[style*="display: none"],
.yb.yb-cat-grid .wd-loop-footer[style*="display: none"] { display: none !important; }
/* PARITY-RECHECK rows 7 + 14: every lululemon button/pill/input carries the 4px control
   radius; "Load more" was pinned at 0. Measured box 143×54 with 16px 32px padding.
   The two !important values below already existed in this rule and are kept. */
.yb.yb-cat-grid .wd-products-load-more,
.yb.yb-cat-grid .products-footer .wd-load-more,
.yb.yb-cat-grid .wd-loop-footer .wd-load-more:not(.wd-load-more-loader) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 143px;
	height: 54px;
	padding: 0 32px !important;
	border: 1px solid #333 !important;
	border-radius: var(--yb-radius) !important;
	background: #333 !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
.yb.yb-cat-grid .wd-products-load-more:hover,
.yb.yb-cat-grid .products-footer .wd-load-more:hover { background: #111 !important; border-color: #111 !important; }
.yb.yb-cat-grid .wd-products-load-more span { color: inherit; }

/* ---------------------------------------------------------------
   6. SEO block (replaces the FAQ)
   --------------------------------------------------------------- */
.yb.yb-cat-grid .yb-cat-faq { display: none !important; }
.yb.yb-cat-grid .yb-cat-grid-seo { margin: 64px 0 24px; }
.yb.yb-cat-grid .yb-cat-grid-seo__title {
	margin: 0 0 12px;
	color: #111;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
}
.yb.yb-cat-grid .yb-cat-grid-seo__text {
	position: relative;
	max-height: 3.2em; /* 2 lines */
	overflow: hidden;
	color: #222;
	font-size: 16px;
	line-height: 1.6;
}
.yb.yb-cat-grid .yb-cat-grid-seo__text p { margin: 0 0 1em; }
.yb.yb-cat-grid .yb-cat-grid-seo__text p:last-child { margin-bottom: 0; }
.yb.yb-cat-grid .yb-cat-grid-seo__text a { color: #111; text-decoration: underline; }
.yb.yb-cat-grid .yb-cat-grid-seo__text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.6em;
	background: linear-gradient(to bottom, transparent, var(--yb-cat-grid-ground, #FAFAFA));
	pointer-events: none;
}
.yb.yb-cat-grid .yb-cat-grid-seo.is-open .yb-cat-grid-seo__text { max-height: none; }
.yb.yb-cat-grid .yb-cat-grid-seo.is-open .yb-cat-grid-seo__text::after,
.yb.yb-cat-grid .yb-cat-grid-seo.is-short .yb-cat-grid-seo__text::after { display: none; }
.yb.yb-cat-grid .yb-cat-grid-seo__more {
	display: block;
	min-height: 0;
	margin: 14px auto 0;
	padding: 0 0 2px;
	border: 0;
	border-bottom: 1px solid #111;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #111;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}
.yb.yb-cat-grid .yb-cat-grid-seo__more[hidden] { display: none; }

/* ---------------------------------------------------------------
   7. Smaller screens
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
	.yb.yb-cat-grid .yb-cat-grid-promo__title { font-size: 22px; }
	.yb.yb-cat-grid .yb-cat-grid-promo__text { font-size: 15px; }
}
@media (max-width: 767px) {
	.yb.yb-cat-grid .page-title { padding-top: 16px !important; }
	.yb.yb-cat-grid .page-title .title,
	.yb.yb-cat-grid .page-title .entry-title { font-size: 24px !important; margin: 10px 0 12px !important; }
	.yb.yb-cat-grid .shop-loop-head { justify-content: space-between !important; flex-wrap: wrap !important; gap: 8px 0 !important; }
	.yb.yb-cat-grid .shop-loop-head .woocommerce-result-count { font-size: 14px !important; }
	.yb.yb-cat-grid .shop-loop-head .woocommerce-ordering::before { content: none !important; }
	.yb.yb-cat-grid .woocommerce-ordering select.orderby { width: 170px !important; height: 42px !important; line-height: 40px !important; padding-left: 12px !important; font-size: 14px !important; }
	.yb.yb-cat-grid .products .product-grid-item,
	.yb.yb-cat-grid .products .yb-cat-grid-promo { margin-bottom: 28px !important; }
	/* A6-ROUND2 row 29: .wd-entities-title dropped here — zx-mobile-fixes.css:306-308 already
	   sets the correct 16px at this width and loads later, so the 14px copy was dead. */
	.yb.yb-cat-grid .product-grid-item .price,
	.yb.yb-cat-grid .product-grid-item .wd-quick-view-icon > a { font-size: 14px !important; }
	.yb.yb-cat-grid .yb-cat-grid-badge { left: 8px; bottom: 8px; font-size: 12px; padding: 4px 6px; }
	.yb.yb-cat-grid .yb-cat-grid-promo__inner { padding: 20px 14px; gap: 12px; }
	.yb.yb-cat-grid .yb-cat-grid-promo__title { font-size: 18px; }
	.yb.yb-cat-grid .yb-cat-grid-promo__text { font-size: 13px; }
	.yb.yb-cat-grid .yb-cat-grid-promo__btn { padding: 11px 12px; font-size: 12px; letter-spacing: .6px; }
	.yb.yb-cat-grid .yb-cat-grid-seo__title { font-size: 22px; }
}
