/**
 * Brand page blocks — hero, trust strip, "As seen on you", "Why buy here", "Sourcing you can trust".
 * Loaded on brand archives only (includes/mb-brand-page-blocks.php).
 * Source: gucci-landing mockup; tokens scoped to the blocks so the rest of the site is untouched.
 */

.mb-bp-hero,
.mb-bp-trust,
.mb-bp-ugc,
.mb-bp-why,
.mb-bp-src {
	--bp-surface: #f6f5f1;
	--bp-ink: #121210;
	--bp-muted: #79766e;
	--bp-border: #e4e1d8;
	--bp-green-900: #0e2c22;
	/* Brand palette — overridden per brand by the style attribute (mb_bp_palette_style()). */
	--bp-c900: #0e2c22;
	--bp-c700: #0e2c22;
	--bp-c500: #0e2c22;
	--bp-glow: transparent;
	--bp-title: #f3f1ea;
	--bp-sub: #dfe6e1;
	--bp-label: #b9c4bd;
	--bp-a3: 50%;
	--bp-a4: 22%;
	--bp-a5: 32%;
	--bp-m1: 55%;
	--bp-green-200: #c9dcd2;
	--bp-gold: #b3903f;
	--bp-gold-soft: #e7d9b6;
	--bp-shadow-md: 0 10px 30px rgba(18, 16, 10, .10);
	--bp-shadow-lg: 0 24px 60px rgba(18, 16, 10, .16);
	--bp-wide: var(--mb-max-width, 1600px);
	--bp-gutter: var(--mb-gutter, 24px);
	font-family: var(--mb-font-body, 'DM Sans', sans-serif);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.mb-bp-hero *,
.mb-bp-trust *,
.mb-bp-ugc *,
.mb-bp-why *,
.mb-bp-src * { box-sizing: border-box; }
.mb-bp-hero :is(h1, h2, h3, p),
.mb-bp-trust :is(h1, h2, h3, p),
.mb-bp-ugc :is(h1, h2, h3, p),
.mb-bp-why :is(h1, h2, h3, p),
.mb-bp-src :is(h1, h2, h3, p) { margin: 0; text-wrap: balance; }

/* ── Shared ─────────────────────────────────────────────────────────────── */
.mb-bp-display {
	font-family: var(--mb-font-display, 'Bebas Neue', sans-serif);
	font-weight: 400;
	letter-spacing: .01em;
	line-height: .92;
	text-transform: uppercase;
}
.mb-bp-eyebrow {
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--bp-muted);
	font-weight: 700;
	margin: 0 0 14px;
}
.mb-bp-eyebrow--on-dark { color: var(--bp-gold-soft); }
.mb-bp-eyebrow__dot { color: var(--bp-gold); }
.mb-bp-rule {
	width: 56px;
	height: 2px;
	background: var(--bp-gold);
	margin: 18px auto;
	border: 0;
}
.mb-bp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 30px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	border: 1px solid transparent;
	transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
	white-space: nowrap;
}
.mb-bp-btn:hover { transform: translateY(-1px); }
.mb-bp-btn--solid-light,
.mb-bp-btn--solid-light:visited { background: #fff; color: var(--bp-c900); }
.mb-bp-btn--solid-light:hover { background: var(--bp-gold-soft); color: var(--bp-c900); }
.mb-bp-btn--outline-light,
.mb-bp-btn--outline-light:visited { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.mb-bp-btn--outline-light:hover { border-color: #fff; color: #fff; }
.mb-bp-btn:focus-visible { outline: 2px solid var(--bp-gold); outline-offset: 2px; }

/* "Scroll to products" target: clear the sticky header. */
.mb-bp-anchor { scroll-margin-top: 110px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.mb-bp-hero {
	position: relative;
	overflow: hidden;
	background: var(--bp-c900);
	color: var(--bp-title);
}
.mb-bp-hero .mb-bp-hero__bg,
.mb-bp-hero .mb-bp-hero__bg-img { /* beats .woocommerce img { height: auto } */
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.mb-bp-hero .mb-bp-hero__bg-img {
	object-fit: cover;
	object-position: center 22%;
	max-width: none;
}
.mb-bp-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(100deg,
		color-mix(in srgb, var(--bp-c900) 95%, transparent) 0%,
		color-mix(in srgb, var(--bp-c700) 88%, transparent) 34%,
		color-mix(in srgb, var(--bp-c500) var(--bp-a3), transparent) 58%,
		color-mix(in srgb, var(--bp-c500) var(--bp-a4), transparent) 82%,
		color-mix(in srgb, var(--bp-c700) var(--bp-a5), transparent) 100%);
}
.mb-bp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(50% 75% at 88% 100%, var(--bp-glow), transparent 70%),
		radial-gradient(60% 60% at 85% 15%, rgba(255, 255, 255, .08), transparent 70%);
}
.mb-bp-hero__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
	max-width: var(--bp-wide);
	margin: 0 auto;
	padding: clamp(28px, 3.4vw, 44px) var(--bp-gutter);
}
/* Breadcrumb moved into the hero: small and quiet on the dark background. */
.mb-bp-hero__crumbs { margin-bottom: 18px; }
.mb-bp-hero__crumbs .mb-shop__breadcrumb {
	font-size: 11px;
	letter-spacing: .04em;
	color: rgba(255, 255, 255, .45);
}
.mb-bp-hero__crumbs a,
.mb-bp-hero__crumbs .mb-shop__breadcrumb-current { color: rgba(255, 255, 255, .45); text-decoration: none; }
.mb-bp-hero__crumbs a:hover { color: rgba(255, 255, 255, .8); }
.mb-bp-hero .mb-bp-eyebrow { margin-bottom: 8px; }
.mb-bp-hero__title {
	font-size: clamp(38px, 5vw, 68px);
	line-height: .95;
	color: var(--bp-title);
}
.mb-bp-hero__title--mid { font-size: clamp(36px, 4.8vw, 64px); line-height: .97; }
.mb-bp-hero__title--long { font-size: clamp(30px, 4.4vw, 58px); line-height: 1; }
.mb-bp-hero__sub {
	max-width: 42ch;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--bp-sub);
	margin-top: 10px !important;
}
.mb-bp-hero__stats {
	display: flex;
	flex-wrap: wrap;
	margin-top: 16px;
}
.mb-bp-hero__stat {
	padding-right: 18px;
	margin-right: 18px;
	border-right: 1px solid rgba(255, 255, 255, .22);
}
.mb-bp-hero__stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.mb-bp-hero__stat b {
	display: block;
	font-family: var(--mb-font-display, 'Bebas Neue', sans-serif);
	font-size: 20px;
	font-weight: 400;
	color: #fff;
}
.mb-bp-hero__stat span {
	font-size: 10px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--bp-label);
}
.mb-bp-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}
.mb-bp-hero__ctas .mb-bp-btn { padding: 12px 22px; font-size: 12px; }

/* Product card */
.mb-bp-hero__card {
	position: relative;
	display: block;
	max-width: 210px;
	margin-left: auto;
	padding: 12px 12px 16px;
	background: #fbfaf6;
	border-radius: 6px;
	box-shadow: var(--bp-shadow-lg);
	transform: rotate(1.2deg);
	color: var(--bp-ink);
	text-decoration: none;
	transition: transform .25s ease;
}
.mb-bp-hero__card:hover { transform: rotate(0) translateY(-2px); }
.mb-bp-hero__ribbon {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 5px 9px;
	background: var(--bp-c700);
	color: #fff;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	border-radius: 2px;
}
.mb-bp-hero__card-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
	border-radius: 3px;
}
.mb-bp-hero__tag {
	position: absolute;
	left: -10px;
	bottom: -14px;
	display: block;
	padding: 9px 13px;
	background: var(--bp-ink);
	color: #f3f1ea;
	border-radius: 4px;
	box-shadow: var(--bp-shadow-md);
	transform: rotate(-2deg);
}
.mb-bp-hero__tag-model {
	display: block;
	margin-bottom: 1px;
	font-size: 10.5px;
	letter-spacing: .04em;
	color: #c7c4ba;
}
.mb-bp-hero__tag-price {
	display: block;
	font-family: var(--mb-font-display, 'Bebas Neue', sans-serif);
	font-size: 17px;
}
.mb-bp-hero__tag-price del {
	margin-right: 6px;
	font-size: 12px;
	font-weight: 400;
	color: #8f8c82;
}
.mb-bp-hero__tag-price .woocommerce-Price-amount { color: inherit; }

@media (max-width: 860px) {
	.mb-bp-hero .mb-bp-hero__bg-img { object-position: 76% 18%; }
	.mb-bp-hero::before {
		background: linear-gradient(180deg,
			color-mix(in srgb, var(--bp-c900) var(--bp-m1), transparent) 0%,
			color-mix(in srgb, var(--bp-c700) 93%, transparent) 55%,
			color-mix(in srgb, var(--bp-c700) 97%, transparent) 100%);
	}
	.mb-bp-hero__grid { grid-template-columns: 1fr; }
	/* Product card: full width under the buttons — photo across the card, name and price below. */
	.mb-bp-hero__card {
		max-width: none;
		margin: 4px 0 28px;
		padding: 10px;
		transform: none;
	}
	.mb-bp-hero__card:hover { transform: translateY(-2px); }
	.mb-bp-hero__ribbon { top: 18px; left: 18px; }
	.mb-bp-hero .mb-bp-hero__card-img { width: 100%; aspect-ratio: 2 / 1; }
	/* Same black price tag as on desktop, over the bottom-left corner of the photo. */
	.mb-bp-hero__tag { left: -8px; bottom: -14px; }
	/* Buttons: equal halves of the content width, long brand names wrap. */
	.mb-bp-hero__ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
	.mb-bp-hero__ctas .mb-bp-btn { width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
}
@media (max-width: 600px) {
	.mb-bp-hero__ctas { grid-template-columns: 1fr; gap: 10px; }
	.mb-bp-hero__ctas .mb-bp-btn { padding: 14px 18px; }
	.mb-bp-hero .mb-bp-hero__card-img { aspect-ratio: 4 / 3; }
}

/* ── Trust strip ────────────────────────────────────────────────────────── */
.mb-bp-trust {
	background: var(--bp-surface);
	border-bottom: 1px solid var(--bp-border);
	color: var(--bp-ink);
}
.mb-bp-trust__row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	max-width: var(--bp-wide);
	margin: 0 auto;
	padding-inline: var(--bp-gutter);
}
.mb-bp-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 30px 16px;
	text-align: center;
	border-left: 1px solid var(--bp-border);
}
.mb-bp-trust__item:first-child { border-left: 0; }
.mb-bp-trust__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--bp-green-200);
	color: var(--bp-green-900);
}
.mb-bp-trust__icon svg { width: 22px; height: 22px; }
.mb-bp-trust__item.is-rating .mb-bp-trust__icon { background: var(--bp-gold-soft); color: var(--bp-gold); }
.mb-bp-trust__item b { display: block; font-size: 13.5px; letter-spacing: .02em; }
.mb-bp-trust__item p {
	max-width: 22ch;
	margin: 3px auto 0 !important;
	font-size: 12px;
	line-height: 1.45;
	color: var(--bp-muted);
}
@media (max-width: 640px) {
	.mb-bp-trust__row { grid-template-columns: repeat(2, 1fr); }
	.mb-bp-trust__item { border-left: 0; border-top: 1px solid var(--bp-border); }
	.mb-bp-trust__item:nth-child(-n+2) { border-top: 0; }
}

/* ── As seen on you ─────────────────────────────────────────────────────── */
.mb-bp-ugc {
	padding-block: clamp(56px, 8vw, 108px);
	background: #fff;
	color: var(--bp-ink);
}
.mb-bp-ugc__head {
	max-width: 640px;
	margin: 0 auto 40px;
	padding-inline: var(--bp-gutter);
	text-align: center;
}
.mb-bp-ugc__title { font-size: clamp(32px, 4vw, 46px); }
.mb-bp-ugc__sub {
	margin-top: 12px !important;
	font-size: 15px;
	line-height: 1.55;
	color: var(--bp-muted);
}
.mb-bp-ugc__carousel {
	position: relative;
	max-width: var(--bp-wide);
	margin: 0 auto;
	padding-inline: var(--bp-gutter);
}
.mb-bp-ugc__track {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.mb-bp-ugc__track::-webkit-scrollbar { display: none; }
.mb-bp-ugc__item {
	flex: 0 0 calc((100% - 4 * 16px) / 5);
	min-width: 0;
	margin: 0;
	scroll-snap-align: start;
}
.mb-bp-ugc__card {
	position: relative;
	display: block;
	aspect-ratio: 3 / 5;
	overflow: hidden;
	border: 1px solid var(--bp-border);
	border-radius: 6px;
	background: var(--bp-surface);
	color: #fff;
	text-decoration: none;
	transition: box-shadow .25s ease, transform .25s ease;
}
a.mb-bp-ugc__card:hover { box-shadow: var(--bp-shadow-md); transform: translateY(-3px); }
.mb-bp-ugc .mb-bp-ugc__img { /* beats .woocommerce img { height: auto } */
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .5s ease;
}
a.mb-bp-ugc__card:hover .mb-bp-ugc__img { transform: scale(1.04); }
.mb-bp-ugc__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	padding: 30px 12px 12px;
	background: linear-gradient(to top, color-mix(in srgb, var(--bp-c700) 82%, transparent), transparent);
	color: #fff;
}
.mb-bp-ugc__handle {
	overflow: hidden;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.mb-bp-ugc__cta {
	flex: 0 0 auto;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: var(--bp-c900);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .03em;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .25s ease, transform .25s ease;
}
a.mb-bp-ugc__card:hover .mb-bp-ugc__cta,
a.mb-bp-ugc__card:focus-visible .mb-bp-ugc__cta { opacity: 1; transform: none; }
.mb-bp-ugc__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--bp-border);
	border-radius: 50%;
	background: #fff;
	color: var(--bp-ink);
	box-shadow: var(--bp-shadow-md);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity .2s ease;
}
.mb-bp-ugc__nav:hover { background: var(--bp-surface); }
.mb-bp-ugc__nav svg { width: 18px; height: 18px; }
.mb-bp-ugc__nav--prev { left: calc(var(--bp-gutter) - 21px); }
.mb-bp-ugc__nav--next { right: calc(var(--bp-gutter) - 21px); }
.mb-bp-ugc__nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
	.mb-bp-ugc__item { flex-basis: calc((100% - 2 * 16px) / 3); }
}
@media (max-width: 600px) {
	.mb-bp-ugc__track { gap: 12px; }
	.mb-bp-ugc__item { flex-basis: calc((100% - 12px) / 1.4); }
	.mb-bp-ugc__nav { display: none; }
	.mb-bp-ugc__cta { opacity: 1; transform: none; }
}

/* ── Why buy here ───────────────────────────────────────────────────────── */
.mb-bp-why {
	padding-block: clamp(56px, 8vw, 108px);
	background: var(--bp-ink);
	color: #f3f1ea;
}
.mb-bp-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr);
	grid-auto-columns: minmax(0, .6fr);
	grid-auto-flow: column;
	gap: 32px;
	align-items: center;
	max-width: var(--bp-wide);
	margin: 0 auto;
	padding-inline: var(--bp-gutter);
}
.mb-bp-why__title { font-size: clamp(34px, 4.4vw, 52px); color: #f3f1ea; }
.mb-bp-why__copy p {
	max-width: 36ch;
	margin-top: 12px !important;
	font-size: 14.5px;
	line-height: 1.55;
	color: #b9b6ac;
}
.mb-bp-why__stat b {
	display: block;
	font-family: var(--mb-font-display, 'Bebas Neue', sans-serif);
	font-size: clamp(36px, 4vw, 50px);
	font-weight: 400;
	line-height: 1.1;
}
.mb-bp-why__stat span {
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #a9a69d;
}
.mb-bp-why__btn { justify-self: end; }
@media (max-width: 960px) {
	.mb-bp-why__grid {
		grid-template-columns: 1fr 1fr;
		grid-auto-flow: row;
	}
	.mb-bp-why__copy,
	.mb-bp-why__btn { grid-column: 1 / -1; }
	.mb-bp-why__btn { justify-self: start; }
}

/* ── Sourcing you can trust ─────────────────────────────────────────────── */
.mb-bp-src {
	padding-block: clamp(56px, 8vw, 108px);
	background: var(--bp-surface);
	color: var(--bp-ink);
}
.mb-bp-src__head {
	max-width: 640px;
	margin: 0 auto 48px;
	padding-inline: var(--bp-gutter);
	text-align: center;
}
.mb-bp-src__title { font-size: clamp(32px, 4vw, 46px); }
.mb-bp-src__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px;
	max-width: var(--bp-wide);
	margin: 0 auto;
	padding-inline: var(--bp-gutter);
	text-align: center;
}
.mb-bp-src__num {
	font-family: var(--mb-font-display, 'Bebas Neue', sans-serif);
	font-size: 56px;
	line-height: 1.1;
	color: var(--bp-gold);
}
.mb-bp-src__item h3 {
	margin-top: 6px !important;
	font-family: var(--mb-font-body, 'DM Sans', sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--bp-ink);
}
.mb-bp-src__item p {
	max-width: 34ch;
	margin: 10px auto 0 !important;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--bp-muted);
}
@media (max-width: 860px) {
	.mb-bp-src__grid { grid-template-columns: 1fr; gap: 40px; }
}
