.wccs-showcase-section {
	width: 100%;
	box-sizing: border-box;
	padding: var(--wccs-pad-top, 48px) 16px var(--wccs-pad-bottom, 48px);
}

.wccs-showcase-section .wccs-inner {
	max-width: var(--wccs-max, 1200px);
	margin: 0 auto;
}

/*
 * Section title + subtitle: flex keeps them centered even when a theme or
 * Elementor parent uses flex/left-aligned headings.
 */
.wccs-showcase-section .wccs-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto 40px;
	max-width: 52rem;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.wccs-showcase-section .wccs-title {
	margin: 0 0 10px;
	font-size: clamp(1.75rem, 2.4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-align: center !important;
	width: 100%;
}

.wccs-showcase-section .wccs-subtitle {
	margin: 0;
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	line-height: 1.5;
	font-weight: 400;
	text-align: center !important;
	width: 100%;
}

.wccs-showcase-section .wccs-empty {
	text-align: center;
	margin: 0;
	padding: 24px 12px;
	opacity: 0.75;
}

.wccs-showcase-section .wccs-grid {
	display: grid;
	grid-template-columns: repeat(var(--wccs-cols-mobile, 2), minmax(0, 1fr));
	gap: var(--wccs-gap, 20px);
}

/*
 * Elementor + some themes may force widget internals to `display:block` or `display:flex`
 * (sometimes `flex-direction: column`), which collapses the grid into a single column/row.
 * We intentionally win specificity here so the layout remains a proper responsive grid.
 */
.wccs-showcase-section.wccs-elementor-widget .wccs-grid,
.elementor .wccs-showcase-section .wccs-grid,
.wccs-showcase-section .wccs-grid {
	display: grid !important;
	grid-auto-flow: row;
	align-items: stretch;
	justify-items: stretch;
}

@media (min-width: 600px) {
	.wccs-showcase-section .wccs-grid {
		grid-template-columns: repeat(var(--wccs-cols-tablet, 3), minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.wccs-showcase-section .wccs-grid {
		grid-template-columns: repeat(var(--wccs-cols-desktop, 6), minmax(0, 1fr));
	}
}

@media (min-width: 600px) {
	.wccs-showcase-section.wccs-elementor-widget .wccs-grid,
	.elementor .wccs-showcase-section .wccs-grid {
		grid-template-columns: repeat(var(--wccs-cols-tablet, 3), minmax(0, 1fr)) !important;
	}
}

@media (min-width: 960px) {
	.wccs-showcase-section.wccs-elementor-widget .wccs-grid,
	.elementor .wccs-showcase-section .wccs-grid {
		grid-template-columns: repeat(var(--wccs-cols-desktop, 6), minmax(0, 1fr)) !important;
	}
}

/*
 * Grid cell wrapper: category link + supplementary SEO copy (visually hidden; remains in DOM for crawlers).
 * Focus-within reveals the block for keyboard users who tab into supplemental links.
 */
.wccs-showcase-section .wccs-tile-wrap,
.wccs-homepage-sections .wccs-tile-wrap {
	display: flex;
	flex-direction: column;
	min-width: 0;
	position: relative;
}

.wccs-showcase-section .wccs-seo-supplement,
.wccs-homepage-sections .wccs-seo-supplement {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.wccs-showcase-section .wccs-seo-supplement:focus-within,
.wccs-homepage-sections .wccs-seo-supplement:focus-within {
	position: static;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	overflow: visible;
	margin: 8px 0 0;
	padding: 8px;
	background: rgba(255, 255, 255, 0.96);
	z-index: 2;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
	border-radius: var(--wccs-radius, 4px);
}

/* Category cards: white surface so catalogue art with white backdrops never sits on the section tint. */
.wccs-showcase-section .wccs-tile,
.wccs-homepage-sections .wccs-tile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border-radius: var(--wccs-radius, 4px);
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wccs-showcase-section .wccs-tile:hover,
.wccs-showcase-section .wccs-tile:focus-visible,
.wccs-homepage-sections .wccs-tile:hover,
.wccs-homepage-sections .wccs-tile:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	outline: none;
}

/*
 * Image well: matches section tint (--wccs-section-bg on parent).
 * Images are absolutely positioned so object-fit:cover always fills the 4:3 box—no gray/white bands
 * from percentage-height quirks or theme img backgrounds.
 */
.wccs-showcase-section .wccs-img-wrap,
.wccs-homepage-sections .wccs-img-wrap {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: var(--wccs-img-well-bg, var(--wccs-section-bg, #f9f7f4));
}

/* Kill theme defaults that add gray behind catalogue JPEGs. */
.wccs-showcase-section .wccs-img-wrap img.wccs-thumb,
.wccs-showcase-section .wccs-img-wrap img,
.wccs-homepage-sections .wccs-img-wrap img.wccs-thumb,
.wccs-homepage-sections .wccs-img-wrap img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	background-color: transparent;
}

.wccs-showcase-section .wccs-img-wrap picture,
.wccs-homepage-sections .wccs-img-wrap picture {
	position: absolute;
	inset: 0;
	display: block;
	margin: 0;
}

.wccs-showcase-section .wccs-img-wrap picture img,
.wccs-homepage-sections .wccs-img-wrap picture img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	background-color: transparent;
}

/* Optional letterbox mode: padding uses same tint as section so bands are not neutral gray. */
.wccs-showcase-section--img-contain .wccs-img-wrap img.wccs-thumb,
.wccs-showcase-section--img-contain .wccs-img-wrap img,
.wccs-homepage-sections--img-contain .wccs-img-wrap img.wccs-thumb,
.wccs-homepage-sections--img-contain .wccs-img-wrap img,
.wccs-showcase-section--img-contain .wccs-img-wrap picture img,
.wccs-homepage-sections--img-contain .wccs-img-wrap picture img {
	object-fit: contain;
	background-color: transparent;
}

/* Optional: soften pure-white JPEG/PNG backdrops into the section tone. */
.wccs-tile--multiply .wccs-img-wrap {
	isolation: isolate;
}

.wccs-showcase-section .wccs-tile--multiply .wccs-img-wrap img.wccs-thumb,
.wccs-showcase-section .wccs-tile--multiply .wccs-img-wrap img,
.wccs-showcase-section .wccs-tile--multiply .wccs-img-wrap picture img,
.wccs-homepage-sections .wccs-tile--multiply .wccs-img-wrap img.wccs-thumb,
.wccs-homepage-sections .wccs-tile--multiply .wccs-img-wrap img,
.wccs-homepage-sections .wccs-tile--multiply .wccs-img-wrap picture img {
	mix-blend-mode: multiply;
}

.wccs-showcase-section .wccs-label-block {
	padding: 14px 12px 16px;
	text-align: center;
	font-size: 0.78rem;
	line-height: 1.35;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wccs-showcase-section .wccs-strong {
	font-weight: 700;
}

.wccs-showcase-section .wccs-muted {
	font-weight: 400;
	margin-left: 2px;
}

/* Mega menu / mobile drawer: keep a fixed 2- or 3-column grid inside narrow flyouts. */
.wccs-showcase-section.wccs-showcase--mega-menu {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	box-sizing: border-box;
}

.wccs-showcase-section.wccs-showcase--mega-menu .wccs-inner {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

.wccs-showcase-section.wccs-showcase--mega-menu .wccs-header {
	margin-bottom: 14px;
	max-width: none;
}

.wccs-showcase-section.wccs-showcase--mega-menu .wccs-title {
	font-size: clamp(0.95rem, 3.5vw, 1.15rem);
	margin-bottom: 6px;
}

.wccs-showcase-section.wccs-showcase--mega-menu .wccs-subtitle {
	font-size: 0.8rem;
	line-height: 1.35;
}

.wccs-showcase-section.wccs-showcase--mega-menu .wccs-tile-wrap {
	min-width: 0;
	width: 100%;
}

.wccs-showcase-section.wccs-showcase--mega-menu .wccs-tile {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.wccs-showcase-section.wccs-showcase--mega-menu .wccs-img-wrap {
	aspect-ratio: 1 / 1;
}

.wccs-showcase-section.wccs-showcase--mega-menu .wccs-label-block {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.18em;
	text-align: center;
	min-height: 3rem;
	padding: 8px 6px 10px;
	font-size: 0.62rem;
	line-height: 1.28;
	font-weight: 700;
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: auto;
}

/* Let names wrap/stack on small screens; desktop mega uses one line (see @media min-width:960px below). */

/* Desktop mega: headings on one horizontal line where possible */
@media (min-width: 960px) {
	.wccs-showcase-section.wccs-showcase--mega-menu .wccs-label-block {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: baseline;
		justify-content: center;
		gap: 0.35em;
		min-height: 2.75rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.wccs-showcase-section.wccs-showcase--mega-menu .wccs-label-block .wccs-strong,
	.wccs-showcase-section.wccs-showcase--mega-menu .wccs-label-block .wccs-muted {
		display: inline;
		max-width: none;
		white-space: nowrap;
	}
}

.elementor-nav-menu--dropdown .wccs-showcase--mega-menu,
.elementor-widget-nav-menu .elementor-nav-menu--dropdown .wccs-showcase--mega-menu,
ul.sub-menu .wccs-showcase--mega-menu,
.mega-menu .wccs-showcase--mega-menu,
.max-mega-menu .wccs-showcase--mega-menu,
li.menu-item-has-children .sub-menu .wccs-showcase--mega-menu {
	flex: 0 0 auto;
	align-self: stretch;
	min-width: 0;
}

/*
 * Elementor / Max Mega Menu shells often use flex-column wrappers that flatten grids.
 * Mega mode sets --wccs-cols-{mobile|tablet|desktop} inline (fall back to --wccs-mega-cols).
 */
.wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
.elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
.elementor-widget-nav-menu .elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
.elementor-widget-html .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
.elementor-widget-shortcode .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
.dialog-widget-content .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
.elementor-popup-modal .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
.elementor-location-popup .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
.e-off-canvas .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
.max-mega-menu .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
.mega-menu .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid {
	display: grid !important;
	grid-auto-flow: row !important;
	gap: var(--wccs-gap, 12px) !important;
	grid-template-columns: repeat(var(--wccs-cols-mobile, var(--wccs-mega-cols, 2)), minmax(72px, 1fr)) !important;
	align-items: stretch !important;
	justify-items: stretch !important;
}

@media (min-width: 600px) {
	.wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-widget-nav-menu .elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-widget-html .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-widget-shortcode .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.dialog-widget-content .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-popup-modal .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-location-popup .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.e-off-canvas .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.max-mega-menu .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.mega-menu .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid {
		grid-template-columns: repeat(var(--wccs-cols-tablet, var(--wccs-mega-cols, 2)), minmax(72px, 1fr)) !important;
	}
}

@media (min-width: 960px) {
	.wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-widget-nav-menu .elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-widget-html .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-widget-shortcode .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.dialog-widget-content .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-popup-modal .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-location-popup .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.e-off-canvas .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.max-mega-menu .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.mega-menu .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid {
		grid-template-columns: repeat(var(--wccs-cols-desktop, var(--wccs-mega-cols, 2)), minmax(72px, 1fr)) !important;
	}
}

/*
 * Phone + tablet mega: after base grid rules, force one tile per row, hide thumbnails, stack labels.
 * Container queries are not used on desktop anymore so wide viewports keep --wccs-cols-desktop (e.g. 5).
 */
@media (max-width: 959px) {
	.wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-widget-nav-menu .elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-widget-html .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-widget-shortcode .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.dialog-widget-content .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-popup-modal .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.elementor-location-popup .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.e-off-canvas .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.max-mega-menu .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid,
	.mega-menu .wccs-showcase-section.wccs-showcase--mega-menu .wccs-grid {
		grid-template-columns: 1fr !important;
	}

	.wccs-showcase-section.wccs-showcase--mega-menu .wccs-img-wrap,
	.elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu .wccs-img-wrap,
	.elementor-widget-nav-menu .elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu .wccs-img-wrap {
		display: none !important;
	}

	.wccs-showcase-section.wccs-showcase--mega-menu .wccs-label-block {
		flex-direction: column;
		flex-wrap: nowrap;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		min-height: 2.5rem;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.wccs-showcase-section.wccs-showcase--mega-menu .wccs-label-block .wccs-strong,
	.wccs-showcase-section.wccs-showcase--mega-menu .wccs-label-block .wccs-muted {
		display: block;
		max-width: 100%;
		margin-left: 0;
		text-align: center;
		white-space: normal;
	}
}

/* Desktop: keep primary horizontal menu from wrapping to a second row when there is room */
@media (min-width: 960px) {
	.elementor-nav-menu--layout-horizontal:not(.elementor-nav-menu--dropdown) > .elementor-nav-menu {
		flex-wrap: nowrap !important;
	}
}

.elementor-nav-menu--dropdown .wccs-showcase-section.wccs-showcase--mega-menu,
.elementor-widget-html .wccs-showcase-section.wccs-showcase--mega-menu,
.elementor-widget-shortcode .wccs-showcase-section.wccs-showcase--mega-menu,
.elementor-popup-modal .wccs-showcase-section.wccs-showcase--mega-menu {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
	align-self: stretch !important;
}

/* Responsive columns inside nav dropdowns when mega mode is off (HTML/shortcode embed). */
.elementor-nav-menu--dropdown .wccs-showcase-section:not(.wccs-showcase--mega-menu) .wccs-grid,
.elementor-widget-nav-menu .elementor-nav-menu--dropdown .wccs-showcase-section:not(.wccs-showcase--mega-menu) .wccs-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--wccs-cols-mobile, 2), minmax(0, 1fr)) !important;
}

@media (min-width: 600px) {
	.elementor-nav-menu--dropdown .wccs-showcase-section:not(.wccs-showcase--mega-menu) .wccs-grid,
	.elementor-widget-nav-menu .elementor-nav-menu--dropdown .wccs-showcase-section:not(.wccs-showcase--mega-menu) .wccs-grid {
		grid-template-columns: repeat(var(--wccs-cols-tablet, 3), minmax(0, 1fr)) !important;
	}
}

@media (min-width: 960px) {
	.elementor-nav-menu--dropdown .wccs-showcase-section:not(.wccs-showcase--mega-menu) .wccs-grid,
	.elementor-widget-nav-menu .elementor-nav-menu--dropdown .wccs-showcase-section:not(.wccs-showcase--mega-menu) .wccs-grid {
		grid-template-columns: repeat(var(--wccs-cols-desktop, 6), minmax(0, 1fr)) !important;
	}
}
