/* Hometex - Mobile category slider */

.ht-mcs {
	display: none;
}

@media (max-width: 1024px) {
	.ht-mcs {
		--ht-mcs-accent: var(--wd-primary-color, #e07b7b);
		--ht-mcs-pill-bg: #fff;
		--ht-mcs-pill-border: #e2e2e2;
		--ht-mcs-text: #333;
		--ht-mcs-muted: #777;
		display: block;
		margin: 0 0 15px;
	}

	.ht-mcs-row {
		position: relative;
		display: flex;
		align-items: center;
		gap: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		/* soft fade on the right edge = "there is more" hint */
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
	}

	.ht-mcs-row::-webkit-scrollbar {
		display: none;
	}

	/* Row 1: pills */
	.ht-mcs a.ht-mcs-pill {
		flex: 0 0 auto;
		scroll-snap-align: start;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 8px 16px;
		border-radius: 999px;
		background: var(--ht-mcs-pill-bg);
		border: 1px solid var(--ht-mcs-pill-border);
		color: var(--ht-mcs-text);
		font-size: 14px;
		font-weight: 500;
		line-height: 1.2;
		white-space: nowrap;
		text-decoration: none;
		transition: background-color .2s, border-color .2s, color .2s;
	}

	.ht-mcs a.ht-mcs-pill.is-active {
		background: var(--ht-mcs-accent);
		border-color: var(--ht-mcs-accent);
		color: #fff;
	}

	.ht-mcs-caret {
		width: 6px;
		height: 6px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .2s;
	}

	.ht-mcs-pill.is-active .ht-mcs-caret {
		transform: translateY(2px) rotate(-135deg);
	}

	/* Row 2: tabs */
	.ht-mcs-tabs {
		gap: 22px;
		margin-top: 12px;
		box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
	}

	.ht-mcs a.ht-mcs-tab {
		flex: 0 0 auto;
		scroll-snap-align: start;
		padding: 6px 0 9px;
		border-bottom: 2px solid transparent;
		color: var(--ht-mcs-muted);
		font-size: 14px;
		font-weight: 500;
		line-height: 1.2;
		white-space: nowrap;
		text-decoration: none;
		transition: color .2s, border-color .2s;
	}

	.ht-mcs a.ht-mcs-tab.is-active {
		color: var(--ht-mcs-accent);
		border-bottom-color: var(--ht-mcs-accent);
		font-weight: 600;
	}
}

/* Elementor editor placeholder */
.ht-mcs-placeholder {
	padding: 10px;
	border: 1px dashed #ccc;
	color: #888;
	font-size: 12px;
	text-align: center;
}
