/* Keep every product card calm, aligned, and visually consistent. */
.woocommerce .products .product .product-element-top,
.woocommerce .products .product .product-image-link,
.wd-products .wd-product .product-element-top,
.wd-products .wd-product .product-image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
}

.woocommerce .products .product .product-element-top img,
.woocommerce .products .product .product-image-link img,
.wd-products .wd-product .product-element-top img,
.wd-products .wd-product .product-image-link img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	object-fit: contain;
	object-position: 50% 50%;
}

/* WoodMart can absolutely position hover imagery; keep both layers aligned. */
.wd-products .wd-product .hover-img {
	inset: 0;
}

/* Packaging photos have different internal crops and create a visible jump
 * between products. Keep archive cards focused on the consistently framed
 * product shot; packaging remains available in the single-product gallery. */
.woocommerce.archive .wd-products .wd-product .hover-img {
	display: none !important;
}

/* Simplify archive controls for this compact catalog. */
.woocommerce.archive .wd-products-per-page {
	display: none !important;
}

/* Editorial category navigation: one calm, horizontally scrollable line
 * instead of a widget-like row of boxed controls. */
.woocommerce.archive #main-content > .site-content {
	grid-column: 1 / -1;
	width: 100%;
}

.woocommerce.archive #main-content > .wd-sidebar {
	display: none !important;
}

.woocommerce.archive .wd-show-sidebar-btn {
	display: none !important;
}

.woocommerce.archive .mabelle-category-nav {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid #e8e3da;
	background: transparent;
}

.woocommerce.archive .mabelle-category-nav .product-categories {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(22px, 2.5vw, 38px);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.woocommerce.archive .mabelle-category-nav .product-categories::-webkit-scrollbar {
	display: none;
}

.woocommerce.archive .mabelle-category-nav .product-categories > li {
	display: flex;
	position: relative;
	flex: 0 0 auto;
	align-items: baseline;
	margin: 0;
	padding: 0 0 17px;
	border: 0;
	background: transparent;
	line-height: 1;
}

.woocommerce.archive .mabelle-category-nav .product-categories > li::before {
	display: none;
}

.woocommerce.archive .mabelle-category-nav .product-categories > li::after {
	content: "";
	display: block;
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	background: #aa8c4f;
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .28s ease;
}

.woocommerce.archive .mabelle-category-nav .product-categories a {
	display: block;
	padding-block: 5px;
	color: #8c867e;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .075em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color .2s ease;
}

.woocommerce.archive .mabelle-category-nav .product-categories > li:hover > a,
.woocommerce.archive .mabelle-category-nav .product-categories > li.current-cat > a,
.woocommerce.archive .mabelle-category-nav .product-categories > li.wd-active > a {
	color: #1f1e1c !important;
}

.woocommerce.archive .mabelle-category-nav .product-categories > li.current-cat::after,
.woocommerce.archive .mabelle-category-nav .product-categories > li.wd-active::after {
	transform: scaleX(1);
}

.woocommerce.archive .mabelle-category-nav .product-categories .count {
	display: inline-block;
	margin: 0 0 0 4px;
	color: #aaa39a;
	font-size: 11px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	letter-spacing: 0;
	vertical-align: baseline;
}

.woocommerce.archive .mabelle-category-nav .product-categories > li.current-cat > .count,
.woocommerce.archive .mabelle-category-nav .product-categories > li.wd-active > .count {
	color: #aa8c4f;
}

.woocommerce.archive .widget_product_categories a:focus-visible,
.woocommerce.archive .wd-products-shop-view a:focus-visible {
	outline: 2px solid #a98b4d;
	outline-offset: 4px;
}

/* A single restrained utility row replaces the breadcrumb-heavy toolbar. */
.woocommerce.archive .shop-loop-head {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 22px;
	min-height: 54px;
	margin-bottom: 30px;
	padding: 0 0 18px;
	border-bottom: 1px solid #eeeae3;
}

.woocommerce.archive .shop-loop-head > .wd-shop-tools:first-of-type,
.woocommerce.archive .shop-loop-head .woocommerce-result-count {
	display: none !important;
}

.woocommerce.archive .shop-loop-head .woocommerce-breadcrumb,
.woocommerce.archive .shop-loop-head .wd-breadcrumbs,
.woocommerce.archive .shop-loop-head [class*="breadcrumb"] {
	display: none !important;
}

.woocommerce.archive .mabelle-product-count {
	margin: 0 auto 0 0;
	color: #777169;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.woocommerce.archive .wd-products-shop-view {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.woocommerce.archive .wd-products-shop-view::before {
	content: "View";
	margin-right: 2px;
	color: #99928a;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.woocommerce.archive .wd-products-shop-view .mabelle-view-two {
	display: none !important;
}

.woocommerce.archive .woocommerce-ordering {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.woocommerce.archive .woocommerce-ordering::before {
	content: "Sort";
	color: #99928a;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.woocommerce.archive .woocommerce-ordering select {
	width: auto;
	min-width: 158px;
	height: 40px;
	padding: 0 30px 0 0;
	border: 0 !important;
	border-radius: 0;
	background-color: transparent;
	box-shadow: none !important;
	color: #272522;
	font-size: 13px;
	font-weight: 600;
}

@media (max-width: 767px) {
	.woocommerce .products .product .product-element-top,
	.woocommerce .products .product .product-image-link,
	.wd-products .wd-product .product-element-top,
	.wd-products .wd-product .product-image-link {
		min-height: 0;
	}

	.woocommerce.archive .mabelle-category-nav .product-categories {
		gap: 24px;
		padding-inline: 15px;
		margin-inline: -15px;
		scroll-padding-inline: 15px;
	}

	.woocommerce.archive .mabelle-category-nav .product-categories > li {
		padding-bottom: 14px;
	}

	.woocommerce.archive .mabelle-category-nav .product-categories a {
		font-size: 11px;
	}

	.woocommerce.archive .shop-loop-head {
		gap: 14px;
		min-height: 50px;
		margin-bottom: 22px;
		padding-bottom: 14px;
	}

	.woocommerce.archive .wd-products-shop-view {
		display: none;
	}

	.woocommerce.archive .woocommerce-ordering::before {
		display: none;
	}

	.woocommerce.archive .woocommerce-ordering select {
		min-width: 126px;
		height: 36px;
		font-size: 12px;
	}
}

/* Premium archive treatment: restrained typography, editorial spacing, and
 * quiet product framing. The purchase flow and product data remain native. */
.woocommerce.archive .wd-page-title {
	min-height: 0;
	padding-block: clamp(48px, 5vw, 72px);
	background-position: 50% 52%;
}

.woocommerce.archive .wd-page-title .entry-title {
	font-size: clamp(46px, 4.1vw, 66px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.04em;
}

.woocommerce.archive #main-content {
	padding-top: 34px;
	padding-bottom: 72px;
}

.woocommerce.archive .wd-products {
	row-gap: clamp(42px, 4.5vw, 66px);
}

.woocommerce.archive .wd-products .wd-product .product-wrapper {
	gap: 0;
	align-items: stretch;
	text-align: left;
}

.woocommerce.archive .wd-products .wd-product .product-element-top {
	margin-bottom: 18px;
	border: 1px solid #efede8;
	background: #fbfaf8;
	transition: border-color .35s ease, box-shadow .35s ease;
}

.woocommerce.archive .wd-products .wd-product .product-image-link img {
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.woocommerce.archive .wd-products .wd-product .wd-entities-title {
	margin: 0 0 7px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -.015em;
	text-align: left;
}

.woocommerce.archive .wd-products .wd-product .wd-entities-title a {
	color: #242321;
}

.woocommerce.archive .wd-products .wd-product .wd-product-cats {
	order: initial;
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .12em;
	text-align: left;
	text-transform: uppercase;
}

.woocommerce.archive .wd-products .wd-product .wd-product-cats a {
	color: #8c867c;
}

.woocommerce.archive .wd-products .wd-product .price {
	margin: 0;
	color: #9b7b3b;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
}

@media (hover: hover) and (min-width: 1025px) {
	.woocommerce.archive .wd-products .wd-product:hover .product-element-top,
	.woocommerce.archive .wd-products .wd-product:focus-within .product-element-top {
		border-color: #d8d2c7;
		box-shadow: 0 18px 42px rgba(36, 30, 20, .07);
	}

	.woocommerce.archive .wd-products .wd-product:hover .product-image-link img,
	.woocommerce.archive .wd-products .wd-product:focus-within .product-image-link img {
		transform: scale(1.025);
	}

	.woocommerce.archive .wd-products .wd-product .wd-add-btn {
		right: 14px !important;
		bottom: 14px !important;
		left: 14px !important;
		width: auto !important;
		opacity: 0 !important;
		transform: translateY(8px) !important;
		transition: opacity .25s ease, transform .25s ease !important;
	}

	.woocommerce.archive .wd-products .wd-product:hover .wd-add-btn,
	.woocommerce.archive .wd-products .wd-product:focus-within .wd-add-btn {
		opacity: 1 !important;
		transform: translateY(0) !important;
	}

	.woocommerce.archive .wd-products .wd-product .add-to-cart-loop {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 46px;
		padding-inline: 18px;
		border: 1px solid #1f1e1c;
		border-radius: 0;
		background: #1f1e1c;
		box-shadow: none;
		color: #fff;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .12em;
		text-transform: uppercase;
		transition: background-color .2s ease, border-color .2s ease;
	}

	.woocommerce.archive .wd-products .wd-product .add-to-cart-loop:hover,
	.woocommerce.archive .wd-products .wd-product .add-to-cart-loop:focus-visible {
		border-color: #a98b4d;
		background: #a98b4d;
	}
}

@media (max-width: 1024px) {
	.woocommerce.archive .wd-page-title {
		padding-block: 42px;
	}

	.woocommerce.archive #main-content {
		padding-top: 28px;
		padding-bottom: 56px;
	}

	.woocommerce.archive .wd-products .wd-product .wd-add-btn .add-to-cart-loop {
		background: #1f1e1c;
		box-shadow: none;
		color: #fff;
	}
}

@media (max-width: 767px) {
	.woocommerce.archive .wd-page-title {
		padding-block: 30px;
		background-position: 50% 50%;
	}

	.woocommerce.archive .wd-page-title .entry-title {
		font-size: 38px;
		letter-spacing: -.035em;
	}

	.woocommerce.archive #main-content {
		padding-top: 22px;
		padding-bottom: 44px;
	}

	.woocommerce.archive .wd-products {
		row-gap: 38px;
	}

	.woocommerce.archive .wd-products .wd-product .product-element-top {
		margin-bottom: 14px;
	}

	.woocommerce.archive .wd-products .wd-product .wd-entities-title {
		margin-bottom: 6px;
		font-size: 15px;
	}

	.woocommerce.archive .wd-products .wd-product .wd-product-cats {
		margin-bottom: 7px;
		font-size: 10px;
	}

	.woocommerce.archive .wd-products .wd-product .price {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce.archive .wd-products .wd-product .product-element-top,
	.woocommerce.archive .wd-products .wd-product .product-image-link img,
	.woocommerce.archive .wd-products .wd-product .wd-add-btn {
		transition: none !important;
	}
}
