/**
 * Most Wanted Brands — Frontend styles
 *
 * Aesthetic: Clean Tech Retail (bstore.be inspired)
 * Fonts: Outfit (headings) + Figtree (body)
 * Palette: white bg · charcoal text · orange accent
 *
 * All rules scoped under .mwb-tmpl to avoid theme conflicts.
 */

/* ---------------------------------------------------------------
   Custom properties
--------------------------------------------------------------- */

.mwb-tmpl {
	--mwb-bg:            #ffffff;
	--mwb-bg-alt:        #f5f5f7;
	--mwb-bg-card:       #ffffff;
	--mwb-bg-elevated:   #fafafa;
	--mwb-border:        #e5e5ea;
	--mwb-border-strong: #aeaeb2;
	--mwb-text:          #1d1d1f;
	--mwb-text-muted:    #6e6e73;
	--mwb-text-dim:      #aeaeb2;
	--mwb-accent:        #ff5000;
	--mwb-accent-light:  #ff7540;
	--mwb-accent-dim:    rgba(255, 80, 0, 0.08);
	--mwb-radius:        8px;
	--mwb-radius-lg:     16px;
	--mwb-transition:    0.18s ease;
	--mwb-font-display:  'Outfit', system-ui, sans-serif;
	--mwb-font-body:     'Figtree', system-ui, sans-serif;
	--mwb-shadow-sm:     0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
	--mwb-shadow-md:     0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
	--mwb-shadow-lg:     0 8px 32px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);

	background-color: var(--mwb-bg);
	color: var(--mwb-text);
	font-family: var(--mwb-font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	margin: 0;
	padding: 0;
}

/* ---------------------------------------------------------------
   Layout utilities
--------------------------------------------------------------- */

.mwb-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1rem, 5vw, 2.5rem);
	padding-right: clamp(1rem, 5vw, 2.5rem);
}

/* ---------------------------------------------------------------
   Section header (label + title + optional link)
--------------------------------------------------------------- */

.mwb-section-header {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--mwb-bg-alt);
}

.mwb-section-header__label {
	font-family: var(--mwb-font-display);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--mwb-accent);
	flex-shrink: 0;
}

.mwb-section-header__title {
	font-family: var(--mwb-font-display);
	font-size: clamp(1.3rem, 2.8vw, 1.9rem);
	font-weight: 700;
	color: var(--mwb-text);
	margin: 0;
	flex: 1;
}

.mwb-section-header__link {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--mwb-accent);
	text-decoration: none;
	margin-left: auto;
	white-space: nowrap;
	transition: color var(--mwb-transition);
}

.mwb-section-header__link:hover {
	color: var(--mwb-accent-light);
}

.mwb-section-title {
	font-family: var(--mwb-font-display);
	font-size: clamp(1.2rem, 2.4vw, 1.7rem);
	font-weight: 700;
	color: var(--mwb-text);
	margin-bottom: 1.25rem;
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */

.mwb-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.7rem 1.4rem;
	border-radius: var(--mwb-radius);
	font-family: var(--mwb-font-body);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all var(--mwb-transition);
	line-height: 1;
}

.mwb-btn--gold {
	background: var(--mwb-accent);
	color: #ffffff;
}

.mwb-btn--gold:hover {
	background: var(--mwb-accent-light);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(255, 80, 0, 0.3);
}

.mwb-btn--outline {
	background: transparent;
	color: var(--mwb-text);
	border: 1.5px solid var(--mwb-border-strong);
}

.mwb-btn--outline:hover {
	border-color: var(--mwb-text);
	background: var(--mwb-text);
	color: var(--mwb-bg);
	transform: translateY(-1px);
}

.mwb-btn__arrow {
	transition: transform var(--mwb-transition);
}

.mwb-btn:hover .mwb-btn__arrow {
	transform: translate(2px, -2px);
}

/* ---------------------------------------------------------------
   Pills (category badges)
--------------------------------------------------------------- */

.mwb-pill {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	background: var(--mwb-accent-dim);
	color: var(--mwb-accent);
	border: 1px solid rgba(255, 80, 0, 0.15);
	border-radius: 100px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--mwb-transition), color var(--mwb-transition);
}

a.mwb-pill:hover {
	background: rgba(255, 80, 0, 0.14);
	color: var(--mwb-accent-light);
}

/* ---------------------------------------------------------------
   Brand cards (shared by homepage + archive)
--------------------------------------------------------------- */

.mwb-brand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.mwb-brand-card {
	background: var(--mwb-bg-card);
	border: 1px solid var(--mwb-border);
	border-radius: var(--mwb-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color var(--mwb-transition), transform var(--mwb-transition), box-shadow var(--mwb-transition);
	box-shadow: var(--mwb-shadow-sm);
}

.mwb-brand-card:hover {
	border-color: rgba(255, 80, 0, 0.25);
	transform: translateY(-4px);
	box-shadow: var(--mwb-shadow-lg);
}

.mwb-brand-card.is-hidden {
	display: none;
}

.mwb-brand-card__link {
	display: block;
}

.mwb-brand-card__logo-wrap {
	height: 160px;
	background: var(--mwb-bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid var(--mwb-border);
	position: relative;
}

.mwb-brand-card__logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 1.5rem;
	transition: transform 0.3s ease;
}

/* Product image: covers the card thumbnail area, no padding */
.mwb-brand-card__product-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	padding: 0;
}

.mwb-brand-card:hover .mwb-brand-card__logo {
	transform: scale(1.04);
}

.mwb-brand-card__logo-placeholder {
	font-family: var(--mwb-font-display);
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--mwb-text-dim);
	letter-spacing: -0.03em;
}

.mwb-brand-card__body {
	padding: 1.1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.45rem;
}

.mwb-brand-card__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.mwb-brand-card__title {
	font-family: var(--mwb-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.mwb-brand-card__title a {
	color: var(--mwb-text);
	text-decoration: none;
	transition: color var(--mwb-transition);
}

.mwb-brand-card__title a:hover {
	color: var(--mwb-accent);
}

.mwb-brand-card__excerpt {
	font-size: 0.84rem;
	color: var(--mwb-text-muted);
	margin: 0;
	line-height: 1.55;
	flex: 1;
}

.mwb-brand-card__footer {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid var(--mwb-border);
}

.mwb-brand-card__website,
.mwb-brand-card__comments {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.78rem;
	color: var(--mwb-text-dim);
	text-decoration: none;
	transition: color var(--mwb-transition);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 160px;
}

.mwb-brand-card__website:hover,
.mwb-brand-card__comments:hover {
	color: var(--mwb-accent);
}

/* ---------------------------------------------------------------
   Homepage — Hero
--------------------------------------------------------------- */

.mwb-hero {
	position: relative;
	min-height: 72vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: linear-gradient(135deg, #ffffff 0%, #fff8f5 50%, #fff3ee 100%);
}

/* Decorative accent bar */
.mwb-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--mwb-accent);
}

/* Subtle geometric background element */
.mwb-hero::after {
	content: '';
	position: absolute;
	right: -8%;
	top: 50%;
	transform: translateY(-50%);
	width: 50vw;
	height: 50vw;
	max-width: 700px;
	max-height: 700px;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(255, 80, 0, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.mwb-hero__grain {
	display: none;
}

.mwb-hero__inner {
	position: relative;
	padding-top: clamp(4rem, 10vh, 7rem);
	padding-bottom: clamp(4rem, 10vh, 7rem);
	max-width: 680px;
}

.mwb-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--mwb-font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mwb-accent);
	margin: 0 0 1.25rem;
	animation: mwb-fade-up 0.55s ease both;
}

.mwb-hero__eyebrow::before {
	content: '';
	display: block;
	width: 24px;
	height: 2px;
	background: var(--mwb-accent);
	flex-shrink: 0;
}

.mwb-hero__title {
	font-family: var(--mwb-font-display);
	font-size: clamp(2.6rem, 7vw, 5.5rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--mwb-text);
	margin: 0 0 1.5rem;
	animation: mwb-fade-up 0.55s 0.08s ease both;
}

.mwb-hero__title em {
	font-style: normal;
	color: var(--mwb-accent);
}

.mwb-hero__tagline {
	font-size: clamp(1rem, 2vw, 1.15rem);
	color: var(--mwb-text-muted);
	margin: 0 0 2.5rem;
	max-width: 480px;
	line-height: 1.7;
	font-weight: 400;
	animation: mwb-fade-up 0.55s 0.16s ease both;
}

.mwb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	animation: mwb-fade-up 0.55s 0.24s ease both;
}

/* Scroll hint */
.mwb-hero__scroll-hint {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.mwb-hero__scroll-hint span {
	display: block;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid var(--mwb-text-dim);
	border-bottom: 1.5px solid var(--mwb-text-dim);
	transform: rotate(45deg);
	animation: mwb-scroll-hint 1.4s infinite ease;
}

.mwb-hero__scroll-hint span:nth-child(2) { animation-delay: 0.15s; }
.mwb-hero__scroll-hint span:nth-child(3) { animation-delay: 0.3s; }

@keyframes mwb-scroll-hint {
	0%   { opacity: 0; transform: rotate(45deg) translate(-3px, -3px); }
	50%  { opacity: 0.5; }
	100% { opacity: 0; transform: rotate(45deg) translate(3px, 3px); }
}

@keyframes mwb-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------
   Homepage — Featured brands
--------------------------------------------------------------- */

/* ---------------------------------------------------------------
   Homepage — Latest Guides
--------------------------------------------------------------- */

.mwb-guides {
	padding:       clamp(3rem, 7vw, 5.5rem) 0;
	background:    var(--mwb-bg-alt);
	border-top:    1px solid var(--mwb-border);
	border-bottom: 1px solid var(--mwb-border);
}

.mwb-guide-grid {
	display:               grid;
	grid-template-columns: repeat(3, 1fr);
	gap:                   20px;
	margin-top:            32px;
}

.mwb-guide-card {
	background:    var(--mwb-bg-card);
	border:        1px solid var(--mwb-border);
	border-radius: var(--mwb-radius-lg);
	overflow:      hidden;
	transition:    transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mwb-guide-card:hover {
	transform:    translateY(-3px);
	box-shadow:   0 8px 28px rgba(0,0,0,.08);
	border-color: var(--mwb-accent);
}

.mwb-guide-card__link {
	display:         flex;
	flex-direction:  column;
	height:          100%;
	text-decoration: none;
	color:           inherit;
}

.mwb-guide-card__img {
	width:            100%;
	aspect-ratio:     16/9;
	overflow:         hidden;
	background-color: var(--mwb-bg-alt);
	flex-shrink:      0;
}

.mwb-guide-card__img img {
	width:      100%;
	height:     100%;
	object-fit: cover;
	display:    block;
	transition: transform .35s ease;
}

.mwb-guide-card:hover .mwb-guide-card__img img {
	transform: scale(1.04);
}

.mwb-guide-card__img--empty {
	display:         flex;
	align-items:     center;
	justify-content: center;
}

.mwb-guide-card__img--empty svg {
	width:  44px;
	height: 44px;
	color:  var(--mwb-border-strong);
}

.mwb-guide-card__body {
	display:        flex;
	flex-direction: column;
	gap:            7px;
	padding:        18px 20px 20px;
	flex:           1;
}

.mwb-guide-card__cat {
	font-size:      .68rem;
	font-weight:    700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color:          var(--mwb-accent);
}

.mwb-guide-card__title {
	font-size:   .95rem;
	font-weight: 700;
	line-height: 1.35;
	color:       var(--mwb-text);
	margin:      0;
}

.mwb-guide-card__excerpt {
	font-size:   .82rem;
	line-height: 1.55;
	color:       var(--mwb-text-muted);
	margin:      0;
	flex:        1;
}

.mwb-guide-card__cta {
	font-size:   .8rem;
	font-weight: 600;
	color:       var(--mwb-accent);
	margin-top:  4px;
}

@media (max-width: 900px) {
	.mwb-guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.mwb-guide-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Homepage — Featured Brands
--------------------------------------------------------------- */

.mwb-featured {
	padding: clamp(3rem, 7vw, 5.5rem) 0;
	background: var(--mwb-bg);
}

.mwb-brand-grid--featured {
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

/* ---------------------------------------------------------------
   Homepage — News ticker
--------------------------------------------------------------- */

.mwb-ticker {
	display: flex;
	align-items: stretch;
	background: var(--mwb-text);
	overflow: hidden;
}

.mwb-ticker__label {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding: 0 1.25rem;
	background: var(--mwb-accent);
}

.mwb-ticker__label span {
	font-family: var(--mwb-font-display);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #ffffff;
}

.mwb-ticker__track-wrap {
	overflow: hidden;
	flex: 1;
}

.mwb-ticker__track {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 0.7rem 0;
	white-space: nowrap;
	animation: mwb-ticker-scroll 60s linear infinite;
	will-change: transform;
}

.mwb-ticker__track:hover {
	animation-play-state: paused;
}

@keyframes mwb-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.mwb-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0 1.5rem;
}

.mwb-ticker__source {
	font-family: var(--mwb-font-display);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mwb-accent);
}

.mwb-ticker__headline {
	font-size: 0.82rem;
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	transition: color var(--mwb-transition);
}

.mwb-ticker__headline:hover {
	color: #ffffff;
}

.mwb-ticker__sep {
	color: rgba(255,255,255,0.2);
	font-size: 0.85rem;
	margin-left: 1rem;
}

/* ---------------------------------------------------------------
   Archive — Header  (title zone only, no interactive elements)
--------------------------------------------------------------- */

.mwb-archive-header {
	padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
	background: var(--mwb-bg-alt);
	border-bottom: 1px solid var(--mwb-border);
}

.mwb-archive-header__inner {
	display: flex;
	flex-direction: column;
}

.mwb-archive-header__eyebrow {
	font-family: var(--mwb-font-display);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mwb-accent);
	margin: 0 0 0.6rem;
}

.mwb-archive-header__title {
	font-family: var(--mwb-font-display);
	font-size: clamp(2.2rem, 5.5vw, 3.8rem);
	font-weight: 900;
	letter-spacing: -0.025em;
	color: var(--mwb-text);
	margin: 0 0 0.5rem;
	line-height: 1.05;
}

.mwb-archive-header__desc {
	color: var(--mwb-text-muted);
	max-width: 560px;
	margin: 0 0 0.5rem;
}

.mwb-archive-header__count {
	font-size: 0.8rem;
	color: var(--mwb-text-dim);
	font-weight: 500;
	margin: 0;
}

#mwb-search-status {
	color: var(--mwb-text-muted);
}

/* ---------------------------------------------------------------
   Archive — Toolbar
--------------------------------------------------------------- */

.mwb-toolbar {
	padding: 1.5rem 0 0;
}

/* ═══════════════════════════════════════════════════════════════
   Unified search + sort bar — ONE container, ONE border ring
   ═══════════════════════════════════════════════════════════════ */

.mwb-toolbar__top {
	display: flex;
	align-items: center;
	max-width: 760px;
	height: 48px;
	background: #fff;
	border: 1.5px solid var(--mwb-border);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 1rem;
	transition:
		border-color 0.2s ease,
		box-shadow   0.2s ease;
}

.mwb-toolbar__top:hover {
	border-color: #c7c7cc;
}

.mwb-toolbar__top:focus-within {
	border-color: var(--mwb-accent);
	box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.15);
}

/* ── Search section ── */

.mwb-toolbar__search {
	flex: 1;
	min-width: 0;
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	background: transparent;
	border: none;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
	box-sizing: content-box;
	transition: none;
}

/* Suppress individual focus ring — the parent handles it */
.mwb-toolbar__search:hover,
.mwb-toolbar__search:focus-within {
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

/* Loading shimmer */
.mwb-toolbar__search.is-loading::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--mwb-accent) 40%,
		var(--mwb-accent-light) 60%,
		transparent 100%
	);
	background-size: 300% 100%;
	animation: mwb-shimmer 1s ease-in-out infinite;
	z-index: 1;
}

@keyframes mwb-shimmer {
	0%   { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

/* Search icon — turns orange when the bar has focus */
.mwb-toolbar__search-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding: 0 0.6rem 0 1rem;
	color: var(--mwb-text-dim);
	pointer-events: none;
	transition: color 0.2s ease;
}

.mwb-toolbar__top:focus-within .mwb-toolbar__search-icon {
	color: var(--mwb-accent);
}

/* Input */
.mwb-toolbar__search-input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: none;
	outline: none;
	background: transparent;
	padding: 0 0.5rem;
	font-family: var(--mwb-font-body);
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--mwb-text);
	letter-spacing: 0.01em;
}

.mwb-toolbar__search-input::placeholder {
	color: var(--mwb-text-dim);
}

.mwb-toolbar__search-input::-webkit-search-cancel-button {
	display: none;
}

/* Clear (×) button — appears when text present, no hard divider */
.mwb-toolbar__search-clear {
	flex-shrink: 0;
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 100%;
	border: none;
	background: none;
	cursor: pointer;
	color: var(--mwb-text-dim);
	transition: color 0.15s ease;
}

.mwb-toolbar__search-clear:hover {
	color: var(--mwb-text);
}

.mwb-toolbar__search-clear.is-visible {
	display: flex;
}

/* ── Sort section — right side with a 1.5px divider ── */

.mwb-sort-wrap {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	height: 100%;
	background: transparent;
	border: none;
	border-left: 1.5px solid var(--mwb-border);
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
	transition: background-color 0.18s ease;
}

.mwb-sort-wrap:hover {
	background: var(--mwb-bg-alt);
}

.mwb-sort-wrap:focus-within {
	background: transparent;
	box-shadow: none;
}

.mwb-sort-wrap__icon {
	flex-shrink: 0;
	pointer-events: none;
	color: var(--mwb-text-dim);
	padding: 0 0.25rem 0 0.75rem;
	display: flex;
	align-items: center;
}

.mwb-sort-select {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	outline: none;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aeaeb2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
	background-size: 10px;
	height: 100%;
	padding: 0 2.25rem 0 0.2rem;
	font-family: var(--mwb-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--mwb-text-muted);
	cursor: pointer;
	min-width: 115px;
	letter-spacing: 0.01em;
}

.mwb-sort-wrap:hover .mwb-sort-select,
.mwb-sort-wrap:focus-within .mwb-sort-select {
	color: var(--mwb-text);
}

/* ── Row 2: category filter chips ── */

.mwb-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
	padding: 0 0 1.25rem;
	border-bottom: 1px solid var(--mwb-border);
}

/* Filter pills: filled background system (vs. outline) — more premium */
.mwb-filter-bar__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.33rem 0.8rem;
	background: var(--mwb-bg-alt);
	color: var(--mwb-text-muted);
	border: 1.5px solid transparent;
	border-radius: 100px;
	font-family: var(--mwb-font-body);
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none !important;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	white-space: nowrap;
	transition:
		background-color 0.15s ease,
		color            0.15s ease,
		transform        0.15s ease,
		box-shadow       0.15s ease;
}

.mwb-filter-bar__btn:hover,
.mwb-filter-bar__btn:focus {
	background: #e5e5ea;
	color: var(--mwb-text);
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	outline: none;
	text-decoration: none;
}

/* Active chip: solid orange, no border needed */
.mwb-filter-bar__btn.is-active {
	background: var(--mwb-accent);
	border-color: transparent;
	color: #ffffff;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(255, 80, 0, 0.28);
}

.mwb-filter-bar__btn.is-active:hover {
	background: var(--mwb-accent-light);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(255, 80, 0, 0.35);
}

/* Count badge — semi-transparent overlay works across all states */
.mwb-filter-bar__count {
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--mwb-text-dim);
	background: rgba(0, 0, 0, 0.06);
	border-radius: 100px;
	padding: 0.1rem 0.38rem;
	line-height: 1.4;
	transition:
		background 0.15s ease,
		color      0.15s ease;
}

.mwb-filter-bar__btn:hover .mwb-filter-bar__count {
	background: rgba(0, 0, 0, 0.09);
	color: var(--mwb-text-muted);
}

.mwb-filter-bar__btn.is-active .mwb-filter-bar__count {
	background: rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.88);
}

/* ---------------------------------------------------------------
   Archive — Grid + pagination
--------------------------------------------------------------- */

/* Grid container: top padding so it doesn't kiss the filter row border */
.mwb-container > .mwb-brand-grid {
	padding-top: 1.75rem;
	padding-bottom: clamp(3rem, 6vw, 5rem);
}


.mwb-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	padding: 2rem 0 clamp(3rem, 6vw, 5rem);
}

.mwb-pagination a,
.mwb-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1.5px solid var(--mwb-border);
	border-radius: var(--mwb-radius);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--mwb-text-muted);
	transition: all var(--mwb-transition);
}

.mwb-pagination a:hover {
	border-color: var(--mwb-accent);
	color: var(--mwb-accent);
}

.mwb-pagination .current {
	background: var(--mwb-accent);
	border-color: var(--mwb-accent);
	color: #ffffff;
}

.mwb-no-results {
	text-align: center;
	padding: 4rem 0;
	color: var(--mwb-text-muted);
}

/* ---------------------------------------------------------------
   Single brand — Breadcrumb
--------------------------------------------------------------- */

.mwb-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	padding-top: 1.5rem;
	padding-bottom: 0.5rem;
	font-size: 0.8rem;
	color: var(--mwb-text-dim);
}

.mwb-breadcrumb a {
	color: var(--mwb-text-muted);
	text-decoration: none;
	transition: color var(--mwb-transition);
}

.mwb-breadcrumb a:hover {
	color: var(--mwb-accent);
}

.mwb-breadcrumb [aria-current="page"] {
	color: var(--mwb-text);
	font-weight: 500;
}

/* ---------------------------------------------------------------
   Single brand — Hero
--------------------------------------------------------------- */

.mwb-brand-hero {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding-top: clamp(2rem, 5vw, 3.5rem);
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
	border-bottom: 1px solid var(--mwb-border);
	align-items: flex-start;
}

.mwb-brand-hero__logo-col {
	flex-shrink: 0;
	width: 160px;
	height: 160px;
	overflow: hidden;
	border-radius: var(--mwb-radius-lg);
}

.mwb-brand-hero__logo {
	width: 160px;
	height: 160px;
	object-fit: contain;
	background: var(--mwb-bg-alt);
	border: 1.5px solid var(--mwb-border);
	border-radius: var(--mwb-radius-lg);
	padding: 1rem;
}

/* Top-product hero image — fills the logo column, no padding, covers area */
.mwb-brand-hero__top-product-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	overflow: hidden;
	border-radius: var(--mwb-radius-lg);
}

.mwb-brand-hero__top-product-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	padding: 0;
	border-radius: var(--mwb-radius-lg);
	transition: transform var(--mwb-transition), box-shadow var(--mwb-transition);
}

.mwb-brand-hero__top-product-link:hover .mwb-brand-hero__top-product-img {
	transform: scale(1.04);
	box-shadow: var(--mwb-shadow-lg);
}

.mwb-brand-hero__logo-placeholder {
	width: 160px;
	height: 160px;
	background: var(--mwb-bg-alt);
	border: 1.5px solid var(--mwb-border);
	border-radius: var(--mwb-radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--mwb-font-display);
	font-size: 2.8rem;
	font-weight: 900;
	color: var(--mwb-text-dim);
	letter-spacing: -0.03em;
}

.mwb-brand-hero__info {
	flex: 1;
	min-width: 0;
}

.mwb-brand-hero__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
}

.mwb-brand-hero__title {
	font-family: var(--mwb-font-display);
	font-size: clamp(1.9rem, 4.5vw, 3.2rem);
	font-weight: 900;
	letter-spacing: -0.025em;
	color: var(--mwb-text);
	margin: 0 0 0.75rem;
	line-height: 1.1;
}

.mwb-brand-hero__excerpt {
	font-size: 1rem;
	color: var(--mwb-text-muted);
	margin: 0 0 1.5rem;
	line-height: 1.7;
}

.mwb-brand-hero__excerpt p {
	margin: 0;
}

.mwb-brand-hero__excerpt a {
	color: var(--mwb-accent);
	text-decoration: none;
	font-weight: 500;
	transition: color var(--mwb-transition);
}

.mwb-brand-hero__excerpt a:hover {
	color: var(--mwb-accent-light);
	text-decoration: underline;
}

.mwb-brand-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.mwb-brand-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 2rem;
	margin: 0;
}

.mwb-brand-hero__meta-item {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.mwb-brand-hero__meta-item dt {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mwb-text-dim);
}

.mwb-brand-hero__meta-item dd {
	font-family: var(--mwb-font-display);
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--mwb-text);
	margin: 0;
}

.mwb-brand-hero__meta-item dd a {
	color: inherit;
	text-decoration: none;
	transition: color var(--mwb-transition);
}

.mwb-brand-hero__meta-item dd a:hover {
	color: var(--mwb-accent);
}

/* ---------------------------------------------------------------
   Single brand — Content
--------------------------------------------------------------- */

.mwb-brand-content {
	padding: clamp(2rem, 4.5vw, 3.5rem) 0;
	border-bottom: 1px solid var(--mwb-border);
}

.mwb-prose {
	color: var(--mwb-text-muted);
	line-height: 1.8;
	max-width: 760px;
}

.mwb-prose p    { margin-bottom: 1.25rem; }
.mwb-prose h2,
.mwb-prose h3   { font-family: var(--mwb-font-display); font-weight: 700; color: var(--mwb-text); }
.mwb-prose a    { color: var(--mwb-accent); }
.mwb-prose a:hover { color: var(--mwb-accent-light); }

/* ---------------------------------------------------------------
   Single brand — Products
--------------------------------------------------------------- */

.mwb-products {
	padding: clamp(2rem, 4.5vw, 3.5rem) 0;
	border-bottom: 1px solid var(--mwb-border);
	background: var(--mwb-bg-alt);
}

.mwb-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 1rem;
}

.mwb-product-card {
	background: var(--mwb-bg-card);
	border: 1px solid var(--mwb-border);
	border-radius: var(--mwb-radius-lg);
	overflow: hidden;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	box-shadow: var(--mwb-shadow-sm);
	transition: border-color var(--mwb-transition), transform var(--mwb-transition), box-shadow var(--mwb-transition);
}

.mwb-product-card:hover {
	border-color: rgba(255, 80, 0, 0.2);
	transform: translateY(-3px);
	box-shadow: var(--mwb-shadow-md);
}

.mwb-product-card__img-wrap {
	height: 170px;
	background: var(--mwb-bg-alt);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mwb-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.75rem;
	transition: transform 0.3s ease;
}

.mwb-product-card:hover .mwb-product-card__img {
	transform: scale(1.05);
}

.mwb-product-card__img-placeholder {
	width: 100%;
	height: 100%;
	background: var(--mwb-bg-alt);
}

.mwb-product-card__body {
	padding: 0.875rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.mwb-product-card__name {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--mwb-text);
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mwb-product-card__price {
	font-family: var(--mwb-font-display);
	font-size: 1rem;
	font-weight: 800;
	color: var(--mwb-accent);
	margin: 0;
}

/* ---------------------------------------------------------------
   Single brand — News
--------------------------------------------------------------- */

.mwb-brand-news {
	padding: clamp(2rem, 4.5vw, 3.5rem) 0;
	border-bottom: 1px solid var(--mwb-border);
}

.mwb-news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 1.25rem;
}

.mwb-news-card {
	background: var(--mwb-bg-card);
	border: 1px solid var(--mwb-border);
	border-radius: var(--mwb-radius-lg);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	box-shadow: var(--mwb-shadow-sm);
	transition: border-color var(--mwb-transition), transform var(--mwb-transition), box-shadow var(--mwb-transition);
}

.mwb-news-card:hover {
	border-color: rgba(255, 80, 0, 0.2);
	transform: translateY(-2px);
	box-shadow: var(--mwb-shadow-md);
}

.mwb-news-card__meta {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.mwb-news-card__source {
	font-family: var(--mwb-font-display);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mwb-accent);
}

.mwb-news-card__sep {
	color: var(--mwb-text-dim);
}

.mwb-news-card__date {
	font-size: 0.75rem;
	color: var(--mwb-text-dim);
}

.mwb-news-card__title {
	font-family: var(--mwb-font-display);
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
}

.mwb-news-card__title a {
	color: var(--mwb-text);
	text-decoration: none;
	transition: color var(--mwb-transition);
}

.mwb-news-card__title a:hover {
	color: var(--mwb-accent);
}

.mwb-news-card__summary {
	font-size: 0.82rem;
	color: var(--mwb-text-muted);
	margin: 0;
	line-height: 1.55;
}

/* ---------------------------------------------------------------
   Single brand — Discussions wrapper
--------------------------------------------------------------- */

.mwb-container > .mwb-comments {
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* ---------------------------------------------------------------
   Scroll-reveal animations
--------------------------------------------------------------- */

.mwb-will-animate {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.mwb-appeared {
	opacity: 1;
	transform: none;
}

/* ---------------------------------------------------------------
   Full-bleed: break out of theme content-width wrapper
--------------------------------------------------------------- */

.mwb-tmpl {
	width: 100%;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
	overflow-x: hidden;
}

.wp-block-post-content .mwb-tmpl,
.entry-content .mwb-tmpl,
.site-content .mwb-tmpl,
main .mwb-tmpl {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.mwb-hero,
.mwb-ticker,
.mwb-archive-header,
.mwb-products {
	width: 100%;
}

/* ---------------------------------------------------------------
   Wide — 1280px+
--------------------------------------------------------------- */

@media (min-width: 1280px) {
	.mwb-brand-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.mwb-brand-grid--featured {
		grid-template-columns: repeat(3, 1fr);
	}

	.mwb-product-grid {
		grid-template-columns: repeat(5, 1fr);
	}

	.mwb-news-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.mwb-brand-hero__logo-col { width: 200px; height: 200px; }
	.mwb-brand-hero__logo,
	.mwb-brand-hero__logo-placeholder {
		width: 200px;
		height: 200px;
	}
	.mwb-brand-hero__logo-placeholder { font-size: 3.2rem; }
}

/* ---------------------------------------------------------------
   Wide — 1440px+
--------------------------------------------------------------- */

@media (min-width: 1440px) {
	.mwb-container { max-width: 1380px; }
	.mwb-hero { min-height: 74vh; }
	.mwb-hero__inner { max-width: 860px; }
	.mwb-archive-header__title { font-size: 4.2rem; }
}

/* ---------------------------------------------------------------
   Ultra-wide — 1800px+
--------------------------------------------------------------- */

@media (min-width: 1800px) {
	.mwb-container { max-width: 1680px; }
	.mwb-brand-grid { grid-template-columns: repeat(5, 1fr); }
	.mwb-brand-grid--featured { grid-template-columns: repeat(4, 1fr); }
	.mwb-product-grid { grid-template-columns: repeat(6, 1fr); }
	.mwb-news-grid { grid-template-columns: repeat(4, 1fr); }
	.mwb-hero__inner { max-width: 1060px; }
	.mwb-brand-hero__logo-col { width: 240px; height: 240px; }
	.mwb-brand-hero__logo,
	.mwb-brand-hero__logo-placeholder {
		width: 240px;
		height: 240px;
	}
}

/* ---------------------------------------------------------------
   Tablet — ≤1024px
--------------------------------------------------------------- */

@media (max-width: 1024px) {
	.mwb-brand-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}

	.mwb-brand-grid--featured {
		grid-template-columns: repeat(2, 1fr);
	}

	.mwb-product-grid {
		grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	}

	.mwb-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mwb-hero__inner {
		max-width: 600px;
	}
}

/* ---------------------------------------------------------------
   Tablet narrow — ≤768px
--------------------------------------------------------------- */

@media (max-width: 768px) {
	/* Filter bar: horizontal scroll on tablet/mobile */
	.mwb-filter-bar {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 0.75rem;
		scrollbar-width: none;
	}
	.mwb-filter-bar::-webkit-scrollbar { display: none; }
	.mwb-filter-bar__btn { flex-shrink: 0; }

	/* Toolbar top: search still grows full width next to sort */
	.mwb-toolbar__top { gap: 0.5rem; }

	/* Grids: 2 columns */
	.mwb-brand-grid,
	.mwb-brand-grid--featured {
		grid-template-columns: repeat(2, 1fr);
	}

	.mwb-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mwb-product-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Hero */
	.mwb-hero {
		min-height: auto;
		padding-top: 0;
	}
	.mwb-hero::after { display: none; }
	.mwb-hero__inner {
		padding-top: clamp(3rem, 8vw, 5rem);
		padding-bottom: clamp(3rem, 8vw, 4rem);
		max-width: 100%;
	}
	.mwb-hero__scroll-hint { display: none; }

	/* Brand hero: stack on narrow tablet */
	.mwb-brand-hero {
		flex-direction: column;
		gap: 1.5rem;
	}
	.mwb-brand-hero__logo-col { width: auto; }
	.mwb-brand-hero__logo,
	.mwb-brand-hero__logo-placeholder {
		width: 120px;
		height: 120px;
	}

	/* Ticker label: hide text, keep color stripe */
	.mwb-ticker__label {
		padding: 0 0.75rem;
	}
	.mwb-ticker__label span {
		display: none;
	}

	/* Meta: tighten gap */
	.mwb-brand-hero__meta {
		gap: 0 1.25rem;
	}
}

/* ---------------------------------------------------------------
   Mobile — ≤560px
--------------------------------------------------------------- */

@media (max-width: 560px) {
	/* Single column everything */
	.mwb-brand-grid,
	.mwb-brand-grid--featured,
	.mwb-product-grid,
	.mwb-news-grid {
		grid-template-columns: 1fr;
	}

	/* Hero text */
	.mwb-hero__title {
		font-size: clamp(2.2rem, 10vw, 3rem);
		letter-spacing: -0.02em;
	}

	.mwb-hero__tagline {
		font-size: 0.95rem;
	}

	.mwb-hero__actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.mwb-hero__actions .mwb-btn {
		width: 100%;
		justify-content: center;
	}

	/* Archive header */
	.mwb-archive-header__title {
		font-size: clamp(1.9rem, 8vw, 2.5rem);
	}

	/* Toolbar: on mobile the bar becomes full-width, sort stays inline */
	.mwb-toolbar__top {
		max-width: 100%;
		height: auto;
		min-height: 48px;
		flex-wrap: wrap;
	}
	.mwb-toolbar__search {
		flex-basis: 100%;
		height: 48px;
		border-bottom: 1.5px solid var(--mwb-border);
	}
	.mwb-sort-wrap {
		flex: 1;
		height: 44px;
		border-left: none;
		border-top: none;
	}
	.mwb-toolbar__search-input {
		font-size: 1rem; /* prevent iOS zoom-on-focus */
	}

	/* Brand hero */
	.mwb-brand-hero {
		flex-direction: column;
		gap: 1.25rem;
	}
	.mwb-brand-hero__logo,
	.mwb-brand-hero__logo-placeholder {
		width: 100px;
		height: 100px;
		font-size: 2rem;
	}
	.mwb-brand-hero__title {
		font-size: clamp(1.7rem, 7vw, 2.2rem);
	}
	.mwb-brand-hero__actions {
		flex-direction: column;
	}
	.mwb-brand-hero__actions .mwb-btn {
		width: 100%;
		justify-content: center;
	}
	.mwb-brand-hero__meta {
		gap: 1rem 1.5rem;
		flex-wrap: wrap;
	}

	/* Breadcrumb: compress */
	.mwb-breadcrumb {
		font-size: 0.75rem;
	}

	/* Buttons: full-width in hero context */
	.mwb-hero__actions .mwb-btn {
		padding: 0.85rem 1.25rem;
		font-size: 0.95rem;
	}

	/* Section headers */
	.mwb-section-header {
		flex-direction: column;
		gap: 0.25rem;
	}

	/* Pagination: tighter */
	.mwb-pagination a,
	.mwb-pagination span {
		min-width: 2.2rem;
		height: 2.2rem;
		font-size: 0.82rem;
	}

	/* Ticker label hidden on tiny screens */
	.mwb-ticker__label {
		display: none;
	}
}

/* ---------------------------------------------------------------
   Touch targets: ensure minimum 44px tap areas
--------------------------------------------------------------- */

@media (max-width: 768px) {
	.mwb-btn {
		min-height: 44px;
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}

	.mwb-filter-bar__btn {
		min-height: 40px;
		padding: 0.55rem 1rem;
	}

	.mwb-pagination a,
	.mwb-pagination span {
		min-height: 44px;
		min-width: 44px;
	}
}

/* ---------------------------------------------------------------
   Reduce motion
--------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.mwb-ticker__track { animation-play-state: paused; }
	.mwb-will-animate  { transition: none; }
	.mwb-hero__eyebrow,
	.mwb-hero__title,
	.mwb-hero__tagline,
	.mwb-hero__actions { animation: none; opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   User Favorites — Phase 7
--------------------------------------------------------------- */

/* CSS variables for elements rendered outside .mwb-tmpl (wp_footer) */
.mwb-fav-root {
	--mwb-accent:       #ff5000;
	--mwb-accent-light: #ff7540;
	--mwb-text:         #1d1d1f;
	--mwb-text-muted:   #6e6e73;
	--mwb-text-dim:     #aeaeb2;
	--mwb-bg:           #ffffff;
	--mwb-bg-alt:       #f5f5f7;
	--mwb-border:       #e5e5ea;
	--mwb-radius-lg:    16px;
	--mwb-font-display: 'Outfit', system-ui, sans-serif;
	--mwb-font-body:    'Figtree', system-ui, sans-serif;
}

/* ── Heart button on brand cards ── */

/* Card needs position:relative so the button can anchor to it */
.mwb-brand-card {
	position: relative;
}

.mwb-fav-btn {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 2;
	/* Explicit size resets — prevent theme styles from distorting */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	padding: 0;
	margin: 0;
	line-height: 1;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: #aeaeb2;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	opacity: 0;
	transform: scale(0.85);
	transition:
		opacity      0.18s ease,
		transform    0.18s ease,
		color        0.18s ease,
		background   0.18s ease,
		box-shadow   0.18s ease;
	-webkit-tap-highlight-color: transparent;
}

/* Show on card hover */
.mwb-brand-card:hover .mwb-fav-btn,
.mwb-fav-btn.is-active {
	opacity: 1;
	transform: scale(1);
}

.mwb-fav-btn:hover {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

/* Outline/filled heart toggle */
.mwb-fav-btn__filled { display: none; }

.mwb-fav-btn.is-active {
	color: #ff5000;
	background: #fff;
}

.mwb-fav-btn.is-active .mwb-fav-btn__outline { display: none; }
.mwb-fav-btn.is-active .mwb-fav-btn__filled  { display: block; }

/* Pop animation on click */
@keyframes mwb-fav-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.35); }
	70%  { transform: scale(0.9); }
	100% { transform: scale(1); }
}

.mwb-fav-btn.is-popping {
	animation: mwb-fav-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── Floating trigger button ── */

.mwb-fav-trigger {
	position: fixed;
	bottom: 1.75rem;
	right: 1.75rem;
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0 1.1rem;
	height: 46px;
	background: var(--mwb-text);
	color: #fff;
	border: none;
	border-radius: 100px;
	cursor: pointer;
	font-family: var(--mwb-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	transition:
		transform    0.2s ease,
		box-shadow   0.2s ease,
		background   0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.mwb-fav-trigger:hover {
	background: var(--mwb-accent);
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(255, 80, 0, 0.35);
}

.mwb-fav-trigger:active {
	transform: scale(0.97) translateY(0);
}

.mwb-fav-trigger__count {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	background: var(--mwb-accent);
	color: #fff;
	border-radius: 100px;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0 0.35rem;
	line-height: 1;
}

.mwb-fav-trigger.has-items .mwb-fav-trigger__count {
	display: inline-flex;
}

.mwb-fav-trigger.has-items {
	background: var(--mwb-text);
}

/* Pulse when count increases */
@keyframes mwb-fav-pulse {
	0%   { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
	50%  { box-shadow: 0 4px 28px rgba(255, 80, 0, 0.45); }
	100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
}

.mwb-fav-trigger.is-pulsing {
	animation: mwb-fav-pulse 0.5s ease;
}

/* ── Overlay ── */

.mwb-fav-overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.mwb-fav-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* ── Drawer panel ── */

.mwb-fav-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	width: clamp(300px, 90vw, 440px);
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mwb-fav-drawer.is-open {
	transform: translateX(0);
}

/* Prevent body scroll when drawer is open */
body.mwb-fav-open {
	overflow: hidden;
}

/* ── Drawer header ── */

.mwb-fav-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--mwb-border);
	flex-shrink: 0;
}

.mwb-fav-drawer__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--mwb-font-display);
	font-size: 1rem;
	font-weight: 700;
	color: var(--mwb-accent);
}

.mwb-fav-drawer__title svg {
	color: var(--mwb-accent);
}

.mwb-fav-drawer__count {
	font-family: var(--mwb-font-body);
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--mwb-text-muted);
}

.mwb-fav-drawer__close {
	/* Explicit resets so theme button styles can't distort the shape */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	padding: 0;
	margin: 0;
	line-height: 1;
	flex-shrink: 0;
	background: var(--mwb-bg-alt);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: var(--mwb-text-muted);
	transition:
		background 0.15s ease,
		color      0.15s ease;
}

.mwb-fav-drawer__close:hover {
	background: var(--mwb-border);
	color: var(--mwb-text);
}

/* ── Drawer body ── */

.mwb-fav-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 1.25rem;
	overscroll-behavior: contain;
}

/* ── Empty state ── */

.mwb-fav-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 3rem 1.5rem;
	gap: 0.75rem;
}

.mwb-fav-empty__icon {
	color: var(--mwb-border);
}

.mwb-fav-empty__title {
	font-family: var(--mwb-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--mwb-text);
	margin: 0;
}

.mwb-fav-empty__sub {
	font-size: 0.875rem;
	color: var(--mwb-text-muted);
	margin: 0;
	max-width: 240px;
	line-height: 1.55;
}

/* ── Drawer brand grid ── */

.mwb-fav-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.875rem;
}

/* Cards in drawer: slightly more compact */
.mwb-fav-grid .mwb-brand-card__logo-wrap {
	height: 110px;
}

.mwb-fav-grid .mwb-brand-card__excerpt {
	display: none;
}

/* ── Skeleton loader ── */

.mwb-fav-skeleton {
	background: var(--mwb-bg-alt);
	border-radius: var(--mwb-radius-lg);
	height: 180px;
	background: linear-gradient(
		90deg,
		var(--mwb-bg-alt) 25%,
		#ebebed           50%,
		var(--mwb-bg-alt) 75%
	);
	background-size: 200% 100%;
	animation: mwb-skeleton-sweep 1.2s ease infinite;
}

@keyframes mwb-skeleton-sweep {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ── Tablet (≤768px) ── */

@media (max-width: 768px) {
	/* Drawer takes more of the screen on tablet */
	.mwb-fav-drawer {
		width: clamp(300px, 85vw, 400px);
	}

	/* Single column grid is more readable at this width */
	.mwb-fav-grid {
		grid-template-columns: 1fr;
	}

	/* Cards in single-column drawer: restore excerpt for readability */
	.mwb-fav-grid .mwb-brand-card__excerpt {
		display: block;
	}

	/* Larger heart tap target on touch devices */
	.mwb-fav-btn {
		width: 36px;
		height: 36px;
		min-width: 36px;
		min-height: 36px;
		/* Always visible on touch — no hover state available */
		opacity: 1;
		transform: scale(1);
	}
}

/* ── Mobile (≤480px) ── */

@media (max-width: 480px) {
	/* Full-width drawer on small phones */
	.mwb-fav-drawer {
		width: 100vw;
		border-radius: 0;
	}

	/* Drawer slides up from bottom on mobile — more natural for thumbs */
	.mwb-fav-drawer {
		top: auto;
		right: 0;
		left: 0;
		bottom: 0;
		height: 85vh;
		width: 100vw;
		border-radius: 16px 16px 0 0;
		transform: translateY(100%);
		box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
	}

	.mwb-fav-drawer.is-open {
		transform: translateY(0);
	}

	/* Drag handle hint at top of bottom sheet */
	.mwb-fav-drawer__header::before {
		content: '';
		position: absolute;
		top: 0.5rem;
		left: 50%;
		transform: translateX(-50%);
		width: 36px;
		height: 4px;
		background: var(--mwb-border);
		border-radius: 2px;
	}

	.mwb-fav-drawer__header {
		position: relative;
		padding-top: 1.5rem;
	}

	/* Trigger: tighter position, slightly smaller */
	.mwb-fav-trigger {
		bottom: 1rem;
		right: 1rem;
		height: 42px;
		padding: 0 0.9rem;
		font-size: 0.82rem;
	}

	/* Grid stays 1 column */
	.mwb-fav-grid {
		grid-template-columns: 1fr;
	}
}

/* ── BC Products integration ──────────────────────────────────────────────── */

/**
 * Grid wrapper for BC Products cards on brand pages.
 * Overrides the default repeat(4,1fr) from search-widget.css to
 * match MWB's auto-fill responsive layout.
 */
.mwb-tmpl .mwb-bc-grid {
	display:               grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap:                   1rem;
}

.mwb-tmpl .mwb-bc-grid .bc-product-card {
	max-width: none;
}

.mwb-tmpl .bc-disclosure {
	font-size:  0.75rem;
	color:      var(--mwb-text-muted);
	margin-top: 0.75rem;
	font-style: italic;
}

/** Brand search section — sits between the hero and product grid */
.mwb-brand-search {
	padding-top:    0;
	padding-bottom: 0;
	margin-bottom:  2rem;
}

.mwb-brand-search .bce-search-form {
	max-width: 100%;
}

.mwb-brand-search .bce-input-wrap {
	border-color: var(--mwb-border);
}

.mwb-brand-search .bce-input-wrap:focus-within {
	border-color: var(--mwb-accent);
}

.mwb-brand-search .bce-search-btn {
	background: var(--mwb-accent);
}

.mwb-brand-search .bce-search-btn:hover {
	background: var(--mwb-accent-light);
}

@media (max-width: 600px) {
	.mwb-tmpl .mwb-bc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
