/* ============================================================
   Onyoda — collection / product archive (shop + category pages)
   Ported from the Shopify sections/onyoda-collection layout.
   Uses theme.json design tokens via CSS custom properties.
   ============================================================ */

.ony-collection {
	background: var(--wp--preset--color--cream);
}

/* ---------- Header ---------- */
.ony-collection__header {
	text-align: center;
	padding: 90px 56px 40px;
	max-width: 1500px;
	margin: 0 auto;
}
.ony-collection__eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.ony-collection__heading {
	margin: 18px 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: 72px;
	line-height: 1.02;
	color: var(--wp--preset--color--sienna);
}
.ony-collection__intro {
	margin: 22px auto 0;
	max-width: 540px;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.7;
	color: var(--wp--preset--color--espresso);
}
.ony-collection__intro p {
	margin: 0;
}

/* ---------- Chip toolbar ---------- */
.ony-collection__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding: 14px 56px 40px;
	max-width: 1500px;
	margin: 0 auto;
}
.ony-collection__chips {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.ony-chip {
	display: inline-flex;
	align-items: center;
	background: transparent;
	color: var(--wp--preset--color--mute);
	border: 1px solid rgba(126, 73, 3, 0.18);
	border-radius: 999px;
	padding: 10px 20px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.ony-chip:hover {
	color: var(--wp--preset--color--sienna);
	border-color: var(--wp--preset--color--sienna);
}
.ony-chip.is-active {
	background: var(--wp--preset--color--sienna);
	color: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--sienna);
}
.ony-collection__count {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--espresso);
	white-space: nowrap;
}

/* ---------- Grid ---------- */
.ony-collection__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 42px 32px;
	padding: 0 56px 130px;
	max-width: 1500px;
	margin: 0 auto;
}

/* ---------- Empty state ---------- */
.ony-collection__empty {
	max-width: 1500px;
	margin: 0 auto;
	padding: 60px 56px 130px;
	text-align: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 300;
	color: var(--wp--preset--color--mute);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
	.ony-collection__header {
		padding: 70px 24px 30px;
	}
	.ony-collection__heading {
		font-size: 54px;
	}
	.ony-collection__toolbar {
		padding: 0 24px 26px;
	}
	.ony-collection__grid,
	.ony-collection__grid--one,
	.ony-collection__grid--two {
		grid-template-columns: repeat(2, 1fr);
		justify-content: stretch;
		gap: 16px 14px;
		padding: 0 24px 90px;
	}
	.ony-collection__empty {
		padding: 40px 24px 90px;
	}
}
@media (max-width: 560px) {
	.ony-collection__heading {
		font-size: 42px;
	}
	.ony-collection__grid,
	.ony-collection__grid--one,
	.ony-collection__grid--two {
		grid-template-columns: 1fr;
	}
}
