/* Mega menu (see inc/mega-menu.php). Desktop only: the mobile sidebar uses a different walker. */
/* Every mega menu opens in the same place: centered under the whole nav bar, not under its own item. */
.header-bottom-nav:has(.okc-mega-item) { position: static; }
.nav > li.okc-mega-item { position: static !important; }
.okc-mega-item > .okc-mega-panel { top: 100%; }
.okc-mega-item.current-dropdown > .okc-mega-panel { left: 50% !important; right: auto !important; margin: 0 !important; transform: translateX(-50%); }
/* No pointer triangle: with a fixed position it would point at nothing (the link already has its own chevron). */
.nav-dropdown-has-arrow li.okc-mega-item:before, .nav-dropdown-has-arrow li.okc-mega-item:after { display: none !important; }

.okc-mega-panel {
	width: 1040px;                     /* not the full page: Flatsome's container is full-width on this site */
	max-width: calc(100vw - 40px);
	padding: 0 !important;
	border: 0 !important;
	border-top: 4px solid var(--fs-color-primary) !important;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .18) !important;
	overflow: hidden;
}
.okc-mega-inner {
	display: grid;
	grid-template-columns: minmax(200px, 1fr) minmax(300px, 1.4fr) minmax(260px, 1fr);
	gap: 0;
	min-height: 320px;
}

/* Columns 1 and 2 */
.okc-mega-col { padding: 32px 34px; }
.okc-mega-cats { border-right: 1px solid rgba(0, 0, 0, .07); }
.okc-mega-col h4 {
	margin: 0 0 14px;
	font-size: .85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--fs-color-primary);
}
.okc-mega-col ul { margin: 0; padding: 0; list-style: none; }
.okc-mega-col li { margin: 0; }

/* Sub-categories */
.okc-mega-cats a {
	display: block;
	padding: 8px 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: inherit;
	transition: transform .15s, color .15s;
}
.okc-mega-cats a:hover { color: var(--fs-color-primary); transform: translateX(5px); }

/* Filters: color dots (name only on hover) and text pills */
.okc-mega-block + .okc-mega-block { margin-top: 26px; }
.okc-mega-items { display: flex; flex-wrap: wrap; gap: 12px; }
.okc-swatch {
	position: relative;
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c, #ddd);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), inset 0 -4px 6px rgba(0, 0, 0, .12), inset 0 3px 4px rgba(255, 255, 255, .45);
	transition: transform .15s;
}
.okc-swatch.is-multi { background: conic-gradient(#ff4d6d, #ffb703, #8ac926, #1982c4, #9b5de5, #ff4d6d); }
.okc-swatch:hover, .okc-swatch:focus-visible { transform: scale(1.2); outline: none; z-index: 2; }
.okc-swatch::after {
	content: attr(data-label);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%) translateY(4px);
	padding: 4px 9px;
	border-radius: 6px;
	background: #222;
	color: #fff;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s, transform .15s;
}
.okc-swatch:hover::after, .okc-swatch:focus-visible::after { opacity: 1; transform: translateX(-50%); }

.okc-mega-pills .okc-mega-items { gap: 8px; }
.okc-pill {
	display: inline-block;
	padding: 5px 13px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
	color: inherit;
	transition: background .15s, color .15s, border-color .15s;
}
.okc-pill:hover { background: var(--fs-color-primary); border-color: var(--fs-color-primary); color: #fff; }

/* Column 3: graphic */
.okc-mega-promo {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 320px;
	padding: 32px 34px;
	color: #fff !important;
	background-color: var(--fs-color-primary);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
/* Fallback without an image: candy dots + gradient */
.okc-mega-promo:not(.has-image) {
	background-image:
		radial-gradient(circle at 18% 22%, #ffd166 0 26px, transparent 27px),
		radial-gradient(circle at 82% 16%, #ef476f 0 38px, transparent 39px),
		radial-gradient(circle at 88% 46%, #06d6a0 0 26px, transparent 27px),
		radial-gradient(circle at 52% 14%, #118ab2 0 22px, transparent 23px),
		linear-gradient(135deg, var(--fs-color-primary), #7b2cbf);
}
.okc-mega-promo.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0) 65%);
}
.okc-mega-promo { transition: background-size .4s; }
.okc-mega-promo.has-image:hover { background-size: 108%; }
.okc-promo-text { position: relative; display: block; }
.okc-promo-kicker {
	display: block;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .9;
}
.okc-promo-title {
	display: block;
	margin: 4px 0 14px;
	font-size: 2.1rem;
	font-weight: 800;
	line-height: 1.1;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.okc-promo-cta {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	background: #fff;
	color: var(--fs-color-primary);
	font-size: .85rem;
	font-weight: 700;
	transition: transform .15s;
}
.okc-mega-promo:hover .okc-promo-cta { transform: translateX(4px); }
.okc-mega-hint { margin: 0; font-size: .85rem; font-style: italic; opacity: .7; }

/* Shop by Candy with headings: groups flow in two columns, and the first column gets wider */
.okc-mega-inner.has-groups { grid-template-columns: minmax(340px, 2fr) minmax(300px, 1.4fr) minmax(240px, 1fr); }
.okc-mega-groups { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; align-items: start; }
.okc-mega-group { break-inside: avoid; margin-bottom: 18px; }
.okc-mega-group-title, .okc-mega-group-title a {
	margin-bottom: 4px;
	font-size: 1rem;
	font-weight: 800;
	color: inherit;
}
.okc-mega-group-title a:hover { color: var(--fs-color-primary); }
.okc-mega-group a { font-weight: 500; }
.okc-mega-group-title a { font-weight: 800; padding: 0; }
.okc-mega-group li a { padding: 4px 0; font-size: .95rem; }

/* Picture swatches (jelly beans): rectangular, tooltip still on hover */
.okc-mega-swatches .okc-mega-items { gap: 10px 9px; }
.okc-swatch.has-img { width: 60px; height: 40px; border-radius: 8px; box-shadow: none; background: none; }
.okc-swatch.has-img img { display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.okc-swatch.has-img:hover, .okc-swatch.has-img:focus-visible { transform: scale(1.12); }
