/**
 * Exxepanna v1.2.0 homepage refinement
 * Loaded after every legacy layer to keep the hero/category UI deterministic.
 */

/* Reserve a real header zone for the category control above the hero copy. */
.hero-revision .hero-side .hero-intro {
	box-sizing: border-box;
	padding-top: clamp(5.75rem, 8vw, 6.75rem);
}

/* Premium, readable category drawer. */
.hero-revision .hero-category-panel {
	width: min(100%, 430px);
	padding: 5.4rem 1.15rem 1.35rem;
	background: #fff;
	border-right: 1px solid #dedbd5;
	box-shadow: 18px 0 40px rgba(17, 17, 17, 0.11);
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

.hero-revision .hero-category-panel-head {
	margin: 0 0 1rem;
	padding: 0 0.15rem 0.75rem;
	border-bottom: 1px solid #e6e3de;
	font-size: 0.73rem;
	line-height: 1.4;
}

.hero-revision .hero-category-close {
	display: inline-grid !important;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	padding: 0;
	background: #fff;
	color: #171717;
	border: 1px solid #dedbd5;
	border-radius: 10px;
	cursor: pointer;
}

.hero-revision .hero-category-close:hover,
.hero-revision .hero-category-close:focus-visible {
	background: #171717;
	border-color: #171717;
	color: #fff;
	outline: none;
}

.hero-revision .hero-category-close svg {
	display: block;
	width: 18px;
	height: 18px;
}

.hero-revision .hero-category-list {
	gap: 0.6rem;
	margin: 0;
	padding: 0;
}

.hero-revision .hero-category-item,
.hero-revision .hero-category-row {
	min-width: 0;
}

.hero-revision .hero-category-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	gap: 0.5rem;
	align-items: stretch;
}

.hero-revision .hero-category-item:not(.has-children) > .hero-category-row {
	grid-template-columns: minmax(0, 1fr);
}

.hero-revision .hero-category-row > a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.8rem;
	min-height: 52px;
	padding: 0.75rem 0.9rem;
	background: #f6f4f1;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 0.86rem;
	line-height: 1.35;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-revision .hero-category-row > a span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.hero-revision .hero-category-row > a em {
	justify-self: end;
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.hero-revision .hero-category-row > a:hover,
.hero-revision .hero-category-row > a:focus-visible {
	background: #fff;
	border-color: #b9b4ab;
	transform: translateX(2px);
	outline: none;
}

.hero-revision .hero-category-branch-toggle {
	width: 44px;
	min-width: 44px;
	min-height: 52px;
	padding: 0;
	background: #fff;
	border: 1px solid #dedbd5;
	border-radius: 10px;
	font-size: 1rem;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hero-revision .hero-category-branch-toggle:hover,
.hero-revision .hero-category-branch-toggle:focus-visible,
.hero-revision .hero-category-branch-toggle[aria-expanded="true"] {
	background: #171717;
	border-color: #171717;
	color: #fff;
	outline: none;
}

.hero-revision .hero-category-children {
	margin: 0.5rem 0 0 0.75rem;
	padding: 0 0 0 0.7rem;
	border-left: 1px solid #dedbd5;
}

.hero-revision .hero-category-children .hero-category-row > a {
	min-height: 46px;
	background: #fbfaf8;
	font-size: 0.81rem;
}

.hero-revision .hero-category-panel::-webkit-scrollbar {
	width: 6px;
}

.hero-revision .hero-category-panel::-webkit-scrollbar-track {
	background: transparent;
}

.hero-revision .hero-category-panel::-webkit-scrollbar-thumb {
	background: #c8c4bd;
	border-radius: 999px;
}

@media (max-width: 768px) {
	.hero-revision .hero-side .hero-intro {
		padding-top: 5.5rem;
	}

	.hero-revision .hero-category-panel {
		width: min(92vw, 410px);
		padding: 5.25rem 0.85rem 1.1rem;
	}
}

@media (max-width: 430px) {
	.hero-revision .hero-category-panel {
		width: 100vw;
	}

	.hero-revision .hero-category-row {
		grid-template-columns: minmax(0, 1fr) 42px;
	}

	.hero-revision .hero-category-branch-toggle {
		width: 42px;
		min-width: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-revision .hero-category-row > a {
		transition: none;
	}
}
