/**
 * WooCommerce product category cards (Query Loop keyword :woo_product_category_cards).
 * Scope with .product_category_cards on a wrapper or Additional CSS class on the Query block.
 */

.offirex-pcg,
.product_category_cards .offirex-pcg,
.product_category_cards.offirex-pcg {
	box-sizing: border-box;
}

.offirex-pcg__grid {
	display: grid;
	grid-template-columns: repeat(var(--offirex-pcg-columns, 4), minmax(0, 1fr));
	column-gap: 5rem;
	row-gap: 3rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 600px) {
	.offirex-pcg__grid {
		grid-template-columns: repeat(var(--offirex-pcg-columns-mobile, 2), minmax(0, 1fr));
		olumn-gap: 2.5rem;
		column-gap: 1.5rem;
	}
}

.offirex-pcg__item {
	margin: 0;
}
.offirex-pcg__item a {
	border-radius: 0.75rem;
}

.offirex-pcg__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.offirex-pcg__card:hover,
.offirex-pcg__card:focus-visible {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	outline: none;
}

.offirex-pcg__text {
	order: 1;
	width: 100%;
	box-sizing: border-box;
	padding: 1rem 0.5rem;
	color: var(--wp--preset--color--offirex-black, #000000);
	background-color: var(--wp--preset--color--offirex-white, #ffffff);
	border-bottom-left-radius: 0.75rem;
	border-bottom-right-radius: 0.75rem;
}
.offirex-pcg__card:hover .offirex-pcg__text,
.offirex-pcg__card:focus-visible .offirex-pcg__text {
	text-decoration: underline;
}


.offirex-pcg__title {
	margin: 0;
	color: var(--wp--preset--color--offirex-black, #000000);
	font-size: clamp(0.9rem, 2.5vw, 1rem);
	font-weight: 500;
	line-height: 1.25;
}

.offirex-pcg__media {
	order: 0;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-top-left-radius: 0.75rem;
	border-top-right-radius: 0.75rem;
}

.offirex-pcg__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.offirex-pcg__image--placeholder {
	background: rgba(0, 0, 0, 0.06);
}

.offirex-pcg__empty,
.offirex-pcg__notice {
	margin: 0;
	font-size: 0.95rem;
	opacity: 0.85;
}

.offirex-pcg--inactive .offirex-pcg__notice,
.offirex-pcg--empty .offirex-pcg__empty {
	padding: 1rem;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--offirex-surface, #eaf0f4);
}

/* Optional outer wrapper (Group block or layout) */
.product_category_cards {
	width: 100%;
}
