/*
 * Busy Bee Design: the new big (burger) menu, design B3.
 * Desktop (1025 px and up): sections on the left, the chosen section's links
 * on the right. Tablet and phone: the sections, then tap one to see its
 * links, with a "Menu" button to go back.
 * Only applies inside .bbm, which the plugin prints when the new menu is on.
 */
.bbm {
	--bbm-bg: #FCFAF8;
	--bbm-text: #1a1a1a;
	--bbm-accent: #780032;
	--bbm-line: #E8DFD8;
	--bbm-line-soft: #EFE8E2;
	--bbm-label: #6B5A4F;
	--bbm-pill: #EDE4DD;
	--bbm-head-font: "Ivy Presto Headline", Georgia, serif;
	--bbm-text-font: "Futura PT", "Jost", Arial, sans-serif;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	/* Elementor makes the panel taller than the screen on tablets; keep the
	   menu to the visible part below the header (measured by header-menu.js),
	   so the bottom buttons are always on screen. */
	max-height: calc(100vh - var(--bbsl-header-bottom, 0px));
	max-height: calc(100dvh - var(--bbsl-header-bottom, 0px));
	background: var(--bbm-bg);
	color: var(--bbm-text);
	font-family: var(--bbm-text-font);
	font-size: 16px;
	line-height: 1.35;
	text-align: left;
}

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

/* The theme styles every button and link; undo that inside the menu. */
.bbm button,
.bbm button:hover,
.bbm button:focus,
.bbm button:active {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.bbm a,
.bbm a:visited {
	color: var(--bbm-text);
	text-decoration: none;
}

.bbm a:hover,
.bbm button:hover {
	color: var(--bbm-accent);
}

.bbm a:focus-visible,
.bbm button:focus-visible,
.bbm .bbm__title:focus-visible {
	outline: 2px solid var(--bbm-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.bbm .bbm__title:focus:not(:focus-visible) {
	outline: none;
}

/* Section buttons */
.bbm .bbm__section {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-align: left;
	color: var(--bbm-text);
}

.bbm .bbm__section-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bbm .bbm__section-title {
	font-family: var(--bbm-head-font);
	font-weight: 400;
	line-height: 1.1;
}

.bbm .bbm__section-hint {
	font-family: var(--bbm-text-font);
	font-weight: 300;
	color: var(--bbm-label);
	line-height: 1.3;
}

.bbm .bbm__chevron {
	flex-shrink: 0;
}

/* Small capitals labels */
.bbm .bbm__popular-label,
.bbm .bbm__group-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bbm-label);
}

.bbm a.bbm__group-label:hover {
	color: var(--bbm-accent);
}

/* Popular row */
.bbm .bbm__popular {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bbm .bbm__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bbm a.bbm__chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--bbm-pill);
	font-size: 15px;
	white-space: nowrap;
}

.bbm a.bbm__chip:hover {
	background: var(--bbm-line);
}

/* Section panel */
.bbm .bbm__panel {
	display: none;
}

.bbm .bbm__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.bbm .bbm__title {
	margin: 0;
	padding: 0;
	font-family: var(--bbm-head-font);
	font-weight: 400;
	line-height: 1.1;
	color: var(--bbm-text);
	text-transform: none;
	letter-spacing: normal;
}

.bbm a.bbm__all {
	font-weight: 500;
	color: var(--bbm-accent);
	white-space: nowrap;
}

.bbm .bbm__group {
	display: flex;
	flex-direction: column;
}

.bbm a.bbm__link {
	font-weight: 300;
}

/* Featured category card */
.bbm a.bbm__card {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 25px;
	background: var(--bbm-accent);
	color: var(--bbm-bg);
}

.bbm a.bbm__card:hover {
	color: var(--bbm-bg);
}

.bbm .bbm__card-media {
	position: relative;
	display: block;
	background: #5e0027;
}

.bbm .bbm__card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
	border-radius: 0;
}

.bbm .bbm__card-tag {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--bbm-bg);
	color: var(--bbm-accent);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bbm .bbm__card-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bbm .bbm__card-title {
	font-family: var(--bbm-head-font);
	line-height: 1.1;
}

/* Bottom links */
.bbm a.bbm__bottom-link {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ---------- Desktop: two columns ---------- */
@media (min-width: 1025px) {
	.bbm {
		display: grid;
		grid-template-columns: 380px minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto;
		grid-template-areas: "home panels" "bottom panels";
		padding: 0 clamp(16px, 8vw, 150px);
	}

	.bbm .bbm__home {
		grid-area: home;
		display: flex;
		flex-direction: column;
		gap: 24px;
		min-height: 0;
		overflow-y: auto;
		padding: 40px 48px 24px 0;
		border-right: 1px solid var(--bbm-line);
	}

	.bbm .bbm__sections {
		display: flex;
		flex-direction: column;
		gap: 6px;
	}

	.bbm .bbm__section {
		min-height: 82px;
	}

	.bbm .bbm__section.is-active {
		color: var(--bbm-accent);
	}

	.bbm .bbm__section-title {
		font-size: 32px;
	}

	.bbm .bbm__section-hint {
		font-size: 15px;
	}

	.bbm a.bbm__card--home,
	.bbm .bbm__back {
		display: none;
	}

	.bbm .bbm__bottom {
		grid-area: bottom;
		display: flex;
		flex-direction: column;
		gap: 14px;
		padding: 20px 48px 32px 0;
		border-right: 1px solid var(--bbm-line);
		position: relative;
	}

	.bbm .bbm__bottom::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 48px;
		border-top: 1px solid var(--bbm-line);
	}

	.bbm .bbm__panels {
		grid-area: panels;
		min-height: 0;
		overflow-y: auto;
		padding: 48px 0 32px 64px;
	}

	.bbm .bbm__panel.is-active {
		display: flex;
		flex-direction: column;
		gap: 36px;
	}

	.bbm .bbm__title {
		font-size: 44px;
	}

	.bbm a.bbm__all {
		font-size: 17px;
	}

	.bbm .bbm__body {
		display: flex;
		gap: 56px;
		align-items: flex-start;
	}

	.bbm .bbm__groups {
		flex-grow: 1;
		min-width: 0;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 48px;
		row-gap: 36px;
		align-content: start;
	}

	.bbm .bbm__group {
		gap: 14px;
	}

	/* The shop's categories: one list over both columns, read down each
	   column so the Category Order reads naturally. */
	.bbm .bbm__group--shop {
		grid-column: 1 / -1;
		display: block;
		columns: 2;
		column-gap: 48px;
	}

	.bbm .bbm__group--shop .bbm__group-label {
		column-span: all;
		margin-bottom: 14px;
	}

	.bbm .bbm__group--shop a.bbm__link {
		display: block;
		break-inside: avoid;
		margin-bottom: 14px;
	}

	.bbm a.bbm__link {
		font-size: 19px;
	}

	.bbm a.bbm__card--panel {
		width: 320px;
	}

	.bbm .bbm__card--panel .bbm__card-media {
		height: 213px;
	}

	.bbm .bbm__card--panel .bbm__card-text {
		padding: 22px 26px 26px;
	}

	.bbm .bbm__card--panel .bbm__card-title {
		font-size: 34px;
	}
}

/* Wide enough for two columns but not the card beside them. */
@media (min-width: 1025px) and (max-width: 1279px) {
	.bbm .bbm__body {
		flex-direction: column;
	}
}

/* ---------- Tablet and phone: tap a section to see its links ---------- */
@media (max-width: 1024px) {
	.bbm {
		display: flex;
		flex-direction: column;
	}

	.bbm .bbm__home,
	.bbm .bbm__panels {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.bbm[data-view="home"] .bbm__panels,
	.bbm[data-view="panel"] .bbm__home {
		display: none;
	}

	.bbm .bbm__home {
		display: flex;
		flex-direction: column;
		padding: 8px 20px 20px;
	}

	.bbm .bbm__section {
		min-height: 76px;
		padding: 8px 0;
		border-bottom: 1px solid var(--bbm-line);
	}

	.bbm .bbm__section .bbm__chevron {
		color: var(--bbm-accent);
	}

	.bbm .bbm__section-title {
		font-size: 28px;
	}

	.bbm .bbm__section-hint {
		font-size: 14px;
	}

	.bbm .bbm__popular {
		gap: 10px;
		padding-top: 18px;
	}

	.bbm .bbm__popular-label,
	.bbm .bbm__group-label {
		font-size: 12px;
	}

	/* One row that scrolls sideways. */
	.bbm .bbm__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 0 -20px;
		padding: 0 20px 4px;
		scrollbar-width: none;
	}

	.bbm .bbm__chips::-webkit-scrollbar {
		display: none;
	}

	.bbm a.bbm__chip {
		flex-shrink: 0;
	}

	.bbm a.bbm__card--home {
		margin-top: 20px;
	}

	.bbm .bbm__card--home .bbm__card-media {
		height: 170px;
	}

	.bbm .bbm__card--home .bbm__card-text {
		padding: 14px 20px 16px;
	}

	.bbm .bbm__card--home .bbm__card-title {
		font-size: 24px;
	}

	.bbm .bbm__card--home .bbm__card-cta {
		display: none;
	}

	.bbm a.bbm__card--panel {
		display: none;
	}

	.bbm .bbm__panels {
		padding: 4px 20px 20px;
	}

	.bbm .bbm__panel.is-active {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.bbm .bbm__back {
		align-self: flex-start;
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 44px;
		font-size: 16px;
		color: var(--bbm-accent);
	}

	.bbm .bbm__title {
		font-size: 32px;
	}

	.bbm a.bbm__all {
		font-size: 15px;
	}

	.bbm .bbm__groups {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.bbm .bbm__group-label {
		padding-bottom: 4px;
	}

	.bbm a.bbm__link {
		display: flex;
		align-items: center;
		min-height: 46px;
		border-bottom: 1px solid var(--bbm-line-soft);
		font-size: 18px;
	}

	.bbm .bbm__bottom {
		flex-shrink: 0;
		display: flex;
		gap: 12px;
		padding: 14px 20px 22px;
		border-top: 1px solid var(--bbm-line);
	}

	.bbm a.bbm__bottom-link {
		flex: 1;
		justify-content: center;
		min-height: 48px;
		border: 1px solid var(--bbm-accent);
		border-radius: 999px;
		color: var(--bbm-accent);
		font-size: 16px;
	}

	.bbm a.bbm__bottom-link svg {
		display: none;
	}

	.bbm a.bbm__bottom-link:not(.bbm__bottom-link--first) {
		background: var(--bbm-accent);
		color: #fff;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.bbm .bbm__home,
	.bbm .bbm__panels,
	.bbm .bbm__bottom {
		padding-left: 40px;
		padding-right: 40px;
	}

	.bbm .bbm__chips {
		margin: 0 -40px;
		padding: 0 40px 4px;
	}

	.bbm .bbm__card--home .bbm__card-media {
		height: 240px;
	}
}
