/* =========================================================
   STITCH BUFFALO - WOOCOMMERCE
   ========================================================= */

/* 1. Base Woo overrides */

/* Migrated from rmg-woocommerce-product-card-meta.css. Original cascade order preserved. */
/**
 * WooCommerce product meta display.
 *
 * Last updated: 2026-05-19
 */

/* ---------------------------------------------
   Loop card meta: shared color and icon defaults
   --------------------------------------------- */

.rmg-product-meta {
	color: #111111;
	--rmg-thread-purple: #883daf;
	--rmg-thread-sage: #9dc702;
}

.rmg-product-meta a {
	color: #111111;
	text-decoration: none;
}

.rmg-product-meta a:hover,
.rmg-product-meta a:focus {
	color: #000000;
}

.rmg-product-maker-byline {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #111111;
	font-family: "Urbanist", "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
	line-height: 1.3;
}

.rmg-product-maker-byline--single,
.rmg-product-maker-byline--divi {
	margin: -2px 0 16px;
	font-size: 15px;
}

.rmg-product-maker-byline--loop {
	justify-content: flex-start;
	margin: 4px 0 6px;
	font-size: clamp(14px, 1.7vw, 16px);
	text-align: left;
}

.rmg-product-maker-byline__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	color: var(--rmg-thread-purple);
	flex: 0 0 21px;
}

.rmg-product-maker-byline__icon svg,
.rmg-product-maker-byline__icon img {
	display: block;
	width: 21px !important;
	height: 21px !important;
}

.rmg-product-maker-byline--loop .rmg-product-maker-byline__icon,
.rmg-product-maker-byline--loop .rmg-product-maker-byline__icon svg,
.rmg-product-maker-byline--loop .rmg-product-maker-byline__icon img {
	width: 15px !important;
	height: 15px !important;
	flex-basis: 15px;
}

.rmg-product-maker-byline__label {
	color: var(--rmg-thread-purple);
	font-weight: 700;
}

.rmg-product-maker-byline__names,
.rmg-product-maker-byline__link {
	color: #111111;
}

.rmg-product-maker-byline__link:hover,
.rmg-product-maker-byline__link:focus {
	color: var(--rmg-thread-purple);
}

/* ---------------------------------------------
   Product feeds: cleaner editorial card treatment
   - keep the maker line visible in native Woo and Divi shop modules
   - remove the old hover icon/overlay feel
   --------------------------------------------- */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.et_pb_shop .woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.woocommerce ul.products li.product a,
.woocommerce-page ul.products li.product a,
.et_pb_shop .woocommerce ul.products li.product a {
	text-decoration: none;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
.et_pb_shop .woocommerce ul.products li.product a img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	border: 0;
	box-shadow: none;
}

.woocommerce ul.products li.product .rmg-product-card-image-stack,
.woocommerce-page ul.products li.product .rmg-product-card-image-stack,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-card-image-stack {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f8f5ef;
}

.woocommerce ul.products li.product a > .rmg-product-card-image-stack + .et_shop_image,
.woocommerce-page ul.products li.product a > .rmg-product-card-image-stack + .et_shop_image,
.et_pb_shop .woocommerce ul.products li.product a > .rmg-product-card-image-stack + .et_shop_image {
	display: none !important;
}

.woocommerce ul.products li.product .rmg-product-card-image-stack .rmg-product-card-image,
.woocommerce-page ul.products li.product .rmg-product-card-image-stack .rmg-product-card-image,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-card-image-stack .rmg-product-card-image {
	position: absolute;
	inset: 0;
	height: 100%;
	transition: opacity 0.24s ease;
}

.woocommerce ul.products li.product .rmg-product-card-image-stack .rmg-product-card-image--secondary,
.woocommerce-page ul.products li.product .rmg-product-card-image-stack .rmg-product-card-image--secondary,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-card-image-stack .rmg-product-card-image--secondary {
	opacity: 0;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.woocommerce ul.products li.product .rmg-product-card-image-stack:hover .rmg-product-card-image--primary,
	.woocommerce-page ul.products li.product .rmg-product-card-image-stack:hover .rmg-product-card-image--primary,
	.et_pb_shop .woocommerce ul.products li.product .rmg-product-card-image-stack:hover .rmg-product-card-image--primary {
		opacity: 0;
	}

	.woocommerce ul.products li.product .rmg-product-card-image-stack:hover .rmg-product-card-image--secondary,
	.woocommerce-page ul.products li.product .rmg-product-card-image-stack:hover .rmg-product-card-image--secondary,
	.et_pb_shop .woocommerce ul.products li.product .rmg-product-card-image-stack:hover .rmg-product-card-image--secondary {
		opacity: 1;
	}
}

.woocommerce ul.products li.product .rmg-product-card-image-stack--single .rmg-product-card-image--primary,
.woocommerce-page ul.products li.product .rmg-product-card-image-stack--single .rmg-product-card-image--primary,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-card-image-stack--single .rmg-product-card-image--primary {
	transition: transform 0.24s ease, opacity 0.24s ease;
}

@media (hover: hover) and (pointer: fine) {
	.woocommerce ul.products li.product .rmg-product-card-image-stack--single:hover .rmg-product-card-image--primary,
	.woocommerce-page ul.products li.product .rmg-product-card-image-stack--single:hover .rmg-product-card-image--primary,
	.et_pb_shop .woocommerce ul.products li.product .rmg-product-card-image-stack--single:hover .rmg-product-card-image--primary {
		transform: scale(1.05);
		opacity: 1;
	}
}

.woocommerce ul.products li.product .et_overlay,
.woocommerce ul.products li.product .et_overlay:before,
.woocommerce-page ul.products li.product .et_overlay,
.woocommerce-page ul.products li.product .et_overlay:before,
.et_pb_shop .woocommerce ul.products li.product .et_overlay,
.et_pb_shop .woocommerce ul.products li.product .et_overlay:before {
	display: none !important;
	content: none !important;
	opacity: 0 !important;
}

.woocommerce ul.products li.product .rmg-product-maker-byline,
.woocommerce-page ul.products li.product .rmg-product-maker-byline,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-maker-byline {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	clear: both;
	margin: 8px 0 0 !important;
	padding: 0 !important;
	color: #111111;
	font-family: "Urbanist", "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(14px, 1.7vw, 16px);
	line-height: 1.35;
}

.woocommerce ul.products li.product .rmg-product-maker-byline--loop,
.woocommerce-page ul.products li.product .rmg-product-maker-byline--loop,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-maker-byline--loop {
	justify-content: flex-start;
	text-align: left;
}

.woocommerce ul.products li.product .rmg-product-maker-byline--loop .rmg-product-maker-byline__icon,
.woocommerce-page ul.products li.product .rmg-product-maker-byline--loop .rmg-product-maker-byline__icon,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-maker-byline--loop .rmg-product-maker-byline__icon {
	display: inline-flex;
	width: 1em !important;
	height: 1em !important;
	flex: 0 0 1em;
}

.woocommerce ul.products li.product .rmg-product-maker-byline--loop .rmg-product-maker-byline__icon svg,
.woocommerce ul.products li.product .rmg-product-maker-byline--loop .rmg-product-maker-byline__icon img,
.woocommerce-page ul.products li.product .rmg-product-maker-byline--loop .rmg-product-maker-byline__icon svg,
.woocommerce-page ul.products li.product .rmg-product-maker-byline--loop .rmg-product-maker-byline__icon img,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-maker-byline--loop .rmg-product-maker-byline__icon svg,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-maker-byline--loop .rmg-product-maker-byline__icon img {
	width: 1em !important;
	height: 1em !important;
}

.woocommerce ul.products li.product .rmg-product-maker-byline__label,
.woocommerce-page ul.products li.product .rmg-product-maker-byline__label,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-maker-byline__label {
	color: #6f6049;
	font-size: inherit;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: none;
}

.woocommerce ul.products li.product .rmg-product-maker-byline__link,
.woocommerce-page ul.products li.product .rmg-product-maker-byline__link,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-maker-byline__link {
	color: #111111;
	font-size: inherit;
	font-weight: 400;
	text-decoration: none;
}

.woocommerce ul.products li.product .rmg-product-maker-byline__link:hover,
.woocommerce ul.products li.product .rmg-product-maker-byline__link:focus,
.woocommerce-page ul.products li.product .rmg-product-maker-byline__link:hover,
.woocommerce-page ul.products li.product .rmg-product-maker-byline__link:focus,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-maker-byline__link:hover,
.et_pb_shop .woocommerce ul.products li.product .rmg-product-maker-byline__link:focus {
	color: #6f6049;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title a,
.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce-page ul.products li.product .woocommerce-loop-category__title,
.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-category__title {
	margin: 0;
	padding: 0;
	font-family: "Urbanist", Arial, sans-serif !important;
	font-size: 16px !important;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0;
}

/* Keep product-card titles Urbanist across native and custom Woo feeds. */
body #page-container .woocommerce ul.products li.product .woocommerce-loop-product__title,
body #page-container .et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title,
body #page-container .stitch-shop-feed .woocommerce ul.products li.product .woocommerce-loop-product__title,
body #page-container .dwp-shop-v1 .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: "Urbanist", Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	text-align: left !important;
}

/* Preserve the same product-only contract inside Divi's higher-specificity canvas. */
body #page-container #et-boc .et-l .woocommerce ul.products li.product .woocommerce-loop-product__title,
body #page-container #et-boc .et-l .et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title,
body #page-container #et-boc .et-l .stitch-shop-feed .woocommerce ul.products li.product .woocommerce-loop-product__title,
body #page-container #et-boc .et-l .dwp-shop-v1 .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: "Urbanist", Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	text-align: left !important;
}

/* Product search/archive cards use the standard product-title typography. */
body.search.post-type-archive-product #page-container #et-boc .et-l ul.products li.product .woocommerce-loop-product__title {
	font-family: "Urbanist", Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	text-align: left !important;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.et_pb_shop .woocommerce ul.products li.product .price {
	margin: 0;
	color: #111111;
	font-size: 14px;
	line-height: 1.35;
}

.rmg-product-meta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	flex: 0 0 16px;
	line-height: 1;
	overflow: hidden;
	color: #000000;
}

.rmg-product-meta__icon svg,
.rmg-product-meta__icon img,
.rmg-product-meta__icon-img,
.rmg-product-meta__icon-svg {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	object-fit: cover;
	border-radius: 0;
}

.rmg-maker-meta__icon,
.rmg-maker-meta__icon svg,
.rmg-maker-meta__icon img,
.rmg-maker-meta__icon path {
	color: var(--rmg-thread-purple) !important;
	fill: currentColor !important;
	stroke: currentColor !important;
}

.rmg-product-meta--card {
	position: relative;
	display: none;
	isolation: isolate;
	margin-top: 8px;
	padding: 5px 0 0;
	font-size: 10px;
	line-height: 1.2;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	overflow: hidden;
}

/* ---------------------------------------------
   Loop card stitch line and compact label/value grid
   --------------------------------------------- */

.rmg-loop-follow-thread .rmg-product-meta--loop-thread,
.rmg-product-meta--loop-thread.rmg-loop-follow-thread {
	display: block;
}

.rmg-product-meta--card::before,
.rmg-product-meta--card::after {
	content: none !important;
	display: none !important;
}

.rmg-product-meta__stitch {
	position: absolute;
	inset: 12px 0 0;
	z-index: -1;
	width: 100%;
	height: 30px;
	pointer-events: none;
	opacity: 0.36;
}

.rmg-product-meta__stitch-thread {
	stroke: var(--rmg-thread-sage);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 2 4;
	stroke-dashoffset: 100;
	animation: rmg-product-card-stitch 2.8s linear infinite;
}

.rmg-product-meta__card-inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 3px;
	min-width: 0;
}

.rmg-product-meta__mini-heading {
	color: var(--rmg-thread-purple);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rmg-product-meta__card-labels,
.rmg-product-meta__card-values {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 5px;
	align-items: center;
}

.rmg-product-meta--card-cols-1 .rmg-product-meta__card-labels,
.rmg-product-meta--card-cols-1 .rmg-product-meta__card-values {
	grid-template-columns: minmax(0, 1fr);
}

.rmg-product-meta__card-label {
	min-width: 0;
	color: var(--rmg-thread-purple);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.rmg-product-meta__card-value {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	max-width: 100%;
	font-size: 10px;
	font-weight: 600;
	white-space: nowrap;
}

.rmg-product-meta__card-value a {
	display: block;
	min-width: 0;
	overflow: hidden;
	color: #111111;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rmg-product-meta__line {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.rmg-product-meta__text {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	min-width: 0;
	max-width: 100%;
}

.rmg-product-meta__value-inline {
	min-width: 0;
}

.rmg-product-meta__label {
	font-weight: 600;
	flex: 0 0 auto;
	margin-right: 4px;
}

.rmg-product-meta--card .rmg-product-meta__line {
	font-size: 11px;
}

.rmg-product-meta--card .rmg-product-meta__line--maker,
.rmg-product-meta--card .rmg-product-meta__line--technique {
	white-space: nowrap;
}

.rmg-product-meta--card .rmg-product-meta__line--maker .rmg-product-meta__label,
.rmg-product-meta--card .rmg-product-meta__line--maker .rmg-product-meta__value-inline,
.rmg-product-meta--card .rmg-product-meta__line--technique .rmg-product-meta__label,
.rmg-product-meta--card .rmg-product-meta__line--technique .rmg-product-meta__value-inline {
	display: inline;
}

@keyframes rmg-product-card-stitch {
	to {
		stroke-dashoffset: 0;
	}
}

/* ---------------------------------------------
   Reduced motion fallback
   --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.rmg-product-meta__stitch-thread {
		animation: none;
		stroke-dashoffset: 0;
	}
}

/* 2. Shop/archive */

/* Shop/archive rules are included in the migrated rmg-woocommerce-product-card-meta.css block above. */

/* 3. Default product cards */

/* Default product card rules are included in the migrated rmg-woocommerce-product-card-meta.css block above. */

/* 4. Alternate feed/card variants */

/* Migrated from stitch-shop-feed.css. This keeps the previous cascade position after product-card metadata rules. */
/**
 * Stitch shop feed opt-in styles.
 *
 * Scope this file with the Divi module class "stitch-shop-feed" or the
 * imported DiviWooPro hook class "dwp-shop-v1".
 */

.stitch-shop-feed,
.dwp-shop-v1,
.rmg-maker-products--shop {
	--stitch-shop-indigo: #222b61;
	--stitch-shop-terracotta: #d05135;
	--stitch-shop-charcoal: #4a4644;
	--stitch-shop-black: #000000;
	--stitch-shop-saffron: #f2c43c;
	--stitch-shop-card-gap: clamp(18px, 2.2vw, 32px);
}

.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce ul.products,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--stitch-shop-card-gap) !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce ul.products::before,
.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce ul.products::after,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce ul.products::before,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce ul.products::after {
	content: none !important;
	display: none !important;
}

.stitch-shop-feed,
.dwp-shop-v1,
.stitch-shop-feed .woocommerce,
.dwp-shop-v1 .woocommerce,
.stitch-shop-feed .woocommerce ul.products,
.dwp-shop-v1 .woocommerce ul.products {
	border: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
}

/* Shop page gray border cleanup: remove Divi/DWP divider rules around shop feeds. */
body #page-container .dwp-shop-v1,
body #page-container .dwp-shop-v1.et_pb_module,
body #page-container .dwp-shop-v1.et_pb_shop,
body #page-container .dwp-shop-v1 .woocommerce,
body #page-container .dwp-shop-v1 .woocommerce ul.products,
body #page-container .et_pb_row:has(.dwp-shop-v1),
body #page-container .et_pb_row:has(+ .et_pb_row .dwp-shop-v1) {
	border-top: 0 !important;
	border-right: 0 !important;
	border-bottom: 0 !important;
	border-left: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
	background-image: none !important;
}

body #page-container .dwp-shop-v1::before,
body #page-container .dwp-shop-v1::after,
body #page-container .dwp-shop-v1 .woocommerce::before,
body #page-container .dwp-shop-v1 .woocommerce::after,
body #page-container .dwp-shop-v1 .woocommerce ul.products::before,
body #page-container .dwp-shop-v1 .woocommerce ul.products::after,
body #page-container .et_pb_row:has(.dwp-shop-v1)::before,
body #page-container .et_pb_row:has(.dwp-shop-v1)::after,
body #page-container .et_pb_row:has(+ .et_pb_row .dwp-shop-v1)::before,
body #page-container .et_pb_row:has(+ .et_pb_row .dwp-shop-v1)::after {
	content: none !important;
	display: none !important;
	border: 0 !important;
	box-shadow: none !important;
	background: none !important;
}

.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce.columns-6 ul.products,
.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce ul.products.columns-6,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce.columns-6 ul.products,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce ul.products.columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce.columns-5 ul.products,
.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce ul.products.columns-5,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce.columns-5 ul.products,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce ul.products.columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce.columns-4 ul.products,
.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce ul.products.columns-4,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce.columns-4 ul.products,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce ul.products.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce.columns-3 ul.products,
.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce ul.products.columns-3,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce.columns-3 ul.products,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce ul.products.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce.columns-2 ul.products,
.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce ul.products.columns-2,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce.columns-2 ul.products,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce ul.products.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce ul.products li.product,
.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce ul.products li.product {
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	height: 100%;
	margin: 0 !important;
	clear: none !important;
	font-family: "Urbanist" !important;
	color: var(--stitch-shop-black);
}

.stitch-shop-feed .woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.dwp-shop-v1 .woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	color: var(--stitch-shop-black);
	font-family: "Urbanist" !important;
}

.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-card-image-stack,
.dwp-shop-v1 .woocommerce ul.products li.product .rmg-product-card-image-stack {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border: 0 !important;
	background: #f7f5f0;
	box-shadow: none !important;
	outline: 0 !important;
}

.stitch-shop-feed .woocommerce ul.products li.product .et_overlay,
.stitch-shop-feed .woocommerce ul.products li.product .et_overlay::before,
.dwp-shop-v1 .woocommerce ul.products li.product .et_overlay,
.dwp-shop-v1 .woocommerce ul.products li.product .et_overlay::before {
	display: none !important;
	content: none !important;
	border: 0 !important;
	background: none !important;
	opacity: 0 !important;
}

.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-card-image-stack::before,
.dwp-shop-v1 .woocommerce ul.products li.product .rmg-product-card-image-stack::before {
	content: none !important;
	display: none !important;
	background: none !important;
	opacity: 0 !important;
	pointer-events: none;
}

.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-card-image-stack::after,
.dwp-shop-v1 .woocommerce ul.products li.product .rmg-product-card-image-stack::after {
	content: none !important;
	display: none !important;
	background: none !important;
	opacity: 0 !important;
	transform: none !important;
	pointer-events: none;
}

.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-card-image,
.dwp-shop-v1 .woocommerce ul.products li.product .rmg-product-card-image {
	transform: scale(1);
	transition: opacity 0.24s ease, transform 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
	.stitch-shop-feed .woocommerce ul.products li.product:hover .rmg-product-card-image-stack::before,
	.dwp-shop-v1 .woocommerce ul.products li.product:hover .rmg-product-card-image-stack::before {
		opacity: 0 !important;
	}

	.stitch-shop-feed .woocommerce ul.products li.product:hover .rmg-product-card-image-stack::after,
	.dwp-shop-v1 .woocommerce ul.products li.product:hover .rmg-product-card-image-stack::after {
		transform: none !important;
	}

	.stitch-shop-feed .woocommerce ul.products li.product:hover .rmg-product-card-image,
	.dwp-shop-v1 .woocommerce ul.products li.product:hover .rmg-product-card-image {
		transform: scale(1.08);
	}
}

.stitch-shop-feed .woocommerce ul.products li.product .onsale,
.dwp-shop-v1 .woocommerce ul.products li.product .onsale {
	top: 8px !important;
	right: 8px !important;
	left: auto !important;
	z-index: 4;
	min-width: 0;
	min-height: 0;
	margin: 0 !important;
	padding: 7px 11px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--stitch-shop-indigo) !important;
	color: #ffffff !important;
	font-family: "Urbanist" !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-transform: uppercase;
	letter-spacing: 0;
}

.stitch-shop-feed .woocommerce ul.products li.product .woocommerce-loop-product__title,
.dwp-shop-v1 .woocommerce ul.products li.product .woocommerce-loop-product__title,
.stitch-shop-feed .woocommerce ul.products li.product .price,
.dwp-shop-v1 .woocommerce ul.products li.product .price {
	font-family: "Urbanist" !important;
	color: var(--stitch-shop-black) !important;
	letter-spacing: 0;
	text-align: left !important;
}

.stitch-shop-feed .woocommerce ul.products li.product .woocommerce-loop-product__title {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: calc(1.35em * 4);
	max-height: calc(1.35em * 4);
	margin: 10px 0 0 !important;
	padding: 0 !important;
	overflow: hidden;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	text-align: left !important;
}

.stitch-shop-feed .woocommerce ul.products li.product .woocommerce-loop-product__title a,
.dwp-shop-v1 .woocommerce ul.products li.product .woocommerce-loop-product__title,
.dwp-shop-v1 .woocommerce ul.products li.product .woocommerce-loop-product__title a {
	display: -webkit-box;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	min-height: calc(1.35em * 4);
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	text-align: left !important;
}

body #page-container .dwp-shop-v1.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title,
body #page-container .dwp-shop-v1.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title a {
	display: -webkit-box;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	min-height: calc(1.35em * 4);
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

body #page-container .stitch-shop-feed.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	min-height: calc(1.35em * 4);
	max-height: calc(1.35em * 4);
	margin: 10px 0 0 !important;
	padding: 0 !important;
	overflow: hidden;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	text-align: left !important;
}

body #page-container .stitch-shop-feed.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title a {
	display: -webkit-box !important;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	text-align: left !important;
}

.rmg-product-card-stock-status {
	display: none;
}

.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-card-meta-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 6px;
	margin: 8px 0 12px !important;
	font-family: "Urbanist" !important;
	line-height: 1.3;
}

.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-card-meta-stack .rmg-product-maker-byline {
	gap: 0.35em !important;
	margin: 0 !important;
	line-height: 1.3 !important;
}

.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-maker-byline,
.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-maker-byline * {
	font-family: "Urbanist" !important;
	color: var(--stitch-shop-indigo) !important;
	letter-spacing: 0;
}

.dwp-shop-v1 .woocommerce ul.products li.product .rmg-product-maker-byline,
.dwp-shop-v1 .woocommerce ul.products li.product .rmg-product-maker-byline * {
	font-family: "Urbanist" !important;
	color: var(--stitch-shop-indigo) !important;
	letter-spacing: 0;
}

.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-card-stock-status {
	display: block;
	font-family: "Urbanist" !important;
	color: var(--stitch-shop-terracotta) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-maker-byline__link:hover,
.stitch-shop-feed .woocommerce ul.products li.product .rmg-product-maker-byline__link:focus {
	color: var(--stitch-shop-indigo) !important;
}

.dwp-shop-v1 .woocommerce ul.products li.product .rmg-product-maker-byline__link:hover,
.dwp-shop-v1 .woocommerce ul.products li.product .rmg-product-maker-byline__link:focus {
	color: var(--stitch-shop-charcoal) !important;
}

.stitch-shop-feed .woocommerce ul.products li.product .button,
.stitch-shop-feed .woocommerce ul.products li.product .added_to_cart,
.dwp-shop-v1 .woocommerce ul.products li.product .button,
.dwp-shop-v1 .woocommerce ul.products li.product .added_to_cart,
.rmg-maker-products--shop.woocommerce ul.products li.product .button,
.rmg-maker-products--shop.woocommerce ul.products li.product .added_to_cart {
	display: block !important;
	width: 100% !important;
	margin: auto 0 0 !important;
	padding: 10px 14px !important;
	border: 1px solid var(--stitch-shop-terracotta) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--stitch-shop-indigo) !important;
	font-family: "Urbanist" !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
}

.stitch-shop-feed .woocommerce ul.products li.product .button,
.stitch-shop-feed .woocommerce ul.products li.product .added_to_cart {
	color: var(--stitch-shop-indigo) !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
}

.stitch-shop-feed .woocommerce ul.products li.product .button::after,
.stitch-shop-feed .woocommerce ul.products li.product .added_to_cart::after,
.dwp-shop-v1 .woocommerce ul.products li.product .button::after,
.dwp-shop-v1 .woocommerce ul.products li.product .added_to_cart::after,
.rmg-maker-products--shop.woocommerce ul.products li.product .button::after,
.rmg-maker-products--shop.woocommerce ul.products li.product .added_to_cart::after {
	content: none !important;
	display: none !important;
}

.stitch-shop-feed .woocommerce ul.products li.product .button:hover,
.stitch-shop-feed .woocommerce ul.products li.product .button:focus,
.stitch-shop-feed .woocommerce ul.products li.product .added_to_cart:hover,
.stitch-shop-feed .woocommerce ul.products li.product .added_to_cart:focus,
.dwp-shop-v1 .woocommerce ul.products li.product .button:hover,
.dwp-shop-v1 .woocommerce ul.products li.product .button:focus,
.dwp-shop-v1 .woocommerce ul.products li.product .added_to_cart:hover,
.dwp-shop-v1 .woocommerce ul.products li.product .added_to_cart:focus,
.rmg-maker-products--shop.woocommerce ul.products li.product .button:hover,
.rmg-maker-products--shop.woocommerce ul.products li.product .button:focus,
.rmg-maker-products--shop.woocommerce ul.products li.product .added_to_cart:hover,
.rmg-maker-products--shop.woocommerce ul.products li.product .added_to_cart:focus {
	background: var(--stitch-shop-indigo) !important;
	color: #ffffff !important;
}

.stitch-shop-feed .woocommerce .star-rating,
.stitch-shop-feed .woocommerce .star-rating::before,
.stitch-shop-feed .woocommerce .star-rating span::before,
.dwp-shop-v1 .woocommerce .star-rating,
.dwp-shop-v1 .woocommerce .star-rating::before,
.dwp-shop-v1 .woocommerce .star-rating span::before {
	color: var(--stitch-shop-saffron) !important;
}

@media (min-width: 930px) and (max-width: 1399px) {
	body #page-container .stitch-shop-feed .woocommerce ul.products,
	body #page-container .dwp-shop-v1 .woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* Keep product cards readable when a DiviWoo feed sits in a narrower two-thirds column. */
@media (min-width: 981px) and (max-width: 1302px) {
	body #page-container .et_pb_column_2_3 .dwp-shop-v1 .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 768px) and (max-width: 929px) {
	body #page-container .stitch-shop-feed .woocommerce ul.products,
	body #page-container .dwp-shop-v1 .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.stitch-shop-feed:not(.et_pb_shop_grid) .woocommerce ul.products,
	.dwp-shop-v1:not(.et_pb_shop_grid) .woocommerce ul.products {
		grid-template-columns: 1fr !important;
	}

	body #page-container .stitch-shop-feed.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title {
		min-height: calc(5.4em + 15px) !important;
		max-height: calc(5.4em + 15px) !important;
		padding-top: 15px !important;
	}
}

.stitch-shop-feed .stitch-deal-of-day,
.dwp-shop-v1 .stitch-deal-of-day,
.stitch-shop-feed .deal-of-the-day,
.dwp-shop-v1 .deal-of-the-day {
	border-color: var(--stitch-shop-terracotta) !important;
}

/* Standard Woo product-feed pagination: keep page numbers in a row. */
body #page-container .dwp-shop-v1 nav.woocommerce-pagination {
	clear: both;
	margin-top: 24px;
}

body #page-container .dwp-shop-v1 nav.woocommerce-pagination ul.page-numbers {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body #page-container .dwp-shop-v1 nav.woocommerce-pagination ul.page-numbers > li {
	display: block !important;
	flex: 0 0 auto;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* 5. Product metadata */

/* Product metadata rules are included in the migrated rmg-woocommerce-product-card-meta.css block above. */

/* 6. Filters */

/* No standalone Woo filter stylesheet was enqueued in the active child theme. */

/* 7. Single product */

/* Product titles use the site sans-serif while retaining all template sizing. */
body.single-product #page-container #et-boc .et-l .et_pb_wc_title h1,
body.single-product #page-container .product_title {
	font-family: "Urbanist", Arial, sans-serif !important;
}

/* Shared feed buttons outrank the general light-text-module link color. */
body #page-container #main-content :is(.dwp-shop-v1, .stitch-shop-feed, .rmg-maker-products) ul.products li.product a:is(.button, .added_to_cart):is(:hover, :focus, :focus-visible) {
	background: #222b61 !important;
	color: #ffffff !important;
}

/* WooCommerce notices use a blue background in Divi. Scope the contrast fix
 * to notice contents so regular cart and checkout buttons are unaffected. */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	color: #ffffff !important;
}

.woocommerce .woocommerce-message a:not(.button),
.woocommerce .woocommerce-info a:not(.button),
.woocommerce .woocommerce-error a:not(.button) {
	color: #ffffff !important;
	text-decoration: underline;
}

.woocommerce .woocommerce-message a.button,
.woocommerce .woocommerce-info a.button,
.woocommerce .woocommerce-error a.button {
	border-color: #ffffff !important;
	background: transparent !important;
	color: #ffffff !important;
}

.woocommerce .woocommerce-message a.button:hover,
.woocommerce .woocommerce-message a.button:focus,
.woocommerce .woocommerce-info a.button:hover,
.woocommerce .woocommerce-info a.button:focus,
.woocommerce .woocommerce-error a.button:hover,
.woocommerce .woocommerce-error a.button:focus {
	border-color: #ffffff !important;
	background: #ffffff !important;
	color: #222b61 !important;
}

/* Legal-policy typography. These page IDs scope the change to the Privacy
 * Policy and Shipping & Returns content; the shared header/footer are unchanged. */
body.page-id-3 #main-content article,
body.page-id-3 #main-content article *,
body.page-id-14 #main-content article,
body.page-id-14 #main-content article * {
	font-family: "Urbanist", Arial, sans-serif !important;
}

/* Match the checkout privacy notice to the policy pages without changing
 * checkout fields, payment controls, or order buttons. */
body.woocommerce-checkout .woocommerce-privacy-policy-text,
body.woocommerce-checkout .woocommerce-privacy-policy-text * {
	font-family: "Urbanist", Arial, sans-serif !important;
}

/* 8. Cart */

/* Keep Divi's generated arrow fully inside the cart coupon button. */
body.woocommerce-cart #page-container .woocommerce-cart-form .coupon button[name="apply_coupon"] {
	padding-right: 30px !important;
}

body.woocommerce-cart #page-container .woocommerce-cart-form .coupon button[name="apply_coupon"]::after {
	left: auto !important;
	right: 8px !important;
	margin-left: 0 !important;
}

/* 9. Checkout */

/* Keep WooCommerce's coupon-toggle link legible on its blue notice bar.
 * The full checkout/Divi context intentionally outranks the broad light-module
 * link-color rule in style.css without changing other checkout or content links. */
body.woocommerce-checkout #page-container #main-content .et_pb_text.et_pb_bg_layout_light .et_pb_text_inner .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon,
body.woocommerce-checkout #page-container #main-content .et_pb_text.et_pb_bg_layout_light .et_pb_text_inner .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon:hover,
body.woocommerce-checkout #page-container #main-content .et_pb_text.et_pb_bg_layout_light .et_pb_text_inner .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon:focus {
    color: #fff !important;
}

/* 10. Accessibility / focus */

/* Focus rules are included alongside their component rules above. */

/* 11. Tablet */

/* Tablet rules are included alongside their component rules above. */

/* 12. Mobile */

/* Mobile rules are included alongside their component rules above. */
