.woocommerce-breadcrumb {
	padding-block: var(--space-4);
	color: var(--color-muted);
	font-size: var(--font-xs);
}

.woocommerce-breadcrumb a {
	color: var(--color-muted);
}

.catalog-shell {
	padding-bottom: var(--space-7);
}

.catalog-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	min-height: 220px;
	padding-block: var(--space-5);
}

.catalog-header h1 {
	margin-bottom: var(--space-3);
	font-size: clamp(2.6rem, 6vw, 5.25rem);
}

.catalog-description {
	max-width: 700px;
	color: var(--color-muted);
}

.catalog-description p:last-child {
	margin-bottom: 0;
}

.catalog-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	margin-bottom: var(--space-4);
	border-block: 1px solid var(--color-border);
}

.filter-panel {
	position: relative;
}

.filter-panel > summary {
	list-style: none;
}

.filter-panel > summary::-webkit-details-marker {
	display: none;
}

.filter-toggle {
	display: inline-flex;
	gap: 0.6rem;
	align-items: center;
	min-height: 44px;
	cursor: pointer;
	font-weight: 800;
}

.filter-toggle::before {
	width: 20px;
	height: 14px;
	border-block: 2px solid currentcolor;
	content: "";
}

.filter-toggle__count {
	display: inline-grid;
	width: 23px;
	height: 23px;
	place-items: center;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	font-size: 0.7rem;
}

.filter-drawer {
	position: absolute;
	top: calc(100% + 14px);
	left: 0;
	z-index: 15;
	width: min(440px, calc(100vw - 40px));
	padding: var(--space-4);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-paper);
	box-shadow: var(--shadow-soft);
}

.filter-drawer__header {
	display: flex;
	align-items: start;
	justify-content: space-between;
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--color-border);
}

.filter-drawer__header h2 {
	margin: 0;
	font-size: 1.75rem;
}

.filter-close {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--color-surface);
	cursor: pointer;
	font-size: 1.6rem;
}

.catalog-filter-form fieldset {
	padding: var(--space-4) 0;
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--color-border);
}

.catalog-filter-form legend {
	margin-bottom: var(--space-2);
	font-weight: 800;
}

.catalog-filter-form fieldset > label {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	min-height: 40px;
}

.catalog-filter-form input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--color-primary);
}

.price-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3);
}

.price-fields label {
	display: block;
}

.price-fields span {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--color-muted);
	font-size: var(--font-xs);
}

.price-fields input,
.catalog-filter-form select,
.catalog-order-form select {
	width: 100%;
	height: 46px;
	padding: 0 0.8rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--color-ink);
}

.filter-actions {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--space-2);
	padding-top: var(--space-4);
}

.filter-actions > a {
	grid-column: 1 / -1;
	justify-self: start;
	font-size: var(--font-sm);
	font-weight: 700;
}

.catalog-order-form {
	display: flex;
	gap: var(--space-2);
	align-items: center;
}

.catalog-order-form label {
	color: var(--color-muted);
	font-size: var(--font-sm);
}

.catalog-order-form select {
	width: auto;
	min-width: 220px;
	border: 0;
	background-color: transparent;
	font-weight: 700;
}

.catalog-result-summary {
	margin-bottom: var(--space-4);
	color: var(--color-muted);
	font-size: var(--font-sm);
}

.catalog-result-summary strong {
	color: var(--color-ink);
}

.catalog-results {
	min-height: 360px;
	transition: opacity 150ms ease;
}

.catalog-results.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

ul.products.stamp-product-grid,
.home-products ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.product-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	margin: 0 !important;
}

.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1.12;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: var(--color-surface);
}

.product-card__image {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	transition: opacity 220ms ease, transform 260ms ease;
}

.product-card__image--secondary {
	opacity: 0;
}

.product-card__media:hover .product-card__image--primary {
	opacity: 0;
}

.product-card__media:hover .product-card__image--secondary {
	opacity: 1;
	transform: scale(1.02);
}

.product-card__media:hover .product-card__image--primary:last-child {
	opacity: 1;
	transform: scale(1.02);
}

.product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 0.3rem 0.65rem;
	border-radius: 99px;
	background: var(--color-accent);
	color: var(--color-ink);
	font-size: var(--font-xs);
	font-weight: 800;
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: var(--space-3);
}

.product-card__stock {
	margin-bottom: 0.35rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.product-card__stock.is-in-stock {
	color: var(--color-primary);
}

.product-card__stock.is-out-of-stock {
	color: var(--color-error);
}

.product-card__title {
	display: -webkit-box;
	min-height: 2.8em;
	margin-bottom: var(--space-2);
	overflow: hidden;
	font-family: inherit;
	font-size: var(--font-base);
	font-weight: 650;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.product-card__title a {
	text-decoration: none;
}

.product-card__price {
	min-height: 1.7rem;
	margin-top: auto;
	margin-bottom: var(--space-3);
	font-weight: 800;
}

.product-card__price del {
	margin-right: 0.35rem;
	color: var(--color-muted);
	font-weight: 500;
}

.product-card__price ins {
	color: var(--color-error);
	text-decoration: none;
}

.product-card__button {
	width: 100%;
}

.woocommerce-pagination {
	margin-top: var(--space-6);
}

.woocommerce-pagination ul {
	display: flex;
	gap: var(--space-2);
	justify-content: center;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
	display: grid;
	min-width: 44px;
	min-height: 44px;
	place-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	text-decoration: none;
}

.woocommerce-pagination .current {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: #fff;
}

.catalog-empty {
	padding: var(--space-7) var(--space-4);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	text-align: center;
}

.single-product-shell {
	padding-bottom: var(--space-7);
}

.stamp-single-product {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.stamp-single-product__gallery {
	min-width: 0;
}

.woocommerce-product-gallery {
	position: relative;
	width: 100% !important;
	margin: 0 !important;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image {
	aspect-ratio: 1 / 1.08;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}

.woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 82px);
	gap: var(--space-2);
	padding: 0;
	margin: var(--space-3) 0 0;
	list-style: none;
}

.flex-control-thumbs img {
	aspect-ratio: 1;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	object-fit: cover;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--shadow-soft);
	font-size: 0;
	text-decoration: none;
}

.woocommerce-product-gallery__trigger::before {
	color: var(--color-ink);
	content: "＋";
	font-size: 1.4rem;
}

.stamp-single-product__summary {
	position: sticky;
	top: 20px;
	padding-top: var(--space-4);
}

.stamp-single-product__summary h1 {
	margin-bottom: var(--space-3);
	font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.stamp-single-product__price {
	margin-bottom: var(--space-4);
	font-size: var(--font-lg);
	font-weight: 800;
}

.stamp-single-product__price del {
	color: var(--color-muted);
}

.stamp-single-product__price ins {
	color: var(--color-error);
	text-decoration: none;
}

.stamp-single-product__excerpt {
	color: var(--color-muted);
}

.stamp-stock {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	padding-block: var(--space-3);
	margin: var(--space-3) 0;
	border-block: 1px solid var(--color-border);
	font-size: var(--font-sm);
	font-weight: 800;
}

.stamp-stock > span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentcolor;
}

.stamp-stock.is-in-stock {
	color: var(--color-primary);
}

.stamp-stock.is-out-of-stock {
	color: var(--color-error);
}

.stamp-pack-options {
	padding: 0;
	margin: 0 0 var(--space-4);
	border: 0;
}

.stamp-pack-options legend {
	margin-bottom: var(--space-2);
	font-size: var(--font-sm);
	font-weight: 800;
}

.stamp-pack-options__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-2);
}

.stamp-pack-options label {
	position: relative;
	display: grid;
	min-height: 70px;
	place-content: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	text-align: center;
}

.stamp-pack-options input {
	position: absolute;
	opacity: 0;
}

.stamp-pack-options label:has(input:checked) {
	border-color: var(--color-primary);
	box-shadow: inset 0 0 0 1px var(--color-primary);
	background: rgb(21 89 79 / 5%);
}

.stamp-pack-options label:has(input:focus-visible) {
	outline: 3px solid rgb(21 89 79 / 35%);
	outline-offset: 2px;
}

.stamp-pack-options span {
	font-weight: 800;
}

.stamp-pack-options small {
	color: var(--color-muted);
}

.stamp-purchase-row {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: var(--space-2);
}

.stamp-quantity span {
	display: block;
	margin-bottom: 0.25rem;
	font-size: var(--font-xs);
	font-weight: 700;
}

.stamp-quantity input {
	width: 100%;
	height: 52px;
	padding: 0 0.7rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
}

.stamp-buy-button {
	align-self: end;
	min-height: 52px;
	text-align: center;
}

.stamp-buy-button.is-disabled {
	background: #89928f;
	cursor: not-allowed;
}

.stamp-buy-button.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

.stamp-checkout-message {
	margin: var(--space-2) 0 0;
	color: var(--color-muted);
	font-size: var(--font-xs);
}

.stamp-checkout-error {
	margin-top: var(--space-2);
	color: var(--color-error);
	font-size: var(--font-sm);
}

.purchase-assurances {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3);
	margin-top: var(--space-5);
}

.purchase-assurances p {
	margin: 0;
	padding: var(--space-3);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
}

.purchase-assurances strong,
.purchase-assurances span {
	display: block;
}

.purchase-assurances strong {
	font-size: var(--font-sm);
}

.purchase-assurances span {
	margin-top: 0.25rem;
	color: var(--color-muted);
	font-size: var(--font-xs);
}

.product-accordions {
	max-width: 920px;
	margin-top: var(--space-7);
	margin-inline: auto;
	border-top: 1px solid var(--color-border);
}

.product-accordions details {
	border-bottom: 1px solid var(--color-border);
}

.product-accordions summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	cursor: pointer;
	font-family: Georgia, serif;
	font-size: 1.25rem;
	font-weight: 600;
	list-style: none;
}

.product-accordions summary::-webkit-details-marker {
	display: none;
}

.product-accordions details[open] summary span {
	transform: rotate(45deg);
}

.product-accordions details > div {
	padding: 0 0 var(--space-4);
	color: var(--color-muted);
}

.product-accordions details > div > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 1100px) and (min-width: 721px) {
	ul.products.stamp-product-grid,
	.home-products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.stamp-single-product {
		grid-template-columns: 1fr;
	}

	.stamp-single-product__summary {
		position: static;
		padding-top: 0;
	}
}

@media (max-width: 720px) {
	.catalog-header {
		min-height: 170px;
		padding-block: var(--space-4);
	}

	.catalog-header h1 {
		font-size: clamp(2.35rem, 12vw, 3.6rem);
	}

	.catalog-toolbar {
		min-height: 64px;
	}

	.catalog-order-form label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.catalog-order-form select {
		min-width: 0;
		max-width: 190px;
		padding-right: 0.2rem;
		font-size: var(--font-sm);
		text-align: right;
	}

	.filter-drawer {
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 88dvh;
		overflow-y: auto;
		border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	}

	.filter-panel[open]::before {
		position: fixed;
		inset: 0;
		z-index: 14;
		background: rgb(23 35 33 / 45%);
		content: "";
	}

	ul.products.stamp-product-grid,
	.home-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem 0.7rem;
	}

	.product-card__media {
		border-radius: var(--radius-sm);
	}

	.product-card__stock {
		font-size: 0.62rem;
	}

	.product-card__title {
		min-height: 2.75em;
		font-size: var(--font-sm);
	}

	.product-card__price {
		font-size: var(--font-sm);
	}

	.product-card__button {
		padding-inline: 0.5rem;
		font-size: var(--font-sm);
	}

	.stamp-pack-options__grid {
		grid-template-columns: 1fr;
	}

	.stamp-purchase-row {
		grid-template-columns: 82px 1fr;
	}

	.purchase-assurances {
		grid-template-columns: 1fr;
	}

	.product-accordions {
		margin-top: var(--space-6);
	}
}

@media (hover: none) {
	.product-card__image--secondary {
		display: none;
	}

	.product-card__media:hover .product-card__image--primary {
		opacity: 1;
		transform: none;
	}
}
