/**
 * DigiCenter — Lighthouse / a11y / CLS helpers (child-theme only).
 */

/* Visually hidden but crawlable / available to AT */
.screen-reader-text,
.dc-sr-only {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	white-space: nowrap !important;
}

/*
 * Contrast: sale/old prices were #9ca3af / #bbb (~2.5:1).
 * Target ≥4.5:1 on white / #f7f7f7 backgrounds.
 */
.price del,
.price del .amount,
.price del bdi,
.woocommerce-Price-amount del,
del .woocommerce-Price-amount,
.wd-entities-title + .price del,
.wd-product .price del,
.wd-product .price del .amount,
.dc-pdp__price-block .price del,
.dc-pdp__price-block .price del .amount,
.dc-pdp__price-block .price del bdi,
.wd-carousel-item .price del,
.related .price del,
.upsells .price del {
	color: #6b7280 !important;
}

.dc-pdp__price-label,
.dc-pdp__meta,
.dc-pdp__meta a,
.product_meta,
.product_meta a,
.sku,
.wd-product-sku {
	color: #4b5563;
}

/* Soft green savings / stock accents that failed AA */
.woocommerce-Price-amount.amount[style*="059669"],
.stock.in-stock {
	color: #047857;
}

/* Prefer compositor-friendly motion (avoid layout-prop transitions) */
@media (prefers-reduced-motion: no-preference) {
	body.dc-classic-header .whb-main-header {
		transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease !important;
	}

	body.dc-classic-header .whb-header .whb-general-header,
	body.dc-classic-header .whb-header .dc-header-actions .wd-tools-count {
		transition: opacity 0.2s ease, transform 0.2s ease !important;
	}

	.dc-pdp__gallery .product-additional-galleries .wd-compare-btn > a,
	.dc-pdp__gallery .product-additional-galleries .wd-wishlist-btn > a {
		transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Trust / seal images — explicit width/height set in HTML/JS */
img[src*="enamad"],
img[src*="samandehi"],
img[src*="etehadie"],
img[src*="torob.com"],
img[src*="api.torob.com"] {
	max-width: 100%;
	height: auto;
}

/* Decorative nav icons: empty alt is set in JS/PHP; keep them from affecting layout */
a.woodmart-nav-link img.wd-nav-img {
	display: inline-block;
	vertical-align: middle;
}
