/* Atolyeman category mega-menu — a single FULL-WIDTH panel under the header,
   ~1/3 viewport height (Oakywood-style), populated with the hovered category's
   products. Positioned by JS (top = header bottom). */

.at-mega {
	position: fixed;
	left: 0;
	right: 0;
	top: 120px; /* overridden by JS */
	z-index: 900;
	background: var(--at-surface, #fff);
	border-top: 1px solid var(--at-border, #e5e0d8);
	border-bottom: 1px solid var(--at-border, #e5e0d8);
	box-shadow: 0 18px 34px rgba(28, 26, 23, .10);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity .18s ease, transform .18s ease;
}
.at-mega.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.at-mega__container {
	max-width: var(--at-container, 1280px);
	margin-inline: auto;
	padding: 32px 24px;
	min-height: 32vh;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 40px;
	align-items: start;
}

.at-mega__aside {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-right: 1px solid var(--at-border, #e5e0d8);
	padding-right: 24px;
}
.at-mega__cat {
	font-family: var(--at-font-display, Georgia, serif);
	font-size: var(--at-fs-500, 1.625rem);
	line-height: 1.15;
	color: var(--at-text, #1c1a17);
}
.at-mega__all {
	color: var(--at-accent, #8a6d4b);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
.at-mega__all:hover { color: var(--at-accent-hover, #6f5638); }

.at-mega__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(0, 180px));
	gap: 24px;
}
.at-mega__item {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--at-text, #1c1a17);
}
.at-mega__img {
	aspect-ratio: 1 / 1;
	background: var(--at-surface, #fff);
	border: 1px solid rgba(28, 26, 23, .10);
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow .18s ease;
}
.at-mega__item:hover .at-mega__img {
	box-shadow: 0 8px 20px rgba(28, 26, 23, .10);
}
.at-mega__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12px;
	display: block;
}
.at-mega__name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	margin-top: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.at-mega__price { font-size: 13px; font-weight: 700; margin-top: 3px; }
.at-mega__price del { color: var(--at-text-muted, #6b6560); font-weight: 400; }

@media (max-width: 782px) {
	.at-mega { display: none; }
}
