/* Treatment Showcase - front-end styles */

.ts-wrap {
	--ts-primary: #1C657A;
	--ts-primary-light: #e8f1f2;
	--ts-border: #e4e4e4;
	--ts-text: #1a1a1a;
	--ts-muted: #8a8a8a; 

	display: flex;
	align-items: flex-start;
	gap: 28px;
	font-family: 'Manrope', sans-serif;
	color: var(--ts-text);
	background: #ffffff;
	box-sizing: border-box;
}

.ts-wrap *,
.ts-wrap *::before,
.ts-wrap *::after {
	box-sizing: border-box;
}

/* Sidebar */
.ts-sidebar {
	width: 230px;
	flex-shrink: 0;
}

.ts-sidebar-label {
	font-size: 11px;
	letter-spacing: 0.09em;
	color: var(--ts-muted);
	text-transform: uppercase;
	margin-bottom: 14px;
	font-weight: 700;
}

.ts-cat-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ts-cat-btn {
	text-align: left;
	padding: 14px 16px;
	border-radius: 10px;
	border: none;
	background: #DCB557;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	color: #ffffff;
	transition: background-color .15s ease, color .15s ease;
}

.ts-cat-btn:hover {
	background: #1C657A;
	color: #ffffff;
}

.ts-cat-btn.active {
	background: #1C657A;
	border: none;
	color: #ffffff;
	font-weight: 700;
}

/* Main content */
.ts-main {
	flex: 1;
	min-width: 0;
}

.ts-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.ts-cat-title {
	font-family: 'Aboreto', serif;
	font-weight: 400;
	font-size: 26px;
	margin: 0;
	color: var(--ts-text);
}

.ts-count {
	color: var(--ts-muted);
	font-size: 14px;
	font-family: 'Manrope', sans-serif;
}

.ts-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 26px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ts-border);
	max-width: 100%;
}

.ts-pill {
	font-family: 'Manrope', sans-serif;
	padding: 9px 18px;
	border-radius: 999px;
	border: none;
	background: #DCB557;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	color: #ffffff;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}

.ts-pill:hover {
	background: #1C657A;
	color: #ffffff;
	border-radius: 999px;
}

.ts-pill.active {
	background: #1C657A;
	border: none;
	color: #ffffff;
	font-weight: 700;
}

/* Grid + cards */
.ts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.ts-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--ts-border);
	border-radius: 14px;
	overflow: hidden;
	background: #ffffff;
	transition: box-shadow .2s ease, transform .2s ease;
}

.ts-card:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.ts-card-img {
	height: 175px;
	background-color: #f2f2f2;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: repeating-linear-gradient(45deg, #ececec, #ececec 10px, #f6f6f6 10px, #f6f6f6 20px);
}

.ts-noimg {
	color: #b7b7b7;
	font-family: monospace;
	font-size: 13px;
	letter-spacing: 0.05em;
}

.ts-card-body {
	padding: 18px 20px 20px;
}

.ts-card-body h3 {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 17px;
	margin: 0 0 8px;
	color: var(--ts-text);
}

.ts-card-body p {
	font-family: 'Manrope', sans-serif;
	font-weight: 400;
	color: var(--ts-muted);
	font-size: 13.5px;
	line-height: 1.5;
	margin: 0 0 18px;
	min-height: 38px;
}

.ts-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ts-badge {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid var(--ts-primary);
	color: var(--ts-primary);
	background: #ffffff;
}

.ts-arrow {
	color: var(--ts-text);
	font-size: 17px;
	line-height: 1;
}

.ts-empty {
	color: var(--ts-muted);
	padding: 50px 0;
	text-align: center;
	font-family: 'Manrope', sans-serif;
}

/* Responsive */
@media (max-width: 900px) {
	.ts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 680px) {
	.ts-wrap {
		flex-direction: column;
		gap: 20px;
	}

	.ts-sidebar {
		width: 100%;
	}

	.ts-main {
		width: 100%;
		min-width: 0;
	}

	.ts-grid {
		grid-template-columns: 1fr;
	}

	.ts-pills {
		flex-wrap: nowrap;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
		padding-bottom: 14px;
		scrollbar-width: thin;
	}

	.ts-pills::-webkit-scrollbar {
		height: 4px;
	}

	.ts-pill {
		flex-shrink: 0;
	}

	.ts-cat-title {
		font-size: 22px;
	}
}
