/**
 * Estilos del mega-menu Marca -> Modelo -> Año -> Cilindraje.
 * Ver mega-menu-vehiculos.js para el detalle de la logica.
 *
 * Replica el mockup aprobado por el usuario (Opcion C ajustada, canvas
 * /design https://claude.ai/code/artifact/2c801fb9-8cb8-4034-ab60-4b4fe279841b,
 * artboard OptionC.dc.html): 3 columnas Modelo/Año/Cilindraje, listas planas
 * (no chips con borde) con estado seleccionado en fondo durazno claro
 * #fef6ec + texto naranja #f5911e (color de marca real del sitio, tomado
 * literal del mockup), cilindraje como tags solidos naranjas, y el CTA +
 * nota de "el filtro de la tienda queda pre-cargado" dentro de la ultima
 * columna, no como fila aparte.
 */

.wd-header-cats li.menu-item {
	position: relative;
}

.grc-mega-panel {
	display: none;
	position: absolute;
	top: -1px;
	left: 100%;
	z-index: 200;
	width: 590px;
	background: #ffffff;
	border: 1px solid #eeeeee;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
	font-family: "Poppins", system-ui, sans-serif;
}

.wd-header-cats li.menu-item:hover .grc-mega-panel,
.wd-header-cats li.menu-item:focus-within .grc-mega-panel {
	display: flex;
	animation: grc-mega-fade 220ms ease-out;
}

@keyframes grc-mega-fade {
	from {
		opacity: 0;
		transform: translateX(-6px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.grc-mega-col {
	padding: 20px;
	flex-shrink: 0;
	border-right: 1px solid #f0f0f0;
}
.grc-mega-col:last-child {
	border-right: none;
}

.grc-mega-col-modelo {
	width: 220px;
}
.grc-mega-col-anio {
	width: 150px;
	padding-right: 12px;
}
.grc-mega-col-motor {
	width: 220px;
}

.grc-mega-col h4 {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #999999;
}

.grc-mega-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: 260px;
	overflow-y: auto;
	padding-right: 4px;
}

.grc-mega-col-motor .grc-mega-list {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.grc-mega-hint {
	margin: 0;
	font-size: 12px;
	color: #999999;
}

.grc-mega-chip {
	appearance: none;
	border: none;
	background: transparent;
	color: #555555;
	text-align: left;
	border-radius: 4px;
	padding: 6px 8px;
	margin: 0 -8px;
	font-size: 13px;
	cursor: pointer;
	transition: all 200ms ease-out;
	line-height: 1.4;
}

.grc-mega-col-anio .grc-mega-chip {
	font-size: 12px;
	padding: 5px 8px;
}

.grc-mega-col-motor .grc-mega-chip {
	background: #f6f6f6;
	color: #555555;
	padding: 7px 12px;
	margin: 0;
	font-weight: 600;
	font-size: 12px;
}

.grc-mega-chip:hover {
	background: #fef6ec;
	color: #f5911e;
}

.grc-mega-chip.is-selected {
	background: #fef6ec;
	color: #f5911e;
	font-weight: 700;
}

.grc-mega-col-motor .grc-mega-chip.is-selected {
	background: #f5911e;
	color: #ffffff;
}

.grc-mega-cta {
	margin-top: 20px;
}

.grc-mega-cta-link {
	display: block;
	padding: 12px;
	background: #fafafa;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #777777;
	text-decoration: none;
	line-height: 1.5;
	transition: all 200ms ease-out;
}

.grc-mega-cta-link:hover {
	background: #fef6ec;
	color: #f5911e;
}

.grc-mega-cta-link[aria-disabled="true"] {
	color: #bbbbbb;
	cursor: default;
	pointer-events: none;
}

.grc-mega-cta-note {
	margin-top: 12px;
	padding: 12px;
	background: #fff7ec;
	border: 1px dashed #f5c98a;
	border-radius: 4px;
	font-size: 11px;
	color: #a05a00;
	line-height: 1.5;
}

@media (max-width: 1024px) {
	.grc-mega-panel {
		position: static;
		width: auto;
		flex-direction: column;
		box-shadow: none;
		border: none;
		border-top: 1px solid #f0f0f0;
	}
	.grc-mega-col {
		border-right: none;
		border-bottom: 1px solid #f0f0f0;
	}
}
