/* GDV Channel Manager — Catalog public styles */

/* ===========================
   Wrapper
   =========================== */

.mp-cm-catalog {
	width: 100%;
	font-family: var(--font-sans, system-ui, sans-serif);
	color: var(--text-primary, #2e2820);
}

/* ===========================
   Search hero
   =========================== */

.mp-cm-search-hero {
	background: var(--gradient-botanical, linear-gradient(160deg, #1e3c2b 0%, #2d5c40 50%, #375c45 100%));
	border-radius: var(--radius-lg, 12px);
	padding: var(--space-12, 3rem) var(--space-8, 2rem);
	margin-bottom: var(--space-8, 2rem);
	box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.10));
	text-align: center;
}

.mp-cm-hero-title {
	color: var(--text-inverse, #fff);
	font-family: var(--font-serif, Georgia, serif);
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 var(--space-2, 0.5rem);
	line-height: 1.2;
}

.mp-cm-hero-subtitle {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1rem;
	margin: 0 0 var(--space-6, 1.5rem);
	line-height: 1.5;
}

.mp-cm-search-box {
	display: flex;
	align-items: center;
	max-width: 680px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.97);
	border-radius: 50px;
	padding: 0.25rem 0.25rem 0.25rem var(--space-4, 1rem);
	transition: box-shadow 0.2s;
}

.mp-cm-search-box:focus-within {
	box-shadow: 0 0 0 3px var(--secondary-alpha, rgba(192, 122, 40, 0.3));
}

.mp-cm-search-input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 0.75rem 0.5rem;
	font-size: 1rem;
	font-family: inherit;
	color: var(--text-primary, #2e2820);
	outline: none;
}

.mp-cm-search-input::placeholder {
	color: var(--text-tertiary, #737373);
}

.mp-cm-search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	/* Reset the theme's global button padding/shadow so the circle keeps its
	   exact 44x44 footprint and sits flush right (otherwise the inherited
	   horizontal padding inflates the layout box and clips the input). */
	padding: 0;
	box-shadow: none;
	border-radius: 50%;
	border: none;
	background: var(--gradient-secondary, linear-gradient(135deg, #b8941f 0%, #8a6e17 100%));
	color: var(--text-inverse, #fff);
	cursor: pointer;
	transition: box-shadow 0.2s;
}

.mp-cm-search-btn:hover {
	box-shadow: 0 4px 12px rgba(192, 122, 40, 0.35);
}

.mp-cm-search-btn:focus-visible {
	outline: 3px solid var(--secondary, #b8941f);
	outline-offset: 2px;
}

.mp-cm-search-btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ===========================
   Filter bar
   =========================== */

.mp-cm-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4, 1rem);
	margin-bottom: var(--space-8, 2rem);
	background: var(--bg-secondary, #fafafa);
	border: 1px solid var(--border-light, #d4d4d4);
	border-radius: var(--radius-md, 8px);
	padding: var(--space-4, 1rem) var(--space-6, 1.5rem);
}

/* Ensures hidden filters are never revealed by display:flex */
.mp-cm-filter[hidden] {
	display: none;
}

.mp-cm-filter {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--space-3, 0.75rem);
}

.mp-cm-filter label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-secondary, #404040);
	white-space: nowrap;
}

.mp-cm-filter select {
	flex: 1;
	padding: 0.5rem 2.25rem 0.5rem 0.75rem;
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--text-primary, #2e2820);
	background-color: var(--bg-primary, #fff);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23404040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.625rem center;
	background-size: 1rem;
	border: 1px solid var(--border-light, #d4d4d4);
	border-radius: var(--radius-sm, 4px);
	box-sizing: border-box;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.mp-cm-filter select:focus {
	border-color: var(--primary, #1a1a2e);
	box-shadow: 0 0 0 3px var(--primary-alpha, rgba(30, 60, 43, 0.1));
}

/* ===========================
   Type-filter pill toggles
   =========================== */

.mp-cm-filter--type {
	gap: var(--space-2, 0.5rem);
}

.mp-cm-filter--type label {
	display: inline-flex;
	align-items: center;
	padding: 0.375rem 0.875rem;
	border-radius: 50px;
	border: 1.5px solid var(--border-light, #d4d4d4);
	background: var(--bg-primary, #fff);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary, #404040);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	user-select: none;
}

.mp-cm-filter--type label::before {
	content: '✓';
	margin-right: 0;
	max-width: 0;
	overflow: hidden;
	font-size: 0.8em;
	font-weight: 700;
	opacity: 0;
	transition: max-width 0.15s, margin-right 0.15s, opacity 0.15s;
}

.mp-cm-filter--type label:has(input:checked)::before {
	max-width: 1em;
	margin-right: 0.35em;
	opacity: 1;
}

.mp-cm-filter--type label:hover {
	border-color: var(--primary, #1e3c2b);
}

.mp-cm-filter--type label:has(input:checked) {
	background: var(--primary, #1e3c2b);
	border-color: var(--primary, #1e3c2b);
	color: var(--text-inverse, #fff);
}

.mp-cm-filter--type label:has(input:focus-visible) {
	outline: 3px solid var(--secondary, #b8941f);
	outline-offset: 2px;
}

.mp-cm-type-check {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ===========================
   Result count
   =========================== */

.mp-cm-result-count {
	margin: 0 0 var(--space-4, 1rem);
	font-size: 0.875rem;
	color: var(--text-tertiary, #737373);
}

.mp-cm-result-count[hidden] {
	display: none;
}

/* ===========================
   Product grid
   =========================== */

.mp-cm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--space-6, 1.5rem);
	margin-bottom: var(--space-8, 2rem);
}

.mp-cm-grid--loading {
	opacity: 0.5;
	pointer-events: none;
}

.mp-cm-grid--loading:empty {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 200px;
	opacity: 1;
}

.mp-cm-grid--loading:empty::after {
	content: '';
	width: 40px;
	height: 40px;
	border: 3px solid var(--border-light, #d4d4d4);
	border-top-color: var(--primary, #1a1a2e);
	border-radius: 50%;
	animation: mp-cm-spin 0.75s linear infinite;
}

@keyframes mp-cm-spin {
	to { transform: rotate(360deg); }
}

/* ===========================
   Product card
   =========================== */

.mp-cm-card {
	display: flex;
	flex-direction: column;
	background: var(--bg-primary, #fff);
	border: 1px solid var(--border-light, #d4d4d4);
	border-radius: var(--radius-md, 8px);
	overflow: hidden;
	box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
	transition: box-shadow 0.2s;
}

.mp-cm-card:hover {
	box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.10));
	border-color: var(--brand-sage-light, #7fa068);
}

.mp-cm-card__img-link {
	display: block;
	overflow: hidden;
}

.mp-cm-card__img-link:focus-visible {
	outline: 3px solid var(--secondary, #b8941f);
	outline-offset: 2px;
}

.mp-cm-card__img-link:hover .mp-cm-card__image {
	transform: scale(1.03);
}

.mp-cm-card__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	background: var(--bg-tertiary, #f5f5f5);
	transition: transform 0.2s;
}

.mp-cm-card__image--placeholder {
	background: linear-gradient(135deg, var(--bg-tertiary, #f5f5f5) 0%, var(--bg-secondary, #fafafa) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* "No image" camera glyph: medium (neither icon-small nor full-bleed) and a muted
   palette grey so it reads as a quiet "missing image" hint, not decoration. The
   SVG carries the same size/stroke as attributes, so it holds up if this rule is
   ever missing; both resolve to --gray-400. */
.mp-cm-card__placeholder-icon {
	width: 44px;
	height: 44px;
	stroke: var(--gray-400, #b8ad9e);
}

/* Brand-logo fallback when a product (or brand) has no primary image: contain the
   logo on a white field instead of cropping it like a photo. */
.mp-cm-card__image--logo {
	object-fit: contain;
	padding: var(--space-6, 1.5rem);
	background: #fff;
}

.mp-cm-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-2, 0.5rem);
	padding: var(--space-5, 1.25rem);
	flex: 1;
}

.mp-cm-card__brand {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--secondary, #b8941f);
}

.mp-cm-card__name {
	margin: 0;
	font-family: var(--font-serif, Georgia, serif);
	font-weight: 700;
	line-height: 1.3;
	color: var(--text-primary, #2e2820);
}

.mp-cm-card__name-link {
	color: inherit;
	text-decoration: none;
}

.mp-cm-card__name-link:hover {
	text-decoration: underline;
}

.mp-cm-card__name-link:focus-visible {
	outline: 3px solid var(--secondary, #b8941f);
	outline-offset: 2px;
	border-radius: 2px;
}

.mp-cm-card__category {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--text-secondary, #404040);
}

/* ---- Origin country — prominent provenance line ("from {country}") ---- */

.mp-cm-card__origin {
	margin: var(--space-2, 0.5rem) 0 0;
	color: var(--brand-forest, #1e3c2b);
}

/* ---- Labelling-language mismatch notice ---- */

.mp-cm-card__labelling {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: var(--space-3, 0.75rem) 0 0;
	padding: 0.5rem 0.625rem;
	background: var(--surface-muted, #f5f1e8);
	border-left: 3px solid var(--secondary, #b8941f);
	border-radius: 2px;
	font-size: 0.9375rem;
	color: var(--text-primary, #1a1a1a);
	line-height: 1.35;
}

.mp-cm-card__labelling-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--secondary, #b8941f);
}

/* ---- Grouped sections (Terroir / Cultivation / Processing) ---- */

.mp-cm-card__group {
	margin: var(--space-3, 0.75rem) 0 0;
	padding: var(--space-3, 0.75rem) 0 0;
	border-top: 1px solid var(--border-light, #e5e0d8);
}

.mp-cm-card__group-title {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--secondary, #b8941f);
}

.mp-cm-card__group-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.mp-cm-card__group-icon svg {
	width: 100%;
	height: 100%;
	stroke-width: 1.75;
}

/* Per-group accent color (matches single product chapter cards). */
.mp-cm-card__group--terroir      .mp-cm-card__group-title { color: var(--brand-sage-dark, #3d5630); }
.mp-cm-card__group--cultivation  .mp-cm-card__group-title { color: var(--brand-forest, #1e3c2b); }
.mp-cm-card__group--processing   .mp-cm-card__group-title { color: var(--brand-amber-dark, #925c1e); }

/* Stacked rows: small uppercase label above its value. Avoids the two-column
   wrap collisions when a label and value are both long. */
.mp-cm-card__group-list {
	display: block;
	margin: 0;
}

.mp-cm-card__group-list dt {
	margin: 0 0 0.1rem;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--text-tertiary, #7a6f5e);
}

.mp-cm-card__group-list dd {
	margin: 0;
	color: var(--text-primary, #2e2820);
	line-height: 1.45;
}

.mp-cm-card__group-list dd + dt {
	margin-top: 0.55rem;
}

/* Single-field group: the section title already supplies the context, so the
   per-row label is dropped and only the value is shown. */
.mp-cm-card__group-single {
	margin: 0;
	color: var(--text-primary, #2e2820);
	line-height: 1.45;
}

/* Card actions — stacked left-aligned (auto-width), explore + where to buy. */
.mp-cm-card__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2, 0.5rem);
	margin-top: auto;
	padding-top: var(--space-4, 1rem);
}

.mp-cm-card__actions .marketplace-btn {
	flex: 0 0 auto;
	justify-content: center;
}

/* ===========================
   Suspended-brand flag badge
   =========================== */

.mp-cm-card__admin-badge {
	margin: calc(-1 * var(--space-4, 1rem)) calc(-1 * var(--space-4, 1rem)) var(--space-2, 0.5rem);
	padding: 0.2rem var(--space-4, 1rem);
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: rgba(184, 148, 31, 0.1);
	border-bottom: 1px solid rgba(184, 148, 31, 0.25);
	color: var(--secondary-dark, #8a6e17);
}

/* ===========================
   Owner-only: status note + edit link
   Shown to a member of the company that owns the product, on their own
   non-public products. A subtle top strip, not a loud admin badge.
   =========================== */

.mp-cm-card__owner-status {
	margin: calc(-1 * var(--space-5, 1.25rem)) calc(-1 * var(--space-5, 1.25rem)) var(--space-2, 0.5rem);
	padding: 0.4rem var(--space-5, 1.25rem);
	font-size: 0.75rem;
	font-weight: 600;
	background: rgba(184, 148, 31, 0.1);
	border-bottom: 1px solid rgba(184, 148, 31, 0.25);
	color: var(--secondary-dark, #8a6e17);
}

/* A plain house link (underlined per the global `a` convention, single line in
   both states), just left-aligned in the card's flex column. No text-decoration /
   border / font-size overrides — those produced no underline at rest and a double
   underline on hover. */
.mp-cm-card__edit-link {
	align-self: flex-start;
	margin-top: var(--space-2, 0.5rem);
}

/* ===========================
   Brand (producer) card variant

   The canonical product tile plus one brand-specific flourish: a solid accent bar
   in the brand colour and a matching hover frame, driven by the inline --brand-c1
   custom property (theme-token fallback). The logo fills the shared media slot,
   contained (not cropped) on plain white, so every brand tile keeps the same
   height and rhythm as a product tile.
   =========================== */

.mp-cm-card--brand:hover {
	border-color: var(--brand-c1, var(--brand-sage-light, #7fa068));
}

.mp-cm-card--brand .mp-cm-card__accent {
	display: block;
	height: 4px;
	background: var(--brand-c1, var(--brand-sage, #8a9a7b));
}

.mp-cm-card--brand .mp-cm-card__image--logo {
	object-fit: contain;
	padding: var(--space-6, 1.5rem);
	background: #fff;
}

.mp-cm-card--brand .mp-cm-card__image--logo.mp-cm-card__image--placeholder {
	padding: 0;
}

.mp-cm-card--brand .mp-cm-card__tagline {
	margin: 0;
	font-size: 0.9375rem;
	font-style: italic;
	line-height: 1.5;
	color: var(--text-secondary, #5b6660);
}

/* Product count: its own meta line below the origin (keeps a long, wrapping
   region from tangling with the count on a single row). */
.mp-cm-card--brand .mp-cm-card__brand-count {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-secondary, #5b6660);
}

/* ---------------------------------------------------------------------------
   Immersive featured variant — catalog spotlight only.

   A full-bleed brand hero banner with the logo as an overlapping disc chip, then
   a centred body. The hero falls back to a brand-colour wash when the brand has
   no hero image, so the spotlight row never breaks. The chip overlaps the
   hero/body seam, so this variant opts out of the shared card's overflow clip.
   --------------------------------------------------------------------------- */
.mp-cm-card--featured {
	overflow: visible;
	text-align: center;
}

.mp-cm-card--featured .mp-cm-card__hero-link {
	display: block;
	border-top-left-radius: var(--radius-md, 8px);
	border-top-right-radius: var(--radius-md, 8px);
	overflow: hidden;
}

.mp-cm-card--featured .mp-cm-card__hero {
	position: relative;
	aspect-ratio: 16 / 9;
	/* Brand-colour wash: the no-hero fallback, and the tint beneath the image. */
	background: linear-gradient(135deg, var(--brand-c1, var(--brand-sage, #8a9a7b)), var(--brand-c2, var(--brand-c1, var(--brand-forest, #1e3c2b))));
}

.mp-cm-card--featured .mp-cm-card__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.mp-cm-card--featured .mp-cm-card__hero-img--placeholder {
	/* Gradient lives on .mp-cm-card__hero; the block itself stays transparent. */
	background: transparent;
}

.mp-cm-card--featured .mp-cm-card__hero-link:hover .mp-cm-card__hero-img {
	transform: scale(1.04);
}

.mp-cm-card--featured .mp-cm-card__hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.22));
	pointer-events: none;
}

.mp-cm-card--featured .mp-cm-card__body {
	position: relative;
	align-items: center;
	/* Clear the disc chip that overlaps down from the hero/body seam. */
	padding-top: 3.25rem;
}

.mp-cm-card--featured .mp-cm-card__logo-chip {
	position: absolute;
	top: 0;
	left: 50%;
	width: 84px;
	height: 84px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--bg-primary, #fff);
	box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.12));
	overflow: hidden;
	z-index: 1;
}

/* The chip reuses render_logo's shared image slot — reshape it to fill the disc. */
.mp-cm-card--featured .mp-cm-card__logo-chip .mp-cm-card__image {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	padding: 0.55rem;
	object-fit: contain;
	background: #fff;
}

.mp-cm-card--featured .mp-cm-card__brand {
	margin-top: var(--space-1, 0.25rem);
}

/* Centre the provenance line (inline-flex) and the CTA (left-aligned on the base card). */
.mp-cm-card--featured .mp-cm-card__origin {
	justify-content: center;
}

.mp-cm-card--featured .mp-cm-card__actions {
	align-items: center;
}

.mp-cm-card--featured .mp-cm-card__actions .marketplace-btn {
	width: 100%;
}

/* "See all producers" — a standard theme button (.marketplace-btn--outline on the
   link) centred under the spotlight row. Symmetric top/bottom margin so it never
   glues to the spotlight grid above or the products heading below. */
.mp-cm-featured__more {
	margin: var(--space-6, 1.5rem) 0;
	text-align: center;
}

/* ===========================
   Sales-point card variant

   The compact (no-hero search) card fills the body. On the Stores landing the
   card renders immersive, reusing the brand .mp-cm-card--featured shell (hero +
   logo chip + centred body), so the SP-specific bits below scope to the compact
   case and a couple of overrides re-centre the pill/badge in the immersive body.
   The "open now" pill colours live in the theme (single-sales-point.css).
   =========================== */

.mp-cm-card--sales-point:not(.mp-cm-card--featured) .mp-cm-card__body {
	padding-top: var(--space-5, 1.25rem);
	align-items: flex-start;
}

/* Immersive SP card: the open-now pill and "Your store" badge default to
   flex-start; centre them under the logo chip to match the centred featured body. */
.mp-cm-card--featured .mp-sp__open,
.mp-cm-card--featured .mp-cm-card__yours {
	align-self: center;
}

.mp-cm-card__sp-brands {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-secondary, #5b6660);
}

/* "Your store" — read-only badge shown only to the logged-in owner on their own
   outlets. Mirrors the single-product "Direct from the producer" pill (subtle
   sage-dark outline, no fill) so the store cards stay visually coherent. */
.mp-cm-card__yours {
	align-self: flex-start;
	padding: 0.125rem 0.5rem;
	border: 1px solid var(--brand-sage-dark, #5b6660);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--brand-sage-dark, #5b6660);
	background: transparent;
}

/* ===========================
   Pagination / Load more
   =========================== */

.mp-cm-pagination {
	display: flex;
	justify-content: center;
	margin-bottom: var(--space-8, 2rem);
}

/* Styling comes from the theme's standard button (.marketplace-btn--outline on the
   element); only the hidden-state toggle is owned here, since .marketplace-btn sets
   display and would otherwise override the [hidden] attribute. */
.mp-cm-load-more[hidden] {
	display: none;
}

/* ===========================
   Status / empty-state
   =========================== */

.mp-cm-status {
	text-align: center;
	color: var(--text-secondary, #404040);
	font-size: 1rem;
}

/* No-JS fallback: the product grid is JS-rendered, so without JS it stays empty.
   This notice renders in its place to explain why nothing shows. */
.mp-cm-noscript {
	text-align: center;
	color: var(--text-secondary, #404040);
	font-size: 1rem;
	padding: var(--space-8, 2rem) 0;
	margin: 0;
}

/* Plain-text status (e.g. no-country fallback) gets default padding */
.mp-cm-status:not(:has(.mp-cm-empty-state)) {
	padding: var(--space-8, 2rem) 0;
}

.mp-cm-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--space-12, 3rem) var(--space-8, 2rem);
	gap: var(--space-3, 0.75rem);
}

.mp-cm-empty-state__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--bg-secondary, #fafafa);
	border: 1px solid var(--border-light, #d4d4d4);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-tertiary, #737373);
	margin-bottom: var(--space-1, 0.25rem);
	flex-shrink: 0;
}

.mp-cm-empty-state__icon svg {
	width: 24px;
	height: 24px;
}

.mp-cm-empty-state__headline {
	margin: 0;
	font-family: var(--font-serif, Georgia, serif);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary, #2e2820);
}

.mp-cm-empty-state__hint {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--text-secondary, #404040);
	max-width: 400px;
	line-height: 1.55;
}

.mp-cm-empty-state__newsletter-cta,
.mp-cm-empty-state__newsletter-cta:visited {
	color: var(--text-inverse, #fff);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 640px) {
	.mp-cm-search-hero {
		padding: var(--space-8, 2rem) var(--space-4, 1rem);
	}

	.mp-cm-hero-title {
		font-size: 1.375rem;
	}

	.mp-cm-filter-bar {
		flex-direction: column;
		align-items: stretch;
		padding: var(--space-4, 1rem);
	}

	.mp-cm-filter {
		width: 100%;
	}

	/* One card per row on phones — the card now carries image + 3 grouped */
	/* sections + 2 CTAs, which is far too rich for two-up on a small screen.*/
	.mp-cm-grid {
		grid-template-columns: 1fr;
		gap: var(--space-4, 1rem);
	}

	.mp-cm-card__body {
		padding: var(--space-4, 1rem);
		gap: var(--space-2, 0.5rem);
	}

	/* Stack the action buttons so each gets full tap width. */
	.mp-cm-card__actions {
		flex-direction: column;
	}

	.mp-cm-card__actions .marketplace-btn {
		flex: 0 0 auto;
		width: 100%;
	}

}

/* -------------------------------------------------------------------------
   Featured-producer spotlight — admin-curated brands above the product grid.
   Reuses .mp-cm-grid for layout; this only frames the section + heading.
   ------------------------------------------------------------------------- */
.mp-cm-featured {
	margin-bottom: var(--space-8, 2rem);
	padding-bottom: var(--space-8, 2rem);
	/* Hairline divider in the shared border token — a quiet rule that marks the
	   handoff to the main product grid without competing with the cards. */
	border-bottom: 1px solid var(--border-light, #e5e0d8);
}

.mp-cm-featured__title,
.mp-cm-products-title {
	font-family: var(--font-serif, Georgia, serif);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-primary, #2e2820);
	margin: 0 0 var(--space-4, 1rem);
	text-align: center;
}

/* Spotlight runs a fixed three-up that always spans the full row, so the three
   curated brands read as a deliberate trio rather than the auto-fill product
   grid leaving a ragged trailing gap. Collapses to one column on mobile. */
.mp-cm-featured__grid {
	grid-template-columns: repeat(3, 1fr);
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.mp-cm-featured__grid {
		grid-template-columns: 1fr;
	}
}
