/* ==========================================================================
   ECP Filter Bar
   Farmhouse-style expandable panel (desktop) + Fashion Nova Filters/Sort sheet (mobile)
   soft-nav panel stay-open / chip dedupe 2.5.3; readable price pills and compact active-filter controls
   ========================================================================== */

:root {
    --ecp-filter-border:       1px solid var(--ecp-border, #ddd8d0);
    --ecp-filter-panel-bg:     var(--ecp-surface, #faf8f5);
    --ecp-filter-chip-bg:      var(--ecp-cream, #f5f1eb);
    --ecp-filter-chip-radius:  100px;
    --ecp-filter-icon-size:    72px;
    --ecp-filter-swatch-size:  36px;
    --ecp-filter-pill-h:       36px;
    --ecp-drawer-max-h:        85dvh;
    --ecp-transition:          200ms ease;
    --ecp-hover:               var(--ecp-navy, #2a3a52);
}

/* ── GLOBAL OVERRIDES: Kill Elementor's link-hover & button colors on filter bar ── */
.ecp-filter-bar a,
.ecp-filter-bar a:hover,
.ecp-filter-bar a:focus,
.ecp-filter-bar a:active,
.ecp-filter-bar a:visited,
.ecp-filter-bar button,
.ecp-filter-bar button:hover,
.ecp-filter-bar button:focus,
.ecp-filter-bar button:active {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Nuclear override: prevent Elementor kit from painting any background/color on our buttons */
.ecp-filter-bar button:not(.ecp-btn):not(.ecp-filter-show-results),
.ecp-filter-bar button:not(.ecp-btn):not(.ecp-filter-show-results):hover,
.ecp-filter-bar button:not(.ecp-btn):not(.ecp-filter-show-results):focus,
.ecp-filter-bar button:not(.ecp-btn):not(.ecp-filter-show-results):focus-visible,
.ecp-filter-bar button:not(.ecp-btn):not(.ecp-filter-show-results):active,
.ecp-filter-bar button:not(.ecp-btn):not(.ecp-filter-show-results)[aria-expanded="true"],
.elementor-kit-50737 .ecp-filter-bar button:not(.ecp-btn):not(.ecp-filter-show-results),
.elementor-kit-50737 .ecp-filter-bar button:not(.ecp-btn):not(.ecp-filter-show-results):hover,
.elementor-kit-50737 .ecp-filter-bar button:not(.ecp-btn):not(.ecp-filter-show-results):focus,
.elementor-kit-50737 .ecp-filter-bar button:not(.ecp-btn):not(.ecp-filter-show-results):active,
body.elementor-kit-50737 .ecp-sort__btn,
body.elementor-kit-50737 .ecp-filter-toggle {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ecp-text, #2a2118) !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 2px !important;
}
body.elementor-kit-50737 .ecp-sort__btn:hover,
body.elementor-kit-50737 .ecp-sort__btn:focus,
body.elementor-kit-50737 .ecp-sort__btn:active,
body.elementor-kit-50737 .ecp-sort__btn[aria-expanded="true"],
body.elementor-kit-50737 .ecp-filter-toggle:hover,
body.elementor-kit-50737 .ecp-filter-toggle:focus,
body.elementor-kit-50737 .ecp-filter-toggle:active,
body.elementor-kit-50737 .ecp-filter-toggle[aria-expanded="true"] {
    background: rgba(42, 33, 24, 0.07) !important;
    background-color: rgba(42, 33, 24, 0.07) !important;
    color: var(--ecp-text, #2a2118) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
/* Let styled .ecp-btn primary/ghost keep their own colors (beat kit button reset) */
.ecp-filter-bar .ecp-btn.ecp-btn--primary,
.ecp-filter-bar .ecp-btn.ecp-btn--primary:hover,
.ecp-filter-bar .ecp-btn.ecp-btn--primary:focus,
.ecp-filter-bar .ecp-btn.ecp-btn--primary:active,
.elementor-kit-50737 .ecp-filter-bar .ecp-btn.ecp-btn--primary,
.elementor-kit-50737 .ecp-filter-bar .ecp-btn.ecp-btn--primary:hover,
.elementor-kit-50737 .ecp-filter-bar .ecp-btn.ecp-btn--primary:focus,
.elementor-kit-50737 .ecp-filter-bar .ecp-btn.ecp-btn--primary:active,
body.elementor-kit-50737 .ecp-filter-bar .ecp-btn.ecp-btn--primary {
    background: var(--ecp-hover, #2A3A52) !important;
    background-color: var(--ecp-hover, #2A3A52) !important;
    color: #fff !important;
    border: 1px solid var(--ecp-hover, #2A3A52) !important;
}
.ecp-filter-bar .ecp-btn.ecp-btn--primary:hover,
.elementor-kit-50737 .ecp-filter-bar .ecp-btn.ecp-btn--primary:hover,
body.elementor-kit-50737 .ecp-filter-bar .ecp-btn.ecp-btn--primary:hover {
    background: var(--ecp-navy-hover, #1e2c3d) !important;
    background-color: var(--ecp-navy-hover, #1e2c3d) !important;
    border-color: var(--ecp-navy-hover, #1e2c3d) !important;
    color: #fff !important;
}
.ecp-filter-bar .ecp-btn--ghost,
.ecp-filter-bar .ecp-btn--ghost:hover,
.ecp-filter-bar .ecp-btn--ghost:focus,
.ecp-filter-bar .ecp-btn--ghost:active {
    background: none !important;
    background-color: transparent !important;
    color: var(--ecp-text-muted, #7a6f64) !important;
    border-color: var(--ecp-border, #ddd8d0) !important;
}
.ecp-filter-bar .ecp-btn--ghost:hover {
    color: var(--ecp-hover) !important;
    border-color: var(--ecp-hover) !important;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .ecp-filter-bar a:hover,
    .ecp-filter-bar button:hover,
    .ecp-sort__btn:hover,
    .ecp-sort__option:hover,
    .ecp-filter-toggle:hover,
    .ecp-chip:hover,
    .ecp-clear-all:hover,
    .ecp-filter-swatch:hover .ecp-filter-swatch__circle,
    .ecp-filter-swatch--image:hover,
    .ecp-filter-pill:hover,
    .ecp-mobile-pill:hover {
        color: inherit;
        background: inherit;
        border-color: inherit;
        outline-color: inherit;
    }
    /* Type icons: never inherit a cream/kit fill on hover — stroke + opacity only */
    .ecp-filter-icon-item:hover,
    .ecp-filter-icon-item:focus-visible,
    .ecp-filter-icon-item.is-active {
        background: transparent !important;
        background-color: transparent !important;
    }
}

/* ── FILTER BAR WRAPPER ──────────────────────────────────────────────── */
.ecp-filter-bar {
    position: relative;
    /* Top + bottom chrome lines live on __top (desktop) / mobile-pills so they
       share the same inset content width — not full-bleed 100vw bar edges. */
    border-top: none;
    border-bottom: none;
    margin-bottom: 0.75rem; /* was 2rem — tighten empty band under product count */
    font-family: var(--ecp-font-body, 'Lato', sans-serif);
}

/* Wide desktop: use near-full viewport width so 4 columns hold longer before wrap.
   Keeps horizontal padding so chips aren't flush against the screen edge. */
@media (min-width: 1101px) {
    .ecp-filter-bar {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: max(1.5rem, calc((100vw - 1400px) / 2 + 1.5rem));
        padding-right: max(1.5rem, calc((100vw - 1400px) / 2 + 1.5rem));
        box-sizing: border-box;
    }
}

/* ── TOP ROW ─────────────────────────────────────────────────────────── */
.ecp-filter-bar__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    flex-wrap: wrap;
    /* Both chrome hairlines sit on this inset box (matches product-grid span),
       not on the full-bleed 100vw .ecp-filter-bar wrapper. */
    border-top: var(--ecp-filter-border);
    border-bottom: var(--ecp-filter-border);
}

/* Assortment total + desktop Show results — below the bordered filter panel box */
.ecp-filter-bar__meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 0.3rem 0 0.15rem; /* was 0.55rem 0 — tighter under count */
    margin: 0;
    box-sizing: border-box;
}
/* When panel open: drop __top's closing border (panel__inner has border-top +
   border-bottom that form the open box). Keep __top border-top as the open
   chrome top edge (inset). Meta/Show results stay below that box. */
.ecp-filter-bar.is-panel-open .ecp-filter-bar__top {
    border-bottom: none;
}
.ecp-filter-bar.is-panel-open .ecp-filter-bar__meta {
    justify-content: space-between;
    padding-top: 0.75rem; /* keep Show results row breathing room */
    padding-bottom: 0.1rem; /* air above products; no second chrome line */
    border-bottom: none;
}

/* Desktop Show results — hidden unless panel open; force navy fill past Elementor kit */
.ecp-filter-bar .ecp-filter-show-results,
.ecp-filter-bar #ecp-filter-show-results,
body.elementor-kit-50737 .ecp-filter-bar #ecp-filter-show-results {
    display: none !important;
    visibility: hidden !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0.55rem 1.25rem !important;
    white-space: nowrap;
    border-radius: 2px !important;
    border: 1px solid #2A3A52 !important;
    background: #2A3A52 !important;
    background-color: #2A3A52 !important;
    color: #fff !important;
    font-family: var(--ecp-font-caps, 'Lato', sans-serif) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
}
.ecp-filter-bar.is-panel-open .ecp-filter-show-results,
.ecp-filter-bar.is-panel-open #ecp-filter-show-results,
body.elementor-kit-50737 .ecp-filter-bar.is-panel-open #ecp-filter-show-results {
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
}
.ecp-filter-bar #ecp-filter-show-results:hover,
.ecp-filter-bar.is-panel-open #ecp-filter-show-results:hover,
body.elementor-kit-50737 .ecp-filter-bar #ecp-filter-show-results:hover {
    background: #1e2c3d !important;
    background-color: #1e2c3d !important;
    border-color: #1e2c3d !important;
    color: #fff !important;
}

.ecp-assortment-count {
    margin: 0;
    padding: 0;
    margin-left: auto; /* stay right when Show results is absent */
    color: var(--ecp-text-muted, #888888);
    font-family: var(--ecp-font-caps, 'Lato', sans-serif);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: none;
}

/* Shop/archive product grid sits ~10px inside the filter-bar content edge
   (bar pad 24px vs section inset ~34px at 1280). Nudge meta to match cards. */
@media (min-width: 768px) {
    .ecp-filter-bar__meta {
        padding-left: 10px;
        padding-right: 10px;
    }
    .ecp-filter-bar.is-panel-open .ecp-filter-bar__meta {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Keep meta inside filter-bar side padding so its right edge tracks the
   panel/grid content edge (shop products ~full content width, not 1180). */
@media (max-width: 767px) {
    .ecp-filter-bar .ecp-filter-show-results,
    .ecp-filter-bar #ecp-filter-show-results,
    body.elementor-kit-50737 .ecp-filter-bar #ecp-filter-show-results {
        display: none !important;
        visibility: hidden !important;
    }
    .ecp-filter-bar__meta {
        justify-content: flex-end;
        padding: 0.28rem 0 0.2rem; /* was 0.35rem 0 0.55rem */
    }
    .ecp-filter-bar.is-panel-open .ecp-filter-bar__meta {
        justify-content: flex-end;
        padding-top: 0.28rem;
        padding-bottom: 0.2rem;
    }
}

/* ── TOGGLE BUTTON ───────────────────────────────────────────────────── */
/* Soft gray rectangle hover (fade-in) — not a stroked/rounded pill */
.ecp-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    margin: -0.45rem -0.35rem;
    background: transparent;
    border: none;
    border-radius: 2px;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    color: var(--ecp-text, #2a2118) !important;
    font-family: var(--ecp-font-caps, 'Lato', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 180ms ease, color 180ms ease;
}
.ecp-filter-toggle:hover {
    color: var(--ecp-text, #2a2118) !important;
    background: rgba(42, 33, 24, 0.07) !important;
    background-color: rgba(42, 33, 24, 0.07) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.ecp-filter-toggle:focus,
.ecp-filter-toggle:active,
.ecp-filter-toggle[aria-expanded="true"] {
    color: var(--ecp-text, #2a2118) !important;
    background: rgba(42, 33, 24, 0.07) !important;
    background-color: rgba(42, 33, 24, 0.07) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.ecp-filter-toggle__icon { flex-shrink: 0; transition: transform var(--ecp-transition); }
.ecp-filter-toggle[aria-expanded="true"] .ecp-filter-toggle__icon { transform: scaleY(-1); }

.ecp-filter-toggle__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ecp-hover);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0;
}

/* ── ACTIVE CHIPS ────────────────────────────────────────────────────── */
.ecp-active-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    flex: 1;
}
.ecp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    background: var(--ecp-filter-chip-bg);
    border-radius: var(--ecp-filter-chip-radius);
    border: 1px solid var(--ecp-border, #ddd8d0);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ecp-text, #2a2118);
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
    box-shadow: none;
    transition: background var(--ecp-transition), color var(--ecp-transition), border-color var(--ecp-transition);
}
.ecp-chip:link,
.ecp-chip:visited,
.ecp-chip:hover,
.ecp-chip:focus,
.ecp-chip:focus-visible,
.ecp-chip:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
}
.ecp-chip:hover {
    background: var(--ecp-hover) !important;
    color: #fff !important;
    border-color: var(--ecp-hover) !important;
}
.ecp-chip__remove { font-size: 1rem; line-height: 1; opacity: 0.6; }

.ecp-clear-all {
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--ecp-text-muted, #7a6f64) !important;
    transition: color var(--ecp-transition);
    white-space: nowrap;
    text-decoration-color: currentColor;
}
.ecp-clear-all:hover { color: var(--ecp-hover) !important; }

/* Desktop keeps the bar compact: active chips are redundant with the Filters count.
   Clear all stays beside Filters instead of being pushed to the far edge. */
@media (min-width: 768px) {
    .ecp-filter-bar__top .ecp-active-chips {
        display: none !important;
    }
    .ecp-filter-bar__top .ecp-clear-all {
        margin-left: 1rem !important;
    }
}

/* ── EXPANDABLE PANEL ────────────────────────────────────────────────── */
/* overflow:hidden + max-height animates open/close. When open, a hairline of
   padding keeps the inner bottom border (and last-row outlines) from being
   subpixel-clipped by the overflow clip box. Do not set overflow:visible on
   the open state — that would break the max-height reveal animation. */
.ecp-filter-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 280ms ease;
}
.ecp-filter-panel[aria-hidden="false"] {
    max-height: 2000px;
    padding-bottom: 8px; /* slack so last-row Type tiles aren't clipped by overflow:hidden */
    box-sizing: content-box;
}

.ecp-filter-panel__inner {
    display: grid;
    /* Wide desktop: Type | Color | Hand-Painted | Price — named areas prevent collision */
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.35fr) minmax(140px, 0.7fr);
    grid-template-areas: "type color painted price";
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: var(--ecp-filter-border);
    border-bottom: var(--ecp-filter-border); /* close open filters box; meta/Show results sit below */
    align-items: start;
}

/* Named group placement (desktop panel only; mobile uses drawer) */
.ecp-filter-group[data-group="type"]    { grid-area: type; }
.ecp-filter-group[data-group="color"]   { grid-area: color; }
.ecp-filter-group[data-group="painted"] { grid-area: painted; }
.ecp-filter-group[data-group="price"]   { grid-area: price; min-width: 140px; }
.ecp-filter-group[data-group="pattern"] { grid-area: auto; }

/* ── FILTER GROUP ────────────────────────────────────────────────────── */
.ecp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0; /* allow grid children to shrink; name clamp contains long labels */
}
.ecp-filter-group__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ecp-text-muted, #7a6f64);
}

/* ── ICON GRID ───────────────────────────────────────────────────────── */
.ecp-filter-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--ecp-filter-icon-size), 1fr));
    max-width: calc(4 * (var(--ecp-filter-icon-size) + 0.65rem + 24px));
    gap: 0.65rem;
    /* Selected ring is inset (drawn inside tile) — still keep overflow visible + spacing
       so grid siblings / panel clip cannot cover the bottom edge. */
    overflow: visible;
    padding: 4px 2px 10px; /* extra bottom so last-row rings clear panel/group edges */
    margin: 0; /* was -2px; negative margin let next row/sibling cover tile bottoms */
}
.ecp-filter-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--ecp-text, #2a2118);
    cursor: pointer;
    /* Keep 2px transparent border for layout stability; paint ring with inset shadow */
    border: 2px solid transparent !important;
    border-radius: 4px;
    padding: 0.5rem 0.25rem 0.65rem; /* a touch more padding-bottom for label + ring */
    box-sizing: border-box;
    transition: box-shadow var(--ecp-transition), outline-color var(--ecp-transition), background var(--ecp-transition), opacity var(--ecp-transition), color var(--ecp-transition);
    background: transparent !important;
    background-color: transparent !important;
    outline: 2px solid transparent;
    outline-offset: -2px;
    box-shadow: none;
    overflow: visible;
    /* Unselected: dim icon + label so selection pops */
    opacity: 0.45;
}
.ecp-filter-icon-item:hover,
.ecp-filter-icon-item:focus-visible {
    /* Inset ring — cannot lose bottom edge to sibling overlap / parent overflow */
    border-color: transparent !important;
    box-shadow: inset 0 0 0 2px var(--ecp-hover, #2a3a52);
    outline-color: var(--ecp-hover, #2a3a52);
    opacity: 0.75;
    background: transparent !important;
    background-color: transparent !important;
}
.ecp-filter-icon-item.is-active,
.ecp-filter-icon-item[aria-pressed="true"] {
    /* Selected: full closed rectangle via inset shadow (+ outline fallback) */
    border-color: transparent !important;
    box-shadow: inset 0 0 0 2px var(--ecp-hover, #2a3a52);
    outline-color: var(--ecp-hover, #2a3a52);
    background: transparent !important;
    background-color: transparent !important;
    opacity: 1;
}
.ecp-filter-icon-item__img {
    width: var(--ecp-filter-icon-size);
    height: var(--ecp-filter-icon-size);
    object-fit: contain;
    transition: opacity var(--ecp-transition);
}
.ecp-filter-icon-item__placeholder {
    width: var(--ecp-filter-icon-size);
    height: var(--ecp-filter-icon-size);
    background: var(--ecp-cream, #f5f1eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ecp-text-muted, #7a6f64);
    font-size: 1.5rem;
}
.ecp-filter-icon-item__name {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: opacity var(--ecp-transition);
}

/* ── COLOR SWATCHES ──────────────────────────────────────────────────── */
.ecp-filter-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ecp-filter-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    padding: 2px;
    color: var(--ecp-text, #2a2118);
    transition: opacity var(--ecp-transition);
}
.ecp-filter-swatch__circle {
    width: var(--ecp-filter-swatch-size);
    height: var(--ecp-filter-swatch-size);
    border-radius: 50%;
    border: 2px solid transparent;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
    transition: outline-color var(--ecp-transition), border-color var(--ecp-transition), opacity var(--ecp-transition);
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}
.ecp-filter-swatch:hover .ecp-filter-swatch__circle,
.ecp-filter-swatch:focus-visible .ecp-filter-swatch__circle { outline-color: var(--ecp-hover) !important; }
.ecp-filter-swatch.is-active .ecp-filter-swatch__circle {
    outline-color: var(--ecp-hover);
    border-color: #fff;
}
.ecp-filter-swatch__name {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ecp-text-muted, #7a6f64);
    text-align: center;
    width: 100%;
    max-width: 100%;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ── COLLECTION IMAGE SWATCHES (Shop by Color / Hand-Painted) ────────── */
.ecp-filter-collection-swatches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ecp-filter-subgroup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ecp-filter-subgroup__label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ecp-text, #2a2118);
}
.ecp-filter-swatches--collection {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 0.65rem;
    width: 100%;
    min-width: 0;
}
/* PDP-like circular image chips — force circle size against kit/button resets.
   Color / Hand-Painted: always full opacity; selected = black ring only.
   (Shop by Type icons keep their own dim opacity rules above.) */
.ecp-filter-bar .ecp-filter-swatch--image,
.ecp-filter-swatch.ecp-filter-swatch--image {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    max-width: none;
    padding: 2px;
    margin: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    opacity: 1;
    justify-self: center;
}
.ecp-filter-swatch--image:hover,
.ecp-filter-swatch--image:focus-visible {
    opacity: 1;
}
.ecp-filter-swatch--image.is-active {
    opacity: 1;
}
.ecp-filter-swatch--image:hover .ecp-filter-swatch__circle,
.ecp-filter-swatch--image:focus-visible .ecp-filter-swatch__circle {
    outline-color: #000 !important;
}
.ecp-filter-swatch--image.is-active .ecp-filter-swatch__circle,
.ecp-filter-swatch--image.is-active .ecp-filter-swatch__circle--image {
    outline-color: #000 !important;
    border-color: #fff;
}
.ecp-filter-bar .ecp-filter-swatch--image .ecp-filter-swatch__circle,
.ecp-filter-swatch--image .ecp-filter-swatch__circle,
.ecp-filter-swatch__circle--image {
    width: var(--ecp-filter-swatch-size, 36px) !important;
    height: var(--ecp-filter-swatch-size, 36px) !important;
    min-width: var(--ecp-filter-swatch-size, 36px) !important;
    min-height: var(--ecp-filter-swatch-size, 36px) !important;
    border-radius: 50% !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--ecp-cream, #f5f1eb) !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
    display: block !important;
    flex-shrink: 0;
}
.ecp-filter-swatch__circle--image img,
.ecp-filter-swatch--image .ecp-filter-swatch__circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}
.ecp-filter-swatch--image .ecp-filter-swatch__name {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ecp-text-muted, #7a6f64);
    text-align: center;
    width: 100%;
    max-width: 100%;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* ── PILL LIST ───────────────────────────────────────────────────────── */
.ecp-filter-pills-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ecp-filter-pill,
.ecp-filter-pill:link,
.ecp-filter-pill:visited,
.ecp-filter-pill:hover,
.ecp-filter-pill:focus,
.ecp-filter-pill:focus-visible,
.ecp-filter-pill:active,
body.elementor-kit-50737 .ecp-filter-pill,
body.elementor-kit-50737 .ecp-filter-pill:hover,
body.elementor-kit-50737 .ecp-filter-pill:focus,
body.elementor-kit-50737 .ecp-filter-pill:active {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--ecp-border, #ddd8d0);
    border-radius: 100px;
    background: transparent;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ecp-hover, #2a3a52) !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
    border-bottom: 1px solid var(--ecp-border, #ddd8d0) !important;
    box-shadow: none;
    cursor: pointer;
    transition: background var(--ecp-transition), border-color var(--ecp-transition), color var(--ecp-transition);
    white-space: nowrap;
}
.ecp-filter-pill:hover,
.ecp-filter-pill:focus-visible,
body.elementor-kit-50737 .ecp-filter-pill:hover,
body.elementor-kit-50737 .ecp-filter-pill:focus-visible {
    border-color: var(--ecp-hover) !important;
    color: var(--ecp-hover) !important;
}
.ecp-filter-pill.is-active,
.ecp-filter-pill.is-active:link,
.ecp-filter-pill.is-active:visited,
.ecp-filter-pill.is-active:hover,
.ecp-filter-pill.is-active:focus,
.ecp-filter-pill.is-active:focus-visible,
.ecp-filter-pill.is-active:active,
body.elementor-kit-50737 .ecp-filter-pill.is-active,
body.elementor-kit-50737 .ecp-filter-pill.is-active:hover,
body.elementor-kit-50737 .ecp-filter-pill.is-active:focus,
body.elementor-kit-50737 .ecp-filter-pill.is-active:active {
    background: var(--ecp-filter-panel-bg, #faf8f5) !important;
    border-color: var(--ecp-hover, #2a3a52) !important;
    color: var(--ecp-hover, #2a3a52) !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
}

/* Price pills also render inside the mobile accordion, where no data-group is present. */
.ecp-filter-group[data-group="price"] .ecp-filter-pill,
#ecp-mobile-drawer [data-accordion="price"] .ecp-filter-pill {
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
    border-bottom: 1px solid var(--ecp-border, #ddd8d0) !important;
}
.ecp-filter-group[data-group="price"] .ecp-filter-pill.is-active,
#ecp-mobile-drawer [data-accordion="price"] .ecp-filter-pill.is-active {
    color: var(--ecp-hover, #2a3a52) !important;
    border-color: var(--ecp-hover, #2a3a52) !important;
}

/* ── HIDE WC DEFAULT ORDERING & RESULT COUNT ────────────────────────── */
.woocommerce-ordering,
.woocommerce-result-count { display: none !important; }

/* ── CUSTOM SORT DROPDOWN ───────────────────────────────────────────── */
.ecp-sort {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}
.ecp-sort__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    margin: -0.45rem -0.35rem;
    background: transparent;
    border: none;
    border-radius: 2px;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    color: var(--ecp-text, #2a2118);
    font-family: var(--ecp-font-caps, 'Lato', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 180ms ease, color 180ms ease;
}
.ecp-sort__btn:hover {
    color: var(--ecp-text, #2a2118) !important;
    background: rgba(42, 33, 24, 0.07) !important;
    background-color: rgba(42, 33, 24, 0.07) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.ecp-sort__btn:focus,
.ecp-sort__btn:active,
.ecp-sort__btn[aria-expanded="true"] {
    color: var(--ecp-text, #2a2118) !important;
    background: rgba(42, 33, 24, 0.07) !important;
    background-color: rgba(42, 33, 24, 0.07) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.ecp-sort__prefix { opacity: 0.6; }
.ecp-sort__chevron {
    flex-shrink: 0;
    transition: transform var(--ecp-transition);
}
.ecp-sort__btn[aria-expanded="true"] .ecp-sort__chevron { transform: scaleY(-1); }

.ecp-sort__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--ecp-surface, #fff);
    border: 1px solid var(--ecp-border, #ddd8d0);
    /* Drop shadow + explicit 1px ring so the bottom stroke stays visible over product imagery
       (border alone can look clipped/soft at fractional DPR). */
    box-shadow:
        0 4px 16px rgba(0,0,0,0.10),
        0 0 0 1px var(--ecp-border, #ddd8d0);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--ecp-transition), transform var(--ecp-transition), visibility var(--ecp-transition);
    overflow: visible;
}
.ecp-sort__dropdown[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ecp-sort__option {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--ecp-font-caps, 'Lato', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ecp-text, #2a2118);
    transition: background var(--ecp-transition), color var(--ecp-transition);
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
/* Kill Elementor kit link underlines on sort <a> options (all states) */
a.ecp-sort__option,
a.ecp-sort__option:link,
a.ecp-sort__option:visited,
a.ecp-sort__option:hover,
a.ecp-sort__option:focus,
a.ecp-sort__option:active,
.ecp-sort__option.is-active,
body.elementor-kit-50737 a.ecp-sort__option,
body.elementor-kit-50737 a.ecp-sort__option:link,
body.elementor-kit-50737 a.ecp-sort__option:visited,
body.elementor-kit-50737 a.ecp-sort__option:hover,
body.elementor-kit-50737 a.ecp-sort__option:focus,
body.elementor-kit-50737 a.ecp-sort__option:active,
body.elementor-kit-50737 .ecp-sort__option.is-active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.ecp-sort__option:hover { background: var(--ecp-filter-chip-bg) !important; color: var(--ecp-hover) !important; }
.ecp-sort__option.is-active { color: var(--ecp-hover) !important; font-weight: 700; }

/* ── MOBILE FILTER BAR (Fashion Nova — Filters | Sort) ──────────────── */
.ecp-mobile-pills {
    display: none;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    padding: 0;
    /* Hairline under Filters|Sort; assortment count sits below (mobile) */
    border-bottom: var(--ecp-filter-border);
    background: #fff;
}
.ecp-mobile-pills::-webkit-scrollbar { display: none; }

.ecp-mobile-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 1 1 50%;
    padding: 0.95rem 1rem;
    border: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-color: #fff !important;
    font-family: var(--ecp-font-caps, 'Lato', sans-serif);
    font-size: 0.8125rem; /* comfortable text size */
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ecp-text, #2a2118) !important;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--ecp-transition), background-color var(--ecp-transition);
}
.ecp-mobile-pill:last-child { border-right: none !important; }
.ecp-mobile-pill:hover,
.ecp-mobile-pill:focus,
.ecp-mobile-pill:active {
    color: var(--ecp-hover, #2A3A52) !important;
    background: #fff !important;
    background-color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}
.ecp-mobile-pill.is-active,
.ecp-mobile-pill.is-sheet-open {
    color: var(--ecp-hover, #2A3A52) !important;
    background: #fff !important;
}
.ecp-mobile-pill__chevron {
    display: inline-flex;
    align-items: center;
    opacity: 0.55;
    transition: transform var(--ecp-transition);
}
.ecp-mobile-pill__chevron svg { display: block; }
.ecp-mobile-pill.is-sheet-open .ecp-mobile-pill__chevron { transform: scaleY(-1); }
.ecp-mobile-pill--filters,
.ecp-mobile-pill--sort {
    justify-content: center;
    align-items: center !important;
    gap: 0.5rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}
/* Keep icon + FILTERS as one centered cluster so SVG can't sit on a text baseline alone */
.ecp-mobile-pill__filters-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1;
}
.ecp-mobile-pill__filter-icon {
    flex-shrink: 0;
    display: block;
    width: 16px;
    height: 14px;
    margin: 0;
    padding: 0;
    position: static;
    top: auto;
    transform: none;
    align-self: center;
}
.ecp-mobile-pill__label {
    flex: 0 1 auto;
    line-height: 1;
    display: inline-block;
    margin: 0;
    padding: 0;
}
.ecp-mobile-pill--sort .ecp-mobile-pill__chevron {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    align-self: center;
}
.ecp-sheet-accordion__chevron {
    margin-left: auto;
    flex-shrink: 0;
}

.ecp-mobile-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ecp-hover, #2A3A52);
    flex-shrink: 0;
}
/* Dots retired — active filters show as Filters (n) like Fashion Nova */
/* Type icon labels: kill Elementor/link underlines on <a> items + name spans only.
   Selected ring uses inset box-shadow (not outer border) so bottoms cannot be clipped.
   Do NOT put border-bottom:none / box-shadow:none on .ecp-filter-icon-item itself. */
a.ecp-filter-icon-item,
a.ecp-filter-icon-item:link,
a.ecp-filter-icon-item:visited,
a.ecp-filter-icon-item:hover,
a.ecp-filter-icon-item:focus,
a.ecp-filter-icon-item:active,
.ecp-filter-icon-item,
.ecp-mobile-sheet a.ecp-filter-icon-item,
.ecp-mobile-sheet a.ecp-filter-icon-item:hover,
body.elementor-kit-50737 a.ecp-filter-icon-item,
body.elementor-kit-50737 a.ecp-filter-icon-item:hover {
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
}
.ecp-filter-icon-item__name,
.ecp-mobile-sheet .ecp-filter-icon-item__name,
body.elementor-kit-50737 .ecp-filter-icon-item__name {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    -webkit-text-decoration-line: none !important;
}

.ecp-mobile-pill__dot { display: none !important; }


/* Elementor kit: keep Filters/Sort white + text, no kit fills */
body.elementor-kit-50737 .ecp-mobile-pill,
body.elementor-kit-50737 .ecp-mobile-pill:hover,
body.elementor-kit-50737 .ecp-mobile-pill:focus,
body.elementor-kit-50737 .ecp-mobile-pill:active,
body.elementor-kit-50737 .ecp-mobile-pill.is-active,
body.elementor-kit-50737 .ecp-mobile-pill.is-sheet-open {
    background: #fff !important;
    background-color: #fff !important;
    color: var(--ecp-text, #2a2118) !important;
    border: none !important;
    box-shadow: none !important;
}
body.elementor-kit-50737 .ecp-mobile-pill.is-active,
body.elementor-kit-50737 .ecp-mobile-pill.is-sheet-open {
    color: var(--ecp-hover, #2A3A52) !important;
}

/* ── MOBILE SHEET OVERLAY ──────────────────────────────────────────────
   Filters sheet overlay (#ecp-drawer-overlay). Keep pointer-events:none
   until .is-visible AND sheet open animation grace (JS) — never steal taps
   while opacity is still fading in. */
#ecp-drawer-overlay.ecp-drawer-overlay,
.ecp-filter-bar .ecp-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}
#ecp-drawer-overlay.ecp-drawer-overlay.is-visible,
.ecp-filter-bar .ecp-drawer-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    /* PE still gated: closed = none; open armed via JS after ~300ms.
       CSS baseline stays none until .is-armed (set by JS). */
    pointer-events: none;
}
#ecp-drawer-overlay.ecp-drawer-overlay.is-visible.is-armed,
.ecp-filter-bar .ecp-drawer-overlay.is-visible.is-armed {
    pointer-events: auto;
}

/* ── MOBILE BOTTOM SHEET (slide UP) — filters #ecp-mobile-drawer only ──
   Own opacity/visibility/transform so header #ecpMobileDrawer fade rules
   cannot leave an invisible hit-target over the FILTERS control. */
#ecp-mobile-drawer.ecp-mobile-drawer,
.ecp-filter-bar .ecp-mobile-drawer {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 10051;
    width: 100%;
    max-width: 100%;
    max-height: var(--ecp-drawer-max-h, 85dvh);
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    /* Keep overflow hidden for radius + slide; body scrolls. Footer stays flex-shrink:0
       so its border-top is not eaten by the clip box. */
    overflow: hidden;
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 280ms cubic-bezier(0.32, 0.72, 0, 1),
        opacity 180ms ease,
        visibility 180ms ease;
    -webkit-overflow-scrolling: touch;
}
#ecp-mobile-drawer.ecp-mobile-drawer.is-open,
.ecp-filter-bar .ecp-mobile-drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#ecp-mobile-drawer.ecp-mobile-drawer:not(.is-open),
.ecp-filter-bar .ecp-mobile-drawer:not(.is-open) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ecp-mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    background: #fff;
}
.ecp-mobile-drawer__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ecp-text, #2a2118);
}
.ecp-mobile-drawer__close {
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ecp-text-muted, #7a6f64) !important;
    padding: 0.25rem 0.35rem;
    transition: color var(--ecp-transition);
    box-shadow: none !important;
}
.ecp-mobile-drawer__close:hover { color: var(--ecp-text, #2a2118) !important; }

.ecp-mobile-drawer__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 0.5rem;
    flex: 1 1 auto;
    overscroll-behavior: contain;
}

.ecp-mobile-drawer__footer {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    background: #fff;
    position: sticky;
    bottom: 0;
}

/* ── SHEET ACCORDIONS ────────────────────────────────────────────────── */
.ecp-sheet-accordions {
    display: flex;
    flex-direction: column;
}
.ecp-sheet-accordion {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ecp-sheet-accordion__trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.05rem 1.25rem !important;
    margin: 0 !important;
    background: #fff !important;
    background-color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    font-family: var(--ecp-font-caps, 'Lato', sans-serif);
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ecp-text, #2a2118) !important;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.ecp-sheet-accordion__trigger:hover,
.ecp-sheet-accordion__trigger:focus,
.ecp-sheet-accordion__trigger:active {
    background: #fff !important;
    color: var(--ecp-hover, #2A3A52) !important;
    border: none !important;
    box-shadow: none !important;
}
.ecp-sheet-accordion__title { flex: 1 1 auto; min-width: 0; text-align: left; }
.ecp-sheet-accordion__chevron {
    display: inline-flex;
    align-items: center;
    color: var(--ecp-hover, #2A3A52);
    transition: transform 200ms ease;
    opacity: 0.85;
}
.ecp-sheet-accordion.is-open .ecp-sheet-accordion__chevron {
    transform: scaleY(-1);
}
.ecp-sheet-accordion__panel {
    padding: 0 1.25rem 1.15rem;
}
.ecp-sheet-accordion__panel[hidden] {
    display: none !important;
}

.ecp-sheet-color-merged {
    gap: 1.25rem;
}
.ecp-sheet-color-merged .ecp-filter-subgroup__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ecp-text-muted, #7a6f64);
    margin-bottom: 0.15rem;
}

/* Sort sheet list */
.ecp-sheet-sort-list {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0 0.75rem;
}
.ecp-sheet-sort-option {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    text-decoration: none !important;
    color: var(--ecp-text, #2a2118) !important;
    font-family: var(--ecp-font-caps, 'Lato', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 0 !important;
    -webkit-tap-highlight-color: transparent;
}
.ecp-sheet-sort-option:last-child { border-bottom: none !important; }
.ecp-sheet-sort-option.is-active {
    color: var(--ecp-hover, #2A3A52) !important;
    font-weight: 700;
}
.ecp-sheet-sort-option__check {
    color: var(--ecp-hover, #2A3A52);
    font-size: 1rem;
}

/* Lock page scroll while sheet open */
body.ecp-sheet-open {
    overflow: hidden !important;
    touch-action: none;
}

/* ── DRAWER BUTTONS ──────────────────────────────────────────────────── */
.ecp-filter-bar .ecp-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--ecp-transition), color var(--ecp-transition), border-color var(--ecp-transition);
}
.ecp-filter-bar .ecp-btn--ghost {
    background: none;
    border-color: var(--ecp-border, #ddd8d0);
    color: var(--ecp-text-muted, #7a6f64);
}
.ecp-filter-bar .ecp-btn--ghost:hover { border-color: var(--ecp-hover) !important; color: var(--ecp-hover) !important; }
.ecp-filter-bar .ecp-btn--primary { background: var(--ecp-hover, #2A3A52); border-color: var(--ecp-hover, #2A3A52); color: #fff; }
.ecp-filter-bar .ecp-btn--primary:hover { background: var(--ecp-navy-hover, #1e2c3d); border-color: var(--ecp-navy-hover, #1e2c3d); }

/* ── DARK THEME ──────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ecp-filter-chip-bg: rgba(255,255,255,0.08);
    }
}
:root[data-theme="dark"] { --ecp-filter-chip-bg: rgba(255,255,255,0.08); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
/* Narrow desktop / tablet: intentional 2-column wrap — left stack + right Hand-Painted */
@media (max-width: 1000px) and (min-width: 768px) {
    /* Intentional wrap: left = Type + Color (+ Price), right = Hand-Painted top→bottom */
    .ecp-filter-panel__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
        grid-template-areas:
            "type  color  painted"
            "price color  painted";
        gap: 1.5rem 1.75rem;
    }
    .ecp-filter-group[data-group="painted"] {
        align-self: stretch;
    }
    .ecp-filter-swatches--collection { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) and (min-width: 768px) {
    .ecp-filter-swatches--collection { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .ecp-filter-bar__top { display: none; }
    .ecp-filter-panel { display: none; }
    .ecp-mobile-pills { display: flex; }
    #ecp-mobile-drawer.ecp-mobile-drawer,
    .ecp-filter-bar .ecp-mobile-drawer { display: flex; }
    #ecp-drawer-overlay.ecp-drawer-overlay,
    .ecp-filter-bar .ecp-drawer-overlay { display: block; }
    .ecp-filter-swatches--collection { grid-template-columns: repeat(3, 1fr); }
    /* Comfortable sheet swatches */
    .ecp-mobile-drawer .ecp-filter-swatches--collection { grid-template-columns: repeat(4, 1fr); }
    .ecp-mobile-drawer .ecp-filter-icons {
        max-width: none;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.65rem;
        padding: 4px 2px 12px;
        margin: 0;
        overflow: visible;
    }
    /* Type accordion: do not clip tile bottoms (inset ring still wants room) */
    .ecp-sheet-accordion[data-accordion="type"] .ecp-sheet-accordion__panel,
    .ecp-mobile-drawer .ecp-sheet-accordion__panel {
        overflow: visible;
    }
    /* Mobile: full-bleed top hairline on bar (sensible); pills carry divider above count */
    .ecp-filter-bar {
        border-top: var(--ecp-filter-border);
        border-bottom: none;
        margin-bottom: 0.5rem; /* was 1rem — tighter under count */
    }
    .ecp-mobile-pills {
        border-bottom: var(--ecp-filter-border);
    }
}

/* ── SOFT-NAV LOADING ────────────────────────────────────────────────── */
.ecp-products-soft-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
    position: relative;
}
body.ecp-soft-nav-loading ul.products,
body.ecp-soft-nav-loading nav.woocommerce-pagination,
body.ecp-soft-nav-loading .woocommerce-result-count,
body.ecp-soft-nav-loading .ecp-assortment-count {
    cursor: wait;
}
body.ecp-soft-nav-loading ul.products::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 2.5rem;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: -0.75rem;
    border: 2px solid rgba(42, 58, 82, 0.2);
    border-top-color: var(--ecp-hover, #2A3A52);
    border-radius: 50%;
    animation: ecp-soft-nav-spin 0.7s linear infinite;
    z-index: 2;
    pointer-events: none;
}
ul.products.ecp-products-soft-loading {
    position: relative;
    min-height: 6rem;
}
@keyframes ecp-soft-nav-spin {
    to { transform: rotate(360deg); }
}

/* ── NO-PRODUCTS EMPTY STATE ─────────────────────────────────────────── */
.ecp-no-products,
.woocommerce-no-products-found.ecp-no-products {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 0 2.5rem !important;
    padding: 1.75rem 1rem 2.5rem !important;
    text-align: center;
    color: var(--ecp-text, #2a2118);
    font-family: var(--ecp-font-body, 'Lato', sans-serif);
}
.ecp-no-products::before,
.woocommerce-no-products-found.ecp-no-products::before {
    display: none !important; /* kill WC info icon bar */
}
.ecp-no-products__inner {
    max-width: 22rem;
    margin: 0 auto;
}
.ecp-no-products__img {
    display: block;
    width: 140px;
    max-width: min(160px, 42vw);
    height: auto;
    margin: 0 auto 0.85rem;
    opacity: 0.92;
    pointer-events: none;
    user-select: none;
}
.ecp-no-products__title {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ecp-text, #2a2118);
    line-height: 1.35;
}
.ecp-no-products__hint {
    margin: 0 0 1.15rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--ecp-text-muted, #7a6f64);
}
.ecp-no-products__reset,
a.ecp-no-products__reset,
.ecp-no-products a.ecp-clear-all.ecp-no-products__reset,
body.elementor-kit-50737 .ecp-no-products__reset,
body.elementor-kit-50737 .ecp-no-products__reset:hover,
body.elementor-kit-50737 .ecp-no-products__reset:focus,
body.elementor-kit-50737 .ecp-no-products__reset:visited {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: var(--ecp-hover, #2a3a52) !important;
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid var(--ecp-border, #ddd8d0) !important;
    border-radius: 100px;
    padding: 0.55rem 1.2rem;
    line-height: 1.2;
    transition: border-color var(--ecp-transition, 200ms ease), color var(--ecp-transition, 200ms ease);
    -webkit-tap-highlight-color: transparent;
}
.ecp-no-products__reset:hover,
.ecp-no-products__reset:focus-visible,
body.elementor-kit-50737 .ecp-no-products__reset:hover,
body.elementor-kit-50737 .ecp-no-products__reset:focus {
    border-color: var(--ecp-hover, #2a3a52) !important;
    color: var(--ecp-hover, #2a3a52) !important;
    background: #fff !important;
}

/* Soft-nav loading: empty state occupies the products slot */
body.ecp-soft-nav-loading .ecp-no-products,
body.ecp-soft-nav-loading .woocommerce-no-products-found {
    cursor: wait;
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* ==========================================================================
   Archive #179073 — edge-to-edge + Features & Facts polish
   Categories Landing boxes content via section padding + VA max-width.
   Filter bar already uses 100vw; reinforce it and widen the product loop.
   ========================================================================== */

/* Avoid double horizontal scrollbar from 100vw full-bleed */
html:has(.ecp-filter-bar) {
    overflow-x: clip;
}

/* Reinforce full-bleed filter bar inside Elementor padded columns */
@media (min-width: 1101px) {
    .elementor-179073 .ecp-filter-bar {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: max(1.5rem, calc((100vw - 1400px) / 2 + 1.5rem));
        padding-right: max(1.5rem, calc((100vw - 1400px) / 2 + 1.5rem));
        box-sizing: border-box;
        position: relative;
    }
}

/* Categories Landing hero section: reduce 4em side inset toward filter gutter */
@media (min-width: 1101px) {
    .elementor-179073 .elementor-element-0bbc5df {
        padding-left: max(1.5rem, calc((100vw - 1400px) / 2 + 1.5rem)) !important;
        padding-right: max(1.5rem, calc((100vw - 1400px) / 2 + 1.5rem)) !important;
    }
}

/* Product grid / loop: near-full content width (overrides VA 1180px cap on archive) */
@media (min-width: 1101px) {
    body.elementor-page-179073.ecp-va-active.woocommerce ul.products,
    body.elementor-page-179073.ecp-va-active .woocommerce ul.products,
    body.elementor-page-179073.ecp-va-active.woocommerce-page ul.products,
    body.elementor-page-179073.ecp-va-active .woocommerce-page ul.products,
    .elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products {
        max-width: 1400px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
        gap: 28px 18px !important;
        grid-row-gap: 28px !important;
        grid-column-gap: 18px !important;
        column-gap: 18px !important;
        row-gap: 28px !important;
    }
}

/* Features & Facts (inner section 2069b41 + theme .ecp-category-faq): white bg, no inset gray band */
.elementor-179073 .elementor-element-2069b41,
.elementor-179073 .elementor-element-2069b41:not(.elementor-motion-effects-element-type-background),
.elementor-179073 .elementor-element-2069b41 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.ecp-category-faq {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Theme-rendered FAQ last-item spacing (mirrors Elementor toggle polish) */
.ecp-category-faq__item:last-child {
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.elementor-179073 .elementor-element-2069b41 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    /* Keep last toggle divider; pad under it so it doesn't sit flush on the next tan band */
    padding-bottom: 2.25rem !important;
    margin-bottom: 0 !important;
}

/* Drop default Elementor column 10px padding that insets the gray/white panel */
.elementor-179073 .elementor-element-2069b41 .elementor-element-de6a615 > .elementor-element-populated,
.elementor-179073 .elementor-element-57f9a7e > .elementor-element-populated {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

/* Keep accordion readable but not ultra-narrow; side gutters via padding not gray band */
.elementor-179073 .elementor-element-2069b41 > .elementor-container {
    max-width: 800px !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem !important;
    margin-left: auto;
    margin-right: auto;
}

/* Space under last Features toggle divider (keep border; avoid double-line on next band) */
.elementor-179073 .elementor-element-0693acd .elementor-toggle-item:last-child {
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.elementor-179073 .elementor-element-7f1101c {
    padding-bottom: 0 !important;
}

/* Archive product loop: beat Elementor 60px column gap (also in product-cards.css) */
@media (min-width: 1101px) {
    .elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products {
        gap: 28px 18px !important;
        grid-row-gap: 28px !important;
        grid-column-gap: 18px !important;
        column-gap: 18px !important;
        row-gap: 28px !important;
    }
}


/* ── Isolate filter sheet from header #ecpMobileDrawer (same class name) ──
   Own show/hide completely — never inherit header opacity/visibility fade. */
#ecp-mobile-drawer.ecp-mobile-drawer,
.ecp-filter-bar .ecp-mobile-drawer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 10051 !important;
    /* Kill any leftover header fade collision */
    transition:
        transform 280ms cubic-bezier(0.32, 0.72, 0, 1),
        opacity 180ms ease,
        visibility 180ms ease !important;
}
#ecp-mobile-drawer.ecp-mobile-drawer:not(.is-open),
.ecp-filter-bar .ecp-mobile-drawer:not(.is-open) {
    transform: translateY(110%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#ecp-mobile-drawer.ecp-mobile-drawer.is-open,
.ecp-filter-bar .ecp-mobile-drawer.is-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
/* Overlay lives inside .ecp-filter-bar in markup — hoist above page */
#ecp-drawer-overlay.ecp-drawer-overlay,
.ecp-filter-bar .ecp-drawer-overlay {
    position: fixed !important;
    z-index: 10050 !important;
    pointer-events: none !important;
}
#ecp-drawer-overlay.ecp-drawer-overlay.is-visible.is-armed,
.ecp-filter-bar .ecp-drawer-overlay.is-visible.is-armed {
    pointer-events: auto !important;
}

/* Mobile product grid: never clip to a single row */
@media (max-width: 768px) {
    body.ecp-va-active .woocommerce.columns-4,
    body.ecp-va-active .elementor-wc-products,
    body.ecp-va-active .elementor-widget-woocommerce-products .elementor-widget-container,
    body.ecp-va-active ul.products {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }
}


/* Product search: never show Shop by Type (belt if group leaks) */
body.ecp-search-active .ecp-filter-group[data-group="type"],
body.ecp-search-active .ecp-sheet-accordion[data-accordion="type"],
body.search.ecp-archive-active .ecp-filter-group[data-group="type"] {
  display: none !important;
}
