/**
 * Brands hub + brand single — Design System aligned
 */

.sbh-brands-hero {
	padding: calc(var(--sbh-header-h) + 3.5rem) 0 3rem;
	background:
		radial-gradient(ellipse 60% 50% at 10% 0%, rgba(201, 167, 164, 0.2), transparent 55%),
		linear-gradient(180deg, #f3efe9 0%, var(--sbh-bg-canvas) 100%);
}

.sbh-brands-hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sbh-text-secondary);
}

.sbh-brands-hero__title {
	margin: 0 0 1rem;
	font-family: var(--sbh-font-display);
	font-size: clamp(2.2rem, 4vw, 3.25rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.sbh-brands-hero__lead {
	margin: 0;
	max-width: 36rem;
	font-size: 1.1rem;
	line-height: 1.55;
	color: var(--sbh-text-secondary);
}

.sbh-brands-tools {
	padding-top: 0;
	padding-bottom: 1.5rem;
}

.sbh-brands-tools__row {
	margin-bottom: 1.25rem;
}

.sbh-brands-search__input {
	width: min(100%, 28rem);
	min-height: 3rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--sbh-border);
	border-radius: 4px;
	background: var(--sbh-bg-surface);
	font: inherit;
	font-size: 0.95rem;
	color: var(--sbh-text-primary);
}

.sbh-brands-search__input:focus {
	outline: 2px solid var(--sbh-bg-emphasis);
	outline-offset: 2px;
}

.sbh-brands-search__input:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sbh-brands-az {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.sbh-brands-az__btn {
	min-width: 2.1rem;
	min-height: 2.1rem;
	padding: 0.25rem 0.4rem;
	border: 1px solid var(--sbh-border);
	border-radius: 4px;
	background: var(--sbh-bg-surface);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--sbh-text-secondary);
	cursor: pointer;
}

.sbh-brands-az__btn:hover:not(:disabled),
.sbh-brands-az__btn.is-active {
	border-color: var(--sbh-bg-emphasis);
	color: var(--sbh-bg-emphasis);
	background: #fff;
}

.sbh-brands-az__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.sbh-brands-grid-section {
	padding-top: 1rem;
}

.sbh-brands-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sbh-brand-card {
	margin: 0;
}

.sbh-brand-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--sbh-bg-surface);
	border: 1px solid var(--sbh-border);
	border-radius: var(--sbh-radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s var(--sbh-ease), border-color 0.3s var(--sbh-ease), box-shadow 0.3s var(--sbh-ease);
}

.sbh-brand-card__link:hover {
	transform: translateY(-3px);
	border-color: var(--sbh-border-strong);
	box-shadow: var(--sbh-shadow-soft);
	color: inherit;
}

.sbh-brand-card__logo {
	display: grid;
	place-items: center;
	aspect-ratio: 5 / 3;
	padding: 1.25rem;
	background: var(--sbh-bg-subtle);
	border-bottom: 1px solid var(--sbh-border);
}

.sbh-brand-card__logo img {
	max-width: 100%;
	max-height: 4.5rem;
	width: auto;
	height: auto;
	object-fit: contain;
}

.sbh-brand-card__logo-fallback {
	font-family: var(--sbh-font-display);
	font-size: 2rem;
	font-weight: 600;
	color: var(--sbh-accent-soft);
}

.sbh-brand-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.25rem 1.3rem 1.4rem;
	flex: 1;
}

.sbh-brand-card__name {
	font-family: var(--sbh-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.sbh-brand-card__desc {
	font-size: 0.9rem;
	color: var(--sbh-text-secondary);
	line-height: 1.45;
	flex: 1;
}

.sbh-brand-card__meta {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--sbh-text-secondary);
}

.sbh-brand-card__cta {
	margin-top: 0.35rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--sbh-bg-emphasis);
}

.sbh-brands-empty {
	text-align: center;
	padding: 3.5rem 1.5rem;
	background: var(--sbh-bg-surface);
	border: 1px dashed var(--sbh-border-strong);
	border-radius: var(--sbh-radius-lg);
}

.sbh-brands-empty__title {
	margin: 0 0 0.75rem;
	font-family: var(--sbh-font-display);
	font-size: 1.5rem;
	font-weight: 600;
}

.sbh-brands-empty__text {
	margin: 0 auto 1.75rem;
	max-width: 32rem;
	color: var(--sbh-text-secondary);
}

.sbh-brands-none {
	text-align: center;
	color: var(--sbh-text-secondary);
	margin: 2rem 0 0;
}

.sbh-info-block {
	margin: 0;
	padding: 1.25rem 1.35rem;
	background: var(--sbh-bg-surface);
	border: 1px solid var(--sbh-border);
	border-radius: var(--sbh-radius);
	color: var(--sbh-text-secondary);
	max-width: 40rem;
}

/* Brand single — enhanced */
.sbh-brand-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1.75rem;
	font-size: 0.84rem;
	color: var(--sbh-text-secondary);
}

.sbh-brand-crumbs a {
	color: var(--sbh-text-secondary);
	text-decoration: none;
}

.sbh-brand-crumbs a:hover {
	color: var(--sbh-bg-emphasis);
}

.sbh-brand-hero {
	position: relative;
	padding: calc(var(--sbh-header-h) + 2.75rem) 0 3.25rem;
	background:
		radial-gradient(ellipse 50% 40% at 90% 10%, rgba(201, 167, 164, 0.18), transparent 55%),
		linear-gradient(180deg, #f3efe9 0%, var(--sbh-bg-canvas) 100%);
}

.sbh-brand-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}

.sbh-brand-hero__logo-inline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 7rem;
	min-height: 3.5rem;
	margin-bottom: 1.15rem;
	padding: 0.65rem 0.9rem;
	background: var(--sbh-bg-surface);
	border: 1px solid var(--sbh-border);
	border-radius: var(--sbh-radius);
}

.sbh-brand-hero__logo-inline img {
	max-height: 2.75rem;
	width: auto;
	object-fit: contain;
}

.sbh-brand-hero__logo-fallback {
	font-family: var(--sbh-font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--sbh-accent-soft);
}

.sbh-brand-hero__title {
	margin: 0 0 0.9rem;
	font-family: var(--sbh-font-display);
	font-size: clamp(2.1rem, 3.8vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.sbh-brand-hero__lead {
	margin: 0 0 1.75rem;
	max-width: 34rem;
	font-size: 1.08rem;
	line-height: 1.55;
	color: var(--sbh-text-primary);
}

.sbh-brand-hero__lead--muted {
	color: var(--sbh-text-secondary);
}

.sbh-brand-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.sbh-brand-hero__visual {
	margin: 0;
	min-height: min(52vh, 26rem);
	border-radius: var(--sbh-radius-lg);
	overflow: hidden;
	border: 1px solid var(--sbh-border);
	background: var(--sbh-bg-subtle);
	box-shadow: var(--sbh-shadow-soft);
}

.sbh-brand-hero__photo {
	width: 100%;
	height: 100%;
	min-height: inherit;
	object-fit: cover;
}

.sbh-brand-hero__placeholder {
	min-height: inherit;
	height: 100%;
	display: grid;
	place-content: center;
	gap: 0.4rem;
	text-align: center;
	padding: 2rem;
	background: linear-gradient(155deg, #efe9e3, #d9ccc4 55%, #c9a7a4);
}

.sbh-brand-hero__placeholder-label {
	font-family: var(--sbh-font-display);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--sbh-bg-emphasis);
}

.sbh-brand-hero__placeholder-hint {
	font-size: 0.8rem;
	color: var(--sbh-text-secondary);
}

.sbh-brand-filters {
	margin-bottom: 1.75rem;
	padding: 1.25rem 1.35rem;
	background: var(--sbh-bg-surface);
	border: 1px solid var(--sbh-border);
	border-radius: var(--sbh-radius);
}

.sbh-brand-filters__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.85rem 1rem;
}

.sbh-brand-filters__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sbh-text-secondary);
}

.sbh-brand-filters__field select {
	width: 100%;
	min-height: 2.6rem;
	padding: 0.4rem 0.65rem;
	border: 1px solid var(--sbh-border);
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-size: 0.9rem;
}

.sbh-brand-filters__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
}

.sbh-brand-why__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem 1.5rem;
}

.sbh-brand-why__item {
	padding: 1.25rem 1.35rem;
	background: var(--sbh-bg-surface);
	border: 1px solid var(--sbh-border);
	border-radius: var(--sbh-radius);
	border-top: 2px solid var(--sbh-accent-soft);
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--sbh-text-primary);
}

.sbh-brand-pagination {
	margin-top: 0.5rem;
}

@media (max-width: 1024px) {
	.sbh-brand-filters__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 720px) {
	.sbh-brand-hero__grid {
		grid-template-columns: 1fr;
	}

	.sbh-brand-hero__visual {
		min-height: 16rem;
		order: -1;
	}

	.sbh-brand-why__list,
	.sbh-brand-filters__grid {
		grid-template-columns: 1fr;
	}
}


.sbh-brand-about__text {
	max-width: 42rem;
	color: var(--sbh-text-secondary);
	line-height: 1.65;
}

.sbh-brand-about__facts {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
}

.sbh-brand-about__facts span {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sbh-text-secondary);
	margin-bottom: 0.2rem;
}

.sbh-brand-cats__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sbh-brand-cats__chip {
	display: inline-flex;
	padding: 0.55rem 0.95rem;
	border: 1px solid var(--sbh-border);
	border-radius: 4px;
	background: var(--sbh-bg-surface);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--sbh-text-primary);
	transition: border-color 0.2s var(--sbh-ease);
}

.sbh-brand-cats__chip:hover {
	border-color: var(--sbh-bg-emphasis);
	color: var(--sbh-bg-emphasis);
}

.sbh-brand-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sbh-product-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--sbh-bg-surface);
	border: 1px solid var(--sbh-border);
	border-radius: var(--sbh-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.25s var(--sbh-ease), transform 0.25s var(--sbh-ease);
}

.sbh-product-card__link:hover {
	border-color: var(--sbh-border-strong);
	transform: translateY(-2px);
	color: inherit;
}

.sbh-product-card__media {
	aspect-ratio: 1;
	background: var(--sbh-bg-subtle);
	overflow: hidden;
}

.sbh-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sbh-product-card__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, var(--sbh-bg-subtle), #d9ccc4);
}

.sbh-product-card__name {
	padding: 0.85rem 0.95rem 0.25rem;
	font-family: var(--sbh-font-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.sbh-product-card__sku {
	padding: 0 0.95rem 0.95rem;
	font-size: 0.75rem;
	color: var(--sbh-text-secondary);
}

.sbh-brand-products-section .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	padding: 1.5rem 0 0;
	margin: 0;
}

.sbh-brand-products-section .page-numbers a,
.sbh-brand-products-section .page-numbers span {
	display: inline-flex;
	min-width: 2.25rem;
	min-height: 2.25rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sbh-border);
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.875rem;
	color: var(--sbh-text-primary);
}

.sbh-brand-products-section .page-numbers .current {
	background: var(--sbh-bg-emphasis);
	border-color: var(--sbh-bg-emphasis);
	color: #fff;
}

@media (max-width: 1024px) {
	.sbh-brands-grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

@media (max-width: 720px) {
	.sbh-brands-grid,
	.sbh-brand-products {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.sbh-brands-grid {
		grid-template-columns: 1fr;
	}
}
