.pcd-tier-heading {
	margin: 2.5rem 0 0.5rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid rgba(0, 0, 0, 0.1);
	font-size: 1.3rem;
}

.pcd-tier-heading:first-of-type {
	margin-top: 0.5rem;
}

.pcd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
	margin: 1rem 0 1.5rem;
}

.pcd-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pcd-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.pcd-card--sold {
	opacity: 0.7;
}

.pcd-card__media-link,
.pcd-card__title-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.pcd-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f2f2f2;
	overflow: hidden;
}

.pcd-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.pcd-card__placeholder {
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #eee, #eee 10px, #f7f7f7 10px, #f7f7f7 20px);
}

.pcd-badge {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
}

.pcd-badge--sold {
	background: #b91c1c;
}

.pcd-badge--out {
	background: #6b7280;
}

.pcd-card__body {
	padding: 0.85rem 1rem 1rem;
}

.pcd-card__title {
	margin: 0 0 0.15rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.pcd-card__brand {
	margin: 0 0 0.4rem;
	font-size: 0.85rem;
	opacity: 0.7;
}

.pcd-card__meta {
	margin: 0;
	display: flex;
	gap: 0.6rem;
	align-items: center;
	font-size: 0.9rem;
}

.pcd-price {
	font-weight: 700;
	color: inherit;
	text-decoration: none;
}

a.pcd-price:hover {
	text-decoration: underline;
}

.pcd-empty {
	opacity: 0.7;
	font-style: italic;
}

/* Single demo/gear item pages: hide the empty "Written by ... in ..." byline,
   and let the featured image show in full instead of the theme's cropped hero style. */
.single-pcd_demo .wp-block-post-title + div,
.single-pcd_gear .wp-block-post-title + div {
	display: none !important;
}

.single-pcd_demo .wp-block-post-featured-image img,
.single-pcd_gear .wp-block-post-featured-image img {
	aspect-ratio: auto !important;
	object-fit: contain !important;
	height: auto !important;
	background: #f2f2f2;
}

.pcd-condition {
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: #eef2ff;
	font-size: 0.75rem;
}
