/**
 * Applapa Archive Card Standalone v1.4.0
 * Scoped Pearl Glass archive grid/card; no theme selectors required.
 */

body.appla-archive-card-standalone {
	--appla-card-pink: #C73770;
	--appla-card-orange: #FFA718;
	--appla-card-purple: #5B5F97;
	--appla-card-success: #208B5B;
	--appla-card-ink: #252438;
	--appla-card-muted: #6B6D7E;
	--appla-card-font: "IRANSansX", "IRANSans", Tahoma, Arial, sans-serif;
	background-color: #F3F0F8;
	background-image: linear-gradient(135deg, #F3F0F8 0%, #F6EFF5 100%);
}

/* Elementor gives the archive root an opaque white background. Keep the Pearl
 * cards white, but reveal the approved Lavender/Blush atmosphere between them. */
body.appla-archive-card-standalone .elementor-location-archive.product {
	background: linear-gradient(135deg, #F3F0F8 0%, #F6EFF5 100%);
}

/* Existing sort markup: visual refinement only; URLs and orderby logic stay intact. */
body.appla-archive-card-standalone .applapa-archive-sort {
	display: flex !important;
	width: min(100%, 760px) !important;
	min-height: 58px !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 14px !important;
	margin: 0 auto 18px !important;
	padding: 10px 12px !important;
	border: 1px solid rgba(91, 95, 151, .11) !important;
	border-radius: 18px !important;
	background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(249, 247, 252, .90)) !important;
	box-shadow: inset 0 1px 0 #fff, 0 9px 20px rgba(61, 66, 113, .055) !important;
	box-sizing: border-box !important;
}

body.appla-archive-card-standalone .applapa-archive-sort__label {
	flex: 0 0 auto !important;
	color: #66698A !important;
	font-size: 11px !important;
	font-weight: 750 !important;
	line-height: 1.5 !important;
	text-align: center !important;
	white-space: nowrap !important;
}

body.appla-archive-card-standalone .applapa-archive-sort__options {
	display: flex !important;
	width: auto !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: nowrap !important;
	gap: 6px !important;
	overflow: visible !important;
}

body.appla-archive-card-standalone .applapa-archive-sort__item {
	display: inline-flex !important;
	min-height: 36px !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 6px 12px !important;
	border: 1px solid rgba(91, 95, 151, .12) !important;
	border-radius: 12px !important;
	color: #646678 !important;
	background: rgba(255, 255, 255, .76) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95) !important;
	font-size: 11px !important;
	font-weight: 750 !important;
	line-height: 1.5 !important;
	text-align: center !important;
	text-decoration: none !important;
	white-space: nowrap !important;
}

body.appla-archive-card-standalone .applapa-archive-sort__item:hover,
body.appla-archive-card-standalone .applapa-archive-sort__item:focus-visible {
	color: var(--appla-card-purple) !important;
	border-color: rgba(91, 95, 151, .22) !important;
	background: #F1EFF8 !important;
	outline: 3px solid rgba(91, 95, 151, .10) !important;
	outline-offset: 1px !important;
}

body.appla-archive-card-standalone .applapa-archive-sort__item.is-active,
body.appla-archive-card-standalone .applapa-archive-sort__item[aria-current="page"] {
	color: #fff !important;
	border-color: transparent !important;
	background: linear-gradient(145deg, #656AA5, var(--appla-card-purple)) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 7px 14px rgba(91, 95, 151, .18) !important;
}

body.appla-archive-card-standalone:has(.applapa-archive-sort) .appla-products-grid {
	margin-top: -28px !important;
}

body.appla-archive-card-standalone .appla-products-grid {
	display: grid !important;
	width: 100% !important;
	max-width: 1180px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	align-items: stretch !important;
	gap: 20px !important;
	margin-inline: auto !important;
	padding: 0 !important;
	list-style: none !important;
	box-sizing: border-box;
}

body.appla-archive-card-standalone .appla-products-grid::before,
body.appla-archive-card-standalone .appla-products-grid::after {
	display: none !important;
	content: none !important;
}

body.appla-archive-card-standalone .appla-product-cell {
	display: block !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	box-sizing: border-box;
}

body.appla-archive-card-standalone .appla-product-card {
	--appla-action-text: #FFFFFF;
	position: relative;
	display: flex;
	width: 100%;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	padding: 8px;
	border: 1px solid rgba(91, 95, 151, .10);
	border-radius: 22px;
	background: #FFFFFF;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .96),
		0 12px 28px rgba(61, 66, 113, .075);
	isolation: isolate;
	box-sizing: border-box;
	font-family: var(--appla-card-font);
	text-align: center;
	transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body.appla-archive-card-standalone .appla-product-card::before {
	display: none;
	content: none;
}

body.appla-archive-card-standalone .appla-product-card:hover {
	transform: translateY(-3px);
	border-color: rgba(91, 95, 151, .14);
	box-shadow:
		inset 0 1px 0 #fff,
		0 16px 34px rgba(61, 66, 113, .10);
}

body.appla-archive-card-standalone .appla-product-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1.18 / 1;
	overflow: hidden;
	border: 0;
	border-radius: 14px;
	background:
		radial-gradient(circle at 76% 18%, rgba(199, 55, 112, .085), transparent 42%),
		radial-gradient(circle at 22% 82%, rgba(91, 95, 151, .10), transparent 46%),
		#FBFAFD;
	box-shadow: none;
	box-sizing: border-box;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

body.appla-archive-card-standalone .appla-product-card__image {
	display: grid !important;
	width: 100% !important;
	height: 100% !important;
	place-items: center !important;
	text-decoration: none !important;
	transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}

body.appla-archive-card-standalone .appla-product-card__image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: clamp(5px, 2%, 9px) !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	object-fit: contain !important;
	object-position: center !important;
	background: transparent !important;
	box-shadow: none !important;
	filter: none !important;
	--appla-image-origin-x: 50%;
	--appla-image-origin-y: 50%;
	transform: scale(1.04) !important;
	transform-origin: var(--appla-image-origin-x) var(--appla-image-origin-y) !important;
	box-sizing: border-box !important;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-wide-product {
	padding: clamp(4px, 1.7%, 8px) !important;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-tall-product {
	padding: clamp(7px, 2.6%, 12px) !important;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-balanced-product {
	padding: clamp(4px, 1.5%, 7px) !important;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-product-tiny {
	transform: scale(1.38) !important;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-product-small {
	transform: scale(1.27) !important;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-product-medium {
	transform: scale(1.16) !important;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-product-large {
	transform: scale(1.08) !important;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-product-full {
	transform: scale(1.02) !important;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-content-left {
	--appla-image-origin-x: 42%;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-content-right {
	--appla-image-origin-x: 58%;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-content-top {
	--appla-image-origin-y: 42%;
}

body.appla-archive-card-standalone .appla-product-card__image img.is-content-bottom {
	--appla-image-origin-y: 58%;
}

body.appla-archive-card-standalone .appla-product-card:hover .appla-product-card__media {
	background:
		radial-gradient(circle at 76% 18%, rgba(199, 55, 112, .11), transparent 44%),
		radial-gradient(circle at 22% 82%, rgba(91, 95, 151, .13), transparent 48%),
		#FAFAFD;
	box-shadow: none;
}

body.appla-archive-card-standalone .appla-product-card__favorite {
	position: absolute;
	z-index: 7;
	top: 12px;
	left: 12px;
	width: 40px;
	height: 40px;
	color: #7E8090;
}

body.appla-archive-card-standalone .appla-product-card__favorite .woosw-btn,
body.appla-archive-card-standalone .appla-product-card__favorite > a,
body.appla-archive-card-standalone .appla-product-card__favorite > button {
	display: grid !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	place-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(91, 95, 151, .12) !important;
	border-radius: 12px !important;
	color: #7E8090 !important;
	background: rgba(255, 255, 255, .94) !important;
	box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(61, 66, 113, .065) !important;
	font-size: 0 !important;
}

body.appla-archive-card-standalone .appla-product-card__favorite .woosw-btn-icon,
body.appla-archive-card-standalone .appla-product-card__favorite .woosw-btn::before {
	opacity: 0 !important;
}

body.appla-archive-card-standalone .appla-product-card__favorite-icon {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform: translate(-50%, -50%);
	pointer-events: none;
	transition: fill .16s ease, stroke .16s ease;
}

body.appla-archive-card-standalone .appla-product-card__favorite:has(.woosw-added) {
	color: var(--appla-card-pink);
}

body.appla-archive-card-standalone .appla-product-card__favorite:has(.woosw-added) .appla-product-card__favorite-icon {
	fill: currentColor;
}

body.appla-archive-card-standalone .appla-product-card__favorite:hover,
body.appla-archive-card-standalone .appla-product-card__favorite:focus-within {
	color: var(--appla-card-pink);
}

body.appla-archive-card-standalone .appla-product-card__favorite:hover .woosw-btn,
body.appla-archive-card-standalone .appla-product-card__favorite:focus-within .woosw-btn {
	border-color: rgba(199, 55, 112, .22) !important;
	background: rgba(255, 247, 250, .97) !important;
	box-shadow: inset 0 1px 0 #fff, 0 7px 15px rgba(199, 55, 112, .11) !important;
}

body.appla-archive-card-standalone .appla-product-card__content {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	padding: 9px 5px 5px;
	text-align: right;
	box-sizing: border-box;
}

body.appla-archive-card-standalone .appla-product-card__brand {
	display: flex;
	min-height: 18px;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0 0 8px;
	color: var(--appla-card-orange);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

body.appla-archive-card-standalone .appla-product-card__brand::before {
	display: none;
	content: none;
}

body.appla-archive-card-standalone .appla-product-card__title {
	display: block;
	min-height: 0;
	margin: 0;
	padding: 0 4px;
	font: 600 14px/1.72 var(--appla-card-font);
	text-align: center;
	box-sizing: border-box;
}

body.appla-archive-card-standalone .appla-product-card__title a {
	display: block;
	overflow: visible;
	color: var(--appla-card-ink);
	direction: rtl;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
	unicode-bidi: plaintext;
	transition: color .16s ease;
}

body.appla-archive-card-standalone .appla-product-card__title a:hover,
body.appla-archive-card-standalone .appla-product-card__title a:focus-visible {
	color: var(--appla-card-purple);
	outline: 2px solid rgba(91, 95, 151, .15);
	outline-offset: 2px;
	border-radius: 5px;
}

body.appla-archive-card-standalone .appla-product-card__variations {
	display: flex;
	width: 100%;
	align-items: stretch;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 10px 0 2px;
}

body.appla-archive-card-standalone .appla-product-card__title + .appla-product-card__price-box {
	padding-top: 0;
}

body.appla-archive-card-standalone .appla-product-card__variation {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	min-height: 23px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 3px 10px;
	border: 1px solid rgba(91, 95, 151, .10);
	border-radius: 999px;
	color: #626477;
	background: #F7F7FA;
	font-size: 8.5px;
	font-weight: 650;
	line-height: 1.35;
	text-align: center;
	text-overflow: clip;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	white-space: normal;
	overflow-wrap: anywhere;
	box-sizing: border-box;
}

body.appla-archive-card-standalone .appla-product-card__variation-more {
	display: inline-flex;
	min-width: 28px;
	min-height: 23px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 3px 7px;
	border: 1px solid rgba(91, 95, 151, .10);
	border-radius: 999px;
	color: #626477;
	background: #F7F7FA;
	font-size: 8.5px;
	font-weight: 750;
	line-height: 1.35;
	box-sizing: border-box;
}

body.appla-archive-card-standalone .appla-product-card__variation.is-selected,
body.appla-archive-card-standalone .appla-product-card__variation[aria-selected="true"],
body.appla-archive-card-standalone .appla-product-card__variation[data-selected="true"] {
	border-color: rgba(91, 95, 151, .24);
	color: var(--appla-card-purple);
	background: rgba(91, 95, 151, .08);
}

body.appla-archive-card-standalone .appla-product-card__price-box {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border-top: 0;
	text-align: center;
}

body.appla-archive-card-standalone .appla-product-card__screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

body.appla-archive-card-standalone .appla-product-card__price {
	display: flex;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	min-height: 29px;
	align-items: baseline;
	justify-content: center;
	color: #45465E;
	gap: 4px;
	font-size: 15px !important;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.45;
	letter-spacing: -.015em;
	text-align: center;
	white-space: nowrap;
	overflow: visible;
	box-sizing: border-box;
}

body.appla-archive-card-standalone .appla-product-card__price--range {
	font-size: 12.5px !important;
	letter-spacing: -.025em;
}

body.appla-archive-card-standalone .appla-product-card__price * {
	color: inherit !important;
	max-width: 100%;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	white-space: nowrap !important;
}

body.appla-archive-card-standalone .appla-product-card__price del,
body.appla-archive-card-standalone .appla-product-card__price del * {
	color: rgba(69, 73, 120, .48) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
}

body.appla-archive-card-standalone .appla-product-card__price ins {
	text-decoration: none;
}

body.appla-archive-card-standalone .appla-product-card__price .appla-product-card__currency {
	display: none !important;
}

body.appla-archive-card-standalone .appla-product-card__price .woocommerce-Price-currencySymbol {
	display: none !important;
}

body.appla-archive-card-standalone .appla-product-card__action-zone {
	display: flex;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
	min-height: 40px;
	align-items: center;
	align-self: center;
	justify-content: center;
	gap: 6px;
	margin: 5px 0 0;
	box-sizing: border-box;
}

body.appla-archive-card-standalone .appla-product-card__action-zone.is-success {
	display: flex;
}

body.appla-archive-card-standalone .appla-product-card__action {
	display: flex;
	width: auto;
	min-width: 108px;
	max-width: 100%;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid #5B5F97;
	border-radius: 13px;
	color: var(--appla-action-text) !important;
	background: #5B5F97;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .22),
		0 6px 13px rgba(91, 95, 151, .14);
	font-size: 11.5px;
	font-weight: 750;
	line-height: 1.5;
	text-align: center;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

body.appla-archive-card-standalone .appla-product-card__action--view-cart[hidden] {
	display: none !important;
}

body.appla-archive-card-standalone .appla-product-card__action--view-cart {
	display: none !important;
	border-color: rgba(32, 139, 91, .24);
	color: #176B46 !important;
	background: linear-gradient(145deg, rgba(237, 251, 243, .98), rgba(220, 246, 231, .96));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 6px 14px rgba(32, 139, 91, .12);
}

body.appla-archive-card-standalone .appla-product-card__action-zone.is-in-cart .appla-product-card__action--cart,
body.appla-archive-card-standalone .appla-product-card__action-zone.is-in-cart .appla-product-card__action--product {
	display: none !important;
}

body.appla-archive-card-standalone .appla-product-card__action-zone.is-in-cart .appla-product-card__action--view-cart:not([hidden]) {
	display: flex !important;
}

body.appla-archive-card-standalone .appla-product-card__bottom-rail {
	display: flex;
	width: 100%;
	min-width: 0;
	margin-top: auto;
	padding: 6px 5px 4px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

body.appla-archive-card-standalone .appla-product-card__action.appla-product-card__action--view-cart:hover,
body.appla-archive-card-standalone .appla-product-card__action.appla-product-card__action--view-cart:focus-visible {
	color: #0F5A37 !important;
	border-color: rgba(32, 139, 91, .36);
	background: #DDF5E7;
}

body.appla-archive-card-standalone .appla-product-card:has(.appla-product-card__action-zone.is-in-cart) {
	border-color: rgba(32, 139, 91, .48);
	background: linear-gradient(145deg, #F9FFFB 0%, #EAF8F0 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .98),
		inset 0 0 0 1px rgba(32, 139, 91, .08),
		0 16px 30px rgba(32, 139, 91, .16),
		0 0 0 3px rgba(32, 139, 91, .07);
}

body.appla-archive-card-standalone .appla-product-card:has(.appla-product-card__action-zone.is-in-cart) .appla-product-card__media {
	background:
		radial-gradient(circle at 76% 18%, rgba(199, 55, 112, .10), transparent 43%),
		radial-gradient(circle at 22% 82%, rgba(32, 139, 91, .13), transparent 48%),
		#FAFCFB;
}

body.appla-archive-card-standalone .appla-product-card__action-zone.is-in-cart .appla-product-card__action--view-cart:not([hidden]) {
	animation: appla-card-cart-confirm .58s cubic-bezier(.2, .9, .25, 1);
}

body.appla-archive-card-standalone .appla-product-card__action.is-out-of-stock {
	color: #626477 !important;
	background: #E3E4EC;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 8px 16px rgba(74, 76, 105, .08);
}

body.appla-archive-card-standalone .appla-product-card__action-icon {
	display: inline-flex;
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	align-items: center;
	justify-content: center;
	color: currentColor;
}

body.appla-archive-card-standalone .appla-product-card__action-icon--plus {
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
}

body.appla-archive-card-standalone .appla-product-card__action-icon--added {
	display: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.appla-archive-card-standalone .appla-product-card__action-icon--view-cart {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.appla-archive-card-standalone .appla-product-card__action-zone.is-success .appla-product-card__action-icon--plus {
	display: none;
}

body.appla-archive-card-standalone .appla-product-card__action-zone.is-success .appla-product-card__action-icon--added {
	display: block;
}

body.appla-archive-card-standalone .appla-product-card__action-chevron {
	display: block;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.appla-archive-card-standalone .appla-product-card__action.appla-product-card__action--product.is-out-of-stock:hover,
body.appla-archive-card-standalone .appla-product-card__action.appla-product-card__action--product.is-out-of-stock:focus-visible {
	color: #56586C !important;
	filter: brightness(1.015);
}

body.appla-archive-card-standalone .appla-product-card__action-spinner {
	display: none;
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	border: 2px solid rgba(255, 255, 255, .42);
	border-top-color: #fff;
	border-radius: 50%;
	box-sizing: border-box;
}

body.appla-archive-card-standalone .appla-product-card__action-zone.is-loading .appla-product-card__action-spinner {
	display: block;
	animation: appla-card-spin .72s linear infinite;
}

body.appla-archive-card-standalone .appla-product-card__action-zone.is-loading .appla-product-card__action--cart {
	cursor: progress;
	filter: saturate(.82);
	pointer-events: none;
}

body.appla-archive-card-standalone .appla-product-card__action-zone.is-success .appla-product-card__action--cart {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 8px 18px rgba(91, 95, 151, .12);
}

body.appla-archive-card-standalone .appla-product-card.is-celebrating .appla-product-card__image {
	transform: translateY(-3px);
}

body.appla-archive-card-standalone .appla-product-card.is-celebrating {
	transform: translateY(-7px) scale(1.008);
	border-color: rgba(91, 95, 151, .42);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .98),
		0 22px 44px rgba(91, 95, 151, .22),
		0 0 0 4px rgba(199, 55, 112, .11);
	animation: appla-card-success-lift .84s cubic-bezier(.2, .9, .25, 1);
}

body.appla-archive-card-standalone .appla-product-card.is-celebrating .appla-product-card__media {
	background:
		radial-gradient(circle at 76% 18%, rgba(199, 55, 112, .25), transparent 45%),
		radial-gradient(circle at 22% 82%, rgba(91, 95, 151, .25), transparent 49%),
		#FAF9FD;
	box-shadow: inset 0 0 0 1px rgba(91, 95, 151, .10), 0 9px 22px rgba(91, 95, 151, .12);
}

body.appla-archive-card-standalone .appla-product-card.is-celebrating .appla-product-card__action--cart {
	transform: translateY(-3px) scale(1.10);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 11px 20px rgba(91, 95, 151, .28);
}

@keyframes appla-card-success-lift {
	0% { transform: translateY(0) scale(1); }
	38% { transform: translateY(-10px) scale(1.014); }
	72% { transform: translateY(-5px) scale(1.006); }
	100% { transform: translateY(-7px) scale(1.008); }
}

@keyframes appla-card-cart-confirm {
	0% { transform: translateY(5px) scale(.94); opacity: .45; }
	68% { transform: translateY(-2px) scale(1.045); opacity: 1; }
	100% { transform: translateY(0) scale(1); opacity: 1; }
}

.appla-cart-pearl-dot {
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	display: block;
	width: 11px;
	height: 11px;
	border: 1px solid rgba(255, 255, 255, .88);
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #fff 0 12%, #D98AB0 34%, #716FA9 74%, #5B5F97 100%);
	box-shadow: 0 4px 12px rgba(91, 95, 151, .28), 0 0 0 4px rgba(199, 55, 112, .08);
	pointer-events: none;
}

.appla-cart-pulse {
	animation: appla-cart-target-pulse .48s cubic-bezier(.2, .8, .2, 1) both !important;
}

body.appla-archive-card-standalone .appla-product-card__action-zone.is-success .appla-product-card__action--cart[aria-disabled="true"] {
	cursor: default;
	pointer-events: none;
}

body.appla-archive-card-standalone .appla-product-card__action-zone > .added_to_cart.wc-forward:not(.appla-product-card__action--view-cart) {
	display: none !important;
}

/* Kaveh Notiflix is suppressed only while this card owns an Add to Cart action. */
body.appla-archive-card-standalone.appla-cart-action-active [id^="NotiflixNotifyWrap"],
body.appla-archive-card-standalone.appla-cart-action-active [id^="NotiflixNotifyOverlay"] {
	display: none !important;
}

body.appla-archive-card-standalone .appla-product-card__cart-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

@keyframes appla-card-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes appla-cart-target-pulse {
	0%, 100% { transform: scale(1); }
	48% { transform: scale(1.055); }
}

body.appla-archive-card-standalone .appla-product-card__action:hover,
body.appla-archive-card-standalone .appla-product-card__action:focus-visible {
	color: var(--appla-action-text) !important;
	filter: brightness(1.035);
	transform: translateY(-1px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .30),
		inset 0 -3px 0 rgba(38, 41, 84, .10),
		0 10px 20px rgba(91, 95, 151, .16),
		0 18px 30px rgba(91, 95, 151, .10);
}

body.appla-archive-card-standalone .appla-archive-mobile-tools,
body.appla-archive-card-standalone .appla-archive-sort-sheet {
	display: none;
}

html.appla-archive-sort-sheet-open,
html.appla-archive-sort-sheet-open body {
	overflow: hidden !important;
}

@media (max-width: 980px) {
	body.appla-archive-card-standalone .applapa-archive-sort {
		width: min(100%, 680px) !important;
	}

	body.appla-archive-card-standalone .appla-product-card__price {
		font-size: 14.5px !important;
	}

	body.appla-archive-card-standalone .appla-product-card__price--range {
		font-size: 12.5px !important;
	}
}

@media (max-width: 980px) {
	body.appla-archive-card-standalone.appla-archive-mobile-tools-ready {
		padding-bottom: calc(126px + env(safe-area-inset-bottom)) !important;
	}

	body.appla-archive-card-standalone .appla-products-grid {
		width: min(calc(100% - 24px), 480px) !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 14px !important;
	}

	body.appla-archive-card-standalone .appla-product-card {
		height: auto;
		padding: 8px;
	}

	body.appla-archive-card-standalone .appla-product-card:hover {
		transform: none;
	}

	body.appla-archive-card-standalone .appla-product-card__image img {
		padding: 6px !important;
	}

	body.appla-archive-card-standalone .appla-product-card__title {
		min-height: 0;
		font-size: 14px;
	}

	body.appla-archive-card-standalone .appla-product-card__price {
		font-size: 14.5px !important;
	}

	body.appla-archive-card-standalone .appla-product-card__price--range {
		font-size: 11.5px !important;
	}

	body.appla-archive-card-standalone .appla-archive-mobile-tools:not([hidden]) {
		position: fixed;
		z-index: 9998;
		bottom: calc(10px + env(safe-area-inset-bottom));
		left: 50%;
		display: grid;
		width: min(calc(100% - 32px), 680px);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		padding: 8px;
		border: 1px solid rgba(255, 255, 255, .92);
		border-radius: 18px;
		background: rgba(255, 255, 255, .90);
		box-shadow: inset 0 1px 0 #fff, 0 16px 42px rgba(42, 45, 83, .18);
		backdrop-filter: blur(18px) saturate(1.06);
		-webkit-backdrop-filter: blur(18px) saturate(1.06);
		transform: translateX(-50%);
		box-sizing: border-box;
	}

	body.appla-archive-card-standalone .appla-archive-mobile-tools[data-count="1"] {
		grid-template-columns: minmax(0, 1fr);
	}

	body.appla-archive-card-standalone .appla-archive-mobile-tools__button {
		display: inline-flex;
		min-width: 0;
		min-height: 48px;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin: 0;
		padding: 8px 12px;
		border: 1px solid rgba(91, 95, 151, .13);
		border-radius: 13px;
		color: #4D507F;
		background: rgba(255, 255, 255, .94);
		box-shadow: inset 0 1px 0 #fff;
		font: 750 13px/1.5 var(--appla-card-font);
		text-align: center;
		cursor: pointer;
		box-sizing: border-box;
	}

	body.appla-archive-card-standalone .appla-archive-mobile-tools__button[hidden] {
		display: none !important;
	}

	body.appla-archive-card-standalone .appla-archive-mobile-tools__button svg {
		display: block;
		width: 20px;
		height: 20px;
		flex: 0 0 20px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	body.appla-archive-card-standalone .appla-archive-mobile-tools__button--sort {
		border-color: transparent;
		color: #fff;
		background: linear-gradient(145deg, #656AA5, var(--appla-card-purple));
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 16px rgba(91, 95, 151, .18);
	}

	body.appla-archive-card-standalone .appla-archive-mobile-tools__button:hover,
	body.appla-archive-card-standalone .appla-archive-mobile-tools__button:focus-visible {
		outline: 3px solid rgba(91, 95, 151, .14);
		outline-offset: 2px;
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet:not([hidden]) {
		position: fixed;
		z-index: 10000;
		inset: 0;
		display: block;
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__backdrop {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		background: rgba(25, 26, 45, .34);
		backdrop-filter: blur(3px);
		-webkit-backdrop-filter: blur(3px);
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__panel {
		position: absolute;
		right: auto;
		bottom: 0;
		left: 50%;
		width: min(100%, 680px);
		padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
		border: 1px solid rgba(255, 255, 255, .92);
		border-radius: 26px 26px 0 0;
		background: linear-gradient(145deg, rgba(255, 255, 255, .99), #F8F7FC);
		box-shadow: 0 -18px 50px rgba(25, 27, 51, .18), inset 0 1px 0 #fff;
		font-family: var(--appla-card-font);
		transform: translateX(-50%);
		box-sizing: border-box;
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__panel:focus {
		outline: none;
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__handle {
		width: 44px;
		height: 4px;
		margin: 2px auto 12px;
		border-radius: 99px;
		background: #D9D9E2;
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin-bottom: 6px;
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__head h2 {
		margin: 0;
		color: var(--appla-card-ink);
		font-size: 17px;
		font-weight: 800;
		line-height: 1.5;
		text-align: right;
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__head button {
		display: grid;
		width: 40px;
		height: 40px;
		flex: 0 0 40px;
		place-items: center;
		padding: 0;
		border: 0;
		border-radius: 12px;
		color: var(--appla-card-muted);
		background: #F0EFF5;
		font-size: 24px;
		line-height: 1;
		cursor: pointer;
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__options {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__option {
		display: flex;
		width: 100%;
		min-height: 50px;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 0 14px;
		border: 0;
		border-bottom: 1px solid rgba(66, 61, 92, .07);
		color: #45465E;
		background: transparent;
		font-family: var(--appla-card-font);
		font-size: 13.5px;
		font-weight: 700;
		line-height: 1.5;
		text-align: right;
		text-decoration: none;
		cursor: pointer;
		box-sizing: border-box;
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__option.is-active {
		color: var(--appla-card-purple);
		font-weight: 850;
	}

	body.appla-archive-card-standalone .appla-archive-sort-sheet__option.is-active::after {
		content: "✓";
	}
}

@media (max-width: 520px) {
	body.appla-archive-card-standalone .appla-products-grid {
		width: min(calc(100% - 24px), 480px) !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 11px !important;
	}

	body.appla-archive-card-standalone .appla-archive-mobile-tools:not([hidden]) {
		width: min(calc(100% - 24px), 480px);
	}

	body.appla-archive-card-standalone .appla-product-cell {
		height: auto !important;
	}

	body.appla-archive-card-standalone .appla-product-card {
		display: grid;
		height: auto;
		min-height: 180px;
		max-height: none;
		grid-template-columns: minmax(132px, 42%) minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 8px;
		row-gap: 4px;
		overflow: visible;
		padding: 6px;
		border-radius: 19px;
		text-align: center;
	}

	body.appla-archive-card-standalone .appla-product-card__media {
		grid-column: 1;
		grid-row: 1;
		/* On mobile the favourite is visually part of the Bottom Action rail.
		 * Keeping the media non-positioned lets its existing Woo wishlist control
		 * remain functional while the Card owns its visual position. */
		position: static;
		width: 100%;
		height: 100%;
		min-height: 118px;
		aspect-ratio: auto;
		border-radius: 14px;
	}

	body.appla-archive-card-standalone .appla-product-card__image img {
		padding: 3px !important;
	}

	body.appla-archive-card-standalone .appla-product-card__favorite {
		top: auto;
		right: 13px;
		bottom: 13px;
		left: auto;
		width: 32px;
		height: 32px;
	}

	body.appla-archive-card-standalone .appla-product-card__favorite .woosw-btn,
	body.appla-archive-card-standalone .appla-product-card__favorite > a,
	body.appla-archive-card-standalone .appla-product-card__favorite > button {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		min-height: 32px !important;
		border-radius: 11px !important;
		box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(61, 66, 113, .06) !important;
	}

	body.appla-archive-card-standalone .appla-product-card__favorite-icon {
		width: 16px;
		height: 16px;
	}

	body.appla-archive-card-standalone .appla-product-card__content {
		display: flex;
		grid-column: 2;
		grid-row: 1;
		min-height: 0;
		flex-direction: column;
		justify-content: center;
		overflow: visible;
		padding: 7px 6px 3px;
		text-align: center;
	}

	body.appla-archive-card-standalone .appla-product-card__brand {
		min-height: 14px;
		justify-content: center;
		margin: 0 0 8px;
		font-size: 11px;
		line-height: 1.45;
		text-align: center;
	}

	body.appla-archive-card-standalone .appla-product-card__title {
		min-height: 0;
		margin: 0;
		padding: 0;
		font-size: 11.5px;
		font-weight: 600;
		line-height: 1.62;
		text-align: center;
	}

	body.appla-archive-card-standalone .appla-product-card__title a {
		text-align: center;
	}

	body.appla-archive-card-standalone .appla-product-card__variations {
		gap: 4px;
		margin: 7px 0 0;
	}

	body.appla-archive-card-standalone .appla-product-card__variation {
		min-height: 19px;
		padding: 2px 6px;
		border-radius: 999px;
		font-size: 7.5px;
		line-height: 1.25;
	}

	body.appla-archive-card-standalone .appla-product-card__variation-more {
		min-width: 24px;
		min-height: 19px;
		padding: 2px 5px;
		font-size: 7.5px;
		line-height: 1.25;
	}

	body.appla-archive-card-standalone .appla-product-card__bottom-rail {
		display: block;
		position: relative;
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		min-height: 52px;
		align-items: center;
		margin: 0;
		padding: 5px 7px;
		border: 1px solid rgba(91, 95, 151, .10);
		border-radius: 14px;
		background: linear-gradient(135deg, rgba(247, 246, 252, .96), rgba(252, 248, 251, .92));
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96);
	}

	body.appla-archive-card-standalone .appla-product-card__price-box {
		position: absolute;
		top: 50%;
		left: 50%;
		z-index: 1;
		width: calc(100% - 116px);
		max-width: calc(100% - 116px);
		transform: translate(-50%, -50%);
		margin: 0;
		padding-top: 0;
		text-align: center;
	}

	body.appla-archive-card-standalone .appla-product-card__price {
		min-height: 24px;
		justify-content: center;
		font-size: 17px !important;
		line-height: 1.35;
		text-align: center;
	}

	body.appla-archive-card-standalone .appla-product-card__price--range {
		display: flex;
		min-height: 24px;
		flex-direction: row;
		align-items: baseline;
		justify-content: center;
		gap: 3px;
		font-size: 15.5px !important;
		letter-spacing: -.025em;
		white-space: nowrap;
	}

	body.appla-archive-card-standalone .appla-product-card__price--range .woocommerce-Price-amount {
		display: inline !important;
		font-size: inherit !important;
		line-height: inherit !important;
	}

	body.appla-archive-card-standalone .appla-product-card__action-zone.is-success {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	body.appla-archive-card-standalone .appla-product-card__action-zone {
		position: absolute;
		top: 50%;
		left: 7px;
		z-index: 2;
		width: auto;
		max-width: 100%;
		min-height: 46px;
		margin: 0;
		transform: translateY(-50%);
	}

	body.appla-archive-card-standalone .appla-product-card__bottom-rail:not(:has(.appla-product-card__price-box)) .appla-product-card__action-zone {
		left: 50%;
		transform: translate(-50%, -50%);
	}

	/* A persistent cart CTA is intentionally wider than the compact Add action.
	 * Give success its own two-tier rail instead of letting it cover the price. */
	body.appla-archive-card-standalone .appla-product-card__bottom-rail:has(.appla-product-card__action-zone.is-in-cart) {
		min-height: 92px;
	}

	body.appla-archive-card-standalone .appla-product-card__bottom-rail:has(.appla-product-card__action-zone.is-in-cart) .appla-product-card__price-box {
		top: 28px;
	}

	body.appla-archive-card-standalone .appla-product-card:has(.appla-product-card__action-zone.is-in-cart) .appla-product-card__favorite {
		bottom: 53px;
	}

	body.appla-archive-card-standalone .appla-product-card__bottom-rail:has(.appla-product-card__action-zone.is-in-cart) .appla-product-card__action-zone {
		top: auto;
		bottom: 5px;
		left: 50%;
		transform: translateX(-50%);
	}

	body.appla-archive-card-standalone .appla-product-card__action {
		width: auto;
		min-width: 104px;
		max-width: 100%;
		min-height: 40px;
		padding: 6px 10px;
		border-radius: 11px;
		font-size: 9.5px;
		line-height: 1.35;
		white-space: nowrap;
	}

	body.appla-archive-card-standalone .appla-product-card__action--cart {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		padding: 0;
		border-radius: 50%;
	}

	body.appla-archive-card-standalone .appla-product-card__action--cart [data-appla-action-label] {
		display: none;
	}

	body.appla-archive-card-standalone .appla-product-card__action-zone.is-loading .appla-product-card__action-icon--plus {
		display: none;
	}

	body.appla-archive-card-standalone .appla-product-card__action--variable {
		min-width: 86px;
		padding-inline: 6px;
		font-size: 9px;
	}

	body.appla-archive-card-standalone .appla-product-card__bottom-rail:has(.appla-product-card__price del) .appla-product-card__price {
		flex-wrap: wrap;
		justify-content: center;
		white-space: normal;
	}

	body.appla-archive-card-standalone .appla-product-card__action--product.is-out-of-stock {
		font-size: 8px;
	}
}

@media (max-width: 380px) {
	body.appla-archive-card-standalone .appla-product-card__bottom-rail:has(.appla-product-card__action-zone.is-in-cart) {
		min-height: 96px;
	}
}

@media (min-width: 521px) and (max-width: 980px) {
	/* Tablet/Desktop use stable zones: Brand and Title always start at the
	 * same point, while Price/CTA stay in the dedicated Action zone. */
	body.appla-archive-card-standalone .appla-product-card__content {
		justify-content: flex-start;
	}

	body.appla-archive-card-standalone .appla-products-grid {
		width: 100% !important;
		max-width: 1180px !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.appla-archive-card-standalone .appla-product-card {
		height: 100%;
	}

	body.appla-archive-card-standalone .appla-product-card__media {
		aspect-ratio: 1.22 / 1;
	}

	body.appla-archive-card-standalone .appla-product-card__title {
		min-height: 0;
		font-size: 13.5px;
	}
}

@media (min-width: 981px) {
	body.appla-archive-card-standalone .appla-product-card__content {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.appla-archive-card-standalone .appla-product-card,
	body.appla-archive-card-standalone .appla-product-card * {
		animation: none !important;
		transition: none !important;
	}
}
