/**
 * Mega menu — frontend styles.
 */

/* Hidden on mobile; shown via inline media query from settings. */
.ccp-mega-menu {
	display: none;
}

@media (min-width: 921px) {
	.main-header-menu,
	.ast-main-header-bar-alignment,
	.site-header-primary-section-left,
	.site-header-primary-section-right {
		position: static;
	}

	.menu-item.ccp-has-mega-menu,
	#menu-item-252.ccp-has-mega-menu {
		position: static;
	}

	#menu-item-252.ccp-has-mega-menu > .menu-link,
	#menu-item-252.ccp-has-mega-menu > a {
		position: relative;
	}

	.ccp-mega-menu {
		position: absolute;
		left: 0;
		right: 0;
		width: 100%;
		top: 100%;
		z-index: 99999;
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
		pointer-events: none;
	}

	.ccp-mega-menu.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.ccp-mega-menu__panel {
		max-width: 1200px;
		margin: 0 auto;
		padding: 0;
		background: #fff;
		border: 1px solid #e5e5e5;
		border-top: 2px solid #1a1a1a;
		box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
		overflow: hidden;
		display: flex;
		flex-direction: row;
		align-items: stretch;
	}

	.ccp-mega-menu__section {
		display: flex;
		flex-direction: column;
		padding: 28px 40px 32px;
		flex: 3 1 0;
		min-width: 0;
		order: 1;
	}

	.ccp-mega-menu__section--bathroom {
		background: #e3e3e3;
		order: 2;
		flex: 2 1 0;
	}

	.ccp-mega-menu__section-head {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 24px;
		margin-bottom: 24px;
	}

	.ccp-mega-menu__section-heading {
		flex: 1 1 auto;
		min-width: 0;
		text-align: left;
	}

	.ccp-mega-menu__section-title {
		margin: 0;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: #111;
		text-align: left;
	}

	.ccp-mega-menu__section-rule {
		display: block;
		width: 72px;
		height: 0;
		margin: 10px 0 0;
		border: 0;
		border-top: 2px solid #111;
	}

	.ccp-mega-menu__section-link {
		flex: 0 0 auto;
		margin-top: 2px;
		color: #333;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.4;
		text-decoration: none;
		white-space: nowrap;
		transition: color 0.15s ease;
	}

	.ccp-mega-menu__section-link:hover,
	.ccp-mega-menu__section-link:focus {
		color: #000;
		text-decoration: underline;
	}

	.ccp-mega-menu__section-footer {
		display: flex;
		justify-content: flex-end;
		margin-top: auto;
		padding-top: 18px;
	}

	.ccp-mega-menu__columns {
		display: grid;
		gap: 24px;
		flex: 1 1 auto;
	}

	.ccp-mega-menu__columns--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ccp-mega-menu__columns--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ccp-mega-menu__column-title {
		margin: 0 0 16px;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: #111;
		text-align: left;
	}

	.ccp-mega-menu__list {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.ccp-mega-menu__list li + li {
		margin-top: 10px;
	}

	.ccp-mega-menu__list a {
		color: #444;
		text-decoration: none;
		font-size: 14px;
		line-height: 1.4;
		transition: color 0.15s ease;
	}

	.ccp-mega-menu__list a:hover,
	.ccp-mega-menu__list a:focus {
		color: #000;
	}

	.ccp-mega-menu__empty {
		margin: 0;
		font-size: 13px;
		color: #999;
		font-style: italic;
	}

	/* Astra header: anchor mega menu panel */
	.site-header,
	#masthead,
	.ast-primary-header-bar,
	.main-header-bar,
	.ccp-mega-menu-header {
		position: relative;
	}
}

@media (max-width: 920px) {
	.ccp-mega-menu {
		display: none !important;
	}
}
