/**
 * evov-sub — Product Loop: Buttons-on-Hover Reskin  (v1.4.72)
 * Target layout: .wd-product.wd-hover-buttons-on-hover
 *
 * Built for WoodMart dark theme (Theme Options → Dark Version enabled).
 * The body carries class: global-color-scheme-light
 *
 * Architecture
 * ─────────────────────────────────────────────────────────────
 * • Extends WoodMart's animation mechanics — never replaces them.
 *   All clip-path, translateY, and opacity transitions are left
 *   to WoodMart's own CSS (woo-product-loop-buttons-on-hover.min.css).
 * • Custom design tokens are prefixed --evov-* so they never
 *   clash with WoodMart's internal --wd-* namespace.
 * • WoodMart theme-option variables (--wd-*, --btn-accented-*)
 *   are referenced but NOT overridden — changes in Theme Options
 *   still propagate through as expected.
 * ─────────────────────────────────────────────────────────────
 */


/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */

:root {
  /* Card surface */
  --evov-card-bg:              #141414;
  --evov-card-border-hover:    rgba(255, 255, 255, 0.16);

  /* CTA button height (overrides WoodMart's --btn-height: 36px) */
  --evov-cta-height:           44px;

  /* Title typography */
  --evov-title-weight:         700;
  --evov-title-size:           0.93rem;
  --evov-title-max-lines:      2;

  /* Content area horizontal padding — used by both the container
     and the platform label's negative margins to stay in sync     */
  --evov-content-padding-x:    14px;

  /* Platform label */
  --evov-platform-label-h:     28px;   /* height of the frosted bar */
  --evov-platform-label-bg:    rgba(5, 5, 5, 0.65);
  --evov-platform-label-blur:  12px;

  /* Region badge */
  --evov-region-badge-color:   rgba(255, 255, 255, 0.55);
  --evov-region-badge-border:  rgba(255, 255, 255, 0.28);
}


/* ================================================================
   2. LAYOUT TOKEN OVERRIDES (feed into WoodMart's internal vars)
   ================================================================ */

/*
 * WHY html prefix?
 * WoodMart's woo-product-loop-buttons-on-hover.min.css loads AFTER
 * this stylesheet and re-declares --btn-height: 36px on the plain
 * .wd-product.wd-hover-buttons-on-hover selector (specificity 0,2,0).
 * Adding the html type-selector bumps our specificity to (0,2,1),
 * which wins regardless of source order.  All overrides that must
 * beat WoodMart's same-selector declarations need this prefix.
 */
html .wd-product.wd-hover-buttons-on-hover {
  /* Increase CTA height for a bolder digital-store feel.
     WoodMart uses --btn-height for the button-text line-height;
     our section-8 rule also sets height/line-height directly on
     the <a> element so the button is always the correct size.    */
  --btn-height:        var(--evov-cta-height);

  /* --wd-trans-h drives three things on desktop:
       1. margin-bottom: calc(--wd-trans-h * -1)  on .product-element-bottom
          → pulls the card wrapper height DOWN, clipping the footer
            and bottom padding out of the default-state view.
       2. translateY(calc(--wd-trans-h * -1))      on .product-element-bottom (hover)
       3. clip-path: inset(0 0 --wd-trans-h 0)     on .wd-product-thumb   (hover)
     Formula: trans_h = button_height + desired_bottom_padding
              = 44px + 10px = 54px
     This guarantees wrapper_height − footer_top = 0 at rest
     (no invisible-footer bleed) while exposing 10 px of bottom
     breathing-room below the CTA on hover.                       */
  --wd-trans-h:        calc(var(--evov-cta-height) + 10px);

  /* Zero the gap WoodMart inserts between image and content section. */
  --wd-prod-gap:       0px;

  /* Keep image flush to the card edges (no outer spacing) */
  --wd-prod-bg-sp:      0;
}




/* ================================================================
   3. CARD WRAPPER — dark surface, border, transitions
   ================================================================ */

/* html prefix (specificity 0,3,1) is REQUIRED: WoodMart's
   woo-product-loop-buttons-on-hover.min.css declares
   `.wd-product.wd-hover-buttons-on-hover .wd-product-wrapper { border-radius:0 }`
   at the same specificity (0,3,0) and loads AFTER this file in some contexts
   (e.g. inside a column / certain page loads), so without the prefix its 0
   intermittently wins and the cards lose their corner radius. See §2. */
html .wd-product.wd-hover-buttons-on-hover .wd-product-wrapper {
  background-color: var(--bgcolor-white);

  /* Respect Theme Options → Border Radius; fallback to 6px */
  border-radius:    var(--wd-brd-radius, 6px);

  /* Replace WoodMart's broad 'transition: all .3s ease' with targeted
     properties so only card-level values animate (not clip-path etc.) */
  transition:
    transform  0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}


/* ================================================================
   4. CARD HOVER — glow + border highlight (desktop only)

   Note: WoodMart already applies translateY(-10px) on this hover
   selector inside its own @media (min-width: 1025px) block.
   We add box-shadow and border-color on top of that.
   ================================================================ */

@media (min-width: 1025px) {
  .wd-product.wd-hover-buttons-on-hover .wd-product-wrapper:hover {
    /* Multi-layer shadow:
       1. Deep directional shadow for lift
       2. Soft primary-color glow (tied to Theme Options → Primary Color) */
    box-shadow:
      0 10px 35px rgba(0, 0, 0, 0.50),
      0 0   22px color-mix(in srgb, var(--wd-primary-color, #6366f1) 22%, transparent);
  }
}


/* ================================================================
   5. IMAGE THUMB — radius matches top corners of card
   ================================================================ */

/* overflow: visible lets the platform label's translateY(8px) base
   extend 8px below the thumb into the gap without being clipped.
   The image's top-corner border-radius is moved to .wd-product-img-link
   (with overflow: hidden there) so it still clips correctly.           */
.wd-product.wd-hover-buttons-on-hover .wd-product-thumb {
  position: relative;
  z-index:  5;
  overflow: visible;
  border-radius:
    var(--wd-thumb-brd-radius, var(--wd-brd-radius, 0))
    var(--wd-thumb-brd-radius, var(--wd-brd-radius, 0))
    0 0;
}

/* Clip the image to rounded top corners now that the thumb uses overflow:visible.
   background-color provides the placeholder colour during WoodMart lazy loading
   (img has opacity:0 via .wd-lazy-fade until .wd-loaded is added). */
.wd-product.wd-hover-buttons-on-hover .wd-product-img-link {
  display:          block;
  overflow:         hidden;
  background-color: var(--bgcolor-white);
  border-radius:
    var(--wd-thumb-brd-radius, var(--wd-brd-radius, 0))
    var(--wd-thumb-brd-radius, var(--wd-brd-radius, 0))
    0 0;
}


/* ── FIXED ASPECT RATIO ──────────────────────────────────────────
   The thumbnail box owns its shape, so an upload's own dimensions stop
   deciding the height of the card.

   WordPress prints width and height attributes on every thumbnail, and the
   browser turns those into an implied ratio. WoodMart then sizes the image
   width-first with height auto, so the rendered height was simply whatever
   ratio the file happened to have. Every product in the catalogue is 328x456
   today, which is why the grid looked even: it was a coincidence of uploads,
   not a rule. Measured with two differently shaped images dropped in, the
   thumbs in one row came out 293, 140, 140, 293 and the titles and prices
   below them fell out of line.

   341/475 is the store's own artwork ratio (0.7179), and it is written as a
   ratio rather than a pixel size so the box keeps its shape at every column
   count and breakpoint.

   aspect-ratio: auto on the image is load-bearing: without it the ratio
   implied by the width and height attributes fights the box and the image
   will not fill it.

   object-fit: cover, chosen over contain after looking at both against a real
   off-ratio upload. Contain never loses a pixel of artwork but pays for it
   with bars, and a grid of covers with uneven padding around them reads as
   badly aligned even though the boxes are identical. Cover fills every box
   edge to edge, so the grid looks deliberate.

   The cost is measured, not assumed. A 177x265 upload (0.6693) in this box:

     contain   7px bars left and right, nothing cropped
     cover     fills the width, crops 11px off the top and 11px off the
               bottom, losing 6.8% of the image

   The direction of the loss follows the shape of the upload: a portrait file
   narrower than the box loses top and bottom, a landscape file wider than the
   box loses left and right. Nothing is ever stretched, and the crop is centred.

   An upload that IS 0.7179 fills the box exactly at any pixel size, so the
   existing catalogue renders as it did before either way.

   The mobile card further down this file pins its thumb to 94x130 (0.723,
   about the same ratio) and uses cover too since 2026-10-13.
   Only with the body class evov-cover-crop (evov_feature('cover-crop'),
   off for OTLT, whose images keep their own shape); :where() adds no
   weight. */
:where(.evov-cover-crop) .wd-product .wd-product-img-link {
  display:      block;
  aspect-ratio: 341 / 475;
}

:where(.evov-cover-crop) .wd-product .wd-product-img-link img {
  width:        100%;
  height:       100%;
  aspect-ratio: auto;
  object-fit:   cover;
}


/* ================================================================
   5b. DOM GAP CLOSER

   WoodMart inserts ~8px of margin between .wd-product-thumb and
   .product-element-bottom. Because clip-path on the thumb clips
   all its children, no child element can visually bridge this gap
   from inside the thumb. Pulling the content section up by 8px is
   the only reliable fix. The platform label's translateY(8px) base
   covers the top 8px of the content section at rest (label is above
   content due to thumb's z-index: 5), so nothing is visually hidden.
   ================================================================ */

.wd-product.wd-hover-buttons-on-hover .product-element-bottom {
  margin-top: -8px;

  /* Positioning context for the platform label (now a child here) and a
     stacking context ABOVE the thumb (z-index 5) so the label's frosted
     backdrop-filter samples the image pixels that overhang behind it.

     !important is REQUIRED: WoodMart's woo-product-loop-buttons-on-hover
     CSS sets `z-index: 2` on this exact selector inside
     @media (min-width:1025px). That rule has identical specificity (0,3,0)
     to ours but loads AFTER product-loop.css, so it wins the source-order
     tie and drops the content section BELOW the thumb (z-index 5) — the
     thumb then paints over the platform label, hiding it entirely. */
  position: relative;
  z-index:  6 !important;
}

/*
 * WHY direct padding override (not --wd-prod-bg-cont-sp)?
 * WoodMart's `:is(.wd-products-with-bg, …) .wd-product…` rule has
 * specificity (0,4,0) and overrides our variable to 15px.
 * Setting padding directly on .product-element-bottom with the html
 * prefix gives specificity (0,3,1) > WoodMart's (0,3,0) rule that
 * applies `padding: var(--wd-prod-bg-cont-sp)` — so our value wins.
 *
 * Padding values:
 *   top  12 px — provides ≈ 8 px of visible breathing-room between
 *               the platform-label frosted bar and the product title.
 *               (The label extends ~4 px below the image edge via its
 *               margin-bottom: -6px, so a larger offset than 0 is
 *               required to keep the title text clear of the label.)
 *   bottom 10 px — visible on hover as the breathing-room below the
 *               CTA button. Matched exactly by the + 10 px term in
 *               --wd-trans-h above, so the formula
 *               footer_height(44) + bottom_pad(10) − trans_h(54) = 0
 *               still holds: footer clips exactly at the card edge at
 *               rest — no invisible-footer bleed-in.
 *
 * background-color: --bgcolor-white
 *   WoodMart sets background-color: inherit on this element, so it
 *   picks up .wd-product-wrapper's --evov-card-bg (#141414). We want
 *   the content section to use --bgcolor-white (#121420 in dark mode,
 *   #FFF in light mode) so it shifts slightly from the image area and
 *   adapts automatically when the colour scheme changes.
 */
html .wd-product.wd-hover-buttons-on-hover .product-element-bottom {
  padding:          12px var(--evov-content-padding-x) 10px;
  background-color: var(--bgcolor-white);
  cursor:           pointer; /* entire content section is clickable via JS */
}


/* ================================================================
   6. TITLE — bold, 2-line clamp
   ================================================================ */

/* Restore the top breathing-room that --wd-prod-bg-cont-sp used to
   provide (now 0). The platform label sits flush at the image
   bottom; this margin pushes the title 10px below it.           */
.wd-product.wd-hover-buttons-on-hover .wd-product-header {
  margin-top: 10px;
}

.wd-product.wd-hover-buttons-on-hover .wd-entities-title {
  font-size:   var(--evov-title-size);
  font-weight: var(--evov-title-weight);

  /* Clamp to N lines with ellipsis.
     min-width: 0 is required for line-clamp to work in a flex parent. */
  min-width:          0;
  display:            -webkit-box;
  -webkit-line-clamp: var(--evov-title-max-lines);
  -webkit-box-orient: vertical;
  overflow:           hidden;
}

/* WoodMart's Typography → "Product loop title" line-height writes to the
   inner <a> element (html .wd-product .wd-entities-title a). However,
   WoodMart's own wd-loop-builder-off rule forces line-height: inherit on
   the h3.wd-entities-title block, creating a CSS strut sized by the parent's
   inherited value (~21px) that prevents the <a>'s setting from having any
   visual effect.
   Specificity (0,3,1) > WoodMart's (0,2,0) — sets line-height: 0 on the h3
   to collapse the strut, so the <a>'s WoodMart-written value is the sole
   contributor to each line box height. */
html .wd-product.wd-hover-buttons-on-hover .wd-entities-title {
  line-height: 0;
}

/* WoodMart 8.5.x native "Title Lines" clamp feature (Elementor widget option
   that adds a [class*="title-line-"] ancestor class, e.g. .title-line-two)
   calculates max-height as line-count × line-height and applies that
   line-height directly to the h3 itself — the same element we zero out
   above. With line-height: 0 the calc() collapses to 0 and every wrapped
   line renders stacked on the same baseline (title text overlapping
   itself). Give the h3 back a real line-height whenever this WoodMart
   feature is active; our own -webkit-line-clamp above still provides the
   ellipsis truncation, so this doesn't reintroduce the original strut gap
   for widgets that don't use WoodMart's title-line-* option. */
html [class*="title-line-"] .wd-product.wd-hover-buttons-on-hover .wd-entities-title {
  line-height: var(--wd-line-height, 1.4em);
}


/* ================================================================
   7. PRICE — fully inherits from WoodMart theme settings (no overrides)
   ================================================================ */


/* ================================================================
   8. FOOTER REVEAL AREA — CTA + action buttons
   ================================================================ */

.wd-product.wd-hover-buttons-on-hover .wd-product-footer {
  gap:        8px;
  margin-top: 12px;   /* breathing room between price and CTA */
}

/* CTA button — WoodMart already sets width: 100%, border-radius,
   and all color vars from Theme Options. We only adjust font. */
.wd-product.wd-hover-buttons-on-hover .wd-add-btn > a {
  font-size:      0.82rem;
  font-weight:    700;
  letter-spacing: 0.04em;
  height:         var(--evov-cta-height);
  line-height:    var(--evov-cta-height);
}

/* Cart glyph injected inside .wd-action-text (loop/add-to-cart.php).
   Hidden by default so desktop shows the normal "Add to cart" label;
   the mobile (≤767px) section reveals it as an icon-only pill. */
.evov-cart-glyph {
  display:     none;
  font-family: "woodmart-font";
  font-style:  normal;
  font-weight: 400;
}
.evov-cart-glyph::before {
  content: attr(data-glyph);
}

/* ================================================================
   Single product page — "Add to cart" widget
   Drop the quantity stepper and show the cart glyph (the same
   woodmart-font icon \f123 the mobile product card uses) in place of
   the "Add to cart" label. WooCommerce reserves this button's ::before
   /::after for the AJAX loader, but the single-product button submits
   the form (no ajax_add_to_cart class), so ::before is free to
   repurpose as the static glyph — we reset its loader positioning.
   ================================================================ */
.elementor-widget-wd_single_product_add_to_cart form.cart .quantity {
  display: none !important;
}
/* Order the row: Buy Now first (left), Add to cart second (right).
   The hidden quantity/inputs stay at default order 0 but render nothing. */
.elementor-widget-wd_single_product_add_to_cart form.cart .wd-buy-now-btn {
  order: 1;
}
.elementor-widget-wd_single_product_add_to_cart form.cart .single_add_to_cart_button {
  order: 2;
}
.elementor-widget-wd_single_product_add_to_cart form.cart .single_add_to_cart_button {
  font-size: 0; /* hide the "Add to cart" text node */
}
.elementor-widget-wd_single_product_add_to_cart form.cart .single_add_to_cart_button::before {
  content:     "\f123"; /* woodmart-font cart glyph — matches .evov-cart-glyph */
  position:    static;  /* override WooCommerce's absolute loader overlay */
  opacity:     1;
  width:       auto;
  height:      auto;
  top:         auto;
  left:        auto;
  font-family: "woodmart-font";
  font-style:  normal;
  font-weight: 400;
  font-size:   22px;
  line-height: 1;
  color:       inherit;
}

/* Action buttons (compare, quick-view) in footer —
   glassmorphism circles matching CTA height */
.wd-product.wd-hover-buttons-on-hover .wd-product-footer .wd-action-btn > a,
.wd-product.wd-hover-buttons-on-hover .wd-product-footer .wd-action-btn > button {
  display:          flex;
  align-items:      center;
  justify-content:  center;
  flex-shrink:      0;
  width:            var(--evov-cta-height);
  height:           var(--evov-cta-height);
  border-radius:    50%;
  background-color: rgba(255, 255, 255, 0.07);
  border:           1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter:  blur(6px);
  transition:
    background-color 0.2s ease,
    border-color     0.2s ease;
}

.wd-product.wd-hover-buttons-on-hover .wd-product-footer .wd-action-btn > a:hover,
.wd-product.wd-hover-buttons-on-hover .wd-product-footer .wd-action-btn > button:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color:     rgba(255, 255, 255, 0.20);
}


/* ================================================================
   9. ALWAYS-VISIBLE ICON BUTTONS (top-right: wishlist, compare)
   .wd-buttons.wd-pos-r-t
   ================================================================ */

/* Container position — moved to a direct child of .wd-product-wrapper
   (out of .wd-product-thumb in content-product-buttons-on-hover.php).
   The wrapper is always position:relative so this anchors correctly on
   both desktop (overlays the image top-right) and mobile (card top-right). */
.wd-product.wd-hover-buttons-on-hover .product-wrapper > .wd-buttons.wd-pos-r-t {
  position: absolute;
  top:      8px;
  right:    8px;
  z-index:  10;
}

.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t .wd-action-btn > a,
.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t .wd-action-btn > button {
  display:          flex;
  align-items:      center;
  justify-content:  center;
  width:            32px;
  height:           32px;
  border-radius:    50%;
  background-color: rgba(0, 0, 0, 0.55);
  border:           1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter:  blur(8px);
  color:            rgba(255, 255, 255, 0.80);
  transition:       background-color 0.2s ease;
}

.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t .wd-action-btn > a:hover,
.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t .wd-action-btn > button:hover {
  background-color: rgba(0, 0, 0, 0.80);
}


/* ================================================================
   10. PRODUCT LABELS (sale badge, custom labels)
   ================================================================ */

.wd-product.wd-hover-buttons-on-hover .onsale {
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.06em;
  border-radius:  var(--wd-brd-radius, 4px);
}


/* ================================================================
   11. STAR RATING — de-emphasised
   ================================================================ */

.wd-product.wd-hover-buttons-on-hover .star-rating {
  font-size: 0.72rem;
  opacity:   0.65;
}


/* ================================================================
   12. BORDERED / SHADOW / BACKGROUND WRAPPER VARIANTS
   When WoodMart adds .wd-products-with-bg, .wd-products-with-shadow,
   or .products-bordered-grid-ins, ensure our card surface still wins.
   ================================================================ */

:is(
  .products-bordered-grid-ins,
  .wd-products-with-bg:not(.products-bordered-grid),
  .wd-products-with-shadow:not(.products-bordered-grid)
) .wd-product.wd-hover-buttons-on-hover .wd-product-wrapper {
  background-color: var(--bgcolor-white);
}


/* ================================================================
   13. PLATFORM LABEL — frosted bar overhanging the image bottom

   Placement: position: absolute inside .product-element-bottom (NOT the
   thumb). The content section is raised to z-index 6 (> thumb's 5) and is
   the label's positioning context, so the label overhangs UPWARD over the
   image bottom and its backdrop-filter samples the image pixels behind it.

   Why it moved out of the thumb: previously the label was a separate
   backdrop-filter layer with its own translateY hover transform trying to
   mimic the content push-up. WebKit re-rasterizes backdrop-filter layers a
   frame behind sibling transforms, so the frosted bar visibly desynced from
   the content edge in Safari. As a child of .product-element-bottom the
   label is carried by that element's single push-up transform — perfect
   sync by construction, no independent transform animation.
   ================================================================ */

.wd-product.wd-hover-buttons-on-hover .evov-platform-label {
  position: absolute;
  /* Negative insets cancel .product-element-bottom's horizontal padding so
     the frosted bar spans the full card width, as it did inside the thumb. */
  left:     calc(var(--evov-content-padding-x) * -1);
  right:    calc(var(--evov-content-padding-x) * -1);
  /* Anchor the bar so its BOTTOM edge sits at the content section's top edge
     (= the image bottom, since margin-top:-8px overlaps the seam), making the
     whole bar overhang UP over the image where its backdrop-filter has image
     pixels to sample.

     Anchored via a fixed `top` offset, NOT `bottom: calc(100% - 8px)`:
     a percentage offset resolves against the containing block's height, and
     .product-element-bottom is auto-height. WebKit/Safari resolves a
     percentage offset against an auto-height containing block as ~0, which
     collapsed the bar to the BOTTOM of the content section (the title/price
     area) instead of overhanging the image. A fixed top offset has no
     percentage dependency, so Chrome and Safari agree.
       top = -(label height - 8px overlap) = -(32 - 8) = -24px */
  top:      calc((var(--evov-platform-label-h) - 8px) * -1);
  bottom:   auto;
  z-index:  3;   /* above the image; below .wd-buttons (z-index 4+) */

  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  height:          var(--evov-platform-label-h);
  padding:         0 var(--evov-content-padding-x);

  background-color:        var(--evov-platform-label-bg);
  backdrop-filter:         blur(var(--evov-platform-label-blur));
  -webkit-backdrop-filter: blur(var(--evov-platform-label-blur));

  font-size:      10px !important;
  font-weight:    600;
  letter-spacing: 0.02em;
  color:          rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.wd-product.wd-hover-buttons-on-hover .evov-platform-icon {
  display:     flex;
  align-items: center;
  flex-shrink: 0;
  color:       rgba(255, 255, 255, 0.70);
}

/* Term image from pa_platform attribute */
.wd-product.wd-hover-buttons-on-hover .evov-platform-icon img {
  width:      14px;
  height:     14px;
  object-fit: contain;
  display:    block;
}

.wd-product.wd-hover-buttons-on-hover .evov-platform-name {
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}


/* ================================================================
   14. REGION BADGE — compact text label below the product title

   No border. align-self: flex-start prevents it from stretching
   to full width when .product-element-bottom is a flex column.
   ================================================================ */

.wd-product.wd-hover-buttons-on-hover .evov-region-badge {
  align-self:     flex-start;   /* don't stretch in flex column */
  display:        inline-block;
  padding:        1px 0;
  margin-top:     2px;
  margin-bottom:  4px;
  font-size:      0.63rem;
  font-weight:    700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color:          var(--evov-region-badge-color);
  line-height:    1.5;
}

/* In product grids WoodMart's .wd-loop-builder-off rule zeroes these margins,
   but only once the grid carries that class: for ~230ms after a filter or
   page swap the 2px/4px above applied and every card grew 6px, then shrank.
   Stating the settled value here removes that bounce. */
.wd-products .wd-product.wd-hover-buttons-on-hover .evov-region-badge:not(.evov-skel-region) {
  margin-top:    0;
  margin-bottom: 0;
}


/* ================================================================
   15. MOBILE (≤ 1024px)
   WoodMart already handles the no-animation fallback.
   We strip expensive transitions on touch devices.
   ================================================================ */

@media (max-width: 1024px) {
  .wd-product.wd-hover-buttons-on-hover .wd-product-wrapper {
    transition: none;
  }
  /* Label is in normal flex flow — no mobile override needed.
     On mobile WoodMart renders the full content section visible,
     so the label naturally sits at the image/content junction.   */
}


/* ================================================================
   15b. HORIZONTAL MOBILE CARD

   Single-column horizontal layout: 94×130 portrait artwork on the
   LEFT, the info column on the RIGHT.

   Applied via the .evov-mobile-card class on any ancestor of the
   product cards, set by two independent mechanisms:
     • JS (pjax-nav.js): added to .wd-products on ≤767px via
       matchMedia, removed on wider viewports.
     • Elementor: server-rendered on the widget wrapper when the
       "Use mobile style" toggle is on — applies the layout on
       desktop without needing a narrow viewport.

   Because the class is the single source of truth, every future
   edit to these rules automatically applies to both real mobile
   AND the forced-desktop variant. No duplication.

   Specificity note: .evov-mobile-card .wd-product... gives (0,4,0),
   which beats WoodMart's desktop rules at (0,3,0)–(0,3,1). Where
   WoodMart uses hover pseudo-classes (specificity ≥ 0,5,1) we use
   !important to guarantee the mobile layout wins.
   ================================================================ */

/* ── Wrapper — horizontal flex row ───────────────────────────── */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .product-wrapper {
  position:       relative;
  display:        flex;
  flex-direction: row;
  align-items:    flex-start;
  gap:            0;
  padding:        15px 8px;
  /* Cancel desktop card-lift hover transform */
  transform:      none !important;
}

/* ── LEFT — 94×130 portrait artwork ──────────────────────────── */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .wd-product-thumb {
  flex:      0 0 94px;
  width:     94px;
  margin:    0 10px 0 0;
  clip-path: none !important;  /* cancel WoodMart's hover clip-path */
}

.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .wd-product-thumb .wd-product-img-link,
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .wd-product-thumb img {
  display:       block;
  width:         94px;
  height:        130px;
  aspect-ratio:  auto;
  object-fit:    cover;
  border-radius: 8px !important;
}

/* ── RIGHT — 2-column info grid ──────────────────────────────── */
/* position:static un-positions .product-element-bottom so the
   platform label anchors to .product-wrapper (the LEFT image).
   transform:none !important cancels WoodMart's hover translateY
   (specificity ≥ 0,5,1 — !important is required to beat it). */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .product-element-bottom {
  position:              static !important;
  z-index:               auto !important;
  flex:                  1 1 auto;
  min-width:             0;
  margin:                0 !important;
  padding:               0 !important;
  transform:             none !important;
  display:               grid;
  grid-template-columns: 1fr auto;
  align-items:           center;
  column-gap:            10px;
  row-gap:               6px;
}

/* Title, region badge, platform label — full-width rows */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .wd-product-header,
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .wd-entities-title,
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .evov-region-badge,
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .evov-platform-label {
  grid-column: 1 / -1;
}

/* Price → col 1; footer → col 2, same row */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .wrap-price {
  grid-column: 1;
  margin:      0;
}

/* Footer is hidden at rest on desktop — force it visible.
   !important is needed because WoodMart sets opacity:0 / visibility:hidden
   on .wd-product-footer for the reveal-on-hover mechanic. */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .wd-product-footer {
  grid-column:  2;
  margin:       0 !important;
  justify-self: end;
  align-items:  center;
  opacity:      1 !important;
  visibility:   visible !important;
}

/* ── Icon-only add-to-cart pill (55×35) ──────────────────────── */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .wd-product-footer .wd-add-btn-replace > a {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           55px;
  min-width:       55px;
  height:          35px;
  min-height:      35px;
  line-height:     35px;
  padding:         0;
}
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .wd-product-footer .wd-add-btn-replace > a .wd-action-text {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           100%;
  padding:         0;
  line-height:     1;
  font-size:       0;
}
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .wd-product-footer .wd-add-btn-replace > a .evov-cart-glyph {
  display:     block;
  font-size:   22px;
  line-height: 1;
}

/* ── Title clearance for wishlist button ─────────────────────── */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .wd-product-header {
  padding-right: 48px;
}

/* ── Discount percentage ──────────────────────────────────────── */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .wrap-price {
  flex-direction: column;
  align-items:    flex-start;
  gap:            2px;
}

.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .evov-discount-pct {
  display:        block;
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 0.04em;
  color:          var(--wd-primary-color, #ff0f7b);
}

/* ── Platform label ───────────────────────────────────────────── */
/* Anchored to .product-wrapper (positioned, padding-top 15px).
   top = wrapper-padding-top (15px) + image-height (130px) − bar-height */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .evov-platform-label {
  position:        absolute;
  left:            8px;
  right:           auto;
  width:           94px;
  top:             calc(15px + 130px - var(--evov-platform-label-h));
  bottom:          auto;
  z-index:         6;
  justify-content: center;
  gap:             4px;
  height:          var(--evov-platform-label-h);
  margin:          0;
  padding:         0 4px;
  border-radius:   0 0 8px 8px;
}

.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .evov-platform-name {
  max-width: 10ch;
}

/* ── Skeleton overrides ───────────────────────────────────────── */
.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .wd-product-thumb.evov-skel-thumb {
  border-radius: 8px !important;
}

.evov-mobile-card .wd-product.wd-hover-buttons-on-hover .evov-region-badge.evov-skel-region {
  width:        fit-content;
  max-width:    80px;
  justify-self: start;
}


/* ================================================================
   16. BUY NOW BUTTON — site-wide outlined style

   Applied to every .wd-buy-now-btn instance (single product page,
   sticky add-to-cart bar, quick-view, etc.).
   Add To Cart stays solid primary; Buy Now becomes a ghost/outlined
   button — transparent background, white text, 2 px primary border.

   Padding is reduced by 2 px each side to compensate for the border
   so the content box stays the same size as the adjacent buttons.
   ================================================================ */

.wd-buy-now-btn {
  background-color: transparent !important;
  color:            #fff !important;
  border:           2px solid var(--wd-primary-color, #ff0f7b) !important;
  box-shadow:       none !important;
  /* Compensate for the 2 px border so height/width stay consistent
     with the adjacent Add To Cart button.                         */
  padding:          3px 18px !important;
}

.wd-buy-now-btn:hover {
  background-color: var(--wd-primary-color, #ff0f7b) !important;
  color:            #fff !important;
}


/* ================================================================
   17. CAROUSEL SCROLLBAR — show/hide with arrows

   WoodMart's carousel arrows use:
     - opacity: 0 at rest   (on .wd-btn-arrow inside .wd-nav-arrows[class*="wd-hover"])
     - opacity: 1 on hover  (:is(.wd-carousel-container, .wd-products-element):hover)
   Both rules are inside @media (min-width: 1025px).

   The scrollbar track (.wd-nav-scroll) has transition: all .25s ease built in,
   so mirroring the same opacity + pointer-events pair gives a synchronised
   fade with zero extra JS.

   On mobile (≤ 1024px) there are no arrows at all — the scrollbar is the
   only scroll affordance so we leave it always visible there.
   ================================================================ */

@media (min-width: 1025px) {
  :is(.wd-carousel-container, .wd-products-element) .wd-nav-scroll {
    opacity:        0;
    pointer-events: none;
  }
  :is(.wd-carousel-container, .wd-products-element):hover .wd-nav-scroll {
    opacity:        1;
    pointer-events: unset;
  }
}

/* While a recently-viewed grid is still resolving its live list, fully remove
   the scrollbar track (not just fade it) so it can't appear on page load before
   the real items are in and Swiper has recomputed whether the carousel actually
   scrolls. pjax-nav.js adds .evov-rv-loading on skeleton apply and removes it on
   wdRecentlyViewedProductLoaded (after swiper.update()). Not scoped to a media
   query — the track must stay hidden during load at every breakpoint. */
.evov-rv-loading .wd-nav-scroll {
  display: none !important;
}


/* ================================================================
   18. DARK MODE — background color override

   How WoodMart's mode system works
   ─────────────────────────────────────────────────────────────
   Dark Version ON  → PHP adds `global-color-scheme-light` to <body>
                    → WoodMart's [class*="color-scheme-light"] rule fires
                    → --bgcolor-white: #0f0f0f  (dark background)

   Dark Version OFF → PHP adds `global-color-scheme-dark` to <body>
                    → WoodMart's .color-scheme-dark rule fires
                    → --bgcolor-white: #FFF  (light background)

   WoodMart's naming is intentionally inverted: "color-scheme-light"
   refers to the TEXT colour being light (white text on dark bg).

   We match the same attribute selector WoodMart uses, at the same
   specificity (0,1,0). Because our stylesheet loads later (priority 25
   vs WoodMart's 20) source-order wins — no !important needed.
   Light mode is unaffected; --bgcolor-white stays #FFF there.
   ─────────────────────────────────────────────────────────────
   ================================================================ */

[class*="color-scheme-light"] {
  --bgcolor-white: #121420;
}


/* ================================================================
   19. CLAMPED-TITLE TOOLTIP
   Floating div (#evov-title-tooltip) injected by pjax-nav.js.
   Shown only when scrollHeight > clientHeight confirms the title
   is actually truncated by -webkit-line-clamp.
   ================================================================ */

/* The look is set by tokens: a site can set them on :root (OTLT, see
   inc/class-evov-tooltip.php) and a trigger on itself (pjax-nav.js copies a
   trigger's --evov-tt-* onto this element when it shows it). */
#evov-title-tooltip {
  position:                absolute;
  z-index:                 9999;
  max-width:               min(var(--evov-tt-w, 240px), calc(100vw - 16px));
  padding:                 var(--evov-tt-pad, 8px 12px);
  border-radius:           var(--evov-tt-radius, var(--wd-brd-radius, 6px));
  background:              var(--evov-tt-bg, transparent);
  border:                  1px solid var(--evov-tt-border, var(--evov-card-border-hover, rgba(255, 255, 255, 0.16)));
  backdrop-filter:         blur(var(--evov-tt-blur, var(--evov-platform-label-blur)));
  -webkit-backdrop-filter: blur(var(--evov-tt-blur, var(--evov-platform-label-blur)));
  color:                   var(--evov-tt-color, rgba(255, 255, 255, 0.90));
  font-size:               var(--evov-tt-fs, 0.8rem);
  text-align:              var(--evov-tt-align, left);
  line-height:             1.45;
  word-break:              break-word;
  pointer-events:          none;
  opacity:                 0;
  visibility:              hidden;
  transition:              opacity 0.15s ease, visibility 0.15s;
  box-shadow:              var(--evov-tt-shadow, 0 6px 24px rgba(0, 0, 0, 0.55));
}

#evov-title-tooltip > :last-child {
  margin-bottom: 0;
}

#evov-title-tooltip.evov-tt-visible {
  opacity:    1;
  visibility: visible;
}


/* ================================================================
   20. DLC BADGE — outlined pill prepended to the product title

   Injected via the_title filter in content-product-buttons-on-hover.php
   only when the product's pa_content attribute is "DLC".
   Sits inline before the title text inside the <a> that WoodMart
   wraps around the title.

   line-height: 1.4 is explicit because the parent h3 uses
   line-height: 0 (section-6 strut collapse) — without it the badge
   collapses to zero height.
   ================================================================ */

/* Product loop + search dropdown share the same rule — both render
   the title inside .wd-entities-title. */
.wd-product.wd-hover-buttons-on-hover .wd-entities-title .evov-dlc-badge,
.wd-search-suggestions .wd-entities-title .evov-dlc-badge {
  display:        inline-block;
  vertical-align: middle;
  margin-right:   5px;
  padding:        1px 5px;
  border:         1.5px solid var(--wd-primary-color);
  border-radius:  var(--wd-brd-radius);
  font-size:      0.6em;
  font-weight:    700;
  letter-spacing: 0.08em;
  line-height:    1.4;
  opacity:        0.75;
  white-space:    nowrap;
}


/* ================================================================
   21. OUT-OF-STOCK — freeze all hover animations

   WooCommerce adds 'outofstock' to the same <li class="wd-product
   wd-hover-buttons-on-hover"> element, so we can override every
   animation by scoping to that extra class.

   Four things to neutralise:
     a) Card lift (translateY -10px) on .wd-product-wrapper
     b) Content push-up (translateY −trans_h) on .product-element-bottom
     c) Thumb clip-path shrink on .wd-product-thumb
     d) CTA footer reveal (opacity/visibility) on .wd-product-footer
     e) Platform label slide-up on .evov-platform-label
     f) Our custom glow/border-highlight on .wd-product-wrapper

   Specificity notes:
   • WoodMart's push-up rule is:
       .wd-product.wd-hover-buttons-on-hover:not(...):is(:hover,...) .product-element-bottom  ≈ (0,4,0)
     Adding html prefix (0,0,1) + .outofstock (0,1,0) gives (0,5,1) — always wins.
   • The card-lift and our glow are inside @media (min-width:1025px);
     same media block is used here so they apply on the same breakpoint.
   ================================================================ */

/* Dim the entire card; hovering lifts it part of the way, still short of an
   in-stock card. The transition list repeats §3's so the lift/glow timings
   are kept. */
.wd-product.wd-hover-buttons-on-hover.outofstock .wd-product-wrapper {
  opacity: 0.5;
  transition:
    transform  0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    opacity    0.25s ease;
}

.wd-product.wd-hover-buttons-on-hover.outofstock:hover .wd-product-wrapper {
  opacity: 0.75;
}

/* a + f) Card lift + custom glow (desktop) */
@media (min-width: 1025px) {
  .wd-product.wd-hover-buttons-on-hover.outofstock .wd-product-wrapper:hover {
    transform:  none;
    box-shadow: none;
  }
}

/* b) Content push-up */
html .wd-product.wd-hover-buttons-on-hover.outofstock:not(:is(.quick-shop-shown,.wd-loading)):is(:hover,.wd-variation-active) :is(.product-element-bottom,.wd-product-grid-slider-pagin) {
  transform: none;
}

/* c) Thumb clip-path — reset to fully-visible state */
html .wd-product.wd-hover-buttons-on-hover.outofstock:not(:is(.quick-shop-shown,.wd-loading)):is(:hover,.wd-variation-active) .wd-product-thumb {
  clip-path: inset(0 0 0 0 round var(--wd-thumb-brd-radius, var(--wd-brd-radius, 0)));
}

/* d) CTA footer — keep hidden */
html .wd-product.wd-hover-buttons-on-hover.outofstock:not(:is(.quick-shop-shown,.wd-loading)):is(:hover,.wd-variation-active) .wd-product-footer {
  opacity:    0;
  visibility: hidden;
}

/* e) Platform label — now a child of .product-element-bottom, so it is
   frozen automatically by rule (b)'s transform:none above. No separate
   rule needed. */


/* ================================================================
   22. SKELETON LOADING — price
   ================================================================ */

/* Applied to .woocommerce-Price-amount (inline <bdi>/<span> inside .price).
   display:inline-block is required so height/overflow/position work on the inline element.
   height:1em inherits the computed font-size from the parent .price, which WoodMart's
   generated theme-settings CSS sets (e.g. html .wd-product .price { font-size:22px }).
   Targeting the child rather than .price itself prevents any interference with
   WoodMart's layout checks during shopPageInit / wdShopPageInit. */
.evov-skel-price {
  display:          inline-block;
  position:         relative;
  overflow:         hidden;
  height:           1em;
  color:            transparent !important;
  background-color: var(--evov-skel-bg, rgba(255, 255, 255, 0.06));
  border-radius:    var(--wd-brd-radius, 4px);
  pointer-events:   none;
}

.evov-skel-price > * {
  visibility: hidden;
}

/* Sweep band — shares the keyframe defined in transitions.css */
.evov-skel-price::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  );
  animation: evovSkeletonShimmer 1.4s ease-in-out infinite;
}

/* The same mask on any price in a card under the skeleton, class or not:
   the currency plugin rewrites the prices of cached pages after load, and
   its new price markup came without the class, so a skeleton card (the
   wishlist template's stand-ins) showed real prices until the list came. */
.wd-product:has(.evov-skel-thumb) .price .woocommerce-Price-amount {
  display:          inline-block;
  position:         relative;
  overflow:         hidden;
  height:           1em;
  color:            transparent !important;
  background-color: var(--evov-skel-bg, rgba(255, 255, 255, 0.06));
  border-radius:    var(--wd-brd-radius, 4px);
  pointer-events:   none;
  transition:       none !important;
}

.wd-product:has(.evov-skel-thumb) .price .woocommerce-Price-amount > * {
  visibility: hidden !important;
  transition: none !important;
}

.wd-product:has(.evov-skel-thumb) .price .woocommerce-Price-amount::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  );
  animation: evovSkeletonShimmer 1.4s ease-in-out infinite;
}

.wd-product:has(.evov-skel-thumb) :is(.evov-discount-pct, .wd-add-btn) {
  opacity:        0 !important;
  pointer-events: none;
}

/* Fade the price back in when the class is removed */
.woocommerce-Price-amount {
  transition: color 0.2s ease;
}


/* ── Title ───────────────────────────────────────────────────────── */

/* Applied to <h3 class="wd-entities-title"> by JS on page entry.
   Block element — no display override needed. Text stays in the DOM
   at transparent so the natural 2-line height is preserved. */
/* Two independent line shimmers: each pseudo-element is fully self-contained —
   its own coloured band + its own background-position sweep.
   font-size (14px) = block height; line-height (19.6px) = line 2 top offset. */
/* Hide-only skeleton elements: no shimmer box, just removed from view while the
   card loads (the custom discount-% badge and the add-to-cart button — the
   latter is permanently visible in the mobile-card layout and would otherwise
   leak through the skeleton). opacity:0 (not visibility:hidden) so it can't be
   overridden by an element that forces its own visibility:visible. */
.evov-skel-hide {
  opacity:        0 !important;
  pointer-events: none;
}

.evov-skel-title {
  --skel-title-fs: 1em;   /* the title's own size: evov 14px, the outlet 12px */
  --skel-title-lh: 1.4em; /* its line height (1.4 on both: 19.6px, 16.8px) */
  position:         relative;
  min-height:       calc(var(--skel-title-lh) + var(--skel-title-fs));
  color:            transparent !important;
  pointer-events:   none;
  /* The line-clamp "..." is painted in this element's own color, so the
     0.2s color fade below kept it visible as the mask went on. Hide at once;
     the fade back in still runs when the class comes off. */
  transition:       none !important;
}

.evov-skel-title > * {
  visibility: hidden;
}

/* Hide skeleton-covered content at once. WoodMart gives title links and
   thumbnails `transition: all .25s`, and visibility animates: hiding them
   waited out the transition, so on filter / clear-filters loads the real
   title showed through the mask for ~0.4s. No transition while masked; the
   fade back in still runs when the skeleton class comes off. */
.evov-skel-title > *,
.evov-skel-title > * *,
.evov-skel-price > *,
.evov-skel-region > *,
.evov-skel-labels > *,
.evov-skel-thumb > *,
.evov-skel-platform > *,
.evov-skel-platform img {
  transition: none !important;
}

/* Shared shimmer gradient — bright band travels left-to-right */
.evov-skel-title::before,
.evov-skel-title::after {
  content:         '';
  position:        absolute;
  left:            0;
  height:          var(--skel-title-fs);
  border-radius:   var(--wd-brd-radius, 4px);
  background:      linear-gradient(
    90deg,
    var(--evov-skel-bg, rgba(255, 255, 255, 0.06))  0%,
    var(--evov-skel-bg, rgba(255, 255, 255, 0.06))  30%,
    var(--evov-skel-line-hi, rgba(255, 255, 255, 0.22)) 50%,
    var(--evov-skel-bg, rgba(255, 255, 255, 0.06))  70%,
    var(--evov-skel-bg, rgba(255, 255, 255, 0.06))  100%
  );
  background-size: 400% 100%;
  animation:       evovLineShimmer 1.4s ease-in-out infinite;
}

/* Line 1 — full width */
.evov-skel-title::before {
  top:   0;
  right: 0;
}

/* Line 2 — 90% wide, offset by one line-height */
.evov-skel-title::after {
  top:   var(--skel-title-lh);
  width: 90%;
}

/* Fade back in when the class is removed */
.wd-entities-title {
  transition: color 0.2s ease;
}


/* ── Region badge ─────────────────────────────────────────────────── */

/* Applied to <div class="evov-region-badge">. The inline <span> with its
   color/font-size styles is hidden via visibility so the badge height holds. */
/* 14px pill + 7px top / 6px bottom margin = 27px total, matching the live
   badge (27px, no margin; measured 2026-10-09). At 29px the cards were 2px
   taller while loading and shrank when the real badge arrived.
   Selector specificity (0,4,0) beats the base .evov-region-badge rule (0,3,0)
   so the skeleton margin wins the cascade. */
.wd-product.wd-hover-buttons-on-hover .evov-region-badge.evov-skel-region {
  position:         relative;
  overflow:         hidden;
  height:           14px;
  margin:           7px 0 6px;
  background-color: var(--evov-skel-bg, rgba(255, 255, 255, 0.06));
  border-radius:    999px;
  pointer-events:   none;
}

.evov-skel-region > * {
  visibility: hidden;
}

.evov-skel-region::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  );
  animation: evovSkeletonShimmer 1.4s ease-in-out infinite;
}


/* ── Sale / discount label ────────────────────────────────────────── */

/* Applied to <div class="product-labels labels-rounded-sm">.
   Label spans are hidden; the wrapper retains its natural dimensions. */
.evov-skel-labels {
  position:         relative;
  overflow:         hidden;
  background-color: var(--evov-skel-bg, rgba(255, 255, 255, 0.06));
  border-radius:    var(--wd-brd-radius, 4px);
  pointer-events:   none;
}

.evov-skel-labels > * {
  visibility: hidden;
}

.evov-skel-labels::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  );
  animation: evovSkeletonShimmer 1.4s ease-in-out infinite;
}


/* ── Product thumbnail ────────────────────────────────────────────── */

/* Applied to <div class="wd-product-thumb">. Image, buttons, and platform
   label are hidden via visibility — the img is still in the DOM so the
   thumb retains its natural aspect-ratio height without any JS override. */
.evov-skel-thumb {
  position:      relative;
  border-radius:
    var(--wd-thumb-brd-radius, var(--wd-brd-radius, 0))
    var(--wd-thumb-brd-radius, var(--wd-brd-radius, 0))
    0 0;
  pointer-events: none;
}

.evov-skel-thumb > * {
  visibility: hidden;
}

/* Images that set their own visibility (WoodMart's lazy-load fade marks a
   loaded image visible) would show through the hidden link around them:
   hide every descendant, at once. */
.evov-skel-thumb > * * {
  visibility: hidden !important;
  transition: none !important;
}

/* Two specificity problems to beat:
   1. Our own Section 11 sets .wd-product.wd-hover-buttons-on-hover .wd-product-thumb
      { overflow: visible } — higher specificity than .evov-skel-thumb alone.
   2. WoodMart's woo-product-loop.min.css loads AFTER product-loop.css and
      owns .wd-product-thumb::after as a 32×32 centered spinner (visibility:hidden,
      opacity:0, animation:wd-rotate). Same-specificity rules lose to later cascade.
   Solution: four-class selector beats both. */
.wd-product.wd-hover-buttons-on-hover .wd-product-thumb.evov-skel-thumb {
  overflow:         hidden;
  background-color: var(--bgcolor-white);
}

.wd-product.wd-hover-buttons-on-hover .wd-product-thumb.evov-skel-thumb::after {
  content:    '';
  position:   absolute;
  inset:      0;
  width:      auto;
  height:     auto;
  top:        0;
  left:       0;
  display:    block;
  visibility: visible;
  opacity:    1;
  border:     none;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  );
  animation: evovSkeletonShimmer 1.4s ease-in-out infinite;
}


/* ── Wishlist / action button skeleton (top-right .wd-buttons.wd-pos-r-t) ─ */

/* Applied to .wd-buttons.wd-pos-r-t by JS on page entry.
   Specificity (0,5,0) beats the section-9 base rule (0,4,0).
   Targets both <a> and <button> to cover all WoodMart wishlist plugins. */
.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t.evov-skel-wishlist .wd-action-btn > a,
.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t.evov-skel-wishlist .wd-action-btn > button {
  position:         relative;
  overflow:         hidden;
  background-color: var(--evov-skel-bg, rgba(255, 255, 255, 0.06));
  border-color:     rgba(255, 255, 255, 0.04);
  color:            transparent !important;
  pointer-events:   none;
}

.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t.evov-skel-wishlist .wd-action-btn > a > *,
.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t.evov-skel-wishlist .wd-action-btn > button > * {
  visibility: hidden;
}

.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t.evov-skel-wishlist .wd-action-btn > a::after,
.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t.evov-skel-wishlist .wd-action-btn > button::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  );
  animation: evovSkeletonShimmer 1.4s ease-in-out infinite;
}





/* ── Platform label skeleton ────────────────────────────────────────────── */

/* The platform label is absolutely positioned and stacks ABOVE the thumb
   (.product-element-bottom z-index:6), so the skel-thumb grey fill does not
   cover it. JS adds .evov-skel-platform on page entry; hide the whole frosted
   bar (background, blur, icon, text) so it never bleeds over the skeleton.
   Specificity (0,3,0) here vs the base label rule (0,3,0) — this rule is
   later in the file, so it wins the tie when the class is present. */
.wd-product.wd-hover-buttons-on-hover .evov-platform-label.evov-skel-platform {
  visibility: hidden;
}


/* ── Any card type (evov's buttons-on-hover cards, the outlet's flex cards) ──
   The rules above were written for evov's card. These hold for every card
   under the skeleton, so a site with another card design gets the same mask:
   its own parts sized from its own layout, colours from the shared tokens
   (transitions.css; the outlet sets them light in otlt-core). */

/* No hover and no clicks while it is a placeholder: hover panels, lifts and
   buttons never open over the shimmer. */
.wd-product:has(.evov-skel-thumb) {
  pointer-events: none;
}

.wd-product:has(.evov-skel-thumb) :is(.wd-product-card-hover, .wd-buttons, .wd-add-btn, .quantity) {
  transition: none !important;
}

/* Out of the way (no box of their own): the brand chip sits over the foot of
   the image, the expand button over the card. */
.wd-product:has(.evov-skel-thumb) :is(.evov-brand-chip, .evov-fc-more) {
  opacity:        0 !important;
  transition:     none !important;
}

.wd-product .wd-product-wrapper .wd-product-thumb.evov-skel-thumb {
  overflow:         hidden;
  background-color: var(--evov-skel-bg, rgba(255, 255, 255, 0.06));
}

.wd-product .wd-product-wrapper .wd-product-thumb.evov-skel-thumb::after {
  content:       '';
  position:      absolute;
  inset:         0;
  width:         auto;
  height:        auto;
  margin:        0;
  display:       block;
  visibility:    visible;
  opacity:       1;
  border:        0;
  border-radius: 0;
  background:    linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  );
  animation:     evovSkeletonShimmer 1.4s ease-in-out infinite;
}

/* Compare / wishlist: no placeholder, just out of sight until the card is
   back (they are actions, not content). On every card type, evov's too. */
.wd-product .wd-buttons.evov-skel-wishlist {
  opacity:    0 !important;
  transition: none !important;
}

/* SKU line: a pill the width of the code. */
.evov-skel-sku {
  position:         relative;
  overflow:         hidden;
  width:            fit-content;
  max-width:        100%;
  color:            transparent !important;
  background-color: var(--evov-skel-bg, rgba(255, 255, 255, 0.06)) !important;
  border-radius:    var(--wd-brd-radius, 4px);
  pointer-events:   none;
  transition:       none !important;
}

.evov-skel-sku > * {
  visibility: hidden !important;
  transition: none !important;
}

.evov-skel-sku::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  );
  animation:  evovSkeletonShimmer 1.4s ease-in-out infinite;
}


/* ================================================================
   22.5. SKELETON — freeze desktop hover animations

   When skeleton classes are active, WoodMart's hover effects still
   fire (card lift, content push-up, glow). These look broken because
   the card is a shimmer placeholder — no real content to reveal.

   :has(.evov-skel-thumb) detects skeleton state without a JS class.
   Specificity must beat WoodMart's hover rules, which sit at:
     card-lift (0,3,1)  and  push-up (0,5,0).
   Our rules are (0,4,1) and (0,6,1) respectively — both win.

   Scoped to ≥1025px (desktop only) because WoodMart's hover effects
   are wrapped in @media (min-width:1025px).
   ================================================================ */

@media (min-width: 1025px) {
  /* a) Card lift + custom glow */
  .wd-product.wd-hover-buttons-on-hover:has(.evov-skel-thumb) .wd-product-wrapper:hover {
    transform:  none;
    box-shadow: none;
  }

  /* b) Content push-up */
  html .wd-product.wd-hover-buttons-on-hover:has(.evov-skel-thumb):not(:is(.quick-shop-shown, .wd-loading)):is(:hover, .wd-variation-active) :is(.product-element-bottom, .wd-product-grid-slider-pagin) {
    transform: none;
  }
}


/* ================================================================
   23. MOBILE FOUC PREVENTION

   Mirrors section 15b but targets .wd-products inside
   @media (max-width: 767px) so the horizontal card layout is applied
   by CSS before JS has a chance to run — no flash of desktop layout.

   When JS subsequently adds .evov-mobile-card to .wd-products both
   sets of rules are active simultaneously; same values, no conflict.
   For the Elementor forced-desktop toggle, only section 15b fires.
   ================================================================ */

@media (max-width: 767px) {

  /* ── Wrapper — horizontal flex row ───────────────────────────── */
  .wd-products .wd-product.wd-hover-buttons-on-hover .product-wrapper {
    position:       relative;
    display:        flex;
    flex-direction: row;
    align-items:    flex-start;
    gap:            0;
    padding:        15px 8px;
    transform:      none !important;
  }

  /* ── LEFT — 94×130 portrait artwork ──────────────────────────── */
  .wd-products .wd-product.wd-hover-buttons-on-hover .wd-product-thumb {
    flex:      0 0 94px;
    width:     94px;
    margin:    0 10px 0 0;
    clip-path: none !important;
  }

  .wd-products .wd-product.wd-hover-buttons-on-hover .wd-product-thumb .wd-product-img-link,
  .wd-products .wd-product.wd-hover-buttons-on-hover .wd-product-thumb img {
    display:       block;
    width:         94px;
    height:        130px;
    aspect-ratio:  auto;
    object-fit:    cover;
    border-radius: 8px !important;
  }

  /* ── RIGHT — 2-column info grid ──────────────────────────────── */
  .wd-products .wd-product.wd-hover-buttons-on-hover .product-element-bottom {
    position:              static !important;
    z-index:               auto !important;
    flex:                  1 1 auto;
    min-width:             0;
    margin:                0 !important;
    padding:               0 !important;
    transform:             none !important;
    display:               grid;
    grid-template-columns: 1fr auto;
    align-items:           center;
    column-gap:            10px;
    row-gap:               6px;
  }

  .wd-products .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .wd-product-header,
  .wd-products .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .wd-entities-title,
  .wd-products .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .evov-region-badge,
  .wd-products .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .evov-platform-label {
    grid-column: 1 / -1;
  }

  .wd-products .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .wrap-price {
    grid-column: 1;
    margin:      0;
  }

  .wd-products .wd-product.wd-hover-buttons-on-hover .wd-product-footer {
    grid-column:  2;
    margin:       0 !important;
    justify-self: end;
    align-items:  center;
    opacity:      1 !important;
    visibility:   visible !important;
  }

  /* ── Icon-only add-to-cart pill (55×35) ──────────────────────── */
  .wd-products .wd-product.wd-hover-buttons-on-hover .wd-product-footer .wd-add-btn-replace > a {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           55px;
    min-width:       55px;
    height:          35px;
    min-height:      35px;
    line-height:     35px;
    padding:         0;
  }
  .wd-products .wd-product.wd-hover-buttons-on-hover .wd-product-footer .wd-add-btn-replace > a .wd-action-text {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           100%;
    padding:         0;
    line-height:     1;
    font-size:       0;
  }
  .wd-products .wd-product.wd-hover-buttons-on-hover .wd-product-footer .wd-add-btn-replace > a .evov-cart-glyph {
    display:     block;
    font-size:   22px;
    line-height: 1;
  }

  /* ── Title clearance for wishlist button ─────────────────────── */
  .wd-products .wd-product.wd-hover-buttons-on-hover .product-element-bottom > .wd-product-header {
    padding-right: 48px;
  }

  /* ── Discount percentage ──────────────────────────────────────── */
  .wd-products .wd-product.wd-hover-buttons-on-hover .wrap-price {
    flex-direction: column;
    align-items:    flex-start;
    gap:            2px;
  }

  .wd-products .wd-product.wd-hover-buttons-on-hover .evov-discount-pct {
    display:        block;
    font-size:      0.72rem;
    font-weight:    700;
    letter-spacing: 0.04em;
    color:          var(--wd-primary-color, #ff0f7b);
  }

  /* ── Platform label ───────────────────────────────────────────── */
  .wd-products .wd-product.wd-hover-buttons-on-hover .evov-platform-label {
    position:        absolute;
    left:            8px;
    right:           auto;
    width:           94px;
    top:             calc(15px + 130px - var(--evov-platform-label-h));
    bottom:          auto;
    z-index:         6;
    justify-content: center;
    gap:             4px;
    height:          var(--evov-platform-label-h);
    margin:          0;
    padding:         0 4px;
    border-radius:   0 0 8px 8px;
  }

  .wd-products .wd-product.wd-hover-buttons-on-hover .evov-platform-name {
    max-width: 10ch;
  }

  /* ── Skeleton overrides ───────────────────────────────────────── */
  .wd-products .wd-product.wd-hover-buttons-on-hover .wd-product-thumb.evov-skel-thumb {
    border-radius: 8px !important;
  }

  .wd-products .wd-product.wd-hover-buttons-on-hover .evov-region-badge.evov-skel-region {
    width:        fit-content;
    max-width:    80px;
    justify-self: start;
  }

}


/* ================================================================
   24. CAROUSEL → GRID ON SMALL VIEWPORTS

   Elementor "[evov] Mobile Style" exposes a per-breakpoint switcher on
   carousel-mode product widgets (functions.php →
   evov_sub_elementor_mobile_style_section, control evov_grid_on_bp) —
   independent per-tier switches (Desktop/Widescreen/Laptop/Tablet Extra/
   Tablet/Mobile Landscape/Mobile), stamping marker classes
   evov-grid-bp-on / evov-grid-bp-{device}-on on the widget wrapper via
   prefix_class, exactly like the "Use mobile style at this breakpoint"
   control above.

   Unlike that fixed-767/1024 version, tier ranges now come from the site's
   REAL configured Elementor breakpoints (incl. custom ones like Mobile
   Landscape), which aren't expressible as static CSS media queries here —
   so pjax-nav.js (evovSyncCarouselGridBp, mirrors evovSyncMobileCardBp)
   resolves the current device from the real breakpoint widths and toggles
   a single live .evov-grid-active class when it matches. This CSS only
   ever keys off that live class, unconditionally — no media queries needed.

   Swiper is torn down by evovSyncCarouselGridBp() (swiper.destroy() +
   removing wd-initialized) before .evov-grid-active is added, so
   .wd-carousel-wrap is a plain flex row with no inline transform. We turn
   it into a wrapping grid:

     • flex-wrap on .wd-carousel-wrap         → items flow onto multiple rows
     • --wd-col override on .wd-carousel-item  → column count from our control
       (set on the item itself so it beats WoodMart's ancestor !important)
     • --wd-gap override + row-gap            → horizontal + vertical spacing
     • transform: none                        → cancel any leftover slide shift

   Column count comes from the "Grid columns" responsive slider (Elementor-
   native per-breakpoint control, so --evov-grid-cols is already the right
   value for the current device without any JS help). Space between is a
   single non-responsive control, written once as --evov-grid-gap.
   ================================================================ */

.evov-grid-active {
  --evov-grid-cols: 2;
}

.evov-grid-active .wd-carousel {
  --wd-gap: var(--evov-grid-gap, 15px);
}
.evov-grid-active .wd-carousel-wrap {
  flex-wrap: wrap;
  transform: none !important;
  row-gap:   var(--evov-grid-gap, 15px);
  /* Cancel WoodMart's .wd-carousel-dis-mb scroll-strip styling (only ever
     applied ≤1024px, WoodMart's own hardcoded cap — see
     evov_sub_grid_carousel_classes()): the edge-fade mask leaks into the
     grid and overflow-x:auto adds a stray horizontal scrollbar. */
  overflow-x:         visible !important;
  -webkit-mask-image: none !important;
  mask-image:         none !important;
}
.evov-grid-active .wd-carousel-item {
  --wd-col:  var(--evov-grid-cols, 2);
  height:    auto;
  transform: none !important;
}
.evov-grid-active :is(
  .wd-nav-arrows,
  .wd-nav-pagin-wrap,
  .wd-nav-pagination,
  .wd-nav-scroll
) {
  display: none !important;
}


/* ================================================================
   System Requirements container gate

   Apply the .evov-gate-sysreq class (Elementor: Advanced → CSS Classes) to any
   element — e.g. the container holding the System Requirements tabs — to hide
   it unless the product qualifies: Content includes "Full Game" AND "Works on"
   contains a supported platform AND at least one requirement field is filled
   in for those platforms. functions.php adds the .evov-sysreq-available
   body class (PJAX-synced) when both conditions are met; without it the gated
   element is hidden.

   The :not(.elementor-editor-active) guard keeps the element visible inside the
   Elementor editor (whose body never carries the front-end-only availability
   class) so it stays selectable/editable; the gate only applies on the
   front-end / preview.
   ================================================================ */
body:not(.evov-sysreq-available):not(.elementor-editor-active) .evov-gate-sysreq {
  display: none !important;
}


/* ================================================================
   System Requirements platform tabs — JS gating

   pjax-nav.js (evovGateSystemTabs) toggles .evov-tab-gated on the
   nested-Tabs nav button + its content pane for platforms the product
   doesn't support. A class (not inline display) is used so Elementor's
   own inline active/inactive pane display is never clobbered.
   ================================================================ */
.e-n-tab-title.evov-tab-gated,
.e-n-tabs-content > .evov-tab-gated {
  display: none !important;
}


/* ================================================================
   Nested-Tabs PJAX anti-FOUC

   On a PJAX swap to a page that uses the Elementor nested-Tabs widget,
   its stylesheet (widget-nested-tabs-css) may be a destination-only
   file still loading when the container is revealed — so the tabs flash
   squished/unstyled. pjax-nav.js cloaks them at swap time and lifts the
   class in onPageReady (after the CSS has loaded + the widget re-inits).
   visibility (not display) keeps layout so the box is sized correctly
   the moment it reappears — no reflow jump.
   ================================================================ */
.e-n-tabs.evov-pjax-tabs-hidden {
  visibility: hidden !important;
}


/* ================================================================
   Product long description — Read more (collapsible)

   The Evov_Long_Description_Widget splits the content into a visible
   .evov-readmore-head and a collapsed .evov-readmore-tail. While
   collapsed, the head's bottom fades out with a mask (the same
   background-independent technique WoodMart's Collapsible Content
   block uses). JS (pjax-nav.js) animates the tail open/closed.
   ================================================================ */
.evov-readmore-tail {
  max-height: 0;
  overflow:   hidden;
  transition: max-height 0.45s ease;
}

.evov-readmore:not(.evov-open) .evov-readmore-head {
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 48px);
          mask-image: linear-gradient(to top, transparent 0, #000 48px);
}

.evov-readmore-toggle {
  display:        inline-block;
  margin-top:     12px;
  cursor:         pointer;
  font-weight:    600;
  color:          var(--wd-link-color, var(--wd-primary-color, #ff0f7b));
  transition:     color 0.2s ease;
}
.evov-readmore-toggle:hover {
  color: var(--wd-link-color-hover, var(--wd-primary-color, #ff0f7b));
}

/* ── Lines mode (.evov-rm-lines) ─────────────────────────────────
   The full content ships as the head (no tail) and the head itself
   is capped at N × line-height. JS (evovSyncReadmoreLines) measures
   the real line height and sets the exact px cap inline; the rule
   below pre-caps with an em approximation so full content never
   flashes before JS runs. The same mask fade applies while closed. */
.evov-readmore.evov-rm-lines .evov-readmore-head {
  overflow:   hidden;
  transition: max-height 0.45s ease;
}
.evov-readmore.evov-rm-lines:not(.evov-open) .evov-readmore-head {
  max-height: calc(var(--evov-rm-lines, 3) * 1.8em); /* pre-JS approximation */
}

/* Content already fits within the configured lines (JS adds
   .evov-rm-fits): no cap, no fade, no toggle. */
.evov-readmore.evov-rm-lines.evov-rm-fits .evov-readmore-head {
  max-height: none;
}
.evov-readmore.evov-rm-fits .evov-readmore-head {
  -webkit-mask-image: none;
          mask-image: none;
}
.evov-readmore.evov-rm-fits .evov-readmore-actions {
  display: none;
}

/* ── Pixels mode (.evov-rm-px) — like Lines, but the head is capped at a
   fixed max-height (--evov-rm-maxh) set per breakpoint by the widget's
   responsive control. JS (evovSyncReadmore) detects when the content fits and
   adds .evov-rm-fits to drop the cap / fade / toggle. */
.evov-readmore.evov-rm-px .evov-readmore-head {
  overflow:   hidden;
  transition: max-height 0.45s ease;
}
.evov-readmore.evov-rm-px:not(.evov-open) .evov-readmore-head {
  max-height: var(--evov-rm-maxh, 240px);
}
.evov-readmore.evov-rm-px.evov-rm-fits .evov-readmore-head {
  max-height: none;
}


/* ================================================================
   Attributes Grid — title below the term image

   The widget adds `.evov-has-title` to `.wd-brand-item` when the
   "Show title below image" toggle is on and the term has a swatch
   image. WoodMart's brand item is a centered flex row (image only),
   so switch it to a column and drop the term name beneath the image.
   The gap is overridable via the widget's Title → Spacing control.
   ================================================================ */
.wd-brands .wd-brand-item.evov-has-title {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.wd-brands .evov-attr-title {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.2;
}


/* ================================================================
   PJAX — dismiss hover-driven nav menus across a swap

   WoodMart's sticky/categories nav and mega-dropdowns reveal on pure
   CSS :hover (.wd-sticky-nav:is(:hover,.wd-opened) .wd-sticky-nav-
   content, .menu-item:hover .wd-dropdown-menu, …). A PJAX navigation
   isn't a reload, so an open menu lingers under a stationary cursor
   until the mouse leaves. pjax-nav.js adds html.evov-nav-suppress at
   navigation start and releases it on the next pointer interaction
   after the new page is ready; this override force-closes the menus
   while it's on (beats the plain :hover reveals via !important).
   ================================================================ */
/* pointer-events:none takes the sticky nav out of hit-testing, so the browser
   drops :hover and the hover-expanded state (widened bar, labels, flyout)
   collapses on its own — even under a stationary cursor. The icon bar itself
   stays visible (pointer-events doesn't hide it). transition:none makes the
   width collapse INSTANT — the nav has `transition: all .5s`, and an animated
   collapse leaves the wide panel painting over the swap for half a second. */
html.evov-nav-suppress .wd-sticky-nav {
  pointer-events: none !important;
  transition:     none !important;
}
/* Guaranteed hide of the expanded panel + mega flyout, in case a browser keeps
   :hover latched until the next pointer move. transition:none is CRITICAL —
   WoodMart applies a 400ms fade on opacity/visibility, and during that window
   PJAX swaps the content, so the fading dark panel leaves a visible mark over
   the new page. Killing the transition makes the hide instant. */
html.evov-nav-suppress .wd-sticky-nav-content,
html.evov-nav-suppress .wd-sticky-nav .wd-dropdown,
html.evov-nav-suppress .wd-dropdown-menu {
  opacity:        0 !important;
  visibility:     hidden !important;
  pointer-events: none !important;
  transition:     none !important;
}


/* ================================================================
   Container gates (Elementor container IDs)

   Two container IDs the user places in Elementor as wrappers around
   the corresponding fields. Hidden by default; revealed only when
   the matching data exists on the current product:
     • #evov-item-notice     ← body.evov-has-item-notice
                                (Important Note meta non-empty)
     • #evov-selected-value  ← body.evov-has-selected-value
                                (single product with pa_value term)
   PJAX-safe: pjax-nav.js syncs body classes per landing, so the
   gate re-evaluates for every product shown.
   ================================================================ */
#evov-item-notice,
#evov-selected-value {
  display: none !important;
}
body.evov-has-item-notice #evov-item-notice,
body.evov-has-selected-value #evov-selected-value {
  display: revert !important;
}
/* Editor preview: always show so containers are addressable in Elementor. */
body.elementor-editor-active #evov-item-notice,
body.elementor-editor-active #evov-selected-value {
  display: revert !important;
}


/* ================================================================
   WooCommerce Multi-Currency (Curcy) — match our shimmer

   Curcy's own price-converting loading state (.wmc-currency-loading)
   paints a flat, square, semi-opaque white overlay + a spinning GIF
   icon (woocommerce-multi-currency.scss ~L1569-1627). Re-themed here
   to match our skeleton language: translucent rounded box + the
   shared translateX sweep (@keyframes evovSkeletonShimmer,
   transitions.css) instead of the static block + spinner.

   `html` prefix bumps specificity above Curcy's own compound-class
   rules — EXCEPT the non-switcher variant, which Curcy scopes with
   `:not(.wmc-price-switcher)`. A :not() argument counts toward the
   CLASS/specificity tier (not the element tier `html` adds to), so
   that one rule out-specifies the `html` prefix regardless (verified
   live: overflow/border-radius — which Curcy never sets — applied
   from our rule, but background/content lost to Curcy's ::before/
   ::after on the exact same element). `!important` on the properties
   we're actually overriding sidesteps the specificity math entirely.
   ================================================================ */
html .woocommerce-multi-currency.wmc-currency-loading,
html .woocommerce-multi-currency.wmc-currency-loading.wmc-price-switcher .wmc-sub-currency {
  overflow:      hidden;
  border-radius: var(--wd-brd-radius, 4px);
}

html .woocommerce-multi-currency.wmc-currency-loading::before,
html .woocommerce-multi-currency.wmc-currency-loading.wmc-price-switcher .wmc-sub-currency::before {
  background: rgba(255, 255, 255, 0.06) !important;
}

html .woocommerce-multi-currency.wmc-currency-loading::after,
html .woocommerce-multi-currency.wmc-currency-loading.wmc-price-switcher .wmc-sub-currency::after {
  content:    '' !important;
  inset:      0 !important;
  left:       0 !important;
  top:        0 !important;
  transform:  none !important;
  margin:     0 !important;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  ) !important;
  animation: evovSkeletonShimmer 1.4s ease-in-out infinite !important;
}


/* ── Curcy cache-compatibility price mask (the one over product prices) ──
   Separate mechanism from the switcher above. On CACHED (guest) pages Curcy
   renders each price as <span class="wmc-cache-pid wmc-cache-loading"> and, via
   frontend/cache.php + woocommerce-multi-currency.scss ~L1905, paints
   .woocommerce-Price-amount.amount::before as a flat opaque #f0f0f0 block with a
   sliding #fefefe blur bar (::after, waiting_bar_effect) — the square white
   shimmer over prices on page load / filter / pagination. Re-skinned to our
   skeleton: translucent rounded box + the shared evovSkeletonShimmer sweep, with
   the underlying pre-conversion price hidden (visibility on the value children,
   matching .evov-skel-price). Verified live against a synthetic .wmc-cache-loading
   element — this only renders for guests, so it won't appear while logged in. */
/* 2026-10-10: now an exact copy of the skeleton price pill (.evov-skel-price):
   same 1em pill on the baseline, same fill and sweep, so the price looks the
   same while Curcy loads as it does in the card skeleton, and nothing moves
   when the real price lands (measured: identical box to the live price and
   to the skeleton, card height unchanged). Curcy's own ::before block is
   switched off rather than re-coloured. */
:is(html:not(.evov-wmc-gate), html.evov-wmc-pending) .wmc-cache-loading .woocommerce-Price-amount.amount {
  display:          inline-block;
  position:         relative;
  overflow:         hidden;
  height:           1em;
  line-height:      inherit;
  vertical-align:   baseline;
  color:            transparent !important;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius:    var(--wd-brd-radius, 4px);
  pointer-events:   none;
}
:is(html:not(.evov-wmc-gate), html.evov-wmc-pending) .wmc-cache-loading .woocommerce-Price-amount.amount > * {
  visibility: hidden !important;
}
:is(html:not(.evov-wmc-gate), html.evov-wmc-pending) .wmc-cache-loading .woocommerce-Price-amount.amount::before {
  content: none !important;
  display: none !important;
}
:is(html:not(.evov-wmc-gate), html.evov-wmc-pending) .wmc-cache-loading .woocommerce-Price-amount.amount::after {
  content:    '' !important;
  position:   absolute !important;
  inset:      0 !important;
  width:      auto !important;
  height:     auto !important;
  margin:     0 !important;
  filter:     none !important;
  opacity:    1 !important;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  ) !important;
  animation: evovSkeletonShimmer 1.4s ease-in-out infinite !important;
}
/* Smart mask (functions.php, #evov-wmc-mask): the inline gate marks <html>
   with .evov-wmc-gate, plus .evov-wmc-pending only when the visitor's currency
   differs from the one this page was rendered in. Otherwise the cached price
   is already right: show it, and switch Curcy's own block and bar off too. */
html.evov-wmc-gate:not(.evov-wmc-pending) .wmc-cache-loading .woocommerce-Price-amount.amount::before,
html.evov-wmc-gate:not(.evov-wmc-pending) .wmc-cache-loading .woocommerce-Price-amount.amount::after {
  content: none !important;
  display: none !important;
}


/* ─────────────────────────────────────────────────────────────────────────
   §26  Layered-nav filter widgets
   ───────────────────────────────────────────────────────────────────── */

/* Genres: render as a plain checkbox list, no swatches.
   Only 1 of its 28 terms has a swatch image, so the swatch column was empty
   for 27 rows and held a lone tile on the 28th. Every term already outputs
   its own .wd-filter-lable alongside the swatch, so hiding the tile falls
   back to the text label with nothing lost.

   Scoped with :has() on the term URL rather than the widget's instance id
   (woodmart-woocommerce-layered-nav-14) — that id changes if the widgets are
   reordered in the admin, which would silently drop this rule. */
.wd-swatches-filter:has(a[href*="filter_genres="]) .wd-swatch {
  display: none !important;
}

/* WoodMart puts a 10px left margin on the label purely to clear the swatch.
   With the swatch hidden that margin is orphaned and indents the one former
   swatch term ~10px past its siblings. */
.wd-swatches-filter:has(a[href*="filter_genres="]) .wd-filter-lable {
  margin-left: 0 !important;
}

/* Soften the filter checkboxes site-wide. The checkbox is a 14x14 ::before on
   the term link, square by default. */
.wd-filter-list .layered-nav-link::before {
  border-radius: 5px !important;
}


/* ─────────────────────────────────────────────────────────────────────────
   §27  Sticky-nav menu icon — chevron + lines
   ───────────────────────────────────────────────────────────────────── */

/* Replaces WoodMart's hamburger on BOTH sticky-nav triggers:
     • .wd-sticky-nav-title      — the round button atop the sticky sidebar
     • .wd-header-sticky-nav     — the glyph inside the header "Categories" pill
   and on the mobile / tablet menu openers (.wd-header-mobile-nav: the header
   menu icon and the bottom toolbar's "Menu").

   Chevron points RIGHT when the nav is closed and LEFT when it is expanded
   (mobile: while the left-hand menu panel, .mobile-nav, is open).

   Drawn as an SVG mask over `background-color: currentColor` rather than a
   font glyph or a coloured SVG, so WoodMart's own colour settings and hover
   states keep working untouched — white on the pink circle, pink on the dark
   header circle, with no per-instance overrides here.

   Sized in `em`, which resolves against the font-size WoodMart already sets on
   this pseudo (`var(--wd-tools-icon-base-width)`), so the theme's icon-size
   option still drives it; the +2px is an offset on top, not a replacement.
   The circles have fixed dimensions, so the glyph cannot grow them
   (verified: 43x44 and 36x36 unchanged, pill 154x40 unchanged).

   The middle line is deliberately shorter and pulled back on the chevron side
   so the chevron nests into the gap instead of sitting beside a flat stack:
     top / bottom  x 10.5 -> 20.5   (10 units)
     middle        x 14.5 -> 20.5   ( 6 units)
     chevron       3.5 -> 8 -> 3.5, apex at x 8

   Every x is shifted 0.5 left of the "obvious" whole numbers on purpose. Round
   caps extend the ink by half the stroke width (1.1) past each endpoint, and
   the chevron has a cap on its left while the lines have one on their right —
   so with whole-number coordinates the ink centre lands at x 12.45 rather than
   12, and the glyph reads visibly off-centre in its circle. Measured by
   rasterising the mask and taking the alpha bounding box; the shift brings it
   to 11.95, matching the vertical axis. */
.wd-sticky-nav-title::before,
.wd-header-sticky-nav .wd-tools-icon::before,
.wd-header-mobile-nav .wd-tools-icon::before {
  content:          '' !important;
  font-family:      inherit !important;   /* drop the woodmart-font glyph */
  display:          block;
  flex:             0 0 auto;
  width:            calc(1em + 2px);
  height:           calc(1em + 2px);
  background-color: currentColor;
  -webkit-mask:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 6h10M14.5 12h6M10.5 18h10'/%3E%3Cpath d='M3.5 7.5l4.5 4.5-4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:             url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 6h10M14.5 12h6M10.5 18h10'/%3E%3Cpath d='M3.5 7.5l4.5 4.5-4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat;

  /* scaleX, NOT rotate. A chevron on its own is symmetric about the vertical
     axis, so rotate(180deg) reads as a flip — that is why the region dropdown
     arrow can use it. This glyph is not symmetric, so the same rotate visibly
     swings the whole composition around. scaleX(-1) mirrors instead:
       rotate  -> matrix(-1, 0, 0, -1, 0, 0)   both axes negated, spins
       scaleX  -> matrix(-1, 0, 0,  1, 0, 0)   flips left<->right

     Do NOT reach for rotateY + backface-visibility here. A Y-flip turns the
     element onto its back face, which backface-visibility:hidden then hides
     outright — the open-state icon disappears completely. */
  transform:        scaleX(1);
  transform-origin: 50% 50%;
  transition:       transform 0.05s ease;
}

/* Expanded state. `:is(:hover, .wd-opened)` is WoodMart's OWN condition for
   widening the nav (style.css: `.wd-sticky-nav:is(:hover, .wd-opened) { width:
   275px }`), reused verbatim so the glyph can never disagree with the nav.
   Both are real triggers with different behaviour: hovering anywhere on the
   sticky nav expands it with no class at all, while clicking the pill adds
   .wd-opened. Keying on .wd-opened alone leaves the chevron pointing the wrong
   way for the entire hover case. */
.wd-sticky-nav:is(:hover, .wd-opened) .wd-sticky-nav-title::before,
body:has(.wd-sticky-nav:is(:hover, .wd-opened)) .wd-header-sticky-nav .wd-tools-icon::before,
body:has(.mobile-nav.wd-opened) .wd-header-mobile-nav .wd-tools-icon::before {
  transform: scaleX(-1);
}

/* Loop "Add to cart" buttons have no href (functions.php, so the browser
   shows no URL on hover): keep the pointer a browser gives links. */
.add_to_cart_button[data-evov-href] {
  cursor: pointer;
}


/* ── Linked-variation value cards: price in the visitor's currency ────────
   The cards are printed in the store currency; pjax-nav.js rewrites each
   card's price and rate from Curcy's after-load answer (marking them
   .is-local), and the edition cards' extra-cost tag from those. Until then, while the visitor's currency differs from the
   page's (html.evov-wmc-pending, functions.php), they're masked like the
   other prices. */
html.evov-wmc-pending .evov-value-card :is(.evov-value-price, .evov-value-rate, .evov-value-delta):not(.is-local) {
  color:            transparent !important;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius:    var(--wd-brd-radius, 4px);
}

/* Single product and product loop prices (2026-10-13): the currency symbol and the decimals are
   set small and raised to the top of the digits ("$190.39" with "$" and ".39"
   as superscripts). wc_price markup gets .evov-pi / .evov-pd spans from
   functions.php, including in Curcy's AJAX prices. The digits keep the
   widget's own size. Raised with position:relative so the line box is
   untouched: the price is exactly as tall as before. The struck-out regular
   price (del) is left as it was. Only with the body class evov-raised-price
   (evov_feature('raised-price'), off for OTLT); :where() adds no weight. */
:where(.evov-raised-price) :is(.wd-single-price, .wd-product) .price > .woocommerce-Price-amount :is(.evov-pd, .woocommerce-Price-currencySymbol),
:where(.evov-raised-price) :is(.wd-single-price, .wd-product) .price :not(del) > .woocommerce-Price-amount :is(.evov-pd, .woocommerce-Price-currencySymbol) {
  position:       relative;
  top:            -0.72em;
  font-size:      0.5em;
  line-height:    1;
  vertical-align: baseline;
}
:where(.evov-raised-price) :is(.wd-single-price, .wd-product) .price > .woocommerce-Price-amount .woocommerce-Price-currencySymbol,
:where(.evov-raised-price) :is(.wd-single-price, .wd-product) .price :not(del) > .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
  margin-right: 0.08em;
}
:where(.evov-raised-price) :is(.wd-single-price, .wd-product) .price > .woocommerce-Price-amount .evov-pd,
:where(.evov-raised-price) :is(.wd-single-price, .wd-product) .price :not(del) > .woocommerce-Price-amount .evov-pd {
  margin-left: 0.04em;
}
/* Curcy's loading pill on the single price, centred on the line: on the
   baseline it made the line 2px taller than the final price, so the price
   box and "Price not final." moved when the price landed. Measured identical
   (desktop and mobile) with middle. */
:is(html:not(.evov-wmc-gate), html.evov-wmc-pending) .wd-single-price .price .wmc-cache-loading .woocommerce-Price-amount.amount {
  vertical-align: middle;
}


/* Live stock (inc/class-evov-live-stock.php): a widget whose "Hide when out
   of stock" / "Hide when in stock" toggle matches the product's stock. On the
   Elementor wrapper, so the container gap closes up too. */
.evov-stock-hidden {
  display: none !important;
}

/* Text with tooltip widget (inc/class-evov-info-text-widget.php). The "?" is
   the cart items' tooltip icon (fkcart-mini-cart.css), and the tooltip itself
   is the shared #evov-title-tooltip (pjax-nav.js). */
.evov-info-text {
  margin: 0;
}
.evov-info-text-tip {
  --evov-tip-size:     14px;
  display:             inline-flex;
  align-items:         center;
  justify-content:     center;
  width:               var(--evov-tip-size);
  height:              var(--evov-tip-size);
  margin-inline-start: 6px;
  border-radius:       50%;
  border:              1px solid currentColor;
  font-size:           calc(var(--evov-tip-size) * 0.72);
  font-weight:         600;
  line-height:         1;
  vertical-align:      middle;
  cursor:              help;
  user-select:         none;
}
.evov-info-text-tip:focus-visible {
  outline:        2px solid currentColor;
  outline-offset: 2px;
}

/* Pre-order notice: the theme's widget and WCSB's [wcsb_preorder_notice]
   (WCSB_Preorders::notice_html()). Upcoming releases only. Layout only:
   colours, type, padding and corners come from the widget's Style tab. */
.evov-preorder-notice {
  --evov-pon-icon-size: 24px;
  display:     flex;
  align-items: center;
  gap:         12px;
  color:       var(--evov-pon-color, inherit);
  background:  var(--evov-pon-bg, none);
}
.evov-preorder-notice__icon {
  display:     inline-flex;
  flex:        0 0 auto;
  color:       var(--evov-pon-icon, currentColor);
  font-size:   var(--evov-pon-icon-size);
  line-height: 1;
}
.evov-preorder-notice__icon svg {
  width:  var(--evov-pon-icon-size);
  height: var(--evov-pon-icon-size);
}
.evov-preorder-notice__icon svg:not([fill="none"]) {
  fill: currentColor;
}
.evov-preorder-notice__text {
  margin: 0;
  color:  inherit;
}
.evov-preorder-notice__hl {
  color: var(--evov-pon-hl, inherit);
}

/* Content type pills above the product title (layout 797, Additional info
   table widget 678afae showing pa_content). One pill per term instead of a
   comma list: the first term (the primary one) keeps the orange, the others
   are dark. The orange box Elementor draws round the whole widget moves onto
   the first pill. */
.single-product .elementor-element-678afae > .elementor-widget-container {
  padding:          0 !important;
  border-radius:    0 !important;
  background-color: transparent !important;
}
.single-product .elementor-element-678afae .shop_attributes td {
  display:   flex;
  flex-wrap: wrap;
  gap:       6px;
}
.single-product .elementor-element-678afae .wd-term {
  display:          inline-block;
  padding:          1px 8px 3px;
  border-radius:    15px;
  background-color: #121420;
}
.single-product .elementor-element-678afae .wd-term:first-child {
  background-color: #fa783e;
}
.single-product .elementor-element-678afae .wd-term-sep {
  display: none;
}

/* ── Out of stock: a sad face and "Sold Out" in place of the price ─────────
   functions.php evov_sold_out_price(); every product card, Flex Search's
   instant results included. Sized to the price line. */
.wd-product .wrap-price .evov-soldout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 25px;
}

.wd-product .wrap-price .evov-soldout svg {
  display: block;
  width: auto;
  height: 20px;
  overflow: visible;
}

/* Loading mask: pjax-nav.js gives it .evov-skel-price with the prices. That
   rule's inline-block/1em height would shrink the slot, so keep its own box. */
.wd-product .wrap-price .evov-soldout.evov-skel-price {
  display: inline-flex;
  height:  25px;
}

.wd-product .wrap-price .evov-soldout-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

/* No price, so no discount either. */
.wd-product.outofstock .wrap-price .evov-discount-pct {
  display: none;
}

/* No button on an out-of-stock card. Desktop already keeps it hidden on
   hover (section 21; removing it there shrinks the card WoodMart sizes
   around it, cutting off the price row); the mobile cards show their
   button permanently, so it goes there. */
.evov-mobile-card .wd-product.outofstock .wd-product-footer .wd-add-btn {
  display: none !important;
}


/* ================================================================
   SORT BY WIDGET (shop sidebar) — radio list, mobile only

   WoodMart renders the options as plain links (a.selected-order marks
   the current one), so the radio is drawn with pseudo-elements: ::before
   is the ring, ::after the fill. Matches the checkout payment-method
   radios (checkout-mini-cart-layout.css). Desktop has the toolbar
   dropdown, so the widget only shows in the off-canvas filters (≤1024px).
   ================================================================ */
@media (min-width: 1025px) {
  .woodmart-woocommerce-sort-by {
    display: none !important;
  }
}

.woodmart-woocommerce-sort-by .woocommerce-ordering-list ul {
  list-style: none;
  margin:     0;
  padding:    0;
}

.woodmart-woocommerce-sort-by .woocommerce-ordering-list li {
  margin: 0 0 5px;
}

.woodmart-woocommerce-sort-by .woocommerce-ordering-list li:last-child {
  margin-bottom: 0;
}

html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a {
  position:        relative;
  display:         flex;
  align-items:     center;
  gap:             8px;
  padding:         5px 0;
  font-size:       13px;
  font-weight:     400;
  color:           rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border:          0;
  transition:      color 0.15s ease;
}

html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a::before {
  content:       '';
  flex:          0 0 16px;
  box-sizing:    border-box;
  width:         16px;
  height:        16px;
  border:        2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition:    border-color 0.15s ease;
}

/* Declared on every option so the fill can scale in when chosen. */
html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a::after {
  content:       '';
  position:      absolute;
  left:          4px;
  top:           50%;
  width:         8px;
  height:        8px;
  margin-top:    -4px;
  border-radius: 50%;
  background:    var(--wd-primary-color, #ff0f7b);
  transform:     scale(0);
  opacity:       0;
  transition:    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a:hover {
  color: #fff;
}

html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a:hover::before {
  border-color: rgba(255, 255, 255, 0.4);
}

html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a.selected-order {
  color:       var(--wd-primary-color, #ff0f7b);
  font-weight: 400;
}

html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a.selected-order::before {
  border-color: var(--wd-primary-color, #ff0f7b);
}

html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a.selected-order::after {
  transform: scale(1);
  opacity:   1;
}

@media (prefers-reduced-motion: reduce) {
  html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a::after {
    transition: none;
  }
}

/* Loading mask, while a filter or sort loads (pjax-nav.js adds
   .evov-filter-link-skeleton with the filter rows). Both pseudo-elements are
   the radio, so ::before turns into the shimmer band and ::after is hidden;
   the text stays in place, transparent, so the rows keep their height. */
html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a.evov-filter-link-skeleton {
  overflow:         hidden;
  pointer-events:   none;
  color:            transparent !important;
  background-color: var(--evov-skel-surface, #272831);
  border-radius:    var(--wd-form-brd-radius, 4px);
  transition:       none !important;
}

html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a.evov-filter-link-skeleton::after {
  opacity:    0 !important;
  transition: none !important;
}

html .woodmart-woocommerce-sort-by .woocommerce-ordering-list a.evov-filter-link-skeleton::before {
  position:      absolute;
  inset:         0;
  width:         auto;
  height:        auto;
  border:        0;
  border-radius: 0;
  background:    linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.00)  0%,
    var(--evov-skel-sweep, rgba(255, 255, 255, 0.30)) 50%,
    rgba(255, 255, 255, 0.00) 100%
  );
  animation:     evovSkeletonShimmer 1.4s ease-in-out infinite;
  transition:    none !important;
}


/* ================================================================
   OFF-CANVAS FILTERS — close button

   The account panel's round button (.evov-acct__x, account-panel.css)
   instead of WoodMart's "✕ Close" text control. Same markup (WoodMart's
   injected .wd-heading): the word is hidden and the icon-font cross is
   swapped for the account panel's thin 15px cross, drawn with a mask.
   ================================================================ */
:is([class*="wd-col-offcanvas"], .wp-block-wd-off-sidebar) > .wd-heading .close-side-widget > a {
  display:       grid !important;
  place-items:   center;
  width:         32px !important;
  height:        32px !important;
  min-height:    0 !important;
  padding:       0 !important;
  border-radius: 50%;
  background:    rgba(255, 255, 255, 0.04);
  color:         rgba(255, 255, 255, 0.7) !important;
  transition:    background 0.2s ease, color 0.2s ease;
}

:is([class*="wd-col-offcanvas"], .wp-block-wd-off-sidebar) > .wd-heading .close-side-widget > a:is(:hover, :focus-visible) {
  background: rgba(255, 255, 255, 0.1);
  color:      #fff !important;
}

:is([class*="wd-col-offcanvas"], .wp-block-wd-off-sidebar) > .wd-heading .close-side-widget .wd-action-text {
  display: none !important;
}

:is([class*="wd-col-offcanvas"], .wp-block-wd-off-sidebar) > .wd-heading .close-side-widget .wd-action-icon {
  display: block;
  width:   15px;
  height:  15px;
  margin:  0 !important;
}

:is([class*="wd-col-offcanvas"], .wp-block-wd-off-sidebar) > .wd-heading .close-side-widget .wd-action-icon::before {
  content:       '' !important;
  display:       block;
  width:         15px;
  height:        15px;
  background:    currentColor;
  -webkit-mask:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
