/**
 * Product Categories — common widget CSS.
 *
 * @package captain-widgets-kit
 * @since   1.3.0
 */

.captwiki-pcats__grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 20px;
}

.captwiki-pcats__card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.captwiki-pcats__media {
	display: block;
	overflow: hidden;
	line-height: 0;
}

.captwiki-pcats__media img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

.captwiki-pcats__card:hover .captwiki-pcats__media img {
	transform: scale( 1.06 );
}

.captwiki-pcats__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 12px;
}

.captwiki-pcats__name {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.captwiki-pcats__count {
	font-size: 13px;
	opacity: 0.7;
}

/* Editor notice. */
.captwiki-pcats--notice {
	display: block;
	padding: 16px 18px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	background: #f6f7f7;
	color: #50575e;
	text-align: center;
	font-size: 13px;
}

.captwiki-pcats--notice p {
	margin: 0;
}
