/*
 * Hub and category pages (Cakes, Bakery, Everything we bake, Sweets, Café,
 * Catering, Cookies), per the Claude Design "Website" folder (Nov 2026):
 * the jam category hero, the sticky chip bar, product grids restyled as the
 * design's .pc cards, section heads and the cream band. Loaded only on those
 * seven pages; page-specific pieces live in assets/css/pages/<slug>.css.
 *
 * Grids are server-rendered workbench/shop-collection blocks; the chips are
 * plain links to in-page sections or /shop/ archives (no JS filtering).
 */

:root {
	--mbh-jam-tint: #f7e6eb;
	--mbh-wrap: 1128px;
}

/* Top-level sections sit flush; spacing comes from their own padding. */
.mbh-cathero.wp-block-group,
.mbh-wave,
.mbh-hubsec.wp-block-group {
	margin-block: 0;
}

.mbh-hubsec.wp-block-group {
	padding: 110px 56px 0;
}

.mbh-hubsec > .alignwide,
.mbh-cathero > .alignwide {
	max-width: var(--mbh-wrap) !important;
	margin-inline: auto;
}

.mbh-hubsec .alignwide + .alignwide {
	margin-block-start: 0;
}

/* ------------------------------------------------ Category hero */
.mbh-cathero.wp-block-group {
	padding: 56px 56px 0;
	overflow: hidden;
	background: var(--mbh-jam);
	color: var(--mbh-cream);
}

.mbh-cathero__g.wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 64px;
	align-items: center;
}

.mbh-cathero .mbh-cathero__g > *,
.mbh-cathero .mbh-cathero__tx > *,
.mbh-cathero .mbh-cathero__media > * {
	margin-block: 0;
}

.mbh-cathero__tx {
	min-width: 0;
	padding-bottom: 72px;
}

.mbh-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
	color: #f6d3bc;
}

.mbh-crumb a {
	color: var(--mbh-cream);
	text-decoration: none;
}

.mbh-crumb a:hover {
	color: var(--mbh-peach);
}

.mbh-cathero .mbh-cathero__title {
	margin-top: 22px;
	font-family: var(--mbh-stamp);
	font-size: clamp(52px, 6.4vw, 88px);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--mbh-cream);
}

.mbh-cathero__title em {
	position: relative;
	z-index: 1;
	display: inline-block;
	margin: -0.06em 0 -0.1em;
	font-family: var(--mbh-disp);
	font-size: 1.28em;
	font-style: normal;
	line-height: 0.7;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mbh-peach);
}

.mbh-cathero__lead {
	display: table;
	margin: 0 0 0.16em 0.04em;
	font-family: var(--mbh-disp);
	font-size: 0.5em;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	color: var(--mbh-peach);
	transform: rotate(-3deg);
	transform-origin: left bottom;
}

.mbh-cathero__title .mbh-tag {
	white-space: nowrap;
}

.mbh-cathero .mbh-cathero__intro {
	max-width: 30em;
	margin-top: 22px;
	font-size: 20px;
	line-height: 1.55;
	text-wrap: pretty;
	color: #fce6d2;
}

.mbh-cathero .mbh-cathero__tx > .mbh-facts {
	margin-top: 28px;
}

.mbh-cathero .mbh-cathero__tx > .mbh-cathero__cta {
	margin-top: 30px;
}

.mbh-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 34px;
	margin-top: 28px;
}

.mbh-facts__v {
	font-family: var(--mbh-stamp);
	font-size: 30px;
	line-height: 1;
	white-space: nowrap;
	color: var(--mbh-peach);
}

.mbh-facts__k {
	margin-top: 6px;
	font-size: 15px;
	color: #f6d3bc;
}

.mbh-cathero__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
	margin-top: 30px;
}

.mbh-cathero__media.wp-block-group {
	position: relative;
	height: 480px;
	align-self: center;
}

.mbh-cathero .mbh-cathero__photo {
	position: absolute;
	inset: 0;
	border-radius: 36px;
	overflow: hidden;
	background: var(--mbh-cream);
}

.mbh-cathero__photo img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.mbh-cathero__photo.is-pos-40 img {
	object-position: center 40%;
}

.mbh-cathero__photo.is-pos-45 img {
	object-position: center 45%;
}

.mbh-cathero__seal {
	position: absolute;
	top: 40px;
	left: -24px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--mbh-jam);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
	transition: transform 0.3s;
}

.mbh-cathero__seal:hover {
	transform: rotate(3deg) scale(1.05);
}

.mbh-cathero__seal img {
	width: 46%;
	height: auto;
	filter: brightness(0) invert(1);
}

.mbh-fl {
	position: absolute;
	bottom: 20px;
	left: 20px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 13px;
	max-width: calc(100% - 40px);
	padding: 11px 18px 11px 11px;
	border-radius: 20px;
	background: var(--mbh-paper);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
	color: var(--mbh-ink);
	text-decoration: none;
}

a.mbh-fl:hover {
	color: var(--mbh-ink);
}

.mbh-fl__i {
	flex: none;
	width: 50px;
	height: 50px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--mbh-cream);
}

.mbh-fl__i img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mbh-fl__tx {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mbh-fl__t {
	font-family: var(--mbh-sub);
	font-size: 17px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mbh-fl__s {
	font-size: 14px;
	font-weight: 600;
	color: var(--mbh-mute);
}

.mbh-wave {
	line-height: 0;
}

.mbh-wave svg {
	display: block;
	width: 100%;
	height: 80px;
	margin-top: -1px;
}

.mbh-wave path {
	fill: var(--mbh-jam);
}

/* ------------------------------------------------ Section heads */
.mbh-hd.wp-block-group {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.mbh-hd > * {
	margin-block: 0;
}

.mbh-hubsec .mbh-hd__h {
	margin: 0;
	font-size: clamp(30px, 3.4vw, 44px);
}

.mbh-hd__note {
	font-family: var(--mbh-disp);
	font-size: 24px;
	line-height: 1;
	white-space: nowrap;
	color: var(--mbh-jam);
	transform: rotate(-3deg);
}

.mbh-hd__note .mbh-note {
	font-size: 24px;
}

/* ------------------------------------------------ Chip bar */
.mbh-fbar {
	position: sticky;
	top: calc(var(--mbh-header-h, 98px) + var(--wp-admin--admin-bar--height, 0px));
	z-index: 20;
	margin: 0 0 26px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mbh-line);
	background: var(--mbh-paper);
}

.mbh-chips {
	display: flex;
	gap: 6px;
	padding-right: 28px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

.mbh-chips::-webkit-scrollbar {
	display: none;
}

.mbh-chip {
	display: inline-flex;
	flex: none;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--mbh-cream);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--mbh-ink);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.mbh-chip:hover {
	background: var(--mbh-peach-soft);
	color: var(--mbh-ink);
}

.mbh-chip.is-on {
	background: var(--mbh-jam);
	color: var(--mbh-cream);
}

/* Anchored sections clear the sticky header and chip bar. */
.mbh-hubsec [id],
.mbh-hubsec[id] {
	scroll-margin-top: calc(var(--mbh-header-h, 98px) + var(--wp-admin--admin-bar--height, 0px) + 70px);
}

/* ------------------------------------------------ Grid sections */
.mbh-gridsec.wp-block-group,
.mbh-featsec.wp-block-group {
	padding-top: 28px;
}

.mbh-featsec + .mbh-gridsec.wp-block-group {
	padding-top: 96px;
}

.mbh-secH.wp-block-group {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin: 44px 0 22px;
	padding-top: 30px;
	border-top: 1px solid var(--mbh-line);
}

.mbh-hubsec .alignwide.mbh-secH {
	margin-top: 44px;
}

.mbh-hubsec .alignwide.mbh-secH.is-first {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.mbh-secH > * {
	margin-block: 0;
}

.mbh-hubsec .mbh-secH__h {
	font-family: var(--mbh-stamp);
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 400;
	line-height: 0.92;
	text-transform: uppercase;
	color: var(--mbh-ink);
}

.mbh-secH__h em {
	display: inline-block;
	margin: -0.06em 0 -0.1em;
	font-family: var(--mbh-disp);
	font-size: 1.28em;
	font-style: normal;
	line-height: 0.7;
	text-transform: none;
	color: var(--mbh-jam);
}

.mbh-secH__more a {
	font-size: 15px;
	font-weight: 800;
	white-space: nowrap;
	color: var(--mbh-jam);
	text-decoration: none;
}

.mbh-secH__more a:hover {
	color: var(--mbh-jam-deep);
}

/* ------------------------------------------------ Product cards (.pc) */
.mbh-hubsec .wb-shop-collection {
	margin-block: 0;
}

.mbh-hubsec .wb-shop-collection__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

.mbh-hubsec .wb-pagination,
.mbh-hubsec .wb-shop-collection-dots {
	display: none;
}

.mbh-hubsec .wb-product-card {
	position: relative;
	gap: 0;
	padding: 18px;
	border: 0;
	border-radius: 26px;
	background: var(--mbh-cream);
	box-shadow: none;
	color: var(--mbh-ink);
	transition: transform 0.24s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.24s;
}

.mbh-hubsec .wb-product-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px rgba(58, 15, 0, 0.12);
}

.mbh-hubsec .wb-product-card:not(.wb-product-card--horizontal) .wb-product-card__image-wrap {
	aspect-ratio: 1;
	margin: 0;
	border-radius: 16px;
	background: var(--mbh-paper);
}

.mbh-hubsec .wb-product-card__image-wrap img {
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mbh-hubsec .wb-product-card:hover .wb-product-card__image-wrap img {
	transform: scale(1.06) rotate(-2.5deg);
}

/* "take a look" pill that pops on hover (the design's .go). */
.mbh-hubsec .wb-product-card__image-wrap > a::after {
	content: "take a look";
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	padding: 8px 15px 9px;
	border-radius: 999px;
	background: var(--mbh-peach);
	box-shadow: 0 10px 20px -8px rgba(58, 15, 0, 0.4);
	font-family: var(--mbh-disp);
	font-size: 22px;
	line-height: 1;
	white-space: nowrap;
	color: var(--mbh-jam);
	opacity: 0;
	transform: rotate(-5deg) translateY(12px) scale(0.85);
	transform-origin: right bottom;
	transition: opacity 0.18s, transform 0.4s cubic-bezier(0.34, 1.7, 0.64, 1);
	pointer-events: none;
}

.mbh-hubsec .wb-product-card:hover .wb-product-card__image-wrap > a::after,
.mbh-hubsec .wb-product-card:focus-within .wb-product-card__image-wrap > a::after {
	opacity: 1;
	transform: rotate(-5deg) translateY(0) scale(1);
}

@media (hover: none) {
	.mbh-hubsec .wb-product-card__image-wrap > a::after {
		display: none;
	}
}

.mbh-hubsec .wb-product-card__badge {
	top: 12px;
	left: 12px;
	padding: 6px 11px;
	background: var(--mbh-paper);
	font-size: 13px;
	font-weight: 800;
	color: var(--mbh-jam);
}

.mbh-hubsec .wb-product-card__title {
	order: 1;
	display: -webkit-box;
	margin-top: 18px;
	padding: 0 6px;
	overflow: hidden;
	font-family: var(--mbh-sub);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--mbh-ink);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.mbh-hubsec a.wb-product-card__title:hover {
	color: var(--mbh-jam);
	text-decoration: none;
}

/* Whole card clickable through the title link. */
.mbh-hubsec a.wb-product-card__title::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.mbh-hubsec .wb-product-card__price {
	order: 2;
	margin-top: 6px;
	padding: 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: var(--mbh-mute);
}

.mbh-hubsec .wb-product-card__price .amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.mbh-hubsec .wb-product-card__description {
	order: 3;
	display: -webkit-box;
	min-height: 2.9em;
	margin-top: 8px;
	padding: 0 6px 4px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--mbh-crust);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.mbh-hubsec .wb-product-card > :last-child {
	padding-bottom: 4px;
}

/* ------------------------------------------------ Cream band */
.mbh-bandsec.wp-block-group {
	padding-top: 110px;
}

.mbh-band.wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 48px;
	align-items: center;
	padding: 64px;
	border-radius: 44px;
	background: var(--mbh-cream);
}

.mbh-band > *,
.mbh-band__r > * {
	margin-block: 0;
}

.mbh-hubsec .mbh-band__h {
	margin: 0;
	font-size: clamp(44px, 5vw, 68px);
	line-height: 0.95;
}

.mbh-band__h .mbh-lead {
	margin: 0 0 0.22em 0.1em;
	transform: rotate(-4deg);
}

.mbh-band__h em {
	margin: -0.1em 0.02em -0.12em 0.06em;
	font-size: 1.5em;
	transform: rotate(-5deg) translateY(0.06em);
	transform-origin: left bottom;
}

.mbh-band__r.wp-block-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.mbh-band__p {
	font-size: 18px;
	line-height: 1.6;
	text-wrap: pretty;
	color: var(--mbh-crust);
}

.mbh-band__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
}

.mbh-pill-btn--sm {
	height: 42px;
	padding: 0 20px;
	font-size: 14px;
}

/* ------------------------------------------------ Tablet */
@media (max-width: 1100px) {
	.mbh-hubsec .wb-shop-collection__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
	}

	.mbh-hubsec .wb-product-card {
		padding: 14px;
		border-radius: 22px;
	}

	.mbh-hubsec .wb-product-card__title {
		font-size: 20px;
	}
}

@media (max-width: 1020px) {
	.mbh-cathero__g.wp-block-group,
	.mbh-band.wp-block-group {
		grid-template-columns: minmax(0, 1fr);
	}

	.mbh-cathero__g.wp-block-group {
		gap: 40px;
	}

	.mbh-cathero__tx {
		padding-bottom: 0;
	}

	.mbh-cathero .mbh-cathero__intro {
		max-width: 34em;
	}

	.mbh-cathero__media.wp-block-group {
		height: 380px;
		margin-bottom: 64px;
	}

	.mbh-hubsec.wp-block-group,
	.mbh-bandsec.wp-block-group {
		padding-top: 84px;
	}

	.mbh-gridsec.wp-block-group,
	.mbh-featsec.wp-block-group {
		padding-top: 28px;
	}

	.mbh-featsec + .mbh-gridsec.wp-block-group {
		padding-top: 84px;
	}

	.mbh-chip {
		height: 40px;
	}
}

@media (max-width: 820px) {
	.mbh-cathero.wp-block-group {
		padding: 56px 24px 0;
	}

	.mbh-hubsec.wp-block-group {
		padding-inline: 24px;
	}

	.mbh-cathero__seal {
		top: 14px;
		left: 14px;
		width: 76px;
		height: 76px;
	}

	.mbh-band.wp-block-group {
		padding: 32px;
		border-radius: 32px;
	}
}

/* ------------------------------------------------ Phone */
@media (max-width: 640px) {
	.mbh-cathero.wp-block-group {
		padding: 32px 18px 0;
	}

	.mbh-hubsec.wp-block-group {
		padding-inline: 18px;
	}

	.mbh-hubsec.wp-block-group,
	.mbh-bandsec.wp-block-group {
		padding-top: 64px;
	}

	.mbh-gridsec.wp-block-group,
	.mbh-featsec.wp-block-group {
		padding-top: 24px;
	}

	.mbh-featsec + .mbh-gridsec.wp-block-group {
		padding-top: 60px;
	}

	.mbh-cathero .mbh-cathero__title {
		font-size: 44px;
	}

	.mbh-cathero .mbh-cathero__intro {
		font-size: 17px;
	}

	.mbh-facts {
		gap: 18px;
	}

	.mbh-cathero__media.wp-block-group {
		height: 300px;
		margin-bottom: 44px;
	}

	.mbh-hd__note {
		display: none;
	}

	.mbh-hubsec .wb-shop-collection__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.mbh-hubsec .wb-product-card {
		padding: 10px;
		border-radius: 20px;
	}

	.mbh-hubsec .wb-product-card:not(.wb-product-card--horizontal) .wb-product-card__image-wrap {
		border-radius: 13px;
	}

	.mbh-hubsec .wb-product-card__title {
		margin-top: 12px;
		padding: 0 4px;
		font-size: 17px;
	}

	.mbh-hubsec .wb-product-card__price {
		margin-top: 4px;
		padding: 0 4px 2px;
		font-size: 14px;
	}

	.mbh-hubsec .wb-product-card__description {
		display: none;
	}

	.mbh-band.wp-block-group {
		gap: 22px;
		padding: 26px;
		border-radius: 28px;
	}
}

@media (max-width: 380px) {
	.mbh-hubsec .wb-product-card__title {
		font-size: 16px;
	}

	.mbh-cathero.wp-block-group,
	.mbh-hubsec.wp-block-group {
		padding-inline: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbh-hubsec .wb-product-card,
	.mbh-hubsec .wb-product-card__image-wrap img,
	.mbh-hubsec .wb-product-card__image-wrap > a::after {
		transition: none;
	}

	.mbh-hubsec .wb-product-card:hover,
	.mbh-hubsec .wb-product-card:hover .wb-product-card__image-wrap img {
		transform: none;
	}
}

/* Catering items sold in sizes: one card, sizes listed under the name. */
.mbh-hubsec .mbh-card-sizes {
	order: 1;
	margin-top: 6px;
	padding: 0 6px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--mbh-jam);
}

/* Phones: six cards per section where "See all" links to the rest. */
@media (max-width: 640px) {
	.mbh-secH:has(.mbh-secH__more a) + .mbh-pgrid .wb-shop-collection__grid > .wb-product-card:nth-child(n+7) {
		display: none;
	}
}
