/* Category Landing Builder public styles. Every selector is scoped to .clb-. */
.clb-landing,
.clb-results {
	box-sizing: border-box;
	background: #f5f7ee;
	color: #111827;
}

.clb-landing *,
.clb-results * {
	box-sizing: border-box;
}

.clb-landing {
	width: 100%;
	clear: both;
	max-height: 300px;
	overflow: hidden;
	/* The surrounding WoodMart archive container supplies the shared content
	 * alignment. Do not add a second inset on either desktop or mobile. */
	padding: 6px 0 10px;
	font-family: inherit;
}

.clb-woodmart-slot {
	clear: both;
	width: 100%;
	flex: 0 0 100%;
	order: -10;
	margin: 0 !important;
	padding: 0 !important;
}

.clb-landing a,
.clb-results a {
	text-decoration: none;
}

.clb-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 8px;
	color: #536276;
	font-size: 12px;
	line-height: 1.4;
}

.clb-breadcrumb a {
	color: #40526a;
}

.clb-breadcrumb a:hover,
.clb-breadcrumb a:focus-visible {
	color: #111827;
	text-decoration: underline;
}

.clb-breadcrumb-separator {
	color: #8390a1;
	font-size: 17px;
}

.clb-home-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	font-size: 18px;
	line-height: 1;
}


.clb-category-intro {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
}

.clb-heading {
	min-width: 0;
}

.clb-heading h1 {
	margin: 0;
	color: #0c1525;
	font-size: clamp(22px, 2.3vw, 32px);
	font-weight: 750;
	letter-spacing: -0.045em;
	line-height: 1.12;
}

.clb-title-row {
	display: flex;
	align-items: baseline;
	gap: 9px;
	min-width: 0;
}

.clb-current-category-count {
	flex: 0 0 auto;
	color: #6e7c8b;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.clb-description-block {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	max-width: 890px;
	margin: 30px 0 42px;
}

.clb-hero-thumbnail {
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	border-radius: 9px;
	overflow: hidden;
	background: #e7eadf;
}

.clb-hero-thumbnail img,
.clb-generic-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.clb-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.clb-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, .62) 48%, rgba(255, 255, 255, .62) 52%, transparent 53%),
		linear-gradient(45deg, #d8ded1, #e9ede3);
}

.clb-description-content {
	min-width: 0;
	flex: 1 1 auto;
}

.clb-description-copy {
	max-width: 730px;
	display: -webkit-box;
	overflow: hidden;
	color: #536276;
	font-size: 13px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* This selector follows the base description rule intentionally, so it wins
 * against its 730px default. The passage spans the same full archive width
 * on both parent and child category pages. */
.clb-description-copy.clb-full-description {
	width: 100%;
	max-width: 100%;
	margin: -4px 0 10px;
}

.clb-description-copy.clb-is-clamped {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.clb-description-copy p,
.clb-description-copy ul,
.clb-description-copy ol {
	margin: 0;
}

.clb-heading .clb-description-copy p,
.clb-heading .clb-description-copy li {
	display: inline;
}

.clb-heading .clb-description-copy li::after {
	content: ' ';
}

.clb-description-copy.clb-is-clamped p,
.clb-description-copy.clb-is-clamped li {
	display: inline;
}

.clb-description-copy.clb-is-clamped li::after {
	content: ' ';
}

.clb-description-copy a {
	color: #304e71;
	text-decoration: underline;
}

.clb-see-more {
	margin: 7px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1f344c;
	font: inherit;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: .075em;
	cursor: pointer;
}

.clb-see-more:hover,
.clb-see-more:focus-visible {
	text-decoration: underline;
}

.clb-carousel-section {
	margin: 0;
}

.clb-carousel {
	position: relative;
}

.clb-card-track {
	display: grid;
	/* Nine complete child categories plus half of the next cue horizontal scroll. */
	grid-auto-columns: calc((100% - 85px) / 9.5);
	grid-auto-flow: column;
	gap: 10px;
	overflow-x: auto;
	padding: 1px 1px 6px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.clb-card-track::-webkit-scrollbar {
	display: none;
}

.clb-category-card {
	display: block;
	min-width: 0;
	padding: 0;
	color: #152033;
	scroll-snap-align: start;
}

.clb-category-card:not(div):hover .clb-card-image,
.clb-category-card:not(div):focus-visible .clb-card-image {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(30, 46, 56, .15);
}

.clb-card-image {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 5px;
	border-radius: 9px;
	overflow: hidden;
	background: #fff;
	transition: transform .18s ease, box-shadow .18s ease;
}

.clb-card-label {
	display: block;
	overflow: hidden;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: -.015em;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.clb-card-count {
	display: block;
	min-height: 14px;
	margin: -1px 0 3px;
	color: #758194;
	font-size: 10px;
	line-height: 1.3;
}

.clb-carousel-nav {
	position: absolute;
	z-index: 2;
	top: calc(50% - 25px);
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid #d5dbd1;
	border-radius: 50%;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 2px 9px rgba(20, 31, 39, .12);
	color: #182638;
	cursor: pointer;
}

.clb-carousel-nav svg {
	width: 19px;
	height: 19px;
}

.clb-carousel-nav:disabled {
	opacity: .46;
	cursor: default;
}

.clb-carousel-prev {
	left: -14px;
}

.clb-carousel-next {
	right: -14px;
}

.clb-carousel.is-looping .clb-card-track {
	scroll-snap-type: none;
}

/* WoodMart renders its own archive title, breadcrumb, and filter triggers
 * before the loop. The compact CLB header replaces those category-only items. */
body.clb-woodmart-category .wd-page-title,
body.clb-woodmart-category .page-title-default,
body.clb-woodmart-category .woocommerce-breadcrumb:not(.clb-breadcrumb),
body.clb-woodmart-category .wd-show-sidebar-btn,
body.clb-woodmart-category .woodmart-show-sidebar-btn,
body.clb-woodmart-category .wd-filter-btn,
body.clb-woodmart-category .wd-offcanvas-btn,
body.clb-woodmart-category .wd-shop-filter {
	display: none !important;
}

/* Remove the empty archive-title gap so the compact category section starts
 * directly beneath WoodMart's navigation/header. */
body.clb-woodmart-category .main-page-wrapper,
body.clb-woodmart-category .site-content,
body.clb-woodmart-category .shop-content-area,
body.clb-woodmart-category .wd-shop-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.clb-woodmart-category .website-wrapper .main-page-wrapper,
body.clb-woodmart-category .shop-content-area > .woocommerce,
body.clb-woodmart-category .shop-content-area > .woocommerce > .products,
body.clb-woodmart-category .clb-woodmart-slot:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* A configured-but-empty WoodMart shop sidebar leaves a large blank first
 * column on some child categories. Category landing pages use one full-width
 * archive column, so the compact header always starts at the same left edge
 * as the product content. */
body.clb-woodmart-category .area-sidebar-shop,
body.clb-woodmart-category .shop-sidebar,
body.clb-woodmart-category .sidebar-container,
body.clb-woodmart-category .content-with-sidebar > aside,
body.clb-woodmart-category .content-layout-wrapper > aside,
body.clb-woodmart-category #shop-sidebar,
body.clb-woodmart-category .wd-sidebar {
	display: none !important;
}

body.clb-woodmart-category .shop-content-area,
body.clb-woodmart-category .wd-shop-content,
body.clb-woodmart-category .content-with-sidebar .site-content,
body.clb-woodmart-category .main-page-wrapper .content-area,
body.clb-woodmart-category .content-with-sidebar > .site-content,
body.clb-woodmart-category .content-with-sidebar > .shop-content-area,
body.clb-woodmart-category .content-layout-wrapper > .site-content,
body.clb-woodmart-category .content-layout-wrapper > .shop-content-area,
body.clb-woodmart-category .site-content[class*="col-"],
body.clb-woodmart-category .shop-content-area[class*="col-"] {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* WoodMart uses this wrapper on archive layouts with an optional sidebar. */
body.clb-woodmart-category .content-with-sidebar {
	grid-template-columns: minmax(0, 1fr) !important;
}

body.clb-woodmart-category .content-layout-wrapper {
	display: block !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.clb-woodmart-category .content-layout-wrapper > .site-content,
body.clb-woodmart-category .content-layout-wrapper > .shop-content-area {
	display: block !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Added by the small WoodMart alignment detector in the public script when a
 * custom archive layout retains an otherwise empty left column. */
body.clb-woodmart-category .clb-force-full-archive-row {
	display: block !important;
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.clb-woodmart-category .clb-hidden-archive-sidebar {
	display: none !important;
}

.clb-filter-bar {
	display: flex;
	align-items: center;
	gap: 11px;
	padding-top: 21px;
	border-top: 1px solid #dde2d9;
}

.clb-filter-toggle,
.clb-filter-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 39px;
	border: 1px solid #cbd3cf;
	border-radius: 999px;
	background: #fbfcf8;
	color: #182638;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}

.clb-filter-toggle {
	flex: 0 0 auto;
	padding: 0 16px;
	letter-spacing: .055em;
}

.clb-filter-toggle svg {
	width: 17px;
	height: 17px;
}

.clb-filter-pills {
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
}

.clb-filter-pills::-webkit-scrollbar {
	display: none;
}

.clb-filter-pill {
	padding: 0 14px;
}

.clb-filter-pill.is-active {
	border-color: #1c3d5c;
	background: #e8f0ef;
}

.clb-filter-toggle:hover,
.clb-filter-toggle:focus-visible,
.clb-filter-pill:hover,
.clb-filter-pill:focus-visible {
	border-color: #607688;
	outline: none;
}

.clb-chevron {
	margin-top: -2px;
	font-size: 17px;
	font-weight: 400;
}

.clb-filter-popover {
	position: absolute;
	z-index: 10012;
	width: min(286px, calc(100vw - 28px));
	padding: 10px;
	border: 1px solid #d9dfd8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 32px rgba(24, 38, 56, .18);
}

.clb-popover-title {
	display: block;
	padding: 4px 5px 9px;
	color: #26384b;
	font-size: 13px;
	font-weight: 750;
}

.clb-popover-option {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 5px;
	border-radius: 6px;
	color: #2b3949;
	font-size: 13px;
	cursor: pointer;
}

.clb-popover-option:hover {
	background: #f2f5f0;
}

.clb-popover-option input {
	accent-color: #254b6e;
}

.clb-option-count {
	margin-left: auto;
	color: #798596;
	font-size: 12px;
}

.clb-popover-message {
	margin: 0;
	padding: 10px 5px;
	color: #65748a;
	font-size: 13px;
}

.clb-drawer-backdrop {
	position: fixed;
	z-index: 10010;
	inset: 0;
	background: rgba(15, 23, 33, .32);
}

.clb-filter-drawer {
	position: fixed;
	z-index: 10011;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(390px, 90vw);
	padding: 25px;
	transform: translateX(102%);
	background: #fbfcf8;
	box-shadow: -12px 0 34px rgba(21, 32, 44, .18);
	transition: transform .24s ease;
	overflow-y: auto;
}

.clb-filter-drawer.is-open {
	transform: translateX(0);
}

.clb-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 17px;
	border-bottom: 1px solid #e0e4dc;
}

.clb-drawer-header h2 {
	margin: 0;
	color: #101b2b;
	font-size: 20px;
	letter-spacing: .02em;
}

.clb-drawer-close {
	width: 36px;
	height: 36px;
	border: 1px solid #d3dad4;
	border-radius: 50%;
	background: transparent;
	color: #213447;
	font-size: 26px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.clb-drawer-help {
	margin: 18px 0;
	color: #586a7e;
	font-size: 14px;
	line-height: 1.55;
}

.clb-drawer-filter-list {
	display: grid;
	gap: 9px;
}

.clb-drawer-filter-list .clb-filter-pill {
	justify-content: space-between;
	width: 100%;
	padding: 0 16px;
}

.clb-clear-filters {
	margin-top: 26px;
	padding: 0;
	border: 0;
	background: none;
	color: #2d4f73;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.clb-results {
	padding: 0 clamp(18px, 5vw, 76px) clamp(32px, 5vw, 76px);
}

.clb-results-status {
	margin-bottom: 18px;
	color: #647286;
	font-size: 13px;
}

.clb-theme-results-status {
	margin: -8px 0 14px;
	color: #647286;
	font-size: 13px;
}

.clb-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.clb-product-grid .product,
.clb-generic-product-card {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.clb-product-grid .product img {
	border-radius: 10px;
}

.clb-generic-product-image {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: #e5e9df;
}

.clb-generic-product-card h3 {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.35;
}

.clb-generic-product-card h3 a {
	color: #172438;
}

.clb-no-results {
	grid-column: 1 / -1;
	margin: 12px 0;
	color: #5f7085;
}

body.clb-drawer-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.clb-card-track {
		grid-auto-columns: minmax(126px, 19vw);
	}

	.clb-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.clb-landing {
		padding-top: 2px;
	}

	.clb-breadcrumb {
		margin-bottom: 7px;
	}

	.clb-category-intro {
		gap: 10px;
		margin-bottom: 10px;
	}

	.clb-full-description {
		margin-bottom: 8px;
	}

	.clb-description-block {
		gap: 13px;
		margin: 22px 0 31px;
	}

	.clb-hero-thumbnail {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}

	.clb-heading h1 {
		font-size: 22px;
	}

	.clb-title-row {
		gap: 6px;
	}

	.clb-current-category-count {
		font-size: 11px;
	}

	.clb-description-copy {
		font-size: 12px;
	}

	.clb-card-track {
		/* Exactly four cards are visible before the continuous carousel moves. */
		grid-auto-columns: calc((100% - 24px) / 4);
		gap: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
	}

	.clb-card-label {
		font-size: 12px;
	}

	.clb-carousel-nav {
		display: none !important;
	}

	.clb-filter-bar {
		align-items: flex-start;
		gap: 8px;
		padding-top: 17px;
	}

	.clb-filter-toggle {
		padding: 0 12px;
	}

	.clb-filter-pills {
		padding-bottom: 4px;
	}

	.clb-filter-pill {
		padding: 0 12px;
	}

	.clb-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 13px;
	}
}
