/* =========================================================
   MAM shop landing + product listing
   Scoped to body.mam-shop-landing and body.mam-product-listing
   ========================================================= */

body.mam-shop-landing,
body.mam-product-listing {
	--mam-blue: #254398;
	--mam-blue-deep: #223e95;
	--mam-page: #eee9e4;
	--mam-card: #f6f4f2;
	--mam-banner: #ceb8d9;
	--mam-font: "PeakRounded", "Peak Rounded", "Open Sans", Arial, sans-serif;
	background: var(--mam-page);
	color: var(--mam-blue);
}

body.mam-shop-landing .website-wrapper,
body.mam-shop-landing .main-page-wrapper,
body.mam-shop-landing .wd-page-content,
body.mam-product-listing .website-wrapper,
body.mam-product-listing .main-page-wrapper,
body.mam-product-listing .wd-page-content {
	background: var(--mam-page);
}

body.mam-shop-landing .wd-content-layout,
body.mam-shop-landing .wd-content-area,
body.mam-shop-landing #main-content,
body.mam-product-listing .wd-content-layout,
body.mam-product-listing .wd-content-area,
body.mam-product-listing #main-content {
	background: var(--mam-page);
}

/* Theme page-title band duplicates the layout heading. */
body.mam-shop-landing .wd-page-title,
body.mam-product-listing .wd-page-title,
body.mam-shop-landing .page-title,
body.mam-product-listing .page-title {
	display: none;
}

body.mam-shop-landing .mam-shop-inner,
body.mam-product-listing .mam-listing-layout {
	max-width: 1360px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

/* ---------- Breadcrumbs ---------- */
body.mam-shop-landing .wd-page-content .wd-breadcrumbs,
body.mam-shop-landing .wd-page-content .woocommerce-breadcrumb,
body.mam-product-listing .wd-page-content .wd-breadcrumbs,
body.mam-product-listing .wd-page-content .woocommerce-breadcrumb {
	margin: 0;
	padding: 0;
}

/* ---------- Landing title + intro ---------- */
body.mam-shop-landing .wd-page-content .title-wrapper {
	text-align: center;
	margin-bottom: 8px;
}

body.mam-shop-landing .wd-page-content .woodmart-title-container,
body.mam-shop-landing .wd-page-content .title-wrapper .title {
	font-family: PeakRounded, Arial, sans-serif !important;
	font-size: 34px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: #184994 !important;
	text-align: center !important;
	letter-spacing: 0;
	margin: 0 0 16px;
}

body.mam-shop-landing .wd-page-content .title-after_title,
body.mam-shop-landing .wd-page-content .title-after_title p,
body.mam-shop-landing .mam-shop-intro {
	font-family: var(--mam-font) !important;
	color: var(--mam-blue) !important;
	text-align: center !important;
	max-width: 1360px;
	margin: 0 auto 28px;
}

body.mam-shop-landing .wd-page-content .title-after_title p {
	margin-bottom: 0;
}

/* ---------- Category grid ---------- */
body.mam-shop-landing .mam-shop-cats .wd-grid-g,
body.mam-shop-landing .mam-shop-cats .products {
	row-gap: 8px !important;
}

body.mam-shop-landing .mam-shop-cats .wd-cat,
body.mam-shop-landing .mam-shop-cats .category-grid-item {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	padding: 4px 6px 4px;
	margin: 0 !important;
}

body.mam-shop-landing .mam-shop-cats .wd-cat-inner,
body.mam-shop-landing .mam-shop-cats .wd-cat-wrap,
body.mam-shop-landing .mam-shop-cats .wrapp-category {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

body.mam-shop-landing .mam-shop-cats .wd-cat {
	position: relative;
}

body.mam-shop-landing .mam-shop-cats .wd-cat-image::after {
	content: "";
	position: absolute;
	inset: 0;
}

body.mam-shop-landing .mam-shop-cats .wd-cat-thumb,
body.mam-shop-landing .mam-shop-cats .category-image-wrapp {
	margin: 0 0 8px;
	background: transparent;
}

body.mam-shop-landing .mam-shop-cats .wd-cat-image,
body.mam-shop-landing .mam-shop-cats .wd-cat-thumb img,
body.mam-shop-landing .mam-shop-cats .category-image img {
	display: block;
	width: 100%;
	aspect-ratio: 315 / 240;
	height: auto;
	object-fit: cover;
	object-position: center;
	border-radius: 10px !important;
	background: var(--mam-page);
}

body.mam-shop-landing .mam-shop-cats .wd-cat-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 315 / 240;
	object-fit: cover;
	object-position: center;
	border-radius: 10px !important;
}

body.mam-shop-landing .mam-shop-cats .category-grid-item:hover .wd-cat-image,
body.mam-shop-landing .mam-shop-cats .wd-cat:hover .wd-cat-image,
body.mam-shop-landing .mam-shop-cats .wd-cat:hover img {
	transform: none !important;
	transition: none !important;
}

body.mam-shop-landing .mam-shop-cats .wd-cat-content,
body.mam-shop-landing .mam-shop-cats .hover-mask {
	background: transparent !important;
	position: static !important;
	opacity: 1 !important;
	transform: none !important;
	padding: 0 !important;
	text-align: center;
}

body.mam-shop-landing .mam-shop-cats .wd-entities-title,
body.mam-shop-landing .mam-shop-cats .wd-entities-title a {
	position: static !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	inset: auto !important;
	width: 100% !important;
	font-family: var(--mam-font) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: var(--mam-blue) !important;
	text-align: center !important;
	text-transform: none !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: unset !important;
	-webkit-line-clamp: unset !important;
	display: block !important;
	height: auto !important;
	max-height: none !important;
	margin: 10px 0 0 !important;
	transform: none !important;
	opacity: 1 !important;
}

body.mam-shop-landing .mam-shop-cats .wd-cat-count,
body.mam-shop-landing .mam-shop-cats .more-products {
	display: none !important;
}

/* ---------- Listing heading + intro ---------- */
body.mam-product-listing .wd-page-content .title-wrapper,
body.mam-product-listing .wd-page-content .wd-woo-page-title {
	text-align: center;
}

/* Category layouts add their own container padding. FAQ uses only the page padding. */
body.mam-product-listing .wd-content-area > .elementor > .e-con {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	padding: 0 !important;
}

body.mam-product-listing .wd-page-content .woodmart-title-container,
body.mam-product-listing .wd-page-content .title-wrapper .title,
body.mam-product-listing .wd-page-content .wd-woo-page-title .entry-title,
body.mam-product-listing .wd-page-content .wd-woo-page-title .title {
	font-family: PeakRounded, Arial, sans-serif !important;
	font-size: 34px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: #184994 !important;
	text-align: center !important;
	display: block;
	margin: 0 0 16px;
}

body.mam-product-listing .mam-listing-intro,
body.mam-product-listing .mam-listing-intro p {
	font-family: var(--mam-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--mam-blue);
	text-align: center;
	max-width: 980px;
	margin: 0 auto 18px;
}

/* ---------- Filter bar ---------- */
body.mam-product-listing .wd-product-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 4px;
	background: #ffffff;
	border-radius: 10px;
	min-height: 56px;
	padding: 8px 18px;
	margin: 8px 0 18px;
	box-shadow: none;
	border: 0;
}

body.mam-product-listing .wd-product-filters .wd-pf-btn {
	display: none;
}

body.mam-product-listing .wd-pf-checkboxes {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

body.mam-product-listing .wd-pf-title {
	min-height: 36px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	border-radius: 6px;
}

body.mam-product-listing .wd-pf-title:focus {
	outline: 2px solid var(--mam-blue);
	outline-offset: 2px;
}

body.mam-product-listing .wd-pf-title .title-text,
body.mam-product-listing .wd-pf-results,
body.mam-product-listing .wd-pf-results .selected-value {
	font-family: var(--mam-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--mam-blue);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

body.mam-product-listing .wd-product-filters {
	position: relative;
	z-index: 30;
}

body.mam-product-listing .wd-pf-checkboxes {
	position: relative;
}

body.mam-product-listing .wd-pf-title {
	padding-inline-end: 18px;
}

body.mam-product-listing .wd-pf-title:after {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: -5px;
	border-right: 1.5px solid var(--mam-blue);
	border-bottom: 1.5px solid var(--mam-blue);
	background: none;
	color: transparent;
	font-size: 0;
	font-family: inherit;
	transform: rotate(45deg);
}

body.mam-product-listing .wd-pf-checkboxes.wd-opened > .wd-pf-title:after {
	margin-top: -1px;
	transform: rotate(-135deg);
}

body.mam-product-listing .wd-pf-dropdown {
	min-width: 220px;
	margin-top: 10px;
	padding: 8px 0;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(37, 67, 152, 0.16);
}

body.mam-product-listing .wd-pf-dropdown .wd-scroll-content {
	max-height: 340px;
}

body.mam-product-listing .wd-pf-dropdown a,
body.mam-product-listing .wd-pf-dropdown li {
	font-family: var(--mam-font);
	font-size: 13px;
	font-weight: 700;
	color: var(--mam-blue);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

body.mam-product-listing .wd-pf-attributes .wd-pf-dropdown a.pf-value {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px;
	background: transparent;
	text-decoration: none;
}

body.mam-product-listing .wd-pf-attributes .wd-pf-dropdown a.pf-value::before {
	content: "";
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	box-sizing: border-box;
	border: 1.5px solid #c5cad6;
	border-radius: 3px;
	background: #fff;
}

body.mam-product-listing .wd-pf-attributes .wd-pf-dropdown li.wd-active > a.pf-value::before {
	border-color: var(--mam-blue);
	background-color: var(--mam-blue);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' d='M1 5.2 4.2 8.4 11 1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 10px 8px;
}

body.mam-product-listing .wd-pf-dropdown a:hover {
	background: #f6f8fc;
	color: var(--mam-blue);
}

body.mam-product-listing .wd-pf-sortby .wd-pf-dropdown {
	left: auto;
	right: 0;
	min-width: 180px;
	padding: 8px;
}

body.mam-product-listing .wd-pf-sortby .wd-pf-dropdown a {
	display: block;
	margin: 2px 0;
	padding: 7px 10px;
	border: 1px solid transparent;
	border-radius: 4px;
	text-decoration: none;
}

body.mam-product-listing .wd-pf-sortby .wd-pf-dropdown a::before {
	content: none;
}

body.mam-product-listing .wd-pf-sortby .wd-pf-dropdown li.wd-active > a,
body.mam-product-listing .wd-pf-sortby .wd-pf-dropdown a[aria-current="true"] {
	border-color: #b7c4e4;
	background: #fff;
}

body.mam-product-listing .wd-pf-price-range .wd-pf-dropdown {
	min-width: 280px;
	padding: 14px 16px 16px;
}

body.mam-product-listing .wd-pf-price-range .price_slider_wrapper,
body.mam-product-listing .wd-pf-price-range .price_slider_widget,
body.mam-product-listing .wd-pf-price-range .price_label,
body.mam-product-listing .wd-pf-price-range .filter_price_slider_amount .button {
	display: none !important;
}

body.mam-product-listing .mam-price-fields {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}

body.mam-product-listing .mam-price-fields label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 0;
	margin: 0;
	color: var(--mam-blue);
	font-family: var(--mam-font);
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
}

body.mam-product-listing .mam-price-input {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 10px;
	border: 1px solid #d5d8e2;
	border-radius: 4px;
	background: #fff;
}

body.mam-product-listing .mam-price-input input {
	width: 100%;
	min-width: 0;
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--mam-blue);
	font-family: var(--mam-font);
	font-size: 14px;
	font-weight: 600;
	outline: none;
	box-shadow: none;
}

body.mam-product-listing .mam-price-input span {
	color: var(--mam-blue);
	font-weight: 600;
}

body.mam-product-listing .mam-price-dash {
	align-self: flex-end;
	margin-bottom: 8px;
	color: var(--mam-blue);
	font-weight: 600;
}

body.mam-product-listing .wd-pf-attributes .wd-pf-results,
body.mam-product-listing .wd-pf-price-range .wd-pf-results {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

body.mam-product-listing .mam-filter-count {
	font-weight: 700;
}

body.mam-product-listing .mam-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0 4px;
}

body.mam-product-listing .mam-active-filters:empty {
	display: none;
}

body.mam-product-listing .mam-filter-chip,
body.mam-product-listing .mam-filter-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 34px;
	padding: 6px 12px;
	border-radius: 6px;
	font-family: var(--mam-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
}

body.mam-product-listing .mam-filter-chip {
	border: 0;
	background: var(--mam-blue);
	color: #fff;
}

body.mam-product-listing .mam-filter-chip-x {
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
}

body.mam-product-listing .mam-filter-reset {
	border: 1px solid var(--mam-blue);
	background: #fff;
	color: var(--mam-blue);
}

body.mam-product-listing .mam-filter-reset:hover,
body.mam-product-listing .mam-filter-chip:hover {
	filter: brightness(0.95);
}

/* Attribute terms may carry WoodMart swatch images. The filter bar is a text list. */
body.mam-product-listing .wd-pf-dropdown .wd-swatch {
	display: none !important;
}

body.mam-product-listing .wd-pf-dropdown .wd-filter-lable {
	display: inline;
}

body.mam-product-listing .wd-pf-sortby {
	margin-left: auto;
}

body.mam-product-listing .wd-pf-sortby:not(:has(.selected-value)) .title-text::after {
	content: ": Our sorting";
	font-weight: 700;
	text-transform: uppercase;
}

body.mam-product-listing .mam-mobile-filter-open,
body.mam-product-listing .mam-mobile-filter-head,
body.mam-product-listing .mam-mobile-sort-label {
	display: none;
}

/* ---------- Product grid ---------- */
body.mam-product-listing .wd-products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 0;
	row-gap: 0;
	align-items: stretch;
	width: 100%;
}

body.mam-product-listing .wd-products > .wd-product,
body.mam-product-listing .wd-product.wd-col {
	display: flex;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	flex: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.mam-product-listing .wd-product .wd-product-wrapper,
body.mam-product-listing .wd-product .product-wrapper,
body.mam-product-listing .wd-product .product-element-top {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	width: 100%;
	max-width: 100%;
	align-self: stretch;
}

body.mam-product-listing .wd-product-wrapper > .wp-block-wd-container {
	display: flex;
	flex-direction: column;
	gap: 0 !important;
	height: 100%;
	width: auto;
	box-sizing: border-box;
	margin: 12px !important;
	padding: 24px !important;
	background: #f6f4f2 !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 10px !important;
	color: #254398;
	font-family: var(--mam-font);
	font-size: 24px;
	font-weight: 400;
	line-height: 36px;
}

body.mam-product-listing .wd-product .wp-block-wd-container .wp-block-wd-container,
body.mam-product-listing .wd-product .wp-block-paragraph:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	min-height: 0 !important;
}

/* WoodMart sets --wd-transform-translateY: -10px on hover. Keep the card still. */
body.mam-product-listing .wd-product .wd-product-wrapper,
body.mam-shop-landing .wd-product .wd-product-wrapper {
	transform: none !important;
}

body.mam-product-listing .wd-loop-prod-thumb {
	position: relative;
	width: 100% !important;
	max-width: 100% !important;
	align-self: stretch !important;
	height: 200px;
	min-height: 200px;
	margin: 0 0 15px !important;
	padding: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
}

body.mam-product-listing .wd-loop-prod-thumb a.wd-product-img-link,
body.mam-product-listing .wd-loop-prod-thumb .wd-product-img-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 100% !important;
	min-width: 0;
}

body.mam-product-listing .wd-loop-prod-thumb img,
body.mam-product-listing .wd-product-img-link img {
	width: auto !important;
	max-width: 100% !important;
	height: 200px !important;
	max-height: 200px !important;
	object-fit: scale-down !important;
	object-position: center center !important;
	border-radius: 10px !important;
	background: transparent;
}

body.mam-product-listing .wd-wishlist-icon,
body.mam-product-listing .wd-loop-prod-thumb .wd-wishlist-btn {
	position: absolute !important;
	top: 0;
	right: 0;
	left: auto !important;
	width: 35px !important;
	height: 35px !important;
	max-width: 35px;
	margin: 0 !important;
	z-index: 4;
	background: transparent !important;
}

body.mam-product-listing .wd-wishlist-icon a,
body.mam-product-listing .wd-wishlist-btn a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 35px !important;
	height: 35px !important;
	min-width: 35px;
	padding: 0 !important;
	border-radius: 50%;
	background: #ffffff !important;
	color: var(--mam-blue) !important;
	box-shadow: none !important;
}

body.mam-product-listing .wd-wishlist-btn .wd-action-text {
	display: none !important;
}

body.mam-product-listing .wd-loop-prod-title {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	-webkit-line-clamp: unset !important;
}

body.mam-product-listing .wd-loop-prod-title a {
	font-family: var(--mam-font) !important;
	font-size: 28px !important;
	font-weight: 700 !important;
	line-height: 31px !important;
	color: #254398 !important;
	text-align: left !important;
	text-transform: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	height: 62px;
	min-height: 62px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.mam-product-listing .wd-loop-prod-price {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0;
	width: auto !important;
}

body.mam-product-listing .wd-loop-prod-price .price {
	display: inline-block;
	width: auto !important;
	margin: 2px 0 0 !important;
}

body.mam-product-listing .wd-loop-prod-price .price::before {
	content: "from\00a0";
	font-weight: 400;
}

body.mam-product-listing .wd-loop-prod-price .price,
body.mam-product-listing .wd-loop-prod-price .amount,
body.mam-product-listing .wd-loop-prod-price del,
body.mam-product-listing .wd-loop-prod-price ins {
	font-family: var(--mam-font) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	color: #254398 !important;
}

body.mam-product-listing .wd-loop-prod-price .amount,
body.mam-product-listing .wd-loop-prod-price del,
body.mam-product-listing .wd-loop-prod-price ins {
	margin: 0 !important;
}

body.mam-product-listing .wd-loop-prod-title,
body.mam-product-listing .wd-loop-prod-price,
body.mam-product-listing .wd-add-btn-wrapp,
body.mam-product-listing .wd-add-btn {
	width: 100% !important;
	max-width: 100% !important;
	align-self: stretch !important;
	box-sizing: border-box;
}

body.mam-product-listing .wd-add-btn-wrapp {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.mam-product-listing .wd-loop-prod-btn {
	margin-top: auto !important;
	padding: 0 !important;
	width: 100%;
}

body.mam-product-listing .wd-add-btn.wd-loop-prod-btn {
	padding-top: 14px !important;
}

body.mam-product-listing .wd-product .add_to_cart_button,
body.mam-product-listing .wd-product .product_type_simple,
body.mam-product-listing .wd-product .product_type_variable,
body.mam-product-listing .wd-product .product_type_grouped,
body.mam-product-listing .wd-product .product_type_external,
body.mam-product-listing .wd-loop-prod-btn .button,
body.mam-product-listing .wd-loop-prod-btn a.button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	min-height: 40px;
	height: 40px;
	margin: 0 !important;
	padding: 2px 12px !important;
	background: var(--mam-blue) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	font-family: var(--mam-font) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	letter-spacing: 0;
	text-transform: uppercase !important;
	text-align: center;
}

body.mam-product-listing .wd-add-btn .wd-action-icon {
	display: none !important;
}

body.mam-product-listing .wd-add-btn .wd-action-text {
	white-space: nowrap;
}

body.mam-product-listing .wd-loop-prod-btn .button:hover,
body.mam-product-listing .wd-loop-prod-btn a.button:hover {
	background: #1c3274 !important;
	color: #ffffff !important;
}

body.mam-product-listing .wd-loop-prod-btn .button:focus-visible,
body.mam-product-listing .wd-pf-title:focus-visible,
body.mam-product-listing .mam-last-chance__btn:focus-visible,
body.mam-product-listing .wd-products-load-more:focus-visible {
	outline: 2px solid var(--mam-blue);
	outline-offset: 2px;
}

/* ---------- Load more ---------- */
body.mam-product-listing .wd-loop-footer,
body.mam-product-listing .woocommerce-pagination {
	display: flex;
	justify-content: center;
	background: transparent;
	margin-top: 18px;
}

body.mam-product-listing .wd-products-load-more,
body.mam-product-listing a.wd-load-more,
body.mam-product-listing .wd-load-more.loading + .wd-load-more-loader {
	align-items: center;
	justify-content: center;
	width: auto !important;
	max-width: 100%;
	background: #ffffff !important;
	color: var(--mam-blue) !important;
	border: 0 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	font-family: var(--mam-font) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	line-height: 1.1 !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	min-height: 52px;
	padding: 14px 48px !important;
	margin: 0 !important;
}

body.mam-product-listing .wd-products-load-more,
body.mam-product-listing a.wd-load-more {
	display: inline-flex !important;
}

body.mam-product-listing .wd-products-load-more.loading,
body.mam-product-listing a.wd-load-more.loading {
	display: none !important;
}

body.mam-product-listing .wd-load-more.loading + .wd-load-more-loader {
	display: inline-flex !important;
}

body.mam-product-listing .wd-load-more-loader .load-more-loading:before {
	border-left-color: var(--mam-blue);
}

body.mam-product-listing .wd-products-load-more:hover,
body.mam-product-listing a.wd-load-more:hover,
body.mam-product-listing .wd-products-load-more:focus,
body.mam-product-listing a.wd-load-more:focus {
	background: #ffffff !important;
	color: var(--mam-blue) !important;
}

/* ---------- Last Chance banner ---------- */
body.mam-product-listing .mam-grid-banner {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	grid-column: 1 / -1;
	padding: 8px 10px 16px;
}

body.mam-product-listing .mam-last-chance {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 126px;
	padding: 18px 30px;
	background: var(--mam-banner);
	border-radius: 10px;
	color: var(--mam-blue);
}

body.mam-product-listing .mam-last-chance h3,
body.mam-product-listing .mam-last-chance p {
	margin: 0;
	color: var(--mam-blue);
	font-family: var(--mam-font);
}

body.mam-product-listing .mam-last-chance h3 {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
}

body.mam-product-listing .mam-last-chance p {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 4px;
}

body.mam-product-listing .mam-last-chance__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 20px;
	background: var(--mam-blue);
	color: #ffffff !important;
	border-radius: 6px;
	font-family: var(--mam-font);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
}

body.mam-product-listing .mam-last-chance__btn:hover {
	background: #1c3274;
	color: #ffffff !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	body.mam-product-listing .wd-pf-sortby {
		margin-left: 0;
	}
}

@media (max-width: 1199px) {
	body.mam-product-listing .wd-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	/* Theme content padding plus breadcrumb margin left a blank band under the header. */
	body.mam-shop-landing .wd-content-layout,
	body.mam-product-listing .wd-content-layout {
		padding-top: 0 !important;
	}

	body.mam-shop-landing .elementor > .e-con,
	body.mam-product-listing .elementor > .e-con {
		--padding-top: 0px;
		padding-top: 0 !important;
	}

	body.mam-shop-landing .wd-breadcrumbs,
	body.mam-shop-landing .woocommerce-breadcrumb,
	body.mam-product-listing .wd-breadcrumbs,
	body.mam-product-listing .woocommerce-breadcrumb {
		margin-top: 10px;
	}

	body.mam-shop-landing .mam-shop-inner,
	body.mam-product-listing .mam-listing-layout {
		padding-left: 12px;
		padding-right: 12px;
	}

	body.mam-product-listing .mam-listing-intro,
	body.mam-product-listing .mam-listing-intro p {
		font-size: 16px !important;
	}

	body.mam-product-listing .wd-product-filters {
		padding: 8px 10px;
	}

	body.mam-product-listing .wd-product-wrapper > .wp-block-wd-container {
		margin: 6px !important;
		padding: 12px !important;
		font-size: 18px;
		line-height: 27px;
	}

	body.mam-product-listing .wd-loop-prod-thumb,
	body.mam-product-listing .wd-loop-prod-thumb img,
	body.mam-product-listing .wd-product-img-link img {
		height: 140px !important;
		min-height: 140px;
		max-height: 140px !important;
	}

	body.mam-product-listing .wd-loop-prod-title a {
		font-size: 14px !important;
		line-height: 16px !important;
		height: auto;
		min-height: 32px;
	}

	body.mam-product-listing .wd-loop-prod-price .price,
	body.mam-product-listing .wd-loop-prod-price .amount,
	body.mam-product-listing .wd-loop-prod-price del,
	body.mam-product-listing .wd-loop-prod-price ins {
		font-size: 14px !important;
		line-height: 16px !important;
	}

	body.mam-product-listing .wd-loop-prod-price .price {
		margin: 2px 0 0 !important;
	}

	body.mam-product-listing .wd-loop-prod-btn .button,
	body.mam-product-listing .wd-loop-prod-btn a.button,
	body.mam-product-listing .wd-product .add_to_cart_button {
		font-size: 12px !important;
		height: 40px;
	}

	body.mam-product-listing .wd-products {
		column-gap: 0;
		row-gap: 0;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.mam-product-listing .mam-last-chance {
		flex-direction: column;
		align-items: flex-start;
		padding: 16px;
	}

	body.mam-product-listing .mam-last-chance h3 {
		font-size: 26px;
	}

	body.mam-product-listing .mam-last-chance p {
		font-size: 16px;
	}

	body.mam-product-listing .wd-content-layout {
		padding-bottom: 74px;
	}

	body.mam-product-listing .mam-mobile-filter-open {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 100%;
		min-height: 48px;
		margin: 0;
		padding: 0 12px;
		border: 0;
		border-radius: 8px;
		background: #fff;
		box-shadow: 0 2px 10px rgba(37, 67, 152, 0.08);
		color: var(--mam-blue);
		font-family: var(--mam-font);
		font-size: 13px;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		cursor: pointer;
	}

	body.mam-product-listing .mam-mobile-filter-icon {
		width: 18px;
		height: 14px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cpath d='M0 1.5h18M0 7h18M0 12.5h18' fill='none' stroke='%23254398' stroke-width='1.4'/%3E%3Ccircle cx='5' cy='1.5' r='2.1' fill='%23254398'/%3E%3Ccircle cx='12' cy='7' r='2.1' fill='%23254398'/%3E%3Ccircle cx='7' cy='12.5' r='2.1' fill='%23254398'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	body.mam-product-listing:not(.mam-filter-panel-open) .wd-product-filters {
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: 10px;
		z-index: 400;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		min-height: 0;
		margin: 0;
		padding: 0;
		background: transparent;
		border-radius: 0;
		box-shadow: none;
	}

	body.mam-product-listing:has(.wd-toolbar):not(.mam-filter-panel-open) .wd-product-filters {
		bottom: 10px;
	}

	body.mam-product-listing:not(.mam-filter-panel-open) .wd-pf-checkboxes:not(.wd-pf-sortby),
	body.mam-product-listing:not(.mam-filter-panel-open) .mam-mobile-filter-head {
		display: none;
	}

	body.mam-product-listing .wd-pf-sortby {
		width: 100%;
		margin: 0;
	}

	body.mam-product-listing .wd-pf-sortby > .wd-pf-title {
		justify-content: center;
		width: 100%;
		min-height: 48px;
		padding: 0 28px;
		background: #fff;
		border-radius: 8px;
		box-shadow: 0 2px 10px rgba(37, 67, 152, 0.08);
	}

	body.mam-product-listing .wd-pf-sortby .title-text,
	body.mam-product-listing .wd-pf-sortby .wd-pf-results {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: 0;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	body.mam-product-listing .mam-mobile-sort-label {
		display: inline;
		color: var(--mam-blue);
		font-family: var(--mam-font);
		font-size: 13px;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	body.mam-product-listing .wd-pf-sortby.wd-opened > .wd-pf-dropdown {
		position: fixed;
		inset: 0;
		z-index: 395;
		display: block;
		width: auto;
		min-width: 0;
		margin: 0;
		padding: 16px 16px 88px;
		overflow: auto;
		border-radius: 0;
		background: #fff;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
		pointer-events: auto;
	}

	body.admin-bar.mam-product-listing .wd-pf-sortby.wd-opened > .wd-pf-dropdown {
		top: 46px;
	}

	body.mam-product-listing:not(:has(.wd-toolbar)) .wd-pf-sortby.wd-opened > .wd-pf-dropdown {
		bottom: 0;
	}

	body.mam-product-listing .wd-pf-sortby .wd-pf-dropdown:after {
		display: none;
	}

	body.mam-product-listing .wd-pf-sortby .wd-pf-dropdown a {
		display: block;
		margin: 0 0 10px;
		padding: 14px 16px;
		border: 1px solid #e3e6ee;
		border-radius: 8px;
		background: #fff;
	}

	body.mam-product-listing .wd-pf-sortby .wd-pf-dropdown li.wd-active > a,
	body.mam-product-listing .wd-pf-sortby .wd-pf-dropdown a[aria-current="true"] {
		border-color: var(--mam-blue);
		background: #fff;
	}

	body.mam-product-listing.mam-filter-panel-open {
		overflow: hidden;
	}

	body.mam-product-listing.mam-filter-panel-open .wd-product-filters {
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		z-index: 450;
		display: block;
		margin: 0;
		padding: 8px 16px 24px;
		overflow: auto;
		background: #fff;
		border-radius: 0;
		box-shadow: none;
	}

	body.admin-bar.mam-product-listing.mam-filter-panel-open .wd-product-filters {
		top: 46px;
	}

	body.mam-product-listing.mam-filter-panel-open .mam-mobile-filter-open,
	body.mam-product-listing.mam-filter-panel-open .wd-pf-sortby {
		display: none;
	}

	body.mam-product-listing.mam-filter-panel-open .mam-mobile-filter-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 0 14px;
		color: var(--mam-blue);
		font-family: var(--mam-font);
		font-size: 22px;
		font-weight: 700;
	}

	body.mam-product-listing .mam-mobile-filter-close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border: 0;
		background: transparent;
		color: var(--mam-blue);
		font-size: 32px;
		line-height: 1;
		cursor: pointer;
	}

	body.mam-product-listing.mam-filter-panel-open .wd-pf-checkboxes:not(.wd-pf-sortby) {
		display: block;
		margin: 0 0 12px;
		border: 1px solid #e3e6ee;
		border-radius: 10px;
		background: #fff;
	}

	body.mam-product-listing.mam-filter-panel-open .wd-pf-checkboxes:not(.wd-pf-sortby) > .wd-pf-title {
		justify-content: space-between;
		min-height: 52px;
		padding: 0 16px;
	}

	body.mam-product-listing.mam-filter-panel-open .wd-pf-checkboxes:not(.wd-pf-sortby) > .wd-pf-dropdown {
		position: static;
		top: auto;
		left: auto;
		display: block;
		width: auto;
		min-width: 0;
		max-height: 0;
		margin: 0;
		padding: 0 8px;
		overflow: hidden;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: hidden;
		transform: none;
		transition: none;
		pointer-events: none;
	}

	body.mam-product-listing.mam-filter-panel-open .wd-pf-checkboxes.wd-opened:not(.wd-pf-sortby) > .wd-pf-dropdown {
		max-height: none;
		padding-bottom: 8px;
		overflow: visible;
		visibility: visible;
		pointer-events: auto;
	}

	body.mam-product-listing.mam-filter-panel-open .wd-pf-dropdown:after {
		display: none;
	}

	body.mam-product-listing.mam-filter-panel-open .wd-pf-price-range .wd-pf-dropdown {
		padding-right: 12px;
		padding-left: 12px;
	}

	body.mam-product-listing.mam-filter-panel-open .mam-price-fields {
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	body.mam-shop-landing .mam-shop-cats .wd-products,
	body.mam-shop-landing .mam-shop-cats .products {
		grid-template-columns: 1fr;
	}
}

/* Homepage product carousel: same image box, so title, price and button line up. */
body.home .wd-products-element .wd-carousel-wrap {
	align-items: stretch !important;
}

body.home .wd-products-element .wd-carousel-item {
	display: flex;
	align-self: stretch;
	height: auto !important;
}

body.home .wd-products-element .wd-product,
body.home .wd-products-element .wd-product-wrapper,
body.home .wd-products-element .wd-product-wrapper > .wp-block-wd-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

body.home .wd-products-element .wd-product-wrapper > .wp-block-wd-container {
	justify-content: flex-start;
}

body.home .wd-products-element .wd-loop-prod-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 220px;
	width: 100% !important;
	height: 220px;
	min-height: 220px;
	max-height: 220px;
	margin: 0 0 8px !important;
	overflow: hidden;
	box-sizing: border-box;
}

body.home .wd-products-element .wd-loop-prod-thumb .wd-product-img-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
}

body.home .wd-products-element .wd-loop-prod-thumb img {
	display: block;
	width: 100% !important;
	height: 220px !important;
	max-height: 220px !important;
	object-fit: contain !important;
	object-position: center center !important;
}

body.home .wd-products-element .wd-loop-prod-thumb .wd-wishlist-btn {
	top: 6px !important;
	right: 6px !important;
	bottom: auto !important;
	left: auto !important;
	margin: 0 !important;
	z-index: 4;
}

body.home .wd-products-element .wd-loop-prod-title {
	min-height: 56px;
}

body.home .wd-products-element .wd-add-btn-wrapp {
	margin-top: auto !important;
}

@media (max-width: 767px) {
	body.home .wd-products-element .wd-loop-prod-thumb {
		flex-basis: 150px;
		height: 150px;
		min-height: 150px;
		max-height: 150px;
	}

	body.home .wd-products-element .wd-loop-prod-thumb img {
		height: 150px !important;
		max-height: 150px !important;
	}

	body.home .wd-products-element .wd-loop-prod-title {
		min-height: 40px;
	}
}

/* Peak Rounded files are printed from functions.php. */

/* ---------- Breadcrumbs, every page (match mambaby.com) ---------- */
.e-con-inner:has(> .wd-el-breadcrumbs:only-child),
.wd-el-breadcrumbs,
.wd-el-breadcrumbs .elementor-widget-container,
.wd-breadcrumbs,
.woocommerce-breadcrumb,
nav[aria-label="Breadcrumb"],
nav[aria-label="breadcrumb"] {
	font-family: PeakRounded, "Open Sans", sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-synthesis: none;
	line-height: 24px !important;
	color: #254398 !important;
	background: #EEE9E4 !important;
	--wd-link-color: #254398;
	--wd-link-color-hover: #254398;
	--wd-bcrumb-color-active: rgba(37, 67, 152, 0.5);
	--wd-bcrumb-delim-color: #254398;
}

.wd-el-breadcrumbs.elementor-widget__width-auto,
.wd-el-breadcrumbs .elementor-widget-container,
.wd-breadcrumbs,
.woocommerce-breadcrumb {
	width: 100% !important;
	max-width: 100% !important;
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap;
}

.wd-breadcrumbs a,
.woocommerce-breadcrumb a,
.wd-breadcrumbs .wd-last,
.wd-breadcrumbs .wd-last-link,
.woocommerce-breadcrumb .wd-last,
.wd-breadcrumbs :is(.wd-last, .breadcrumb_last, .last, .active),
.woocommerce-breadcrumb :is(.wd-last, .breadcrumb_last, .last, .active) {
	font-family: PeakRounded, "Open Sans", sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-synthesis: none;
	line-height: 22px !important;
	color: #254398 !important;
}

.wd-breadcrumbs a,
.woocommerce-breadcrumb a {
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.wd-breadcrumbs .wd-last,
.woocommerce-breadcrumb .wd-last,
.wd-breadcrumbs :is(.breadcrumb_last, .last, .active),
.woocommerce-breadcrumb :is(.breadcrumb_last, .last, .active) {
	color: rgba(37, 67, 152, 0.5) !important;
	text-decoration: none !important;
}

.wd-breadcrumbs .wd-delimiter,
.woocommerce-breadcrumb .wd-delimiter {
	display: inline-block !important;
	width: 14px;
	height: 14px;
	margin-inline: 4px !important;
	font-size: 0 !important;
	line-height: 16px !important;
	color: transparent !important;
	text-decoration: none !important;
	background: center / 7px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 7 12'%3E%3Cpath d='M1 1.2 L5.6 6 L1 10.8' fill='none' stroke='%23254398' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	vertical-align: middle;
}

.wd-breadcrumbs a:hover,
.woocommerce-breadcrumb a:hover {
	color: #254398 !important;
	text-decoration: underline !important;
}
