/* Homepage per-category product showcase (home-category-showcase.php).
   Cards themselves are rendered by the WooCommerce [products] shortcode and styled
   by WoodMart; this only lays out the section headings + spacing. */

.ppcs-wrap {
	max-width: 1222px;
	margin: 40px auto 8px;
	padding: 0 15px;
	box-sizing: border-box;
}

.ppcs-cat {
	margin: 0 0 52px;
}

.ppcs-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	flex-wrap: wrap;
	margin: 0 0 22px;
	padding: 12px 22px;
	border-radius: 8px;
	background: var(--wd-primary-color, #5d4f89); /* main brand purple */
	color: #fff;
}

.ppcs-title {
	margin: 0;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -.01em;
	color: #fff;
}

.ppcs-viewall {
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	color: #fff;
	opacity: .9;
}

.ppcs-viewall:hover {
	opacity: 1;
}

.ppcs-viewall span {
	display: inline-block;
	transition: transform .18s ease;
}

.ppcs-viewall:hover span {
	transform: translateX(3px);
}

/* Kill the shortcode wrapper's default top margin so the grid hugs the heading. */
.ppcs-grid .products,
.ppcs-grid ul.products {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Hide the product-category links under each card title in the homepage showcase.
   (Everything else - hover image, hover icons, sale badge - is handled by WoodMart's
   native product-loop CSS/JS, which the include pre-loads on the front page.) */
.ppcs-grid .wd-product-cats {
	display: none;
}

/* Hide the on-hover short-description text (only some products - the stacks - have one).
   Keeps the hover action buttons (add to cart / wishlist / search) intact. */
.ppcs-grid .wd-more-desc {
	display: none;
}

/* Sale discount badge anchored on the thumb, bottom-left, exactly like the single product
   page. In the loop the label otherwise ships position:static and flows under the image.
   Only sale products (the stacks) have a label, so only they show it. The purple round
   badge styling itself comes from WoodMart's native loop CSS. */
.ppcs-grid .wd-product-thumb .product-labels {
	position: absolute;
	top: auto;
	right: auto;
	bottom: 10px;
	left: 10px;
	margin: 0;
	z-index: 10;
}
/* Round purple badge, same style as the single product page (there it's a 110px circle on
   a 580px image; scaled proportionally here for the ~283px thumb). WoodMart's native badge
   CSS isn't loaded in this context, so we restate it. */
.ppcs-grid .wd-product-thumb .product-labels .onsale {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 50px;
	height: 50px;
	padding: 4px 6px;
	border-radius: 100px;
	background-color: var(--wd-primary-color, #5d4f89);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.ppcs-wrap {
		margin-top: 26px;
	}
	.ppcs-cat {
		margin-bottom: 38px;
	}
	.ppcs-title {
		font-size: 20px;
	}
}
