/*
 * Shop / category archive (design/Category.dc.html): filter sidebar, toolbar,
 * product grid and "Load more".
 */

.tt-archive {
	max-width: var(--tt-container, 1200px);
	margin-inline: auto;
	padding: 28px 0 64px; /* L/R gutter from the theme root padding; avoid double padding. */
	box-sizing: border-box;
}
.tt-archive__head {
	margin-bottom: 24px;
}
.tt-archive__title {
	margin: 10px 0 8px;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.1;
	font-weight: 900;
	color: var(--wp--preset--color--brand-purple);
}
.tt-archive__desc {
	font-size: var(--wp--preset--font-size--lead);
	max-width: 720px;
}

.tt-archive__body {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}

/* Sidebar */
.tt-filters {
	flex: 1 1 250px;
	max-width: 100%;
	box-sizing: border-box;
}
.tt-filters__form {
	display: flex;
	flex-direction: column;
	gap: 22px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	padding: 24px;
}
.tt-filters__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.tt-filters__title {
	font-size: 20px;
	font-weight: 900;
	color: var(--wp--preset--color--brand-purple);
}
.tt-filters__group {
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tt-filters__group legend {
	font-weight: 800;
	color: var(--wp--preset--color--ink);
	margin-bottom: 8px;
	padding: 0;
}
.tt-filters__check {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
	cursor: pointer;
}
.tt-filters__count {
	margin-left: auto;
	color: var(--wp--preset--color--muted);
	font-size: 16px;
}
.tt-filters__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.tt-filters__swatch {
	position: relative;
	cursor: pointer;
}
.tt-filters__swatch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}
.tt-filters__swatch-dot {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--tt-hex, #ccc);
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--wp--preset--color--field-border);
}
.tt-filters__swatch input:checked + .tt-filters__swatch-dot {
	box-shadow: 0 0 0 3px var(--wp--preset--color--primary);
}
.tt-filters__apply {
	width: 100%;
}
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Main column */
.tt-archive__main {
	flex: 999 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.tt-archive__toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.tt-archive__count {
	font-weight: 700;
	color: var(--wp--preset--color--muted);
}
.tt-sort {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}
.tt-sort select {
	min-height: 48px;
	padding: 0 14px;
	border: 2px solid var(--wp--preset--color--field-border);
	border-radius: 12px;
	background: var(--wp--preset--color--surface);
	font-family: inherit;
	font-size: 17px;
	color: var(--wp--preset--color--ink);
}
.tt-archive__grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.tt-archive__grid .tt-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	padding: 14px;
}
.tt-archive__grid .tt-card__media {
	border-radius: 14px;
	padding: 5px; /* small inset so the tint shows as a thin frame */
}
.tt-archive__grid .tt-card__media img {
	border-radius: 8px;
}
/* Price on its own row (the range needs the full width), button full-width below. */
.tt-archive__grid .tt-card__footer {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}
.tt-archive__grid .tt-card__footer .tt-card__cta {
	width: 100%;
	box-sizing: border-box; /* keep width:100% inside the card incl. padding */
	justify-content: center;
}
.tt-archive__more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding-top: 12px;
}
.tt-archive__showing {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.tt-archive__empty {
	font-size: var(--wp--preset--font-size--lead);
	color: var(--wp--preset--color--muted);
}

@media (max-width: 781px) {
	/* Mobile: hide the filter sidebar for a cleaner, compact layout. The grid
	 * takes the full width; the Sort control in the toolbar stays available. */
	.tt-filters {
		display: none;
	}
}
