/* SJ Learn Marketplace — public catalog */

.sjlm-catalog {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.sjlm-header {
	margin-bottom: 1.5rem;
}
.sjlm-title {
	margin: 0 0 .25rem;
	font-size: 2rem;
	color: #1a1a2e;
}
.sjlm-meta {
	color: #555;
	margin: 0;
	font-size: .95rem;
}

/* ── Toolbar ──────────────────────────────────────────────────────────── */
.sjlm-toolbar {
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
	padding: 1rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}
.sjlm-toolbar .sjlm-search {
	flex: 1 1 280px;
	padding: .6rem .9rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: .95rem;
}
.sjlm-toolbar .sjlm-category,
.sjlm-toolbar .sjlm-sort {
	padding: .6rem .9rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	font-size: .95rem;
}

/* ── Grid ─────────────────────────────────────────────────────────────── */
.sjlm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.sjlm-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}
.sjlm-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.sjlm-card-thumb {
	height: 160px;
	background-size: cover;
	background-position: center;
	background-color: #e2e8f0;
}
.sjlm-card-thumb-empty {
	background-image: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.sjlm-card-body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.sjlm-card-cat {
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #2563eb;
	letter-spacing: .05em;
	margin-bottom: .35rem;
}
.sjlm-card-title {
	margin: 0 0 .5rem;
	font-size: 1.1rem;
	line-height: 1.3;
	color: #1a1a2e;
}
.sjlm-card-teacher {
	color: #64748b;
	font-size: .85rem;
	margin-bottom: .75rem;
}
.sjlm-card-footer {
	margin-top: auto;
	display: flex;
	align-items: baseline;
	gap: .5rem;
}
.sjlm-price {
	font-weight: 700;
	font-size: 1.1rem;
	color: #1a1a2e;
}
.sjlm-price-free {
	color: #16a34a;
}
.sjlm-price-strike {
	font-size: .9rem;
	color: #94a3b8;
	text-decoration: line-through;
}

/* ── Empty / loading states ───────────────────────────────────────────── */
.sjlm-empty,
.sjlm-loading {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem 1rem;
	color: #64748b;
	font-size: 1rem;
}

/* ── Pagination ───────────────────────────────────────────────────────── */
.sjlm-pages {
	display: flex;
	justify-content: center;
	gap: .25rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}
.sjlm-page {
	min-width: 36px;
	padding: .4rem .7rem;
	border: 1px solid #cbd5e1;
	background: #fff;
	border-radius: 5px;
	cursor: pointer;
	font-size: .9rem;
}
.sjlm-page:hover {
	border-color: #2563eb;
	color: #2563eb;
}
.sjlm-page-active {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}
