/* ============================================================
   WooCommerce alkategória kártya-grid (alfagaz_cat_grid shortcode)
   ============================================================ */

.agaz-cat-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.agaz-cat-card {
	position: relative;
	box-sizing: border-box;
	width: 230px;
	height: 230px;
	flex: 0 0 230px;
	border: 2px solid var(--szin-piros);
	border-radius: 12px;
	padding: 42px 14px 30px;
	text-align: center;
	background: #fff;
	text-decoration: none;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: background 0.22s ease;
}

.agaz-cat-card:hover {
	background: var(--szin-piros);
}

.agaz-cat-dot {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	overflow: hidden;
	display: block;
	background: var(--szin-kozepszurke);
	border: 3px solid var(--szin-feher);
}

.agaz-cat-dot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.agaz-cat-name {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.25;
	color: var(--szin-piros);
	position: relative;
	z-index: 2;
	transition: color 0.22s ease;
}

.agaz-cat-card:hover .agaz-cat-name {
	color: #fff;
}

.agaz-cat-ghost {
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX( -50% );
	width: max-content;
	max-width: none;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 26px;
	line-height: 1;
	letter-spacing: -0.04em;
	color: rgba( 204, 34, 34, 0.12 );
	white-space: nowrap;
	overflow: visible;
	pointer-events: none;
	transition: color 0.22s ease;
}

.agaz-cat-card:hover .agaz-cat-ghost {
	color: rgba(255, 255, 255, 0.15);
}
