/* The Fat One brand layer: fonts, header, chips, product cards, hero strip, about block and dark panels.
   Loaded after every other theme stylesheet (see bm_enqueue_brand_assets), so it only restyles; the tokens
   themselves live in main.css and theme.json. */

/* ---- Base ---- */
body {
	font-weight: 500;
	background-color: var(--bm-bg);
	background-image: radial-gradient(ellipse at 50% -10%, #5a2e12 0%, transparent 55%);
	background-repeat: no-repeat;
}

h1,
h2,
h3,
.bm-card__title,
.bm-infoview__title,
.bm-quickview__title,
.bm-drawer__title,
.bm-contact__title,
.bm-pop__title,
.bm-pdp__title {
	font-family: var(--bm-display);
	font-weight: 400;
	letter-spacing: 0.01em;
	text-transform: none;
}

/* ---- Header ---- */
.bm-header {
	background: var(--bm-ink);
	box-shadow: 0 2px 0 var(--wp--preset--color--bear);
}

.bm-brand--logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	line-height: 1;
	text-decoration: none;
}

.bm-brand .bm-brand__img,
.bm-header .bm-brand__img,
.bm-brand--footer .bm-brand__img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.bm-brand__name {
	display: block;
	color: var(--bm-cream);
	font-family: var(--bm-display);
	font-size: 1.25rem;
	line-height: 0.9;
}

.bm-brand__name small {
	display: block;
	margin-top: 3px;
	color: var(--bm-gold);
	font-family: var(--bm-font);
	font-size: 0.625rem;
	font-weight: 900;
	letter-spacing: 0.2em;
}

.bm-iconbtn--bag {
	width: auto;
	min-width: 2.5rem;
	padding: 0 0.7rem;
	border-color: var(--bm-gold);
	border-radius: 999px;
	color: var(--bm-ink);
	background: var(--bm-gold);
	opacity: 1;
}

.bm-iconbtn--bag:hover {
	background: var(--bm-gold-light);
}

.bm-search .bm-input {
	color: var(--bm-text);
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--bear);
	border-radius: 999px;
}

.bm-nav .bm-menu a {
	min-height: 0;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	color: var(--bm-muted);
	background: transparent;
	font-size: 0.8125rem;
	font-weight: 900;
}

.bm-nav .bm-menu a:hover,
.bm-nav .current-menu-item > a,
.bm-nav .current_page_item > a {
	color: var(--bm-gold-light);
	background: var(--wp--preset--color--surface);
}

.bm-nav .bm-quick > a,
.bm-nav .bm-quick > a:hover {
	color: var(--bm-ink);
	background: var(--bm-gold);
}

/* Category pills look like the design's chips. */
.bm-pill {
	border: 0;
	color: var(--bm-cream);
	background: var(--wp--preset--color--surface);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--bear);
	font-size: 0.875rem;
	font-weight: 900;
}

.bm-pill:hover {
	background: var(--wp--preset--color--surface-2);
}

.bm-pill.is-active,
.bm-pill.is-active:hover {
	color: var(--bm-ink);
	background: var(--bm-gold);
	box-shadow: none;
}

/* ---- Hero strip ---- */
.bm-plug {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 14px 0 6px;
}

.bm-plug__img {
	width: 96px;
	height: auto;
	filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

.bm-plug__title {
	margin: 0;
	color: var(--bm-cream);
	font-size: clamp(1.625rem, 5.5vw, 2.875rem);
	line-height: 1;
}

.bm-plug__title em {
	color: var(--bm-gold-light);
	font-style: normal;
}

.bm-plug__text p {
	max-width: 60ch;
	margin: 6px 0 0;
	color: var(--bm-muted);
	font-size: 0.9375rem;
}

.bm-promise {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 12px;
	padding: 0;
	list-style: none;
}

.bm-promise li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1.5px solid var(--wp--preset--color--bear);
	border-radius: 999px;
	color: var(--bm-cream);
	background: var(--wp--preset--color--surface);
	font-size: 0.78rem;
	font-weight: 900;
}

.bm-promise i {
	color: var(--bm-gold-light);
	font-style: normal;
}

@media (max-width: 560px) {
	.bm-plug {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.bm-promise {
		justify-content: center;
	}
}

/* ---- Product cards ---- */
.bm-card {
	gap: 0;
	padding: 0;
	overflow: hidden;
	border: 1.5px solid var(--bm-edge);
	border-radius: var(--bm-radius-card);
	background: var(--bm-surface);
}

.bm-card__media {
	border-radius: 0;
	background: var(--wp--preset--color--surface-2);
}

.bm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 5px;
	padding: 11px 12px 4px;
}

.bm-card__title {
	order: 1;
	color: var(--bm-cream);
	font-size: 1.0625rem;
	line-height: 1.05;
	letter-spacing: 0.02em;
}

.bm-card__meta {
	order: 2;
}

.bm-card__source {
	order: 3;
	margin: 0;
	color: var(--bm-cream);
	font-size: 0.75rem;
	font-weight: 900;
}

.bm-card__source span {
	color: var(--bm-muted);
	font-weight: 700;
}

.bm-card__price {
	order: 4;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	margin-top: auto;
	padding-top: 4px;
}

.bm-card__now {
	color: var(--bm-text);
	font-size: 1.1875rem;
	font-weight: 900;
}

.bm-card__was {
	order: 2;
	font-size: 0.8125rem;
}

.bm-card__unit,
.bm-unit {
	color: var(--bm-muted);
	font-size: 0.6875rem;
	font-weight: 900;
}

.bm-card__unit {
	order: 3;
}

.bm-card__tier {
	order: 5;
}

.bm-card__add {
	margin: 4px 12px 12px;
	border-radius: 12px;
	font-weight: 900;
}

.bm-chip--new {
	color: #fff;
	background: var(--bm-ok);
}

.bm-card__sticker {
	background: var(--wp--preset--color--paper);
}

.bm-card__verified {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px 4px 6px;
	border-radius: 999px;
	color: var(--bm-ink);
	background: var(--bm-gold);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
	font-size: 0.65625rem;
	font-weight: 900;
	pointer-events: none;
}

.bm-card__verified .bm-icon {
	width: 14px;
	height: 14px;
}

/* Popup and product page: unit after the price, and the "Direct from" line. */
.bm-unit {
	margin-left: 0.4em;
}

.bm-source {
	margin: 0 0 0.5rem;
	color: var(--bm-cream);
	font-size: 0.8125rem;
	font-weight: 900;
}

.bm-source span {
	color: var(--bm-muted);
	font-weight: 700;
}

.bm-drawer__total small {
	display: block;
	color: var(--bm-muted);
	font-size: 0.75rem;
	font-weight: 700;
}

/* ---- "Who's The Fat One?" ---- */
.bm-about {
	display: grid;
	grid-template-columns: 140px 1fr;
	align-items: center;
	gap: 20px;
	max-width: var(--bm-wrap);
	margin: 8px auto 30px;
	padding: 24px;
	border-radius: 22px;
	color: var(--bm-ink);
	background: var(--bm-gold);
}

.bm-about__img {
	width: 140px;
	height: auto;
	filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
}

.bm-about__title {
	margin: 0 0 6px;
	color: var(--bm-ink);
	font-size: clamp(1.5rem, 4.5vw, 2.25rem);
	line-height: 1;
}

.bm-about p {
	max-width: 58ch;
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
}

.bm-about p + p {
	margin-top: 8px;
}

html[data-bm-view] .bm-about:not(.bm-about--view) {
	display: none;
}

@media (max-width: 560px) {
	.bm-about {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}
}

/* ---- Panels that used light colours ---- */
.bm-contact {
	color: var(--bm-text);
	background: var(--bm-surface);
	border: 1.5px solid var(--wp--preset--color--bear);
}

.bm-contact__head {
	border-bottom-color: var(--bm-edge);
}

.bm-contact__close {
	color: var(--bm-text);
	background: var(--wp--preset--color--surface-2);
	border-color: var(--bm-edge);
}

.bm-channel,
.bm-option {
	color: var(--bm-text);
	background: var(--wp--preset--color--surface-2);
	border-color: var(--bm-edge);
}

.bm-channel:hover,
.bm-option:hover {
	background: #5a3216;
}

.bm-channel__text small,
.bm-option small {
	color: var(--bm-muted);
}

.bm-qty__input,
.bm-newspop .bm-news__input {
	color: var(--bm-text);
	background: var(--wp--preset--color--surface-2);
	border-color: var(--bm-edge);
}

.bm-newspop .bm-news__form[data-state="error"] .bm-news__status {
	color: #ff8c7a;
}

/* ---- Flash sale and info views ---- */
.bm-flash__badge {
	background: var(--bm-red);
}

.bm-faq__item,
.bm-steps > li {
	border-color: var(--bm-edge);
	background: var(--bm-surface);
}

.bm-seo {
	color: var(--bm-muted);
}

/* ---- Product popup ---- */
.bm-pop {
	border: 2px solid var(--wp--preset--color--bear);
	border-radius: 24px;
	background: var(--bm-surface);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(232, 163, 58, 0.18);
}

.bm-pop::backdrop {
	background: rgba(20, 8, 2, 0.78);
	backdrop-filter: blur(3px);
}

.bm-pop__close {
	top: 0.75rem;
	right: 0.75rem;
	color: var(--bm-ink);
	background: var(--bm-gold);
	border: 2px solid var(--bm-ink);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Photo stage: a little shorter so the details always fit, with a soft fade into the body. */
.bm-pop__gallery,
.bm-pop__slide {
	background: radial-gradient(ellipse at 50% 40%, #4a2812 0%, #2a1408 85%);
}

.bm-pop__slide,
.bm-pop__gallery.bm-skelblock {
	max-height: min(calc((100dvh - 1.5rem) * 0.42), 20rem);
}

.bm-pop__gallery::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 28px;
	background: linear-gradient(to bottom, transparent, var(--bm-surface));
	pointer-events: none;
}

.bm-pop__arrow {
	z-index: 2;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--bm-ink);
	background: rgba(243, 221, 168, 0.92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bm-pop__count {
	z-index: 2;
	bottom: 0.9rem;
	font-weight: 900;
}

/* Status chips sit on the photo, top left, instead of squeezing the title row. */
.bm-pop__badges {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	max-width: calc(100% - 4rem);
}

.bm-pop__badges .bm-chip {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
	font-weight: 900;
}

.bm-pop__badges .bm-chip--live {
	color: var(--bm-cream);
	background: rgba(26, 12, 4, 0.82);
}

.bm-pop__badges .bm-chip--live::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--bm-ok);
	box-shadow: 0 0 0 3px rgba(91, 179, 106, 0.25);
}

/* Details */
.bm-pop__body {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 0.35rem 1.1rem 1.1rem;
}

.bm-pop__main {
	display: grid;
	gap: 0.3rem;
}

.bm-pop .bm-pop__kicker {
	justify-self: start;
	margin: 0;
	padding: 3px 10px;
	border-radius: 999px;
	color: var(--bm-gold-light);
	background: rgba(232, 163, 58, 0.14);
	font-size: 0.6875rem;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.bm-pop .bm-pop__title {
	margin: 2px 0 0;
	color: var(--bm-cream);
	font-family: var(--bm-display);
	font-size: clamp(1.75rem, 7vw, 2.25rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: none;
}

.bm-pop .bm-pop__price {
	align-items: baseline;
	gap: 0 0.5rem;
	margin: 0.2rem 0 0;
}

.bm-pop .bm-pop__now {
	color: var(--bm-gold-light);
	font-family: var(--bm-display);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1;
}

.bm-pop .bm-pop__price .bm-unit {
	margin: 0;
	padding: 3px 9px;
	border-radius: 999px;
	color: var(--bm-ink);
	background: var(--bm-gold);
	font-size: 0.75rem;
	text-transform: uppercase;
}

.bm-pop .bm-source {
	margin: 0.15rem 0 0;
}

/* Facts become three small tiles. */
.bm-pop .bm-pop__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
	gap: 0.5rem;
	margin-top: 0.55rem;
	text-transform: none;
}

.bm-pop .bm-pop__fact {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	border: 1.5px solid var(--bm-edge);
	border-radius: 12px;
	background: var(--wp--preset--color--surface-2);
}

.bm-pop .bm-pop__fact dt {
	color: var(--bm-muted);
	font-size: 0.625rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bm-pop .bm-pop__fact dd {
	color: var(--bm-cream);
	font-size: 1rem;
	font-weight: 900;
	text-transform: capitalize;
}

.bm-pop .bm-pop__fact dd small {
	color: var(--bm-muted);
	font-size: 0.75rem;
	font-weight: 700;
}

/* Description reads as a note, not a block of capitals. */
.bm-pop .bm-pop__desc {
	margin: 0;
	padding: 0.75rem 0.9rem;
	border: 0;
	border-left: 3px solid var(--bm-gold);
	border-radius: 4px 12px 12px 4px;
	color: var(--bm-cream);
	background: rgba(26, 12, 4, 0.35);
	font-size: 0.875rem;
	line-height: 1.5;
}

.bm-pop .bm-pop__view {
	align-self: center;
	margin-top: 0.1rem;
	padding: 0.2rem 0.4rem;
	color: var(--bm-muted);
	background: transparent;
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
}

.bm-pop .bm-pop__view:hover {
	color: var(--bm-gold-light);
}

/* Action bar: pinned at the bottom, pill quantity stepper and a honey button. */
.bm-pop .bm-pop__bar {
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1.1rem max(0.9rem, env(safe-area-inset-bottom));
	border-top: 2px solid var(--bm-edge);
	background: var(--bm-ink);
	box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.3);
}

.bm-pop .bm-qty {
	border: 2px solid var(--wp--preset--color--bear);
	border-radius: 999px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.bm-pop .bm-qty__btn {
	color: var(--bm-ink);
	background: var(--bm-cream);
}

.bm-pop .bm-qty__input {
	border: 0;
	color: var(--bm-cream);
	background: transparent;
	font-weight: 900;
}

.bm-pop .bm-pop__add {
	min-height: 3rem;
	border-radius: 999px;
	font-family: var(--bm-display);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	box-shadow: 0 3px 0 #a86d1a;
}

.bm-pop .bm-pop__add:active:not(:disabled) {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #a86d1a;
}

.bm-pop .bm-buy__total {
	margin-left: 0.5rem;
	padding: 2px 10px;
	border-radius: 999px;
	color: var(--bm-ink);
	background: rgba(26, 12, 4, 0.14);
	font-family: var(--bm-font);
	font-size: 0.875rem;
	font-weight: 900;
}

/* Popup fixes: sale button keeps its red shadow, no stray scrollbar track, icon in the add button. */
.bm-pop .bm-pop__bar.is-sale .bm-pop__add:not(:disabled) {
	color: #fff;
	background: var(--bm-red);
	box-shadow: 0 3px 0 #9a2a1e;
}

.bm-pop .bm-pop__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.bm-pop .bm-pop__add .bm-icon {
	width: 22px;
	height: 22px;
}

.bm-pop .bm-pop__body {
	scrollbar-width: none;
}

.bm-pop .bm-pop__body::-webkit-scrollbar {
	display: none;
}

.bm-pop .bm-pop__slide .bm-pop__img {
	padding: 0.5rem;
	border-radius: 14px;
}

/* Popup bar: compact stepper, one-line add button. */
.bm-pop .bm-pop__bar {
	gap: 0.5rem;
	padding-right: 0.8rem;
	padding-left: 0.8rem;
}

.bm-pop .bm-qty {
	flex: none;
	height: 2.75rem;
}

.bm-pop .bm-qty__btn {
	width: 2.1rem;
	height: 100%;
	padding: 0;
}

.bm-pop .bm-qty__input {
	width: 2.4rem;
	min-width: 0;
	padding: 0;
	text-align: center;
	-moz-appearance: textfield;
}

.bm-pop .bm-qty__input::-webkit-outer-spin-button,
.bm-pop .bm-qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.bm-pop .bm-pop__add {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	font-size: 1rem;
	white-space: nowrap;
}

.bm-pop .bm-pop__add > span:first-of-type {
	white-space: nowrap;
}

.bm-pop .bm-buy__total {
	margin-left: 0.25rem;
	padding: 2px 8px;
	font-size: 0.8125rem;
	white-space: nowrap;
}

@media (max-width: 380px) {
	.bm-pop .bm-pop__add .bm-icon {
		display: none;
	}
}

/* No fade band under the photo: a clean edge between the picture stage and the details. */
.bm-pop .bm-pop__gallery::after {
	content: none;
	display: none;
}

/* ---- Hero strip on phones: a slim banner (small mascot beside the headline, one scrolling row of promises). ---- */
@media (max-width: 560px) {
	.bm-plug {
		grid-template-columns: auto 1fr;
		justify-items: stretch;
		gap: 10px;
		padding: 8px 0 2px;
		text-align: left;
	}

	.bm-plug__img {
		width: 52px;
	}

	.bm-plug__text {
		display: contents;
	}

	.bm-plug__title {
		font-size: 1.1875rem;
		line-height: 1.05;
	}

	.bm-plug__text > p {
		display: none;
	}

	.bm-promise {
		grid-column: 1 / -1;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 6px;
		margin: 2px -1rem 4px 0;
		padding: 0 1rem 2px 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.bm-promise::-webkit-scrollbar {
		display: none;
	}

	.bm-promise li {
		flex: none;
		padding: 4px 10px;
		font-size: 0.72rem;
		white-space: nowrap;
	}
}

/* Phones, final: keep the centred stack but make it compact (small mascot, short headline, pills in two tight rows). */
@media (max-width: 560px) {
	.bm-plug {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 4px;
		padding: 6px 0 0;
		text-align: center;
	}

	.bm-plug__text {
		display: block;
	}

	.bm-plug__img {
		width: 64px;
	}

	.bm-plug__title {
		font-size: 1.375rem;
		line-height: 1.05;
	}

	.bm-promise {
		flex-wrap: wrap;
		justify-content: center;
		gap: 5px;
		margin: 8px 0 6px;
		padding: 0;
		overflow: visible;
	}

	.bm-promise li {
		padding: 3px 9px;
		font-size: 0.6875rem;
	}
}

/* Phones: promise pills in a tidy 2 x 2 grid (two per row). */
@media (max-width: 560px) {
	.bm-promise {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 5px;
		width: 100%;
	}

	.bm-promise li {
		justify-content: center;
		padding: 4px 6px;
		border-radius: 14px;
		font-size: 0.65rem;
		line-height: 1.15;
		text-align: center;
	}
}

/* Phones: flash sale header on one row (badge, deals + timer, arrows). */
@media (max-width: 560px) {
	.bm-flash__head {
		flex-wrap: nowrap;
		gap: 8px;
	}

	.bm-flash__badge {
		flex: none;
		padding: 0.22rem 0.6rem;
		font-size: 0.6875rem;
	}

	.bm-flash__info {
		flex: 1 1 auto;
		min-width: 0;
		font-size: 0.72rem;
		line-height: 1.2;
	}

	.bm-flash__nav {
		flex: none;
		gap: 6px;
		margin-left: 0;
	}

	.bm-flash__nav button,
	.bm-flash__nav .bm-iconbtn {
		width: 1.9rem;
		height: 1.9rem;
		min-width: 0;
		min-height: 0;
		padding: 0;
	}

	.bm-flash__nav .bm-icon {
		width: 15px;
		height: 15px;
	}
}

/* Flash sale cards are narrow: a smaller title so most names fit on one line. */
.bm-rail .bm-card__title {
	font-size: 0.875rem;
	letter-spacing: 0;
}

/* Phones: "157 selections" and the sort menu share one row. */
@media (max-width: 560px) {
	.bm-toolbar {
		flex-wrap: nowrap;
		gap: 10px;
	}

	.bm-toolbar__count {
		flex: 1 1 auto;
		min-width: 0;
		font-size: 0.6875rem;
		line-height: 1.3;
		letter-spacing: 0.04em;
	}

	.bm-sort {
		flex: none;
	}

	.bm-sort .bm-select {
		min-height: 2.25rem;
		padding-top: 0;
		padding-bottom: 0;
		font-size: 0.8125rem;
	}
}

/* Card titles stay on one line and end in "..." when too long. */
.bm-card__title {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	-webkit-line-clamp: unset;
	line-clamp: unset;
}

.bm-card__title a {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Tighter card text block: title, category and price sit close together, with a smaller price. */
.bm-card__body {
	gap: 2px;
	padding-top: 10px;
}

.bm-card__meta {
	margin: 0;
	line-height: 1.2;
}

.bm-card__price {
	margin-top: 2px;
	padding-top: 0;
}

.bm-card__now {
	font-size: 1rem;
}

.bm-card__was {
	font-size: 0.75rem;
}

/* Phones: breathing room between the hero strip and the flash sale box, and above the footer newsletter. */
@media (max-width: 560px) {
	.bm-plug {
		margin-bottom: 14px;
	}
}

/* Space above the newsletter box sits inside the footer (padding, so the margin cannot collapse out of it). */
.bm-footer {
	padding-top: 1.75rem;
}

/* Phones: footer brand block (logo, tagline, social icons) centred. */
@media (max-width: 700px) {
	.bm-footer__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.bm-footer__brand .bm-brand--logo {
		justify-content: center;
	}

	.bm-footer__tagline {
		margin-right: auto;
		margin-left: auto;
	}

	.bm-footer .bm-social {
		justify-content: center;
	}
}

/* Popup price a bit smaller. */
.bm-pop .bm-pop__now {
	font-size: 1.625rem;
}

.bm-pop .bm-pop__was {
	font-size: 0.875rem;
}

.bm-pop .bm-pop__price .bm-unit {
	font-size: 0.6875rem;
}

/* Variable products: the option rows pulse when Add to Order is tapped with nothing picked. */
.bm-vlist.is-nudge {
	animation: bm-nudge 0.5s ease-in-out 2;
}

.bm-vlist.is-nudge [data-bm-vrow] {
	border-color: var(--bm-gold);
}

@keyframes bm-nudge {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(232, 163, 58, 0);
	}

	50% {
		box-shadow: 0 0 0 5px rgba(232, 163, 58, 0.35);
		border-radius: 14px;
	}
}

/* The add button stays clearly visible, also while options still have to be chosen. */
.bm-pop .bm-pop__add:disabled {
	opacity: 0.55;
}

/* ================= Single product page ================= */
.bm-pdp__gallery,
.bm-pdp__panel {
	border: 1.5px solid var(--bm-edge);
	border-radius: 22px;
	background: var(--bm-surface);
}

.bm-pdp__stage {
	border-radius: 16px;
	background: radial-gradient(ellipse at 50% 40%, #4a2812 0%, #2a1408 90%);
}

.bm-pdp__img {
	object-fit: contain;
}

.bm-thumb {
	width: 4rem;
	height: 4rem;
	border: 2px solid var(--bm-edge);
	border-radius: 12px;
}

.bm-thumb.is-active {
	border-color: var(--bm-gold);
	box-shadow: 0 0 0 2px rgba(232, 163, 58, 0.3);
}

.bm-saledot {
	top: 0.75rem;
	right: 0.75rem;
	width: auto;
	height: auto;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bm-pdp__panel .bm-kicker {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 3px 10px;
	border-radius: 999px;
	color: var(--bm-gold-light);
	background: rgba(232, 163, 58, 0.14);
	font-size: 0.6875rem;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.bm-pdp__chips {
	margin-bottom: 0.5rem;
}

.bm-pdp .bm-pdp__title {
	margin: 0 0 0.4rem;
	color: var(--bm-cream);
	font-family: var(--bm-display);
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 400;
	line-height: 1;
	text-transform: none;
}

.bm-pdp .bm-pdp__price {
	align-items: baseline;
	gap: 0 0.55rem;
	margin: 0 0 0.6rem;
}

.bm-pdp .bm-pdp__now {
	color: var(--bm-gold-light);
	font-family: var(--bm-display);
	font-size: 1.875rem;
	font-weight: 400;
	line-height: 1;
}

.bm-pdp .bm-pdp__was {
	order: 3;
	font-size: 0.9375rem;
}

.bm-pdp .bm-pdp__price .bm-unit {
	order: 2;
	margin: 0;
	padding: 3px 9px;
	border-radius: 999px;
	color: var(--bm-ink);
	background: var(--bm-gold);
	font-size: 0.6875rem;
	text-transform: uppercase;
}

.bm-pdp__trust {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 0.75rem;
	color: var(--bm-cream);
	font-size: 0.8125rem;
	font-weight: 900;
}

.bm-pdp__trust .bm-icon {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--bm-gold);
}

.bm-pdp__nose {
	display: inline-block;
	margin: 0 0 0.9rem;
	padding: 4px 12px;
	border: 1.5px solid var(--bm-edge);
	border-radius: 999px;
	color: var(--bm-cream);
	background: var(--wp--preset--color--surface-2);
	font-size: 0.8125rem;
	font-weight: 900;
}

.bm-details {
	border: 0;
	border-left: 3px solid var(--bm-gold);
	border-radius: 4px 14px 14px 4px;
	background: rgba(26, 12, 4, 0.35);
}

.bm-details__title {
	color: var(--bm-gold-light);
	font-size: 1rem;
}

.bm-details__desc {
	color: var(--bm-cream);
	font-size: 0.875rem;
	line-height: 1.5;
}

.bm-fact {
	border: 1.5px solid var(--bm-edge);
	background: var(--wp--preset--color--surface-2);
}

/* "Choose your size" heading above the option rows. */
.bm-pdp__pick {
	margin: 0 0 0.6rem;
	color: var(--bm-cream);
	font-size: 1.125rem;
	line-height: 1.1;
}

.bm-pdp__pick small {
	display: block;
	margin-top: 3px;
	color: var(--bm-muted);
	font-family: var(--bm-font);
	font-size: 0.75rem;
	font-weight: 700;
}

.bm-pdp__panel .bm-vrow {
	border: 1.5px solid var(--bm-edge);
	border-radius: 14px;
	background: var(--wp--preset--color--surface-2);
}

.bm-pdp__panel .bm-vrow.is-picked {
	border-color: var(--bm-gold);
	box-shadow: 0 0 0 2px rgba(232, 163, 58, 0.25);
}

.bm-pdp__panel .bm-vrow__name {
	color: var(--bm-cream);
	font-size: 0.9375rem;
	font-weight: 900;
}

.bm-pdp__panel .bm-vrow__price {
	color: var(--bm-gold-light);
	font-size: 0.9375rem;
	font-weight: 900;
}

.bm-pdp__panel .bm-vrow__qty {
	border: 2px solid var(--wp--preset--color--bear);
	border-radius: 12px;
	color: var(--bm-cream);
	background: var(--bm-ink);
	font-weight: 900;
}

.bm-pdp__panel .bm-vrow__qty:focus {
	border-color: var(--bm-gold);
	outline: 0;
}

/* Fixed buy bar: same look as the popup's bar. */
.bm-buy {
	border-top: 2px solid var(--wp--preset--color--bear);
	background: var(--bm-ink);
}

.bm-buy .bm-qty {
	border: 2px solid var(--wp--preset--color--bear);
	border-radius: 999px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.bm-buy .bm-qty__btn {
	color: var(--bm-ink);
	background: var(--bm-cream);
}

.bm-buy .bm-qty__input {
	border: 0;
	color: var(--bm-cream);
	background: transparent;
	font-weight: 900;
}

.bm-buy .bm-buy__add {
	border-radius: 999px;
	font-family: var(--bm-display);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	box-shadow: 0 3px 0 #a86d1a;
}

.bm-buy .bm-buy__add:active:not(:disabled) {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #a86d1a;
}

.bm-buy .bm-buy__add.is-added:not(:disabled) {
	box-shadow: 0 3px 0 #2f7a3c;
}

.bm-buy .bm-buy__total {
	font-family: var(--bm-font);
	font-weight: 900;
}

.bm-buy__bag {
	border: 2px solid var(--wp--preset--color--bear);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
}

.bm-related__title {
	color: var(--bm-cream);
	font-size: 1.5rem;
}

/* "Added" state: bright green with dark text so the confirmation is clearly visible (popup and product page). */
.bm-btn[data-bm-buy-add].is-added,
.bm-btn[data-bm-buy-add].is-added:disabled,
.bm-buy .bm-buy__add.is-added:not(:disabled),
.bm-pop .bm-pop__add.is-added,
.bm-pop .bm-pop__bar.is-sale .bm-pop__add.is-added:not(:disabled) {
	color: var(--bm-ink);
	background: var(--bm-ok);
	box-shadow: 0 3px 0 #2f7a3c;
}

.bm-btn[data-bm-buy-add].is-added::after {
	font-family: var(--bm-display);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0.02em;
}

/* ---- Popup: full screen button and photo lightbox ---- */
.bm-pop__expand {
	position: absolute;
	bottom: 0.7rem;
	left: 0.75rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px 6px 9px;
	border: 0;
	border-radius: 999px;
	color: var(--bm-cream);
	background: rgba(26, 12, 4, 0.82);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	font-family: var(--bm-font);
	font-size: 0.6875rem;
	font-weight: 900;
	cursor: pointer;
}

.bm-pop__expand:hover {
	color: var(--bm-ink);
	background: var(--bm-gold);
}

.bm-pop__slide .bm-pop__img,
.bm-pop__slide .bm-pop__video {
	cursor: zoom-in;
}

/* Full screen viewer: its own dialog covering the whole screen. */
.bm-lb {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--bm-cream);
	background: #0a0401;
	touch-action: pinch-zoom;
}

.bm-lb[open] {
	display: grid;
	place-items: center;
}

.bm-lb::backdrop {
	background: #0a0401;
}

.bm-lb__stage {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.bm-lb__media {
	display: block;
	max-width: 100vw;
	max-height: 100dvh;
	object-fit: contain;
}

.bm-lb__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--bm-ink);
	background: rgba(243, 221, 168, 0.92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.bm-lb__close {
	top: max(0.75rem, env(safe-area-inset-top));
	right: 0.75rem;
	z-index: 2;
	background: var(--bm-gold);
}

.bm-lb__prev,
.bm-lb__next {
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
}

.bm-lb__prev {
	left: 0.6rem;
}

.bm-lb__next {
	right: 0.6rem;
}

.bm-lb__count {
	position: absolute;
	top: max(1rem, env(safe-area-inset-top));
	left: 50%;
	z-index: 2;
	margin: 0;
	padding: 3px 12px;
	border-radius: 999px;
	color: #fff;
	background: rgba(0, 0, 0, 0.65);
	font-size: 0.75rem;
	font-weight: 900;
	transform: translateX(-50%);
}

.bm-lb__count:empty {
	display: none;
}

/* "Who's The Fat One?" as its own view (header link). */
html[data-bm-view="plug"] [data-bm-view-section="plug"] {
	display: block;
}

[data-bm-view-section="plug"] .bm-about {
	margin-top: 0;
}
