/**
 * Каркас как в dist/html/main.html — только style-base (без сайдбара и ресайзера).
 * Эталон: local/dist/html/style-base.css
 */

html {
	scrollbar-gutter: stable;
	background-color: #f9f9f7;
}

body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #f9f9f7;
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Липкая зона шапки на всю ширину окна; внутри — .ea-page-width */
.ea-header-shell {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin-top: 4px;
	background-color: transparent;
	border-bottom: 1px solid transparent;
	backdrop-filter: none;
	box-shadow: none;
	transition:
		margin-top 0.22s ease,
		background-color 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease,
		backdrop-filter 0.22s ease;
	flex-shrink: 0;
}

.ea-header-shell.ea-header-shell--scrolled {
	margin-top: 0;
	background-color: rgba(255, 255, 255, 0.75);
	border-bottom-color: rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(12px);
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

/* max-w-7xl (80rem), горизонтальные поля 12px */
.ea-page-width {
	box-sizing: border-box;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	min-width: 0;
	padding-left: 12px;
	padding-right: 12px;
}

.ea-page-width.ea-page-stretch {
	flex: 1;
	min-height: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ea-footer-shell {
	margin-top: auto;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	flex-shrink: 0;
	min-height: 3rem;
}

#header {
	min-width: 0;
	max-width: 100%;
}

#footer {
	min-width: 0;
	max-width: 100%;
	flex-shrink: 0;
	min-height: 3rem;
}

#bx-workarea {
	display: flex;
	flex: 1;
	gap: 0;
	min-height: 400px;
	max-width: 100%;
	margin: 0;
	width: 100%;
	min-width: 0;
}

#bx-workarea-main {
	flex: 1;
	min-width: 0;
	margin: 0;
	/* Зазор от шапки и до футера (как local/example/style-base.css) */
	padding-top: 40px;
	padding-bottom: 80px;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
	#bx-workarea-main {
		padding-top: 24px;
	}

	.ea-breadcrumbs-slot {
		height: 1.75rem;
	}
}

@media (min-width: 1024px) {
	#bx-workarea-main {
		padding-top: 24px;
	}
}

@media (max-width: 767px) {
	#bx-workarea-main {
		width: 100%;
		min-width: 0;
		padding-top: 16px;
		padding-bottom: 32px;
	}
}

/* Слот под крошки: фиксированная высота с md — контент ниже не прыгает при монтировании React */
.ea-breadcrumbs-slot {
	min-width: 0;
	max-width: 100%;
	flex-shrink: 0;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.ea-breadcrumbs-slot {
		height: 2.25rem;
	}
}

@media (min-width: 1024px) {
	.ea-breadcrumbs-slot {
		height: 1.75rem;
	}
}

#breadcrumbs {
	min-width: 0;
	max-width: 100%;
}

/* Плашка под комплектацией на детальной (как panelCallout в форме) */
.ea-vd-seller-info-notice {
	display: flex;
	gap: 0.75rem;
	margin: 0;
	padding: 0.75rem 0.875rem;
	background-color: #f3f4f6;
	border-radius: 10px;
	box-sizing: border-box;
}

.ea-vd-seller-info-notice__icon {
	flex-shrink: 0;
	padding-top: 0.125rem;
	color: #6b7280;
	line-height: 0;
}

.ea-vd-seller-info-notice__icon svg {
	display: block;
}

.ea-vd-seller-info-notice__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.375;
	color: #374151;
}

/* Общая 404 (несуществующие страницы и лоты) */
.ea-body--404 #bx-workarea-main {
	padding-top: 0;
	padding-bottom: 0;
}

.ea-body--404 .ea-page-stretch {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	min-height: 0;
}

.ea-page-404 {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	padding: 1.5rem 0 2rem;
	box-sizing: border-box;
}

.ea-page-404__card {
	box-sizing: border-box;
	width: 100%;
	max-width: 32rem;
	margin: 0 auto;
	padding: 1rem 1.5rem 1.5rem;
	text-align: center;
}

.ea-page-404__code {
	margin: 0 0 0.75rem;
	font-size: clamp(3.25rem, 12vw, 5.5rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.05em;
	background: linear-gradient(
		135deg,
		#004b6d 0%,
		var(--ea-brand-primary-hover, #148a75) 48%,
		var(--ea-brand-primary, #17a48b) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ea-page-404__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: #004b6d;
}

.ea-page-404__text {
	margin: 0 0 1.25rem;
	font-size: 15px;
	line-height: 1.5;
	color: #4b5563;
}

.ea-page-404__btn,
.ea-page-404__btn:link,
.ea-page-404__btn:visited,
.ea-page-404__btn:hover,
.ea-page-404__btn:active,
.ea-page-404__btn:focus,
.ea-page-404__btn:focus-visible {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 1.25rem;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	background-color: var(--ea-brand-primary, #17a48b);
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(23, 164, 139, 0.28);
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ea-page-404__btn:hover,
.ea-page-404__btn:focus-visible {
	background-color: var(--ea-brand-primary-hover, #148a75);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(23, 164, 139, 0.34);
}
