/* ==========================================================================
   WorkStyle — Shop / Category archive (modern e-commerce)
   Matches homepage: full-bleed shell, --wds-* gutters, spare product cards.
   Loaded only on shop + product taxonomy pages.
   ========================================================================== */

:root {
	--wds-shop-gutter: 53px;
	--wds-shop-gap: 28px;
	--wds-shop-sidebar: 260px;
	--wds-shop-media-bg: #F4F4F5;
	--wds-shop-radius: 0;
}

@media (max-width: 1199.98px) {
	:root {
		--wds-shop-gutter: clamp(18px, 2.5vw, 48px);
		--wds-shop-gap: 20px;
	}
}

@media (max-width: 767.98px) {
	:root {
		--wds-shop-gutter: clamp(16px, 4.5vw, 20px);
		--wds-shop-gap: 16px;
	}
}

/* --------------------------------------------------------------------------
   Full-width shell (home parity)
   -------------------------------------------------------------------------- */

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag,
body.tax-product_brand,
body.post-type-archive-product,
body.woodmart-archive-shop {
	--wd-main-bgcolor: #FFFFFF;
	background-color: #FFFFFF !important;
	background-image: none !important;
}

body.woocommerce-shop .wd-page-wrapper,
body.tax-product_cat .wd-page-wrapper,
body.tax-product_tag .wd-page-wrapper,
body.tax-product_brand .wd-page-wrapper,
body.post-type-archive-product .wd-page-wrapper,
body.woodmart-archive-shop .wd-page-wrapper,
body.woocommerce-shop .main-page-wrapper,
body.tax-product_cat .main-page-wrapper,
body.tax-product_tag .main-page-wrapper,
body.post-type-archive-product .main-page-wrapper,
body.woodmart-archive-shop .main-page-wrapper,
body.woocommerce-shop .wd-page-content,
body.tax-product_cat .wd-page-content,
body.post-type-archive-product .wd-page-content,
body.woodmart-archive-shop .wd-page-content,
body.woocommerce-shop .wd-content-area,
body.tax-product_cat .wd-content-area,
body.post-type-archive-product .wd-content-area,
body.woodmart-archive-shop .wd-content-area,
body.woocommerce-shop .site-content,
body.tax-product_cat .site-content,
body.post-type-archive-product .site-content,
body.woodmart-archive-shop .site-content {
	background-color: #FFFFFF !important;
	background-image: none !important;
}

body.woocommerce-shop .container.main-wrapper,
body.tax-product_cat .container.main-wrapper,
body.tax-product_tag .container.main-wrapper,
body.tax-product_brand .container.main-wrapper,
body.post-type-archive-product .container.main-wrapper,
body.woodmart-archive-shop .container.main-wrapper,
body.woocommerce-shop .wd-content-layout,
body.tax-product_cat .wd-content-layout,
body.tax-product_tag .wd-content-layout,
body.post-type-archive-product .wd-content-layout,
body.woodmart-archive-shop .wd-content-layout,
body.woocommerce-shop .content-layout-wrapper,
body.tax-product_cat .content-layout-wrapper,
body.post-type-archive-product .content-layout-wrapper,
body.woodmart-archive-shop .content-layout-wrapper {
	max-width: none !important;
	width: 100% !important;
	padding-inline: var(--wds-shop-gutter) !important;
	padding-block: 40px 64px !important;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	body.woocommerce-shop .wd-content-layout,
	body.tax-product_cat .wd-content-layout,
	body.post-type-archive-product .wd-content-layout,
	body.woodmart-archive-shop .wd-content-layout,
	body.woocommerce-shop .content-layout-wrapper,
	body.tax-product_cat .content-layout-wrapper,
	body.post-type-archive-product .content-layout-wrapper,
	body.woodmart-archive-shop .content-layout-wrapper {
		padding-block: 28px 48px !important;
	}
}

/* Content + sidebar grid — breathing room, home gutters */
body.woodmart-archive-shop .wd-content-layout,
body.woocommerce-shop .wd-content-layout,
body.tax-product_cat .wd-content-layout,
body.post-type-archive-product .wd-content-layout {
	column-gap: clamp(28px, 3vw, 48px) !important;
	row-gap: 32px !important;
}

/* Prefer a narrower filter rail so products breathe on wide screens */
@media (min-width: 1200px) {
	body.woodmart-archive-shop.wd-sidebar-enabled .wd-content-layout,
	body.woodmart-archive-shop .wd-content-layout:has(> .wd-sidebar) {
		grid-template-columns: var(--wds-shop-sidebar) minmax(0, 1fr) !important;
	}

	body.woodmart-archive-shop .wd-sidebar.wd-grid-col,
	body.woodmart-archive-shop .wd-content-area.wd-grid-col {
		grid-column: auto !important;
		width: auto !important;
		max-width: none !important;
	}
}

body.woodmart-archive-shop .wd-content-area,
body.woocommerce-shop .wd-content-area,
body.tax-product_cat .wd-content-area,
body.post-type-archive-product .wd-content-area {
	min-width: 0;
}

/* --------------------------------------------------------------------------
   Category title / description / breadcrumbs
   -------------------------------------------------------------------------- */

body.woocommerce-shop .page-title,
body.tax-product_cat .page-title,
body.post-type-archive-product .page-title,
body.woodmart-archive-shop .page-title,
body.woocommerce-shop .title-wrapper,
body.tax-product_cat .title-wrapper,
body.woodmart-archive-shop .title-wrapper {
	margin-bottom: 8px;
}

body.woocommerce-shop .entry-title,
body.tax-product_cat .entry-title,
body.woocommerce-shop .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title,
body.woodmart-archive-shop .woocommerce-products-header .title,
body.tax-product_cat .woocommerce-products-header .title,
body.woodmart-archive-shop .page-title .entry-title,
body.tax-product_cat .page-title .entry-title,
body.woodmart-archive-shop .title-wrapper .title,
body.tax-product_cat .title-wrapper .title {
	font-family: var(--wds-font-heading, 'Space Grotesk', sans-serif) !important;
	font-weight: 500 !important;
	font-size: clamp(28px, 3vw, 36px) !important;
	line-height: 1.2 !important;
	color: var(--wds-color-secondary, #1F2641) !important;
	letter-spacing: -0.02em;
	margin: 0 0 8px !important;
}

body.woocommerce-shop .term-description,
body.tax-product_cat .term-description,
body.woocommerce-shop .page-description,
body.tax-product_cat .page-description,
body.woodmart-archive-shop .term-description,
body.woodmart-archive-shop .page-description {
	font-family: var(--wds-font-body, 'Inter', sans-serif) !important;
	font-size: 15px !important;
	line-height: 1.55 !important;
	color: var(--wds-color-text-muted, #6B6B76) !important;
	margin: 0 0 20px !important;
	max-width: 52em;
}

body.woocommerce-shop .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb,
body.woodmart-archive-shop .woocommerce-breadcrumb,
body.woocommerce-shop .wd-breadcrumbs,
body.tax-product_cat .wd-breadcrumbs,
body.woodmart-archive-shop .wd-breadcrumbs {
	font-family: var(--wds-font-body, 'Inter', sans-serif) !important;
	font-size: 13px !important;
	color: var(--wds-color-text-muted, #6B6B76) !important;
	margin: 0 !important;
}

body.woocommerce-shop .woocommerce-breadcrumb a,
body.tax-product_cat .woocommerce-breadcrumb a,
body.woodmart-archive-shop .woocommerce-breadcrumb a {
	color: var(--wds-color-text-muted, #6B6B76) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

body.woocommerce-shop .woocommerce-breadcrumb a:hover,
body.tax-product_cat .woocommerce-breadcrumb a:hover,
body.woodmart-archive-shop .woocommerce-breadcrumb a:hover {
	color: var(--wds-color-primary, #6A4972) !important;
}

/* --------------------------------------------------------------------------
   Shop toolbar (Show / view / sort)
   -------------------------------------------------------------------------- */

body.woocommerce-shop .shop-loop-head,
body.tax-product_cat .shop-loop-head,
body.post-type-archive-product .shop-loop-head,
body.woodmart-archive-shop .shop-loop-head {
	align-items: flex-end;
	gap: 16px 24px;
	margin-bottom: 28px !important;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--wds-color-border, #E5E5EA);
}

body.woocommerce-shop .wd-shop-tools,
body.tax-product_cat .wd-shop-tools,
body.woodmart-archive-shop .wd-shop-tools {
	gap: 12px 24px;
}

body.woocommerce-shop .wd-products-per-page,
body.tax-product_cat .wd-products-per-page,
body.woocommerce-shop .wd-products-shop-view,
body.tax-product_cat .wd-products-shop-view,
body.woocommerce-shop .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering {
	font-family: var(--wds-font-body, 'Inter', sans-serif) !important;
	font-size: 13px !important;
	color: var(--wds-color-text-muted, #6B6B76) !important;
}

body.woocommerce-shop .wd-products-per-page a,
body.tax-product_cat .wd-products-per-page a,
body.woocommerce-shop .wd-products-shop-view a,
body.tax-product_cat .wd-products-shop-view a {
	color: var(--wds-color-text-muted, #6B6B76) !important;
	transition: color 0.2s ease;
}

body.woocommerce-shop .wd-products-per-page a.current-variation,
body.tax-product_cat .wd-products-per-page a.current-variation,
body.woocommerce-shop .wd-products-per-page a:hover,
body.tax-product_cat .wd-products-per-page a:hover,
body.woocommerce-shop .wd-products-shop-view a.current-variation,
body.tax-product_cat .wd-products-shop-view a.current-variation,
body.woocommerce-shop .wd-products-shop-view a:hover,
body.tax-product_cat .wd-products-shop-view a:hover {
	color: var(--wds-color-secondary, #1F2641) !important;
}

body.woocommerce-shop .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.woodmart-archive-shop .woocommerce-ordering select {
	font-family: var(--wds-font-body, 'Inter', sans-serif) !important;
	font-size: 13px !important;
	color: var(--wds-color-secondary, #1F2641) !important;
	border: 1px solid var(--wds-color-border, #E5E5EA) !important;
	border-radius: var(--wds-shop-radius) !important;
	padding: 8px 32px 8px 12px !important;
	min-height: 40px;
	background-color: #FFFFFF !important;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Product grid
   -------------------------------------------------------------------------- */

body.woocommerce-shop .products.wd-products,
body.tax-product_cat .products.wd-products,
body.post-type-archive-product .products.wd-products,
body.woodmart-archive-shop .products.wd-products {
	--wd-gap: var(--wds-shop-gap) !important;
	--wd-gap-md: 20px !important;
	--wd-gap-sm: 16px !important;
	row-gap: calc(var(--wds-shop-gap) + 12px) !important;
}

/* --------------------------------------------------------------------------
   Product cards — homepage .wds-product-card language
   -------------------------------------------------------------------------- */

body.woocommerce-shop .wd-product,
body.tax-product_cat .wd-product,
body.post-type-archive-product .wd-product,
body.woodmart-archive-shop .wd-product {
	text-align: left !important;
}

body.woocommerce-shop .wd-product .wd-product-wrapper,
body.tax-product_cat .wd-product .wd-product-wrapper,
body.post-type-archive-product .wd-product .wd-product-wrapper,
body.woodmart-archive-shop .wd-product .wd-product-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
}

body.woocommerce-shop .wd-product .wd-product-thumb,
body.tax-product_cat .wd-product .wd-product-thumb,
body.post-type-archive-product .wd-product .wd-product-thumb,
body.woodmart-archive-shop .wd-product .wd-product-thumb {
	position: relative;
	aspect-ratio: 1 / 1.14;
	overflow: hidden;
	background: var(--wds-shop-media-bg) !important;
	border-radius: var(--wds-shop-radius);
	margin-bottom: 14px !important;
}

body.woocommerce-shop .wd-product .wd-product-thumb a.product-image-link,
body.tax-product_cat .wd-product .wd-product-thumb a.product-image-link,
body.post-type-archive-product .wd-product .wd-product-thumb a.product-image-link,
body.woodmart-archive-shop .wd-product .wd-product-thumb a.product-image-link,
body.woocommerce-shop .wd-product .wd-product-img-link,
body.tax-product_cat .wd-product .wd-product-img-link,
body.post-type-archive-product .wd-product .wd-product-img-link,
body.woodmart-archive-shop .wd-product .wd-product-img-link {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: var(--wds-shop-media-bg);
}

body.woocommerce-shop .wd-product .wd-product-thumb img,
body.tax-product_cat .wd-product .wd-product-thumb img,
body.post-type-archive-product .wd-product .wd-product-thumb img,
body.woodmart-archive-shop .wd-product .wd-product-thumb img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@media (hover: hover) {
	body.woocommerce-shop .wd-product:hover .wd-product-thumb img,
	body.tax-product_cat .wd-product:hover .wd-product-thumb img,
	body.post-type-archive-product .wd-product:hover .wd-product-thumb img,
	body.woodmart-archive-shop .wd-product:hover .wd-product-thumb img {
		transform: scale(1.04) !important;
	}
}

/* Soften / de-clutter hover chrome — keep usable, less busy */
body.woocommerce-shop .wd-product .wd-buttons,
body.tax-product_cat .wd-product .wd-buttons,
body.woodmart-archive-shop .wd-product .wd-buttons {
	gap: 6px;
	top: 10px !important;
	inset-inline-end: 10px !important;
}

body.woocommerce-shop .wd-product .wd-buttons > *,
body.tax-product_cat .wd-product .wd-buttons > *,
body.woodmart-archive-shop .wd-product .wd-buttons > * {
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

@media (hover: hover) {
	body.woocommerce-shop .wd-product:hover .wd-buttons > *,
	body.tax-product_cat .wd-product:hover .wd-buttons > *,
	body.woodmart-archive-shop .wd-product:hover .wd-buttons > * {
		opacity: 1;
		transform: translateY(0);
	}
}

body.woocommerce-shop .wd-product .wd-action-btn > a,
body.tax-product_cat .wd-product .wd-action-btn > a,
body.woodmart-archive-shop .wd-product .wd-action-btn > a {
	background: #FFFFFF !important;
	border: 1px solid var(--wds-color-border, #E5E5EA) !important;
	border-radius: var(--wds-shop-radius) !important;
	box-shadow: none !important;
	color: var(--wds-color-secondary, #1F2641) !important;
}

body.woocommerce-shop .wd-product .wd-action-btn > a:hover,
body.tax-product_cat .wd-product .wd-action-btn > a:hover {
	background: var(--wds-color-primary, #6A4972) !important;
	border-color: var(--wds-color-primary, #6A4972) !important;
	color: #FFFFFF !important;
}

/* Hide “Select options” overlay / replace add button on grid for cleaner cards */
body.woocommerce-shop .wd-product .wd-add-btn,
body.tax-product_cat .wd-product .wd-add-btn,
body.post-type-archive-product .wd-product .wd-add-btn,
body.woodmart-archive-shop .wd-product .wd-add-btn,
body.woocommerce-shop .wd-product .hover-content,
body.tax-product_cat .wd-product .hover-content {
	display: none !important;
}

body.woocommerce-shop .wd-product .quick-shop-wrapper,
body.tax-product_cat .wd-product .quick-shop-wrapper {
	display: none !important;
}

/* Swatches under image — senior grid tokens (readable, tappable, crisp) */
body.woocommerce-shop .wd-product .wd-swatches-product,
body.tax-product_cat .wd-product .wd-swatches-product,
body.tax-product_tag .wd-product .wd-swatches-product,
body.post-type-archive-product .wd-product .wd-swatches-product,
body.woodmart-archive-shop .wd-product .wd-swatches-product,
body.woocommerce-shop .wd-product .swatches-on-grid,
body.tax-product_cat .wd-product .swatches-on-grid,
body.woodmart-archive-shop .wd-product .swatches-on-grid {
	--wd-swatch-size: 24px;
	--wd-swatch-w: 24px;
	--wd-swatch-h: 24px;
	--wd-swatch-h-sp: 8px;
	--wd-swatch-v-sp: 8px;
	justify-content: flex-start !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	margin: 0 0 12px !important;
	min-height: 24px !important;
}

body.woocommerce-shop .wd-product .wd-swatch,
body.tax-product_cat .wd-product .wd-swatch,
body.tax-product_tag .wd-product .wd-swatch,
body.post-type-archive-product .wd-product .wd-swatch,
body.woodmart-archive-shop .wd-product .wd-swatch {
	--wd-swatch-w: 24px !important;
	--wd-swatch-h: 24px !important;
	--wd-swatch-size: 24px !important;
	box-sizing: border-box !important;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	min-height: 24px !important;
	border-radius: 2px !important;
	border: 1px solid rgba(31, 38, 65, 0.14) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
	cursor: pointer;
}

body.woocommerce-shop .wd-product .wd-swatch .wd-swatch-bg,
body.tax-product_cat .wd-product .wd-swatch .wd-swatch-bg,
body.woodmart-archive-shop .wd-product .wd-swatch .wd-swatch-bg {
	border-radius: 1px !important;
}

body.woocommerce-shop .wd-product .wd-swatch:hover,
body.tax-product_cat .wd-product .wd-swatch:hover,
body.woodmart-archive-shop .wd-product .wd-swatch:hover,
body.woocommerce-shop .wd-product .wd-swatch:focus-visible,
body.tax-product_cat .wd-product .wd-swatch:focus-visible {
	border-color: rgba(31, 38, 65, 0.38) !important;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.4),
		0 0 0 1px rgba(31, 38, 65, 0.12);
	transform: translateY(-1px);
}

body.woocommerce-shop .wd-product .wd-swatch.wd-active,
body.tax-product_cat .wd-product .wd-swatch.wd-active,
body.woodmart-archive-shop .wd-product .wd-swatch.wd-active,
body.woocommerce-shop .wd-product .wd-swatch-wrap.wd-active .wd-swatch,
body.tax-product_cat .wd-product .wd-swatch-wrap.wd-active .wd-swatch {
	border-color: var(--wds-color-secondary, #1f2641) !important;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.45),
		0 0 0 1px var(--wds-color-secondary, #1f2641);
}

/* Light swatches (white/cream) need a clearer edge */
body.woocommerce-shop .wd-product .wd-swatch.wd-bg[style*="background-color: #fff"],
body.woocommerce-shop .wd-product .wd-swatch.wd-bg[style*="background-color:#fff"],
body.woocommerce-shop .wd-product .wd-swatch.wd-bg[style*="background-color: #FFF"],
body.woocommerce-shop .wd-product .wd-swatch.wd-bg[style*="background-color:#FFF"],
body.woocommerce-shop .wd-product .wd-swatch.wd-bg[style*="background-color: white"],
body.tax-product_cat .wd-product .wd-swatch.wd-bg[style*="background-color: #fff"],
body.tax-product_cat .wd-product .wd-swatch.wd-bg[style*="background-color:#fff"],
body.tax-product_cat .wd-product .wd-swatch.wd-bg[style*="background-color: #FFF"],
body.tax-product_cat .wd-product .wd-swatch.wd-bg[style*="background-color:#FFF"] {
	border-color: rgba(31, 38, 65, 0.22) !important;
}

@media (max-width: 768px) {
	body.woocommerce-shop .wd-product .wd-swatches-product,
	body.tax-product_cat .wd-product .wd-swatches-product,
	body.woodmart-archive-shop .wd-product .wd-swatches-product,
	body.woocommerce-shop .wd-product .swatches-on-grid,
	body.tax-product_cat .wd-product .swatches-on-grid {
		--wd-swatch-size: 22px;
		--wd-swatch-w: 22px;
		--wd-swatch-h: 22px;
		gap: 7px !important;
		min-height: 22px !important;
	}

	body.woocommerce-shop .wd-product .wd-swatch,
	body.tax-product_cat .wd-product .wd-swatch,
	body.woodmart-archive-shop .wd-product .wd-swatch {
		--wd-swatch-w: 22px !important;
		--wd-swatch-h: 22px !important;
		width: 22px !important;
		height: 22px !important;
		min-width: 22px !important;
		min-height: 22px !important;
	}
}

/* Title + price */
body.woocommerce-shop .wd-product .wd-entities-title,
body.tax-product_cat .wd-product .wd-entities-title,
body.woocommerce-shop .wd-product .woocommerce-loop-product__title,
body.tax-product_cat .wd-product .woocommerce-loop-product__title,
body.woodmart-archive-shop .wd-product .wd-entities-title {
	font-family: var(--wds-font-heading, 'Space Grotesk', sans-serif) !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	color: var(--wds-color-secondary, #1F2641) !important;
	margin: 0 0 4px !important;
	text-align: left !important;
}

body.woocommerce-shop .wd-product .wd-entities-title a,
body.tax-product_cat .wd-product .wd-entities-title a,
body.woocommerce-shop .wd-product .woocommerce-loop-product__title a,
body.tax-product_cat .wd-product .woocommerce-loop-product__title a {
	color: inherit !important;
	text-decoration: none !important;
}

body.woocommerce-shop .wd-product .wd-entities-title a:hover,
body.tax-product_cat .wd-product .wd-entities-title a:hover {
	color: var(--wds-color-primary, #6A4972) !important;
}

body.woocommerce-shop .wd-product .price,
body.tax-product_cat .wd-product .price,
body.post-type-archive-product .wd-product .price,
body.woodmart-archive-shop .wd-product .price {
	font-family: var(--wds-font-body, 'Inter', sans-serif) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: var(--wds-color-text-muted, #6B6B76) !important;
	margin: 0 !important;
	text-align: left !important;
}

body.woocommerce-shop .wd-product .price del,
body.tax-product_cat .wd-product .price del {
	opacity: 0.55;
	margin-inline-end: 6px;
}

body.woocommerce-shop .wd-product .price ins,
body.tax-product_cat .wd-product .price ins {
	text-decoration: none;
	color: var(--wds-color-secondary, #1F2641) !important;
	font-weight: 500;
}

/* Hide secondary meta that clutters cards */
body.woocommerce-shop .wd-product .wd-product-cats,
body.tax-product_cat .wd-product .wd-product-cats,
body.woocommerce-shop .wd-product .wd-product-brands-links,
body.tax-product_cat .wd-product .wd-product-brands-links,
body.woocommerce-shop .wd-product .wd-product-sku,
body.tax-product_cat .wd-product .wd-product-sku,
body.woocommerce-shop .wd-product .star-rating,
body.tax-product_cat .wd-product .star-rating,
body.woocommerce-shop .wd-product .woocommerce-product-rating,
body.tax-product_cat .wd-product .woocommerce-product-rating {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Mobile / tablet off-canvas filter drawer
   WoodMart moves .wd-sidebar to .wd-side-hidden on small screens.
   Keep drawer contents visible (our archive layout overrides can clip them).
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	body.woodmart-archive-shop .wd-sidebar.wd-side-hidden,
	body.woocommerce-shop .wd-sidebar.wd-side-hidden,
	body.tax-product_cat .wd-sidebar.wd-side-hidden,
	body.post-type-archive-product .wd-sidebar.wd-side-hidden {
		--wd-side-hidden-w: min(340px, 88vw);
		position: fixed !important;
		inset-block: var(--wd-admin-bar-h, 0px) 0 !important;
		top: var(--wd-admin-bar-h, 0px) !important;
		bottom: 0 !important;
		left: 0 !important;
		right: auto !important;
		z-index: 520 !important;
		display: flex !important;
		flex-direction: column !important;
		width: min(var(--wd-side-hidden-w), 100vw) !important;
		max-width: min(var(--wd-side-hidden-w), 100vw) !important;
		height: auto !important;
		min-height: calc(100dvh - var(--wd-admin-bar-h, 0px)) !important;
		margin: 0 !important;
		padding: 0 !important;
		grid-column: unset !important;
		grid-row: unset !important;
		background: #FFFFFF !important;
		box-shadow: 12px 0 32px rgba(31, 38, 65, 0.14);
		overflow: hidden !important;
		transform: translate3d(-100%, 0, 0);
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}

	body.woodmart-archive-shop .wd-sidebar.wd-side-hidden.wd-right,
	body.woocommerce-shop .wd-sidebar.wd-side-hidden.wd-right,
	body.tax-product_cat .wd-sidebar.wd-side-hidden.wd-right {
		left: auto !important;
		right: 0 !important;
		transform: translate3d(100%, 0, 0);
		box-shadow: -12px 0 32px rgba(31, 38, 65, 0.14);
	}

	body.woodmart-archive-shop .wd-sidebar.wd-side-hidden.wd-opened,
	body.woocommerce-shop .wd-sidebar.wd-side-hidden.wd-opened,
	body.tax-product_cat .wd-sidebar.wd-side-hidden.wd-opened,
	body.post-type-archive-product .wd-sidebar.wd-side-hidden.wd-opened {
		transform: none !important;
	}

	body.woodmart-archive-shop .wd-sidebar.wd-side-hidden .wd-heading,
	body.woocommerce-shop .wd-sidebar.wd-side-hidden .wd-heading,
	body.tax-product_cat .wd-sidebar.wd-side-hidden .wd-heading {
		flex: 0 0 auto !important;
		display: flex !important;
		align-items: center !important;
		min-height: 56px !important;
		padding: 0 20px !important;
		border-bottom: 1px solid var(--wds-color-border, #E5E5EA) !important;
		background: #FFFFFF !important;
	}

	body.woodmart-archive-shop .wd-sidebar.wd-side-hidden .widget-area,
	body.woocommerce-shop .wd-sidebar.wd-side-hidden .widget-area,
	body.tax-product_cat .wd-sidebar.wd-side-hidden .widget-area,
	body.woodmart-archive-shop .wd-sidebar.wd-side-hidden .widget-area.wd-scroll-content,
	body.woocommerce-shop .wd-sidebar.wd-side-hidden .widget-area.wd-scroll-content,
	body.tax-product_cat .wd-sidebar.wd-side-hidden .widget-area.wd-scroll-content {
		flex: 1 1 auto !important;
		min-height: 0 !important;
		height: auto !important;
		max-height: none !important;
		--wd-scroll-h: none;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		padding: 20px 20px 48px !important;
		margin: 0 !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		background: #FFFFFF !important;
		color: var(--wds-color-text, #3A3A3A) !important;
	}

	body.woodmart-archive-shop .wd-sidebar.wd-side-hidden .widget,
	body.woocommerce-shop .wd-sidebar.wd-side-hidden .widget,
	body.tax-product_cat .wd-sidebar.wd-side-hidden .widget,
	body.woodmart-archive-shop .wd-sidebar.wd-side-hidden .wd-widget {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		padding-inline: 0 !important;
		max-width: 100% !important;
	}

	/* Collapsed filter groups: show content inside the drawer */
	body.woodmart-archive-shop .wd-sidebar.wd-side-hidden .wd-widget-collapse > .widget-title ~ *,
	body.woocommerce-shop .wd-sidebar.wd-side-hidden .wd-widget-collapse > .widget-title ~ *,
	body.tax-product_cat .wd-sidebar.wd-side-hidden .wd-widget-collapse > .widget-title ~ * {
		display: block !important;
		margin-top: 16px !important;
	}

	body.woodmart-archive-shop .wd-sidebar.wd-side-hidden .wd-widget-collapse > .widget-title ~ *.wd-swatches-filter,
	body.woocommerce-shop .wd-sidebar.wd-side-hidden .wd-widget-collapse > .widget-title ~ *.wd-swatches-filter,
	body.tax-product_cat .wd-sidebar.wd-side-hidden .wd-widget-collapse > .widget-title ~ *.wd-swatches-filter {
		display: flex !important;
	}
}

/* --------------------------------------------------------------------------
   Sidebar filters
   -------------------------------------------------------------------------- */

body.woocommerce-shop .wd-sidebar .widget-area,
body.tax-product_cat .wd-sidebar .widget-area,
body.woodmart-archive-shop .wd-sidebar .widget-area {
	padding-top: 4px;
}

body.woocommerce-shop .wd-sidebar .widget,
body.tax-product_cat .wd-sidebar .widget,
body.woodmart-archive-shop .wd-sidebar .widget {
	margin-bottom: 28px !important;
	padding-bottom: 28px !important;
	border-bottom: 1px solid var(--wds-color-border, #E5E5EA) !important;
}

body.woocommerce-shop .wd-sidebar .widget:last-child,
body.tax-product_cat .wd-sidebar .widget:last-child {
	border-bottom: none !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

body.woocommerce-shop .wd-sidebar .widget-title,
body.tax-product_cat .wd-sidebar .widget-title,
body.woocommerce-shop .wd-sidebar .widgettitle,
body.tax-product_cat .wd-sidebar .widgettitle,
body.woodmart-archive-shop .wd-sidebar .widget-title {
	font-family: var(--wds-font-heading, 'Space Grotesk', sans-serif) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: var(--wds-color-secondary, #1F2641) !important;
	margin: 0 0 16px !important;
	line-height: 1.3 !important;
}

/* Layered nav / attribute lists */
body.woocommerce-shop .wd-sidebar .widget ul,
body.tax-product_cat .wd-sidebar .widget ul {
	margin: 0;
	padding: 0;
}

body.woocommerce-shop .wd-sidebar .widget li,
body.tax-product_cat .wd-sidebar .widget li {
	margin: 0 0 10px !important;
	padding: 0 !important;
}

body.woocommerce-shop .wd-sidebar .widget li a,
body.tax-product_cat .wd-sidebar .widget li a {
	font-family: var(--wds-font-body, 'Inter', sans-serif) !important;
	font-size: 14px !important;
	color: var(--wds-color-text, #3A3A3A) !important;
	text-decoration: none !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	transition: color 0.2s ease;
}

body.woocommerce-shop .wd-sidebar .widget li a:hover,
body.tax-product_cat .wd-sidebar .widget li a:hover,
body.woocommerce-shop .wd-sidebar .widget li.chosen a,
body.tax-product_cat .wd-sidebar .widget li.chosen a {
	color: var(--wds-color-primary, #6A4972) !important;
}

body.woocommerce-shop .wd-sidebar .widget .count,
body.tax-product_cat .wd-sidebar .widget .count {
	font-family: var(--wds-font-body, 'Inter', sans-serif) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	min-width: 26px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--wds-color-light, #F7F7FA) !important;
	color: var(--wds-color-text-muted, #6B6B76) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Color filter swatches — square */
body.woocommerce-shop .wd-sidebar .wd-swatches-filter .wd-swatch,
body.tax-product_cat .wd-sidebar .wd-swatches-filter .wd-swatch,
body.woodmart-archive-shop .wd-sidebar .wd-swatches-filter .wd-swatch {
	--wd-swatch-w: 28px !important;
	--wd-swatch-h: 28px !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 0 !important;
	border: 1px solid rgba(0, 0, 0, 0.1) !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.woocommerce-shop .wd-sidebar .wd-swatches-filter,
body.tax-product_cat .wd-sidebar .wd-swatches-filter {
	--wd-swatch-h-sp: 10px !important;
	--wd-swatch-v-sp: 10px !important;
	gap: 10px !important;
}

body.woocommerce-shop .wd-sidebar .wd-swatch-wrap.wd-active .wd-swatch,
body.tax-product_cat .wd-sidebar .wd-swatch-wrap.wd-active .wd-swatch,
body.woocommerce-shop .wd-sidebar .wd-swatches-filter a:hover .wd-swatch,
body.tax-product_cat .wd-sidebar .wd-swatches-filter a:hover .wd-swatch {
	box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--wds-color-primary, #6A4972);
}

/* Price filter */
body.woocommerce-shop .widget_price_filter .ui-slider-horizontal:before,
body.tax-product_cat .widget_price_filter .ui-slider-horizontal:before {
	height: 3px !important;
	margin-top: -1.5px !important;
	background-color: #E8E6EC !important;
}

body.woocommerce-shop .widget_price_filter .ui-slider .ui-slider-range,
body.tax-product_cat .widget_price_filter .ui-slider .ui-slider-range {
	height: 3px !important;
	margin-top: -1.5px !important;
	background-color: var(--wds-color-primary, #6A4972) !important;
}

body.woocommerce-shop .widget_price_filter .ui-slider .ui-slider-handle:after,
body.tax-product_cat .widget_price_filter .ui-slider .ui-slider-handle:after {
	width: 14px !important;
	height: 14px !important;
	border-radius: 50% !important;
	background-color: var(--wds-color-primary, #6A4972) !important;
	box-shadow: 0 0 0 3px #FFFFFF, 0 1px 4px rgba(31, 38, 65, 0.18);
}

body.woocommerce-shop .widget_price_filter .price_label,
body.tax-product_cat .widget_price_filter .price_label {
	font-family: var(--wds-font-body, 'Inter', sans-serif) !important;
	font-size: 13px !important;
	color: var(--wds-color-text-muted, #6B6B76) !important;
}

body.woocommerce-shop .widget_price_filter .price_label > span,
body.tax-product_cat .widget_price_filter .price_label > span {
	color: var(--wds-color-secondary, #1F2641) !important;
	font-weight: 500 !important;
}

body.woocommerce-shop .widget_price_filter .button,
body.tax-product_cat .widget_price_filter .button {
	font-family: var(--wds-font-heading, 'Space Grotesk', sans-serif) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase !important;
	min-height: 36px !important;
	padding: 8px 16px !important;
	border-radius: 0 !important;
	background-color: var(--wds-color-primary, #6A4972) !important;
	color: #FFFFFF !important;
	border: none !important;
	box-shadow: none !important;
	transition: background-color 0.2s ease;
}

body.woocommerce-shop .widget_price_filter .button:hover,
body.tax-product_cat .widget_price_filter .button:hover {
	background-color: var(--wds-color-primary-dark, #553A5C) !important;
	color: #FFFFFF !important;
}

/* Active filters chips */
body.woocommerce-shop .wd-active-filters,
body.tax-product_cat .wd-active-filters,
body.woodmart-archive-shop .wd-active-filters {
	gap: 8px;
	margin-bottom: 20px;
}

body.woocommerce-shop .wd-active-filters a,
body.tax-product_cat .wd-active-filters a {
	font-family: var(--wds-font-body, 'Inter', sans-serif) !important;
	font-size: 12px !important;
	border-radius: 0 !important;
	border: 1px solid var(--wds-color-border, #E5E5EA) !important;
	background: #FFFFFF !important;
	color: var(--wds-color-text, #3A3A3A) !important;
	padding: 6px 10px !important;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

body.woocommerce-shop .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination,
body.woodmart-archive-shop .woocommerce-pagination,
body.woocommerce-shop .wd-pagination,
body.tax-product_cat .wd-pagination {
	margin-top: 48px !important;
	padding-top: 28px;
	border-top: 1px solid var(--wds-color-border, #E5E5EA);
}

body.woocommerce-shop .woocommerce-pagination .page-numbers,
body.tax-product_cat .woocommerce-pagination .page-numbers,
body.woocommerce-shop .wd-pagination a,
body.tax-product_cat .wd-pagination a,
body.woocommerce-shop .wd-pagination span,
body.tax-product_cat .wd-pagination span {
	font-family: var(--wds-font-heading, 'Space Grotesk', sans-serif) !important;
	font-size: 14px !important;
	min-width: 40px;
	height: 40px;
	border-radius: 0 !important;
	border: 1px solid transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wds-color-text, #3A3A3A) !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-shop .woocommerce-pagination .page-numbers.current,
body.tax-product_cat .woocommerce-pagination .page-numbers.current,
body.woocommerce-shop .wd-pagination .current,
body.tax-product_cat .wd-pagination .current {
	background: var(--wds-color-secondary, #1F2641) !important;
	color: #FFFFFF !important;
	border-color: var(--wds-color-secondary, #1F2641) !important;
}

body.woocommerce-shop .woocommerce-pagination a.page-numbers:hover,
body.tax-product_cat .woocommerce-pagination a.page-numbers:hover {
	border-color: var(--wds-color-border, #E5E5EA);
	color: var(--wds-color-primary, #6A4972) !important;
}

/* --------------------------------------------------------------------------
   Mobile filters button
   -------------------------------------------------------------------------- */

body.woocommerce-shop .wd-show-sidebar-btn,
body.tax-product_cat .wd-show-sidebar-btn,
body.woodmart-archive-shop .wd-show-sidebar-btn {
	font-family: var(--wds-font-heading, 'Space Grotesk', sans-serif) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	border: 1px solid var(--wds-color-border, #E5E5EA) !important;
	border-radius: 0 !important;
	padding: 10px 14px !important;
	background: #FFFFFF !important;
	color: var(--wds-color-secondary, #1F2641) !important;
}

/* --------------------------------------------------------------------------
   Responsive product grid spacing
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	body.woocommerce-shop .shop-loop-head,
	body.tax-product_cat .shop-loop-head,
	body.woodmart-archive-shop .shop-loop-head {
		margin-bottom: 20px !important;
		padding-bottom: 16px;
	}
}

@media (max-width: 767.98px) {
	body.woocommerce-shop .wd-product .wd-entities-title,
	body.tax-product_cat .wd-product .wd-entities-title,
	body.woocommerce-shop .wd-product .woocommerce-loop-product__title,
	body.tax-product_cat .wd-product .woocommerce-loop-product__title {
		font-size: 13px !important;
	}

	body.woocommerce-shop .wd-product .price,
	body.tax-product_cat .wd-product .price {
		font-size: 13px !important;
	}

	body.woocommerce-shop .wd-product .wd-buttons > *,
	body.tax-product_cat .wd-product .wd-buttons > * {
		opacity: 1;
		transform: none;
	}
}
