/**
 * Pro WP Farms: store UX (favorites, compare, quick view). Colors follow the Divi 5 global colors
 * (--gcid-*); every value below can be overridden from a Divi preset / Custom CSS through
 * the --pwf-* custom properties. Logical properties for RTL. Tap targets ≥ 48px.
 */
:root {
	--pwf-accent: var(--gcid-primary-color, #2f6b3a);
	--pwf-ink: var(--gcid-heading-color, #1d241f);
	--pwf-text: var(--gcid-body-color, #3a423c);
	--pwf-surface: #fff;
	/* Action chips sit on photos: fixed ink/bg pairs (not the page heading color, which flips in
	   dark mode). light-dark() follows the color-scheme the PWF color mode sets on :root. */
	--pwf-act-bg: rgba(255, 255, 255, .88);
	--pwf-act-bg: light-dark(rgba(255, 255, 255, .88), rgba(11, 38, 29, .86));
	--pwf-act-ink: #1d241f;
	--pwf-act-ink: light-dark(#1d241f, #f5f1e8);
	--pwf-act-line-c: light-dark(rgba(0, 0, 0, .08), rgba(255, 255, 255, .16));
	--pwf-tip-bg: light-dark(#1d241f, #f5f1e8);
	--pwf-tip-fg: light-dark(#fff, #0b261d);
	--pwf-card-line: light-dark(rgba(0, 0, 0, .1), rgba(255, 255, 255, .14));
	--pwf-act-on: #c62839;
	--pwf-radius: 14px;
	--pwf-focus: var(--gcid-secondary-color, var(--pwf-accent));
}

.pwf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.pwf-ico {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

/* Card / product actions */
.pwf-card-actions {
	display: flex;
	gap: 8px;
	position: relative;
	z-index: 3;
}

.pwf-act {
	--pwf-act-size: 40px;
	position: relative;
	display: inline-grid;
	place-items: center;
	inline-size: var(--pwf-act-size);
	block-size: var(--pwf-act-size);
	min-inline-size: var(--pwf-act-size);
	padding: 0;
	margin: 0;
	border: 1px solid var(--pwf-act-line, var(--pwf-act-line-c, rgba(0, 0, 0, .06)));
	border-radius: 50%;
	background: var(--pwf-act-bg);
	color: var(--pwf-act-ink);
	box-shadow: var(--pwf-act-shadow, 0 2px 8px rgba(0, 0, 0, .16));
	-webkit-backdrop-filter: var(--pwf-act-blur, blur(6px) saturate(1.3));
	backdrop-filter: var(--pwf-act-blur, blur(6px) saturate(1.3));
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform .15s ease, color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.pwf-act .pwf-ico {
	width: 20px;
	height: 20px;
}

/* 40px visual, ≥48px touch target (also when a Divi preset draws the button smaller). */
.pwf-act::after {
	content: "";
	position: absolute;
	inset: min(-4px, calc((100% - 48px) / 2));
}

/* Tooltip from the (live) aria-label: pointer devices, hover or keyboard focus. Opens toward
   the card's inside (reading start for end-corner buttons, and vice versa). */
@media (hover: hover) {
	.pwf-act[aria-label]::before {
		content: attr(aria-label);
		position: absolute;
		inset-block-start: 50%;
		inset-inline-end: calc(100% + 8px);
		z-index: 5;
		padding: 4px 8px;
		border-radius: 6px;
		background: var(--pwf-tip-bg, #1d241f);
		color: var(--pwf-tip-fg, #fff);
		font-size: 12px;
		font-weight: 600;
		line-height: 1.4;
		white-space: nowrap;
		pointer-events: none;
		opacity: 0;
		transform: translateY(-50%);
		transition: opacity .15s ease .15s;
	}

	.pwf-pos--top-start .pwf-act[aria-label]::before,
	.pwf-pos--bottom-start .pwf-act[aria-label]::before {
		inset-inline-end: auto;
		inset-inline-start: calc(100% + 8px);
	}

	.pwf-act[aria-label]:hover::before,
	.pwf-act[aria-label]:focus-visible::before {
		opacity: 1;
	}

	.pwf-act:hover {
		transform: translateY(-1px);
		box-shadow: var(--pwf-act-shadow-hover, 0 4px 14px rgba(0, 0, 0, .22));
	}
}

.pwf-act:active {
	transform: scale(.94);
}

.pwf-act:focus-visible,
.pwf-cmpbar__item:focus-visible,
.pwf-cmpbar__clear:focus-visible,
.pwf-btn:focus-visible,
.pwf-fav-count:focus-visible,
.pwf-qv__close:focus-visible,
:is([data-loop-item], li.product) :is(.et_pb_button, .button):focus-visible {
	outline: 3px solid var(--pwf-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #fff;
}

/* Active states: favorited = filled red heart; in compare = accent fill. */
.pwf-act--fav[aria-pressed="true"] {
	color: var(--pwf-act-on);
}

.pwf-act--fav[aria-pressed="true"] .pwf-ico {
	fill: currentColor;
	animation: pwf-pop .3s ease;
}

.pwf-act--cmp[aria-pressed="true"] {
	border-color: transparent;
	background: var(--pwf-accent);
	color: #fff;
}

@keyframes pwf-pop {
	50% { transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
	.pwf-act,
	.pwf-act[aria-label]::before {
		transition: none;
	}

	.pwf-act:hover,
	.pwf-act:active {
		transform: none;
	}

	.pwf-act--fav[aria-pressed="true"] .pwf-ico {
		animation: none;
	}
}

/* Directional icons follow the reading direction. */
[dir="rtl"] .pwf-ico--dir {
	transform: scaleX(-1);
}

/* Icon + text style (settings / style="text"; always on the single product page). */
.pwf-act--text {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	inline-size: auto;
	block-size: 40px;
	padding-inline: 12px 16px;
	border-radius: 999px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

/* Position on the card: logical corners, mirror with the direction. */
:where([data-loop-item], .et_pb_group, li.product, .product):has(> .pwf-pos, > * > .pwf-pos, > * > * > .pwf-pos) {
	position: relative;
}

.pwf-pos {
	position: absolute;
	margin: 0;
}

.pwf-pos--top-start { inset-block-start: 10px; inset-inline-start: 10px; }
.pwf-pos--top-end { inset-block-start: 10px; inset-inline-end: 10px; }
.pwf-pos--bottom-start { inset-block-end: 10px; inset-inline-start: 10px; }
.pwf-pos--bottom-end { inset-block-end: 10px; inset-inline-end: 10px; }

.pwf-pos:not(.pwf-card-actions--text) {
	flex-direction: column;
}

/* Visibility "On hover" (cards only). Pointer devices: hidden until the card is hovered or
   keyboard focus is inside it; touch screens (hover: none) always show them. Buttons are
   absolutely positioned or keep their box (opacity only), so no layout shift. */
@media (hover: hover) {
	.pwf-act.pwf-hov {
		opacity: 0;
		translate: 0 6px;
		pointer-events: none;
		transition: opacity .2s ease, translate .2s ease, transform .15s ease, color .15s ease;
	}
	/* Scope = the individual card only: Divi Loop Builder item ([data-loop-item]), Woo li.product,
	   blog carousel card (.pwf-bcard), wishlist card (.pwf-wcard). Never a shared column/row/loop
	   group (that revealed the buttons on every card at once, 1.5.8). */
	:is([data-loop-item], li.product, .pwf-bcard, .pwf-wcard):hover .pwf-act.pwf-hov,
	:is([data-loop-item], li.product, .pwf-bcard, .pwf-wcard):focus-within .pwf-act.pwf-hov,
	.pwf-card-actions:hover .pwf-act.pwf-hov,
	.pwf-card-actions:focus-within .pwf-act.pwf-hov {
		opacity: 1;
		translate: 0 0;
		pointer-events: auto;
	}
}

@media (hover: hover) and (prefers-reduced-motion: reduce) {
	.pwf-act.pwf-hov {
		translate: none;
		transition: none;
	}
}

.pwf-single-actions {
	flex-wrap: wrap;
	margin-block: 12px;
}

/* Device visibility (CSS only; Divi breakpoints). */
@media (min-width: 981px) {
	.pwf-hide-d { display: none !important; }
}

@media (min-width: 768px) and (max-width: 980px) {
	.pwf-hide-t { display: none !important; }
}

@media (max-width: 767px) {
	.pwf-hide-p { display: none !important; }
}

/* Compare bar: fixed, above the FunnelKit floating cart, safe-area aware. */
.pwf-cmpbar {
	position: fixed;
	z-index: 9990;
	inset-inline: 0;
	inset-block-end: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
	background: var(--pwf-surface);
	color: var(--pwf-ink);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .14);
	animation: pwf-sheet .25s ease-out;
}

.pwf-cmpbar[hidden] {
	display: none;
}

.pwf-cmpbar__thumbs {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pwf-cmpbar__thumbs li {
	margin: 0;
	padding: 0;
}

.pwf-cmpbar__item,
.pwf-cmpbar__slot {
	position: relative;
	display: block;
	inline-size: 48px;
	block-size: 48px;
	padding: 0;
	border: 2px dashed rgba(0, 0, 0, .2);
	border-radius: 10px;
	background: rgba(0, 0, 0, .03);
	overflow: hidden;
	cursor: pointer;
}

.pwf-cmpbar__item {
	border-style: solid;
	border-color: var(--pwf-accent);
}

.pwf-cmpbar__item img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.pwf-cmpbar__x {
	position: absolute;
	inset-block-start: 0;
	inset-inline-end: 0;
	inline-size: 18px;
	block-size: 18px;
	border-radius: 0 0 0 8px;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 14px;
	line-height: 18px;
	text-align: center;
}

.pwf-cmpbar__go {
	margin-inline-start: auto;
	white-space: nowrap;
}

.pwf-cmpbar__clear {
	min-block-size: 48px;
	padding-inline: 8px;
	border: 0;
	background: none;
	color: var(--pwf-ink);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* While the compare bar is shown, --pwf-bottom-offset = its height (set by pwf-store.js with a ResizeObserver).
   Floating bottom widgets (filterable list: pwf_bottom_offset_selectors) are lifted by that amount. */
html.pwf-cmpbar-on body {
	padding-block-end: var(--pwf-bottom-offset, 72px);
}

.pwf-lifted {
	transition: bottom .2s ease;
}

@media (prefers-reduced-motion: reduce) {
	.pwf-lifted {
		transition: none;
	}
}

@media (max-width: 479px) {
	.pwf-cmpbar__slot {
		display: none;
	}

	.pwf-cmpbar__go {
		padding-inline: 14px;
	}
}

.pwf-act.pwf-pop .pwf-ico {
	animation: pwf-pop .35s ease;
}

@keyframes pwf-pop {
	40% { transform: scale(1.3); }
}

.pwf-fav-btn {
	inline-size: auto;
	border-radius: 999px;
	padding-inline: 14px 18px;
	gap: 8px;
	display: inline-flex;
	align-items: center;
	font: inherit;
	font-weight: 600;
}

/* Header counter */
.pwf-fav-count {
	--pwf-hdr-gap: 12px;
	flex: none;
	min-inline-size: 48px;
	min-block-size: 48px;
	/* Gap on the inline-end side, where Divi header icons (search) sit next to it; the
	   badge also sits on that corner, so the gap keeps it clear of the neighbour. */
	margin-inline: 0 var(--pwf-hdr-gap);
	vertical-align: middle;
	position: relative;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
	display: inline-grid;
	place-items: center;
	inline-size: 48px;
	block-size: 48px;
	color: inherit;
	text-decoration: none;
}

.pwf-count__ico {
	position: relative;
	display: inline-grid;
	place-items: center;
	line-height: 0;
}

.pwf-fav-count__n {
	position: absolute;
	inset-block-start: -9px;
	inset-inline-end: -11px;
	min-inline-size: 20px;
	block-size: 20px;
	padding-inline: 5px;
	border-radius: 999px;
	background: var(--pwf-badge-bg, var(--pwf-act-on));
	color: var(--pwf-badge-fg, #fff);
	box-shadow: 0 0 0 1.5px var(--pwf-badge-bd, transparent);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.pwf-fav-count__n[hidden] {
	display: none;
}

/* Buttons */
.pwf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 48px;
	padding: 10px 20px;
	border: 2px solid var(--pwf-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--pwf-accent);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.pwf-btn--primary {
	background: var(--pwf-accent);
	color: var(--pwf-on-accent, #fff);
}

body.et-db #et-boc a.pwf-btn--primary {
	background: var(--pwf-accent);
	color: var(--pwf-on-accent, #fff);
}

.pwf-btn--ghost {
	border-color: currentColor;
	color: var(--pwf-ink);
}

.pwf-btn[disabled],
.pwf-btn[aria-busy="true"] {
	opacity: .65;
	cursor: progress;
}

/* Quick view dialog */
html.pwf-qv-open {
	overflow: hidden;
}

.pwf-qv {
	inline-size: min(880px, calc(100vw - 32px));
	max-block-size: min(88vh, 760px);
	padding: 0;
	border: 0;
	border-radius: var(--pwf-radius);
	background: var(--pwf-surface);
	color: var(--pwf-text);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	overflow: hidden;
}

.pwf-qv::backdrop {
	background: rgba(10, 16, 12, .55);
}

.pwf-qv[open] {
	animation: pwf-fade .2s ease;
}

.pwf-qv__sheet {
	position: relative;
	display: flex;
	flex-direction: column;
	max-block-size: inherit;
}

.pwf-qv__handle {
	display: none;
}

.pwf-qv__close {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-end: 10px;
	margin: 0;
	inline-size: 48px;
	block-size: 48px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--pwf-act-bg);
	color: var(--pwf-ink);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .14);
	cursor: pointer;
	z-index: 2;
}

.pwf-qv__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	padding: 24px;
	overflow: auto;
	overscroll-behavior: contain;
	min-block-size: 0;
}

.pwf-qv__media {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	border-radius: calc(var(--pwf-radius) - 4px);
	min-block-size: 220px;
}

.pwf-qv__img {
	flex: 0 0 100%;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: var(--pwf-card-img-ratio, 1 / 1);
	object-fit: var(--pwf-card-img-fit, contain);
	object-position: var(--pwf-card-img-pos, center);
	scroll-snap-align: start;
	border-radius: inherit;
}

.pwf-qv__title {
	margin: 0 0 8px;
	padding: 0;
	color: var(--pwf-ink);
	font-size: 1.35em;
	line-height: 1.35;
}

.pwf-qv__price {
	color: var(--pwf-accent);
	font-weight: 700;
	font-size: 1.15em;
	margin-block-end: 8px;
}

.pwf-qv__desc p {
	margin: 0 0 8px;
	padding: 0;
}

.pwf-qv__attrs {
	list-style: none;
	margin: 8px 0 12px;
	padding: 0;
	display: grid;
	gap: 4px;
}

.pwf-qv__k {
	font-weight: 700;
	color: var(--pwf-ink);
}

.pwf-qv__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-block-start: 12px;
}

.pwf-qv__msg {
	margin: 12px 0 0;
	font-weight: 600;
}

.pwf-skel {
	display: block;
	border-radius: 8px;
	background: linear-gradient(90deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .12), rgba(0, 0, 0, .06));
	background-size: 200% 100%;
	animation: pwf-shimmer 1.2s linear infinite;
}

.pwf-skel--line {
	block-size: 18px;
	margin-block-end: 12px;
}

.pwf-skel--short {
	inline-size: 55%;
}

.pwf-skel--btn {
	block-size: 48px;
	inline-size: 70%;
	border-radius: 999px;
	margin-block-start: 16px;
}

@keyframes pwf-shimmer {
	to { background-position: -200% 0; }
}

@keyframes pwf-fade {
	from { opacity: 0; }
}

@keyframes pwf-sheet {
	from { transform: translateY(100%); }
}

/* Phones: bottom sheet */
@media (max-width: 767px) {
	.pwf-qv {
		inline-size: 100%;
		max-inline-size: 100%;
		max-block-size: 90vh;
		margin: auto 0 0;
		border-radius: var(--pwf-radius) var(--pwf-radius) 0 0;
		padding-block-end: env(safe-area-inset-bottom, 0);
	}

	.pwf-qv[open] {
		animation: pwf-sheet .25s ease-out;
	}

	.pwf-qv__handle {
		display: block;
		inline-size: 44px;
		block-size: 5px;
		margin: 8px auto 0;
		border-radius: 999px;
		background: rgba(0, 0, 0, .2);
	}

	.pwf-qv__body {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding: 12px 16px 20px;
	}

	.pwf-qv__close {
		inset-block-start: 22px;
		inset-inline-end: 22px;
	}

	.pwf-qv__media {
		min-block-size: 180px;
	}

	.pwf-qv__actions .pwf-btn {
		flex: 1 1 calc(100% - 56px);
	}

	.pwf-qv__actions .pwf-qv__wa {
		flex-basis: 100%;
		order: 3;
	}
}

/* Favorites page */
.pwf-wishlist__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block-end: 16px;
}

.pwf-wishlist__title {
	margin: 0;
	padding: 0;
}

.pwf-wishlist__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pwf-wishlist__tools[hidden],
.pwf-wishlist__shared[hidden],
.pwf-wishlist__empty[hidden] {
	display: none;
}

.pwf-wishlist__shared,
.pwf-wishlist__empty {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px;
	margin-block-end: 16px;
	border-radius: var(--pwf-radius);
	background: rgba(0, 0, 0, .04);
}

.pwf-wishlist__shared p,
.pwf-wishlist__empty p {
	margin: 0;
	padding: 0;
	flex: 1 1 240px;
}

.pwf-wishlist__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 16px;
}

.pwf-wcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 0 16px;
	margin: 0;
	border-radius: var(--pwf-radius);
	background: var(--pwf-surface);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
	overflow: hidden;
}

.pwf-wcard__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--pwf-ink);
	text-decoration: none;
	font-weight: 700;
}

.pwf-wcard__img {
	display: block;
	aspect-ratio: var(--pwf-card-img-ratio, 1 / 1);
	background: rgba(0, 0, 0, .05);
}

.pwf-wcard__img img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: var(--pwf-card-img-fit, contain);
	object-position: var(--pwf-card-img-pos, center);
}

.pwf-wcard__name,
.pwf-wcard__price,
.pwf-wcard__stock,
.pwf-wcard__actions {
	padding-inline: 16px;
}

.pwf-wcard__price {
	color: var(--pwf-accent);
	font-weight: 700;
}

.pwf-wcard__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-block-start: auto;
}

.pwf-wcard__actions .pwf-btn {
	flex: 1;
}

.pwf-wcard--skeleton .pwf-wcard__img,
.pwf-wcard__line {
	background: linear-gradient(90deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .1), rgba(0, 0, 0, .05));
	background-size: 200% 100%;
	animation: pwf-shimmer 1.2s linear infinite;
}

.pwf-wcard__line {
	display: block;
	block-size: 16px;
	margin-inline: 16px;
	border-radius: 6px;
}

.pwf-wcard__line--short {
	inline-size: 50%;
}

@media (prefers-reduced-motion: reduce) {
	.pwf-act,
	.pwf-act.pwf-pop .pwf-ico,
	.pwf-qv[open],
	.pwf-cmpbar,
	.pwf-skel,
	.pwf-wcard--skeleton .pwf-wcard__img,
	.pwf-wcard__line {
		animation: none;
		transition: none;
	}
}

/* ==========================================================================
   Card designs (Pro WP Farms › Store › Product cards › Card design).
   body.pwf-cd-<design> (plugin body_class filter) + the card wrapper:
   - Divi Loop Builder: the [data-loop-item] holding card actions, or its inner card group;
   - WooCommerce: li.product;  - blog carousel: .pwf-bcard.
   Classic adds no class, so the current look is untouched.
   Selectors start with :is(#et-boc, html): an ID-weight boost (matched by <html>) so the
   design wins over Divi's cached `.et-db #et-boc .et-l .module_N` rules without per-module edits.
   ========================================================================== */
:is(#et-boc, html) :is(.pwf-cd-minimal, :is(#et-boc, html) .pwf-cd-overlay, :is(#et-boc, html) .pwf-cd-elevated) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), li.product, .pwf-bcard) {
	--pwf-card-radius: 16px;
	position: relative;
	border-radius: var(--pwf-card-radius);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* (b) Minimal: flat, hairline border, icons on hover, flat CTA. */
:where(#et-boc, html) .pwf-cd-minimal :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), li.product, .pwf-bcard) {
	--pwf-card-radius: 12px;
	--pwf-act-shadow: none;
	--pwf-act-shadow-hover: 0 2px 8px rgba(0, 0, 0, .12);
	/* Card background stays the Divi preset's (global color var), so it follows dark mode. */
	border: 1px solid var(--pwf-card-line, rgba(0, 0, 0, .1));
	box-shadow: none;
}

:where(#et-boc, html) .pwf-cd-minimal :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), li.product, .pwf-bcard):is(:hover, :focus-within) {
	border-color: color-mix(in srgb, var(--pwf-accent) 45%, transparent);
}

:where(#et-boc, html) .pwf-cd-minimal :is([data-loop-item], li.product, .pwf-bcard):has(.pwf-card-actions) :is(.et_pb_button, .pwf-bcard__cta, .button) {
	border-radius: 10px;
	box-shadow: none;
}

/* (d) Elevated: rounded, soft shadow, hover lift, glass floating action column, full-width CTA. */
:where(#et-boc, html) .pwf-cd-elevated :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), li.product, .pwf-bcard) {
	--pwf-card-radius: 20px;
	--pwf-act-bg: light-dark(rgba(255, 255, 255, .84), rgba(11, 38, 29, .84));
	--pwf-act-blur: blur(8px) saturate(1.4);
	box-shadow: 0 12px 32px -14px rgba(16, 40, 24, .35), 0 2px 6px rgba(0, 0, 0, .05);
}

@media (hover: hover) {
	:where(#et-boc, html) .pwf-cd-elevated :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), li.product, .pwf-bcard):hover {
		transform: translateY(-4px);
		box-shadow: 0 20px 40px -16px rgba(16, 40, 24, .45), 0 2px 6px rgba(0, 0, 0, .06);
	}
}

:is(#et-boc, html) .pwf-cd-elevated :is([data-loop-item], li.product, .pwf-bcard):has(.pwf-card-actions) :is(.et_pb_button_module_wrapper, .pwf-bcard__cta) {
	align-self: stretch;
	inline-size: auto !important;
	max-inline-size: none;
	margin-inline: 0 !important;
}

:is(#et-boc, html) .pwf-cd-elevated :is([data-loop-item], li.product, .pwf-bcard):has(.pwf-card-actions) :is(.et_pb_button, .pwf-bcard__cta, .button) {
	display: flex;
	justify-content: center;
	inline-size: 100%;
	min-block-size: 48px;
	text-align: center;
}

/* (c) Overlay — 1.5.28 premium: full-bleed image, bottom scrim, title + price over it, gold CTA.
   Geometry is fixed by aspect-ratio (equal heights everywhere, no layout shift). Motion is transform/opacity
   only (compositor, no reflow). The CTA slides up on hover/focus for fine pointers; on touch, keyboard-only
   and reduced-motion it is always visible. Text over the scrim: white on ≥ rgba(0,0,0,.78) → AA (>7:1). */
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) {
	--pwf-ov-radius: 16px;
	--pwf-ov-cta: 64px; /* 48px button + 16px gap: how far the text sits lower while the CTA is hidden */
	--pwf-act-bg: light-dark(rgba(255, 255, 255, .92), rgba(11, 38, 29, .9));
	--pwf-act-blur: blur(8px);
	position: relative;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: 1fr auto auto auto;
	gap: 0 !important;
	aspect-ratio: 4 / 5;
	block-size: auto !important;
	min-block-size: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 0 !important; /* card frame, not the Button module; Divi writes a border per item */
	border-radius: var(--pwf-ov-radius) !important; /* card radius, not the button */
	box-shadow: 0 1px 2px rgba(8, 25, 18, .08), 0 12px 32px -16px rgba(8, 25, 18, .45);
	isolation: isolate;
}
/* Overlay card fill is a default. :where() keeps this at (0,4,0), under a Divi module background (1,3,0). */
:where(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) {
	background: var(--pwf-ov-card, #12201a);
	contain: layout paint;
	transition: box-shadow .3s ease, transform .3s ease;
}
:where([data-pwf-theme="dark"]) :where(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 32px -16px rgba(0, 0, 0, .7); }
:where(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .78) 30%, rgba(0, 0, 0, .35) 52%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
}
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_image, .pwf-bcard__media) {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	inline-size: 100% !important;
	max-inline-size: none !important;
	block-size: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	overflow: hidden;
}
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_image .et_pb_image_wrap, .pwf-bcard__media) { display: block; inline-size: 100%; block-size: 100% !important; border-radius: 0 !important; }
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_image img, .pwf-bcard__media img) {
	display: block;
	inline-size: 100% !important;
	block-size: 100% !important;
	max-block-size: none !important;
	aspect-ratio: auto !important;
	object-fit: var(--pwf-card-img-fit, contain);
	object-position: var(--pwf-card-img-pos, center);
	border-radius: 0 !important;
	transform: scale(1.001);
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
/* Text + CTA stack at the bottom, above the scrim. background:none is a default so a Divi module fill can return. */
:where(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(:is(.et_pb_heading, .et_pb_text, .pwf-bcard__body), :is(.et_pb_button_module_wrapper, .pwf-bcard__cta)) {
	position: relative;
	z-index: 2;
	grid-column: 1;
	inline-size: auto !important;
	max-inline-size: none !important;
	margin: 0 !important;
	padding-inline: 16px !important; /* overlay stack inset; the Button padding rule below is a default */
	background: none;
}
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) .et_pb_heading { grid-row: 2; align-self: end; padding-block: 16px 4px !important; }
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) .et_pb_text { grid-row: 3; padding-block: 0 16px !important; }
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_button_module_wrapper, .pwf-bcard__cta) { grid-row: 4; padding-block: 0 16px !important; }
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) .pwf-bcard__body { grid-row: 2 / 4; align-self: end; padding-block: 16px !important; }
:where(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_heading, .et_pb_text, .pwf-bcard__body) :is(h2, h3, h4, .et_pb_module_header, p, span, a:not(.et_pb_button):not(.pwf-btn), .amount, bdi) {
	color: var(--pwf-ov-ink, #fff);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) .et_pb_heading .et_pb_module_header {
	display: -webkit-box !important; -webkit-box-orient: vertical !important;
	-webkit-line-clamp: var(--pwf-card-title-lines, 2); line-clamp: var(--pwf-card-title-lines, 2);
	overflow: hidden; text-overflow: clip; white-space: normal !important; overflow-wrap: anywhere;
	margin: 0 !important; padding: 0 !important;
	font-size: clamp(1rem, .95rem + .3vw, 1.1875rem) !important; line-height: 1.45 !important; font-weight: 700 !important;
}
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) .et_pb_text :is(p, .pwf-ppk-card) { margin: 0; padding: 0; }
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) .et_pb_text .pwf-ppk-from, :is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) .et_pb_text p { font-size: 1.125rem; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; }
:where(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_button, .pwf-bcard__cta) {
	display: flex !important;
	align-items: center;
	justify-content: center;
	inline-size: 100% !important;
	max-inline-size: none !important;
	min-block-size: 48px !important;
	margin: 0 !important; /* geometry: Divi writes a margin per loop index */
	padding: 12px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--gcid-w2eo94z80t, #c59b27);
	color: var(--pwf-pc-btn-ink, #14231e);
	font-weight: 800 !important; /* type size is not a Divi color; the loop index still sets font-weight */
	font-size: 1rem !important;
	line-height: 1.5 !important;
	text-shadow: none;
	box-shadow: 0 8px 20px -10px rgba(197, 155, 39, .8);
}
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_button, .pwf-bcard__cta)::after { display: none !important; }
/* Removed in 1.5.57: an ID-level (1,2,2) colour rule here out-ranked Divi button presets (1,2,1). Defaults above stay below presets. */

@supports (color: contrast-color(#c59b27)) {
	:where(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_button, .pwf-bcard__cta) {
		color: var(--pwf-pc-btn-ink, contrast-color(#c59b27));
	}
}
:where(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_button, .pwf-bcard__cta):hover { background: var(--gcid-rmiv6gah9w, #d8ad35); }
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_button, .pwf-bcard__cta):focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) .pwf-card-actions { z-index: 3; }

/* Desktop with a fine pointer: CTA hidden below, text sits lower; hover / focus-within slides all up. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(:is(.et_pb_heading, .et_pb_text, .pwf-bcard__body), :is(.et_pb_button_module_wrapper, .pwf-bcard__cta)) { transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease; }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_heading, .et_pb_text, .pwf-bcard__body) { transform: translateY(var(--pwf-ov-cta)); }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard) :is(.et_pb_button_module_wrapper, .pwf-bcard__cta) { transform: translateY(100%); opacity: 0; }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard):is(:hover, :focus-within) :is(:is(.et_pb_heading, .et_pb_text, .pwf-bcard__body), :is(.et_pb_button_module_wrapper, .pwf-bcard__cta)) { transform: none; opacity: 1; }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard):hover :is(.et_pb_image img, .pwf-bcard__media img) { transform: scale(1.06); }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) :is([data-loop-item]:has(> .et_pb_group .pwf-card-actions) > .et_pb_group, [data-loop-item]:not(:has(> .et_pb_group .pwf-card-actions)):has(.pwf-card-actions), .pwf-bcard):hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(8, 25, 18, .1), 0 24px 48px -20px rgba(8, 25, 18, .55); }
}

@media (prefers-reduced-motion: reduce) {
	:is(#et-boc, html) :is(.pwf-cd-minimal, .pwf-cd-overlay, .pwf-cd-elevated) :is([data-loop-item], [data-loop-item] > .et_pb_group, li.product, .pwf-bcard),
	:is(#et-boc, html) .pwf-cd-overlay :is(.et_pb_button_module_wrapper, .pwf-bcard__cta) {
		transition: none !important;
		transform: none !important;
	}
}

/* Card action stack, every design and device: a vertical column in the image's top corner the
   Divi module (or the position setting) gives it; the plugin badges sit in the opposite corner.
   Size per device: 40px desktop, 38px tablet, 34px phone (the Divi "MF Card Actions" Code preset
   only places the module; size/direction live here). The hit area grows sideways to 48px and
   vertically only into half of the 8px gap, so neighbours never overlap. */
:is([data-loop-item], li.product, .pwf-bcard) .pwf-card-actions:not(.pwf-card-actions--text):not(.pwf-single-actions) {
	flex-direction: column;
	gap: var(--pwf-act-gap, 8px);
}

:is([data-loop-item], li.product, .pwf-bcard) .pwf-card-actions:not(.pwf-card-actions--text) .pwf-act::after {
	inset-block: calc(var(--pwf-act-gap, 8px) / -2);
	inset-inline: min(-4px, calc((var(--pwf-act-size) - 48px) / 2));
}

/* Inside the Divi Code module (already placed in the image corner by its preset) a position
   setting must not offset the stack a second time. */
[data-loop-item] .et_pb_code .pwf-card-actions.pwf-pos {
	position: static;
}

@media (max-width: 980px) {
	:is([data-loop-item], li.product, .pwf-bcard) .pwf-card-actions:not(.pwf-card-actions--text) .pwf-act {
		--pwf-act-size: 38px;
	}
}

@media (max-width: 767px) {
	:is([data-loop-item], li.product, .pwf-bcard) .pwf-card-actions:not(.pwf-card-actions--text) .pwf-act {
		--pwf-act-size: 34px;
	}

	:is([data-loop-item], li.product, .pwf-bcard) .pwf-card-actions:not(.pwf-card-actions--text) .pwf-act .pwf-ico {
		width: 18px;
		height: 18px;
	}
	/* Phone two-column grids leave ~100-110px of image: two slots. Buttons hidden on phones by
	   the per-feature device setting (.pwf-hide-p) don't take a slot, so the first two VISIBLE
	   buttons in the configured order show (e.g. compare off on phones → favorites + quick view). */
	:is([data-loop-item], li.product, .pwf-bcard) .pwf-card-actions:not(.pwf-card-actions--text) {
		--pwf-act-gap: 6px;
	}

	:is([data-loop-item], li.product, .pwf-bcard) .pwf-card-actions:not(.pwf-card-actions--text) .pwf-act:nth-child(n+3 of :not(.pwf-hide-p)) {
		display: none;
	}
}

/* Quick view: weight cards (same look as the product page PWF radio cards). */
.pwf-qv__vcards { margin: 0 0 16px; padding: 0; border: 0; container-type: inline-size; }
.pwf-qv__vcards legend { margin-block-end: 8px; font-weight: 700; }
.pwf-qv__vcards .pwf-vcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.pwf-qv__vcards .pwf-vcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
@container (min-width: 27rem) {
	.pwf-qv__vcards .pwf-vcards:has(> .pwf-vcard:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pwf-qv__vcards .pwf-vcards:has(> .pwf-vcard:nth-child(3):last-child) > .pwf-vcard:last-child { grid-column: auto; }
}
.pwf-qv__vcards .pwf-vcard { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-block-size: 48px; padding: 8px 12px; border: 1px solid var(--pwf-line, #d0d5dd); border-radius: 10px; background: var(--pwf-surface, #fff); color: var(--pwf-ink, #1d2a23); cursor: pointer; }
.pwf-qv__vcards .pwf-vcard:has(input:checked) { border-color: #1f4d2e; box-shadow: inset 0 0 0 1px #1f4d2e; }
.pwf-qv__vcards .pwf-vcard:has(input:focus-visible) { outline: 2px solid #d4a634; outline-offset: 2px; }
.pwf-qv__vcards .pwf-vcard input { inline-size: 1.15rem; block-size: 1.15rem; margin: 0; accent-color: #1f4d2e; }
.pwf-qv__vcards .pwf-vcard__label { flex: 1 1 auto; font-weight: 700; }
.pwf-qv__vcards .pwf-vcard__price { margin-inline-start: auto; font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* Card image geometry (1.5.73): native product photos are 1:1. Settings print --pwf-card-* on :root. */
:root {
	--pwf-card-img-ratio: 1 / 1;
	--pwf-card-img-fit: contain;
	--pwf-card-img-pos: center;
	--pwf-card-img-start: left center;
	--pwf-card-img-end: right center;
	--pwf-card-title-lines: 2;
}
[dir="rtl"] {
	--pwf-card-img-start: right center;
	--pwf-card-img-end: left center;
}

/* ── 1.5.27 Product cards (shop, categories, home): one card, layout from classes, colours from Divi variables.
   Root cause of the mixed cards: per-module styles in the loop are written by Divi per item index
   (et_pb_button_N_tb_body), so items beyond the generated indices (or sharing indices with the category
   chips loop) lost or swapped their styles. The card modules now carry no per-module design; the shared
   look comes from the button preset + these class rules, identical for every item. ── */
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard { display: flex; flex-direction: column; block-size: 100%; }
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .pwf-pc__img { margin: 0; inline-size: 100%; overflow: hidden; }
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .pwf-pc__img :is(.et_pb_image_wrap, img) { display: block; inline-size: 100%; }
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .pwf-pc__img img {
	aspect-ratio: var(--pwf-card-img-ratio, 1 / 1); block-size: auto;
	object-fit: var(--pwf-card-img-fit, contain); object-position: var(--pwf-card-img-pos, center);
}
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .pwf-pc__title { margin: 0; padding: 16px 16px 8px; }
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .pwf-pc__title .et_pb_module_header {
	display: -webkit-box !important; -webkit-box-orient: vertical !important;
	-webkit-line-clamp: var(--pwf-card-title-lines, 2); line-clamp: var(--pwf-card-title-lines, 2);
	overflow: hidden; text-overflow: clip; white-space: normal !important; overflow-wrap: anywhere;
	min-block-size: calc(var(--pwf-card-title-lines, 2) * 1em * 1.5); margin: 0; padding: 0;
	font-family: var(--gvid-xpma6e7ul8, inherit); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.5; font-weight: 700;
}
/*
 * Color defaults only. :where() adds 0, so each rule is (0,3,0) or (0,2,0).
 * Measured Divi:
 *   body.et-db #page-container #et-boc .et-l .et_pb_button_N_tb_body = (2,3,1) wins
 *   .et-db #et-boc .et-l .et_pb_button_N = (1,3,0) wins
 *   .et_pb_button { background-color: transparent } = (0,1,0) loses to this default
 *   .et-db #et-boc .et-l .et_pb_bg_layout_light .et_pb_button = (1,4,0) wins (Divi customizer)
 */
:where(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .pwf-pc__title .et_pb_module_header {
	color: var(--gcid-5ymk3z8au9, #14231e);
}
:where(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .pwf-pc__price { color: var(--gcid-bjneijuiqx, #015d46); }
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .pwf-pc__price { margin: 0; padding: 0 16px 16px; font-family: var(--gvid-xpma6e7ul8, inherit); }
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .pwf-pc__price p { margin: 0; padding: 0; }
.pwf-ppk-card { display: grid; gap: 2px; }
.pwf-ppk-from { font-size: 1.125rem; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; }
.pwf-ppk-from .woocommerce-Price-amount { color: inherit; }
.pwf-ppk-rate { font-size: .875rem; font-weight: 500; line-height: 1.4; color: var(--pwf-ppk-muted, #3a423c); }
[data-pwf-theme="dark"] .pwf-ppk-rate { --pwf-ppk-muted: #cfc8ba; }
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .et_pb_button_module_wrapper { margin: auto 16px 16px !important; inline-size: auto; }
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .et_pb_button_module_wrapper .et_pb_button { display: flex; align-items: center; justify-content: center; inline-size: 100%; min-block-size: 48px; margin: 0; }
/* Same look as the "اطلب الآن" preset when the module has no Design color. (0,3,0), under (1,3,0). */
:where(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .et_pb_button_module_wrapper .et_pb_button {
	background-color: var(--gcid-w2eo94z80t, #c59b27); color: var(--pwf-pc-btn-ink, #14231e); border: 0; border-radius: 99px;
	padding: 12px 16px; font-family: var(--gvid-xpma6e7ul8, inherit); font-weight: 700; font-size: 1rem; line-height: 1.5;
}
/* Removed in 1.5.57: body.et-db #et-boc ... a.et_pb_button (1,2,2) beat the Divi button preset (1,2,1) and turned #8bc43f gold. */

@supports (color: contrast-color(#c59b27)) {
	:where(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .et_pb_button_module_wrapper .et_pb_button {
		color: var(--pwf-pc-btn-ink, contrast-color(#c59b27));
	}
}
:where(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .et_pb_button_module_wrapper .et_pb_button:hover { background-color: var(--gcid-rmiv6gah9w, #b08a1f); }
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .et_pb_button_module_wrapper .et_pb_button::after { display: none; }
/* Divi writes width/height per item index with high specificity; the card geometry is fixed here for every item. */
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .pwf-pc__img img {
	inline-size: 100% !important; block-size: auto !important; max-block-size: none !important;
	aspect-ratio: var(--pwf-card-img-ratio, 1 / 1) !important;
	object-fit: var(--pwf-card-img-fit, contain) !important;
	object-position: var(--pwf-card-img-pos, center) !important;
}
:is(body #page-container #et-boc .et-l, html body) :is(.related, .upsells, ul.products) li.product img {
	aspect-ratio: var(--pwf-card-img-ratio, 1 / 1);
	object-fit: var(--pwf-card-img-fit, contain);
	object-position: var(--pwf-card-img-pos, center);
}
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .et_pb_button_module_wrapper { inline-size: auto !important; max-inline-size: none !important; align-self: stretch; }
:is(body:not(.pwf-cd-overlay) #page-container #et-boc .et-l, html body:not(.pwf-cd-overlay)) .pwf-prodcard > .et_pb_button_module_wrapper .et_pb_button { inline-size: 100% !important; max-inline-size: none !important; min-block-size: 48px !important; }
/* Grid items take their grid track (Divi writes a width per item index, so items past the generated
   indices came out narrower on phones/tablets). Every design. */
:is(body #page-container #et-boc .et-l, html body) .pwf-shop-loop > [data-loop-item] { inline-size: auto !important; max-inline-size: none !important; flex: none !important; margin: 0 !important; }
:is(body #page-container #et-boc .et-l, html body) .pwf-shop-loop > [data-loop-item] > .pwf-prodcard { inline-size: 100% !important; max-inline-size: none !important; }
/* Overlay on narrow grid tracks (2 columns on phones): taller card, tighter type, so title + price + CTA
   keep clear of the image's action icons. */
:is(body #page-container #et-boc .et-l, html body) .pwf-shop-loop > [data-loop-item] { container-type: inline-size; }
@container (max-width: 260px) {
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) .pwf-prodcard { aspect-ratio: 3 / 5 !important; --pwf-ov-cta: 56px !important; }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) .pwf-prodcard :is(.et_pb_heading, .et_pb_text, .et_pb_button_module_wrapper) { padding-inline: 12px !important; }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) .pwf-prodcard .et_pb_heading { padding-block: 12px 2px !important; }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) .pwf-prodcard .et_pb_text { padding-block-end: 8px !important; }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) .pwf-prodcard .et_pb_button_module_wrapper { padding-block-end: 12px !important; }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) .pwf-prodcard .et_pb_heading .et_pb_module_header { font-size: .9375rem !important; }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) .pwf-prodcard .et_pb_text :is(.pwf-ppk-from, p) { font-size: 1rem !important; }
	:is(body.pwf-cd-overlay #page-container #et-boc, body.pwf-cd-overlay) .pwf-prodcard .et_pb_button { font-size: .9375rem !important; padding: 10px 12px !important; }
}
