.mespaco-brand-directory,
.mespaco-brand-container {
	--brand-border: #d7e2df;
	--brand-surface: #fff;
	--brand-soft: #edf4e9;
	--brand-muted: #596970;
	--brand-primary: #1f5e72;
	--brand-green: #5c8a45;
	--brand-gold: #c58a25;
}

.mespaco-brand-directory {
	padding-block: clamp(1.5rem, 3.5vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.mespaco-brand-directory__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.25rem;
	margin-block-end: 1.4rem;
}

.mespaco-brand-directory__heading span,
.mespaco-brand-profile__eyebrow,
.mespaco-brand-section-heading > span {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: #477235;
	font-size: .72rem;
	font-weight: 800;
}

.mespaco-brand-directory__heading span::before,
.mespaco-brand-profile__eyebrow::before,
.mespaco-brand-section-heading > span::before {
	width: 1.5rem;
	height: 2px;
	background: var(--brand-gold);
	content: "";
}

.mespaco-brand-directory__heading h2 {
	margin: .2rem 0 0;
	font-size: clamp(1.25rem, 2vw, 1.7rem);
	line-height: 1.5;
}

.mespaco-brand-search {
	display: grid;
	grid-template-columns: 1.1rem minmax(11rem, 20rem) auto;
	align-items: center;
	min-height: 3rem;
	padding-inline: .9rem;
	background: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 999px;
}

.mespaco-brand-search svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: var(--brand-primary);
	stroke-width: 1.8;
}

.mespaco-brand-search input {
	box-sizing: border-box !important;
	width: 100%;
	min-width: 0;
	height: 2.8rem;
	padding-inline: .55rem;
	font: inherit;
	font-size: .8rem;
	background: transparent;
	border: 0;
	outline: 0;
}

.mespaco-brand-search:focus-within {
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 3px rgb(31 94 114 / 10%);
}

.mespaco-brand-search button {
	padding: .2rem .35rem;
	color: var(--brand-primary);
	font: inherit;
	font-size: .68rem;
	font-weight: 750;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.mespaco-brand-search button[hidden] {
	display: none;
}

.mespaco-brand-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: .9rem;
}

.mespaco-brand-card {
	position: relative;
	display: grid;
	min-width: 0;
	min-height: 11rem;
	align-content: center;
	justify-items: center;
	gap: .55rem;
	padding: 1rem;
	background: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 1rem;
	box-shadow: 0 .55rem 1.8rem rgb(24 40 47 / 5%);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mespaco-brand-card:hover {
	border-color: #bfd1cc;
	box-shadow: 0 .9rem 2.2rem rgb(24 40 47 / 10%);
	transform: translateY(-3px);
}

.mespaco-brand-card[hidden] {
	display: none;
}

.mespaco-brand-card__badge {
	position: absolute;
	inset-block-start: .6rem;
	inset-inline-end: .6rem;
	padding: .22rem .52rem;
	color: #fff;
	font-size: .6rem;
	font-weight: 800;
	background: var(--brand-primary);
	border-radius: 999px;
}

.mespaco-brand-card__logo {
	display: grid;
	width: 100%;
	min-height: 6.5rem;
	place-items: center;
	padding: .5rem;
}

.mespaco-brand-card__logo img {
	width: min(10rem, 86%);
	max-height: 5.5rem;
	object-fit: contain;
}

.mespaco-brand-card__logo.is-placeholder b {
	display: grid;
	width: 4.5rem;
	aspect-ratio: 1;
	place-items: center;
	color: var(--brand-primary);
	font-family: var(--mespaco-font-display, Estedad, sans-serif);
	font-size: 1.35rem;
	background: linear-gradient(135deg, #e8f1f3, #edf4e9);
	border-radius: 50%;
}

.mespaco-brand-card > strong {
	display: -webkit-box;
	overflow: hidden;
	font-family: var(--mespaco-font-display, Estedad, sans-serif);
	font-size: .9rem;
	line-height: 1.5;
	text-align: center;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mespaco-brand-empty {
	display: grid;
	min-height: 14rem;
	place-items: center;
	align-content: center;
	gap: .65rem;
	padding: 2rem;
	color: var(--brand-muted);
	text-align: center;
	background: #fff;
	border: 1px dashed #bfd0cc;
	border-radius: 1rem;
}

.mespaco-brand-empty[hidden] {
	display: none;
}

.mespaco-brand-empty > span {
	font-size: 2rem;
}

.mespaco-brand-empty button,
.mespaco-brand-products__empty a {
	padding: .55rem .9rem;
	color: #fff;
	font: inherit;
	font-size: .75rem;
	font-weight: 800;
	background: var(--brand-primary);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.mespaco-brand-breadcrumb {
	padding-block: 1rem;
	color: #5f6f75;
	font-size: .72rem;
}

.mespaco-brand-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mespaco-brand-breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

.mespaco-brand-breadcrumb li:not(:last-child)::after {
	color: #9ba8ac;
	content: "/";
}

.mespaco-brand-breadcrumb a:hover {
	color: var(--brand-primary);
	text-decoration: underline;
	text-underline-offset: .2rem;
}

.mespaco-brand-profile {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(18rem, .75fr);
	align-items: stretch;
	gap: 1rem;
	padding: clamp(1rem, 2.3vw, 1.6rem);
	background: linear-gradient(125deg, #fff 0 67%, #f0f6ec 100%);
	border: 1px solid var(--brand-border);
	border-radius: 1.25rem;
	box-shadow: 0 1rem 3rem rgb(24 40 47 / 5%);
}

.mespaco-brand-profile__copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(.4rem, 1.2vw, 1rem);
}

.mespaco-brand-profile h2 {
	max-width: 44rem;
	margin: .35rem 0 .55rem;
	font-size: clamp(1.25rem, 2vw, 1.7rem);
	line-height: 1.45;
}

.mespaco-brand-profile__copy > p {
	max-width: 48rem;
	margin: 0;
	color: var(--brand-muted);
	font-size: .84rem;
	text-align: justify;
}

.mespaco-brand-profile__facts {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem 1.25rem;
	margin: .9rem 0 0;
}

.mespaco-brand-profile__facts div {
	display: flex;
	align-items: baseline;
	gap: .4rem;
}

.mespaco-brand-profile__facts dt {
	color: #718087;
	font-size: .68rem;
}

.mespaco-brand-profile__facts dd {
	margin: 0;
	font-size: .75rem;
	font-weight: 700;
}

.mespaco-brand-profile__facts a,
.mespaco-brand-profile__link {
	color: var(--brand-primary);
	text-decoration: underline;
	text-underline-offset: .25rem;
}

.mespaco-brand-profile__link {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-block-start: 1rem;
	font-family: var(--mespaco-font-display, Estedad, sans-serif);
	font-size: .76rem;
	font-weight: 800;
}

.mespaco-brand-profile__visual {
	display: grid;
	min-width: 0;
	align-content: center;
	margin: 0;
	padding: 1rem;
	background: rgb(255 255 255 / 58%);
	border: 1px solid rgb(92 138 69 / 15%);
	border-radius: 1rem;
}

.mespaco-brand-profile__logo {
	display: grid;
	min-height: 10rem;
	place-items: center;
	padding: 1rem;
	background: radial-gradient(circle at 50% 50%, #fff 0 24%, rgb(255 255 255 / 72%) 62%, rgb(237 244 233 / 40%) 100%);
	border-radius: .85rem;
}

.mespaco-brand-profile__logo img {
	width: min(12rem, 78%);
	max-height: 7rem;
	object-fit: contain;
}

.mespaco-brand-profile__logo.is-placeholder {
	align-content: center;
	gap: .5rem;
	color: #718087;
	font-size: .68rem;
	text-align: center;
}

.mespaco-brand-profile__logo.is-placeholder b {
	display: grid;
	width: 5rem;
	aspect-ratio: 1;
	place-items: center;
	color: var(--brand-primary);
	font-size: 1.5rem;
	background: #e8f1f3;
	border-radius: 50%;
}

.mespaco-brand-products {
	padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(3rem, 7vw, 5.5rem);
}

.mespaco-brand-section-heading {
	max-width: 44rem;
	margin-inline: auto;
	margin-block-end: 1.4rem;
	text-align: center;
}

.mespaco-brand-section-heading > span {
	justify-content: center;
}

.mespaco-brand-section-heading h2 {
	margin: .25rem 0;
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	line-height: 1.5;
}

.mespaco-brand-products__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 17rem));
	justify-content: center;
	gap: 1rem;
}

.mespaco-brand-product-card {
	min-width: 0;
	overflow: hidden;
	background: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 1rem;
	box-shadow: 0 .75rem 2.2rem rgb(24 40 47 / 6%);
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.mespaco-brand-product-card:hover {
	border-color: #c3d5d0;
	box-shadow: 0 1rem 2.8rem rgb(24 40 47 / 11%);
	transform: translateY(-3px);
}

.mespaco-brand-product-card__media {
	display: grid;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	place-items: center;
	background: #edf3ef;
}

.mespaco-brand-product-card__media.is-placeholder b {
	color: #75a0a9;
	font-family: Arial, sans-serif;
	font-size: clamp(1.5rem, 4vw, 2.6rem);
}

.mespaco-brand-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.mespaco-brand-product-card:hover .mespaco-brand-product-card__image {
	transform: scale(1.035);
}

.mespaco-brand-product-card__body {
	display: grid;
	grid-template-rows: 1.85rem auto auto;
	padding: .7rem .85rem .8rem;
}

.mespaco-brand-profile__exclusive {
	display: flex;
	margin-block: .35rem .2rem;
}

.mespaco-brand-product-card__body small {
	display: block;
	color: var(--brand-primary);
	font-family: Arial, sans-serif;
	font-size: .67rem;
	font-weight: 700;
	text-align: left;
}

.mespaco-brand-product-card h3 {
	margin: .08rem 0 0;
	font-size: .95rem;
	line-height: 1.55;
}

.mespaco-brand-products__empty {
	display: flex;
	min-height: 10rem;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .8rem;
	padding: 1.5rem;
	text-align: center;
	background: #fff;
	border: 1px dashed #bfd0cc;
	border-radius: 1rem;
}

@media (max-width: 72rem) {
	.mespaco-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mespaco-brand-profile { grid-template-columns: minmax(0, 1.25fr) minmax(16rem, .75fr); }
}

@media (max-width: 56rem) {
	.mespaco-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mespaco-brand-profile { grid-template-columns: 1fr; }
	.mespaco-brand-profile__visual { grid-row: 1; }
	.mespaco-brand-profile__logo { min-height: 8rem; }
	.mespaco-brand-profile__copy { align-items: center; text-align: center; }
	.mespaco-brand-profile__copy > p { text-align: center; }
}

@media (max-width: 42rem) {
	.mespaco-brand-directory__heading { align-items: stretch; flex-direction: column; }
	.mespaco-brand-search { grid-template-columns: 1.1rem minmax(0, 1fr) auto; width: 100%; }
	.mespaco-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
	.mespaco-brand-card { min-height: 9.5rem; padding: .65rem; }
	.mespaco-brand-card__logo { min-height: 5.5rem; }
	.mespaco-brand-card__logo img { max-height: 4.5rem; }
	.mespaco-brand-card > strong { font-size: .78rem; }
	.mespaco-brand-card__badge { inset-block-start: .4rem; inset-inline-end: .4rem; font-size: .54rem; }
	.mespaco-brand-breadcrumb { font-size: .66rem; }
	.mespaco-brand-profile { padding: .75rem; }
	.mespaco-brand-profile__visual { padding: .65rem; }
	.mespaco-brand-profile__logo { min-height: 6.8rem; padding: .6rem; }
	.mespaco-brand-profile__logo img { max-height: 5.5rem; }
	.mespaco-brand-profile__copy { padding: .65rem .35rem; }
	.mespaco-brand-profile h2 { font-size: 1.15rem; }
	.mespaco-brand-profile__copy > p { font-size: .78rem; text-align: justify; }
	.mespaco-brand-products__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 11rem)); gap: .65rem; }
	.mespaco-brand-product-card__body { padding: .5rem .6rem .6rem; }
	.mespaco-brand-product-card h3 { font-size: .8rem; }
}

@media (max-width: 22rem) {
	.mespaco-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mespaco-brand-card { min-height: 8.75rem; }
}

@media (prefers-reduced-motion: reduce) {
	.mespaco-brand-card,
	.mespaco-brand-product-card,
	.mespaco-brand-product-card__image { transition: none; }
	.mespaco-brand-card:hover,
	.mespaco-brand-product-card:hover { transform: none; }
}

/* Shared brand introduction (v1 opt-in). */
.mespaco-brand-profile h2 { color: #142028; }
.mespaco-brand-profile__copy > p { color: #354952; font-size: .9025rem; overflow-wrap: anywhere; }
.mespaco-brand-profile__description {
	box-sizing: border-box;
	inline-size: 100%;
	min-inline-size: 0;
	margin: clamp(1rem, 2vw, 1.5rem) 0 0;
	padding: clamp(1rem, 2.5vw, 1.75rem);
	color: #354952;
	background: #fff;
	border: 1px solid var(--brand-border);
	border-radius: 1rem;
	box-shadow: 0 .75rem 2.5rem rgb(24 40 47 / 4%);
	font-size: .9025rem;
	line-height: 2;
	text-align: justify;
	overflow-wrap: anywhere;
}
.mespaco-brand-profile__description h2,
.mespaco-brand-profile__description h3 { color: #142028; line-height: 1.65; text-align: start; }
.mespaco-brand-profile__description h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.mespaco-brand-profile__description h3 { font-size: 1rem; }
.mespaco-brand-profile__description > * { box-sizing: border-box; inline-size: 100%; max-inline-size: 66rem; min-inline-size: 0; margin-inline: auto; }
.mespaco-brand-profile__description > :first-child { margin-block-start: 0; }
.mespaco-brand-profile__description > :last-child { margin-block-end: 0; }
.mespaco-brand-profile__description a { color: var(--brand-primary); font-weight: 700; text-decoration: underline; text-underline-offset: .2rem; }
.mespaco-brand-profile__description ul { padding-inline-start: 1.2rem; }
@media (max-width: 56rem) { .mespaco-brand-profile__description { font-size: .8425rem; } }
@media (max-width: 42rem) { .mespaco-brand-profile__copy > p { font-size: .8425rem; } }
