/**
 * Totoland Category Page V1
 *
 * Consolidated master stylesheet.
 * Stages 1–7:
 * - Foundation
 * - Enterprise category hero
 * - Child category navigation
 * - Commerce toolbar
 * - Enterprise filter sidebar
 * - Master product grid
 *
 * Replace the previous Category V1 stylesheet with this file.
 *
 * @version 0.7.0
 */

/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
	--tt-category-blue: #00aeef;
	--tt-category-blue-dark: #007fae;
	--tt-category-pink: #ff5aa5;
	--tt-category-green: #58c63a;
	--tt-category-success: #15783a;
	--tt-category-danger: #c82970;
	--tt-category-warning: #b77800;
	--tt-category-yellow: #ffc83d;
	--tt-category-dark: #111827;
	--tt-category-muted: #667085;
	--tt-category-border: #e5e7eb;
	--tt-category-border-strong: #d5dce5;
	--tt-category-background: #f8fafc;
	--tt-category-white: #ffffff;
	--tt-category-soft-blue: #eef9ff;
	--tt-category-soft-pink: #fff1f7;
	--tt-category-soft-green: #f1fff6;
	--tt-category-soft-yellow: #fff9e9;

	--tt-category-container: 1520px;
	--tt-category-sidebar: 280px;

	--tt-category-radius-sm: 10px;
	--tt-category-radius-md: 16px;
	--tt-category-radius-lg: 20px;
	--tt-category-radius-pill: 999px;

	--tt-category-shadow-sm:
		0 7px 20px rgba(17, 24, 39, 0.05);
	--tt-category-shadow-md:
		0 12px 32px rgba(17, 24, 39, 0.07);
	--tt-category-shadow-lg:
		0 18px 46px rgba(17, 24, 39, 0.09);

	--tt-category-transition-fast: 160ms ease;
	--tt-category-transition-normal: 240ms ease;

	--tt-category-focus:
		3px solid var(--tt-category-yellow);
}

/* =========================================================
   02. FOUNDATION
   ========================================================= */

.tt-category-v1-main,
.totoland-master-category-page .tt-category-v1 {
	display: block;
	width: 100%;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.tt-category-v1 {
	padding: 30px 0 54px;
	background: var(--tt-category-background);
	color: var(--tt-category-dark);
}

.tt-category-v1 *,
.tt-category-v1 *::before,
.tt-category-v1 *::after {
	box-sizing: border-box;
}

.tt-category-v1__container {
	display: block;
	width: calc(100% - 48px);
	max-width: var(--tt-category-container);
	min-width: 0;
	margin-inline: auto;
}

.tt-category-v1 img {
	max-width: 100%;
	height: auto;
}

.tt-category-v1 a {
	text-underline-offset: 3px;
}

.tt-category-v1 a:focus-visible,
.tt-category-v1 button:focus-visible,
.tt-category-v1 input:focus-visible,
.tt-category-v1 select:focus-visible,
.tt-category-v1 summary:focus-visible {
	outline: var(--tt-category-focus);
	outline-offset: 3px;
}

/* =========================================================
   03. BREADCRUMBS
   ========================================================= */

.tt-category-v1__breadcrumbs {
	margin-bottom: 14px;
}

.tt-category-v1__breadcrumbs .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--tt-category-muted);
	font-size: 14px;
	line-height: 1.5;
}

.tt-category-v1__breadcrumbs a {
	color: var(--tt-category-muted);
	text-decoration: none;
}

.tt-category-v1__breadcrumbs a:hover {
	color: var(--tt-category-blue);
}

.tt-category-v1__breadcrumb-separator {
	color: #a5afbd;
}

/* =========================================================
   04. SHARED COMPONENTS
   ========================================================= */

.tt-category-v1__kicker {
	display: inline-flex;
	align-self: flex-start;
	padding: 6px 10px;
	border-radius: var(--tt-category-radius-pill);
	background: var(--tt-category-soft-blue);
	color: var(--tt-category-blue-dark);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tt-category-v1__hero,
.tt-category-v1-children,
.tt-category-v1-toolbar,
.tt-category-v1__filters,
.tt-category-v1__results,
.tt-category-v1__below-content {
	border: 1px solid var(--tt-category-border);
	background: var(--tt-category-white);
	box-shadow: var(--tt-category-shadow-md);
}

/* =========================================================
   05. CATEGORY HERO
   ========================================================= */

.tt-category-v1__hero {
	position: relative;
	display: grid;
	grid-template-columns:
		minmax(0, 1.45fr)
		minmax(320px, 0.72fr);
	gap: 28px;
	align-items: stretch;
	margin-bottom: 22px;
	padding: 30px;
	border-radius: var(--tt-category-radius-lg);
	background:
		linear-gradient(
			135deg,
			#ffffff 0%,
			#ffffff 62%,
			#f2fbff 100%
		);
	box-shadow: var(--tt-category-shadow-lg);
	overflow: hidden;
}

.tt-category-v1__hero.has-no-image,
.tt-category-v1__hero--without-image {
	grid-template-columns: minmax(0, 1fr);
}

.tt-category-v1__hero::before,
.tt-category-v1__hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.tt-category-v1__hero::before {
	top: -90px;
	right: -90px;
	width: 240px;
	height: 240px;
	background: rgba(0, 174, 239, 0.07);
}

.tt-category-v1__hero::after {
	right: 130px;
	bottom: -110px;
	width: 220px;
	height: 220px;
	background: rgba(255, 90, 165, 0.06);
}

.tt-category-v1__hero-content,
.tt-category-v1__hero-media {
	position: relative;
	z-index: 1;
}

.tt-category-v1__hero-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 8px 0;
}

.tt-category-v1__hero-context {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 14px;
}

.tt-category-v1__parent-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	color: var(--tt-category-muted);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.tt-category-v1__parent-link:hover {
	color: var(--tt-category-blue);
}

.tt-category-v1__hero h1 {
	max-width: 900px;
	margin: 15px 0 13px;
	font-size: clamp(38px, 4vw, 60px);
	line-height: 1.06;
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
}

.tt-category-v1__hero-introduction,
.tt-category-v1__hero-description {
	max-width: 760px;
	margin: 0;
	color: var(--tt-category-muted);
	font-size: 16px;
	line-height: 1.75;
}

.tt-category-v1__hero-meta,
.tt-category-v1__hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.tt-category-v1__hero-meta > span,
.tt-category-v1__hero-stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid var(--tt-category-border);
	border-radius: var(--tt-category-radius-pill);
	background: rgba(255, 255, 255, 0.88);
	color: var(--tt-category-muted);
	font-size: 12px;
}

.tt-category-v1__hero-stat {
	flex-direction: column;
	align-items: flex-start;
	min-width: 112px;
	border-radius: 13px;
}

.tt-category-v1__hero-meta strong,
.tt-category-v1__hero-stat strong {
	color: var(--tt-category-dark);
	font-weight: 900;
}

.tt-category-v1__hero-stat span {
	color: var(--tt-category-muted);
	font-size: 11px;
	line-height: 1.35;
}

.tt-category-v1__hero-cta,
.tt-category-v1__hero-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: flex-start;
	min-height: 46px;
	margin-top: 20px;
	padding: 10px 17px;
	border-radius: 12px;
	background: var(--tt-category-blue);
	color: var(--tt-category-white);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 9px 20px rgba(0, 174, 239, 0.2);
	transition:
		transform var(--tt-category-transition-fast),
		background-color var(--tt-category-transition-fast),
		box-shadow var(--tt-category-transition-fast);
}

.tt-category-v1__hero-cta:hover,
.tt-category-v1__hero-action:hover {
	background: var(--tt-category-pink);
	color: var(--tt-category-white);
	transform: translateY(-1px);
	box-shadow: 0 11px 22px rgba(255, 90, 165, 0.18);
}

.tt-category-v1__hero-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--tt-category-border);
	border-radius: 18px;
	background: var(--tt-category-white);
	overflow: hidden;
}

.tt-category-v1__hero-image {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 360px;
	border-radius: 13px;
	object-fit: contain;
	object-position: center;
}

/* =========================================================
   06. CHILD CATEGORY NAVIGATION
   ========================================================= */

.tt-category-v1-children {
	margin-bottom: 22px;
	padding: 24px;
	border-radius: var(--tt-category-radius-lg);
}

.tt-category-v1-children__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 20px;
}

.tt-category-v1-children__heading h2 {
	margin: 9px 0 0;
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.15;
}

.tt-category-v1-children__heading p {
	max-width: 420px;
	margin: 0;
	color: var(--tt-category-muted);
	font-size: 14px;
	line-height: 1.6;
	text-align: right;
}

.tt-category-v1-children__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.tt-category-v1-child-card {
	min-width: 0;
	border: 1px solid var(--tt-category-border);
	border-radius: var(--tt-category-radius-md);
	background: var(--tt-category-white);
	overflow: hidden;
	transition:
		transform var(--tt-category-transition-fast),
		border-color var(--tt-category-transition-fast),
		box-shadow var(--tt-category-transition-fast);
}

.tt-category-v1-child-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.tt-category-v1-child-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 0.82;
	padding: 14px;
	background:
		linear-gradient(
			135deg,
			#f8fafc 0%,
			#eef9ff 100%
		);
	overflow: hidden;
}

.tt-category-v1-child-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform var(--tt-category-transition-normal);
}

.tt-category-v1-child-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 86px;
	height: 86px;
	border-radius: 50%;
	background: var(--tt-category-white);
	color: var(--tt-category-blue);
	font-size: 32px;
	font-weight: 900;
	box-shadow: var(--tt-category-shadow-sm);
}

.tt-category-v1-child-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 15px;
}

.tt-category-v1-child-card h3 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tt-category-v1-child-card__count {
	margin-top: 6px;
	color: var(--tt-category-muted);
	font-size: 11px;
	font-weight: 700;
}

.tt-category-v1-child-card__action {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: auto;
	padding-top: 13px;
	color: var(--tt-category-blue);
	font-size: 11px;
	font-weight: 800;
}

/* =========================================================
   07. COMMERCE TOOLBAR
   ========================================================= */

.tt-category-v1-toolbar {
	position: relative;
	z-index: 120;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
	padding: 13px 16px;
	border-radius: var(--tt-category-radius-md);
	box-shadow: var(--tt-category-shadow-sm);
}

.tt-category-v1-toolbar__primary,
.tt-category-v1-toolbar__secondary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.tt-category-v1-toolbar__primary {
	flex: 1;
}

.tt-category-v1-toolbar__secondary {
	justify-content: flex-end;
}

.tt-category-v1-toolbar__filter-button {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding: 8px 14px;
	border: 1px solid var(--tt-category-border);
	border-radius: 11px;
	background: var(--tt-category-white);
	color: var(--tt-category-dark);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.tt-category-v1-toolbar__filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: var(--tt-category-radius-pill);
	background: var(--tt-category-pink);
	color: var(--tt-category-white);
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
}

.tt-category-v1-toolbar__count {
	min-width: 0;
	margin: 0;
	color: var(--tt-category-muted);
	font-size: 13px;
	line-height: 1.45;
}

.tt-category-v1-toolbar__count p,
.tt-category-v1-toolbar__count .woocommerce-result-count {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.tt-category-v1-toolbar__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 11px;
	border-radius: var(--tt-category-radius-pill);
	background: var(--tt-category-soft-pink);
	color: var(--tt-category-danger);
	font-size: 11px;
	font-weight: 800;
	text-decoration: none;
}

.tt-category-v1-toolbar__clear:hover {
	background: var(--tt-category-pink);
	color: var(--tt-category-white);
}

.tt-category-v1-toolbar__density {
	display: inline-flex;
	gap: 4px;
	padding: 3px;
	border: 1px solid var(--tt-category-border);
	border-radius: 10px;
	background: var(--tt-category-background);
}

.tt-category-v1-toolbar__density-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--tt-category-muted);
	font-size: 16px;
	cursor: pointer;
}

.tt-category-v1-toolbar__density-button.is-active,
.tt-category-v1-toolbar__density-button[aria-pressed="true"] {
	background: var(--tt-category-white);
	color: var(--tt-category-blue);
	box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
}

.tt-category-v1-toolbar__ordering {
	position: relative;
	z-index: 130;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tt-category-v1-toolbar__ordering-label {
	color: var(--tt-category-muted);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tt-category-v1-toolbar__ordering .woocommerce-ordering {
	position: relative;
	z-index: 140;
	margin: 0;
}

.tt-category-v1-toolbar__ordering select {
	min-width: 190px;
	min-height: 42px;
	padding: 8px 34px 8px 12px;
	border: 1px solid var(--tt-category-border);
	border-radius: 11px;
	background-color: var(--tt-category-white);
	color: var(--tt-category-dark);
	font-size: 12px;
	font-weight: 700;
}

/* =========================================================
   08. COMMERCE LAYOUT
   ========================================================= */

.tt-category-v1__commerce {
	display: grid;
	grid-template-columns:
		var(--tt-category-sidebar)
		minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	width: 100%;
	min-width: 0;
}

.tt-category-v1__filters,
.tt-category-v1__results {
	width: 100%;
	min-width: 0;
}

.tt-category-v1__filters,
.tt-category-v1__results,
.tt-category-v1__below-content {
	border-radius: 18px;
}

.tt-category-v1__below-content {
	margin-top: 22px;
	padding: 24px;
}

.tt-category-v1__below-content h2 {
	margin: 10px 0;
	font-size: 24px;
}

.tt-category-v1__below-content p {
	margin: 0;
	color: var(--tt-category-muted);
	line-height: 1.7;
}

/* =========================================================
   09. ENTERPRISE FILTER SIDEBAR
   ========================================================= */

.tt-category-v1__filters {
	position: sticky;
	top: 118px;
	padding: 0;
	overflow: hidden;
}

.admin-bar .tt-category-v1__filters {
	top: 150px;
}

.tt-category-v1-filter-panel {
	background: var(--tt-category-white);
}

.tt-category-v1-filter-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--tt-category-border);
	background:
		linear-gradient(
			135deg,
			#ffffff 0%,
			#f5fbff 100%
		);
}

.tt-category-v1-filter-panel__header h2 {
	margin: 6px 0 0;
	font-size: 20px;
	line-height: 1.25;
}

.tt-category-v1-filter-panel__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--tt-category-border);
	border-radius: 10px;
	background: var(--tt-category-white);
	color: var(--tt-category-dark);
	font-size: 22px;
	cursor: pointer;
}

.tt-category-v1-filter-panel__body {
	padding: 8px 20px 4px;
}

.tt-category-v1-filter-form {
	margin: 0;
}

.tt-category-v1-filter-field {
	padding: 14px 0;
	border-bottom: 1px solid var(--tt-category-border);
}

.tt-category-v1-filter-field:last-child {
	border-bottom: 0;
}

.tt-category-v1-filter-field label {
	display: block;
	margin: 0 0 8px;
	color: var(--tt-category-dark);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.4;
}

.tt-category-v1-filter-field select {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 8px 36px 8px 12px;
	border: 1px solid var(--tt-category-border);
	border-radius: 11px;
	background-color: var(--tt-category-white);
	color: var(--tt-category-dark);
	font-size: 13px;
	line-height: 1.35;
}

.tt-category-v1-filter-field select:focus-visible {
	border-color: var(--tt-category-blue);
	outline: 3px solid rgba(0, 174, 239, 0.2);
	outline-offset: 1px;
}

.tt-category-v1-filter-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 9px;
	padding: 16px 20px 18px;
}

.tt-category-v1-filter-actions__apply,
.tt-category-v1-filter-actions__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 14px;
	border-radius: 11px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.tt-category-v1-filter-actions__apply {
	border: 1px solid var(--tt-category-blue);
	background: var(--tt-category-blue);
	color: var(--tt-category-white);
	cursor: pointer;
}

.tt-category-v1-filter-actions__apply:hover,
.tt-category-v1-filter-actions__apply:focus-visible {
	border-color: #008fc4;
	background: #008fc4;
	color: var(--tt-category-white);
}

.tt-category-v1-filter-actions__reset {
	border: 1px solid var(--tt-category-border);
	background: var(--tt-category-white);
	color: var(--tt-category-dark);
}

.tt-category-v1-filter-actions__reset:hover,
.tt-category-v1-filter-actions__reset:focus-visible {
	border-color: var(--tt-category-pink);
	color: var(--tt-category-pink);
}

.tt-category-v1-filter-panel__status {
	margin: -4px 20px 18px;
	padding: 9px 11px;
	border-radius: 9px;
	background: var(--tt-category-soft-blue);
	color: var(--tt-category-muted);
	font-size: 12px;
	line-height: 1.45;
}

.tt-category-v1-filter-panel__empty {
	padding: 22px 20px;
	color: var(--tt-category-muted);
	font-size: 13px;
	line-height: 1.6;
}

.tt-category-v1-filter-panel__clear {
	display: flex;
	padding: 0 20px 18px;
}

.tt-category-v1-filter-panel__clear a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	padding: 8px 14px;
	border: 1px solid #ffd0e5;
	border-radius: 11px;
	background: var(--tt-category-soft-pink);
	color: var(--tt-category-danger);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.tt-category-v1-filter-panel__clear a:hover {
	background: var(--tt-category-pink);
	color: var(--tt-category-white);
}

.tt-category-v1__filters .widget {
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--tt-category-border);
}

.tt-category-v1__filters .widget:last-child {
	border-bottom: 0;
}

.tt-category-v1__filters .widget-title,
.tt-category-v1__filters .widgettitle {
	margin: 0 0 13px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
}

.tt-category-v1__filters ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-category-v1__filters li {
	position: relative;
	margin: 0;
	color: var(--tt-category-muted);
	font-size: 13px;
	line-height: 1.45;
}

.tt-category-v1__filters li + li {
	margin-top: 9px;
}

.tt-category-v1__filters li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: var(--tt-category-muted);
	text-decoration: none;
}

.tt-category-v1__filters li a:hover,
.tt-category-v1__filters li.chosen > a,
.tt-category-v1__filters li.current-cat > a {
	color: var(--tt-category-blue-dark);
}

.tt-category-v1__filters .count {
	color: #98a2b3;
	font-size: 11px;
	font-weight: 700;
}

.tt-category-v1__filters
	.woocommerce-widget-layered-nav-list__item a,
.tt-category-v1__filters
	.wc-layered-nav-term a {
	position: relative;
	justify-content: flex-start;
	padding-left: 28px;
}

.tt-category-v1__filters
	.woocommerce-widget-layered-nav-list__item a::before,
.tt-category-v1__filters
	.wc-layered-nav-term a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 17px;
	height: 17px;
	border: 1px solid var(--tt-category-border-strong);
	border-radius: 5px;
	background: var(--tt-category-white);
	transform: translateY(-50%);
}

.tt-category-v1__filters
	.woocommerce-widget-layered-nav-list__item.chosen a::before,
.tt-category-v1__filters
	.wc-layered-nav-term.chosen a::before {
	border-color: var(--tt-category-blue);
	background:
		var(--tt-category-blue)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
		center / 12px no-repeat;
}

.tt-category-v1__filters
	.widget_price_filter .ui-slider {
	position: relative;
	height: 5px;
	margin: 14px 8px 20px;
	border-radius: var(--tt-category-radius-pill);
	background: #dce5ec;
}

.tt-category-v1__filters
	.widget_price_filter .ui-slider-range {
	position: absolute;
	height: 100%;
	border-radius: inherit;
	background: var(--tt-category-blue);
}

.tt-category-v1__filters
	.widget_price_filter .ui-slider-handle {
	position: absolute;
	top: 50%;
	width: 18px;
	height: 18px;
	border: 3px solid var(--tt-category-white);
	border-radius: 50%;
	background: var(--tt-category-blue);
	box-shadow: 0 3px 9px rgba(17, 24, 39, 0.18);
	transform: translate(-50%, -50%);
	cursor: ew-resize;
}

.tt-category-v1__filters
	.widget_price_filter .price_slider_amount {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.tt-category-v1__filters
	.widget_price_filter .price_label {
	color: var(--tt-category-muted);
	font-size: 12px;
	line-height: 1.5;
}

.tt-category-v1__filters
	.widget_price_filter .button {
	min-height: 40px;
	padding: 8px 13px;
	border: 0;
	border-radius: 10px;
	background: var(--tt-category-blue);
	color: var(--tt-category-white);
	font-size: 12px;
	font-weight: 800;
}

.tt-category-v1__filters
	.widget_price_filter .button:hover {
	background: var(--tt-category-pink);
}

.tt-category-v1-filter-overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	visibility: hidden;
	background: rgba(17, 24, 39, 0.48);
	opacity: 0;
	pointer-events: none;
	transition:
		opacity var(--tt-category-transition-normal),
		visibility var(--tt-category-transition-normal);
}

.tt-category-v1-filter-overlay.is-visible {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

body.tt-category-filters-open {
	overflow: hidden;
}

/* =========================================================
   10. PRODUCT RESULTS AND GRID
   ========================================================= */

.tt-category-v1__results {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: visible;
}

.tt-category-v1-results__content {
	padding: 16px;
}

.tt-category-v1-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.tt-category-v1__results.is-grid-compact
	.tt-category-v1-product-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

/* =========================================================
   11. PRODUCT CARD
   ========================================================= */

.tt-category-v1-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	border: 1px solid var(--tt-category-border);
	border-radius: 15px;
	background: var(--tt-category-white);
	overflow: hidden;
	contain: layout paint;
	transition:
		transform var(--tt-category-transition-fast),
		border-color var(--tt-category-transition-fast),
		box-shadow var(--tt-category-transition-fast);
}

.tt-category-v1-product-card__image-link {
	position: relative;
	display: block;
	aspect-ratio: 1;
	padding: 10px;
	background: #f9fbfc;
	overflow: hidden;
}

.tt-category-v1-product-card__image-link img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	object-position: center;
	transition: transform var(--tt-category-transition-normal);
}

.tt-category-v1-product-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 6px;
	pointer-events: none;
}

.tt-category-v1-product-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 25px;
	padding: 4px 8px;
	border-radius: var(--tt-category-radius-pill);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tt-category-v1-product-card__badge--sale {
	background: var(--tt-category-pink);
	color: var(--tt-category-white);
}

.tt-category-v1-product-card__badge--out {
	background: var(--tt-category-dark);
	color: var(--tt-category-white);
}

.tt-category-v1-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 12px;
}

.tt-category-v1-product-card__category {
	display: -webkit-box;
	margin-bottom: 5px;
	overflow: hidden;
	color: var(--tt-category-blue-dark);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.tt-category-v1-product-card__title {
	display: -webkit-box;
	min-height: 2.65em;
	margin: 0 0 6px;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.32;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tt-category-v1-product-card__title a {
	color: var(--tt-category-dark);
	text-decoration: none;
}

.tt-category-v1-product-card__title a:hover {
	color: var(--tt-category-blue-dark);
}

.tt-category-v1-product-card__rating {
	min-height: 0;
	margin-bottom: 5px;
}

.tt-category-v1-product-card__rating:empty {
	display: none;
}

.tt-category-v1-product-card__rating .star-rating {
	float: none;
	margin: 0;
	color: var(--tt-category-yellow);
	font-size: 12px;
}

.tt-category-v1-product-card__stock {
	margin-bottom: 5px;
	color: var(--tt-category-green);
	font-size: 10px;
	font-weight: 800;
}

.tt-category-v1-product-card__stock.is-out-of-stock {
	color: var(--tt-category-pink);
}

.tt-category-v1-product-card__price {
	margin-top: auto;
	color: var(--tt-category-pink);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.3;
}

.tt-category-v1-product-card__price del {
	margin-right: 5px;
	color: #98a2b3;
	font-size: 11px;
	font-weight: 600;
}

.tt-category-v1-product-card__price ins {
	text-decoration: none;
}

.tt-category-v1-product-card__actions {
	margin-top: 9px;
}

.tt-category-v1-product-card__actions .button,
.tt-category-v1-product-card__actions .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 39px;
	margin: 0;
	padding: 7px 9px;
	border: 0;
	border-radius: 9px;
	background: var(--tt-category-blue);
	color: var(--tt-category-white);
	font-size: 10px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
}

.tt-category-v1-product-card__actions .button:hover,
.tt-category-v1-product-card__actions .added_to_cart:hover {
	background: var(--tt-category-pink);
	color: var(--tt-category-white);
}

.tt-category-v1-product-card__actions .button.loading {
	opacity: 0.65;
	pointer-events: none;
}

.tt-category-v1-product-card__actions .added_to_cart {
	margin-top: 7px;
	background: var(--tt-category-soft-green);
	color: var(--tt-category-success);
}

.tt-category-v1-product-grid__empty {
	padding: 36px 24px;
	border: 1px dashed var(--tt-category-border-strong);
	border-radius: 16px;
	background: var(--tt-category-background);
	text-align: center;
}

.tt-category-v1-product-grid__empty h2 {
	margin: 0 0 10px;
	font-size: 24px;
}

.tt-category-v1-product-grid__empty p {
	max-width: 620px;
	margin: 0 auto;
	color: var(--tt-category-muted);
	line-height: 1.7;
}

.tt-category-v1-product-grid__empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

.tt-category-v1-product-grid__empty-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 14px;
	border: 1px solid var(--tt-category-border);
	border-radius: 10px;
	background: var(--tt-category-white);
	color: var(--tt-category-dark);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.tt-category-v1-product-grid__empty-actions a:first-child {
	border-color: var(--tt-category-blue);
	background: var(--tt-category-blue);
	color: var(--tt-category-white);
}

/* =========================================================
   12. HOVER ENHANCEMENTS
   ========================================================= */

@media (hover: hover) {
	.tt-category-v1-child-card:hover,
	.tt-category-v1-product-card:hover {
		transform: translateY(-3px);
		border-color: rgba(0, 174, 239, 0.35);
		box-shadow: 0 15px 34px rgba(17, 24, 39, 0.09);
	}

	.tt-category-v1-child-card:hover
		.tt-category-v1-child-card__image,
	.tt-category-v1-product-card:hover
		.tt-category-v1-product-card__image-link img {
		transform: scale(1.035);
	}

	.tt-category-v1-child-card:hover
		.tt-category-v1-child-card__action {
		color: var(--tt-category-pink);
	}
}

/* =========================================================
   13. RESPONSIVE — LARGE DESKTOP
   ========================================================= */

@media (min-width: 1500px) {
	.tt-category-v1-children__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.tt-category-v1-product-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.tt-category-v1__results.is-grid-compact
		.tt-category-v1-product-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* =========================================================
   14. RESPONSIVE — LAPTOP
   ========================================================= */

@media (max-width: 1250px) {
	.tt-category-v1-children__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tt-category-v1-product-grid,
	.tt-category-v1__results.is-grid-compact
		.tt-category-v1-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.tt-category-v1__hero {
		grid-template-columns:
			minmax(0, 1.2fr)
			minmax(280px, 0.8fr);
	}

	.tt-category-v1__commerce {
		grid-template-columns:
			240px minmax(0, 1fr);
	}

	.tt-category-v1-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.tt-category-v1-toolbar__primary,
	.tt-category-v1-toolbar__secondary {
		width: 100%;
	}

	.tt-category-v1-toolbar__secondary {
		justify-content: space-between;
	}
}

/* =========================================================
   15. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {
	.tt-category-v1-children__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tt-category-v1-children__heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.tt-category-v1-children__heading p {
		max-width: none;
		text-align: left;
	}

	.tt-category-v1-product-grid,
	.tt-category-v1__results.is-grid-compact
		.tt-category-v1-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 800px) {
	.tt-category-v1__hero {
		grid-template-columns: 1fr;
		padding: 24px;
	}

	.tt-category-v1__hero-content {
		order: 2;
	}

	.tt-category-v1__hero-media {
		order: 1;
		min-height: 240px;
	}

	.tt-category-v1__hero-image {
		max-height: 300px;
	}

	.tt-category-v1-toolbar__filter-button {
		display: inline-flex;
	}

	.tt-category-v1-toolbar__density {
		display: none;
	}

	.tt-category-v1-toolbar__ordering {
		margin-left: auto;
	}

	.tt-category-v1__commerce {
		display: block;
	}

	.tt-category-v1__filters {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 9999;
		display: block;
		width: min(88vw, 360px);
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border-radius: 0 18px 18px 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(-105%);
		visibility: hidden;
		box-shadow: 18px 0 44px rgba(17, 24, 39, 0.18);
		transition:
			transform var(--tt-category-transition-normal),
			visibility var(--tt-category-transition-normal);
	}

	.admin-bar .tt-category-v1__filters {
		top: 0;
	}

	.tt-category-v1-filter-panel {
		min-height: 100%;
		padding-bottom: max(18px, env(safe-area-inset-bottom));
	}

	.tt-category-v1__filters.is-mobile-visible {
		visibility: visible;
		transform: translateX(0);
	}

	.tt-category-v1-filter-panel__close {
		display: inline-flex;
	}
}

/* =========================================================
   16. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {
	.tt-category-v1 {
		padding: 22px 0 36px;
	}

	.tt-category-v1__container {
		width: calc(100% - 20px);
	}

	.tt-category-v1__hero,
	.tt-category-v1-children,
	.tt-category-v1-toolbar,
	.tt-category-v1__results,
	.tt-category-v1__below-content {
		border-radius: 16px;
	}

	.tt-category-v1__hero {
		gap: 18px;
		padding: 17px;
	}

	.tt-category-v1__hero h1 {
		font-size: clamp(31px, 10vw, 45px);
	}

	.tt-category-v1__hero-introduction,
	.tt-category-v1__hero-description {
		font-size: 15px;
	}

	.tt-category-v1__hero-cta,
	.tt-category-v1__hero-action {
		width: 100%;
	}

	.tt-category-v1__hero-media {
		min-height: 210px;
		padding: 10px;
	}

	.tt-category-v1-children {
		padding: 17px;
	}

	.tt-category-v1-children__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.tt-category-v1-child-card__media {
		padding: 9px;
	}

	.tt-category-v1-child-card__content {
		padding: 11px;
	}

	.tt-category-v1-child-card h3 {
		font-size: 13px;
	}

	.tt-category-v1-toolbar {
		gap: 12px;
		padding: 12px;
	}

	.tt-category-v1-toolbar__primary,
	.tt-category-v1-toolbar__secondary {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.tt-category-v1-toolbar__count {
		display: flex;
		align-items: center;
		flex: 1 1 140px;
	}

	.tt-category-v1-toolbar__ordering {
		width: 100%;
		margin-left: 0;
	}

	.tt-category-v1-toolbar__ordering .woocommerce-ordering {
		flex: 1;
	}

	.tt-category-v1-toolbar__ordering select {
		width: 100%;
		min-width: 0;
	}

	.tt-category-v1-results__content {
		padding: 12px;
	}

	.tt-category-v1-product-grid,
	.tt-category-v1__results.is-grid-compact
		.tt-category-v1-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.tt-category-v1-product-card__image-link {
		padding: 9px;
	}

	.tt-category-v1-product-card__body {
		padding: 10px;
	}

	.tt-category-v1-product-card__title {
		font-size: 12px;
	}

	.tt-category-v1-product-card__price {
		font-size: 13px;
	}

	.tt-category-v1-product-card__actions .button,
	.tt-category-v1-product-card__actions .added_to_cart {
		min-height: 38px;
		padding: 7px 8px;
		font-size: 10px;
	}
}

/* =========================================================
   17. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.tt-category-v1 *,
	.tt-category-v1 *::before,
	.tt-category-v1 *::after,
	.tt-category-v1-filter-overlay {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.tt-category-v1-child-card:hover,
	.tt-category-v1-product-card:hover,
	.tt-category-v1__hero-cta:hover,
	.tt-category-v1__hero-action:hover {
		transform: none;
	}
}
body.totoland-master-category-page
	.wd-content-layout.content-layout-wrapper {
	display: block !important;
	grid-template-columns: none !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}
.tt-category-v1__hero.has-no-image,
.tt-category-v1__hero--without-image {
	grid-template-columns: minmax(0, 1fr);
}

.tt-category-v1__hero-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	padding: 16px;
}

.tt-category-v1__hero-image {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 360px;
	object-fit: contain;
	object-position: center;
}
/* =========================================================
   PHASE 7 — ENTERPRISE PAGINATION
   ========================================================= */

.tt-category-v1-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	margin-top: 24px;
	padding: 18px;
	border: 1px solid var(--tt-category-border);
	border-radius: 16px;
	background: var(--tt-category-white);
	box-shadow: var(--tt-category-shadow-sm);
}

.tt-category-v1-pagination__summary {
	flex: 0 0 auto;
	color: var(--tt-category-muted);
	font-size: 12px;
	font-weight: 700;
}

.tt-category-v1-pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-category-v1-pagination__item {
	margin: 0;
	padding: 0;
}

.tt-category-v1-pagination
	.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 40px;
	min-height: 40px;
	padding: 7px 11px;
	border: 1px solid var(--tt-category-border);
	border-radius: 10px;
	background: var(--tt-category-white);
	color: var(--tt-category-dark);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transition:
		border-color var(--tt-category-transition-fast),
		background-color var(--tt-category-transition-fast),
		color var(--tt-category-transition-fast),
		transform var(--tt-category-transition-fast);
}

.tt-category-v1-pagination
	a.page-numbers:hover {
	border-color: var(--tt-category-blue);
	background: var(--tt-category-soft-blue);
	color: var(--tt-category-blue-dark);
	transform: translateY(-1px);
}

.tt-category-v1-pagination
	.page-numbers.current {
	border-color: var(--tt-category-blue);
	background: var(--tt-category-blue);
	color: var(--tt-category-white);
}

.tt-category-v1-pagination
	.page-numbers.prev,
.tt-category-v1-pagination
	.page-numbers.next {
	padding-inline: 14px;
}

.tt-category-v1-pagination
	.page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--tt-category-muted);
}

@media (max-width: 700px) {
	.tt-category-v1-pagination {
		align-items: stretch;
		flex-direction: column;
	}

	.tt-category-v1-pagination__summary {
		text-align: center;
	}

	.tt-category-v1-pagination__list {
		justify-content: center;
	}

	.tt-category-v1-pagination
	.page-numbers {
		min-width: 38px;
		min-height: 38px;
		padding: 6px 9px;
	}

	.tt-category-v1-pagination
	.page-numbers.prev span:not([aria-hidden]),
	.tt-category-v1-pagination
	.page-numbers.next span:not([aria-hidden]) {
		display: none;
	}
}
/*==============================================================
#
# ENTERPRISE BUYING GUIDE
#
==============================================================*/

.tt-category-v1-buying-guide{

	margin-top:32px;

	padding:36px;

	background:#fff;

	border-radius:22px;

	border:1px solid rgba(0,0,0,.08);

	box-shadow:
	0 10px 30px rgba(0,0,0,.05);

}

.tt-category-v1-buying-guide__header{

	margin-bottom:24px;

}

.tt-category-v1-buying-guide h2{

	margin:10px 0;

	font-size:34px;

	line-height:1.2;

}

.tt-category-v1-buying-guide__content{

	max-width:900px;

}

.tt-category-v1-buying-guide p{

	font-size:17px;

	line-height:1.9;

	color:#667085;

}
/* =========================================================
   STAGE 9 — ENTERPRISE FAQ
   ========================================================= */

.tt-category-v1-faq {
	margin-top: 28px;
	padding: 32px;
	border: 1px solid var(--tt-category-border);
	border-radius: 22px;
	background: var(--tt-category-white);
	box-shadow: var(--tt-category-shadow-md);
}

.tt-category-v1-faq__header {
	max-width: 820px;
	margin-bottom: 24px;
}

.tt-category-v1-faq__header h2 {
	margin: 10px 0 8px;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.tt-category-v1-faq__header p {
	margin: 0;
	color: var(--tt-category-muted);
	font-size: 15px;
	line-height: 1.75;
}

.tt-category-v1-faq__list {
	display: grid;
	gap: 12px;
}

.tt-category-v1-faq__item {
	border: 1px solid var(--tt-category-border);
	border-radius: 15px;
	background: var(--tt-category-background);
	overflow: hidden;
}

.tt-category-v1-faq__item[open] {
	border-color: rgba(0, 174, 239, 0.34);
	background: var(--tt-category-white);
	box-shadow: var(--tt-category-shadow-sm);
}

.tt-category-v1-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 62px;
	padding: 16px 18px;
	color: var(--tt-category-dark);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.45;
	cursor: pointer;
	list-style: none;
}

.tt-category-v1-faq__question::-webkit-details-marker {
	display: none;
}

.tt-category-v1-faq__question::marker {
	display: none;
	content: "";
}

.tt-category-v1-faq__icon {
	display: inline-flex;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--tt-category-soft-blue);
	color: var(--tt-category-blue-dark);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	transition:
		transform var(--tt-category-transition-fast),
		background-color var(--tt-category-transition-fast),
		color var(--tt-category-transition-fast);
}

.tt-category-v1-faq__item[open]
	.tt-category-v1-faq__icon {
	background: var(--tt-category-blue);
	color: var(--tt-category-white);
	transform: rotate(45deg);
}

.tt-category-v1-faq__answer {
	padding: 0 18px 18px;
	color: var(--tt-category-muted);
}

.tt-category-v1-faq__answer p {
	max-width: 900px;
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
}

@media (hover: hover) {
	.tt-category-v1-faq__question:hover {
		color: var(--tt-category-blue-dark);
	}

	.tt-category-v1-faq__question:hover
		.tt-category-v1-faq__icon {
		background: var(--tt-category-blue);
		color: var(--tt-category-white);
	}
}

@media (max-width: 600px) {
	.tt-category-v1-faq {
		padding: 18px;
		border-radius: 17px;
	}

	.tt-category-v1-faq__header {
		margin-bottom: 18px;
	}

	.tt-category-v1-faq__header h2 {
		font-size: 27px;
	}

	.tt-category-v1-faq__question {
		min-height: 56px;
		padding: 14px;
		font-size: 14px;
	}

	.tt-category-v1-faq__answer {
		padding: 0 14px 15px;
	}
}
/* =========================================================
   STAGE 10 — RELATED CATEGORIES
   ========================================================= */

.tt-category-v1-related {
	margin-top: 28px;
	padding: 30px;
	border: 1px solid var(--tt-category-border);
	border-radius: 22px;
	background: var(--tt-category-white);
	box-shadow: var(--tt-category-shadow-md);
}

.tt-category-v1-related__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.tt-category-v1-related__header h2 {
	margin: 10px 0 0;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.tt-category-v1-related__header p {
	max-width: 440px;
	margin: 0;
	color: var(--tt-category-muted);
	font-size: 14px;
	line-height: 1.7;
	text-align: right;
}

.tt-category-v1-related__grid {
	display: grid;
	grid-template-columns:
		repeat(6, minmax(0, 1fr));
	gap: 15px;
}

.tt-category-v1-related-card {
	min-width: 0;
	border: 1px solid var(--tt-category-border);
	border-radius: 16px;
	background: var(--tt-category-white);
	overflow: hidden;
	transition:
		transform var(--tt-category-transition-fast),
		border-color var(--tt-category-transition-fast),
		box-shadow var(--tt-category-transition-fast);
}

.tt-category-v1-related-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.tt-category-v1-related-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 12px;
	background:
		linear-gradient(
			135deg,
			#f8fafc 0%,
			#eef9ff 100%
		);
	overflow: hidden;
}

.tt-category-v1-related-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition:
		transform var(--tt-category-transition-normal);
}

.tt-category-v1-related-card__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--tt-category-white);
	color: var(--tt-category-blue);
	font-size: 29px;
	font-weight: 900;
	box-shadow: var(--tt-category-shadow-sm);
}

.tt-category-v1-related-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 14px;
}

.tt-category-v1-related-card h3 {
	display: -webkit-box;
	min-height: 2.7em;
	margin: 0;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tt-category-v1-related-card__count {
	margin-top: 6px;
	color: var(--tt-category-muted);
	font-size: 11px;
	font-weight: 700;
}

.tt-category-v1-related-card__action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 12px;
	color: var(--tt-category-blue-dark);
	font-size: 11px;
	font-weight: 800;
}

@media (hover: hover) {
	.tt-category-v1-related-card:hover {
		transform: translateY(-3px);
		border-color: rgba(0, 174, 239, 0.38);
		box-shadow: 0 14px 30px rgba(17, 24, 39, 0.09);
	}

	.tt-category-v1-related-card:hover
		.tt-category-v1-related-card__image {
		transform: scale(1.04);
	}

	.tt-category-v1-related-card:hover
		.tt-category-v1-related-card__action {
		color: var(--tt-category-pink);
	}
}

@media (max-width: 1200px) {
	.tt-category-v1-related__grid {
		grid-template-columns:
			repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.tt-category-v1-related__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.tt-category-v1-related__header p {
		max-width: none;
		text-align: left;
	}

	.tt-category-v1-related__grid {
		grid-template-columns:
			repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.tt-category-v1-related {
		padding: 18px;
		border-radius: 17px;
	}

	.tt-category-v1-related__grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.tt-category-v1-related-card__media {
		padding: 9px;
	}

	.tt-category-v1-related-card__content {
		padding: 11px;
	}

	.tt-category-v1-related-card h3 {
		font-size: 13px;
	}
}

@media (max-width: 380px) {
	.tt-category-v1-related__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* =========================================================
   STAGE 11 — SEO CONTENT FRAMEWORK
   ========================================================= */

.tt-category-v1-seo {
	position: relative;
	margin-top: 28px;
	padding: 32px;
	border: 1px solid var(--tt-category-border);
	border-radius: 22px;
	background: var(--tt-category-white);
	box-shadow: var(--tt-category-shadow-md);
	overflow: hidden;
}

.tt-category-v1-seo__header {
	max-width: 900px;
	margin-bottom: 24px;
}

.tt-category-v1-seo__header h2 {
	margin: 10px 0 8px;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.tt-category-v1-seo__header > p {
	margin: 0;
	color: var(--tt-category-muted);
	font-size: 15px;
	line-height: 1.75;
}

.tt-category-v1-seo__body {
	position: relative;
	max-height: 360px;
	overflow: hidden;
	transition:
		max-height var(--tt-category-transition-normal);
}

.tt-category-v1-seo.is-expanded
	.tt-category-v1-seo__body {
	max-height: none;
	overflow: visible;
}

.tt-category-v1-seo.is-overflowing:not(.is-expanded)
	.tt-category-v1-seo__body::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 105px;
	background:
		linear-gradient(
			to bottom,
			rgba(255, 255, 255, 0),
			var(--tt-category-white) 82%
		);
	pointer-events: none;
}

.tt-category-v1-seo__content {
	max-width: 1050px;
	color: var(--tt-category-muted);
	font-size: 15px;
	line-height: 1.85;
}

.tt-category-v1-seo__content > :first-child {
	margin-top: 0;
}

.tt-category-v1-seo__content > :last-child {
	margin-bottom: 0;
}

.tt-category-v1-seo__content h2,
.tt-category-v1-seo__content h3,
.tt-category-v1-seo__content h4 {
	margin-top: 1.6em;
	margin-bottom: 0.55em;
	color: var(--tt-category-dark);
	line-height: 1.3;
}

.tt-category-v1-seo__content h2 {
	font-size: 26px;
}

.tt-category-v1-seo__content h3 {
	font-size: 21px;
}

.tt-category-v1-seo__content h4 {
	font-size: 17px;
}

.tt-category-v1-seo__content p {
	margin: 0 0 1em;
}

.tt-category-v1-seo__content ul,
.tt-category-v1-seo__content ol {
	margin: 0 0 1.2em;
	padding-left: 22px;
}

.tt-category-v1-seo__content li + li {
	margin-top: 7px;
}

.tt-category-v1-seo__content a {
	color: var(--tt-category-blue-dark);
	font-weight: 700;
	text-decoration: underline;
}

.tt-category-v1-seo__content a:hover {
	color: var(--tt-category-pink);
}

.tt-category-v1-seo__content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 22px 0;
	border-radius: 14px;
}

.tt-category-v1-seo__content blockquote {
	margin: 22px 0;
	padding: 16px 20px;
	border-left: 4px solid var(--tt-category-blue);
	border-radius: 0 12px 12px 0;
	background: var(--tt-category-soft-blue);
	color: var(--tt-category-dark);
}

.tt-category-v1-seo__toggle {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	margin-top: 15px;
	padding: 8px 15px;
	border: 1px solid var(--tt-category-blue);
	border-radius: 11px;
	background: var(--tt-category-white);
	color: var(--tt-category-blue-dark);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.tt-category-v1-seo__toggle[hidden] {
	display: none;
}

.tt-category-v1-seo__toggle:hover {
	background: var(--tt-category-blue);
	color: var(--tt-category-white);
}

.tt-category-v1-seo__toggle-icon {
	font-size: 18px;
	line-height: 1;
}

@media (max-width: 600px) {
	.tt-category-v1-seo {
		padding: 18px;
		border-radius: 17px;
	}

	.tt-category-v1-seo__header {
		margin-bottom: 18px;
	}

	.tt-category-v1-seo__header h2 {
		font-size: 27px;
	}

	.tt-category-v1-seo__body {
		max-height: 330px;
	}

	.tt-category-v1-seo__content {
		font-size: 14px;
		line-height: 1.8;
	}

	.tt-category-v1-seo__content h2 {
		font-size: 23px;
	}

	.tt-category-v1-seo__content h3 {
		font-size: 19px;
	}
}
