/**
 * Catalog page — Design System aligned (B2B hub)
 */

.sbh-catalog-hero {
	padding: calc(var(--sbh-header-h) + 3.25rem) 0 3.25rem;
	background:
		radial-gradient(ellipse 55% 45% at 90% 6%, rgba(201, 167, 164, 0.2), transparent 58%),
		linear-gradient(180deg, #f3efe9 0%, var(--sbh-bg-canvas) 100%);
}

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

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

.sbh-catalog-hero__title {
	margin: 0 0 1rem;
	font-family: var(--sbh-font-display);
	font-size: clamp(2.35rem, 4.4vw, 3.5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.08;
	color: var(--sbh-bg-emphasis);
}

.sbh-catalog-hero__lead {
	margin: 0 0 1.5rem;
	max-width: 34rem;
	font-size: 1.08rem;
	line-height: 1.6;
	color: var(--sbh-text-secondary);
}

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

.sbh-catalog-hero__visual {
	margin: 0;
	min-height: clamp(16rem, 38vw, 26rem);
	border-radius: 2px;
	overflow: hidden;
	background: var(--sbh-bg-surface);
	box-shadow: 0 18px 48px rgba(74, 47, 53, 0.08);
}

.sbh-catalog-hero__photo {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(16rem, 38vw, 26rem);
	object-fit: cover;
}

.sbh-catalog-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(16rem, 38vw, 26rem);
	height: 100%;
	background:
		linear-gradient(145deg, rgba(74, 47, 53, 0.06), transparent 55%),
		repeating-linear-gradient(
			-18deg,
			transparent,
			transparent 11px,
			rgba(74, 47, 53, 0.035) 11px,
			rgba(74, 47, 53, 0.035) 12px
		),
		var(--sbh-bg-surface);
}

.sbh-catalog-hero__placeholder-frame {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: min(88%, 22rem);
	padding: 1.5rem 1.25rem;
	border: 1px dashed rgba(74, 47, 53, 0.28);
	text-align: center;
}

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

.sbh-catalog-hero__placeholder-hint {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sbh-accent-soft);
}

.sbh-catalog-hero__placeholder-note {
	margin-top: 0.35rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--sbh-text-secondary);
}

.sbh-catalog-search__box {
	position: relative;
	max-width: 40rem;
}

.sbh-catalog-search__input {
	width: 100%;
	min-height: 3.25rem;
	padding: 0.85rem 1.1rem;
	border: 1px solid var(--sbh-border);
	border-radius: 4px;
	background: var(--sbh-bg-surface);
	font: inherit;
	font-size: 1rem;
	color: var(--sbh-text-primary);
}

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

.sbh-catalog-search__hint {
	margin: 0.65rem 0 0;
	font-size: 0.88rem;
	color: var(--sbh-text-secondary);
}

.sbh-catalog-search__results {
	position: absolute;
	z-index: 20;
	top: calc(100% + 0.35rem);
	left: 0;
	right: 0;
	max-height: min(70vh, 28rem);
	overflow: auto;
	padding: 0.5rem 0;
	border: 1px solid var(--sbh-border);
	border-radius: 4px;
	background: var(--sbh-bg-surface);
	box-shadow: 0 16px 40px rgba(74, 47, 53, 0.12);
}

.sbh-catalog-search__group {
	padding: 0.35rem 0 0.5rem;
}

.sbh-catalog-search__group-title {
	margin: 0;
	padding: 0.4rem 1rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sbh-text-secondary);
}

.sbh-catalog-search__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 1rem;
	color: inherit;
	text-decoration: none;
}

.sbh-catalog-search__item:hover,
.sbh-catalog-search__item:focus {
	background: rgba(74, 47, 53, 0.05);
	outline: none;
}

.sbh-catalog-search__item-logo {
	flex: 0 0 2.5rem;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sbh-border);
	background: #fff;
	overflow: hidden;
}

.sbh-catalog-search__item-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.sbh-catalog-search__item-logo-fallback {
	font-family: var(--sbh-font-display);
	font-weight: 600;
	color: var(--sbh-bg-emphasis);
}

.sbh-catalog-search__item-name {
	display: block;
	font-weight: 600;
	color: var(--sbh-bg-emphasis);
}

.sbh-catalog-search__item-meta {
	display: block;
	font-size: 0.85rem;
	color: var(--sbh-text-secondary);
}

.sbh-catalog-search__empty,
.sbh-catalog-search__status {
	margin: 0;
	padding: 0.85rem 1rem;
	font-size: 0.95rem;
	color: var(--sbh-text-secondary);
}

.sbh-catalog-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.sbh-catalog-section-head__link {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--sbh-bg-emphasis);
	text-decoration: none;
	border-bottom: 1px solid rgba(74, 47, 53, 0.25);
}

.sbh-catalog-section-head__link:hover {
	border-bottom-color: var(--sbh-bg-emphasis);
}

.sbh-catalog-empty {
	padding: 2rem 1.5rem;
	border: 1px dashed rgba(74, 47, 53, 0.22);
	background: rgba(255, 255, 255, 0.45);
	text-align: left;
}

.sbh-catalog-empty__title {
	margin: 0 0 0.5rem;
	font-family: var(--sbh-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--sbh-bg-emphasis);
}

.sbh-catalog-empty__text {
	margin: 0;
	max-width: 40rem;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--sbh-text-secondary);
}

.sbh-brands-grid--compact {
	grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
}

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

.sbh-catalog-cats__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	background: var(--sbh-bg-surface);
	border: 1px solid var(--sbh-border);
	transition: border-color 0.2s var(--sbh-ease), transform 0.2s var(--sbh-ease);
}

.sbh-catalog-cats__link:hover,
.sbh-catalog-cats__link:focus-visible {
	border-color: rgba(74, 47, 53, 0.35);
	transform: translateY(-2px);
	outline: none;
}

.sbh-catalog-cats__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background:
		linear-gradient(145deg, rgba(74, 47, 53, 0.05), transparent 60%),
		var(--sbh-bg-canvas);
}

.sbh-catalog-cats__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sbh-catalog-cats__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-family: var(--sbh-font-display);
	font-size: 2rem;
	font-weight: 600;
	color: rgba(74, 47, 53, 0.35);
}

.sbh-catalog-cats__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1rem 1.1rem 1.15rem;
	flex: 1;
}

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

.sbh-catalog-cats__desc {
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--sbh-text-secondary);
}

.sbh-catalog-cats__meta {
	margin-top: auto;
	padding-top: 0.35rem;
	font-size: 0.82rem;
	color: var(--sbh-text-secondary);
}

.sbh-catalog-cats__cta {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--sbh-bg-emphasis);
}

@media (max-width: 980px) {
	.sbh-catalog-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.sbh-catalog-hero__layout {
		grid-template-columns: 1fr;
	}

	.sbh-catalog-hero__visual,
	.sbh-catalog-hero__photo,
	.sbh-catalog-hero__placeholder {
		min-height: 15rem;
	}
}

@media (max-width: 640px) {
	.sbh-catalog-cats {
		grid-template-columns: 1fr;
	}

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