/**
 * Переключатели подкатегорий на странице категории WooCommerce.
 */

.catalog-subcats {
	margin: 16px 0;
}

/* Виджет Shortcode в Elementor уже даёт отступы секции/колонки — дублировать 40px не нужно. */
.elementor-widget-shortcode .catalog-subcats {
	margin: 0;
}

.catalog-subcats__inner {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	align-items: center;
}

.catalog-subcats__item {
	box-sizing: border-box;
	padding: 12px 35px;
	border: 1px solid #e5e5e5;
	border-radius: 30px;
	background: #fff;
	font-weight: 590;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	color: #111;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.catalog-subcats__item:hover {
	padding: 12px 35px;
	border-radius: 30px;
	background: #8e8e93;
	border-color: #8e8e93;
	color: #fff;
	opacity: 1;
}

a.catalog-subcats__item:nth-child(n + 9) {
	display: none;
}

.catalog-subcats ._show-all {
	padding: 12px 35px;
	border: 1px solid #e5e5e5;
	border-radius: 30px;
	background: #fff;
	cursor: pointer;
	font-family: inherit;
	font-weight: 590;
	font-size: 16px;
	line-height: 1;
	color: #111;
	text-transform: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.catalog-subcats ._show-all:hover {
	padding: 12px 35px;
	border-radius: 30px;
	background: #8e8e93;
	border-color: #8e8e93;
	color: #fff;
}

@media (max-width: 991px) {
	.catalog-subcats__inner {
		gap: 10px;
	}

	.catalog-subcats__item,
	.catalog-subcats__item:hover,
	.catalog-subcats ._show-all,
	.catalog-subcats ._show-all:hover {
		padding: 10px 22px;
	}
}
