/* Qty-before-cart picker + equal cards + onsale tags + fly-to-cart */

/* ——— Product cards (compact, equal height) ——— */
ul.products {
	align-items: stretch;
}

ul.products li.product {
	--op-card-pad-x: 12px;
	--op-card-pad-y: 10px;
	display: flex !important;
	flex-direction: column !important;
	height: 100%;
	box-sizing: border-box;
	position: relative;
	overflow: hidden !important;
	background: var(--op-bg-elevated, #fff) !important;
	border: 1px solid var(--op-border, rgba(0, 0, 0, 0.1)) !important;
	border-radius: 12px !important;
	z-index: 1;
	box-shadow: none !important;
	transform: none !important;
	filter: none !important;
}

/* Kill Elementor custom “shiny” gradient glow on card hover */
ul.products li.product::before,
.woocommerce ul.products li.product::before,
.product::before {
	content: none !important;
	display: none !important;
	opacity: 0 !important;
	background: none !important;
	filter: none !important;
	box-shadow: none !important;
	transform: none !important;
	pointer-events: none !important;
}

ul.products li.product:hover,
.woocommerce ul.products li.product:hover,
.product:hover {
	box-shadow: none !important;
	transform: none !important;
	filter: none !important;
	background-image: none !important;
}

ul.products li.product:hover::before,
.woocommerce ul.products li.product:hover::before,
.product:hover::before {
	content: none !important;
	display: none !important;
	opacity: 0 !important;
	background: none !important;
	filter: none !important;
	box-shadow: none !important;
	transform: none !important;
}

ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product > a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	text-decoration: none !important;
	color: inherit !important;
	cursor: pointer;
}

/* Image */
ul.products li.product .op-product-thumb,
ul.products li.product a > img,
ul.products li.product .attachment-woocommerce_thumbnail {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
	background: var(--op-bg-soft, #f7faf6);
	overflow: hidden;
}

ul.products li.product .op-product-thumb img,
ul.products li.product a > img,
ul.products li.product img.attachment-woocommerce_thumbnail,
ul.products li.product img.wp-post-image {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0 !important;
	border-radius: 0 !important;
	display: block;
}

/* Title */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2.woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-category__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin: 0 !important;
	padding: var(--op-card-pad-y) var(--op-card-pad-x) 0 !important;
	min-height: calc(1.3em * 2);
	font-family: var(--organela-font, 'Raleway', sans-serif) !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	letter-spacing: -0.01em;
	line-height: 1.3 !important;
	color: var(--op-text, #111) !important;
}

ul.products li.product:hover .woocommerce-loop-product__title {
	color: var(--op-green, rgb(61, 140, 53)) !important;
}

/* Price */
ul.products li.product .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 6px;
	margin: 0 !important;
	padding: 6px var(--op-card-pad-x) 10px !important;
	font-family: var(--organela-font, 'Raleway', sans-serif) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: var(--op-green, rgb(61, 140, 53)) !important;
	letter-spacing: -0.015em;
}

ul.products li.product .price del {
	order: -1;
	opacity: 0.55;
	color: var(--op-text-muted, #5c6b58) !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	text-decoration: line-through;
}

ul.products li.product .price ins {
	text-decoration: none !important;
	color: var(--op-orange, #FA6619) !important;
	font-weight: 700 !important;
}

ul.products li.product .price .woocommerce-Price-currencySymbol {
	font-size: 0.78em;
	font-weight: 700;
	margin-left: 1px;
}

/* Hide noisy extras on cards */
ul.products li.product .star-rating,
ul.products li.product .rating,
ul.products li.product .woocommerce-product-rating {
	display: none !important;
}

/* ——— Onsale as compact tag ——— */
ul.products li.product span.onsale,
.woocommerce ul.products li.product .onsale,
.op-home-products__grid.products li.product span.onsale {
	position: absolute !important;
	top: 8px !important;
	left: 8px !important;
	right: auto !important;
	z-index: 3;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 4px 8px !important;
	border-radius: 999px !important;
	background: var(--op-orange, #FA6619) !important;
	color: #fff !important;
	font-family: var(--organela-font, 'Raleway', sans-serif) !important;
	font-size: 0.62rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: none !important;
	white-space: nowrap;
	box-shadow: none !important;
}

/* ——— Compact ATC ——— */
ul.products li.product .button.add_to_cart_button,
ul.products li.product a.button.add_to_cart_button,
ul.products li.product a.ajax_add_to_cart,
.elementor-widget-woocommerce-products ul.products li.product .button,
.elementor-wc-products ul.products li.product .button,
.related.products ul.products li.product .button,
.op-product__related-wrap ul.products li.product .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: calc(100% - (var(--op-card-pad-x, 12px) * 2)) !important;
	height: 34px !important;
	min-height: 34px !important;
	margin: 0 var(--op-card-pad-x, 12px) 12px !important;
	margin-top: auto !important;
	padding: 0 10px !important;
	border: 1px solid rgba(61, 140, 53, 0.22) !important;
	border-radius: 8px !important;
	background: rgba(61, 140, 53, 0.07) !important;
	background-color: rgba(61, 140, 53, 0.07) !important;
	color: var(--op-green, rgb(61, 140, 53)) !important;
	font-family: var(--organela-font, 'Raleway', sans-serif) !important;
	font-weight: 700 !important;
	font-size: 0.74rem !important;
	letter-spacing: 0.01em;
	line-height: 1 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition:
		color 0.14s ease,
		border-color 0.14s ease,
		background 0.14s ease,
		transform 0.14s ease;
}

ul.products li.product .button.add_to_cart_button:hover,
ul.products li.product a.button.add_to_cart_button:hover,
.related.products ul.products li.product .button:hover,
.op-product__related-wrap ul.products li.product .button:hover,
.elementor-wc-products ul.products li.product .button:hover {
	color: #fff !important;
	border-color: var(--op-green, rgb(61, 140, 53)) !important;
	background: var(--op-green, rgb(61, 140, 53)) !important;
	background-color: var(--op-green, rgb(61, 140, 53)) !important;
}

ul.products li.product .button.add_to_cart_button:active {
	transform: scale(0.98);
}

@media (max-width: 700px) {
	ul.products li.product {
		--op-card-pad-x: 10px;
		--op-card-pad-y: 8px;
		border-radius: 10px !important;
	}

	ul.products li.product .woocommerce-loop-product__title,
	ul.products li.product h2.woocommerce-loop-product__title {
		font-size: 0.8125rem !important;
		min-height: calc(1.28em * 2);
	}

	ul.products li.product .price {
		font-size: 0.9rem !important;
		padding-bottom: 8px !important;
	}

	ul.products li.product .button.add_to_cart_button,
	ul.products li.product a.button.add_to_cart_button,
	ul.products li.product a.ajax_add_to_cart {
		height: 32px !important;
		min-height: 32px !important;
		font-size: 0.7rem !important;
		margin-bottom: 10px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	ul.products li.product .button.add_to_cart_button {
		transition: none !important;
		transform: none !important;
	}
}

/* ——— Add-to-cart popup ——— */
body.op-atc-modal-open {
	overflow: hidden;
}

.op-atc-modal {
	position: fixed;
	inset: 0;
	z-index: 11500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: var(--organela-font, 'Raleway', sans-serif);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.op-atc-modal[hidden] {
	display: none !important;
}

.op-atc-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.op-atc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.45);
}

.op-atc-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
	padding: 22px 22px 20px;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.op-atc-modal.is-open .op-atc-modal__dialog {
	transform: translateY(0) scale(1);
}

.op-atc-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #5c6b58;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.op-atc-modal__close:hover {
	background: #f7faf6;
	color: #111;
}

.op-atc-modal__media {
	display: flex;
	justify-content: center;
	margin: 4px 0 16px;
}

.op-atc-modal__img {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 14px;
	background: #f7faf6;
	display: block;
}

.op-atc-modal__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: #111;
	text-align: center;
}

.op-atc-modal__price {
	margin: 0 0 18px;
	text-align: center;
	color: var(--op-green, rgb(61, 140, 53));
	font-size: 1.05rem;
	font-weight: 700;
}

.op-atc-modal__price del {
	opacity: 0.55;
	color: #5c6b58;
	font-weight: 600;
	margin-right: 6px;
}

.op-atc-modal__vits {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0 0 10px;
}

.op-atc-modal__vits .op-vit-badge,
.op-atc-modal__vits .op-fiber-badge,
.op-atc-modal__vits .op-fiber-badge--modal {
	position: static !important;
	top: auto !important;
	left: auto !important;
	pointer-events: auto;
	cursor: help;
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	box-shadow: none;
}

.op-atc-modal__vits .op-vit-badge {
	border: 1px solid rgba(0, 0, 0, 0.1);
	color: #333;
}

.op-atc-modal__vits .op-fiber-badge {
	border: 1px solid #111111;
	color: #111111;
}

/* Modal tips come from product-badges.js portal only (avoids double tooltip). */
.op-atc-modal__vits .op-vit-badge[data-tip]::after,
.op-atc-modal__vits .op-fiber-badge[data-tip]::after,
.op-atc-modal__vits .op-vit-badge[data-tip]::before,
.op-atc-modal__vits .op-fiber-badge[data-tip]::before {
	content: none !important;
	display: none !important;
}

.op-atc-modal__benefits {
	margin: 0 0 8px;
	text-align: center;
	font-size: 0.82rem;
	font-weight: 600;
	color: rgb(61, 140, 53);
}

.op-atc-modal__nutri {
	margin: 0 0 16px;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.45;
	color: #5c6b58;
}

.op-atc-modal__label {
	margin: 0 0 10px;
	text-align: center;
	font-size: 0.88rem;
	font-weight: 600;
	color: #5c6b58;
}

/* Quantity control — exact 100px */
.op-atc-modal__qty {
	display: grid;
	grid-template-columns: 32px 36px 32px;
	align-items: stretch;
	width: 100px;
	min-width: 100px;
	max-width: 100px;
	height: 40px;
	margin: 0 auto 18px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 10px;
	overflow: visible;
	background: #fff;
	position: relative;
	box-sizing: border-box;
}

.op-atc-modal__qty button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #111;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	box-sizing: border-box;
	user-select: none;
}

.op-atc-modal__qty button:hover:not(:disabled) {
	background: #f7faf6;
}

.op-atc-modal__qty button:disabled {
	opacity: 1;
	cursor: help;
}

.op-atc-modal__qty input {
	display: block;
	width: 36px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	border-right: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 0;
	text-align: center;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 40px;
	color: #111;
	background: #fff;
	appearance: textfield;
	-moz-appearance: textfield;
	-webkit-appearance: none;
	box-sizing: border-box;
}

.op-atc-modal__qty input::-webkit-outer-spin-button,
.op-atc-modal__qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
	height: 0;
}

/* Locked / sold-individually — clearly grayed out */
.op-atc-modal__qty.is-locked,
.op-atc-modal__qty.op-qty-locked {
	background: #eef1ee !important;
	border-color: rgba(0, 0, 0, 0.1) !important;
	opacity: 1;
	filter: none;
	box-shadow: none;
}

.op-atc-modal__qty.is-locked button,
.op-atc-modal__qty.op-qty-locked button,
.op-atc-modal__qty.is-locked input,
.op-atc-modal__qty.op-qty-locked input {
	background: #eef1ee !important;
	color: #9aa39a !important;
	cursor: help !important;
}

.op-atc-modal__qty.is-locked button:hover,
.op-atc-modal__qty.op-qty-locked button:hover {
	background: #eef1ee !important;
}

.op-atc-modal__qty.is-locked input,
.op-atc-modal__qty.op-qty-locked input {
	border-left-color: rgba(0, 0, 0, 0.08) !important;
	border-right-color: rgba(0, 0, 0, 0.08) !important;
}

.op-atc-modal__actions {
	display: flex;
	gap: 10px;
}

.op-atc-modal__cancel,
.op-atc-modal__confirm {
	flex: 1;
	height: 44px;
	border-radius: 12px;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
}

.op-atc-modal__cancel {
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	color: #5c6b58;
}

.op-atc-modal__cancel:hover {
	background: #f7faf6;
	color: #111;
}

.op-atc-modal__confirm {
	border: 0;
	background: var(--op-green, rgb(61, 140, 53));
	color: #fff !important;
}

.op-atc-modal__confirm:hover {
	filter: brightness(1.05);
}

.op-atc-modal__details {
	display: block;
	margin: 14px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #FA6619 !important;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-align: center;
	transition: color 0.12s ease;
}

.op-atc-modal__details:hover {
	background: none;
	border: 0;
	color: #e85a10 !important;
	text-decoration: underline;
}

.op-atc-modal__details[hidden] {
	display: none !important;
}

.op-atc-modal.is-busy .op-atc-modal__details {
	pointer-events: none;
	opacity: 0.55;
}

.op-atc-modal__confirm:disabled {
	opacity: 0.9;
	cursor: wait;
}

.op-atc-modal.is-busy .op-atc-modal__cancel,
.op-atc-modal.is-busy .op-atc-modal__close,
.op-atc-modal.is-busy .op-atc-modal__qty {
	pointer-events: none;
	opacity: 0.55;
}

.op-atc-modal__confirm.is-loading {
	pointer-events: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.op-atc-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: op-spin 0.65s linear infinite;
	flex: 0 0 auto;
}

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

/* ——— Fly-to-cart clone ——— */
.op-fly-cart {
	position: fixed !important;
	z-index: 12000 !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 14px;
	object-fit: cover;
	pointer-events: none;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
	transform: translate(0, 0) scale(1);
	opacity: 1;
	transition:
		transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
		opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform, opacity;
}

.op-fly-cart.is-lifted {
	transform: translateY(-18px) scale(1.04);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
	transition-duration: 0.18s;
}

.op-fly-cart.is-flying {
	transition-duration: 0.65s;
}

.op-header__action--cart.op-cart-pulse {
	animation: op-cart-pulse 0.42s ease;
}

@keyframes op-cart-pulse {
	0% { transform: scale(1); }
	40% { transform: scale(1.18); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.op-fly-cart {
		transition: none !important;
		display: none !important;
	}

	.op-header__action--cart.op-cart-pulse,
	.op-atc-spinner,
	.op-header__badge.is-pending {
		animation: none !important;
	}

	.op-atc-modal,
	.op-atc-modal__dialog {
		transition: none !important;
	}
}

/* ——— Locked qty (sold individually) — global ——— */
.op-qty-locked,
.op-product__cart .quantity.is-locked,
.op-cart-drawer__qty.is-locked {
	position: relative;
	overflow: visible !important;
	opacity: 0.55;
	filter: grayscale(0.35);
	cursor: help;
}

.op-atc-modal__qty.is-locked,
.op-atc-modal__qty.op-qty-locked {
	/* Modal uses its own gray style above — don't double-dim */
	opacity: 1 !important;
	filter: none !important;
}

.op-qty-locked button,
.op-qty-locked input,
.op-product__cart .quantity.is-locked .op-qty-btn,
.op-product__cart .quantity.is-locked input.qty,
.op-cart-drawer__qty.is-locked button,
.op-cart-drawer__qty.is-locked input,
.op-atc-modal__qty.is-locked button,
.op-atc-modal__qty.is-locked input {
	cursor: help !important;
}

.op-qty-tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translateX(-50%) translateY(4px);
	z-index: 40;
	width: max-content;
	max-width: 240px;
	padding: 8px 10px;
	border-radius: 10px;
	background: #1a2418;
	color: #f3f6f2;
	font-family: var(--organela-font, 'Raleway', sans-serif);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.op-qty-tip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: #1a2418;
}

.op-qty-locked:hover .op-qty-tip,
.op-qty-locked:focus-within .op-qty-tip,
.op-product__cart .quantity.is-locked:hover .op-qty-tip,
.op-product__cart .quantity.is-locked:focus-within .op-qty-tip,
.op-cart-drawer__qty.is-locked:hover .op-qty-tip,
.op-cart-drawer__qty.is-locked:focus-within .op-qty-tip,
.op-atc-modal__qty.is-locked:hover .op-qty-tip,
.op-atc-modal__qty.is-locked:focus-within .op-qty-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.op-cart-drawer__qty {
	position: relative;
}

.op-cart-drawer__qty.is-locked {
	border-color: rgba(0, 0, 0, 0.08);
}

/* ——— Homepage quick-add (+ next to ATC) ——— */
ul.products .product .op-card-actions {
	position: relative;
	z-index: 2;
	display: flex !important;
	align-items: stretch;
	gap: 8px;
	width: calc(100% - (var(--op-card-pad-x, 12px) * 2)) !important;
	margin: 0 var(--op-card-pad-x, 12px) 12px !important;
	margin-top: auto !important;
}

ul.products .product .op-card-actions .button.add_to_cart_button,
ul.products .product .op-card-actions a.button.add_to_cart_button,
ul.products .product .op-card-actions a.ajax_add_to_cart {
	flex: 1 1 auto !important;
	width: auto !important;
	margin: 0 !important;
}

ul.products .product .op-quick-add-wrap {
	position: relative;
	z-index: 3;
	flex: 0 0 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
}

ul.products .product .op-quick-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-height: 34px;
	padding: 0;
	border: 1px solid rgba(61, 140, 53, 0.22);
	border-radius: 8px;
	background: #fff;
	color: var(--op-green, rgb(61, 140, 53));
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

ul.products .product .op-quick-add:hover:not(:disabled) {
	background: var(--op-green, rgb(61, 140, 53));
	border-color: var(--op-green, rgb(61, 140, 53));
	color: #fff;
}

ul.products .product .op-quick-add:active:not(:disabled) {
	transform: scale(0.96);
}

ul.products .product .op-quick-add.is-syncing {
	box-shadow: inset 0 0 0 1px rgba(61, 140, 53, 0.18);
}

ul.products .product .op-quick-add.is-locked,
ul.products .product .op-quick-add:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Tooltip balloon above the + */
ul.products .product .op-quick-count {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	border: 1px solid rgba(26, 36, 24, 0.12);
	border-radius: 999px;
	background: #ffffff;
	color: #1a2418;
	font-family: var(--organela-font, 'Raleway', sans-serif);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
	box-shadow: 0 4px 14px rgba(26, 36, 24, 0.1);
	pointer-events: none;
	transform: translateX(-50%);
	transform-origin: center bottom;
	white-space: nowrap;
}

ul.products .product .op-quick-count::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 100%;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	margin-top: -4px;
	border-right: 1px solid rgba(26, 36, 24, 0.12);
	border-bottom: 1px solid rgba(26, 36, 24, 0.12);
	background: #fff;
	transform: rotate(45deg);
}

ul.products .product .op-quick-count[hidden] {
	display: none !important;
}

ul.products .product .op-quick-count.is-pop {
	animation: op-quick-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes op-quick-pop {
	0% { transform: translateX(-50%) translateY(4px) scale(0.7); opacity: 0.2; }
	55% { transform: translateX(-50%) translateY(0) scale(1.08); opacity: 1; }
	100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

/* Top-right “in cart” pill: qty + cart icon → remove on hover/tap */
ul.products .product .op-card-in-cart {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 28px;
	padding: 0 9px 0 10px;
	border: 0;
	border-radius: 999px;
	background: var(--op-green, rgb(61, 140, 53));
	color: #fff;
	font-family: var(--organela-font, 'Raleway', sans-serif);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
	box-shadow: 0 6px 16px rgba(61, 140, 53, 0.28);
	pointer-events: auto;
	cursor: pointer;
	transform-origin: top right;
	white-space: nowrap;
	transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

ul.products .product .op-card-in-cart[hidden] {
	display: none !important;
}

ul.products .product .op-card-in-cart__qty {
	display: inline-block;
	min-width: 0.7em;
	text-align: center;
}

ul.products .product .op-card-in-cart__icon,
ul.products .product .op-card-in-cart__x {
	display: block;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

ul.products .product .op-card-in-cart__x {
	display: none;
	width: 15px;
	height: 15px;
}

@media (hover: hover) and (pointer: fine) {
	ul.products .product .op-card-in-cart:hover,
	ul.products .product .op-card-in-cart:focus-visible {
		background: #dc2626;
		box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
		outline: none;
	}

	ul.products .product .op-card-in-cart:hover .op-card-in-cart__icon,
	ul.products .product .op-card-in-cart:focus-visible .op-card-in-cart__icon {
		display: none;
	}

	ul.products .product .op-card-in-cart:hover .op-card-in-cart__x,
	ul.products .product .op-card-in-cart:focus-visible .op-card-in-cart__x {
		display: block;
	}
}

ul.products .product .op-card-in-cart.is-armed {
	background: #dc2626;
	box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

ul.products .product .op-card-in-cart.is-armed .op-card-in-cart__icon {
	display: none;
}

ul.products .product .op-card-in-cart.is-armed .op-card-in-cart__x {
	display: block;
}

ul.products .product .op-card-in-cart.is-pop {
	animation: op-card-in-cart-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes op-card-in-cart-pop {
	0% { transform: scale(0.72); opacity: 0.25; }
	55% { transform: scale(1.1); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}

/* Remove-from-cart confirm */
body.op-confirm-open {
	overflow: hidden;
}

.op-confirm-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.op-confirm-modal[hidden] {
	display: none !important;
}

.op-confirm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 16, 0.45);
}

.op-confirm-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 360px);
	padding: 22px 20px 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(17, 24, 16, 0.22);
	font-family: var(--organela-font, 'Raleway', sans-serif);
	text-align: center;
}

.op-confirm-modal__text {
	margin: 0 0 18px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	color: #1a2418;
}

.op-confirm-modal__actions {
	display: flex;
	gap: 10px;
}

.op-confirm-modal__cancel,
.op-confirm-modal__ok {
	flex: 1;
	min-height: 42px;
	padding: 0 12px;
	border-radius: 999px;
	font: 700 0.88rem/1 var(--organela-font, 'Raleway', sans-serif);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.op-confirm-modal__cancel {
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: #f4f6f3;
	color: #3a4638;
}

.op-confirm-modal__cancel:hover {
	background: #eef2ec;
}

.op-confirm-modal__ok {
	border: 0;
	background: #dc2626;
	color: #fff;
}

.op-confirm-modal__ok:hover {
	background: #b91c1c;
}

.op-confirm-modal__ok:disabled {
	opacity: 0.7;
	cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
	ul.products .product .op-quick-count.is-pop,
	ul.products .product .op-card-in-cart.is-pop {
		animation: none;
	}
}
