/**
 * Bourbon Merchant — section patterns (patterns/*.php).
 *
 * Layout only: every colour comes from a theme.json preset set on the block, so editors can
 * still change colours in Gutenberg. Prototype values (prototypes/Bourbon Merchant Homepage.dc.html)
 * are reproduced with fluid clamp() sizes.
 */

/*
 * Type scale: all body and label text uses one compact paragraph size (13-14px); headings use
 * the theme.json H1-H3 presets so the homepage matches every other page; product card titles
 * get their own smaller step so long bottle names fit narrow cards.
 */
:root {
	--bm-fs-text: clamp(0.8125rem, 0.78rem + 0.12vw, 0.875rem);
	--bm-fs-card: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
	--bm-fs-h1: var(--wp--preset--font-size--xx-large);
	--bm-fs-h2: var(--wp--preset--font-size--x-large);
	--bm-fs-h3: var(--wp--preset--font-size--large);
}

/* ------------------------------------------------------------------ */
/* Shared section scaffolding                                          */
/* ------------------------------------------------------------------ */

.bm-section {
	padding: clamp(72px, 10vw, 150px) var(--bm-gutter);
	margin-block: 0;
}

.bm-main--front .entry-content > *,
.bm-main--front .wp-block-post-content > * {
	margin-block: 0;
}

.bm-section__inner {
	max-width: 1360px;
	margin-inline: auto;
}

.bm-section__inner > * + * {
	margin-block-start: 0;
}

.bm-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--amber-deep);
}

.bm-eyebrow--rule {
	display: flex;
	align-items: center;
	gap: 16px;
}

.bm-eyebrow--rule::before {
	content: "";
	width: 40px;
	height: 1px;
	background: currentColor;
	flex-shrink: 0;
}

.bm-eyebrow--gold,
.has-charcoal-background-color .bm-eyebrow,
.has-espresso-background-color .bm-eyebrow,
.bm-hero .bm-eyebrow {
	color: var(--wp--preset--color--gold);
}

.bm-section-title {
	margin: 16px 0 0;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h2);
	font-weight: 500;
	line-height: 1;
	text-wrap: balance;
}

.bm-section-title--caps {
	margin-top: 0;
	font-size: var(--bm-fs-h2);
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.bm-section-title em,
.bm-hero__title em,
.bm-story__title em,
.bm-showcase__title em,
.bm-craft__title em {
	font-style: italic;
}

.bm-section-lede {
	max-width: 46ch;
	margin: 18px 0 0;
	font-size: var(--bm-fs-text);
	line-height: 1.6;
	opacity: 0.82;
}

.bm-section-head {
	gap: 24px 48px;
	margin-bottom: clamp(36px, 4.5vw, 64px);
}

.bm-section-head__text {
	flex: 1 1 420px;
	min-width: 0;
}

.bm-section-head__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.bm-section-head--rule {
	padding-bottom: clamp(28px, 3.5vw, 48px);
	border-bottom: 1px solid var(--bm-stone-rule);
}

.bm-text-link {
	margin: 0;
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bm-text-link a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid currentColor;
	color: inherit;
	text-decoration: none;
}

.bm-text-link a::after {
	content: "\2192";
	letter-spacing: 0;
}

.bm-text-link a:hover {
	color: var(--wp--preset--color--amber-deep);
}

.bm-fineprint {
	margin: 32px 0 0;
	font-size: var(--bm-fs-text);
	line-height: 1.6;
	opacity: 0.7;
}

/* Arrow suffix for buttons with the bm-arrow class. */
.bm-arrow .wp-block-button__link::after {
	content: "\2192";
	display: inline-block;
	margin-left: 14px;
}

/* ------------------------------------------------------------------ */
/* Button styles (registered in functions.php)                         */
/* ------------------------------------------------------------------ */

.wp-block-button[class*="is-style-bm-"] .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 16px 30px;
	border: 1px solid transparent;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
}

.wp-block-button.is-style-bm-light .wp-block-button__link {
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--charcoal);
}

.wp-block-button.is-style-bm-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--charcoal);
}

.wp-block-button.is-style-bm-gold .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--charcoal);
}

.wp-block-button.is-style-bm-gold .wp-block-button__link:hover {
	background: var(--wp--preset--color--ivory);
}

.wp-block-button.is-style-bm-outline .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.wp-block-button.is-style-bm-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--charcoal);
	border-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--ivory);
}

.has-espresso-background-color .wp-block-button.is-style-bm-outline .wp-block-button__link:hover,
.has-charcoal-background-color .wp-block-button.is-style-bm-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--charcoal);
}

.wp-block-button.is-style-bm-underline .wp-block-button__link {
	min-height: 52px;
	padding: 16px 0;
	background: transparent;
	color: inherit;
}

.wp-block-button.is-style-bm-underline .wp-block-button__link > *,
.wp-block-button.is-style-bm-underline .wp-block-button__link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 8px;
}

.wp-block-button.is-style-bm-underline .wp-block-button__link:hover {
	color: var(--wp--preset--color--gold);
}

/* ------------------------------------------------------------------ */
/* Hero (bourbon-merchant/hero-cover)                                  */
/* ------------------------------------------------------------------ */

.wp-block-cover.bm-hero {
	min-height: min(100vh, 940px);
	padding: clamp(140px, 14vw, 170px) var(--bm-gutter) clamp(72px, 9vw, 120px);
	margin-block: 0;
	align-items: flex-end;
}

/* Second (bottom) gradient layer from the prototype, so text stays readable on any photo. */
.wp-block-cover.bm-hero > .wp-block-cover__background {
	background-image:
		linear-gradient(90deg, rgba(21, 20, 17, 0.82) 0%, rgba(21, 20, 17, 0.45) 45%, rgba(21, 20, 17, 0) 75%),
		linear-gradient(0deg, rgba(21, 20, 17, 0.7) 0%, rgba(21, 20, 17, 0) 40%);
}

.bm-hero > .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1360px;
	margin-inline: auto;
	color: var(--wp--preset--color--ivory);
}

.bm-hero__content {
	max-width: 760px;
}

.bm-hero__title {
	margin: 26px 0 0;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h1);
	font-weight: 500;
	line-height: 0.92;
	letter-spacing: -0.01em;
	text-wrap: balance;
	color: inherit;
}

.bm-hero__lede {
	max-width: 520px;
	margin: 28px 0 0;
	font-size: var(--bm-fs-text);
	line-height: 1.65;
	color: var(--wp--preset--color--stone);
}

.bm-hero__actions {
	gap: 12px 32px;
	margin-top: 40px;
}

@media (max-width: 767px) {
	.wp-block-cover.bm-hero {
		min-height: 88svh;
		padding-bottom: 88px;
	}
}

/* ------------------------------------------------------------------ */
/* Collections (bourbon-merchant/collection-index)                     */
/* ------------------------------------------------------------------ */

.bm-split {
	display: grid;
	gap: 48px;
}

.bm-split__intro .bm-section-title {
	margin-bottom: 40px;
}

@media (min-width: 900px) {
	.bm-split {
		grid-template-columns: 5fr 6fr;
		gap: clamp(48px, 7vw, 120px);
		align-items: start;
	}

	.bm-split__intro {
		position: sticky;
		top: calc(var(--bm-header-row) + 64px);
	}
}

.bm-index-list .wp-block-term-template {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bm-index;
	border-top: 1px solid rgba(21, 20, 17, 0.14);
}

.bm-index-list .wp-block-term {
	position: relative;
	display: grid;
	grid-template-columns: 48px 1fr 24px;
	column-gap: 16px;
	align-items: baseline;
	margin: 0;
	padding: 26px 0;
	border-bottom: 1px solid rgba(21, 20, 17, 0.14);
	counter-increment: bm-index;
}

.bm-index-list .wp-block-term::before {
	content: counter(bm-index, decimal-leading-zero);
	grid-column: 1;
	grid-row: 1;
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--amber-deep);
}

.bm-index-list .wp-block-term::after {
	content: "\2192";
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
}

.bm-index-list .wp-block-term > * {
	grid-column: 2;
	margin: 0;
}

.bm-index-list__name {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h3);
	font-weight: 500;
	line-height: 1.05;
}

.bm-index-list__name a {
	color: inherit;
	text-decoration: none;
}

/* Whole row is clickable through the term-name link. */
.bm-index-list__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.bm-index-list__name a:hover,
.bm-index-list .wp-block-term:focus-within .bm-index-list__name a {
	color: var(--wp--preset--color--amber-deep);
}

.bm-index-list__desc {
	margin-top: 8px !important;
	font-size: var(--bm-fs-text);
	line-height: 1.6;
	opacity: 0.75;
}

.bm-index-list__desc:empty,
.bm-index-list__desc p:empty {
	display: none;
}

.bm-index-list__desc p {
	margin: 0;
}

@media (max-width: 479px) {
	.bm-index-list .wp-block-term {
		grid-template-columns: 36px 1fr 20px;
		column-gap: 10px;
		padding: 20px 0;
	}
}

/* ------------------------------------------------------------------ */
/* The Merchant's Selection (bourbon-merchant/product-carousel)        */
/* ------------------------------------------------------------------ */

/*
 * WooCommerce's carousel layout only adds scrolling; the horizontal row comes from here.
 * Card widths: ~1.2 cards on phones, 2.4 on tablets, 4 from 960px (track width).
 */
.bm-carousel .wc-block-product-template.is-product-collection-layout-carousel {
	--bm-card-gap: clamp(16px, 2vw, 28px);
	display: flex;
	flex-wrap: nowrap;
	gap: var(--bm-card-gap);
	margin: 0;
	padding: 4px 4px 12px;
	list-style: none;
	scroll-padding: 0;
}

.bm-carousel .is-product-collection-layout-carousel > .wc-block-product {
	flex: 0 0 82%;
	min-width: 0;
	max-width: none;
	margin: 0;
	scroll-snap-align: start;
}

@container carousel (min-width: 600px) {
	.bm-carousel .is-product-collection-layout-carousel > .wc-block-product {
		flex-basis: calc((100% - 2 * var(--bm-card-gap)) / 2.4);
		min-width: 0;
	}
}

@container carousel (min-width: 960px) {
	.bm-carousel .is-product-collection-layout-carousel > .wc-block-product {
		flex-basis: calc((100% - 3 * var(--bm-card-gap)) / 4);
		min-width: 0;
	}
}

.bm-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--wp--preset--color--ivory);
	text-align: left;
}

.bm-product-card > * {
	margin-block: 0;
}

.bm-product-card__media {
	margin: 0 !important;
	background: var(--wp--preset--color--paper);
}

.bm-product-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5 !important;
	object-fit: cover !important;
}

.bm-product-card__media a {
	display: block;
	overflow: hidden;
}

.bm-product-card__body {
	flex: 1;
	padding: 18px 18px 0;
}

.bm-product-card__body > * {
	margin-block: 0;
}

.bm-product-card__brand {
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--wp--preset--color--amber-deep);
}

.bm-product-card__brand a {
	color: inherit;
	text-decoration: none;
}

.bm-product-card__title {
	margin-top: 8px !important;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-card);
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
}

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

.bm-product-card__title a:hover {
	color: var(--wp--preset--color--amber-deep);
}

/* Price on its own line, full-width button underneath: nothing wraps at any card width. */
.bm-product-card__footer.wp-block-group {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	margin-top: auto;
	padding: 14px 18px 18px;
}

.bm-product-card__price,
.bm-product-card__price .wc-block-components-product-price {
	margin: 0 !important;
	padding: 0;
	font-size: var(--bm-fs-text);
	font-weight: 600;
	text-align: left;
}

.wp-block-button.bm-product-card__button {
	display: block;
	width: 100%;
	margin: 0 !important;
	text-align: left;
}

.bm-product-card__button .wp-block-button__link.wc-block-components-product-button__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--charcoal);
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--charcoal);
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.bm-product-card__button .wp-block-button__link.wc-block-components-product-button__button:hover {
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--ivory);
}

.bm-product-card__button .added_to_cart {
	display: block;
	margin-top: 8px;
	font-size: var(--bm-fs-text);
}

@media (max-width: 599px) {
	.bm-product-card__body {
		padding: 16px 16px 0;
	}

	.bm-product-card__footer.wp-block-group {
		padding: 12px 16px 16px;
	}
}

/* Native WooCommerce previous/next buttons (bm-carousel__nav lands on each button). */
.bm-carousel .wc-block-next-previous-buttons {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.bm-carousel .wc-block-next-previous-buttons__button.bm-carousel__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--charcoal);
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--charcoal);
	cursor: pointer;
}

.bm-carousel .wc-block-next-previous-buttons__button.bm-carousel__nav:hover:not([aria-disabled="true"]) {
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--ivory);
}

.bm-carousel .wc-block-next-previous-buttons__button.bm-carousel__nav[aria-disabled="true"] {
	opacity: 0.35;
	cursor: not-allowed;
}

.bm-carousel .bm-carousel__nav .wc-block-next-previous-buttons__icon {
	display: block;
	padding: 0;
	opacity: 1;
}

/* ------------------------------------------------------------------ */
/* Editorial story (bourbon-merchant/editorial-spread)                 */
/* ------------------------------------------------------------------ */

.bm-story {
	display: grid;
	margin-block: 0;
	scroll-margin-top: calc(var(--bm-header-row) + 32px);
}

.bm-story__media {
	position: relative;
	min-height: 360px;
	margin: 0;
}

.bm-story__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bm-story__media figcaption {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 12px;
	margin: 0;
	font-size: var(--bm-fs-text);
	line-height: 1.4;
	color: rgba(244, 239, 230, 0.75);
	text-shadow: 0 1px 2px rgba(21, 20, 17, 0.8);
}

.bm-story__media figcaption a {
	color: inherit;
}

.bm-story__content {
	padding: clamp(64px, 9vw, 140px) var(--bm-gutter);
}

.bm-story__content > * {
	margin-block: 0;
}

.bm-story__title {
	max-width: 12ch;
	margin-top: 24px !important;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h2);
	font-weight: 500;
	line-height: 0.94;
	text-wrap: balance;
	color: inherit;
}

.wp-block-separator.bm-rule {
	width: 56px;
	max-width: 56px;
	margin: 36px 0 0 !important;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--gold);
	opacity: 1;
}

.bm-story__lede {
	max-width: 50ch;
	margin-top: 32px !important;
	font-size: var(--bm-fs-text);
	line-height: 1.7;
	color: var(--wp--preset--color--stone);
}

.bm-story .wp-block-buttons {
	margin-top: 44px !important;
}

@media (min-width: 900px) {
	.bm-story {
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
	}

	.bm-story__media {
		min-height: 640px;
	}

	.bm-story__content {
		align-self: center;
		max-width: 680px;
		padding-inline: clamp(48px, 7vw, 120px);
	}
}

/* ------------------------------------------------------------------ */
/* Brands (bourbon-merchant/brand-index)                               */
/* ------------------------------------------------------------------ */

.bm-brand-grid .wp-block-term-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bm-brand;
	background: rgba(21, 20, 17, 0.14);
	border: 1px solid rgba(21, 20, 17, 0.14);
}

@media (min-width: 900px) {
	.bm-brand-grid .wp-block-term-template {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.bm-brand-grid .wp-block-term {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(150px, 16vw, 220px);
	margin: 0;
	padding: clamp(18px, 2vw, 28px);
	background: var(--wp--preset--color--ivory);
	counter-increment: bm-brand;
}

.bm-brand-grid .wp-block-term::before {
	content: counter(bm-brand, decimal-leading-zero);
	position: absolute;
	top: clamp(18px, 2vw, 28px);
	left: clamp(18px, 2vw, 28px);
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--amber-deep);
}

.bm-brand-grid__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h3);
	font-weight: 500;
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.bm-brand-grid__name a {
	color: inherit;
	text-decoration: none;
}

.bm-brand-grid__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.bm-brand-grid .wp-block-term:hover,
.bm-brand-grid .wp-block-term:focus-within {
	background: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--ivory);
}

.bm-brand-grid .wp-block-term:hover::before,
.bm-brand-grid .wp-block-term:focus-within::before {
	color: var(--wp--preset--color--gold);
}

.bm-brand-grid .wp-block-term:focus-within :focus-visible {
	outline-color: var(--wp--preset--color--gold);
}

/* ------------------------------------------------------------------ */
/* Beyond the Ordinary (bourbon-merchant/feature-showcase)             */
/* Base: a plain list (works without JS). Enhanced (showcase.js adds   */
/* .is-enhanced, ≥1024px): one large image beside the list.            */
/* ------------------------------------------------------------------ */

.bm-showcase__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h2);
	font-weight: 500;
	line-height: 0.88;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ivory);
}

.bm-showcase__title em {
	color: var(--wp--preset--color--gold);
}

.bm-showcase .bm-section-lede {
	color: var(--wp--preset--color--stone);
}

.bm-showcase__list.wc-block-product-template {
	display: grid !important;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bm-showcase__list > li {
	display: grid;
	grid-template-columns: minmax(96px, 30%) 1fr;
	gap: 20px;
	align-items: start;
	width: 100% !important;
	margin: 0;
	padding: 28px 0;
	border-bottom: 1px solid var(--bm-stone-rule);
	text-align: left;
}

.bm-showcase__media {
	margin: 0 !important;
}

.bm-showcase__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5 !important;
	object-fit: cover !important;
}

.bm-showcase__item > * {
	margin-block: 0;
}

.bm-showcase__brand {
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.bm-showcase__brand a {
	color: inherit;
	text-decoration: none;
}

.bm-showcase__name {
	margin-top: 10px !important;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h3);
	font-weight: 500;
	line-height: 1.08;
	text-align: left;
	color: var(--wp--preset--color--ivory);
}

.bm-showcase__name a {
	color: inherit;
	text-decoration: none;
}

.bm-showcase__details {
	margin-top: 14px !important;
}

.bm-showcase__details > * {
	margin-block: 0;
}

.bm-showcase__excerpt {
	max-width: 52ch;
	font-size: var(--bm-fs-text);
	line-height: 1.6;
}

.bm-showcase__excerpt p {
	margin: 0;
}

.bm-showcase__meta {
	gap: 12px 28px;
	margin-top: 18px !important;
}

.bm-showcase__price {
	margin: 0 !important;
	font-size: var(--bm-fs-text);
	font-weight: 600;
	color: var(--wp--preset--color--ivory);
	text-align: left;
}

.bm-showcase__link {
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 4px;
}

.bm-showcase__link:hover {
	color: var(--wp--preset--color--ivory);
}

.bm-showcase__actions {
	margin-top: clamp(40px, 5vw, 64px) !important;
}

@media (min-width: 1024px) {
	/*
	 * Enhanced layout: the list items become "display: contents" so their images can share
	 * one grid cell on the left while the text rows stack on the right.
	 */
	.bm-showcase__collection.is-enhanced .bm-showcase__list.wc-block-product-template {
		grid-template-columns: 5fr 6fr;
		column-gap: clamp(48px, 6vw, 110px);
		align-items: start;
	}

	.bm-showcase__collection.is-enhanced .bm-showcase__list > li {
		display: contents;
	}

	.bm-showcase__collection.is-enhanced .bm-showcase__media {
		grid-column: 1;
		grid-row: 1 / span 20;
		position: sticky;
		top: calc(var(--bm-header-row) + 48px);
		opacity: 0;
		visibility: hidden;
	}

	.bm-showcase__collection.is-enhanced li.is-active .bm-showcase__media {
		opacity: 1;
		visibility: visible;
	}

	.bm-showcase__collection.is-enhanced .bm-showcase__item {
		grid-column: 2;
		padding: 30px 0;
		border-bottom: 1px solid var(--bm-stone-rule);
	}

	.bm-showcase__collection.is-enhanced .bm-showcase__name {
		font-size: var(--bm-fs-h3);
		color: rgba(244, 239, 230, 0.55);
	}

	.bm-showcase__collection.is-enhanced li.is-active .bm-showcase__name {
		color: var(--wp--preset--color--ivory);
	}

	.bm-showcase__collection.is-enhanced .bm-showcase__details {
		display: grid;
		grid-template-rows: 0fr;
		opacity: 0;
		margin-top: 0 !important;
	}

	.bm-showcase__collection.is-enhanced .bm-showcase__details > * {
		min-height: 0;
		overflow: hidden;
	}

	.bm-showcase__collection.is-enhanced li.is-active .bm-showcase__details {
		grid-template-rows: 1fr;
		opacity: 1;
		margin-top: 14px !important;
	}
}

/* ------------------------------------------------------------------ */
/* Craft illustration (bourbon-merchant/craft-illustration)            */
/* ------------------------------------------------------------------ */

.bm-craft__grid {
	display: grid;
	gap: clamp(40px, 5vw, 64px);
	align-items: center;
}

.bm-craft__content > * {
	margin-block: 0;
}

.bm-craft__title {
	margin-top: 20px !important;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h2);
	font-weight: 500;
	line-height: 0.95;
	text-wrap: balance;
}

.wp-block-separator.bm-rule-diamond {
	position: relative;
	width: 120px;
	max-width: 120px;
	height: 9px;
	margin: 32px 0 0 !important;
	border: 0;
	background: linear-gradient(var(--wp--preset--color--amber-deep), var(--wp--preset--color--amber-deep)) left center / 100% 1px no-repeat;
	opacity: 1;
}

.wp-block-separator.bm-rule-diamond::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--amber-deep);
	transform: translate(-50%, -50%) rotate(45deg);
}

.bm-craft__text {
	max-width: 46ch;
	margin-top: 28px !important;
	font-size: var(--bm-fs-text);
	line-height: 1.7;
}

.bm-craft .wp-block-buttons {
	margin-top: 40px !important;
}

.bm-craft__figure {
	margin: 0;
}

/* Preserve the engraving's aspect ratio and fine linework: never crop, never upscale. */
.bm-craft__figure img {
	display: block;
	width: 100%;
	max-width: 1600px;
	height: auto !important;
	aspect-ratio: 1600 / 1021;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.bm-craft__figure figcaption {
	margin: 14px 0 0;
	font-size: var(--bm-fs-text);
	font-style: italic;
	line-height: 1.5;
	opacity: 0.7;
}

@media (min-width: 1024px) {
	.bm-craft__grid {
		grid-template-columns: 4fr 7fr;
		gap: clamp(48px, 6vw, 110px);
	}
}

/* ------------------------------------------------------------------ */
/* Journal (bourbon-merchant/journal-latest)                           */
/* ------------------------------------------------------------------ */

.bm-ornament-figure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin: 0 0 clamp(40px, 5vw, 64px);
}

.bm-ornament-figure::before,
.bm-ornament-figure::after {
	content: "";
	flex: 1 1 auto;
	max-width: 320px;
	height: 1px;
}

.bm-ornament-figure::before {
	background: linear-gradient(90deg, rgba(195, 163, 107, 0), var(--wp--preset--color--gold));
}

.bm-ornament-figure::after {
	background: linear-gradient(90deg, var(--wp--preset--color--gold), rgba(195, 163, 107, 0));
}

.bm-ornament-figure img {
	display: block;
	width: clamp(96px, 10vw, 140px);
	height: auto;
	mix-blend-mode: multiply;
	-webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
	mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
}

.bm-journal__grid {
	display: grid;
	gap: clamp(32px, 4vw, 48px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.bm-journal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.bm-journal__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.bm-journal__grid > li {
	margin: 0;
}

.bm-article-card > * {
	margin-block: 0;
}

.bm-article-card__media {
	margin-bottom: 22px !important;
	overflow: hidden;
}

.bm-article-card__media img {
}

.bm-article-card__meta {
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--amber-deep);
}

.bm-article-card__meta a {
	color: inherit;
	text-decoration: none;
}

.bm-article-card__title {
	margin-top: 14px !important;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h3);
	font-weight: 500;
	line-height: 1.08;
	text-wrap: balance;
}

.bm-article-card__title a {
	color: inherit;
	text-decoration: none;
}

.bm-article-card__title a:hover {
	color: var(--wp--preset--color--amber-deep);
}

.bm-article-card__excerpt {
	margin-top: 14px !important;
	font-size: var(--bm-fs-text);
	line-height: 1.6;
	opacity: 0.8;
}

.bm-article-card__excerpt p {
	margin: 0;
}

.bm-article-card__link {
	display: inline-block;
	margin-top: 18px !important;
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
}

.bm-journal__empty {
	max-width: 640px;
	padding: clamp(28px, 4vw, 44px);
	border: 1px solid rgba(21, 20, 17, 0.14);
}

.bm-journal__empty > * {
	margin-block: 0;
}

.bm-journal__empty > * + * {
	margin-top: 12px;
}

.bm-journal__empty-title {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h3);
	font-weight: 500;
	line-height: 1.15;
}

/* ------------------------------------------------------------------ */
/* Newsletter (bourbon-merchant/newsletter) — inactive until connected */
/* ------------------------------------------------------------------ */

.bm-newsletter__grid {
	display: grid;
	gap: 40px;
	align-items: end;
}

@media (min-width: 1024px) {
	.bm-newsletter__grid {
		grid-template-columns: 1fr 1fr;
		gap: clamp(48px, 7vw, 120px);
	}
}

.bm-newsletter__intro > * {
	margin-block: 0;
}

.bm-newsletter__title {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--bm-fs-h2);
	font-weight: 500;
	line-height: 0.94;
	text-transform: uppercase;
	text-wrap: balance;
	color: inherit;
}

.bm-newsletter__intro p {
	max-width: 46ch;
	margin-top: 22px;
	font-size: var(--bm-fs-text);
	line-height: 1.6;
}

.bm-newsletter__signup > * {
	margin-block: 0;
}

.bm-newsletter__form fieldset {
	display: flex;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid rgba(244, 239, 230, 0.6);
	min-width: 0;
}

.bm-newsletter__form input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--bm-fs-text);
}

.bm-newsletter__form input[type="email"]::placeholder {
	color: rgba(244, 239, 230, 0.7);
	opacity: 1;
}

.bm-newsletter__form button {
	flex-shrink: 0;
	min-height: 56px;
	padding: 0 0 0 20px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--bm-fs-text);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Inactive treatment: visibly disabled, no pointer affordance. */
.bm-newsletter__form fieldset:disabled {
	opacity: 0.55;
}

.bm-newsletter__form fieldset:disabled input,
.bm-newsletter__form fieldset:disabled button {
	cursor: not-allowed;
}

.bm-newsletter__status {
	margin-top: 14px !important;
	font-size: var(--bm-fs-text);
	line-height: 1.5;
}

.bm-newsletter__consent {
	margin-top: 18px !important;
	font-size: var(--bm-fs-text);
	line-height: 1.6;
	opacity: 0.8;
}

.bm-newsletter__consent a,
.bm-newsletter__status a {
	color: inherit;
}

.bm-newsletter :focus-visible,
.bm-story :focus-visible,
.bm-showcase :focus-visible,
.bm-hero :focus-visible {
	outline-color: var(--wp--preset--color--gold);
}

