/* Soma Optic category -> Elementor bridge (8.7.5). */
.wd-soma-category-elementor{
	position:relative;
	z-index:1;
	width:100%;
	min-width:0;
	margin:0;
	padding:0;
}

/* Boxed means exactly the width already provided by Woodmart's normal page container. */
.wd-soma-category-elementor.is-boxed{
	width:100%;
	max-width:100%;
	margin-inline:0;
}

/* Full width breaks only the Elementor landing out of the normal Woodmart container. */
.wd-soma-category-elementor.is-full-width{
	left:50%;
	width:100vw;
	max-width:100vw;
	margin-inline:0;
	transform:translateX(-50%);
}

.wd-soma-category-elementor.is-full-width>.elementor{
	width:100%;
	max-width:none;
	margin:0;
	padding:0;
}

/* Container-based Elementor: root containers are truly edge-to-edge; nested containers keep their own spacing. */
.wd-soma-category-elementor.is-full-width>.elementor>.e-con.e-parent{
	width:100%;
	max-width:none !important;
	margin-inline:0 !important;
	padding-inline:0 !important;
	--padding-left:0px;
	--padding-right:0px;
}

/* Legacy section-based Elementor compatibility. */
.wd-soma-category-elementor.is-full-width>.elementor>.elementor-section.elementor-top-section{
	width:100%;
	max-width:none;
	margin-inline:0;
	padding-inline:0;
}
.wd-soma-category-elementor.is-full-width>.elementor>.elementor-section.elementor-top-section>.elementor-container{
	width:100%;
	max-width:none !important;
}

.wd-soma-category-elementor .elementor-widget:last-child,
.wd-soma-category-elementor .elementor-widget:last-child>.elementor-widget-container{
	margin-bottom:0;
}


/* 8.7.6: full-width category canvas, boxed content. Elementor full-width containers may stretch their background, but their content follows the normal Woodmart page width. */
.wd-soma-category-elementor{--wd-soma-page-width:var(--wd-container-w,1222px);overflow:visible;}
.wd-soma-category-elementor.is-full-width :where(.elementor-section.elementor-section-boxed > .elementor-container,.e-con.e-con-boxed > .e-con-inner){max-width:var(--wd-soma-page-width);width:100%;margin-inline:auto;}
.wd-soma-category-elementor.is-full-width :where(.e-con.e-con-full,.elementor-section.elementor-section-stretched,.elementor-section.elementor-section-full_width){width:100%;max-width:none;}
.wd-soma-category-elementor.is-full-width :where(.e-con.e-con-full) > .e-con-inner{max-width:var(--wd-soma-page-width);width:100%;margin-inline:auto;}
@media(max-width:1240px){.wd-soma-category-elementor{--wd-soma-page-width:calc(100vw - 30px);}}


/* 8.7.7: correct category Elementor width model.
   The category/preview canvas is full-bleed so section/container backgrounds can
   reach both viewport edges. Boxed Elementor content remains the normal Woodmart
   page width through .e-con-inner / .elementor-container. */
.wd-soma-category-elementor,
body.single-soma_cat_layout .site-content,
body.single-soma_cat_layout .entry-content,
body.single-soma_cat_layout .elementor {
	--wd-soma-page-width: min(var(--wd-container-w, var(--container-width, 1222px)), calc(100vw - 30px));
}

body.single-soma_cat_layout .main-page-wrapper > .container,
body.single-soma_cat_layout .main-page-wrapper > .container-fluid,
body.single-soma_cat_layout .site-content,
body.single-soma_cat_layout .content-layout-wrapper,
body.single-soma_cat_layout .article-body-container,
body.single-soma_cat_layout .entry-content {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
	padding-inline: 0 !important;
}

.wd-soma-category-elementor,
.wd-soma-category-elementor.is-boxed,
.wd-soma-category-elementor.is-full-width {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-inline: 0;
	padding-inline: 0;
	transform: translateX(-50%);
	overflow: visible;
}

.wd-soma-category-elementor > .elementor,
body.single-soma_cat_layout .elementor {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

.wd-soma-category-elementor > .elementor > :where(.e-con.e-parent, .e-con.e-con-boxed, .elementor-section.elementor-top-section),
body.single-soma_cat_layout .elementor > :where(.e-con.e-parent, .e-con.e-con-boxed, .elementor-section.elementor-top-section) {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}

.wd-soma-category-elementor :where(.e-con.e-con-boxed > .e-con-inner, .elementor-section.elementor-section-boxed > .elementor-container),
body.single-soma_cat_layout :where(.e-con.e-con-boxed > .e-con-inner, .elementor-section.elementor-section-boxed > .elementor-container) {
	width: 100%;
	max-width: var(--wd-soma-page-width) !important;
	margin-inline: auto !important;
}

.wd-soma-category-elementor :where(.e-con.e-con-full, .elementor-section.elementor-section-stretched, .elementor-section.elementor-section-full_width),
body.single-soma_cat_layout :where(.e-con.e-con-full, .elementor-section.elementor-section-stretched, .elementor-section.elementor-section-full_width) {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}

@media (max-width: 1240px) {
	.wd-soma-category-elementor,
	body.single-soma_cat_layout .site-content,
	body.single-soma_cat_layout .entry-content,
	body.single-soma_cat_layout .elementor {
		--wd-soma-page-width: calc(100vw - 24px);
	}
}

/* 8.7.8: native crawlable WooCommerce pagination fallback for Elementor category landings. */
.wd-soma-category-native-pagination {
	width: 100%;
	max-width: var(--wd-soma-page-width, var(--wd-container-w, 1222px));
	margin: 24px auto 0;
	padding-inline: 12px;
	box-sizing: border-box;
}
.wd-soma-category-native-pagination .products-footer,
.wd-soma-category-native-pagination .woocommerce-pagination {
	margin-inline: auto;
}
@media (max-width: 767px) {
	.wd-soma-category-native-pagination {
		margin-top: 18px;
		padding-inline: 10px;
	}
	.wd-soma-category-native-pagination .page-numbers {
		max-width: 100%;
		flex-wrap: wrap;
	}
}


/* 8.8: Elementor-designed product categories are full-width, no-sidebar archives.
   The native WooCommerce loop/pagination remains intact; this only fixes the
   layout canvas that was leaving a sidebar-sized empty column. */
body.wd-soma-category-fullwidth-archive .main-page-wrapper > .container,
body.wd-soma-category-fullwidth-archive .main-page-wrapper > .container-fluid,
body.wd-soma-category-fullwidth-archive .wd-soma-cat-fullwidth-container {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
	padding-inline: 0 !important;
}

body.wd-soma-category-fullwidth-archive .content-layout-wrapper {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}

body.wd-soma-category-fullwidth-archive .site-content {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
	padding-inline: 0 !important;
}

body.wd-soma-category-fullwidth-archive .area-sidebar-shop,
body.wd-soma-category-fullwidth-archive .wd-show-sidebar-btn {
	display: none !important;
}

body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor.is-boxed,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor.is-full-width {
	left: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-inline: 0 !important;
	transform: none !important;
}

body.wd-soma-category-fullwidth-archive .wd-load-more.wd-products-load-more,
body.wd-soma-category-fullwidth-archive .wd-load-more-loader {
	display: none !important;
}

body.wd-soma-category-fullwidth-archive .woocommerce-pagination,
body.wd-soma-category-fullwidth-archive .wd-pagination {
	overflow-x: auto;
	max-width: 100%;
}

/* 8.8.1: first-page landing stays full-bleed, but native catalog/description/FAQ content
   returns to the same boxed width as the header/footer. Paged archives are handled by
   PHP and use the normal Woodmart shop archive with sidebar. */
body.wd-soma-category-fullwidth-archive {
	--wd-soma-page-width: min(var(--wd-container-w, var(--container-width, 1222px)), calc(100vw - 30px));
}

body.wd-soma-category-fullwidth-archive .shop-content-area > :where(
	.shop-loop-head,
	.wd-products-element,
	.products,
	.products-footer,
	.woocommerce-pagination,
	.wd-pagination,
	.term-description,
	.page-description,
	.wd-soma-cat-faq,
	.woocommerce-info,
	.woocommerce-message,
	.woocommerce-error
) {
	width: 100%;
	max-width: var(--wd-soma-page-width) !important;
	margin-inline: auto !important;
	box-sizing: border-box;
}

body.wd-soma-category-fullwidth-archive .shop-content-area > :where(
	.shop-loop-head,
	.products-footer,
	.term-description,
	.page-description,
	.wd-soma-cat-faq
) {
	padding-inline: 12px;
}

body.wd-soma-category-fullwidth-archive .shop-content-area > .wd-soma-category-elementor {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-inline: calc(50% - 50vw) !important;
	padding-inline: 0 !important;
}

body.wd-soma-category-fullwidth-archive .shop-content-area > .wd-soma-category-elementor + .shop-loop-head {
	margin-top: 28px !important;
}

/* Woodmart slider background must behave like a real cover image, not a stretched image. */
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .flickity-viewport,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .flickity-slider,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slide {
	max-width: 100%;
}

body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper .wd-slide-bg {
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper .wd-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

@media (max-width: 1240px) {
	body.wd-soma-category-fullwidth-archive {
		--wd-soma-page-width: calc(100vw - 24px);
	}
}

@media (max-width: 767px) {
	body.wd-soma-category-fullwidth-archive .shop-content-area > :where(
		.shop-loop-head,
		.products-footer,
		.term-description,
		.page-description,
		.wd-soma-cat-faq
	) {
		padding-inline: 10px;
	}
}


/* 8.8.3: Woodmart Slider width control inside Elementor category landings.
   Boxed = same visual width as header/footer content; Full = true viewport banner.
   Background images remain cover, so they crop instead of stretching/distorting. */
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-boxed {
	position: relative !important;
	left: auto !important;
	width: 100% !important;
	max-width: var(--wd-soma-page-width) !important;
	margin-inline: auto !important;
	transform: none !important;
}

body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-full {
	position: relative !important;
	left: 50% !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-inline: 0 !important;
	transform: translateX(-50%) !important;
}

body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-boxed .wd-slide-bg,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-full .wd-slide-bg {
	background-size: cover !important;
	background-repeat: no-repeat !important;
	background-position: center center;
}


/* 8.8.3: when the Woodmart Slider width is left on "according to Elementor container":
   boxed Elementor containers keep the slider boxed; full-width containers make it full-bleed. */
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor :where(.e-con.e-con-boxed, .elementor-section.elementor-section-boxed) .wd-slider-wrapper.wd-soma-slider-width-inherit {
	position: relative !important;
	left: auto !important;
	width: 100% !important;
	max-width: var(--wd-soma-page-width) !important;
	margin-inline: auto !important;
	transform: none !important;
}

body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor :where(.e-con.e-con-full, .elementor-section.elementor-section-full_width, .elementor-section.elementor-section-stretched) .wd-slider-wrapper.wd-soma-slider-width-inherit {
	position: relative !important;
	left: 50% !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-inline: 0 !important;
	transform: translateX(-50%) !important;
}


/* 8.8.4: Woodmart Slider fix.
   Border radius defaults to 0 and must never be applied to .flickity-slider,
   because Flickity moves that inner element with transforms. Applying overflow
   to it can make the slider look frozen. */
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider .flickity-viewport,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper .wd-slide,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper .wd-slide-bg {
	border-radius: 0;
}

body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider .flickity-viewport {
	overflow: hidden;
}

body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider .flickity-slider {
	overflow: visible !important;
	border-radius: 0 !important;
}

body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-full .wd-slider,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-full .wd-slide,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-full .wd-slide-bg,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-inherit .wd-slider,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-inherit .wd-slide,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-inherit .wd-slide-bg,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-boxed .wd-slider,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-boxed .wd-slide,
body.wd-soma-category-fullwidth-archive .wd-soma-category-elementor .wd-slider-wrapper.wd-soma-slider-width-boxed .wd-slide-bg {
	background-size: cover !important;
	background-repeat: no-repeat !important;
	background-position: center center !important;
}


/* 8.8.8: aligned, quiet product-category breadcrumb above the landing/H1. */
.wd-soma-category-top-breadcrumb {
	width: min(100%, var(--wd-soma-page-width, var(--wd-container-w, var(--container-width, 1222px))));
	max-width: var(--wd-soma-page-width, var(--wd-container-w, var(--container-width, 1222px)));
	margin: 0 auto 10px;
	padding: 10px 0 2px;
	box-sizing: border-box;
	color: var(--color-gray-500, #777);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.7;
}

.wd-soma-category-top-breadcrumb .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.wd-soma-category-top-breadcrumb a,
.wd-soma-category-top-breadcrumb .breadcrumb-link {
	color: inherit;
	text-decoration: none;
	transition: color .18s ease;
}

.wd-soma-category-top-breadcrumb a:hover,
.wd-soma-category-top-breadcrumb .breadcrumb-link:hover {
	color: var(--wd-primary-color, #83b735);
}

.wd-soma-category-top-breadcrumb .breadcrumb-last {
	color: var(--color-gray-800, #333);
	font-weight: 500;
}

.wd-soma-breadcrumb-separator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 18px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	color: var(--color-gray-400, #a8a8a8);
	opacity: 1;
	flex: 0 0 22px;
}

.wd-soma-breadcrumb-separator::before {
	content: none !important;
	display: none !important;
}

body.wd-soma-category-has-top-breadcrumb .shop-loop-head .wd-shop-tools > .wd-breadcrumbs {
	display: none !important;
}

@media (max-width: 767px) {
	.wd-soma-category-top-breadcrumb {
		width: calc(100vw - 24px);
		max-width: calc(100vw - 24px);
		margin-bottom: 8px;
		padding: 8px 0 0;
		font-size: 12px;
	}

	.wd-soma-breadcrumb-separator {
		width: 18px;
		flex-basis: 18px;
		font-size: 12px;
	}
}

/* 8.8.13: Keep category breadcrumb aligned with page content and use a clean left arrow separator. */
body.wd-soma-category-fullwidth-archive .shop-content-area > .wd-soma-category-top-breadcrumb,
.wd-soma-category-top-breadcrumb {
	width: min(var(--wd-container-w, var(--container-width, 1222px)), calc(100vw - 30px)) !important;
	max-width: min(var(--wd-container-w, var(--container-width, 1222px)), calc(100vw - 30px)) !important;
	margin-inline: auto !important;
	box-sizing: border-box;
}

.wd-soma-category-top-breadcrumb .woocommerce-breadcrumb {
	gap: 6px;
}

.wd-soma-breadcrumb-separator {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px;
	width: 22px;
	height: 20px;
	margin: 0 1px;
	font-size: 0 !important;
	line-height: 1;
	color: transparent !important;
}

.wd-soma-breadcrumb-separator::before {
	content: "\2190" !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: rgba(31, 39, 64, .055);
	color: #9aa3b2;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

@media (max-width: 767px) {
	body.wd-soma-category-fullwidth-archive .shop-content-area > .wd-soma-category-top-breadcrumb,
	.wd-soma-category-top-breadcrumb {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
	}
}