.bp-shop-main {
	--bp-shop-ivory: #f6f2ea;
	--bp-shop-card: #fbf8f2;
	--bp-shop-cream: #ede3d1;
	--bp-shop-espresso: #221711;
	--bp-shop-bronze: #b18b63;
	/* Deeper bronze for text, hover and focus: #b18b63 is under 3:1 on ivory. */
	--bp-shop-bronze-text: #8a6440;
	--bp-shop-body: #3d2e25;
	--bp-shop-muted: #66564a;
	--bp-shop-line: rgba(34, 23, 17, 0.14);
	--bp-shop-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	margin-block-start: 0;
	padding: calc(var(--bp-header-height, 76px) + clamp(40px, 6vw, 88px)) clamp(20px, 4vw, 64px) clamp(72px, 8vw, 120px);
	background: var(--bp-shop-ivory);
	color: var(--bp-shop-espresso);
}

.bp-shop {
	width: min(100%, 1320px);
	margin: 0 auto;
}

/* Masthead: heading left, lede right, closed by a heavy rule. */
.bp-shop__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	grid-template-areas:
		"label label"
		"title text";
	gap: 24px clamp(40px, 6vw, 96px);
	align-items: end;
	padding-bottom: clamp(32px, 3.6vw, 48px);
	border-bottom: 1.5px solid var(--bp-shop-espresso);
}

.bp-shop__label {
	grid-area: label;
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 0;
	color: var(--bp-shop-bronze-text);
	font: 500 11px/1.4 "IBM Plex Mono", monospace;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bp-shop__label i {
	display: block;
	width: 48px;
	height: 1px;
	background: var(--bp-shop-bronze);
}

.bp-shop__title {
	grid-area: title;
	margin: 0;
	color: var(--bp-shop-espresso);
	font: 500 clamp(34px, 3.2vw, 48px)/1.04 "Bodoni Moda", serif;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.bp-shop__title em {
	display: block;
	color: var(--bp-shop-bronze-text);
	font-style: italic;
}

.bp-shop__text {
	grid-area: text;
	max-width: 480px;
	margin: 0;
	color: var(--bp-shop-body);
	font: 400 15px/1.65 "Hanken Grotesk", sans-serif;
	text-wrap: pretty;
}

/* Category navigation. */
.bp-shop__cats {
	margin-top: 28px;
}

.bp-shop__cats ul,
.bp-shop__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bp-shop__cats a,
.bp-shop__chips a {
	box-sizing: border-box;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--bp-shop-line);
	border-radius: 999px;
	color: var(--bp-shop-espresso);
	font: 500 14px/1 "Hanken Grotesk", sans-serif;
	text-decoration: none;
	transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

.bp-shop__cats a[aria-current="page"] {
	border-color: var(--bp-shop-espresso);
	background: var(--bp-shop-espresso);
	color: var(--bp-shop-ivory);
}

/* Refinement form. */
.bp-shop__filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	gap: 16px 20px;
	align-items: end;
	margin-top: 24px;
	padding: 20px;
	border: 1px solid var(--bp-shop-line);
	background: var(--bp-shop-card);
}

.bp-shop__field {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.bp-shop__field label {
	color: var(--bp-shop-muted);
	font: 500 11px/1.4 "IBM Plex Mono", monospace;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bp-shop__field select {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0 40px 0 14px;
	border: 1px solid rgba(34, 23, 17, 0.32);
	border-radius: 0;
	background: var(--bp-shop-ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23221711' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--bp-shop-espresso);
	font: 500 15px/1.2 "Hanken Grotesk", sans-serif;
	cursor: pointer;
	appearance: none;
}

.bp-shop__submit {
	display: flex;
	gap: 8px 20px;
	align-items: center;
}

.bp-shop__submit button,
.bp-shop__reset {
	box-sizing: border-box;
	display: inline-flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	border: 1px solid var(--bp-shop-espresso);
	border-radius: 0;
	background: var(--bp-shop-espresso);
	color: var(--bp-shop-ivory);
	font: 600 14px/1 "Hanken Grotesk", sans-serif;
	letter-spacing: 0.03em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 250ms ease, border-color 250ms ease;
}

.bp-shop__clear {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 1px solid var(--bp-shop-bronze);
	color: var(--bp-shop-espresso);
	font: 600 14px/1 "Hanken Grotesk", sans-serif;
	white-space: nowrap;
	text-decoration: none;
}

/* Result count and removable active filters. */
.bp-shop__status {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: space-between;
	margin: 32px 0 20px;
}

.bp-shop__count {
	margin: 0;
	color: var(--bp-shop-muted);
	font: 500 12px/1.4 "IBM Plex Mono", monospace;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bp-shop__chips a {
	min-height: 40px;
	padding: 0 14px;
	background: var(--bp-shop-cream);
	border-color: transparent;
	font-size: 13px;
}

.bp-shop__chips a > span:first-child {
	color: var(--bp-shop-muted);
}

.bp-shop__chips i {
	font-style: normal;
	font-size: 17px;
	line-height: 1;
}

.bp-shop__notices:empty {
	display: none;
}

/* Product grid. */
.bp-shop__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 1.8vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bp-shop-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	border: 1px solid var(--bp-shop-line);
	background: var(--bp-shop-card);
	transition: border-color 250ms ease;
}

.bp-shop-card__image {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--bp-shop-cream);
}

.bp-shop-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--bp-shop-ease);
}

.bp-shop-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: 18px 18px 20px;
}

.bp-shop-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0 0 8px;
	color: var(--bp-shop-bronze-text);
	font: 500 10.5px/1.4 "IBM Plex Mono", monospace;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bp-shop-card__meta > span + span {
	color: var(--bp-shop-muted);
}

.bp-shop-card__title {
	margin: 0;
	font: 500 16px/1.35 "Hanken Grotesk", sans-serif;
}

.bp-shop-card__title a {
	color: var(--bp-shop-espresso);
	text-decoration: none;
}

.bp-shop-card__price {
	margin-top: 10px;
	color: var(--bp-shop-espresso);
	font: 500 19px/1.25 "Bodoni Moda", serif;
}

.bp-shop-card__price del {
	color: var(--bp-shop-muted);
	font-size: 0.8em;
}

.bp-shop-card__price ins {
	text-decoration: none;
}

.bp-shop-card__stock {
	margin: 6px 0 0;
	color: var(--bp-shop-muted);
	font: 500 13px/1.4 "Hanken Grotesk", sans-serif;
}

.bp-shop-card__stock--out-of-stock {
	color: #8a2f1f;
}

.bp-shop-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-top: auto;
	padding-top: 18px;
}

.bp-shop-card__link {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 40px;
	border-bottom: 1px solid var(--bp-shop-bronze);
	color: var(--bp-shop-espresso);
	font: 600 13px/1 "Hanken Grotesk", sans-serif;
	text-decoration: none;
	transition: color 250ms ease, border-color 250ms ease;
}

.bp-shop-card__link span[aria-hidden],
.bp-shop__reset span {
	transition: transform 300ms var(--bp-shop-ease);
}

/* Native WooCommerce add-to-cart button, restyled within the catalogue only. */
.bp-shop-card .bp-shop-card__actions .button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--bp-shop-espresso);
	border-radius: 0;
	background: transparent;
	color: var(--bp-shop-espresso);
	font: 600 13px/1 "Hanken Grotesk", sans-serif;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background-color 250ms ease, color 250ms ease;
}

.bp-shop-card .bp-shop-card__actions .button.loading {
	opacity: 0.6;
}

.bp-shop-card .bp-shop-card__actions .added_to_cart {
	color: var(--bp-shop-bronze-text);
	font: 600 13px/1 "Hanken Grotesk", sans-serif;
}

/* Empty results. */
.bp-shop__empty {
	display: grid;
	gap: 12px;
	justify-items: start;
	padding: clamp(32px, 4vw, 56px);
	border: 1px solid var(--bp-shop-line);
	background: var(--bp-shop-card);
}

.bp-shop__empty p {
	max-width: 520px;
	margin: 0;
	color: var(--bp-shop-body);
	font: 400 15px/1.65 "Hanken Grotesk", sans-serif;
}

.bp-shop__empty .bp-shop__empty-title {
	color: var(--bp-shop-espresso);
	font: 500 clamp(22px, 2vw, 28px)/1.2 "Bodoni Moda", serif;
}

.bp-shop__reset {
	margin-top: 8px;
}

/* Pagination. */
.bp-shop__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: clamp(40px, 5vw, 64px);
	padding-top: 32px;
	border-top: 1px solid var(--bp-shop-line);
}

.bp-shop__pagination .page-numbers {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid transparent;
	color: var(--bp-shop-espresso);
	font: 500 14px/1 "Hanken Grotesk", sans-serif;
	text-decoration: none;
	transition: border-color 250ms ease, background-color 250ms ease;
}

.bp-shop__pagination a.page-numbers {
	border-color: var(--bp-shop-line);
}

.bp-shop__pagination .current {
	border-color: var(--bp-shop-espresso);
	background: var(--bp-shop-espresso);
	color: var(--bp-shop-ivory);
}

.bp-shop__pagination .dots {
	min-width: 24px;
	padding: 0;
	color: var(--bp-shop-muted);
}

/* Focus. */
.bp-shop a:focus-visible,
.bp-shop button:focus-visible,
.bp-shop select:focus-visible {
	outline: 3px solid var(--bp-shop-bronze-text);
	outline-offset: 3px;
}

.bp-shop-card__link:focus-visible span[aria-hidden] {
	transform: translateX(4px);
}

@media (hover: hover) {
	.bp-shop__cats a:not([aria-current]):hover,
	.bp-shop__chips a:hover,
	.bp-shop__pagination a.page-numbers:hover {
		border-color: var(--bp-shop-espresso);
	}

	.bp-shop__submit button:hover,
	.bp-shop__reset:hover {
		border-color: var(--bp-shop-bronze-text);
		background: var(--bp-shop-bronze-text);
	}

	.bp-shop__clear:hover {
		border-color: var(--bp-shop-espresso);
		color: var(--bp-shop-bronze-text);
	}

	.bp-shop-card:hover {
		border-color: rgba(34, 23, 17, 0.32);
	}

	.bp-shop-card:hover .bp-shop-card__image img {
		transform: scale(1.03);
	}

	.bp-shop-card__title a:hover,
	.bp-shop-card__link:hover {
		color: var(--bp-shop-bronze-text);
	}

	.bp-shop-card__link:hover span[aria-hidden],
	.bp-shop__reset:hover span {
		transform: translateX(4px);
	}

	.bp-shop-card .bp-shop-card__actions .button:hover {
		background: var(--bp-shop-espresso);
		color: var(--bp-shop-ivory);
	}
}

@media (max-width: 1180px) {
	.bp-shop__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.bp-shop__intro {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"label"
			"title"
			"text";
		align-items: start;
	}

	.bp-shop__filters {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bp-shop__submit {
		grid-column: 1 / -1;
	}

	.bp-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.bp-shop__intro {
		gap: 20px;
	}

	.bp-shop__cats {
		margin-right: -20px;
	}

	/* One swipeable row keeps all four categories reachable without wrapping. */
	.bp-shop__cats ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-right: 20px;
		scrollbar-width: none;
	}

	.bp-shop__cats li {
		flex: none;
	}

	.bp-shop__filters {
		grid-template-columns: minmax(0, 1fr);
		padding: 16px;
	}

	.bp-shop__submit button {
		flex: 1;
	}

	.bp-shop__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	/* Compact horizontal cards on phones. */
	.bp-shop-card {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
	}

	.bp-shop-card__image {
		aspect-ratio: auto;
		min-height: 100%;
	}

	.bp-shop-card__body {
		padding: 14px 14px 16px;
	}

	.bp-shop-card__price {
		font-size: 18px;
	}

	.bp-shop-card__actions {
		gap: 8px 14px;
		justify-content: flex-start;
		padding-top: 12px;
	}

	.bp-shop__pagination .page-numbers {
		padding: 0 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bp-shop *,
	.bp-shop *::before,
	.bp-shop *::after {
		transition: none !important;
	}

	.bp-shop-card:hover .bp-shop-card__image img,
	.bp-shop-card__link:hover span[aria-hidden],
	.bp-shop-card__link:focus-visible span[aria-hidden],
	.bp-shop__reset:hover span {
		transform: none;
	}
}
