/* Shop showcase. Intentionally independent of the legacy Woo archive cards. */
.brl-shop {
	--shop-ink: #173f49;
	--shop-muted: #626760;
	--shop-gold: #946b3e;
	--shop-paper: #f7f3ed;
	--shop-line: #ded8ce;
	--shop-heading: var(--wp--preset--font-family--playfair-display, "Iowan Old Style", Baskerville, Georgia, serif);
	width: min(1360px, calc(100% - 80px));
	max-width: 1360px;
	margin: 30px auto 88px;
	padding: 0;
	color: var(--shop-ink);
	font-size: 15px;
	line-height: 1.6;
}

.brl-shop *,
.brl-shop *::before,
.brl-shop *::after {
	box-sizing: border-box;
}

.brl-shop [hidden] {
	display: none !important;
}

.brl-shop :is(a, button, input, select):focus-visible {
	outline: 2px solid var(--shop-gold);
	outline-offset: 4px;
}

.brl-shop :is(h1, h2, h3, p) {
	padding: 0;
}

.brl-shop__intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 36px;
	margin: 0 0 30px;
}

.brl-shop__intro-copy {
	flex: 1 1 500px;
	min-width: 0;
}

.brl-shop__intro :is(.brl-shop__eyebrow, .brl-eyebrow),
.brl-shop .brl-shop-card__eyebrow {
	display: block;
	margin: 0 0 9px;
	color: var(--shop-gold);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.brl-shop__intro > :is(.brl-shop__eyebrow, .brl-eyebrow, h1, p) {
	flex-basis: 100%;
}

.brl-shop__intro h1 {
	max-width: 22ch;
	margin: 0 0 12px;
	color: var(--shop-ink);
	font-family: var(--shop-heading);
	font-size: clamp(42px, 4.5vw, 68px);
	font-weight: 400;
	letter-spacing: -.035em;
	line-height: 1.06;
	text-wrap: balance;
}

.brl-shop__intro p:not(.brl-shop__eyebrow):not(.brl-eyebrow) {
	max-width: 65ch;
	margin: 0;
	color: var(--shop-muted);
	font-size: 15px;
	line-height: 1.65;
}

.brl-shop .brl-shop__browse,
.brl-shop__intro > a {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	min-height: 44px;
	padding: 7px 0;
	color: var(--shop-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: #9aaba8;
	text-underline-offset: 5px;
}

.brl-shop__featured {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
}

.brl-shop .brl-shop-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	list-style: none;
	order: 0;
}

.brl-shop .brl-shop-card__image {
	display: block;
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 1;
	margin: 0;
	overflow: hidden;
	border: 0;
	border-radius: 2px;
	background: var(--shop-paper);
	text-decoration: none;
}

.brl-shop .brl-shop-card__image :is(picture, img) {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.brl-shop .brl-shop-card__image img {
	max-width: 100%;
	object-fit: contain;
	object-position: center;
	background: var(--shop-paper);
	transform: none;
}

.brl-shop .brl-shop-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding-top: 15px;
}

.brl-shop .brl-shop-card__title {
	margin: 0 0 7px;
	color: var(--shop-ink);
	font-family: var(--shop-heading);
	font-size: clamp(20px, 1.9vw, 25px);
	font-weight: 400;
	line-height: 1.22;
	letter-spacing: -.018em;
	overflow-wrap: break-word;
}

.brl-shop .brl-shop-card__title a {
	color: inherit;
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.brl-shop .brl-shop-card__title a:hover {
	text-decoration: underline;
}

.brl-shop .brl-shop-card__description {
	margin: 0 0 9px;
	color: var(--shop-muted);
	font-size: 14px;
	line-height: 1.55;
}

.brl-shop .brl-shop-card__price {
	margin: auto 0 0;
	padding-top: 9px;
	color: var(--shop-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.brl-shop .brl-shop-card__price :is(p, .price) {
	margin: 0;
	color: inherit;
	font: inherit;
}

.brl-shop .brl-shop-card__price small {
	font-size: 12px;
}

.brl-shop .brl-shop-card__action {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 4px 0 0;
	padding: 7px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--shop-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: underline;
	text-decoration-color: #9aaba8;
	text-underline-offset: 5px;
}

.brl-shop .brl-shop-card__action:hover,
.brl-shop .brl-shop__browse:hover {
	color: #285e65;
	text-decoration-color: currentColor;
}

.brl-shop .brl-shop-card--featured > .brl-shop-card__eyebrow {
	margin-bottom: 11px;
}

.brl-shop .brl-shop-card--featured .brl-shop-card__title {
	font-size: clamp(24px, 2.1vw, 30px);
}

.brl-shop .brl-shop__note {
	max-width: 82ch;
	margin: 20px 0 0;
	color: var(--shop-muted);
	font-size: 13px;
	line-height: 1.65;
}

.brl-shop__collection {
	margin-top: 24px;
	padding-top: 0;
	border-top: 0;
	scroll-margin-top: 105px;
}

.brl-shop__collection > header,
.brl-shop__collection-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 36px;
	margin: 0 0 24px;
}

.brl-shop__collection > header h2,
.brl-shop__collection-header h2 {
	margin: 0;
	color: var(--shop-ink);
	font-family: var(--shop-heading);
	font-size: clamp(30px, 3vw, 42px);
	font-weight: 400;
	letter-spacing: -.025em;
	line-height: 1.15;
}

.brl-shop__collection > header p,
.brl-shop__collection-header p {
	max-width: 56ch;
	margin: 0;
	color: var(--shop-muted);
	font-size: 14px;
}

.brl-shop [data-brl-shop-form] {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin: 0 0 16px;
	padding: 0;
}

.brl-shop [data-brl-shop-form] label {
	display: flex;
	flex: 1 1 240px;
	flex-direction: column;
	min-width: 0;
	gap: 6px;
	margin: 0;
	color: var(--shop-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.brl-shop [data-brl-shop-form] .brl-shop__mode-field {
	flex: 0 1 235px;
}

.brl-shop [data-brl-shop-form] :is(input, select) {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #c7cdc6;
	border-radius: 2px;
	background-color: #fffdfa;
	color: var(--shop-ink);
	font: inherit;
	font-size: 15px;
	line-height: 1.5;
	box-shadow: none;
}

.brl-shop [data-brl-shop-search]::placeholder {
	color: #73776e;
	opacity: 1;
}

.brl-shop [data-brl-shop-form] > [data-brl-shop-search] {
	flex: 1 1 280px;
	width: auto;
}

.brl-shop [data-brl-shop-form] > [data-brl-shop-mode] {
	flex: 0 1 235px;
	width: auto;
}

.brl-shop [data-brl-shop-form] button,
.brl-shop [data-brl-shop-more] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 11px 24px;
	border: 1px solid var(--shop-ink);
	border-radius: 2px;
	background: var(--shop-ink);
	color: #fffdfa;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.brl-shop [data-brl-shop-form] button:hover,
.brl-shop [data-brl-shop-more]:hover {
	border-color: #285e65;
	background: #285e65;
}

.brl-shop [data-brl-shop-more]:disabled {
	opacity: .6;
	cursor: wait;
}

.brl-shop__families {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 0 19px;
	border-bottom: 1px solid var(--shop-line);
}

.brl-shop__families [data-brl-shop-family] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 9px 17px;
	border: 1px solid #d9dcd4;
	border-radius: 2px;
	background: transparent;
	color: var(--shop-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.brl-shop__families [data-brl-shop-family]:hover {
	border-color: #9bafa9;
	background: #efeee6;
}

.brl-shop__families [data-brl-shop-family][aria-current="true"],
.brl-shop__families [data-brl-shop-family][aria-current="page"] {
	border-color: var(--shop-ink);
	background: var(--shop-ink);
	color: #fffdfa;
}

.brl-shop__results {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 20px;
	min-height: 56px;
	margin-bottom: 8px;
}

.brl-shop [data-brl-shop-status] {
	margin: 18px 0;
	color: var(--shop-muted);
	font-size: 13px;
	line-height: 1.6;
}

.brl-shop [data-brl-shop-reset] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 8px 0;
	border: 0;
	background: transparent;
	color: var(--shop-ink);
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

.brl-shop .brl-shop__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px 23px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.brl-shop__grid .brl-shop-card__eyebrow {
	margin-bottom: 7px;
	font-size: 10px;
	letter-spacing: .1em;
}

.brl-shop__grid .brl-shop-card__description {
	font-size: 13px;
}

.brl-shop [data-brl-shop-empty] {
	margin: 0;
	padding: 46px 24px;
	border: 1px solid var(--shop-line);
	color: var(--shop-muted);
	font-size: 15px;
	text-align: center;
}

.brl-shop [data-brl-shop-more] {
	display: flex;
	width: fit-content;
	min-width: 220px;
	max-width: 100%;
	margin: 38px auto 0;
}

.brl-shop .brl-shop__all-results {
	margin: 14px 0 0;
	color: var(--shop-muted);
	font-size: 13px;
	text-align: center;
}

@media (max-width: 1050px) {
	.brl-shop {
		width: calc(100% - 48px);
	}

	.brl-shop__featured {
		gap: 22px;
	}

	.brl-shop .brl-shop__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 30px 20px;
	}
}

@media (max-width: 700px) {
	.brl-shop {
		width: calc(100% - 36px);
		margin-top: 28px;
		margin-bottom: 60px;
	}

	.brl-shop__intro {
		gap: 8px;
		margin-bottom: 20px;
	}

	.brl-shop__intro h1 {
		font-size: clamp(38px, 7.2vw, 49px);
		margin-bottom: 10px;
	}

	.brl-shop__intro p:not(.brl-shop__eyebrow):not(.brl-eyebrow) {
		font-size: 14px;
	}

	.brl-shop__featured {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.brl-shop .brl-shop-card--featured {
		display: grid;
		grid-template-columns: clamp(104px, 29vw, 156px) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		column-gap: 17px;
		padding: 17px 0;
		border-top: 1px solid var(--shop-line);
	}

	.brl-shop .brl-shop-card--featured > .brl-shop-card__eyebrow {
		grid-column: 2;
		grid-row: 1;
		margin: 0 0 5px;
		font-size: 10px;
		letter-spacing: .09em;
	}

	.brl-shop .brl-shop-card--featured > .brl-shop-card__image {
		grid-column: 1;
		grid-row: 1 / span 2;
		align-self: start;
	}

	.brl-shop .brl-shop-card--featured > .brl-shop-card__body {
		grid-column: 2;
		grid-row: 2;
		padding-top: 0;
	}

	.brl-shop .brl-shop-card--featured .brl-shop-card__title {
		font-size: clamp(21px, 4.5vw, 26px);
		margin-bottom: 5px;
	}

	.brl-shop .brl-shop-card--featured .brl-shop-card__description {
		margin-bottom: 5px;
		font-size: 13px;
		line-height: 1.5;
	}

	.brl-shop .brl-shop-card--featured .brl-shop-card__price {
		margin-top: 0;
		padding-top: 2px;
		font-size: 13px;
	}

	.brl-shop .brl-shop-card--featured .brl-shop-card__action {
		margin-top: 0;
		font-size: 13px;
	}

	.brl-shop .brl-shop__note {
		margin-top: 9px;
		font-size: 13px;
	}

	.brl-shop__collection {
		margin-top: 24px;
		padding-top: 0;
		scroll-margin-top: 85px;
	}

	.brl-shop__collection > header,
	.brl-shop__collection-header {
		gap: 8px;
		margin-bottom: 19px;
	}

	.brl-shop [data-brl-shop-form] {
		gap: 10px;
	}

	.brl-shop [data-brl-shop-form] label,
	.brl-shop [data-brl-shop-form] .brl-shop__search-field {
		flex-basis: 100%;
	}

	.brl-shop [data-brl-shop-form] .brl-shop__mode-field {
		flex: 1 1 180px;
	}

	.brl-shop [data-brl-shop-form] :is(input, select) {
		font-size: 16px;
	}

	.brl-shop [data-brl-shop-form] button {
		flex: 0 0 auto;
		padding-inline: 18px;
	}

	.brl-shop__families {
		gap: 7px;
		padding-bottom: 15px;
	}

	.brl-shop__families [data-brl-shop-family] {
		padding-inline: 13px;
		font-size: 13px;
	}

	.brl-shop__results {
		min-height: 52px;
		margin-bottom: 5px;
	}

	.brl-shop [data-brl-shop-status] {
		margin-block: 13px;
	}

	.brl-shop .brl-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 14px;
	}

	.brl-shop__grid .brl-shop-card__body {
		padding-top: 12px;
	}

	.brl-shop__grid .brl-shop-card__title {
		font-size: clamp(19px, 3.5vw, 24px);
		line-height: 1.22;
	}

	.brl-shop__grid .brl-shop-card__eyebrow {
		font-size: 10px;
		letter-spacing: .08em;
	}

	.brl-shop__grid :is(.brl-shop-card__price, .brl-shop-card__action) {
		font-size: 13px;
	}

	.brl-shop [data-brl-shop-more] {
		width: 100%;
		margin-top: 28px;
	}
}

@media (max-width: 380px) {
	.brl-shop {
		width: calc(100% - 28px);
	}

	.brl-shop .brl-shop-card--featured {
		grid-template-columns: 96px minmax(0, 1fr);
		column-gap: 13px;
	}

	.brl-shop .brl-shop__grid {
		column-gap: 11px;
	}

	.brl-shop [data-brl-shop-form] .brl-shop__mode-field {
		flex-basis: 150px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.brl-shop *,
	.brl-shop *::before,
	.brl-shop *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* Keep keyboard focus visible without outlining the Shop on pointer clicks. */
#brl-shop:focus:not(:focus-visible) {
	outline: none;
}

/* Reserve two title lines while allowing longer names to remain fully visible.
   The existing flex cards equalise each grid row; the price's auto margin then
   keeps the main price, tax slot and action aligned across that row. */
.brl-shop .brl-shop__grid .brl-shop-card__title {
	min-height: 2.44em;
}

.brl-shop .brl-shop-card__price-main {
	display: block;
	min-height: 1.5em;
}

.brl-shop .brl-shop-card__tax {
	display: block;
	min-height: 18px;
	margin-top: 4px;
	line-height: 18px;
}

.brl-shop .brl-shop-card__tax .brl-bath-tax-note {
	display: block;
	margin: 0;
	line-height: 18px;
}

.brl-shop .brl-shop-card__price :is(.brl-shop-card__currency, .brl-bath-currency) {
	font-size: inherit;
}
