/*
 * Hallmark · genre: editorial · tone: quiet luxury · anchor: matcha green
 * Macrostructure: Catalogue · theme: Cha-no-wa matcha · enrichment: existing photography · designed-as-app
 * Pre-emit critique: P5 H5 E5 S5 R5 V4 · contrast: pass (40-41) · nav/footer: preserved
 * Slop: pass (42-49) · mobile: pass (34, 49-57)
 */
.cnw-shop-archive-v2 {
	--cnw-shop-paper: #f7f3e9;
	--cnw-shop-paper-2: #eee8db;
	--cnw-shop-surface: #fcfaf4;
	--cnw-shop-ink: #142b21;
	--cnw-shop-muted: #52655c;
	--cnw-shop-green: #103f2d;
	--cnw-shop-green-deep: #082d20;
	--cnw-shop-gold: #b8923f;
	--cnw-shop-gold-soft: #d4ba79;
	--cnw-shop-line: rgba(20, 43, 33, 0.18);
	--cnw-shop-focus: #8a6112;
	--cnw-shop-paper-72: rgba(247, 243, 233, 0.72);
	--cnw-shop-paper-82: rgba(247, 243, 233, 0.82);
	--cnw-shop-gold-line: rgba(184, 146, 63, 0.35);
	--cnw-shop-green-line: rgba(16, 63, 45, 0.5);
	--cnw-shop-green-button-line: rgba(16, 63, 45, 0.52);
	--cnw-shop-image-line: rgba(20, 43, 33, 0.1);
	--cnw-shop-shadow: rgba(8, 45, 32, 0.14);
	--cnw-shop-display: Georgia, "Times New Roman", serif;
	--cnw-shop-body: inherit;
	background: var(--cnw-shop-paper);
	color: var(--cnw-shop-ink);
}

html:has(body.cnw-shop-archive-v2),
body.cnw-shop-archive-v2 {
	overflow-x: clip;
}

.cnw-shop-archive-v2 .hero-section {
	display: none;
}

.cnw-shop-archive-v2 .site-main,
.cnw-shop-archive-v2 .site-main > .ct-container,
.cnw-shop-archive-v2 .site-main > .ct-container > section {
	padding-top: 0;
}

.cnw-shop-archive-v2 .site-main > .ct-container {
	width: min(100% - 32px, 1320px);
}

.cnw-shop-archive-v2 .woocommerce-products-header {
	display: none;
}

.cnw-shop-archive-v2 :where(a, button, input, select, summary):focus-visible {
	outline: 2px solid var(--cnw-shop-focus);
	outline-offset: 4px;
	box-shadow: 0 0 0 6px var(--cnw-shop-paper);
}

.cnw-shop-hero {
	width: 100%;
	background: var(--cnw-shop-green-deep);
	color: var(--cnw-shop-paper);
	border-block: 1px solid var(--cnw-shop-gold-line);
}

.cnw-shop-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
}

.cnw-shop-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: clamp(40px, 5vw, 64px) clamp(24px, 6vw, 96px) clamp(56px, 6vw, 88px);
}

.cnw-shop-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: clamp(24px, 3vw, 32px);
	color: var(--cnw-shop-paper-72);
	font-size: 12px;
	letter-spacing: 0.035em;
}

.cnw-shop-breadcrumb a {
	color: var(--cnw-shop-paper);
	text-decoration: none;
	white-space: nowrap;
}

.cnw-shop-breadcrumb a:hover {
	color: var(--cnw-shop-gold-soft);
}

.cnw-shop-hero h1 {
	max-width: 12ch;
	margin: 0;
	color: var(--cnw-shop-paper);
	font-family: var(--cnw-shop-display);
	font-size: clamp(2.55rem, 4.3vw, 4.8rem);
	font-style: normal;
	font-weight: 400;
	line-height: 0.96;
	letter-spacing: -0.045em;
	overflow-wrap: anywhere;
}

.cnw-shop-hero__rule {
	display: block;
	width: 52px;
	height: 2px;
	margin-block: 24px 20px;
	background: var(--cnw-shop-gold);
}

.cnw-shop-hero__copy > p {
	max-width: 46ch;
	margin: 0;
	color: var(--cnw-shop-paper-82);
	font-size: clamp(0.94rem, 1.2vw, 1.06rem);
	line-height: 1.65;
}

.cnw-shop-hero__media {
	position: relative;
	min-width: 0;
	min-height: 0;
	margin: 0;
	overflow: hidden;
	background: var(--cnw-shop-green);
}

.cnw-shop-hero__media::after {
	position: absolute;
	inset: 0 auto 0 0;
	width: min(18%, 150px);
	background: linear-gradient(90deg, var(--cnw-shop-green-deep), transparent);
	content: "";
	pointer-events: none;
}

.cnw-shop-hero__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 58%;
	filter: saturate(0.92) contrast(1.03);
}

.cnw-shop-tabs {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-block: clamp(24px, 3vw, 40px) 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--cnw-shop-line);
}

.cnw-shop-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 20px;
	color: var(--cnw-shop-green);
	border: 1px solid var(--cnw-shop-line);
	background: transparent;
	font-family: var(--cnw-shop-display);
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.cnw-shop-tab.is-active {
	background: var(--cnw-shop-green);
	color: var(--cnw-shop-paper);
	border-color: var(--cnw-shop-green);
}

.cnw-shop-archive-v2 .woo-listing-top {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	margin-bottom: clamp(28px, 3vw, 40px);
	padding-block: 8px;
	border-bottom: 1px solid var(--cnw-shop-line);
	color: var(--cnw-shop-muted);
}

.cnw-shop-archive-v2 .woo-listing-top .woocommerce-result-count {
	float: none;
	margin: 0;
	color: var(--cnw-shop-muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.cnw-shop-archive-v2 .woo-listing-top .woocommerce-ordering {
	float: none;
	margin: 0;
	order: 3;
}

.cnw-shop-archive-v2 .woo-listing-top .woocommerce-ordering select {
	min-width: 190px;
	min-height: 44px;
	margin: 0;
	padding: 8px 40px 8px 12px;
	background-color: var(--cnw-shop-surface);
	color: var(--cnw-shop-ink);
	border: 1px solid var(--cnw-shop-line);
	border-radius: 0;
	font-size: 13px;
}

.cnw-shop-filters {
	position: relative;
	order: 2;
}

.cnw-shop-filters summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px;
	color: var(--cnw-shop-green);
	border: 1px solid var(--cnw-shop-line);
	background: var(--cnw-shop-surface);
	font-size: 13px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
	white-space: nowrap;
}

.cnw-shop-filters summary::-webkit-details-marker {
	display: none;
}

.cnw-shop-filters summary svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
}

.cnw-shop-filters__panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 12px);
	right: 0;
	width: 360px;
	max-width: calc(100svw - 40px);
	padding: 24px;
	background: var(--cnw-shop-surface);
	color: var(--cnw-shop-ink);
	border: 1px solid var(--cnw-shop-line);
	box-shadow: 0 20px 40px var(--cnw-shop-shadow);
}

.cnw-shop-filters__title {
	margin: 0 0 8px;
	color: var(--cnw-shop-green);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cnw-shop-filters__collections {
	display: grid;
	margin-bottom: 20px;
	border-top: 1px solid var(--cnw-shop-line);
}

.cnw-shop-filters__collections a {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 4px;
	color: var(--cnw-shop-ink);
	border-bottom: 1px solid var(--cnw-shop-line);
	font-family: var(--cnw-shop-display);
	font-size: 14px;
	text-decoration: none;
}

.cnw-shop-filters__collections a[aria-current="page"] {
	color: var(--cnw-shop-green);
	font-weight: 700;
}

.cnw-shop-filters__stock {
	display: grid;
	gap: 8px;
	color: var(--cnw-shop-muted);
	font-size: 12px;
}

.cnw-shop-filters__stock {
	display: flex;
	align-items: center;
	min-height: 42px;
}

.cnw-shop-filters__stock input {
	width: 18px;
	height: 18px;
	accent-color: var(--cnw-shop-green);
}

.cnw-shop-filters__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
}

.cnw-shop-filters__actions button {
	min-height: 44px;
	padding: 12px 16px;
	background: var(--cnw-shop-green);
	color: var(--cnw-shop-paper);
	border: 1px solid var(--cnw-shop-green);
	border-radius: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cnw-shop-filters__actions a {
	color: var(--cnw-shop-green);
	font-size: 13px;
	text-underline-offset: 4px;
	white-space: nowrap;
}

.cnw-shop-archive-v2 ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(40px, 4vw, 60px) clamp(20px, 2.4vw, 32px);
	margin: 0;
}

.cnw-shop-archive-v2 ul.products::before,
.cnw-shop-archive-v2 ul.products::after {
	display: none;
}

.cnw-shop-archive-v2 ul.products li.product {
	display: grid;
	grid-template-rows: auto minmax(4.4em, auto) auto auto;
	align-content: stretch;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	text-align: left;
}

.cnw-shop-archive-v2 ul.products li.product figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--cnw-shop-paper-2);
	border: 1px solid var(--cnw-shop-image-line);
	aspect-ratio: 1 / 1;
}

.cnw-shop-archive-v2 ul.products li.product .ct-media-container {
	display: block;
	height: 100%;
}

.cnw-shop-archive-v2 ul.products li.product figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms ease;
}

.cnw-shop-archive-v2 ul.products li.product .woocommerce-loop-product__title {
	min-width: 0;
	min-height: 4.4em;
	margin: 16px 0 8px;
	color: var(--cnw-shop-ink);
	font-family: var(--cnw-shop-display);
	font-size: clamp(1rem, 1.4vw, 1.24rem);
	font-style: normal;
	font-weight: 400;
	line-height: 1.28;
	letter-spacing: -0.018em;
	overflow-wrap: anywhere;
}

.cnw-shop-archive-v2 ul.products li.product .woocommerce-loop-product__title a {
	color: inherit;
	text-decoration: none;
}

.cnw-shop-archive-v2 ul.products li.product .price {
	align-self: end;
	margin: 0 0 16px;
	color: var(--cnw-shop-green);
	font-size: 14px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.cnw-shop-archive-v2 ul.products li.product .entry-meta,
.cnw-shop-archive-v2 ul.products li.product .star-rating,
.cnw-shop-archive-v2 ul.products li.product .wc-stripe-shop-message-container {
	display: none;
}

.cnw-shop-archive-v2 ul.products li.product :is(.button, .added_to_cart) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 12px;
	background: transparent;
	color: var(--cnw-shop-green);
	border: 1px solid var(--cnw-shop-green-button-line);
	border-radius: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.075em;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 100ms ease;
}

.cnw-shop-archive-v2 ul.products li.product .added_to_cart {
	margin-top: 8px;
}

.cnw-shop-archive-v2 .onsale,
.cnw-shop-archive-v2 .out-of-stock-badge {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 8px 12px;
	background: var(--cnw-shop-green-deep);
	color: var(--cnw-shop-paper);
	border: 0;
	border-radius: 0;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1;
	text-transform: uppercase;
}

.cnw-shop-archive-v2 .woocommerce-pagination {
	margin-top: clamp(48px, 6vw, 80px);
}

.cnw-shop-archive-v2 .woocommerce-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	gap: 8px;
	border: 0;
}

.cnw-shop-archive-v2 .woocommerce-pagination .page-numbers li {
	border: 0;
}

.cnw-shop-archive-v2 .woocommerce-pagination :is(a, span).page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px;
	color: var(--cnw-shop-green);
	border: 1px solid var(--cnw-shop-line);
	background: transparent;
}

.cnw-shop-archive-v2 .woocommerce-pagination span.page-numbers.current {
	background: var(--cnw-shop-green);
	color: var(--cnw-shop-paper);
	border-color: var(--cnw-shop-green);
}

@media (hover: hover) and (pointer: fine) {
	.cnw-shop-tab:hover,
	.cnw-shop-filters summary:hover {
		border-color: var(--cnw-shop-green-line);
		background: var(--cnw-shop-paper-2);
		color: var(--cnw-shop-green-deep);
	}

	.cnw-shop-tab.is-active:hover {
		background: var(--cnw-shop-green-deep);
		color: var(--cnw-shop-paper);
	}

	.cnw-shop-archive-v2 ul.products li.product:hover figure img {
		transform: scale(1.02);
		filter: saturate(1.04);
	}

	.cnw-shop-archive-v2 ul.products li.product :is(.button, .added_to_cart):hover {
		background: var(--cnw-shop-green);
		color: var(--cnw-shop-paper);
		border-color: var(--cnw-shop-green);
	}
}

.cnw-shop-archive-v2 ul.products li.product :is(.button, .added_to_cart):active,
.cnw-shop-filters__actions button:active {
	transform: translateY(1px);
}

.cnw-shop-archive-v2 .cnw-shop-tab:active,
.cnw-shop-archive-v2 .cnw-shop-filters summary:active,
.cnw-shop-archive-v2 .cnw-shop-filters__actions a:active {
	color: var(--cnw-shop-gold);
}

.cnw-shop-archive-v2 ul.products li.product .button.loading {
	cursor: wait;
	opacity: 0.72;
}

.cnw-shop-archive-v2 ul.products li.product .button.added {
	border-color: var(--cnw-shop-green);
}

.cnw-shop-archive-v2 ul.products li.product .button:disabled,
.cnw-shop-archive-v2 ul.products li.product .button[aria-disabled="true"],
.cnw-shop-archive-v2 .cnw-shop-filters__actions button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

@media (min-width: 40rem) and (max-width: 68rem) {
	.cnw-shop-archive-v2 ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 52.01rem) {
	.cnw-shop-hero__inner {
		height: clamp(320px, 27vw, 390px);
		overflow: hidden;
	}

	.cnw-shop-hero__media {
		align-self: stretch;
		height: clamp(320px, 27vw, 390px);
		max-height: none;
	}
}

@media (max-width: 52rem) {
	.cnw-shop-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.cnw-shop-hero__copy {
		padding: 36px 24px 48px;
	}

	.cnw-shop-hero h1 {
		max-width: 11ch;
	}

	.cnw-shop-hero__media {
		min-height: 210px;
	}

	.cnw-shop-hero__media::after {
		inset: 0 0 auto;
		width: 100%;
		height: 52px;
		background: linear-gradient(180deg, var(--cnw-shop-green-deep), transparent);
	}

	.cnw-shop-archive-v2 .woo-listing-top {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.cnw-shop-archive-v2 .woo-listing-top .woocommerce-ordering {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.cnw-shop-archive-v2 .woo-listing-top .woocommerce-ordering select {
		width: 100%;
	}

	.cnw-shop-filters {
		grid-column: 2;
		grid-row: 1;
	}
}

@media (max-width: 39.99rem) {
	.cnw-shop-archive-v2 .site-main > .ct-container {
		width: min(100% - 24px, 580px);
	}

	.cnw-shop-tabs {
		justify-content: flex-start;
	}

	.cnw-shop-tab {
		flex: 1 1 auto;
		padding-inline: 12px;
		font-size: 13px;
	}

	.cnw-shop-archive-v2 .woo-listing-top {
		gap: 12px;
	}

	.cnw-shop-archive-v2 .woo-listing-top .woocommerce-result-count {
		font-size: 12px;
		line-height: 1.4;
	}

	.cnw-shop-filters__panel {
		position: fixed;
		z-index: 100;
		inset: auto 12px 20px;
		width: auto;
		max-height: calc(100svh - 40px);
		overflow-y: auto;
	}

	.cnw-shop-archive-v2 ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 12px;
	}

	.cnw-shop-archive-v2 ul.products li.product {
		grid-template-rows: auto minmax(6.6em, auto) auto auto;
	}

	.cnw-shop-archive-v2 ul.products li.product .woocommerce-loop-product__title {
		min-height: 6.6em;
		margin-top: 12px;
		font-size: 0.96rem;
		line-height: 1.24;
	}

	.cnw-shop-archive-v2 ul.products li.product :is(.button, .added_to_cart) {
		padding-inline: 8px;
		letter-spacing: 0.04em;
	}
}

@media (max-width: 22rem) {
	.cnw-shop-archive-v2 ul.products {
		grid-template-columns: minmax(0, 1fr);
	}

	.cnw-shop-archive-v2 ul.products li.product {
		grid-template-rows: auto auto auto auto;
	}

	.cnw-shop-archive-v2 ul.products li.product .woocommerce-loop-product__title {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cnw-shop-archive-v2 *,
	.cnw-shop-archive-v2 *::before,
	.cnw-shop-archive-v2 *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
