/**
 * R19 (2026-10-30/31): PSI accessibility palette + micro-fixes.
 * Loaded AFTER child-style (priority 10030).
 * v2 (31 Oct): harden every var override with !important — CSS OM scan proved
 * the theme typography sheet re-declares :root vars AFTER this file inside the
 * LiteSpeed combined bundle (last-rule-wins beat our fixes). Custom-property
 * !important does not lose to order. Re-scanned every Lighthouse color pair.
 * Reversible: this single file is the whole switch — dequeue it to revert.
 */

/* ── 1. Base text grays (root vars) ──────────────────────────────────────────
   #777777 → #767676 (4.48 → 4.54 on white). !important = mandatory: theme's
   later :root re-declares these values inside the LS-merged bundle. */
:root {
	--wd-text-color: #767676 !important;
	--color-gray-500: #767676 !important;
}
/* Dark-scheme blocks keep their own element-scoped overrides (they win by
   element-level cascading against inherited root vars — intended). */

/* ── 2. Elementor toggle titles: #777777 on #e7e7e7 → #676767 (4.57) ───────── */
.elementor-toggle .elementor-toggle-title {
	color: #676767;
}

/* ── 3. Brand pink: #D98FAE (2.47/2.23) → #A5518B (5.06 white / 4.56 on #f3f3f3)
   Menu anchor + its inner .nav-link-text span (the span has its own rule) —
   mega-dropdown links and the WOMEN/SALE top-level nav items. */
.pink-link > a,
.pink-link a,
.pink-link a span {
	color: #A5518B !important;
}

/* ── 4. Loop-card brand-path labels (p.catil echo, child functions.php:708-16)
   UNISEX catil inherits gray-500 (was the flagged pair); give it the gray fix.
   WOMEN/MEN keep their branded colors, hardened to beat the earlier rule: */
.catil {
	color: #767676 !important;
}
.lmr-catil-women {
	color: #A5518B !important;
}
.lmr-catil-men {
	color: #243B80 !important;
}

/* ── 5. Block-title widgets in a brand-pink accent (22px/700 large-bold):
   #D98FAE → #B8638A (3.65 on #f3f3f3, large-bold 3:1 target).
   EN home = 2e5ff5c ("Women's New Additions"); AR home = 516b4d9
   ("مجموعه جديدة للنساء") — verified computed d98fae. */
.elementor-element-2e5ff5c .woodmart-title-container,
.elementor-element-2e5ff5c .wd-el-title,
.elementor-element-516b4d9 .woodmart-title-container,
.elementor-element-516b4d9 .wd-el-title {
	color: #B8638A !important;
}

/* ── 6. Home image-boxes (MEN/WOMEN buy-now tiles). AUDIT-verified geometry
   (v3): the two tiles have DIFFERENT content backdrops — MEN tiles sit on the
   flat BLUE strip (#5b6ca0), WOMEN tiles on the flat PINK strip (#e9bed0).
   MEN (ddc4e9a EN / b8f069b AR): title + desc #fff → 5.13 on blue.
   WOMEN (5f6b6ce EN / 590b58d AR): title + desc #4a2030 → 8.27 on pink.
   (v1/v2 mapped both tiles to one backdrop each — Lighthouse items proved
   both directions wrong before this split.) */
.elementor-element-ddc4e9a .elementor-image-box-title a,
.elementor-element-ddc4e9a .elementor-image-box-description,
.elementor-element-b8f069b .elementor-image-box-title a,
.elementor-element-b8f069b .elementor-image-box-description {
	color: #ffffff !important;
}
.elementor-element-5f6b6ce .elementor-image-box-title a,
.elementor-element-5f6b6ce .elementor-image-box-description,
.elementor-element-590b58d .elementor-image-box-title a,
.elementor-element-590b58d .elementor-image-box-description {
	color: #4a2030 !important;
}

/* ── 6b. Variation/size select color: inherited gray-500 (#767676) reads 4.09:1
   on #f3f3f3 surfaces (home кросс-sell quick-shop selects). #676767 = 5.18 on
   #f3f3f3 and 5.65 on white — applies to all native selects, imperceptible. */
select {
	color: #676767;
}

/* ── 6c. wd-text-block paragraphs on light-gray sections (#f3f3f3): same 4.09
   → #676767 (5.18 on #f3f3f3). */
div.wd-text-block p {
	color: #676767;
}

/* ── 12. Tabby "Learn more" snippet — REAL mechanism (v3): the widget renders
   inside a <span.styles__containerPortal…> SHADOW ROOT, so document CSS can
   never reach it. Their inner stylesheet resolves the link color from an
   INHERITED custom property: .SnippetContent__Link =
   var(--snippetLinkTextColor, #3a7dcf — the flagged 4.18:1 span). Inherited
   vars pass the shadow boundary, so define it on the site-side wrapper
   div.tabbyPromo (element/AR embeds alike). #2763AB = 6.07:1 on white. */
.tabbyPromo {
	--snippetLinkTextColor: #2763AB;
}

/* ── 7. Sale "del" price: #bbbbbb → #767676. The WooCommerce rule re-declares
   color via var(--color-gray-300) AFTER us in the bundle, so !important: */
.price del,
.price del .woocommerce-Price-amount,
.price del .woocommerce-Price-amount bdi {
	color: #767676 !important;
}

/* ── 8. Blog author meta spans ("By" + name): #bbbbbb → #767676 */
.entry-meta-list span,
.entry-meta .fn {
	color: #767676 !important;
}

/* ── 9. Prev/next page nav pill label: #bbbbbb → #767676 */
.wd-page-nav-btn > a > span.wd-label {
	color: #767676 !important;
}

/* ── 10. PDP "Vendor:" label strong: inherited gray → explicit fix */
.wd-before-add-to-cart strong {
	color: #767676 !important;
}

/* ── 11. PDP delivery strip: red #ff0000 → #d40000 (5.53) */
.lmr-delivery strong {
	color: #d40000 !important;
}

/* ── 13. Link-in-text-block: underline content links ───────────────────────── */
.entry-content p a,
.entry-content strong a,
.lmr-cat-intro p a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ── 14. Category drill-down nav target-size: rows were 17.6px high ────────── */
.wd-nav-product-cat > li > a,
.wd-nav-product-cat > li > span.nav-link-summary > a {
	padding-block: 4px;
}

/* ── 14b. Footer payments strip: kill the lazy-placeholder CLS (AR RTL desktop
   runs 0.30–0.32). Mechanism: LS media-lazy keeps src=1×1 gif until JS swap;
   the width/height attrs (emitted by our pipeline) become aspect-ratio
   `auto 261 / 22` — BUT spec says intrinsic ratio wins over <ratio> while
   `auto` is present, so the 1:1 placeholder inflates the box to 261×261 and it
   COLLAPSES to 22px on swap = the shift. Non-`auto` ratio locks 22px at
   placeholder time and swaps with zero delta. */
.min-footer .col-right img {
	aspect-ratio: 261 / 22;
	height: auto;
	width: 261px;
	max-width: 100%;
}

/* ── 15. Cookie popup text (inherits var; explicit for safety) ─────────────── */
.wd-cookies-popup .cookies-info-text,
.wd-cookies-popup .cookies-info-text a {
	color: #767676;
}
