/* Taskdale Shop Discovery */
.tdsd {
	--tdsd-accent: var(--ast-global-color-0, #0b5cff);
	--tdsd-text: #1f2937;
	--tdsd-muted: #6b7280;
	--tdsd-line: #d9dde4;
	--tdsd-soft: #f4f6fa;
	clear: both;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0 0 30px;
}

/* ---------- Search ---------- */
.tdsd .tdsd-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 720px;
	margin: 0;
	padding: 5px 5px 5px 16px;
	background: #fff;
	border: 1px solid var(--tdsd-line);
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tdsd .tdsd-search:focus-within {
	border-color: var(--tdsd-accent);
	box-shadow: 0 0 0 4px rgba(11, 92, 255, .12);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--tdsd-accent) 16%, transparent);
}
.tdsd .tdsd-icon { flex: none; color: var(--tdsd-muted); }
.tdsd .tdsd-search input.tdsd-input {
	flex: 1 1 auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	font-size: 16px;
	line-height: 1.3;
	color: var(--tdsd-text);
}
.tdsd .tdsd-search input.tdsd-input::-webkit-search-cancel-button { cursor: pointer; }
.tdsd .tdsd-search .tdsd-btn {
	flex: none;
	margin: 0;
	padding: 11px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--tdsd-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: filter .15s ease;
}
.tdsd .tdsd-search .tdsd-btn:hover { filter: brightness(.92); }

/* ---------- Live results ---------- */
.tdsd .tdsd-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	z-index: 9999;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
}
.tdsd .tdsd-results[hidden] { display: none; }
.tdsd .tdsd-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	color: var(--tdsd-text);
	text-decoration: none;
}
.tdsd .tdsd-item:hover,
.tdsd .tdsd-item.is-active { background: var(--tdsd-soft); }
.tdsd .tdsd-item img {
	flex: none;
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 8px;
	background: var(--tdsd-soft);
}
.tdsd .tdsd-info { min-width: 0; flex: 1 1 auto; }
.tdsd .tdsd-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}
.tdsd .tdsd-meta { margin-top: 2px; font-size: 12px; color: var(--tdsd-muted); }
.tdsd .tdsd-price { flex: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tdsd .tdsd-price del { opacity: .55; font-weight: 400; margin-right: 4px; }
.tdsd .tdsd-price ins { text-decoration: none; }
.tdsd .tdsd-name mark {
	background: rgba(11, 92, 255, .14);
	background: color-mix(in srgb, var(--tdsd-accent) 18%, transparent);
	color: inherit;
	padding: 0 1px;
	border-radius: 3px;
}
.tdsd .tdsd-all {
	display: block;
	padding: 12px 14px;
	border-top: 1px solid #eef0f3;
	font-size: 14px;
	font-weight: 600;
	color: var(--tdsd-accent);
	text-decoration: none;
}
.tdsd .tdsd-all:hover,
.tdsd .tdsd-all.is-active { background: var(--tdsd-soft); }
.tdsd .tdsd-msg { padding: 14px; font-size: 14px; color: var(--tdsd-muted); }

/* ---------- Category pills ---------- */
.tdsd .tdsd-label {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tdsd-muted);
}
.tdsd ul.tdsd-pills {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tdsd ul.tdsd-pills li { margin: 0; padding: 0; }
.tdsd a.tdsd-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 15px;
	border: 1px solid var(--tdsd-line);
	border-radius: 999px;
	background: #fff;
	color: var(--tdsd-text);
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.tdsd a.tdsd-pill:hover { border-color: var(--tdsd-accent); color: var(--tdsd-accent); }
.tdsd a.tdsd-pill.is-active {
	background: var(--tdsd-accent);
	border-color: var(--tdsd-accent);
	color: #fff;
}
.tdsd .tdsd-count {
	font-size: 12px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--tdsd-soft);
	color: var(--tdsd-muted);
}
.tdsd a.tdsd-pill.is-active .tdsd-count { background: rgba(255, 255, 255, .22); color: #fff; }

.tdsd ul.tdsd-sub { margin-top: 12px; }
.tdsd a.tdsd-pill.is-sub { padding: 6px 13px; font-size: 13px; background: var(--tdsd-soft); border-color: transparent; }
.tdsd a.tdsd-pill.is-sub:hover { border-color: var(--tdsd-accent); }
.tdsd a.tdsd-pill.is-sub.is-active { background: var(--tdsd-text); border-color: var(--tdsd-text); color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	.tdsd { gap: 14px; margin-bottom: 22px; }
	.tdsd .tdsd-search { padding-left: 12px; }
	.tdsd .tdsd-search .tdsd-btn { padding: 10px 16px; font-size: 14px; }
	.tdsd ul.tdsd-pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 2px;
	}
	.tdsd ul.tdsd-pills::-webkit-scrollbar { display: none; }
	.tdsd ul.tdsd-pills li { flex: none; }
	.tdsd .tdsd-item img { width: 46px; height: 46px; }
}
