/* [CHANGE][2026-11-19] Redesigned AI category page (DicardoFront cat-standalone ai-cat), scoped to .ai-page
 * Hero slider + breadcrumb: assets/main/css/components/ui-kit.css; header + toolbar: category-page.css (product hub).
 * The design's compare tray and compare modal are not ported (no comparison data). */

.ai-page {
	--space-9: 0.5625rem;
	--space-10: 0.625rem;
	--space-11: 0.6875rem;
	--space-12: 0.75rem;
	--space-13: 0.8125rem;
	--space-14: 0.875rem;
	--space-15: 0.9375rem;
	--space-16: 1rem;
	--space-17: 1.0625rem;
	--space-18: 1.125rem;
	--space-20: 1.25rem;
	--space-22: 1.375rem;
	--space-26: 1.625rem;
	--space-34: 2.125rem;
	--violet-50: #f1efff;
	--violet-75: #f3f0ff;
	--violet-100: #f0ecff;
	--violet-125: #f0ecf9;
	--violet-150: #ebe6f5;
	--violet-300: #c4b5fd;
	--violet-400: #a78bfa;
	--violet-500: #8b5cf6;
	--violet-600: #7c3aed;
	--navy-400: #2a2560;
	--navy-500: #1a1a2e;
	--navy-600: #1e1b4b;
	--navy-700: #15123a;
	--navy-800: #0f0b48;
	--navy-900: #070525;
	--lavender-300: #c7c5ee;
	--amber-500: #f59e0b;
	--amber-600: #d97706;
	--emerald-500: #10b981;
	--emerald-600: #059669;
	--red-500: #ef4444;
}

.ai-page *,
.ai-page *::before,
.ai-page *::after {
	box-sizing: border-box;
}

.ai-page h2,
.ai-page h3,
.ai-page p {
	margin: 0;
}

.ai-page .icon {
	fill: none;
	stroke: currentColor;
}

.ai-page .ai-hero {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 18px 0 24px;
	direction: rtl;
}
.ai-page .ai-hero__banner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 24px;
	align-items: center;
	padding: 22px 26px;
	background: linear-gradient(135deg, #faf5ff 0%, #fce7f3 50%, #fef3c7 100%);
	border: 1px solid rgba(168, 85, 247, 0.18);
	border-radius: 20px;
	overflow: hidden;
	isolation: isolate;
}
.ai-page .ai-hero__banner-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	z-index: -1;
	pointer-events: none;
	opacity: 0.55;
}
.ai-page .ai-hero__banner-glow--a {
	top: -80px;
	right: -60px;
	width: 240px;
	height: 240px;
	background: radial-gradient(circle, rgba(236, 72, 153, 0.5), transparent 60%);
	animation: ac-glow 7s ease-in-out infinite;
}
.ai-page .ai-hero__banner-glow--b {
	bottom: -90px;
	left: -70px;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 60%);
	animation: ac-glow 9s ease-in-out infinite reverse;
}
@keyframes ac-glow {
	0%, 100% {
		transform: scale(1);
		opacity: 0.45;
	}
	50% {
		transform: scale(1.18);
		opacity: 0.85;
	}
}
.ai-page .ai-hero__banner-text {
	min-width: 0;
}
.ai-page .ai-hero__banner-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	font-size: var(--space-12);
	font-weight: 800;
	color: #fff;
	background: linear-gradient(90deg, #7c3aed, #db2777);
	border-radius: 999px;
	margin-bottom: 12px;
}
.ai-page .ai-hero__banner-title {
	font-size: var(--space-22);
	font-weight: 900;
	line-height: 1.5;
	color: #0f0b48;
	margin: 0 0 8px;
}
.ai-page .ai-hero__banner-title strong {
	background: linear-gradient(120deg, #7c3aed, #db2777);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ai-page .ai-hero__banner-sub {
	font-size: var(--space-13);
	line-height: 1.85;
	color: #475569;
	margin: 0;
	max-width: 420px;
}
.ai-page .ai-hero__banner-picks {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ai-page .ai-hero__pick {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 14px;
	text-decoration: none;
	color: #0f0b48;
	transition: all 0.22s ease;
}
.ai-page .ai-hero__pick:hover {
	transform: translateX(-4px);
	background: #fff;
	border-color: rgba(124, 58, 237, 0.3);
	box-shadow: 0 12px 28px -14px rgba(124, 58, 237, 0.4);
}
.ai-page .ai-hero__pick-num {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	font-size: var(--space-11);
	font-weight: 900;
	color: #fff;
	border-radius: 7px;
	background: linear-gradient(135deg, #7c3aed, #db2777);
}
.ai-page .ai-hero__pick-ico {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #fff;
	display: grid;
	place-items: center;
	padding: 5px;
	border: 1px solid rgba(0, 0, 0, 0.05);
}
.ai-page .ai-hero__pick-ico img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ai-page .ai-hero__pick-ico--svg {
	padding: 8px;
	color: #7c3aed;
}
.ai-page .ai-hero__pick[data-color=green] .ai-hero__pick-ico--svg {
	color: #16a34a;
	background: #d1fae5;
}
.ai-page .ai-hero__pick[data-color=purple] .ai-hero__pick-ico--svg {
	color: var(--violet-600);
	background: #ede9fe;
}
.ai-page .ai-hero__pick[data-color=pink] .ai-hero__pick-ico--svg {
	color: #db2777;
	background: #fce7f3;
}
.ai-page .ai-hero__pick-body {
	flex: 1 1 auto;
	min-width: 0;
}
.ai-page .ai-hero__pick-body strong {
	display: block;
	font-size: var(--space-13);
	font-weight: 800;
	color: #0f0b48;
	margin-bottom: 2px;
}
.ai-page .ai-hero__pick-body small {
	display: block;
	font-size: var(--space-11);
	color: #64748b;
}
.ai-page .ai-filter {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 16px;
	box-shadow: 0 6px 20px -12px rgba(15, 11, 72, 0.08);
}
.ai-page .ai-filter__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
}
.ai-page .ai-filter__label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: var(--space-12);
	font-weight: 800;
	color: #0f0b48;
}
.ai-page .ai-filter__label svg {
	color: #7c3aed;
}
.ai-page .ai-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ai-page .ai-filter__chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	font-size: var(--space-12);
	font-weight: 700;
	color: #475569;
	background: #f8fafc;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.18s ease;
}
.ai-page .ai-filter__chip:hover {
	color: #7c3aed;
	border-color: rgba(124, 58, 237, 0.3);
}
.ai-page .ai-filter__chip--active {
	color: #fff !important;
	background: linear-gradient(90deg, #7c3aed, #db2777) !important;
	border-color: transparent !important;
	box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.5);
}
.ai-page .ai-filter__chip--toggle {
	padding: 6px 12px;
	background: rgba(245, 158, 11, 0.08);
	border-color: rgba(245, 158, 11, 0.25);
	color: #b45309;
}
.ai-page .ai-filter__chip--toggle svg {
	color: var(--amber-500);
}
.ai-page .ai-filter__chip--toggle:hover {
	color: #fff;
	background: linear-gradient(90deg, var(--amber-500), var(--amber-600));
	border-color: transparent;
}
.ai-page .ai-filter__chip--toggle:hover svg {
	color: #fff;
}
.ai-page .ai-filter__chip--toggle.is-on {
	color: #fff;
	background: linear-gradient(90deg, var(--amber-500), var(--amber-600)) !important;
	border-color: transparent !important;
	box-shadow: 0 6px 16px -6px rgba(217, 119, 6, 0.6);
}
.ai-page .ai-filter__chip--toggle.is-on svg {
	color: #fff;
}
.ai-page .ai-filter__divider {
	width: 1px;
	height: 22px;
	background: rgba(0, 0, 0, 0.08);
	margin: 0 4px;
}
.ai-page .ai-filter__tagline {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	background: linear-gradient(90deg, rgba(124, 58, 237, 0.06), rgba(219, 39, 119, 0.04));
	border-right: 3px solid #7c3aed;
	border-radius: 10px;
	font-size: var(--space-13);
	color: #475569;
}
.ai-page .ai-filter__tagline svg {
	color: #7c3aed;
	flex-shrink: 0;
}
.ai-page .ai-filter__tagline strong {
	color: #0f0b48;
	font-weight: 800;
}
.ai-page .ai-filter__tagline-text {
	transition: opacity 0.25s ease;
}
@media (max-width: 900px) {
	.ai-page .ai-hero__banner {
		grid-template-columns: 1fr;
	}
	.ai-page .ai-hero__banner-title {
		font-size: var(--space-18);
	}
}
@media (max-width: 560px) {
	.ai-page .ai-hero__banner {
		padding: 18px 16px;
	}
	.ai-page .ai-filter {
		padding: 12px 14px;
	}
	.ai-page .ai-filter__chip {
		font-size: var(--space-11);
		padding: 5px 10px;
	}
}
[data-theme=dark] .ai-page .ai-hero__banner {
	background: linear-gradient(135deg, rgba(76, 29, 149, 0.3), rgba(190, 24, 93, 0.2));
	border-color: rgba(167, 139, 250, 0.25);
}
[data-theme=dark] .ai-page .ai-hero__banner-title {
	color: var(--violet-50);
}
[data-theme=dark] .ai-page .ai-hero__banner-sub {
	color: rgba(255, 255, 255, 0.72);
}
[data-theme=dark] .ai-page .ai-hero__pick {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.08);
	color: var(--violet-50);
}
[data-theme=dark] .ai-page .ai-hero__pick:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(167, 139, 250, 0.4);
}
[data-theme=dark] .ai-page .ai-hero__pick-body strong {
	color: var(--violet-50);
}
[data-theme=dark] .ai-page .ai-hero__pick-body small {
	color: rgba(255, 255, 255, 0.6);
}
[data-theme=dark] .ai-page .ai-hero__pick-ico {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .ai-page .ai-filter {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}
[data-theme=dark] .ai-page .ai-filter__label {
	color: var(--violet-50);
}
[data-theme=dark] .ai-page .ai-filter__label svg {
	color: var(--violet-300);
}
[data-theme=dark] .ai-page .ai-filter__chip {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.78);
}
[data-theme=dark] .ai-page .ai-filter__chip:hover {
	color: var(--violet-300);
	border-color: rgba(167, 139, 250, 0.4);
}
[data-theme=dark] .ai-page .ai-filter__divider {
	background: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .ai-page .ai-filter__tagline {
	background: linear-gradient(90deg, rgba(124, 58, 237, 0.15), rgba(219, 39, 119, 0.08));
	color: rgba(255, 255, 255, 0.82);
	border-right-color: var(--violet-400);
}
[data-theme=dark] .ai-page .ai-filter__tagline strong {
	color: var(--violet-50);
}
[data-theme=dark] .ai-page .ai-filter__tagline svg {
	color: var(--violet-300);
}
@media (max-width: 768px) {
	.ai-page .ai-hero {
		gap: 12px;
		margin: 10px 0 16px;
	}
	.ai-page .ai-hero__banner {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 16px 14px;
		border-radius: 14px;
	}
	.ai-page .ai-hero__banner-glow--a {
		width: 160px;
		height: 160px;
		top: -60px;
		right: -40px;
	}
	.ai-page .ai-hero__banner-glow--b {
		width: 180px;
		height: 180px;
		bottom: -70px;
		left: -50px;
	}
	.ai-page .ai-hero__banner-eyebrow {
		font-size: var(--space-10);
		padding: 4px 10px;
		margin-bottom: 9px;
	}
	.ai-page .ai-hero__banner-title {
		font-size: var(--space-17);
		margin-bottom: 6px;
		line-height: 1.45;
	}
	.ai-page .ai-hero__banner-sub {
		font-size: var(--space-12);
		line-height: 1.7;
	}
	.ai-page .ai-hero__banner-picks {
		gap: 6px;
	}
	.ai-page .ai-hero__pick {
		padding: 9px 11px;
		gap: 9px;
		border-radius: 11px;
	}
	.ai-page .ai-hero__pick:hover {
		transform: none;
	}
	.ai-page .ai-hero__pick-num {
		width: 24px;
		height: 24px;
		font-size: var(--space-11);
	}
	.ai-page .ai-hero__pick-ico {
		width: 32px;
		height: 32px;
		min-width: 32px;
		border-radius: 9px;
	}
	.ai-page .ai-hero__pick-ico svg {
		width: 16px !important;
		height: 16px !important;
	}
	.ai-page .ai-hero__pick-body strong {
		font-size: var(--space-12);
	}
	.ai-page .ai-hero__pick-body small {
		font-size: var(--space-11);
	}
	.ai-page .ai-filter {
		padding: 12px;
		gap: 12px;
		border-radius: 13px;
	}
	.ai-page .ai-filter__row {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.ai-page .ai-filter__label {
		font-size: var(--space-12);
		font-weight: 800;
		gap: 5px;
	}
	.ai-page .ai-filter__label svg {
		width: 12px !important;
		height: 12px !important;
		flex-shrink: 0;
	}
	.ai-page .ai-filter__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		gap: 6px;
		padding-bottom: 2px;
		margin: 0 -12px;
		padding-left: 12px;
		padding-right: 12px;
	}
	.ai-page .ai-filter__chips::-webkit-scrollbar {
		display: none;
	}
	.ai-page .ai-filter__chip {
		font-size: var(--space-12);
		padding: 6px 11px;
		gap: 4px;
		flex-shrink: 0;
		white-space: nowrap;
	}
	.ai-page .ai-filter__chip--toggle {
		padding: 6px 11px;
		align-self: flex-start;
	}
	.ai-page .ai-filter__chip--toggle svg {
		width: 11px !important;
		height: 11px !important;
	}
	.ai-page .ai-filter__divider {
		display: none;
	}
	.ai-page .ai-filter__tagline {
		font-size: var(--space-11);
		padding: 9px 12px;
		line-height: 1.7;
		gap: 6px;
		border-right-width: 2px;
		align-items: flex-start;
	}
	.ai-page .ai-filter__tagline svg {
		width: 12px !important;
		height: 12px !important;
		flex-shrink: 0;
		margin-top: 2px;
	}
}
@media (max-width: 575px) {
	.ai-page .ai-hero {
		margin: 6px 0 12px;
		gap: 10px;
	}
	.ai-page .ai-hero__banner {
		padding: 14px 12px;
	}
	.ai-page .ai-hero__banner-title {
		font-size: var(--space-16);
	}
	.ai-page .ai-hero__banner-sub {
		font-size: var(--space-12);
	}
	.ai-page .ai-hero__pick {
		padding: 8px 10px;
		gap: 8px;
	}
	.ai-page .ai-hero__pick-ico {
		width: 28px;
		height: 28px;
		min-width: 28px;
	}
	.ai-page .ai-hero__pick-ico svg {
		width: 14px !important;
		height: 14px !important;
	}
	.ai-page .ai-hero__pick-body strong {
		font-size: var(--space-12);
	}
	.ai-page .ai-hero__pick-body small {
		font-size: var(--space-10);
	}
	.ai-page .ai-filter {
		padding: 10px;
		gap: 10px;
	}
	.ai-page .ai-filter__chips {
		margin: 0 -10px;
		padding-left: 10px;
		padding-right: 10px;
	}
	.ai-page .ai-filter__chip {
		font-size: var(--space-11);
		padding: 5px 9px;
	}
}
@media (max-width: 768px) {
	.ai-page .ai-products {
		padding-bottom: 80px;
	}
	.ai-page .ai-products__tag {
		font-size: var(--space-10);
		padding: 2px 7px;
	}
	.ai-page .ai-products .pagination {
		gap: 4px;
		flex-wrap: wrap;
		margin-top: 18px;
	}
	.ai-page .ai-products .pagination li a.item {
		width: 32px;
		height: 32px;
		font-size: var(--space-12);
	}
}
.ai-page .ai-products {
	margin-bottom: 30px;
}
.ai-page .ai-products__grid {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.ai-page .ai-products__card {
	position: relative;
	display: flex;
	align-items: stretch;
	border-radius: 20px;
	background: #fff;
	border: 1.5px solid var(--violet-125);
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-page .ai-products__card-link {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
}
.ai-page .ai-products__card-glow {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 0;
	pointer-events: none;
}
.ai-page .ai-products__card[data-gradient=purple] .ai-products__card-glow {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(139, 92, 246, 0.01) 100%);
}
.ai-page .ai-products__card[data-gradient=purple]:hover {
	border-color: var(--violet-300);
}
.ai-page .ai-products__card[data-gradient=purple]:hover .ai-products__card-glow {
	opacity: 1;
}
.ai-page .ai-products__card[data-gradient=purple]:hover .ai-products__card-logo {
	background: linear-gradient(135deg, var(--violet-75), #ede9fe);
}
.ai-page .ai-products__card[data-gradient=purple]:hover .ai-products__card-btn {
	background: linear-gradient(135deg, var(--violet-500), #6d28d9);
	color: #fff;
}
.ai-page .ai-products__card[data-gradient=pink] .ai-products__card-glow {
	background: linear-gradient(135deg, rgba(236, 72, 153, 0.04) 0%, rgba(236, 72, 153, 0.01) 100%);
}
.ai-page .ai-products__card[data-gradient=pink]:hover {
	border-color: #f9a8d4;
}
.ai-page .ai-products__card[data-gradient=pink]:hover .ai-products__card-glow {
	opacity: 1;
}
.ai-page .ai-products__card[data-gradient=pink]:hover .ai-products__card-logo {
	background: linear-gradient(135deg, #fdf2f8, #fce7f3);
}
.ai-page .ai-products__card[data-gradient=pink]:hover .ai-products__card-btn {
	background: linear-gradient(135deg, #ec4899, #db2777);
	color: #fff;
}
.ai-page .ai-products__card[data-gradient=blue] .ai-products__card-glow {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0.01) 100%);
}
.ai-page .ai-products__card[data-gradient=blue]:hover {
	border-color: #93c5fd;
}
.ai-page .ai-products__card[data-gradient=blue]:hover .ai-products__card-glow {
	opacity: 1;
}
.ai-page .ai-products__card[data-gradient=blue]:hover .ai-products__card-logo {
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.ai-page .ai-products__card[data-gradient=blue]:hover .ai-products__card-btn {
	background: linear-gradient(135deg, #3b82f6, #1d4ed8);
	color: #fff;
}
.ai-page .ai-products__card[data-gradient=emerald] .ai-products__card-glow {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(16, 185, 129, 0.01) 100%);
}
.ai-page .ai-products__card[data-gradient=emerald]:hover {
	border-color: #6ee7b7;
}
.ai-page .ai-products__card[data-gradient=emerald]:hover .ai-products__card-glow {
	opacity: 1;
}
.ai-page .ai-products__card[data-gradient=emerald]:hover .ai-products__card-logo {
	background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}
.ai-page .ai-products__card[data-gradient=emerald]:hover .ai-products__card-btn {
	background: linear-gradient(135deg, var(--emerald-500), #047857);
	color: #fff;
}
.ai-page .ai-products__card[data-gradient=orange] .ai-products__card-glow {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, rgba(245, 158, 11, 0.01) 100%);
}
.ai-page .ai-products__card[data-gradient=orange]:hover {
	border-color: #fcd34d;
}
.ai-page .ai-products__card[data-gradient=orange]:hover .ai-products__card-glow {
	opacity: 1;
}
.ai-page .ai-products__card[data-gradient=orange]:hover .ai-products__card-logo {
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.ai-page .ai-products__card[data-gradient=orange]:hover .ai-products__card-btn {
	background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
	color: #fff;
}
.ai-page .ai-products__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.ai-page .ai-products__card:hover .ai-products__card-logo img {
	transform: scale(1.08) rotate(2deg);
}
.ai-page .ai-products__card:hover .ai-products__card-reveal {
	max-height: 60px;
	opacity: 1;
	margin-top: 10px;
}
.ai-page .ai-products__card:hover .ai-products__card-save {
	opacity: 1;
}
.ai-page .ai-products__card-logo {
	flex: 0 0 140px;
	width: 140px;
	background: #f8f7fc;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	transition: background 0.4s ease;
	position: relative;
	z-index: 1;
}
.ai-page .ai-products__card-logo img {
	width: 90px;
	height: 90px;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: 0 6px 18px rgba(15, 11, 72, 0.12);
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-page .ai-products__card-body {
	flex: 1;
	padding: 18px 22px;
	min-width: 0;
	position: relative;
	z-index: 1;
}
.ai-page .ai-products__card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}
.ai-page .ai-products__card-title {
	font-size: var(--space-16);
	font-weight: 900;
	color: var(--navy-800);
	margin: 0 0 6px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	letter-spacing: -0.01em;
}
.ai-page .ai-products__card-desc {
	font-size: var(--space-13);
	color: #4a4664;
	font-weight: 500;
	line-height: 1.7;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ai-page .ai-products__card-audience {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 6px 12px;
	background: #faf9fe;
	border-radius: 8px;
	border: 1px solid var(--violet-125);
}
.ai-page .ai-products__card-audience svg {
	color: var(--violet-600);
	flex-shrink: 0;
}
.ai-page .ai-products__card-audience span {
	font-size: var(--space-11);
	color: #4a4664;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ai-page .ai-products__card-reveal {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
	margin-top: 0;
}
.ai-page .ai-products__card-reveal p {
	font-size: var(--space-12);
	color: #999;
	line-height: 1.7;
	margin: 0;
	text-align: justify;
}
.ai-page .ai-products__card-action {
	flex: 0 0 160px;
	width: 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 16px;
	position: relative;
	z-index: 1;
	border-right: 1px solid var(--violet-125);
}
.ai-page .ai-products__card-save {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #f8f7fc;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
	opacity: 0.5;
	transition: all 0.3s ease;
	text-decoration: none;
}
.ai-page .ai-products__card-save svg {
	color: #bbb;
	transition: color 0.2s;
}
.ai-page .ai-products__card-save:hover {
	background: #fef3c7;
}
.ai-page .ai-products__card-save:hover svg {
	color: var(--amber-500);
}
.ai-page .ai-products__card-save.active {
	background: #fef3c7;
	opacity: 1;
}
.ai-page .ai-products__card-save.active svg {
	color: var(--amber-500);
	fill: var(--amber-500);
}
.ai-page .ai-products__card.is-comparing {
	border-color: rgba(124, 58, 237, 0.5) !important;
	box-shadow: 0 6px 24px -8px rgba(124, 58, 237, 0.3);
}
.ai-page .ai-products__card-price {
	font-size: var(--space-12);
	color: #6b6880;
	text-align: center;
	font-weight: 600;
}
.ai-page .ai-products__card-price strong {
	display: block;
	font-size: var(--space-20);
	font-weight: 900;
	color: var(--navy-800);
	margin-top: 2px;
	letter-spacing: -0.01em;
}
.ai-page .ai-products__card-price small {
	font-size: var(--space-11);
	color: #6b6880;
	font-weight: 600;
}
.ai-page .ai-products__card-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 38px;
	background: var(--violet-125);
	color: var(--violet-600);
	font-size: var(--space-13);
	font-weight: 700;
	border-radius: 10px;
	transition: all 0.3s ease;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	z-index: 4;
}
.ai-page .ai-products__card-btn:hover {
	background: linear-gradient(135deg, var(--violet-500), #6d28d9);
	color: #fff;
	box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}
.ai-page .ai-products__tag {
	font-size: var(--space-11);
	font-weight: 700;
	color: #6d28d9;
	background: var(--violet-75);
	padding: 3px 10px;
	border-radius: 6px;
	white-space: nowrap;
}
.ai-page .pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 30px 0 40px;
	list-style: none;
	padding: 0;
}
.ai-page .pagination li a.item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #f8f7fc;
	border: 1.5px solid var(--violet-125);
	color: #666;
	font-size: var(--space-14);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
}
.ai-page .pagination li a.item:hover {
	border-color: var(--violet-300);
	color: var(--violet-600);
	background: var(--violet-75);
}
.ai-page .pagination li a.item.active {
	background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
	border-color: var(--violet-600);
	color: #fff;
	box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}
.ai-page .pagination li.active a.item {
	background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
	border-color: var(--violet-600);
	color: #fff;
	box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}
@media (max-width: 992px) {
	.ai-page .ai-products__card-logo {
		flex: 0 0 110px;
		width: 110px;
	}
	.ai-page .ai-products__card-logo img {
		width: 65px;
		height: 65px;
	}
	.ai-page .ai-products__card-action {
		flex: 0 0 130px;
		width: 130px;
	}
	.ai-page .ai-products__card-title {
		font-size: var(--space-14);
	}
	.ai-page .ai-products__card-price strong {
		font-size: var(--space-17);
	}
}
@media (max-width: 768px) {
	.ai-page .ai-products__card {
		--card-c1: var(--violet-75);
		--card-c2: rgba(243, 240, 255, 0);
		--card-edge: rgba(124, 58, 237, 0.18);
		flex-direction: column;
		overflow: hidden;
		text-align: center;
		padding: 44px 14px 14px;
		isolation: isolate;
		position: relative;
	}
	.ai-page .ai-products__card::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 175px;
		background: radial-gradient(circle at 50% 0%, var(--card-c1), var(--card-c2) 75%);
		z-index: 0;
		pointer-events: none;
	}
	.ai-page .ai-products__card::after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 1px;
		background: linear-gradient(90deg, transparent, var(--card-edge), transparent);
		z-index: 1;
		pointer-events: none;
	}
	.ai-page .ai-products__card > .ai-products__card-logo,
.ai-page .ai-products__card > .ai-products__card-body,
.ai-page .ai-products__card > .ai-products__card-action {
		position: relative;
		z-index: 2;
	}
	.ai-page .ai-products__card[data-gradient=purple] {
		--card-c1: rgba(139, 92, 246, 0.18);
		--card-edge: rgba(139, 92, 246, 0.35);
	}
	.ai-page .ai-products__card[data-gradient=pink] {
		--card-c1: rgba(236, 72, 153, 0.16);
		--card-edge: rgba(236, 72, 153, 0.35);
	}
	.ai-page .ai-products__card[data-gradient=blue] {
		--card-c1: rgba(59, 130, 246, 0.16);
		--card-edge: rgba(59, 130, 246, 0.35);
	}
	.ai-page .ai-products__card[data-gradient=emerald] {
		--card-c1: rgba(16, 185, 129, 0.16);
		--card-edge: rgba(16, 185, 129, 0.35);
	}
	.ai-page .ai-products__card[data-gradient=orange] {
		--card-c1: rgba(245, 158, 11, 0.18);
		--card-edge: rgba(245, 158, 11, 0.4);
	}
	.ai-page .ai-products__card-save {
		position: absolute;
		top: 12px;
		left: 12px;
		right: auto;
		width: 36px;
		height: 36px;
		border-radius: 10px;
		opacity: 1;
		background: #fff;
		border: 1.5px solid var(--violet-150);
		box-shadow: 0 2px 6px -2px rgba(15, 11, 72, 0.08);
		z-index: 6;
		transition: all 0.22s ease;
	}
	.ai-page .ai-products__card-save svg {
		width: 15px !important;
		height: 15px !important;
		color: #b0aac8;
	}
	.ai-page .ai-products__card-save:hover, .ai-page .ai-products__card-save:active {
		background: #fef3c7;
		border-color: #fde68a;
		transform: scale(1.05);
	}
	.ai-page .ai-products__card-save:hover svg, .ai-page .ai-products__card-save:active svg {
		color: var(--amber-500);
	}
	.ai-page .ai-products__card-save.active {
		background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
		border-color: transparent;
	}
	.ai-page .ai-products__card-save.active svg {
		color: #fff;
		fill: #fff;
	}
	.ai-page .ai-products__card-logo {
		flex: none;
		width: 100%;
		padding: 0;
		margin-bottom: 14px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0;
		background: transparent !important;
		border: 0;
	}
	.ai-page .ai-products__card-logo img {
		width: 96px !important;
		height: 96px !important;
		border-radius: 24px;
		padding: 0;
		box-shadow: 0 16px 32px -10px rgba(124, 58, 237, 0.4);
		background: transparent;
	}
	.ai-page .ai-products__card-body {
		padding: 0;
		flex: none;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}
	.ai-page .ai-products__card-tags {
		justify-content: center;
		gap: 5px;
		margin-bottom: 2px;
	}
	.ai-page .ai-products__card-title {
		font-size: var(--space-15);
		line-height: 1.45;
		-webkit-line-clamp: 2;
		margin: 0;
		max-width: 100%;
	}
	.ai-page .ai-products__card-desc {
		font-size: var(--space-12);
		line-height: 1.7;
		-webkit-line-clamp: 2;
		max-width: 100%;
		margin: 0;
	}
	.ai-page .ai-products__card-audience {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		max-width: 100%;
		margin-top: 4px;
		padding: 7px 12px;
		gap: 6px;
		background: #faf9fe;
		border: 1px solid #ece7f7;
		border-radius: 9px;
	}
	.ai-page .ai-products__card-audience svg {
		width: 13px !important;
		height: 13px !important;
		color: var(--violet-500);
		flex-shrink: 0;
	}
	.ai-page .ai-products__card-audience span {
		font-size: var(--space-11);
		color: #6b6880;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}
	.ai-page .ai-products__card-reveal {
		display: none;
	}
	.ai-page .ai-products__card-action {
		flex: none;
		width: 100%;
		margin-top: 14px;
		padding: 12px 0 0;
		border-right: none;
		border-top: 1px dashed var(--violet-150);
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
	}
	.ai-page .ai-products__card-price {
		flex: 1 1 auto;
		min-width: 0;
		text-align: right;
		font-size: var(--space-11);
		color: #6b6880;
		font-weight: 600;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.ai-page .ai-products__card-price strong {
		display: inline;
		font-size: var(--space-14);
		margin-right: 3px;
	}
	.ai-page .ai-products__card-price small {
		font-size: var(--space-10);
		margin-right: 2px;
	}
	.ai-page .ai-products__card-btn {
		flex: 0 0 auto;
		width: auto;
		height: 36px;
		padding: 0 14px;
		font-size: var(--space-12);
		white-space: nowrap;
	}
}
@media (max-width: 380px) {
	.ai-page .ai-products__card {
		padding: 40px 12px 12px;
	}
	.ai-page .ai-products__card-logo img {
		width: 84px !important;
		height: 84px !important;
		border-radius: 22px;
	}
	.ai-page .ai-products__card-title {
		font-size: var(--space-14);
	}
	.ai-page .ai-products__card-desc {
		font-size: var(--space-12);
	}
	.ai-page .ai-products__card-tags {
		gap: 4px;
	}
	.ai-page .ai-products__card-audience {
		padding: 6px 10px;
		gap: 5px;
	}
	.ai-page .ai-products__card-audience span {
		font-size: var(--space-10);
	}
	.ai-page .ai-products__card-action {
		gap: 8px;
		padding-top: 10px;
		margin-top: 12px;
	}
	.ai-page .ai-products__card-price {
		font-size: var(--space-10);
	}
	.ai-page .ai-products__card-price strong {
		font-size: var(--space-14);
	}
	.ai-page .ai-products__card-price small {
		font-size: var(--space-10);
	}
	.ai-page .ai-products__card-btn {
		height: 34px;
		padding: 0 12px;
		font-size: var(--space-12);
		max-width: 60%;
	}
	.ai-page .ai-products__card-save {
		width: 30px;
		height: 30px;
		top: 10px;
		left: 10px;
		right: auto;
		border-radius: 9px;
	}
	.ai-page .ai-products__card-save svg {
		width: 13px !important;
		height: 13px !important;
	}
}
[data-theme=dark] .ai-page .ai-products__card {
	background: #110e3a;
	border-color: var(--navy-600);
}
[data-theme=dark] .ai-page .ai-products__card:hover {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
[data-theme=dark] .ai-page .ai-products__card-logo {
	background: #0d0b32;
}
[data-theme=dark] .ai-page .ai-products__card-title {
	color: #e0e0ff;
}
[data-theme=dark] .ai-page .ai-products__card-desc {
	color: #7b77c5;
}
[data-theme=dark] .ai-page .ai-products__card-audience {
	background: #0d0b32;
	border-color: var(--navy-600);
}
[data-theme=dark] .ai-page .ai-products__card-audience span {
	color: #7b77c5;
}
[data-theme=dark] .ai-page .ai-products__card-audience svg {
	color: var(--violet-400);
}
[data-theme=dark] .ai-page .ai-products__card-reveal p {
	color: #5a5790;
}
[data-theme=dark] .ai-page .ai-products__card-action {
	border-color: var(--navy-600);
}
[data-theme=dark] .ai-page .ai-products__card-price {
	color: #7b77c5;
}
[data-theme=dark] .ai-page .ai-products__card-price strong {
	color: #e0e0ff;
}
[data-theme=dark] .ai-page .ai-products__card-price small {
	color: #5a5790;
}
[data-theme=dark] .ai-page .ai-products__card-btn {
	background: #1a1550;
	color: var(--violet-300);
}
[data-theme=dark] .ai-page .ai-products__card-save {
	background: #1a1550;
}
[data-theme=dark] .ai-page .ai-products__card-save svg {
	color: #5a5790;
}
[data-theme=dark] .ai-page .ai-products__card-save:hover {
	background: #2a1f60;
}
[data-theme=dark] .ai-page .ai-products__card-save:hover svg {
	color: var(--amber-500);
}
[data-theme=dark] .ai-page .ai-products__tag {
	background: #1a1550;
	color: var(--violet-400);
}
[data-theme=dark] .ai-page .ai-products__card[data-gradient=purple]:hover {
	border-color: var(--violet-600);
}
[data-theme=dark] .ai-page .ai-products__card[data-gradient=purple]:hover .ai-products__card-logo {
	background: #1a1550;
}
[data-theme=dark] .ai-page .ai-products__card[data-gradient=pink]:hover {
	border-color: #db2777;
}
[data-theme=dark] .ai-page .ai-products__card[data-gradient=pink]:hover .ai-products__card-logo {
	background: #2a1030;
}
[data-theme=dark] .ai-page .ai-products__card[data-gradient=blue]:hover {
	border-color: #1d4ed8;
}
[data-theme=dark] .ai-page .ai-products__card[data-gradient=blue]:hover .ai-products__card-logo {
	background: #0f1a3a;
}
[data-theme=dark] .ai-page .ai-products__card[data-gradient=emerald]:hover {
	border-color: #047857;
}
[data-theme=dark] .ai-page .ai-products__card[data-gradient=emerald]:hover .ai-products__card-logo {
	background: #0a2620;
}
[data-theme=dark] .ai-page .ai-products__card[data-gradient=orange]:hover {
	border-color: var(--amber-600);
}
[data-theme=dark] .ai-page .ai-products__card[data-gradient=orange]:hover .ai-products__card-logo {
	background: #2a1f10;
}
[data-theme=dark] .ai-page .pagination li a.item {
	background: #110e3a;
	border-color: var(--navy-600);
	color: #7b77c5;
}
[data-theme=dark] .ai-page .pagination li a.item:hover {
	border-color: var(--violet-600);
	color: var(--violet-300);
}
[data-theme=dark] .ai-page .pagination li a.item.active {
	background: linear-gradient(135deg, var(--violet-600), #5b21b6);
	color: #fff;
}

/* ── Site adaptation ─────────────────────────────────────────── */
/* Favourite toggle is a <button> here; the JS sets .is-active */
.ai-page .ai-products__card-save {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}
.ai-page .ai-products__card-save .icon {
	stroke-width: 2;
}
.ai-page .ai-products__card-save.is-active {
	background: #fef3c7;
	opacity: 1;
}
.ai-page .ai-products__card-save.is-active svg {
	color: var(--amber-500);
	fill: var(--amber-500);
}
/* The usage chips are links to the genre pages */
.ai-page .ai-filter__chip {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}
/* Card logo and pick icon images come from get_image_src_tag() */
.ai-page .ai-products__card-logo img,
.ai-page .ai-hero__pick-ico img {
	object-fit: cover;
}
/* CodeIgniter pagination: the current page is a <span class="item active"> */
.ai-page .ai-products__pager {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}
.ai-page .pagination li {
	list-style: none;
}
.ai-page .pagination li span.item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
	border: 1.5px solid var(--violet-600);
	color: #fff;
	font-size: var(--space-14);
	font-weight: 600;
	box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}
.ai-page .ai-products__empty {
	padding: 40px 16px;
	text-align: center;
	color: #6b6880;
	font-weight: 700;
	background: #fff;
	border: 1.5px dashed var(--violet-150);
	border-radius: 16px;
}
[data-theme=dark] .ai-page .ai-products__empty {
	background: var(--navy-700);
	border-color: var(--navy-400);
	color: #b6b3d9;
}

/* [CHANGE][2026-11-20] AJAX genre/page switch (ai-category.js): the old region fades while the new one loads */
.ai-region {
	transition: opacity 0.2s ease;
}
.ai-region.is-loading {
	opacity: 0.5;
	pointer-events: none;
}
