/* Climatecera mega menu (Products) — tabs + featured image + collection grid. */
.cc-mega {
	--cc-mega-accent: var(--e-global-color-primary, #0f4c81);
	--cc-mega-panel-bg: #eef0f3;
	--cc-mega-ink: #1d1d1f;
	--cc-mega-muted: #6b6f76;
	--cc-mega-cols: 5;
	--cc-mega-radius: 14px;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--container-max-width, 1290px);
	margin: 0 auto;
	padding: 18px 22px 22px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
	color: var(--cc-mega-ink);
	text-align: left;
	font-family: var(--e-global-typography-text-font-family, inherit);
}
.cc-mega *, .cc-mega *::before, .cc-mega *::after { box-sizing: border-box; }

/* Tabs */
.cc-mega__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}
.cc-mega__tab.cc-mega__tab {
	appearance: none;
	border: 0;
	margin: 0;
	padding: 10px 22px;
	border-radius: 999px;
	background: #ececef;
	color: var(--cc-mega-muted);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.cc-mega__tab.cc-mega__tab:hover,
.cc-mega__tab.cc-mega__tab:focus-visible {
	background: #dfe2e7;
	color: var(--cc-mega-ink);
	outline: none;
}
.cc-mega__tab.cc-mega__tab.is-active {
	background: var(--cc-mega-accent);
	color: #fff;
}

/* Panels */
.cc-mega__panels {
	background: var(--cc-mega-panel-bg);
	border-radius: var(--cc-mega-radius);
	padding: 22px;
}
.cc-mega__panel {
	display: grid;
	grid-template-columns: minmax(220px, 300px) 1fr;
	gap: 26px;
	align-items: start;
}
.cc-mega__panel[hidden] { display: none; }

/* Featured column */
.cc-mega__feature {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.cc-mega__feature-media {
	display: block;
	aspect-ratio: 1 / 1.1;
	border-radius: var(--cc-mega-radius);
	overflow: hidden;
	background: #fff;
}
.cc-mega__feature-media img,
.cc-mega__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}
.cc-mega .cc-mega__all.cc-mega__all {
	display: block;
	padding: 15px 20px;
	border-radius: 10px;
	background: var(--cc-mega-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
	transition: filter 0.2s, transform 0.2s;
}
.cc-mega__all.cc-mega__all:hover,
.cc-mega__all.cc-mega__all:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	transform: translateY(-1px);
}

/* Collection grid */
.cc-mega__grid {
	display: grid;
	grid-template-columns: repeat(var(--cc-mega-cols), minmax(0, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.cc-mega__item { margin: 0; padding: 0; }
.cc-mega .cc-mega__link.cc-mega__link {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	color: #fff;
	text-decoration: none;
	padding: 0;
}
.cc-mega__media {
	position: absolute;
	inset: 0;
	display: block;
	transition: transform 0.4s ease;
}
.cc-mega__link:hover .cc-mega__media { transform: scale(1.05); }
.cc-mega__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 34px 10px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cc-mega__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e6e8ec;
	color: #9aa0a8;
}
.cc-mega__feature-media .cc-mega__placeholder { position: static; height: 100%; }
.cc-mega__empty {
	margin: 0;
	padding: 24px 0;
	color: var(--cc-mega-muted);
	font-size: 15px;
}

/* Inside the Unita header dropdown: the theme anchors the full-width panel to the
   nav widget; climatecera-mega-menu.js repositions it to span the viewport
   (inline left/width); the panel itself stays centred at the container width. */
.main-navigation ul.mega-menu > li.mega-menu-item { padding: 0; }
.main-navigation ul.menu > li.has-mega-menu > ul.mega-menu.has-cc-mega { padding: 0 16px; background: transparent; box-shadow: none; }
.has-mega-menu .mega-menu.sub-menu .cc-mega { margin-top: 0; }

/* Compact / mobile */
@media (max-width: 1200px) {
	.cc-mega { --cc-mega-cols: 4; }
}
@media (max-width: 991px) {
	.cc-mega { --cc-mega-cols: 3; padding: 14px; border-radius: 14px; box-shadow: none; }
	.cc-mega__panel { grid-template-columns: 1fr; gap: 16px; }
	.cc-mega__feature { flex-direction: row; align-items: center; }
	.cc-mega__feature-media { width: 120px; aspect-ratio: 1 / 1; flex: 0 0 auto; }
	.cc-mega__all.cc-mega__all { flex: 1 1 auto; }
	.cc-mega__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
	.cc-mega__tab.cc-mega__tab { flex: 0 0 auto; }
}
@media (max-width: 575px) {
	.cc-mega { --cc-mega-cols: 2; }
}
