/* ── Brands overview page ── */

.bsmarty-brands-page {
	display: flex;
	background: #F5F5F7;
	min-height: 60vh;
}

.bsmarty-brands-sidebar {
	position: fixed;
	top: 64px;
	left: 0;
	z-index: 30;
	width: 260px;
	height: calc(100vh - 64px);
	overflow-y: auto;
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(10px) saturate(135%);
	-webkit-backdrop-filter: blur(10px) saturate(135%);
	border-right: 1px solid rgba(255, 255, 255, 0.65);
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.55), 0 4px 10px rgba(15, 23, 42, 0.08);
}

@media (min-width: 1024px) {
	.bsmarty-brands-sidebar {
		top: 3.75rem;
		height: calc(100vh - 3.75rem);
	}
}

.bsmarty-brands-main {
	flex: 1;
	min-width: 0;
	margin-left: 260px;
}

/* Filter sidebar + mobile popup */
.bsmarty-brands-filter-root--sidebar {
	height: 100%;
}

.bsmarty-brands-filter-panel {
	padding: 1.25rem 1rem 1.5rem;
}

.bsmarty-brands-filter-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #E5E7EB;
}

.bsmarty-brands-filter-panel__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--bsmarty-navy, #1E3A5F);
	line-height: 1.2;
}

.bsmarty-brands-filter-panel__reset {
	flex-shrink: 0;
	padding: 0;
	font-size: 0.75rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--bsmarty-blue, #2563EB);
	background: none;
	border: none;
	cursor: pointer;
	text-align: right;
}

.bsmarty-brands-filter-panel__reset:hover {
	color: #1D4ED8;
	text-decoration: underline;
}

.bsmarty-brands-filter-group {
	border-bottom: 1px solid #F1F5F9;
}

.bsmarty-brands-filter-group:last-child {
	border-bottom: 0;
}

.bsmarty-brands-filter-group__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.875rem 0;
	font-size: 0.9375rem;
	font-weight: 700;
	font-family: inherit;
	color: var(--bsmarty-navy, #1E3A5F);
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
}

.bsmarty-brands-filter-group__arrow {
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid #64748B;
	border-bottom: 2px solid #64748B;
	transform: rotate(45deg);
	transition: transform 200ms ease;
}

.bsmarty-brands-filter-group.is-open .bsmarty-brands-filter-group__arrow {
	transform: rotate(-135deg);
}

.bsmarty-brands-filter-group__body {
	display: none;
	padding-bottom: 0.875rem;
}

.bsmarty-brands-filter-group.is-open .bsmarty-brands-filter-group__body {
	display: block;
}

.bsmarty-brands-filter-group__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.bsmarty-brands-filter-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.4375rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: inherit;
	color: #475569;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 9999px;
	cursor: pointer;
	transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.bsmarty-brands-filter-chip:hover {
	border-color: #CBD5E1;
	color: var(--bsmarty-navy, #1E3A5F);
}

.bsmarty-brands-filter-chip--active {
	color: var(--bsmarty-blue, #2563EB);
	background: #E6F1FB;
	border: 1.5px solid #2563EB;
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.bsmarty-brands-mobile-filter {
	display: none;
	padding: 1rem 1rem 0;
}

.bsmarty-brands-mobile-filter__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--bsmarty-navy, #1E3A5F);
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 9999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	cursor: pointer;
}

.bsmarty-brands-mobile-filter__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	background: var(--bsmarty-orange, #F97316);
}

.bsmarty-brands-filter-root--mobile {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.bsmarty-brands-filter-root--mobile[hidden] {
	display: none;
}

.bsmarty-brands-filter-mobile__backdrop {
	position: absolute;
	inset: 0;
	border: none;
	background: rgba(15, 23, 42, 0.45);
	cursor: pointer;
}

.bsmarty-brands-filter-root--mobile .bsmarty-brands-filter-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.bsmarty-brands-filter-panel__actions {
	padding-top: 0.75rem;
}

.bsmarty-brands-filter-panel__apply {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.875rem 1rem;
	font-size: 0.9375rem;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: var(--bsmarty-blue, #2563EB);
	border: none;
	border-radius: 14px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.bsmarty-brands-filter-panel__apply:hover {
	background: #1D4ED8;
}

.bsmarty-brands-filter-panel__apply.is-counting {
	background: #1E40AF;
	box-shadow: 0 4px 14px rgba(30, 64, 175, 0.28);
}

body.bsmarty-brands-filter-open {
	overflow: hidden;
}

.bsmarty-brand-row__filtered-empty {
	padding: 1.25rem 1rem;
	background: #fff;
	border: 1px dashed #E2E8F0;
	border-radius: 16px;
}

.bsmarty-brand-row__filtered-empty p {
	margin: 0;
	font-size: 0.875rem;
	color: #64748B;
}

.bsmarty-brands-page__header {
	background: linear-gradient(180deg, #fff 0%, #F5F5F7 100%);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bsmarty-brands-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	color: #94A3B8;
}

.bsmarty-brands-breadcrumb__list a {
	color: #64748B;
	text-decoration: none;
}

.bsmarty-brands-breadcrumb__list a:hover {
	color: var(--bsmarty-blue, #2563EB);
}

.bsmarty-brands-breadcrumb__list [aria-current="page"] {
	color: var(--bsmarty-navy, #1E3A5F);
	font-weight: 600;
}

.bsmarty-brands-page__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	color: var(--bsmarty-navy, #1E3A5F);
	line-height: 1.1;
}

.bsmarty-brands-page__subtitle {
	margin: 0 0 1.5rem;
	max-width: 36rem;
	font-size: 1rem;
	color: #64748B;
	line-height: 1.5;
}

/* Brand nav chips */
.bsmarty-brands-nav {
	margin-top: 0.25rem;
}

.bsmarty-brands-nav__track {
	display: grid;
	grid-template-rows: repeat(2, auto);
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 0.9375rem;
	overflow-x: visible;
	padding-bottom: 0;
}

.bsmarty-brands-nav__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.75rem 1.3125rem;
	font-size: 1.3125rem;
	font-weight: 600;
	color: var(--bsmarty-navy, #1E3A5F);
	text-decoration: none;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 9999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.bsmarty-brands-nav__chip--has-logo {
	--bsmarty-brand-nav-chip-size: 4.875rem;
	width: min(100%, var(--bsmarty-brand-nav-chip-size));
	aspect-ratio: 1;
	height: auto;
	min-height: 0;
	margin-inline: auto;
	padding: 0;
	border-radius: calc(var(--bsmarty-brand-nav-chip-size) * 0.25);
}

.bsmarty-brands-nav__chip--has-logo .bsmarty-brands-nav__logo {
	width: 80%;
	height: 80%;
	min-width: 0;
	min-height: 0;
	border-radius: 7.5px;
}

.bsmarty-brands-nav__chip--has-logo .bsmarty-brands-nav__logo img {
	width: 100%;
	height: 100%;
}

.bsmarty-brands-nav__chip:hover {
	color: var(--bsmarty-blue, #2563EB);
	border-color: rgba(37, 99, 235, 0.35);
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.bsmarty-brands-nav__logo,
.bsmarty-brand-row__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	background: color-mix(in srgb, var(--brand-color, #2563EB) 12%, #fff);
	overflow: hidden;
}

.bsmarty-brands-nav__chip[data-brand-slug="hola"] .bsmarty-brands-nav__logo,
.bsmarty-brands-nav__chip[data-brand-slug="colectia-bsmarty"] .bsmarty-brands-nav__logo,
#brand-hola .bsmarty-brand-row__logo {
	background: #fff;
}

.bsmarty-brands-nav__logo img,
.bsmarty-brand-row__logo img {
	width: 90%;
	height: 90%;
	object-fit: contain;
	object-position: center;
}

.bsmarty-brands-nav__logo-fallback,
.bsmarty-brand-row__logo-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 0.8125rem;
	font-weight: 800;
	color: var(--brand-color, #2563EB);
	text-transform: uppercase;
}

/* Brand rows */
.bsmarty-brands-page__rows {
	padding-top: 2rem;
}

.bsmarty-brand-row {
	margin-bottom: 40px;
	scroll-margin-top: 6rem;
}

.bsmarty-brand-row.is-last {
	margin-bottom: 0;
}

.bsmarty-brand-row__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.bsmarty-brand-row__title-wrap {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.bsmarty-brand-row__logo {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 12px;
}

.bsmarty-brand-row__title {
	margin: 0;
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	font-weight: 800;
	color: var(--bsmarty-navy, #1E3A5F);
	line-height: 1.2;
}

.bsmarty-brand-row__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	background: #f97316;
	border-radius: 9999px;
}

.bsmarty-brand-row__view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	flex-shrink: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bsmarty-blue, #2563EB);
	text-decoration: none;
	transition: color 200ms ease;
}

.bsmarty-brand-row__view-all:hover {
	color: #1D4ED8;
}

.bsmarty-brand-row__view-all span {
	transition: transform 200ms ease;
}

.bsmarty-brand-row__view-all:hover span {
	transform: translateX(2px);
}

.bsmarty-brand-row__scroll {
	overflow-x: auto;
	margin: 0 -1rem;
	padding: 0 1rem 0.25rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(37, 99, 235, 0.35) transparent;
}

.bsmarty-brand-row__scroll:focus-visible {
	outline: 2px solid rgba(37, 99, 235, 0.45);
	outline-offset: 4px;
	border-radius: 12px;
}

.bsmarty-brand-row__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(220px, calc((100% - 4rem) / 5));
	align-items: stretch;
	gap: 1rem;
}

.bsmarty-brand-row__separator {
	margin: 40px 0 0;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bsmarty-brand-row__empty {
	padding: 1.5rem 1.25rem;
	background: #fff;
	border: 1px dashed #E2E8F0;
	border-radius: 20px;
}

.bsmarty-brand-row__empty p {
	margin: 0;
	font-size: 0.9375rem;
	color: #64748B;
}

/* Brand row product card — approved product-card-approved-v1 */
.bsmarty-brand-card {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	height: 100%;
	width: 100%;
	padding: 0;
	background: #ffffff;
	border: 1px solid rgba(109, 40, 217, 0.14);
	border-radius: 24px;
	overflow: visible;
	box-sizing: border-box;
	box-shadow:
		0 12px 30px rgba(30, 41, 59, 0.08),
		0 0 0 1px rgba(255, 255, 255, 0.7) inset;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.bsmarty-brand-card:hover {
	transform: translateY(-2px);
	border-color: rgba(109, 40, 217, 0.22);
	box-shadow:
		0 16px 34px rgba(30, 41, 59, 0.11),
		0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.bsmarty-brand-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	padding: 8px;
	background: #f8fafc;
	overflow: hidden;
	border-radius: 24px 24px 0 0;
}

.bsmarty-brand-card__media-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(109, 40, 217, 0.16);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 22px rgba(38, 28, 82, 0.12), 0 2px 6px rgba(38, 28, 82, 0.06);
	text-decoration: none;
}

.bsmarty-brand-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform 250ms ease;
}

.bsmarty-brand-card:hover .bsmarty-brand-card__image {
	transform: scale(1.02);
}

.bsmarty-brand-card .bsmarty-card-favorite-btn {
	top: 16px;
	right: 16px;
	width: 56px;
	height: 56px;
	z-index: 3;
}

.bsmarty-brand-card .bsmarty-card-favorite-btn svg {
	width: 25px;
	height: 25px;
}

.bsmarty-brand-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0.25rem;
	min-width: 0;
	padding: 0.625rem 8px 0.75rem;
}

.bsmarty-brand-card__brand {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	margin: 0;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
	line-height: 1.2;
}

.bsmarty-brand-card__brand .bsmarty-card-meta__sku {
	margin-left: auto;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.bsmarty-brand-card__brand .bsmarty-card-meta__separator {
	display: none;
}

.bsmarty-brand-card__title {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1e1b4b;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bsmarty-brand-card__title:hover {
	color: #6d28d9;
}

.bsmarty-brand-card__divider {
	display: block;
	width: 100%;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid rgba(109, 40, 217, 0.16);
}

.bsmarty-brand-card__rating {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	width: 100%;
	min-width: 0;
}

.bsmarty-brand-card__rating-stars {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.1rem;
	min-width: 0;
}

.bsmarty-brand-card__star {
	color: #e2e8f0;
	font-size: 0.8125rem;
	line-height: 1;
}

.bsmarty-brand-card__star.is-filled {
	color: #f59e0b;
}

.bsmarty-brand-card__rating-value {
	margin-left: 0.2rem;
	font-size: 0.75rem;
	color: #64748b;
}

.bsmarty-brand-card__age {
	flex-shrink: 1;
	margin-left: auto;
	max-width: 48%;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.2;
	color: #475569;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bsmarty-brand-card__price {
	font-weight: 700;
	color: #1e1b4b;
}

.bsmarty-brand-card__price .price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
	margin: 0;
}

.bsmarty-brand-card__price .price:not(:has(del)) .woocommerce-Price-amount {
	font-size: 1.125rem;
	font-weight: 700;
}

.bsmarty-brand-card__price del,
.bsmarty-brand-card__price del .woocommerce-Price-amount {
	font-size: 0.75rem;
	font-weight: 500;
	color: #94a3b8;
	text-decoration: line-through;
	margin-right: 0;
	line-height: 1.2;
}

.bsmarty-brand-card__price ins,
.bsmarty-brand-card__price ins .woocommerce-Price-amount {
	font-size: 1.375rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.1;
}

.bsmarty-brand-card__cart {
	margin-top: auto;
	padding-top: 0.25rem;
	width: 100%;
	min-width: 0;
}

.bsmarty-product-card__price {
	font-weight: 700;
	color: #1e1b4b;
}

.bsmarty-product-card__price .price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
	margin: 0;
}

.bsmarty-product-card__price .price:not(:has(del)) .woocommerce-Price-amount {
	font-size: 1.125rem;
	font-weight: 700;
}

.bsmarty-product-card__price del,
.bsmarty-product-card__price del .woocommerce-Price-amount {
	font-size: 0.75rem;
	font-weight: 500;
	color: #94a3b8;
	text-decoration: line-through;
	margin-right: 0;
	line-height: 1.2;
}

.bsmarty-product-card__price ins,
.bsmarty-product-card__price ins .woocommerce-Price-amount {
	font-size: 1.375rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.1;
}

/* Single brand archive */
.bsmarty-brand-archive__title-row {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.bsmarty-brand-archive__logo {
	width: 3rem;
	height: 3rem;
	object-fit: contain;
	border-radius: 14px;
	background: #fff;
	padding: 0.375rem;
	border: 1px solid #E2E8F0;
}

.bsmarty-brand-archive__description {
	max-width: 52rem;
	margin-top: 1.25rem;
	color: #475569;
	font-size: 1rem;
	line-height: 1.7;
}

.bsmarty-brand-archive__description p {
	margin: 0 0 0.625rem;
}

.bsmarty-brand-archive__description p:last-child {
	margin-bottom: 0;
}

@media (max-width: 1024px) {
	.bsmarty-brand-row__track {
		grid-auto-columns: minmax(200px, calc((100% - 2rem) / 3));
	}
}

@media (max-width: 768px) {
	.bsmarty-brands-sidebar {
		display: none;
	}

	.bsmarty-brands-main {
		margin-left: 0;
	}

	.bsmarty-brands-mobile-filter {
		display: block;
	}

	.bsmarty-brand-row__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.bsmarty-brand-row__view-all {
		align-self: flex-end;
	}

	.bsmarty-brand-row__track {
		grid-auto-columns: minmax(180px, 72vw);
	}
}

@media (min-width: 1280px) {
	.bsmarty-brand-row__track {
		grid-auto-columns: minmax(220px, calc((100% - 4rem) / 5));
	}
}

@media (min-width: 769px) and (max-width: 1279px) {
	.bsmarty-brand-row__track {
		grid-auto-columns: minmax(210px, calc((100% - 3rem) / 4));
	}
}
