/**
 * evov-sub — theme colour tokens
 *
 * WHY THIS FILE EXISTS
 * --------------------
 * WoodMart declares --wd-main-bgcolor twice in base.css:
 *
 *   :root                          { --wd-main-bgcolor: #FFF;     }
 *   [class*="color-scheme-light"]  { --wd-main-bgcolor: #1a1a1a;  }
 *
 * The body carries `global-color-scheme-light`, so the site resolves the
 * #1a1a1a branch. (WoodMart's naming refers to light TEXT, not a light
 * background.)
 *
 * Theme Settings then paints the real page background per page type, and those
 * rules are all #0B0D14:
 *
 *   .page :is(.wd-page-content, .whb-header)                        { #0B0D14 }
 *   .woodmart-archive-shop:not(.single-product) :is(…)              { #0B0D14 }
 *   .single-product :is(…) · .woodmart-archive-blog :is(…) · .single-post :is(…)
 *
 * Every surface those selectors do NOT name keeps the #1a1a1a default, which is
 * the leak: a near-black that is close enough to look like a rendering artefact
 * rather than a different colour, on a page whose actual background is #0B0D14.
 *
 * Rather than extend that list of page-type selectors, this corrects the token
 * itself, so anything reading it lands on the same colour the rest of the site
 * already uses. Eight rules consume it:
 *
 *   body:not([class*="wrapper-boxed"])   the body background
 *   .wd-page-wrapper · .wd-page-content  the page surfaces
 *   .wd-prefooter
 *   .wd-compare-img :is(.wd-before-img, .wd-after-img)
 *   .woocommerce-product-gallery .zoomImg[src$=".png"]
 *   .wc-block-components-order-summary …
 *   #evov-page-spinner                   our own full-page PJAX overlay
 *
 * That last one was visible in normal use: the navigation overlay covered the
 * viewport in #1a1a1a while the page underneath was #0B0D14.
 *
 * :root's #FFF is deliberately left alone. It is the light-scheme value and
 * nothing on this site resolves to it.
 *
 * Same selector and specificity as WoodMart's own declaration — this wins on
 * source order, which is guaranteed because the handle depends on
 * evov-compact and base.css is loaded ahead of that as wd-style-base.
 */

[class*="color-scheme-light"] {
	--wd-main-bgcolor: #0B0D14;
}


/* ── Mobile toolbar: the cart icon ───────────────────────────────────────
 *
 * The bottom toolbar showed a shopping BAG on /cart/ and /checkout/ and the
 * trolley everywhere else. Not a stray override — it is what WoodMart is asked
 * to do, from inc/modules/sticky-toolbar.php:
 *
 *     $icon_classes = ' wd-icon-alt';                        // bag
 *     if ( 'cart' === $settings['cart']['icon_type'] ) {
 *         $icon_classes = '';                                // trolley
 *     }
 *
 * $settings is whb_get_settings() — the ACTIVE HEADER's settings. This store
 * runs two headers, and the toolbar follows whichever one the page uses:
 *
 *     /            whb-header_875428   wd-tools-icon              \f105 trolley
 *     /cart/       whb-header_864378   wd-tools-icon wd-icon-alt  \f126 bag
 *
 * The cart/checkout header simply never had its cart icon type set to "cart",
 * so the toolbar takes the bag default. The glyph itself is delivered through
 * a custom property, which is why this can be corrected as a token:
 *
 *     .wd-tools-icon::before                        { content: var(--wd-tools-icon) }
 *     .wd-header-cart                               { --wd-tools-icon: "\f105" }
 *     .wd-header-cart .wd-tools-icon.wd-icon-alt    { --wd-tools-icon: "\f126" }
 *     .wd-header-cart .wd-tools-icon.wd-icon-alt::before { content: "\f126" }
 *
 * Correcting the custom property alone looked right and changed nothing: the
 * variable read back as "\f105" while the rendered glyph stayed "\f126",
 * because that last rule sets `content` literally and outranks the var-based
 * one. The property is still set, for anything else reading it, and the
 * content is set alongside it because that is what actually paints.
 *
 * Four classes against WoodMart's three, so both win on specificity with no
 * !important. Scoped to .wd-toolbar because that is the control that was
 * inconsistent; the headers themselves are left to their own settings.
 *
 * THE ROOT-CAUSE FIX IS A SETTING, NOT THIS. Setting the cart icon type to
 * "cart" on header 864378 in the Header Builder makes both headers agree and
 * this rule redundant. It is kept as the belt: a new header added later
 * inherits the correct toolbar icon without anyone remembering the setting.
 */
.wd-toolbar .wd-header-cart .wd-tools-icon.wd-icon-alt {
	--wd-tools-icon: "\f105";
}

.wd-toolbar .wd-header-cart .wd-tools-icon.wd-icon-alt::before {
	content: "\f105";
}
