.wcc-child-cats {
	width: 100%;
	margin-top: var(--wcc-space-top);
	margin-bottom: var(--wcc-space-bottom);
	--wcc-img: 60px;
	--wcc-cols-desk: 5;
	--wcc-cols-tab: 3;
	--wcc-cols-mob: 2;
	--wcc-text: #1c1915;
	--wcc-bg: #e8f6ec;
	--wcc-accent: #caead1;
	--wcc-radius: 50%;
	--wcc-space-top: 24px;
	--wcc-space-bottom: 32px;
	--wcc-img-mob: 72px;
	color: var(--wcc-text);
	box-sizing: border-box;
	overflow: hidden;
}

.wcc-heading {
	text-align: center;
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 1.25rem;
}

.wcc-list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.25rem 2rem;
	width: 100%;
}

.wcc-align-center .wcc-list {
	justify-content: center;
}

.wcc-align-left .wcc-list {
	justify-content: flex-start;
}

.wcc-align-space-between .wcc-list {
	justify-content: space-between;
}

.wcc-item {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	flex: 0 1 calc((100% - (var(--wcc-cols-desk) - 1) * 2rem) / var(--wcc-cols-desk));
	max-width: calc(var(--wcc-img) + 96px);
}

.wcc-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
	gap: 0.65rem;
}

.wcc-link:hover .wcc-name,
.wcc-item.is-current .wcc-name {
	text-decoration: underline;
}

.wcc-link:focus-visible {
	outline: 2px solid var(--wcc-accent);
	outline-offset: 4px;
	border-radius: 8px;
}

.wcc-item.is-current .wcc-media {
	box-shadow: 0 0 0 3px var(--wcc-accent);
	border-radius: var(--wcc-radius);
}

.wcc-media {
	display: block;
	width: var(--wcc-img);
	height: var(--wcc-img);
	max-width: 100%;
	flex-shrink: 0;
	overflow: hidden;
}

.wcc-thumb {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.wcc-name {
	font-size: 0.9rem;
	line-height: 1.3;
	text-align: center;
	text-transform: none;
	font-weight: 500;
}

.wcc-count {
	font-size: 0.75rem;
	opacity: 0.65;
}

.wcc-hide-count .wcc-count {
	display: none;
}

/* Rounded — like current Lady Shop look */
.wcc-style-rounded .wcc-thumb {
	border-radius: var(--wcc-radius);
}

/* Cards */
.wcc-style-cards .wcc-item {
	max-width: none;
}

.wcc-style-cards .wcc-link {
	background: var(--wcc-bg);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 16px;
	padding: 1rem 0.75rem 0.9rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wcc-style-cards .wcc-thumb {
	border-radius: 12px;
}

/* Pills */
.wcc-style-pills .wcc-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
}

.wcc-align-left.wcc-style-pills .wcc-list {
	justify-content: flex-start;
}

.wcc-align-space-between.wcc-style-pills .wcc-list {
	justify-content: space-between;
}

.wcc-style-pills .wcc-item {
	max-width: none;
	width: auto;
}

.wcc-style-pills .wcc-link {
	flex-direction: row;
	background: var(--wcc-bg);
	border-radius: 999px;
	padding: 0.35rem 0.85rem 0.35rem 0.35rem;
	gap: 0.5rem;
}

.wcc-style-pills .wcc-media {
	width: 32px;
	height: 32px;
}

.wcc-style-pills .wcc-thumb {
	border-radius: 50%;
}

.wcc-style-pills .wcc-name {
	font-size: 0.85rem;
	white-space: nowrap;
}

/* Tiles — Woo-like category cards, but above the product grid */
.wcc-style-tiles .wcc-list {
	display: grid;
	grid-template-columns: repeat(var(--wcc-cols-desk), minmax(0, 1fr));
	gap: 1rem;
}

.wcc-style-tiles .wcc-item {
	flex: none;
	max-width: none;
	width: auto;
}

.wcc-style-tiles .wcc-link {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	gap: 0;
}

.wcc-style-tiles .wcc-media {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	max-width: none;
}

.wcc-style-tiles .wcc-name,
.wcc-style-tiles .wcc-count {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.65rem 0.75rem;
	margin: 0;
	color: #fff;
	text-align: center;
	z-index: 1;
}

.wcc-style-tiles .wcc-name {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.wcc-style-tiles .wcc-count {
	bottom: auto;
	top: 0.5rem;
	left: auto;
	right: 0.5rem;
	width: auto;
	padding: 0.15rem 0.45rem;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 999px;
	font-size: 0.7rem;
}

.wcc-style-tiles .wcc-link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.45));
	pointer-events: none;
}

/* Banners — wide photo + caption overlay */
.wcc-style-banners .wcc-list {
	display: grid;
	grid-template-columns: repeat(var(--wcc-cols-desk), minmax(0, 1fr));
	gap: 0.75rem;
}

.wcc-style-banners .wcc-item {
	flex: none;
	max-width: none;
}

.wcc-style-banners .wcc-link {
	position: relative;
	min-height: 140px;
	overflow: hidden;
	border-radius: 16px;
	gap: 0;
}

.wcc-style-banners .wcc-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
}

.wcc-style-banners .wcc-name {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding: 2.5rem 1rem 0.9rem;
	width: 100%;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.wcc-style-banners .wcc-count {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	z-index: 1;
	color: #fff;
	background: var(--wcc-accent);
	color: var(--wcc-text);
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	font-size: 0.7rem;
}

/* Minimal — names only */
.wcc-style-minimal .wcc-media {
	display: none;
}

.wcc-style-minimal .wcc-item {
	flex: 0 1 auto;
	max-width: none;
}

.wcc-style-minimal .wcc-link {
	flex-direction: row;
	gap: 0.35rem;
	padding: 0.35rem 0.15rem;
	border-bottom: 2px solid transparent;
}

.wcc-style-minimal .wcc-item.is-current .wcc-link,
.wcc-style-minimal .wcc-link:hover {
	border-bottom-color: var(--wcc-accent);
}

.wcc-style-minimal .wcc-name {
	font-size: 0.95rem;
}

@media (max-width: 921px) {
	.wcc-style-tiles .wcc-list,
	.wcc-style-banners .wcc-list {
		grid-template-columns: repeat(var(--wcc-cols-tab), minmax(0, 1fr));
	}

	.wcc-list {
		gap: 1rem;
	}

	.wcc-item {
		flex: 0 1 calc((100% - (var(--wcc-cols-tab) - 1) * 1rem) / var(--wcc-cols-tab));
		max-width: calc((100% - (var(--wcc-cols-tab) - 1) * 1rem) / var(--wcc-cols-tab));
	}
}

@media (max-width: 781px) {
	.wcc-child-cats {
		margin-top: min(var(--wcc-space-top), 20px);
		margin-bottom: min(var(--wcc-space-bottom), 24px);
	}

	.wcc-list {
		gap: 12px 8px;
		justify-content: center;
	}

	.wcc-item {
		flex: 0 0 calc((100% - 8px) / var(--wcc-cols-mob));
		max-width: calc((100% - 8px) / var(--wcc-cols-mob));
		min-width: 0;
	}

	.wcc-link {
		gap: 0.4rem;
		width: 100%;
	}

	.wcc-media {
		width: min(var(--wcc-img-mob), var(--wcc-img), 42vw);
		height: min(var(--wcc-img-mob), var(--wcc-img), 42vw);
	}

	.wcc-style-tiles .wcc-list,
	.wcc-style-banners .wcc-list {
		display: grid;
		grid-template-columns: repeat(var(--wcc-cols-mob), minmax(0, 1fr));
	}

	.wcc-style-tiles .wcc-item,
	.wcc-style-banners .wcc-item {
		flex: none;
		max-width: none;
		width: auto;
	}

	.wcc-style-tiles .wcc-media,
	.wcc-style-banners .wcc-media {
		width: 100%;
		height: 100%;
		max-width: none;
	}

	.wcc-style-banners .wcc-link {
		min-height: 110px;
	}

	.wcc-name {
		font-size: 0.8rem;
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.wcc-style-pills .wcc-item {
		flex: 0 1 auto;
		max-width: 100%;
	}

	.wcc-style-pills .wcc-name {
		white-space: normal;
	}
}
