/* Product cards only: preserve queries and native actions across grids and carousels. */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid, .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list) {
	align-items: stretch;
}

/* Progressively enhance only Recently Viewed; real product cards stay intact. */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-recently-viewed-products.as-recently-viewed-carousel {
	--as-recent-columns: 4;
	min-width: 0;
	max-width: 100%;
}
body .as-recently-viewed-carousel .as-recently-viewed__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
body .as-recently-viewed-carousel .as-recently-viewed__header > .shopengine-recently-viewed-products-heading-title {
	min-width: 0;
	margin: 0 !important;
	line-height: 1.35;
}
body .as-recently-viewed-carousel .as-recently-viewed__header.as-recently-viewed__header--controls-only {
	justify-content: flex-end;
	margin: 0 0 10px !important;
}
body .as-recently-viewed-carousel .as-recently-viewed__header[hidden] {
	display: none !important;
}
body .as-recently-viewed-carousel .as-recently-viewed__controls {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}
body .as-recently-viewed-carousel .as-recently-viewed__controls[hidden] {
	display: none !important;
}
body .as-recently-viewed-carousel .as-recently-viewed__arrow {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #e4d6ef;
	border-radius: 50%;
	background: #fff;
	color: var(--e-global-color-primary, #b37af6);
	cursor: pointer;
}
body .as-recently-viewed-carousel .as-recently-viewed__arrow:hover {
	border-color: currentColor;
	background: #faf5ff;
}
body .as-recently-viewed-carousel .as-recently-viewed__arrow svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
body .as-recently-viewed-carousel :is(.as-recently-viewed__arrow, .recent-viewed-product-list):focus-visible {
	outline: 2px solid #76509d;
	outline-offset: 3px;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-recently-viewed-products.as-recently-viewed-carousel > .recent-viewed-product-list {
	display: flex !important;
	flex-flow: row nowrap !important;
	align-items: stretch;
	gap: 16px !important;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0 0 8px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
	scrollbar-color: #d7bde9 #f8f4fb;
	-webkit-overflow-scrolling: touch;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-recently-viewed-products.as-recently-viewed-carousel > .recent-viewed-product-list > .shopengine-single-product-item {
	flex: 0 0 calc((100% - 48px) / 4) !important;
	width: calc((100% - 48px) / 4) !important;
	max-width: calc((100% - 48px) / 4);
	scroll-snap-align: start;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-recently-viewed-products.as-recently-viewed-carousel > .recent-viewed-product-list.as-recently-viewed__rebasing {
	scroll-snap-type: none !important;
	scroll-behavior: auto !important;
}
body .as-recently-viewed-carousel .as-recently-viewed__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
@media (min-width: 768px) and (max-width: 1024px) {
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-recently-viewed-products.as-recently-viewed-carousel { --as-recent-columns: 3; }
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-recently-viewed-products.as-recently-viewed-carousel > .recent-viewed-product-list > .shopengine-single-product-item {
		flex-basis: calc((100% - 32px) / 3) !important;
		width: calc((100% - 32px) / 3) !important;
		max-width: calc((100% - 32px) / 3);
	}
}
@media (max-width: 767px) {
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-recently-viewed-products.as-recently-viewed-carousel { --as-recent-columns: 2; }
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-recently-viewed-products.as-recently-viewed-carousel > .recent-viewed-product-list { gap: 10px !important; }
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-recently-viewed-products.as-recently-viewed-carousel > .recent-viewed-product-list > .shopengine-single-product-item {
		flex-basis: calc((100% - 10px) / 2) !important;
		width: calc((100% - 10px) / 2) !important;
		max-width: calc((100% - 10px) / 2);
	}
	body .as-recently-viewed-carousel .as-recently-viewed__header { gap: 8px; margin-bottom: 14px; }
	body .as-recently-viewed-carousel .as-recently-viewed__controls { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
	body .as-recently-viewed-carousel .recent-viewed-product-list { scroll-behavior: auto !important; }
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(:is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item, ul.products li.product:not(.product-category)) {
	--as-card-padding: 12px;
	--as-card-action-space: 56px;
	box-sizing: border-box;
	position: relative;
	display: flex !important;
	flex-direction: column;
	align-items: stretch !important;
	align-self: stretch;
	min-width: 0;
	max-width: 100%;
	height: auto;
	padding: var(--as-card-padding) !important;
	border: 1px solid #eee5f4;
	border-radius: 10px;
	background-color: #fff;
	text-align: left !important;
}
/* A uniform photo area shows the whole existing image, including portrait photos. */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item > .product-thumb {
	width: 100%;
	margin: 0 0 10px !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item > .product-thumb > a:first-child {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	background: #fff;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item > .product-thumb > a:first-child > img,
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product:not(.product-category) a.woocommerce-LoopProduct-link > img {
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
	margin: 0 0 10px !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item > .product-thumb > a:first-child > img {
	height: 100% !important;
	margin: 0 !important;
}
/* Natural expansion remains available for real category/stock information. */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-category {
	min-height: 1.4em;
	margin: 0 0 5px !important;
	padding: 0 !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
	text-align: left !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-category ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 6px;
	margin: 0 !important;
	padding: 0 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-category :is(li, a) {
	margin: 0 !important;
	font-size: inherit !important;
	line-height: inherit !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(:is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-title, ul.products li.product .woocommerce-loop-product__title) {
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: 2.7em;
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1.35 !important;
	text-align: left !important;
	overflow-wrap: anywhere;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-title a {
	color: inherit;
	font-size: inherit !important;
	line-height: inherit !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-rating {
	min-height: 16px;
	margin: 0 0 6px !important;
	padding: 0 !important;
	line-height: 16px;
	text-align: left;
}
/* Keep the original/current price together and installments on their own next row. */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item > .product-price {
	width: 100%;
	min-height: var(--as-card-price-height, 66px);
	margin: auto 0 0 !important;
	padding: 0 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(:is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-price > .price, ul.products li.product .price) {
	display: flex !important;
	flex-wrap: wrap;
	align-items: baseline;
	align-content: flex-start;
	justify-content: flex-start !important;
	gap: 2px 7px;
	min-width: 0;
	min-height: var(--as-card-price-height, 66px);
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 600;
	line-height: 1.4 !important;
	text-align: left;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(:is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-price > .price, ul.products li.product .price) > del {
	order: 0;
	margin: 0 !important;
	font-size: 12px !important;
	font-weight: 400;
	opacity: .65;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(:is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-price > .price, ul.products li.product .price) > :is(ins, .amount) {
	order: 1;
	margin: 0 !important;
	background: transparent;
	font-size: inherit !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(:is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-price > .price, ul.products li.product .price) > :is(.shopengine-discount-badge, .onsale-off) {
	order: 2;
	max-width: 100%;
	font-size: 11px !important;
	line-height: 1.6 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(:is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-price > .price, ul.products li.product .price) > .as-installments {
	order: 3;
	align-self: flex-start;
	margin-block: 4px 0;
	font-size: 12px !important;
	line-height: 1.4 !important;
}
/* Native Woo cards retain their existing grid/columns and action order. */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product:not(.product-category) > a.woocommerce-LoopProduct-link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product:not(.product-category) > a.woocommerce-LoopProduct-link > .price {
	margin-top: auto !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product:not(.product-category) > .button {
	margin: 12px 0 0 !important;
}
/* ShopEngine archive grids wrap the native Woo product in two extra list items. */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-archive-products:not(.shopengine-archive-products--view-list) ul.products > .archive-product-container {
	align-self: stretch;
	padding: 0 !important;
	border: 0;
	background: transparent;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-archive-products:not(.shopengine-archive-products--view-list) .archive-product-container > ul.shopengine-archive-mode-grid {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-archive-products:not(.shopengine-archive-products--view-list) .archive-product-container > ul.shopengine-archive-mode-grid > li.product {
	flex: 1 1 auto;
	align-self: stretch !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product .product-categories {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 2px 6px;
	min-height: 2.8em;
	margin: 0 0 5px !important;
	padding: 0 !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
	list-style: none;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product .product-categories > li {
	margin: 0 !important;
	padding: 0 !important;
	font-size: inherit !important;
	line-height: inherit !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product .woocommerce-product-rating {
	box-sizing: border-box;
	min-height: 16px;
	margin: 0 0 6px !important;
	padding: 0;
	line-height: 16px;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product .shopengine-product-description-footer {
	position: relative !important;
	inset: auto !important;
	width: 100%;
	margin: auto 0 0 !important;
	padding: 12px 0 0 !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product .shopengine-product-description-btn-group {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start !important;
	gap: 6px;
	width: 100%;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product .shopengine-product-description-btn-group > :is(.shopengine-wishlist, .shopengine-comparison, .shopengine-quickview-trigger) {
	box-sizing: border-box;
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #e4d6ef;
	border-radius: 6px !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product .shopengine-product-description-btn-group > .button {
	box-sizing: border-box;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	min-height: 44px;
	margin: 0 !important;
	padding: 8px 10px !important;
	border: 1px solid var(--e-global-color-primary, #b37af6);
	border-radius: 6px !important;
	background: var(--e-global-color-primary, #b37af6) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1.25 !important;
	text-indent: 0 !important;
	text-transform: none !important;
	text-align: center;
	white-space: normal;
}
/* Existing ShopEngine bottom actions now belong to the bottom of their own card.
 * DOM order and wishlist/cart handlers stay unchanged; side/center overlays are untouched.
 */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item:has(> .product-thumb > .overlay-add-to-cart.position-bottom) {
	padding-bottom: calc(var(--as-card-padding) + var(--as-card-action-space) + 8px) !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item:has(> .product-thumb > .overlay-add-to-cart.position-bottom) > .product-thumb {
	position: static !important;
	overflow: visible;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item > .product-thumb > .overlay-add-to-cart.position-bottom {
	display: flex !important;
	position: absolute;
	inset: auto var(--as-card-padding) var(--as-card-padding) !important;
	flex-direction: row;
	align-items: stretch;
	justify-content: flex-start;
	gap: 6px;
	width: auto;
	max-width: none;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	overflow: visible;
	border-radius: 0;
	background: transparent;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .overlay-add-to-cart.position-bottom > :is(a, button) {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0 !important;
	padding: 8px !important;
	border: 1px solid #e4d6ef;
	border-radius: 6px !important;
	font-size: 13px !important;
	line-height: 1.25 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .overlay-add-to-cart.position-bottom > :is(.shopengine-wishlist, .shopengine-comparison, .shopengine-quickview-trigger) {
	flex: 0 0 44px;
	padding: 0 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .overlay-add-to-cart.position-bottom > .button,
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product:not(.product-category) > .button {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	min-height: 44px;
	padding: 8px 10px !important;
	border: 1px solid var(--e-global-color-primary, #b37af6);
	border-radius: 6px !important;
	background: var(--e-global-color-primary, #b37af6) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1.25 !important;
	text-indent: 0 !important;
	text-align: center;
	white-space: normal;
	overflow-wrap: normal;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .overlay-add-to-cart.position-bottom > .button::before {
	flex: 0 0 auto;
	color: inherit !important;
	font-size: 17px !important;
	line-height: 1 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-single-product-item, ul.products li.product) :is(a, button):focus-visible {
	outline: 2px solid var(--e-global-color-primary, #b37af6);
	outline-offset: 3px;
}
/* Recently viewed and other Helper cards have a real footer as well as an
 * identical image overlay. Keep one native action group in its natural DOM row.
 */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-single-product-item:has(> .add-to-cart-bt) > .product-thumb > .loop-product--btns {
	display: none !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-single-product-item > .add-to-cart-bt {
	position: static !important;
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start !important;
	gap: 6px;
	width: 100%;
	min-height: 44px;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-single-product-item > .add-to-cart-bt > :is(.shopengine-wishlist, .shopengine-comparison, .shopengine-quickview-trigger) {
	box-sizing: border-box;
	display: flex !important;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #e4d6ef !important;
	border-radius: 6px !important;
	color: var(--e-global-color-primary, #b37af6) !important;
	background: #fff !important;
	font-size: 18px !important;
	line-height: 1 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-single-product-item > .add-to-cart-bt > :is(.button, .added_to_cart) {
	box-sizing: border-box;
	position: static !important;
	display: flex !important;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	min-height: 44px;
	margin: 0 !important;
	padding: 8px 10px !important;
	border: 1px solid var(--e-global-color-primary, #b37af6) !important;
	border-radius: 6px !important;
	color: #fff !important;
	background: var(--e-global-color-primary, #b37af6) !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	text-transform: none !important;
	text-indent: 0 !important;
	text-align: center !important;
	white-space: normal;
	transform: none !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-single-product-item > .add-to-cart-bt:has(> .added_to_cart) > .button.added {
	display: none !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-recently-viewed-products, .shopengine-filterable-product-wrap) .shopengine-single-product-item .price :is(.amount, bdi) {
	font-size: inherit !important;
	line-height: inherit !important;
}
/* Only product-bearing Swiper slides stretch. Widths, transforms, slide count
 * and navigation remain controlled by the existing carousel.
 */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .swiper-wrapper:has(> .swiper-slide > .shopengine-single-product-item) {
	align-items: stretch;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .swiper-slide:has(> .shopengine-single-product-item) {
	display: flex;
	align-items: stretch;
	height: auto;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .swiper-slide > .shopengine-single-product-item {
	flex: 1 1 auto;
	width: 100%;
}
@media (max-width: 767px) {
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-recently-viewed-products .recent-viewed-product-list {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 20px 10px !important;
	}
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-archive-products.shopengine-grid > ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		width: 100% !important;
		margin-inline: 0 !important;
		column-gap: 10px !important;
		row-gap: 20px !important;
	}
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-archive-products.shopengine-grid > ul.products > .archive-product-container {
		width: 100% !important;
		min-width: 0;
	}
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-product-list .product-list-grid:not(.product-list-view) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 10px;
	}
}
@media (max-width: 480px) {
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .shopengine-single-product-item > .add-to-cart-bt > :is(.button, .added_to_cart) {
		font-size: 12px !important;
		padding-inline: 6px !important;
	}
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(:is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item, ul.products li.product:not(.product-category)) {
		--as-card-padding: 8px;
		--as-card-action-space: 60px;
	}
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(:is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .product-title, ul.products li.product .woocommerce-loop-product__title) {
		font-size: 13px !important;
	}
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) :is(.shopengine-product-list .product-list-grid:not(.product-list-view), .shopengine-recently-viewed-products .recent-viewed-product-list, .shopengine-filterable-product-wrap .filtered-product-list, .shopengine-widget .swiper-slide) > .shopengine-single-product-item .overlay-add-to-cart.position-bottom > .button,
	body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products li.product .shopengine-product-description-btn-group > .button {
		gap: 4px;
		padding-inline: 6px !important;
		font-size: 12px !important;
	}
}
