/**
 * RAMCO Art Editions — frontend styles (scoped; editions-enabled products only).
 */

/* Hide duplicated product details / price above the selector on editions pages. */
body.rae-editions-active .elementor-widget-woocommerce-product-price,
body.rae-editions-active .elementor-widget-woocommerce-product-price .price,
body.rae-editions-active .summary > p.price,
body.rae-editions-active .product > .summary > p.price,
body.rae-editions-active .elementor-widget-woocommerce-product-content,
body.rae-editions-active .elementor-add-to-cart .stock {
	display: none !important;
}

body.rae-editions-active .product_title,
body.rae-editions-active .elementor-heading-title.product_title {
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
	max-width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rae-editions {
	--rae-border: rgba(0, 0, 0, 0.14);
	--rae-muted: rgba(0, 0, 0, 0.62);
	--rae-ink: #111;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1rem;
	padding: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

.rae-editions *,
.rae-editions *::before,
.rae-editions *::after {
	box-sizing: border-box;
}

.rae-editions__subtitle {
	margin: 0 0 1rem;
	font-size: 0.92rem;
	line-height: 1.4;
	color: var(--rae-muted);
	font-weight: 500;
}

.rae-editions__formats {
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
}

.rae-editions__format {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0;
	padding: 0.95rem 1rem;
	border: 1px solid var(--rae-border);
	background: #fff;
	min-width: 0;
	max-width: 100%;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rae-editions__format--one-piece {
	border-width: 1.5px;
	border-color: rgba(0, 0, 0, 0.22);
}

.rae-editions__format.is-selected {
	border-color: rgba(0, 0, 0, 0.72);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.rae-editions__format--one-piece.is-selected {
	border-color: #111;
	box-shadow: inset 0 0 0 1.5px #111;
	background: #fafafa;
}

.rae-editions__format.is-sold-out {
	opacity: 0.55;
	cursor: not-allowed;
}

.rae-editions__format-head {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	cursor: pointer;
	margin: 0;
}

.rae-editions__format-head input[type="radio"] {
	width: 1.2rem;
	height: 1.2rem;
	min-width: 1.2rem;
	min-height: 1.2rem;
	margin: 0.12rem 0 0;
	flex-shrink: 0;
	cursor: pointer;
	pointer-events: auto;
	accent-color: #111;
}

.rae-editions__format-title {
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 0.9rem;
	line-height: 1.3;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
	color: var(--rae-ink);
}

.rae-editions__format--one-piece .rae-editions__format-title {
	font-size: 0.95rem;
	letter-spacing: 0.06em;
}

.rae-editions__format-meta {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding-left: 1.9rem;
	font-size: 0.86rem;
	color: var(--rae-muted);
	line-height: 1.35;
	min-width: 0;
}

.rae-editions__badge {
	display: inline-flex;
	align-self: flex-start;
	margin: 0;
	padding: 0.2rem 0.55rem;
	border: 1px solid #111;
	color: #111;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
}

.rae-editions__meta-price {
	font-weight: 700;
	color: var(--rae-ink);
	font-size: 1.15rem;
	letter-spacing: 0.01em;
}

.rae-editions__meta-price .woocommerce-Price-amount {
	font-weight: 700;
	color: inherit;
}

.rae-editions__size-choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin: 0.15rem 0 0.15rem;
	min-width: 0;
}

.rae-editions__size-option {
	display: block;
	margin: 0;
	cursor: pointer;
	min-width: 0;
	position: relative;
}

.rae-editions__size-option input.rae-size-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.rae-editions__size-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.2rem;
	min-height: 3.35rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.16);
	background: #fff;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rae-editions__size-dim {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--rae-ink);
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.rae-editions__size-price {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--rae-ink);
	line-height: 1.2;
}

.rae-editions__size-option:hover .rae-editions__size-box {
	border-color: rgba(0, 0, 0, 0.4);
}

.rae-editions__size-option.is-checked .rae-editions__size-box,
.rae-editions__size-option:has(input:checked) .rae-editions__size-box {
	border-color: #111;
	box-shadow: inset 0 0 0 1px #111;
	background: #f7f7f7;
}

.rae-editions__size-option:has(input:disabled) {
	cursor: default;
	opacity: 0.55;
}

.rae-editions__features {
	list-style: disc;
	margin: 0.15rem 0 0 1.05rem;
	padding: 0;
	color: var(--rae-muted);
	font-size: 0.84rem;
	line-height: 1.4;
}

.rae-editions__features li {
	margin: 0 0 0.22rem;
	padding: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.rae-editions__soldout {
	margin: 0.75rem 0 0;
	color: #8a1f1f;
	font-weight: 600;
}

/* Purchase form / Add to cart */
form.cart:has(.rae-editions),
.elementor-add-to-cart form.cart:has(.rae-editions) {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 0.95rem;
	width: 100%;
	max-width: 100%;
}

form.cart:has(.rae-editions) .quantity {
	display: none !important;
}

form.cart:has(.rae-editions) .single_add_to_cart_button.button,
.elementor-add-to-cart form.cart:has(.rae-editions) .single_add_to_cart_button.button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: stretch !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 3rem !important;
	margin: 0 !important;
	padding: 0.85rem 1.25rem !important;
	line-height: 1.25 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	white-space: normal !important;
	writing-mode: horizontal-tb !important;
	flex: 0 0 auto !important;
}

body.rae-editions-active .woocommerce-product-gallery,
body.rae-editions-active .woocommerce-product-gallery__wrapper,
body.rae-editions-active .woocommerce-product-gallery__image {
	max-width: 100%;
}

body.rae-editions-active .woocommerce-product-gallery img,
body.rae-editions-active .woocommerce-product-gallery__image img {
	max-width: 100% !important;
	width: 100%;
	height: auto !important;
	object-fit: contain;
}

body.rae-editions-active .e-con,
body.rae-editions-active .e-con-inner,
body.rae-editions-active .elementor-widget {
	min-width: 0;
}

/*
 * Checkout order review: [ × ] [ thumbnail ] [ details ] — × outside-left of image.
 */
.woocommerce-checkout-review-order-table .rae-checkout-line-item {
	min-width: 0;
}

.woocommerce-checkout-review-order-table .rae-cart-line-with-thumb.rae-checkout-line-item,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table .rae-cart-line-with-thumb.rae-checkout-line-item,
.woocommerce-checkout-review-order-table .rae-checkout-line-item--no-thumb {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	min-width: 0;
}

.woocommerce-checkout-review-order-table td.product-name {
	overflow: visible;
}

/* Cart-style ×: black, in flow to the left of the thumbnail (not on the image). */
.woocommerce-checkout-review-order-table a.remove.rae-checkout-remove,
.woocommerce-checkout-review-order-table .rae-checkout-remove {
	order: -1;
	position: static;
	flex: 0 0 auto;
	align-self: flex-start;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	min-width: 1.35rem;
	min-height: 1.35rem;
	line-height: 1;
	text-align: center;
	font-size: 1.2rem;
	font-weight: 400;
	color: #000 !important;
	text-decoration: none !important;
	background: transparent !important;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	box-shadow: none !important;
}

.woocommerce-checkout-review-order-table a.remove.rae-checkout-remove:hover,
.woocommerce-checkout-review-order-table a.remove.rae-checkout-remove:focus,
.woocommerce-checkout-review-order-table .rae-checkout-remove:hover,
.woocommerce-checkout-review-order-table .rae-checkout-remove:focus {
	color: #000 !important;
	text-decoration: none !important;
	opacity: 0.65;
}

.woocommerce-checkout-review-order-table .rae-cart-line-details {
	order: 1;
	flex: 1 1 auto;
	min-width: 0;
}

.woocommerce-checkout-review-order-table .rae-checkout-line-thumb,
.woocommerce-checkout-review-order-table .rae-cart-line-with-thumb img {
	order: 0;
	flex: 0 0 auto;
	width: 52px;
	max-width: 52px;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 2px;
}

@media (max-width: 480px) {
	.woocommerce-checkout-review-order-table .rae-checkout-line-thumb,
	.woocommerce-checkout-review-order-table .rae-cart-line-with-thumb img {
		width: 44px;
		max-width: 44px;
	}

	.woocommerce-checkout-review-order-table .rae-cart-line-with-thumb.rae-checkout-line-item,
	.woocommerce-checkout-review-order-table .rae-checkout-line-item--no-thumb {
		gap: 0.4rem;
	}

	.woocommerce-checkout-review-order-table a.remove.rae-checkout-remove,
	.woocommerce-checkout-review-order-table .rae-checkout-remove {
		width: 1.75rem;
		height: 1.75rem;
		min-width: 1.75rem;
		min-height: 1.75rem;
		font-size: 1.25rem;
	}
}

/*
 * RAE checkout shipping delivery estimate (display only).
 */
.woocommerce-checkout-review-order-table .rae-shipping-delivery-estimate,
.woocommerce-cart .rae-shipping-delivery-estimate {
	display: block;
	font-weight: 400;
	font-weight: normal;
	margin-top: 0.2em;
	line-height: 1.35;
}

/*
 * Checkout order review totals visibility (0.1.44-pilot).
 * Elementor checkout styles set tfoot th/td to white on a white order-review panel;
 * shipping label text is gray but Subtotal / Total rows inherit invisible white.
 */
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td {
	color: rgb(105, 114, 125) !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal .woocommerce-Price-amount,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal .amount {
	color: inherit !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td {
	color: rgb(34, 34, 34) !important;
	font-weight: 600;
	border-top: 1px solid rgb(213, 216, 220);
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total .woocommerce-Price-amount,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total .amount {
	color: inherit !important;
	font-weight: 700;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th {
	padding-top: 0.65em;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td {
	padding-top: 0.65em;
}

/*
 * Cart / checkout line items.
 * WooCommerce floats dl.variation dt/dd; multiple RAE meta rows then overlap.
 * Override only cart/checkout/mini-cart product meta — do not change product-page UI.
 */
.woocommerce-cart table.shop_table td.product-name,
.woocommerce-checkout table.shop_table td.product-name,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-name {
	vertical-align: top;
	overflow: visible;
}

.woocommerce-cart table.shop_table td.product-name > a,
.woocommerce-checkout table.shop_table td.product-name > a,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-name > a {
	display: block;
	margin: 0 0 0.4em;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.woocommerce-cart table.shop_table td.product-name dl.variation,
.woocommerce-checkout table.shop_table td.product-name dl.variation,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation,
.elementor-menu-cart__product dl.variation,
.woocommerce-mini-cart-item dl.variation {
	display: grid !important;
	grid-template-columns: max-content minmax(0, 1fr);
	column-gap: 0.55rem;
	row-gap: 0.25rem;
	align-items: baseline;
	float: none !important;
	clear: both !important;
	margin: 0.25em 0 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	width: 100% !important;
	max-width: 100%;
	list-style: none;
}

.woocommerce-cart table.shop_table td.product-name dl.variation dt,
.woocommerce-cart table.shop_table td.product-name dl.variation dd,
.woocommerce-checkout table.shop_table td.product-name dl.variation dt,
.woocommerce-checkout table.shop_table td.product-name dl.variation dd,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation dt,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation dd,
.elementor-menu-cart__product dl.variation dt,
.elementor-menu-cart__product dl.variation dd,
.woocommerce-mini-cart-item dl.variation dt,
.woocommerce-mini-cart-item dl.variation dd {
	float: none !important;
	clear: none !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	max-width: 100%;
	line-height: 1.35;
	position: static !important;
}

.woocommerce-cart table.shop_table td.product-name dl.variation dt,
.woocommerce-checkout table.shop_table td.product-name dl.variation dt,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation dt,
.elementor-menu-cart__product dl.variation dt,
.woocommerce-mini-cart-item dl.variation dt {
	font-weight: 600;
	white-space: nowrap;
}

.woocommerce-cart table.shop_table td.product-name dl.variation dd p,
.woocommerce-checkout table.shop_table td.product-name dl.variation dd p,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation dd p,
.elementor-menu-cart__product dl.variation dd p,
.woocommerce-mini-cart-item dl.variation dd p {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.woocommerce-cart table.shop_table td.product-thumbnail,
.woocommerce-checkout table.shop_table td.product-thumbnail {
	vertical-align: top;
}

.woocommerce-cart table.shop_table td.product-thumbnail img,
.woocommerce-checkout table.shop_table td.product-thumbnail img {
	width: 56px;
	max-width: 56px;
	height: auto;
	display: block;
	object-fit: cover;
}

/* Full cart: plain qty in Quantity column (price is in Price / Subtotal columns). */
.woocommerce-cart table.shop_table td.product-quantity .rae-cart-qty-display {
	display: inline-block;
	min-width: 1.5rem;
	text-align: center;
	font-weight: 600;
}

.woocommerce-cart table.shop_table td.product-quantity .quantity {
	display: inline;
}

.woocommerce-cart table.shop_table td.product-quantity .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* RAE-only fixed-qty carts: no editable fields, hide redundant UPDATE CART. */
body.woocommerce-cart.rae-cart-hide-update button[name="update_cart"],
body.woocommerce-cart.rae-cart-hide-update input[name="update_cart"],
body.rae-cart-hide-update .woocommerce-cart-form .actions button[name="update_cart"],
body.rae-cart-hide-update .woocommerce-cart-form .actions input[name="update_cart"],
body.rae-cart-hide-update .elementor-widget-woocommerce-cart button[name="update_cart"],
body.rae-cart-hide-update .elementor-widget-woocommerce-cart input[name="update_cart"] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	height: 0 !important;
	width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	clip: rect(0, 0, 0, 0) !important;
	position: absolute !important;
}

/*
 * Mobile cart thumbnails (0.1.43-pilot).
 * Cause: WooCommerce shop_table_responsive sets td.product-thumbnail { display: none }.
 * Elementor cart widget keeps table rows; thumb cell collapses to 0×0 on narrow viewports.
 */
@media screen and (max-width: 767px) {
	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.woocommerce-cart-form__cart-item {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 0.35rem 0.65rem;
	}

	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive td.product-thumbnail {
		display: block !important;
		flex: 0 0 56px;
		width: 56px !important;
		min-width: 56px;
		max-width: 56px;
		order: 2;
		padding: 0 !important;
	}

	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive td.product-thumbnail::before {
		display: none !important;
		content: none !important;
	}

	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive td.product-name {
		flex: 1 1 calc(100% - 72px);
		min-width: 0;
		order: 3;
	}

	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive td.product-remove {
		order: 1;
		flex: 0 0 auto;
		width: auto !important;
		min-width: 0;
	}

	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive td.product-price,
	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive td.product-quantity,
	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive td.product-subtotal {
		order: 4;
		width: 100%;
		flex: 1 1 100%;
	}
}

/*
 * Mobile checkout section order (0.1.43-pilot).
 * Elementor checkout: billing column then order-review column (grid stack on narrow viewports).
 * Enforce billing → order review → payment; disable sticky sidebar jump on touch widths.
 */
@media screen and (max-width: 767px) {
	body.woocommerce-checkout .e-checkout__container {
		display: flex;
		flex-direction: column;
	}

	body.woocommerce-checkout .e-checkout__column-start {
		order: 1;
	}

	body.woocommerce-checkout .e-checkout__column-end {
		order: 2;
	}

	body.woocommerce-checkout .e-checkout__column-inner.e-sticky-right-column {
		display: flex;
		flex-direction: column;
		position: static !important;
		top: auto !important;
	}

	body.woocommerce-checkout .e-checkout__order_review {
		order: 1;
	}

	body.woocommerce-checkout .e-checkout__order_review-2,
	body.woocommerce-checkout .e-checkout__column-end #payment {
		order: 2;
	}
}

@media screen and (max-width: 768px) {
	.woocommerce-cart table.shop_table td.product-name dl.variation,
	.woocommerce-checkout table.shop_table td.product-name dl.variation,
	.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation {
		grid-template-columns: 1fr;
		row-gap: 0.1rem;
	}

	.woocommerce-cart table.shop_table td.product-name dl.variation dt,
	.woocommerce-checkout table.shop_table td.product-name dl.variation dt,
	.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation dt {
		white-space: normal;
		margin-top: 0.35em !important;
		font-size: 0.85em;
		opacity: 0.85;
	}

	.woocommerce-cart table.shop_table td.product-name dl.variation dt:first-child,
	.woocommerce-checkout table.shop_table td.product-name dl.variation dt:first-child,
	.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation dt:first-child {
		margin-top: 0 !important;
	}
}

@media screen and (max-width: 900px) {
	.rae-editions__size-choices {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 767px) {
	.rae-editions__subtitle {
		font-size: 0.88rem;
		margin-bottom: 0.85rem;
	}

	.rae-editions__format {
		padding: 0.85rem 0.85rem;
	}

	.rae-editions__format-title {
		font-size: 0.82rem;
	}

	.rae-editions__format-meta {
		padding-left: 1.7rem;
		font-size: 0.8rem;
	}

	.rae-editions__size-box {
		min-height: 3.1rem;
		padding: 0.7rem 0.8rem;
	}

	.rae-editions__size-dim,
	.rae-editions__size-price,
	.rae-editions__features {
		font-size: 0.8rem;
	}

	body.rae-editions-active .product_title,
	body.rae-editions-active .elementor-heading-title.product_title {
		font-size: clamp(1.2rem, 5.8vw, 1.65rem) !important;
		line-height: 1.2 !important;
	}

	body.rae-editions-active .elementor-143 .e-con.e-parent > .e-con-inner {
		flex-direction: column !important;
		row-gap: 1rem;
	}

	body.rae-editions-active .woocommerce-product-gallery img {
		max-height: min(72vh, 560px);
		object-fit: contain;
	}
}

/* —— Archive / related / Premium product cards —— */
.rae-loop-price,
.rae-loop-price.price,
li.product .rae-loop-price,
.premium-woo-products-details-wrap .rae-loop-price {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 0.15rem !important;
	margin: 0.35rem 0 0.5rem !important;
	line-height: 1.35 !important;
	white-space: normal !important;
	width: 100%;
}

.rae-loop-price__original,
.rae-loop-price__editions {
	display: block !important;
	width: 100% !important;
	font-size: 0.9rem;
	font-weight: 600;
	color: inherit;
	line-height: 1.35 !important;
}

.rae-loop-price__editions {
	font-weight: 500;
	opacity: 0.92;
}

.rae-loop-price .woocommerce-Price-amount {
	font-weight: inherit;
	display: inline !important;
}

a.button.rae-loop-view-options,
a.rae-loop-view-options {
	text-align: center;
}

/*
 * Mobile tap fix — 0.1.35-pilot
 * On touch devices (no true hover), Premium Addons hover-swap skin keeps
 * transition:all 0.3s on .premium-woo-product-wrapper and applies a CSS
 * :hover state on the first finger-down, consuming that tap for the
 * animation rather than navigation. The second tap then navigates.
 *
 * Fix: when the device has no true hover pointer (@media (hover:none)),
 * remove the transitions/transforms on card wrappers, the hidden actions
 * panel, and the swap overlay so the first tap goes straight to the link.
 * Scoped exclusively to Premium Woo product card elements. Desktop hover
 * behavior (pointer: fine devices) is completely unchanged.
 */
@media (hover: none) {
	/* Keep taps visually stable on listing cards */
	.premium-woo-product-wrapper,
	.premium-woo-product-thumbnail,
	.premium-woo-product-thumbnail a.woocommerce-LoopProduct-link,
	.premium-woo-product-thumbnail a.woocommerce-LoopProduct-link img,
	.premium-woo-products li.product,
	.premium-woo-products li.product .premium-woo-products-details-wrap,
	.premium-woo-products li.product .premium-woo-product-actions-wrapper,
	.premium-woocommerce li.product,
	.premium-woocommerce li.product .premium-woo-product-wrapper,
	.products li.product,
	.products li.product a.woocommerce-LoopProduct-link {
		-webkit-transform: none !important;
		-ms-transform: none !important;
		transform: none !important;
		-webkit-transition: none !important;
		transition: none !important;
		animation: none !important;
	}

	/* Prevent focus/active states from introducing movement right before nav */
	.premium-woo-product-thumbnail a.woocommerce-LoopProduct-link:hover,
	.premium-woo-product-thumbnail a.woocommerce-LoopProduct-link:focus,
	.premium-woo-product-thumbnail a.woocommerce-LoopProduct-link:active,
	.premium-woocommerce li.product a.woocommerce-LoopProduct-link:hover,
	.premium-woocommerce li.product a.woocommerce-LoopProduct-link:focus,
	.premium-woocommerce li.product a.woocommerce-LoopProduct-link:active,
	.products li.product a.woocommerce-LoopProduct-link:hover,
	.products li.product a.woocommerce-LoopProduct-link:focus,
	.products li.product a.woocommerce-LoopProduct-link:active {
		-webkit-transform: none !important;
		-ms-transform: none !important;
		transform: none !important;
		-webkit-transition: none !important;
		transition: none !important;
		outline: none !important;
		box-shadow: none !important;
		-webkit-tap-highlight-color: transparent;
	}

	/* Disable card-level transition so the wrapper does not animate on tap */
	.premium-woo-product-wrapper,
	.woocommerce-LoopProduct-link,
	.woocommerce-loop-product__link {
		-webkit-transition: none !important;
		transition: none !important;
	}

	/* Disable image transition inside the product link */
	.premium-woo-product-thumbnail .woocommerce-LoopProduct-link img,
	.premium-woo-products .product img,
	.premium-woocommerce .product img {
		-webkit-transition: none !important;
		transition: none !important;
		-webkit-transform: none !important;
		-ms-transform: none !important;
		transform: none !important;
	}

	/* Reveal actions wrapper immediately (no slide-in animation on tap) */
	.premium-woo-skin-grid-1 .premium-woo-product-actions-wrapper,
	.premium-woo-skin-grid-4 .premium-woo-product-actions-wrapper {
		-webkit-transition: none !important;
		transition: none !important;
		-webkit-transform: none !important;
		-ms-transform: none !important;
		transform: none !important;
		opacity: 1 !important;
	}

	/* Ensure helper overlay layers never steal taps from the permalink image */
	.premium-woo-product-wrapper .premium-woo-qv-data,
	.premium-woo-product-thumbnail .premium-woo-qv-data,
	.premium-woo-product-actions-wrapper,
	.premium-woo-qv-btn,
	.premium-woo-qv-btn-translate {
		pointer-events: none !important;
		-webkit-transform: none !important;
		-ms-transform: none !important;
		transform: none !important;
		-webkit-transition: none !important;
		transition: none !important;
		opacity: 1 !important;
	}

	/* Reveal swap-skin on-hover image immediately so no fade blocks the tap */
	.premium-woo-product__hover-swap .premium-woo-product__on_hover {
		/* Keep overlay hidden on touch so it never intercepts taps/clicks */
		opacity: 0 !important;
		pointer-events: none !important;
		-webkit-transition: none !important;
		transition: none !important;
	}

	/* Title transition */
	.premium-woocommerce .woocommerce-loop-product__title,
	.premium-woo-products .woocommerce-loop-product__title {
		-webkit-transition: none !important;
		transition: none !important;
	}
}

/* Hide Premium short-desc blurb on RAE cards (also stripped in PHP). */
/* Keep-listed sold originals: image badge reads SOLD (not Out Of Stock). */
li.product.rae-card--sold .pa-out-of-stock,
.rae-card--sold .pa-out-of-stock,
li.product.rae-card--sold .out-of-stock,
.rae-card--sold span.out-of-stock {
	text-transform: uppercase;
}

li.product.rae-card .premium-woo-product-desc,
.rae-card .premium-woo-product-desc {
	display: none !important;
}

.product .price .rae-loop-price {
	width: 100%;
}

@media (max-width: 768px) {
	.rae-loop-price__original,
	.rae-loop-price__editions {
		font-size: 0.85rem;
	}
}
/* RAE image download deterrence — scoped to artwork/product images only */
.woocommerce-product-gallery img,
.woocommerce-product-gallery__image img,
.wp-post-image,
img.attachment-woocommerce_thumbnail,
img.attachment-woocommerce_single,
img.attachment-shop_catalog,
img.attachment-shop_single,
.woocommerce ul.products li.product img,
.woocommerce-LoopProduct-link img,
.product-thumbnail img,
.elementor-widget-woocommerce-product-images img,
.elementor-widget-woocommerce-products .product img,
.elementor-widget-wc-products .product img,
.premium-woocommerce .product img,
.premium-woo-products .product img {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
}
/* Lightbox / enlarged artwork views */
.elementor-lightbox img,
.elementor-lightbox-image,
.dialog-lightbox-widget img,
.dialog-type-lightbox img,
.pswp img,
.pswp__img,
.photoswipe img,
.mfp-wrap img,
.fancybox-container img,
.woocommerce-product-gallery--open img,
.swiper-slide .woocommerce-product-gallery img,
.swiper-slide .elementor-lightbox img {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
}

/* Prevent smooth-scroll jump on header HOME navigation */
html {
	scroll-behavior: auto;
}
