/**
 * Hutch collection taxonomy template — layout parity with Next.js /collections/[category].
 * Scoped to body.tax-collections; loaded after main.css.
 */

/* ── Drop Astra container padding for full-bleed layout ─────────────── */
body.tax-collections #content.site-content > .ast-container {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.hutch-collection-template {
	width: 100%;
	max-width: none;
	margin: 0;
	overflow-x: clip;
}

.hutch-collection-template .hutch-inner {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

/* ── Header band (breadcrumb + title) ─────────────────────────────── */
.hutch-collection-template .collection-header-band {
	background: var(--color-warm-white);
	border-bottom: 1px solid var(--color-border);
	padding-block: 3rem;
}

.hutch-collection-template .collection-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	color: var(--color-warm-grey);
}

.hutch-collection-template .collection-breadcrumb a {
	color: var(--color-warm-grey);
	transition: color 0.2s;
}

.hutch-collection-template .collection-breadcrumb a:hover {
	color: var(--color-gold-vivid);
}

.hutch-collection-template .collection-breadcrumb svg {
	color: var(--color-warm-grey-light);
	flex-shrink: 0;
}

.hutch-collection-template .collection-breadcrumb span[aria-current] {
	color: var(--color-charcoal);
	font-weight: 500;
}

.hutch-collection-template .collection-title {
	font-family: var(--font-serif);
	font-size: clamp(2.25rem, 5vw, 3rem);
	font-weight: 300;
	color: var(--color-charcoal);
	line-height: 1.1;
	margin-bottom: 0.75rem;
}

.hutch-collection-template .collection-description {
	font-family: var(--font-sans);
	font-size: 1rem;
	color: var(--color-warm-grey);
	max-width: 32rem;
	line-height: 1.625;
}

/* ── Products section ─────────────────────────────────────────────── */
.hutch-collection-template .collection-products {
	background: var(--color-white);
	padding-block: 4rem;
}

.hutch-collection-template .collection-count-row {
	margin-bottom: 2.5rem;
}

.hutch-collection-template .collection-count {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	color: var(--color-warm-grey);
}

.hutch-collection-template .collection-count strong {
	font-weight: 600;
	color: var(--color-charcoal);
}

.hutch-collection-template .collection-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 640px) {
	.hutch-collection-template .collection-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.hutch-collection-template .collection-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ── Product card (React ProductCard) ─────────────────────────────── */
.hutch-collection-template .hutch-product-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.hutch-collection-template .hutch-product-media {
	position: relative;
	aspect-ratio: 3 / 4;
	background: var(--color-cream);
	overflow: hidden;
	margin-bottom: 1rem;
}

.hutch-collection-template .hutch-img-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.hutch-collection-template .hutch-product-card:hover .hutch-img-cover {
	transform: scale(1.05);
}

.hutch-collection-template .hutch-product-no-image {
	width: 100%;
	height: 100%;
	background: var(--color-cream);
}

.hutch-collection-template .hutch-product-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	background: var(--color-charcoal);
	color: var(--color-white);
	padding: 0.25rem 0.75rem;
	font-family: var(--font-sans);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
}

.hutch-collection-template .hutch-product-badge--custom {
	left: auto;
	right: 1rem;
	background: var(--color-gold-vivid);
}

.hutch-collection-template .hutch-product-hover-shade {
	position: absolute;
	inset: 0;
	background: rgba(23, 23, 23, 0);
	transition: background-color 0.3s;
	pointer-events: none;
}

.hutch-collection-template .hutch-product-card:hover .hutch-product-hover-shade {
	background: rgba(23, 23, 23, 0.1);
}

.hutch-collection-template .hutch-product-hover-cap {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	background: var(--color-charcoal);
	color: var(--color-white);
	padding: 0.75rem 1rem;
	transform: translateY(100%);
	transition: transform 0.3s;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
}

.hutch-collection-template .hutch-product-card:hover .hutch-product-hover-cap {
	transform: translateY(0);
}

.hutch-collection-template .hutch-product-meta-cat {
	font-family: var(--font-sans);
	font-size: 10px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--color-warm-grey);
	margin-bottom: 0.375rem;
}

.hutch-collection-template .hutch-product-meta-title {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--color-charcoal);
	line-height: 1.25;
	margin-bottom: 0.5rem;
	transition: color 0.2s;
}

.hutch-collection-template .hutch-product-card:hover .hutch-product-meta-title {
	color: var(--color-gold-vivid);
}

.hutch-collection-template .hutch-product-meta-desc {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	color: var(--color-warm-grey-light);
	line-height: 1.625;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Empty state ──────────────────────────────────────────────────── */
.hutch-collection-template .collection-empty {
	padding: 4rem 2rem;
	background: var(--color-warm-white);
	border: 1px solid var(--color-border);
	text-align: center;
	max-width: 32rem;
	margin-inline: auto;
}

.hutch-collection-template .collection-empty h3 {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	color: var(--color-charcoal);
	margin-bottom: 0.5rem;
}

.hutch-collection-template .collection-empty p {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	color: var(--color-warm-grey);
	line-height: 1.625;
	margin-bottom: 1.5rem;
}

/* ── Custom order note ────────────────────────────────────────────── */
.hutch-collection-template .collection-custom-note {
	margin-top: 4rem;
	padding: 2rem;
	background: var(--color-warm-white);
	border: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.hutch-collection-template .collection-custom-note {
		flex-direction: row;
		align-items: center;
	}
}

.hutch-collection-template .collection-custom-note-text {
	flex: 1;
}

.hutch-collection-template .collection-custom-note h3 {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--color-charcoal);
	margin-bottom: 0.25rem;
}

.hutch-collection-template .collection-custom-note p {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	color: var(--color-warm-grey);
	line-height: 1.625;
}

.hutch-collection-template .collection-custom-note-btn {
	flex-shrink: 0;
}

/* ── Buttons (shared with home CTA patterns) ──────────────────────── */
.hutch-collection-template .hutch-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 0.875rem 1.75rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
}

.hutch-collection-template .hutch-btn-outline-gold {
	background: transparent;
	color: var(--color-gold-vivid);
	border-color: var(--color-gold-vivid);
}

.hutch-collection-template .hutch-btn-outline-gold:hover {
	background: var(--color-gold-vivid);
	color: var(--color-white);
}

.hutch-collection-template .hutch-btn-orange {
	background: var(--color-gold-vivid);
	color: var(--color-white);
	border-color: var(--color-gold-vivid);
	font-size: 0.875rem;
	padding: 1rem 2rem;
}

.hutch-collection-template .hutch-btn-orange:hover {
	background: var(--color-gold);
	border-color: var(--color-gold);
}

.hutch-collection-template .hutch-btn-wa {
	background: transparent;
	color: var(--color-white);
	border-color: rgba(255, 255, 255, 0.4);
	font-size: 0.875rem;
	padding: 1rem 2rem;
}

.hutch-collection-template .hutch-btn-wa:hover {
	border-color: var(--color-white);
	background: rgba(255, 255, 255, 0.1);
}

/* ── Final CTA band (EnquiryCTA) ──────────────────────────────────── */
.hutch-collection-template .hutch-cta-final {
	position: relative;
	padding: 8rem 0;
	overflow: hidden;
}

.hutch-collection-template .hutch-cta-final-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}

.hutch-collection-template .hutch-cta-final-shade {
	position: absolute;
	inset: 0;
	background: rgba(23, 23, 23, 0.75);
}

.hutch-collection-template .hutch-cta-final-inner {
	position: relative;
	z-index: 2;
	max-width: 48rem;
	margin-inline: auto;
	padding-inline: var(--container-pad);
	text-align: center;
}

.hutch-collection-template .hutch-cta-kicker {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--color-gold-pale);
	margin-bottom: 1.25rem;
}

.hutch-collection-template .hutch-cta-heading {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 5vw, 3.75rem);
	font-weight: 300;
	color: var(--color-white);
	line-height: 1.15;
	margin-bottom: 1.5rem;
}

.hutch-collection-template .hutch-cta-heading em,
.hutch-collection-template .hutch-cta-heading .italic {
	font-style: italic;
	font-weight: 400;
}

.hutch-collection-template .hutch-cta-body {
	font-family: var(--font-sans);
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.65);
	max-width: 28rem;
	margin-inline: auto;
	line-height: 1.625;
	margin-bottom: 2.5rem;
}

.hutch-collection-template .hutch-cta-row {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
	align-items: center;
}

@media (min-width: 640px) {
	.hutch-collection-template .hutch-cta-row {
		flex-direction: row;
	}
}

/* ── Pagination ───────────────────────────────────────────────────── */
.hutch-collection-template .pagination,
.hutch-collection-template .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	padding-top: 3rem;
}

.hutch-collection-template .page-numbers {
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-weight: 500;
	border: 1px solid var(--color-border);
	color: var(--color-charcoal);
	transition: var(--transition);
	text-decoration: none;
}

.hutch-collection-template .page-numbers:hover {
	border-color: var(--color-gold-vivid);
	color: var(--color-gold-vivid);
}

.hutch-collection-template .page-numbers.current {
	background: var(--color-charcoal);
	color: var(--color-white);
	border-color: var(--color-charcoal);
}

.hutch-collection-template .page-numbers.dots {
	border: none;
	width: auto;
}

.hutch-collection-template .page-numbers.prev,
.hutch-collection-template .page-numbers.next {
	border: none;
	font-size: 1.1rem;
}
