/**
 * Product category / shop / brand archive Ã¢â‚¬â€ MME skin (v2).
 * Scoped to body.mme-category-archive.
 */

/* -------------------------------------------------------------------------
   Tokens + kill horizontal page scroll
   ------------------------------------------------------------------------- */

html:has(body.mme-category-archive) {
    overflow-x: clip;
}

body.mme-category-archive {
    --mme-ca-accent: var(--mme-accent, #c8922a);
    --mme-ca-accent-dark: #9a6f1a;
    --mme-ca-navy: #1e2732;
    --mme-ca-text: #0c0c0c;
    --mme-ca-muted: #81858b;
    --mme-ca-border: #e0e0e2;
    --mme-ca-surface: #f5f5f5;
    --mme-ca-card: #ffffff;
    --mme-ca-radius: 8px;
    --mme-ca-radius-sm: 8px;
    --mme-ca-shadow: none;
    --mme-ca-shadow-hover: 0 4px 14px rgb(26 35 50 / 8%);
    --mme-ca-font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mme-ca-sidebar-top: 6.5rem;
    --mme-ca-filter-w: 17.5rem;
    --mme-ca-title-size: clamp(1.65rem, 3.6vw, 2.5rem);
    --mme-ca-title-lh: 1.12;
    /* Desktop: large enough to read logos; mobile media query keeps title-matched size */
    --mme-ca-brand-logo-h: clamp(3rem, 4.8vw, 3.75rem);
    overflow-x: clip;
    max-width: 100%;
    background-color: var(--mme-ca-surface);
    font-family: var(--mme-ca-font);
}

body.mme-category-archive .wd-page-wrapper,
body.mme-category-archive .wd-page-content,
body.mme-category-archive .main-page-wrapper,
body.mme-category-archive .wd-content-layout,
body.mme-category-archive .wd-content-area,
body.mme-category-archive .site-content,
body.mme-category-archive .elementor,
body.mme-category-archive .e-con,
body.mme-category-archive .e-con-inner,
body.mme-category-archive .container {
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
}

body.mme-category-archive [class*="wd-section-stretch"],
body.mme-category-archive [data-vc-full-width] {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: clamp(1rem, 3vw, 1.5rem) !important;
    padding-right: clamp(1rem, 3vw, 1.5rem) !important;
}

/* -------------------------------------------------------------------------
   Digikala-style filters sidebar
   ------------------------------------------------------------------------- */

body.mme-category-archive {
    --mme-dk-filter-accent: #9aa3ad;
    --mme-dk-filter-text: #0c0c0c;
    --mme-dk-filter-muted: #81858b;
    --mme-dk-filter-border: #e0e0e2;
    --mme-dk-filter-bg: #fff;
    --mme-dk-filter-hover: #f7f8fa;
    --mme-dk-filter-check: 1.125rem;
    --mme-ca-check-silver: linear-gradient(135deg, #8a9099 0%, #c5cad1 42%, #eef1f5 68%, #a8aeb6 100%);
}

body.mme-category-archive .widget_wpc_filters_widget {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Full column content â€” no inner scrollbar on desktop */
body.mme-category-archive .wpc-filters-main-wrap,
body.mme-category-archive .wpc-filters-scroll-container,
body.mme-category-archive .wpc-filter-content,
body.mme-category-archive .wpc-filter-content ul.wpc-filters-ul-list {
    overflow: visible !important;
    max-height: none !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body.mme-category-archive .wpc-filters-main-wrap::-webkit-scrollbar,
body.mme-category-archive .wpc-filters-scroll-container::-webkit-scrollbar,
body.mme-category-archive .wpc-filter-content::-webkit-scrollbar,
body.mme-category-archive .wpc-filter-content ul.wpc-filters-ul-list::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

body.mme-category-archive .wpc-filters-main-wrap {
    position: static;
    top: auto;
    max-height: none !important;
    overflow: visible !important;
    padding: 0;
    background: var(--mme-dk-filter-bg);
    border: 1px solid var(--mme-dk-filter-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgb(26 35 50 / 4%);
}

/* Main Filters heading */
body.mme-category-archive .mme-ca-filters-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
    padding: 13px 16px;
    border-bottom: 1px solid var(--mme-dk-filter-border);
    background: #fafbfc;
    color: var(--mme-ca-navy);
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    overflow: visible;
    white-space: nowrap;
}

body.mme-category-archive .wpc-filters-main-wrap .widget-title,
body.mme-category-archive .wpc-filter-set-widget-title,
body.mme-category-archive .wpc-filters-widget-containers-wrapper > .wpc-widget-top-container {
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--mme-dk-filter-border);
    background: var(--mme-dk-filter-bg);
    color: var(--mme-dk-filter-text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

/* Empty “posts found” strip at top */
body.mme-category-archive .wpc-posts-found,
body.mme-category-archive .wpc-posts-found[data-found=""],
body.mme-category-archive .wpc-posts-found:not([data-found]) {
    display: none !important;
}

body.mme-category-archive .wpc-widget-close-container {
    display: none !important;
}

/* Sections: Digikala hairline under each block */
body.mme-category-archive .wpc-filters-section {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mme-dk-filter-border) !important;
    border-radius: 0 !important;
    background: var(--mme-dk-filter-bg) !important;
    box-shadow: none !important;
    overflow: visible;
}

body.mme-category-archive .wpc-filters-section:last-of-type,
body.mme-category-archive .wpc-filters-section.wpc-filter-layout-submit-button {
    border-bottom: 0 !important;
}

body.mme-category-archive .wpc-filters-section:hover {
    background: var(--mme-dk-filter-bg) !important;
}

body.mme-category-archive .wpc-filters-section + .wpc-filters-section {
    margin: 0 !important;
}

body.mme-category-archive .wpc-filter-layout-submit-button {
    margin: 0 !important;
    padding: 12px 16px 16px !important;
    border: 0 !important;
    border-top: 1px solid var(--mme-dk-filter-border) !important;
    border-radius: 0 !important;
    background: var(--mme-dk-filter-bg) !important;
}

body.mme-category-archive .wpc-filter-layout-submit-button:hover {
    border-color: var(--mme-dk-filter-border) !important;
}

/* Accordion — clean compact rows */
body.mme-category-archive .wpc-filter-header,
body.mme-category-archive .wpc-filter-title,
body.mme-category-archive .wpc-filters-section .wpc-filter-title,
body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion > .wpc-filter-header,
body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion > .wpc-filter-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 0 !important;
    background: #f4f5f7 !important;
    color: var(--mme-dk-filter-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    line-height: 1.35;
}

body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion > .wpc-filter-header,
body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion > .wpc-filter-title {
    cursor: pointer;
    user-select: none;
    transition: background-color 140ms ease;
}

body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion > .wpc-filter-header:hover,
body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion > .wpc-filter-title:hover {
    background: #eceef2 !important;
}

/* Separator line under header when section is open */
body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion.is-open > .wpc-filter-header,
body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion.is-open > .wpc-filter-title {
    border-bottom: 1px solid var(--mme-dk-filter-border) !important;
}

body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion:not(.is-open) > .wpc-filter-content {
    display: none !important;
}

body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion.is-open > .wpc-filter-content {
    display: block !important;
    padding: 10px 12px 14px !important;
    background: #fcfcfd !important;
}

body.mme-category-archive .mme-ca-filter-chevron {
    flex: 0 0 auto;
    width: 1.4rem;
    height: 1.4rem;
    margin-inline-start: auto;
    border: 1px solid #d5dae1 !important;
    border-radius: 50%;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none;
    position: relative;
    opacity: 1;
    transform: none !important;
    transition: border-color 140ms ease, background-color 140ms ease;
}

body.mme-category-archive .mme-ca-filter-chevron::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 6px;
    height: 6px;
    border-inline-end: 1.6px solid #5b6470;
    border-bottom: 1.6px solid #5b6470;
    transform: rotate(45deg) translate(-1px, -2px);
    transition: transform 180ms ease, border-color 140ms ease;
}

body.mme-category-archive .mme-ca-filter--accordion.is-open .mme-ca-filter-chevron {
    border-color: color-mix(in srgb, var(--mme-ca-accent) 45%, #d5dae1) !important;
    background: color-mix(in srgb, var(--mme-ca-accent) 10%, #fff) !important;
    background-image: none !important;
    margin-top: 0;
}

body.mme-category-archive .mme-ca-filter--accordion.is-open .mme-ca-filter-chevron::before {
    border-color: var(--mme-ca-accent-dark);
    transform: rotate(-135deg) translate(-1px, -1px);
}

body.mme-category-archive .mme-ca-filter--accordion > .wpc-filter-header:hover .mme-ca-filter-chevron,
body.mme-category-archive .mme-ca-filter--accordion > .wpc-filter-title:hover .mme-ca-filter-chevron {
    filter: none;
    border-color: #c0c6d0 !important;
    box-shadow: none;
}

/* Use child-theme chevron only — disable FE's built-in collapse button */
body.mme-category-archive .mme-ca-filter--accordion .wpc-filter-title button {
    all: unset;
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

body.mme-category-archive .mme-ca-filter--accordion .wpc-filter-title .wpc-open-icon,
body.mme-category-archive .mme-ca-filter--accordion .wpc-filter-title .wpc-wrap-icons {
    display: none !important;
}

body.mme-category-archive .wpc-filters-section.mme-ca-filter--accordion {
    padding: 0 !important;
    border-color: var(--mme-dk-filter-border) !important;
    background: var(--mme-dk-filter-bg) !important;
    box-shadow: none !important;
}

body.mme-category-archive .mme-ca-filter--always-open:not(.mme-ca-filter--accordion),
body.mme-category-archive .wpc-filters-section.wpc-filter-layout-submit-button {
    padding: 0 !important;
    border-color: var(--mme-dk-filter-border) !important;
    background: var(--mme-dk-filter-bg) !important;
    box-shadow: none !important;
}

body.mme-category-archive .mme-ca-filter--always-open:not(.mme-ca-filter--accordion) > .wpc-filter-header,
body.mme-category-archive .mme-ca-filter--always-open:not(.mme-ca-filter--accordion) > .wpc-filter-title {
    margin: 0 !important;
    padding: 14px 16px 8px !important;
}

body.mme-category-archive .mme-ca-filter--always-open:not(.mme-ca-filter--accordion) > .wpc-filter-content,
body.mme-category-archive .mme-ca-filter--accordion.is-open > .wpc-filter-content {
    padding: 0 12px 14px !important;
}

body.mme-category-archive .wpc-filters-ul-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
    max-height: none !important;
    overflow: visible !important;
}

body.mme-category-archive .wpc-filters-section:not(.wpc-filter-layout-dropdown):not(.wpc-filter-post_meta_num) .wpc-filter-content ul.wpc-filters-ul-list {
    max-height: none !important;
    overflow: visible !important;
}

body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.mme-category-archive .wpc-term-item-content-wrapper {
    display: grid !important;
    grid-template-columns: var(--mme-dk-filter-check) minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 120ms ease;
}

body.mme-category-archive .wpc-term-item-content-wrapper:hover {
    background: var(--mme-dk-filter-hover);
}

body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--mme-dk-filter-text) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.45;
    cursor: pointer;
}

body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item label a.wpc-filter-link,
body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item a.wpc-filter-link {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    text-decoration: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item label:hover,
body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item a:hover,
body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item label:focus-within {
    background: transparent !important;
    color: var(--mme-dk-filter-text) !important;
}

body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item.wpc-term-selected .wpc-term-item-content-wrapper,
body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item:has(input:checked) .wpc-term-item-content-wrapper {
    background: transparent;
}

body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item.wpc-term-selected label,
body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item.wpc-term-selected > a,
body.mme-category-archive .wpc-filters-ul-list > li.wpc-term-item input:checked + label {
    background: transparent !important;
    color: var(--mme-dk-filter-text) !important;
    font-weight: 500 !important;
    border: 0 !important;
}

/* Silver count pill — style only the outer wrapper (not nested value) */
body.mme-category-archive .wpc-term-count,
body.mme-category-archive .wpc-filters-ul-list .wpc-term-count,
body.mme-category-archive .wpc-item-has-brand .wpc-term-count,
body.mme-category-archive .select2-results__option .wpc-term-count,
body.mme-category-archive .select2-selection__rendered .wpc-term-count,
body.mme-category-archive .wpc-counter-length-1 .wpc-term-count,
body.mme-category-archive .wpc-counter-length-2 .wpc-term-count,
body.mme-category-archive .wpc-counter-length-3 .wpc-term-count,
body.mme-category-archive .wpc-counter-length-4 .wpc-term-count,
body.mme-category-archive .wpc-counter-length-5 .wpc-term-count {
    flex: 0 0 auto;
    margin: 0 0 0 auto !important;
    margin-inline-start: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 1.75rem !important;
    height: 1.75rem !important;
    padding: 0 0.55rem !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #f4f6f8 0%, #dce1e6 100%) !important;
    border: 1px solid #c5ccd3 !important;
    color: #1e2732 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    opacity: 1 !important;
    overflow: hidden;
    box-shadow: none !important;
    text-shadow: none !important;
    letter-spacing: 0 !important;
    vertical-align: middle;
}

body.mme-category-archive .wpc-term-count-value,
body.mme-category-archive .wpc-filters-ul-list .wpc-term-count-value,
body.mme-category-archive .wpc-item-has-brand .wpc-term-count-value,
body.mme-category-archive .select2-results__option .wpc-term-count-value {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
}

body.mme-category-archive .wpc-term-count-brackets-open,
body.mme-category-archive .wpc-term-count-brackets-close {
    display: none !important;
}

body.mme-category-archive .wpc-filter-label-wrapper,
body.mme-category-archive .wpc-filter-label-text,
body.mme-category-archive .wpc-term-item-content {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.mme-category-archive .wpc-filters-main-wrap input[type="checkbox"],
body.mme-category-archive .wpc-filters-main-wrap input[type="radio"] {
    justify-self: start;
    align-self: center;
}

/* Checkboxes — silver gradient fill + dark tick */
body.mme-category-archive .wpc-filters-main-wrap input[type="checkbox"],
body.mme-category-archive .wpc-filters-main-wrap input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-sizing: border-box !important;
    width: var(--mme-dk-filter-check) !important;
    height: var(--mme-dk-filter-check) !important;
    min-width: var(--mme-dk-filter-check) !important;
    max-width: var(--mme-dk-filter-check) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid #b8bec6 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    grid-row: 1;
    transition:
        background 120ms ease,
        border-color 120ms ease,
        box-shadow 120ms ease;
}

body.mme-category-archive .wpc-filters-main-wrap input[type="radio"] {
    border-radius: 50% !important;
}

body.mme-category-archive .wpc-filters-main-wrap input[type="checkbox"]:hover,
body.mme-category-archive .wpc-filters-main-wrap input[type="radio"]:hover {
    border-color: #8a919a !important;
}

body.mme-category-archive .wpc-filters-main-wrap input[type="checkbox"]:focus-visible,
body.mme-category-archive .wpc-filters-main-wrap input[type="radio"]:focus-visible {
    border-color: #8a919a !important;
    box-shadow: 0 0 0 3px rgb(154 163 173 / 28%) !important;
}

body.mme-category-archive .wpc-filters-main-wrap input[type="checkbox"]:checked,
body.mme-category-archive .wpc-filters-main-wrap input[type="radio"]:checked {
    border-color: #8a919a !important;
    background: var(--mme-ca-check-silver) !important;
    background-color: #c5cad1 !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%) !important;
}

body.mme-category-archive .wpc-filters-main-wrap input[type="checkbox"]:checked::after {
    content: "" !important;
    position: absolute;
    inset-inline-start: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #1e2732;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: block !important;
    background: transparent !important;
}

body.mme-category-archive .wpc-filters-main-wrap input[type="radio"]:checked::after {
    content: "" !important;
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #1e2732 !important;
    display: block !important;
    border: 0 !important;
    transform: none !important;
    width: auto;
    height: auto;
}

body.mme-category-archive .wpc-filters-main-wrap .wpc-term-selected .wpc-filter-link::before,
body.mme-category-archive .wpc-filters-main-wrap .wpc-term-selected .wpc-filter-link::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

body.mme-category-archive .wpc-filters-main-wrap input.wpc-label-input:checked + label,
body.mme-category-archive .wpc-filters-main-wrap input.wpc-label-input:checked + label span.wpc-filter-label-wrapper {
    border-color: transparent !important;
    background-color: transparent !important;
    color: var(--mme-dk-filter-text) !important;
}

body.mme-category-archive .wpc-filters-main-wrap select,
body.mme-category-archive .wpc-filters-widget-select,
body.mme-category-archive .wpc-search-field,
body.mme-category-archive .wpc-filter-search-field,
body.mme-category-archive .wpc-filters-main-wrap input[type="text"],
body.mme-category-archive .wpc-filters-main-wrap input[type="number"],
body.mme-category-archive .select2-container .select2-selection--single {
    width: 100% !important;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--mme-dk-filter-border) !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: var(--mme-dk-filter-text);
    font: inherit;
    font-size: 13px;
    box-shadow: none !important;
}

body.mme-category-archive .select2-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.mme-category-archive .wpc-filter-pwb-brand .select2-container,
body.mme-category-archive .wpc-filter-layout-dropdown .select2-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

/* Brand filter — closed trigger full width */
body.mme-category-archive .wpc-filter-pwb-brand .wpc-filter-content {
    padding: 10px 8px 14px !important;
}

body.mme-category-archive .wpc-filter-pwb-brand .select2-container .select2-selection--single {
    width: 100% !important;
    min-height: 44px;
    padding: 6px 40px 6px 12px !important;
    border-radius: 10px !important;
    border-color: #d8dde3 !important;
    background-color: #fff !important;
}

body.mme-category-archive .wpc-filter-pwb-brand .select2-container .select2-selection--single .select2-selection__rendered {
    display: flex !important;
    align-items: center;
    min-height: 30px;
    padding: 0 !important;
    line-height: 1.35 !important;
    color: var(--mme-dk-filter-text) !important;
}

body.mme-category-archive .wpc-filter-pwb-brand .select2-selection__rendered .wpc-item-has-brand,
body.mme-category-archive .wpc-filter-pwb-brand .select2-selection__rendered .wpc-dropdown-default {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

body.mme-category-archive .wpc-filter-pwb-brand .select2-selection__rendered .wpc-dropdown-default .wpc-term-image-wrapper {
    display: none !important;
}

body.mme-category-archive .wpc-filter-pwb-brand .select2-selection__rendered .wpc-dropdown-default .wpc-term-name {
    color: #81858b !important;
    font-weight: 500 !important;
}

body.mme-category-archive .wpc-filter-pwb-brand .select2-selection__rendered .wpc-item-has-brand .wpc-term-image-wrapper {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0 !important;
    border-radius: 6px;
    overflow: hidden;
    background: #f4f6f8;
}

body.mme-category-archive .wpc-filter-pwb-brand .select2-selection__rendered .wpc-item-has-brand .wpc-term-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.mme-category-archive .wpc-filter-pwb-brand .select2-selection__rendered .wpc-item-has-brand .wpc-term-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600 !important;
}

body.mme-category-archive .select2-container .select2-selection--single {
    display: flex !important;
    align-items: center;
    padding-inline-end: 2.25rem;
}

body.mme-category-archive .select2-container--default .select2-selection--single .select2-selection__arrow {
    inset-inline-end: 8px !important;
    top: 0 !important;
    width: 22px !important;
    height: 100% !important;
    pointer-events: none;
    background: none !important;
    background-image: none !important;
}

body.mme-category-archive .select2-container--default .select2-selection--single .select2-selection__arrow b,
body.mme-category-archive .wpc-filter-layout-dropdown .select2-container--default .select2-selection--single .select2-selection__arrow b,
body.mme-category-archive .wpc-filter-pwb-brand .select2-selection__arrow b {
    display: none !important;
    border: 0 !important;
    background: none !important;
    background-image: none !important;
    opacity: 0 !important;
}

body.mme-category-archive .select2-container--default .select2-selection--single .select2-selection__arrow::before,
body.mme-category-archive .select2-container--default .select2-selection--single .select2-selection__arrow::after,
body.mme-category-archive .wpc-filter-layout-dropdown .select2-selection__arrow::before,
body.mme-category-archive .wpc-filter-layout-dropdown .select2-selection__arrow::after,
body.mme-category-archive .wpc-filter-pwb-brand .select2-selection__arrow::before,
body.mme-category-archive .wpc-filter-pwb-brand .select2-selection__arrow::after {
    content: none !important;
    display: none !important;
}

/* Single clean brand dropdown arrow */
body.mme-category-archive .wpc-filter-pwb-brand .select2-selection--single,
body.mme-category-archive .wpc-filter-layout-dropdown .select2-selection--single {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239aa3ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 8px !important;
}

body.mme-category-archive .select2-container--open .wpc-filter-pwb-brand .select2-selection--single,
body.mme-category-archive .select2-container--open .wpc-filter-layout-dropdown .select2-selection--single {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 6.5L6 1.5L11 6.5' stroke='%239aa3ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Brand page — category dropdown matches brand-filter polish */
body.mme-ca-brand-archive .wpc-filter-product_cat .wpc-filter-content,
body.mme-category-archive .mme-ca-filter--categories .wpc-filter-content {
    padding: 10px 8px 14px !important;
}

body.mme-ca-brand-archive .wpc-filter-product_cat .select2-container .select2-selection--single,
body.mme-category-archive .mme-ca-filter--categories .select2-container .select2-selection--single {
    width: 100% !important;
    min-height: 44px;
    padding: 6px 40px 6px 12px !important;
    border-radius: 10px !important;
    border-color: #d8dde3 !important;
    background-color: #fff !important;
}

body.mme-ca-brand-archive .wpc-filter-product_cat .select2-selection__rendered .wpc-dropdown-default .wpc-term-name,
body.mme-category-archive .mme-ca-filter--categories .select2-selection__rendered .wpc-dropdown-default .wpc-term-name,
body.mme-ca-brand-archive .wpc-filter-product_cat .select2-selection__rendered .wpc-dropdown-default,
body.mme-category-archive .mme-ca-filter--categories .select2-selection__rendered .wpc-dropdown-default {
    color: #81858b !important;
    font-weight: 500 !important;
}

/* Hide empty (0-count) categories in the open dropdown */
body.mme-ca-brand-archive .select2-results__option[aria-disabled="true"],
body.mme-category-archive .mme-ca-filter--categories ~ .select2-container .select2-results__option[aria-disabled="true"],
body.mme-category-archive .select2-dropdown .select2-results__option:has(.wpc-term-count-0),
body.mme-category-archive .select2-dropdown .select2-results__option.wpc-term-count-0 {
    display: none !important;
}

body.mme-ca-brand-archive .wpc-filter-product_cat option.wpc-term-count-0[disabled],
body.mme-category-archive .mme-ca-filter--categories option.wpc-term-count-0[disabled] {
    display: none !important;
}

body.mme-category-archive .wpc-filter-pwb-brand select.select2-hidden-accessible,
body.mme-category-archive .wpc-filter-layout-dropdown select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: none !important;
}

body.mme-category-archive .select2-dropdown,
body.mme-category-archive .select2-dropdown.wpc-filter-everything-dropdown {
    min-width: 18.5rem !important;
    width: max(100%, 18.5rem) !important;
    border: 1px solid var(--mme-dk-filter-border) !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 14px 30px rgb(26 35 50 / 14%);
    z-index: 10050 !important;
}

body.mme-category-archive .wpc-filter-pwb-brand .select2-dropdown,
body.mme-category-archive .select2-container--open .wpc-filter-everything-dropdown {
    min-width: 21.5rem !important;
    width: max(100%, 21.5rem) !important;
}

body.mme-category-archive .wpc-filters-widget-content,
body.mme-category-archive .wpc-filters-main-wrap,
body.mme-category-archive .wpc-filter-pwb-brand .wpc-filter-content {
    overflow: visible !important;
}

body.mme-category-archive .select2-search--dropdown {
    position: relative;
    padding: 10px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--mme-dk-filter-border);
}

/* Kill WoodMart duplicate search icon + overlay */
body.mme-category-archive .select2-container--default .select2-search--dropdown:before,
body.mme-category-archive .select2-container--default .select2-search--dropdown:after,
body.mme-category-archive .select2-search--dropdown:before,
body.mme-category-archive .select2-search--dropdown:after {
    content: none !important;
    display: none !important;
    background: none !important;
}

body.mme-category-archive .select2-search--dropdown .select2-search__field {
    min-height: 40px;
    padding: 8px 40px 8px 12px !important;
    border: 1px solid var(--mme-dk-filter-border) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%239aa3ad' stroke-linecap='round' stroke-width='1.5' d='M11 11l3 3M7 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;
}

body.mme-category-archive .select2-results > .select2-results__options {
    max-height: 20rem !important;
    padding: 4px 0 !important;
}

body.mme-category-archive .select2-results__option {
    padding: 0 !important;
    border-bottom: 0;
    white-space: normal !important;
}

body.mme-category-archive .select2-results__option .wpc-item-has-brand,
body.mme-category-archive .select2-results__option .wpc-dropdown-default {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    box-sizing: border-box;
}

body.mme-category-archive .select2-results__option .wpc-dropdown-default {
    color: #81858b;
    font-weight: 500;
    border-bottom: 1px solid #f1f3f6;
}

body.mme-category-archive .select2-results__option .wpc-dropdown-default .wpc-term-image-wrapper {
    display: none !important;
}

body.mme-category-archive .select2-results__option .wpc-item-has-brand .wpc-term-image-wrapper {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0 !important;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f6f8;
}

body.mme-category-archive .select2-results__option .wpc-item-has-brand .wpc-term-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.mme-category-archive .select2-results__option .wpc-item-has-brand .wpc-term-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--mme-dk-filter-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.mme-category-archive .select2-results__option .wpc-item-has-brand .wpc-term-count {
    position: relative;
    z-index: 1;
    margin-inline-start: 8px;
}

body.mme-category-archive .select2-results__option--highlighted .wpc-item-has-brand,
body.mme-category-archive .select2-results__option--highlighted .wpc-dropdown-default {
    background: #f5f7fa;
}

body.mme-category-archive .select2-results__option--selected .wpc-item-has-brand {
    background: #eef2f7;
}

body.mme-category-archive .wpc-filters-main-wrap select:focus,
body.mme-category-archive .wpc-filters-main-wrap input[type="text"]:focus,
body.mme-category-archive .wpc-filters-main-wrap input[type="number"]:focus,
body.mme-category-archive .select2-container--focus .select2-selection--single,
body.mme-category-archive .select2-container--open .select2-selection--single {
    border-color: #c0c2c5 !important;
    box-shadow: 0 0 0 2px rgb(12 12 12 / 6%) !important;
    outline: none;
}

body.mme-category-archive .wpc-filters-range-inputs .ui-slider-horizontal .ui-slider-range,
body.mme-category-archive .wpc-filters-range-slider-control .ui-slider-range {
    background-color: var(--mme-dk-filter-accent) !important;
}

body.mme-category-archive .wpc-spinner:after {
    border-top-color: var(--mme-dk-filter-accent) !important;
}

body.mme-category-archive .wpc-filter-more-less {
    margin: 4px 8px 0;
    color: var(--mme-dk-filter-accent) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

body.mme-category-archive a.wpc-filters-submit-button,
body.mme-category-archive a.wpc-filters-apply-button {
    display: none !important;
}

/* Empty trailing controls cell (Show/Cancel shell) */
body.mme-category-archive .wpc-filters-widget-controls-container,
body.mme-category-archive .wpc-filter-layout-submit-button {
    display: none !important;
}

body.mme-category-archive.mme-ca-has-active-filters .wpc-filters-widget-controls-container {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 12px 14px 16px !important;
    border-top: 1px solid var(--mme-dk-filter-border);
    background: #fff;
    text-align: stretch;
    z-index: 1;
}

body.mme-category-archive.mme-ca-has-active-filters .wpc-filters-widget-controls-wrapper {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

body.mme-category-archive.mme-ca-has-active-filters .wpc-filters-widget-controls-item.wpc-filters-widget-controls-one {
    display: none !important;
}

body.mme-category-archive.mme-ca-has-active-filters .wpc-filters-widget-controls-item,
body.mme-category-archive.mme-ca-has-active-filters .wpc-filters-widget-controls-item.wpc-filters-widget-controls-two {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin: 0 !important;
}

body.mme-category-archive .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-close-button,
body.mme-category-archive .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-reset-button,
body.mme-category-archive .wpc-filters-main-wrap a.wpc-filters-close-button,
body.mme-category-archive .wpc-filters-main-wrap a.wpc-filters-reset-button,
body.mme-category-archive a.wpc-filters-close-button,
body.mme-category-archive a.wpc-filters-reset-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 1.25rem !important;
    border: 1px solid #d5dae1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #1e2732 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgb(26 35 50 / 4%);
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

body.mme-category-archive .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-close-button:hover,
body.mme-category-archive .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-reset-button:hover,
body.mme-category-archive .wpc-filters-main-wrap a.wpc-filters-close-button:hover,
body.mme-category-archive .wpc-filters-main-wrap a.wpc-filters-reset-button:hover,
body.mme-category-archive .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-close-button:focus-visible,
body.mme-category-archive .wpc-filters-main-wrap a.wpc-filters-reset-button:focus-visible {
    border-color: #c0c2c5 !important;
    background: #f5f6f8 !important;
    color: #1e2732 !important;
    box-shadow: 0 2px 6px rgb(26 35 50 / 8%);
    outline: none;
}

body.mme-category-archive:not(.mme-ca-has-active-filters) .wpc-filters-reset-button,
body.mme-category-archive:not(.mme-ca-has-active-filters) .wpc-filters-close-button {
    display: none !important;
}

/* Keep source chips in DOM for FE AJAX hooks, but invisible */
body.mme-category-archive .wpc-custom-selected-terms,
body.mme-category-archive .wpc-inner-widget-chips-wrapper,
body.mme-category-archive .elementor-widget-wpc_chips_widget,
body.mme-category-archive .widget_wpc_chips_widget {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.mme-category-archive .wpc-filters-main-wrap .wpc-filter-chips-list {
    display: none !important;
}

/* Active filters toolbar — same row as Filters title */
body.mme-category-archive .mme-ca-active-filters {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-height: 2.75rem;
    margin: 0 0 0.65rem;
    padding: 0.2rem 0;
    list-style: none;
    box-sizing: border-box;
}

body.mme-category-archive .mme-ca-active-filters.is-visible {
    display: flex;
}

body.mme-category-archive .mme-ca-toolbar-count {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    order: 2;
    margin-left: auto;
}

body.mme-category-archive .mme-ca-active-filters:not(.has-chips) .mme-ca-toolbar-count {
    margin-left: 0;
}

body.mme-category-archive .mme-ca-active-filters__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
    order: 1;
    min-width: 0;
}

body.mme-category-archive .mme-ca-chrome-empty {
    display: none !important;
}

/* Pull product grid up when toolbar is shown */
body.mme-category-archive .mme-ca-active-filters.is-visible + .elementor-widget-wd_archive_products > .elementor-widget-container,
body.mme-category-archive.mme-ca-has-active-filters .elementor-widget-wd_archive_products > .elementor-widget-container {
    padding-top: 0.15rem !important;
}

/* Result count inside chips toolbar */
body.mme-category-archive .mme-ca-toolbar-count .elementor-widget-wd_shop_archive_result_count,
body.mme-category-archive .mme-ca-toolbar-count .wd-shop-result-count {
    margin: 0 !important;
}

body.mme-category-archive .mme-ca-toolbar-count .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.mme-category-archive .mme-ca-toolbar-count .woocommerce-result-count,
body.mme-category-archive .mme-ca-result-placed .woocommerce-result-count {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.4rem 0.85rem;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #f8f9fb !important;
    box-shadow: none !important;
    color: #1e2732;
    font-size: 0.8125rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

body.mme-category-archive .woocommerce-result-count .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.mme-category-archive .mme-ca-chip {
    margin: 0;
    list-style: none;
}

body.mme-category-archive .mme-ca-active-filters .wpc-filter-chips-list li.mme-ca-chip > a,
body.mme-category-archive .mme-ca-active-filters .wpc-filter-chips-list li.wpc-filter-chip > a,
body.mme-category-archive .mme-ca-chip > a {
    position: relative;
    z-index: 0;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 0.45rem;
    max-width: 100%;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0 0.85rem !important;
    box-sizing: border-box;
    border: 1px solid #c8922a !important;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(26 35 50 / 4%);
    color: #111827 !important;
    font-size: 0.8125rem;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transform: translateZ(0) scale(1);
    transform-origin: center center;
    backface-visibility: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

body.mme-category-archive .mme-ca-active-filters .wpc-filter-chips-list li.mme-ca-chip > a:hover,
body.mme-category-archive .mme-ca-active-filters .wpc-filter-chips-list li.wpc-filter-chip > a:hover,
body.mme-category-archive .mme-ca-chip > a:hover {
    z-index: 2;
    filter: none;
    transform: translateZ(0) scale(1.03);
    font-weight: 800 !important;
    border-color: #9a6f1a !important;
    background: color-mix(in srgb, #c8922a 8%, #fff);
    box-shadow: 0 2px 6px rgb(26 35 50 / 8%);
}

body.mme-category-archive .mme-ca-active-filters .mme-ca-chip__label,
body.mme-category-archive .mme-ca-active-filters .wpc-filter-chip-name,
body.mme-category-archive .mme-ca-chip > a:hover .mme-ca-chip__label,
body.mme-category-archive .mme-ca-chip__label {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 14rem;
    line-height: 1.15 !important;
    margin: 0 !important;
    padding: 0.05rem 0 0 !important;
    font-weight: 700 !important;
    color: inherit !important;
}

body.mme-category-archive .mme-ca-chip > a:hover .mme-ca-chip__label,
body.mme-category-archive .mme-ca-chip > a:hover .wpc-filter-chip-name {
    font-weight: 800 !important;
}

body.mme-category-archive .mme-ca-chip__close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50%;
    background: rgb(17 24 39 / 10%);
    color: #111827;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1 !important;
}

body.mme-category-archive .mme-ca-active-filters .wpc-filter-chips-list li.mme-ca-chip--reset > a,
body.mme-category-archive .mme-ca-active-filters .wpc-filter-chips-list li.wpc-chip-reset-all > a,
body.mme-category-archive .mme-ca-chip--reset > a {
    border-color: #d5dae1 !important;
    background: #fff !important;
    color: #1e2732 !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 2px rgb(26 35 50 / 5%);
}

body.mme-category-archive .mme-ca-chip--reset .mme-ca-chip__label,
body.mme-category-archive .mme-ca-chip--reset .wpc-filter-chip-name,
body.mme-category-archive .mme-ca-active-filters .wpc-chip-reset-all .mme-ca-chip__label,
body.mme-category-archive .mme-ca-active-filters .wpc-chip-reset-all .wpc-filter-chip-name {
    font-weight: 800 !important;
}

body.mme-category-archive .mme-ca-chip--reset .mme-ca-chip__close {
    display: none !important;
}

body.mme-category-archive .mme-ca-active-filters .wpc-filter-chips-list li.mme-ca-chip--reset > a:hover,
body.mme-category-archive .mme-ca-active-filters .wpc-filter-chips-list li.wpc-chip-reset-all > a:hover,
body.mme-category-archive .mme-ca-chip--reset > a:hover {
    filter: none;
    transform: translateZ(0) scale(1.03);
    font-weight: 800 !important;
    border-color: #c0c6d0 !important;
    background: #f7f8fa !important;
    color: #1e2732 !important;
}

/* Loading overlay inside product cards container — single gold spinner only */
body.mme-category-archive .elementor-widget-wd_archive_products,
body.mme-category-archive .elementor-widget-wd_archive_products .elementor-widget-container,
body.mme-category-archive .wd-products-element {
    position: relative;
}

/* Hide Filter Everything’s gray fixed spinner */
body.mme-category-archive .wpc-spinner,
body.mme-category-archive .wpc-spinner.is-active,
body.mme-category-archive.mme-ca-filtering .wpc-spinner,
html.is-active body.mme-category-archive .wpc-spinner {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Overlay + spinner only on the inner container (avoid double loaders) */
body.mme-category-archive.mme-ca-filtering .elementor-widget-wd_archive_products .elementor-widget-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 30;
    border-radius: 8px;
    background: rgb(255 255 255 / 72%);
    pointer-events: none;
}

body.mme-category-archive.mme-ca-filtering .elementor-widget-wd_archive_products .elementor-widget-container::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 50%;
    z-index: 31;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: -1.125rem;
    margin-inline-start: -1.125rem;
    border: 3px solid #e8ebf0;
    border-top-color: #c8922a;
    border-radius: 50%;
    animation: mme-ca-spin 0.7s linear infinite;
    box-sizing: border-box;
}

/* Do not also paint spinner/overlay on the outer widget */
body.mme-category-archive.mme-ca-filtering .elementor-widget-wd_archive_products::before,
body.mme-category-archive.mme-ca-filtering .elementor-widget-wd_archive_products::after {
    content: none !important;
    display: none !important;
    animation: none !important;
}

@keyframes mme-ca-spin {
    to {
        transform: rotate(360deg);
    }
}

body.mme-category-archive .wpc-filters-overlay,
html.is-active .wpc-filters-overlay {
    background: rgb(0 0 0 / 40%) !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* During filtering we only want the spinner on the products container (not whole-page dim). */
body.mme-category-archive.mme-ca-filtering .wpc-filters-overlay,
html.is-active body.mme-category-archive.mme-ca-filtering .wpc-filters-overlay {
    background: transparent !important;
    opacity: 0 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    pointer-events: none !important;
}

/* -------------------------------------------------------------------------
   Header / title / breadcrumbs
   H1 lives in a raw Elementor container (not .elementor-widget-heading).
   ------------------------------------------------------------------------- */

/* Kill Elementor boxed max-width / chrome around the archive title */
body.mme-category-archive.mme-ca-no-elementor-chrome .e-con-boxed:has(h1.elementor-heading-title),
body.mme-category-archive.mme-ca-no-elementor-chrome .e-con-inner:has(h1.elementor-heading-title),
body.mme-category-archive.mme-ca-no-elementor-chrome .e-con:has(> h1.elementor-heading-title) {
    --container-max-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.mme-category-archive .e-con:has(> h1.elementor-heading-title),
body.mme-category-archive .elementor-element:has(> h1.elementor-heading-title),
body.mme-category-archive .elementor-widget-heading:has(h1.elementor-heading-title),
body.mme-category-archive .elementor-widget-heading:has(h1.elementor-heading-title) .elementor-widget-container,
body.mme-category-archive .page-title,
body.mme-category-archive .wd-page-title,
body.mme-category-archive .woocommerce-products-header {
    position: static !important;
    left: auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 0.9rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible;
}

body.mme-category-archive h1.elementor-heading-title,
body.mme-category-archive .elementor-widget-heading h1.elementor-heading-title,
body.mme-category-archive .woocommerce-products-header__title,
body.mme-category-archive .page-title .entry-title,
body.mme-category-archive .page-title .title,
body.mme-category-archive .mme-ca-title-stack h1.entry-title,
body.mme-category-archive .wd-woo-page-title h1.entry-title,
body.mme-category-archive h1.mme-ca-title-heading {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.55rem;
    width: auto;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--mme-ca-font) !important;
    font-size: var(--mme-ca-title-size) !important;
    font-weight: 800 !important;
    line-height: var(--mme-ca-title-lh) !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    text-align: start !important;
    justify-content: flex-start !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: none !important;
    background-image: none !important;
    color: #1e2732 !important;
    -webkit-text-fill-color: currentColor !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

/* Before JS wraps the name in .mme-ca-gold-title, paint the same silver gradient on the bare H1 */
body.mme-category-archive h1.elementor-heading-title:not(:has(.mme-ca-gold-title)),
body.mme-category-archive .elementor-widget-heading h1.elementor-heading-title:not(:has(.mme-ca-gold-title)),
body.mme-category-archive .mme-ca-title-stack h1.entry-title:not(:has(.mme-ca-gold-title)),
body.mme-category-archive .wd-woo-page-title h1.entry-title:not(:has(.mme-ca-gold-title)) {
    background: linear-gradient(
        100deg,
        #4b5563 0%,
        #6b7280 18%,
        #9aa3ad 42%,
        #d8dce2 58%,
        #8a919c 78%,
        #5b6470 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* Silver gradient on category title name */
body.mme-category-archive .mme-ca-gold-title,
body.mme-category-archive .mme-ca-silver-title {
    display: inline;
    margin: 0;
    padding: 0;
    font: inherit;
    font-weight: 800;
    letter-spacing: inherit;
    line-height: inherit;
    background: linear-gradient(
        100deg,
        #4b5563 0%,
        #6b7280 18%,
        #9aa3ad 42%,
        #d8dce2 58%,
        #8a919c 78%,
        #5b6470 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    body.mme-category-archive .mme-ca-gold-title,
    body.mme-category-archive .mme-ca-silver-title {
        color: #6b7280 !important;
        -webkit-text-fill-color: #6b7280 !important;
        background: none !important;
    }
}

body.mme-category-archive .mme-ca-title-count {
    display: inline;
    flex: 0 0 auto;
    font-size: 0.62em;
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: 1;
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    background: none !important;
}

body.mme-category-archive h1 .mme-ca-title-brands,
body.mme-category-archive .mme-ca-title-brands {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: auto;
    /* Reserve logo-row height before JS fills logos (CLS). */
    min-height: var(--mme-ca-brand-logo-h);
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: middle;
}

/* Early skeleton while deferred JS builds the real brands row */
body.mme-category-archive .mme-ca-title-brands--skeleton {
    display: block;
    width: 100%;
    min-height: var(--mme-ca-brand-logo-h);
    pointer-events: none;
}

body.mme-category-archive .mme-ca-title-brands__label {
    display: none;
}

body.mme-category-archive .mme-ca-title-brands__label-line {
    display: block;
}

body.mme-category-archive .mme-ca-title-brands__label-arrow {
    display: none;
}

body.mme-category-archive .mme-ca-title-brands__scroller {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

body.mme-category-archive .mme-ca-title-brands__list {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    max-width: none;
}

body.mme-category-archive .mme-ca-title-brands.is-expanded .mme-ca-title-brands__scroller {
    overflow: visible;
}

body.mme-category-archive .mme-ca-title-brands.is-expanded .mme-ca-title-brands__list {
    flex-wrap: wrap;
    max-width: 100%;
}

body.mme-category-archive .mme-ca-title-brands__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--mme-ca-brand-logo-h);
    height: var(--mme-ca-brand-logo-h);
    padding: 0.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(26 35 50 / 4%);
    transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

body.mme-category-archive .mme-ca-title-brands__item.is-overflow-hidden {
    display: none !important;
}

body.mme-category-archive a.mme-ca-title-brands__item:hover,
body.mme-category-archive a.mme-ca-title-brands__item:focus-visible {
    border-color: #d4b56a;
    box-shadow: 0 2px 8px rgb(200 146 42 / 14%);
    transform: translateY(-1px);
    outline: none;
}

body.mme-category-archive .mme-ca-title-brands__item.is-featured {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #f8e7b0, #c8922a, #8f6a14, #e8c76a) border-box;
    box-shadow: 0 2px 10px rgb(200 146 42 / 18%);
}

body.mme-category-archive .mme-ca-title-brands__item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

body.mme-category-archive .mme-ca-title-brands__more {
    display: none;
}

body.mme-category-archive .mme-ca-title-brands__next {
    display: none;
}

/* Keep title + brand logos on one desktop row when brands sit beside the heading */
body.mme-category-archive .mme-ca-title-stack > .e-con:has(h1.elementor-heading-title),
body.mme-category-archive .mme-ca-title-stack > .elementor-element:has(h1.elementor-heading-title) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
}

body.mme-category-archive .mme-ca-title-stack > .e-con:has(h1.elementor-heading-title) > .elementor-widget-heading,
body.mme-category-archive .mme-ca-title-stack > .elementor-element:has(h1.elementor-heading-title) > .elementor-widget-heading {
    flex: 0 1 auto;
    width: auto !important;
    max-width: 100%;
}

body.mme-category-archive .mme-ca-title-stack > .e-con:has(h1.elementor-heading-title) > .mme-ca-title-brands,
body.mme-category-archive .mme-ca-title-stack > .elementor-element:has(h1.elementor-heading-title) > .mme-ca-title-brands {
    flex: 1 1 auto;
    min-width: 0;
}

/* Legacy empty wrapper from earlier layout — hide if still present */
body.mme-category-archive .mme-ca-title-row:empty {
    display: none !important;
}

body.mme-category-archive h1.elementor-heading-title::after,
body.mme-category-archive .woocommerce-products-header__title::after,
body.mme-category-archive .page-title .entry-title::after,
body.mme-category-archive .page-title .title::after {
    content: none !important;
    display: none !important;
}

/* Soft-disable Elementor archive chrome (beige panels, boxed cards) */
body.mme-category-archive.mme-ca-no-elementor-chrome .elementor-98255 .e-con[data-settings*="background"],
body.mme-category-archive.mme-ca-no-elementor-chrome aside.e-con.wd-col-offcanvas-md-sm,
body.mme-category-archive.mme-ca-no-elementor-chrome .elementor-98255 .e-con.e-child[style*="background"],
body.mme-category-archive.mme-ca-no-elementor-chrome .elementor-98255 .wd-col-offcanvas-md-sm {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.mme-category-archive.mme-ca-no-elementor-chrome .elementor-98255 .e-con-boxed > .e-con-inner {
    max-width: 100% !important;
    width: 100% !important;
}

body.mme-category-archive.mme-ca-no-elementor-chrome .elementor-98255 .e-con {
    --container-max-width: 100%;
}

/* -------------------------------------------------------------------------
   Breadcrumbs + title — open stack, gold H1, no navy card
   ------------------------------------------------------------------------- */

body.mme-category-archive .mme-ca-title-stack {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 0.25rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
    text-align: start !important;
}

body.mme-category-archive .e-con:has(> .mme-ca-title-stack),
body.mme-category-archive .e-con:has(.mme-ca-title-stack) {
    text-align: start !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

body.mme-category-archive .mme-ca-title-stack > .elementor-widget-wd_wc_breadcrumb,
body.mme-category-archive .mme-ca-title-stack > .mme-ca-breadcrumb-placed {
    margin-bottom: 0 !important;
}

body.mme-category-archive .mme-ca-title-stack .elementor-widget-heading,
body.mme-category-archive .mme-ca-title-stack .elementor-element:has(> h1.elementor-heading-title),
body.mme-category-archive .mme-ca-title-stack > .e-con:has(h1.elementor-heading-title),
body.mme-category-archive .mme-ca-title-stack > .elementor-element:has(h1.elementor-heading-title),
body.mme-category-archive .mme-ca-title-stack > .elementor-widget-wd_shop_archive_woocommerce_title,
body.mme-category-archive .mme-ca-title-stack .elementor-widget-wd_shop_archive_woocommerce_title,
body.mme-category-archive .elementor-widget-heading:has(h1.mme-ca-title-heading) {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: start !important;
    justify-content: flex-start !important;
    align-self: start;
}

body.mme-category-archive .mme-ca-title-stack + .elementor-widget-woocommerce-archive-description,
body.mme-category-archive .e-con:has(.mme-ca-title-stack) + .e-con:has(.elementor-widget-woocommerce-archive-description),
body.mme-category-archive .e-con:has(.mme-ca-title-stack) .elementor-widget-woocommerce-archive-description {
    margin-top: 0 !important;
}

body.mme-category-archive .mme-ca-title-stack h1.elementor-heading-title,
body.mme-category-archive .mme-ca-title-stack h1.entry-title,
body.mme-category-archive .mme-ca-title-stack h1.mme-ca-title-heading {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: 100% !important;
    background: none !important;
    background-image: none !important;
    color: #1e2732 !important;
    -webkit-text-fill-color: currentColor !important;
    text-align: start !important;
    justify-content: flex-start !important;
}

/* Brand archive: logo sits left of the brand title */
body.mme-category-archive .mme-ca-title-main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    max-width: 100%;
}

body.mme-category-archive .mme-ca-title-brand-logo {
    display: block;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: var(--mme-ca-brand-logo-h);
    height: var(--mme-ca-brand-logo-h);
    padding: 0.28rem;
    object-fit: contain;
    object-position: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

body.mme-category-archive .mme-ca-title-main > .elementor-widget,
body.mme-category-archive .mme-ca-title-main > .elementor-element {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 !important;
    width: auto !important;
}

/* Category chips without thumbnails (text tiles) */
body.mme-category-archive .mme-ca-title-brands__item.is-text {
    width: auto;
    min-width: var(--mme-ca-brand-logo-h);
    max-width: 8.5rem;
    padding: 0.35rem 0.55rem;
}

body.mme-category-archive .mme-ca-title-brands__item-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #1e2732;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-align: center;
    word-break: break-word;
}

body.mme-category-archive .mme-ca-title-brands--categories .mme-ca-title-brands__item img {
    object-fit: contain;
}

/* Desktop: title left + brand logos beside it (same row) */
@media (min-width: 1025px) {
    body.mme-category-archive .mme-ca-title-stack {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "breadcrumb breadcrumb"
            "title brands";
        align-items: center;
        column-gap: 0.85rem;
        row-gap: 0.9rem;
        justify-items: start;
    }

    body.mme-category-archive .mme-ca-title-stack > .elementor-widget-wd_wc_breadcrumb,
    body.mme-category-archive .mme-ca-title-stack > .mme-ca-breadcrumb-placed {
        grid-area: breadcrumb;
        width: 100% !important;
    }

    body.mme-category-archive .mme-ca-title-stack > .e-con:has(h1.elementor-heading-title),
    body.mme-category-archive .mme-ca-title-stack > .elementor-element:has(h1.elementor-heading-title),
    body.mme-category-archive .mme-ca-title-stack > .elementor-widget-heading,
    body.mme-category-archive .mme-ca-title-stack > .elementor-widget-wd_shop_archive_woocommerce_title,
    body.mme-category-archive .mme-ca-title-stack > .mme-ca-title-main,
    body.mme-category-archive .mme-ca-title-stack > .mme-ca-title-main > .e-con:has(h1.elementor-heading-title),
    body.mme-category-archive .mme-ca-title-stack > .mme-ca-title-main > .elementor-widget-heading,
    body.mme-category-archive .mme-ca-title-stack > .mme-ca-title-main > .elementor-widget-wd_shop_archive_woocommerce_title {
        grid-area: title;
        width: auto !important;
        max-width: max-content !important;
    }

    body.mme-category-archive .mme-ca-title-stack > .mme-ca-title-brands,
    body.mme-category-archive .mme-ca-title-stack > .mme-ca-title-main > .mme-ca-title-brands {
        grid-area: brands;
        display: inline-flex !important;
        flex-wrap: nowrap;
        align-items: center;
        flex: 1 1 auto;
        width: auto !important;
        max-width: 100%;
        min-width: 0;
        margin: 0 !important;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    body.mme-category-archive .mme-ca-title-stack > .mme-ca-title-main {
        grid-area: title;
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.75rem;
        width: auto !important;
        max-width: 100%;
    }

    body.mme-category-archive .mme-ca-title-stack h1.elementor-heading-title,
    body.mme-category-archive .mme-ca-title-stack h1.entry-title,
    body.mme-category-archive .mme-ca-title-stack h1.mme-ca-title-heading {
        width: auto !important;
        max-width: max-content !important;
        flex-wrap: nowrap;
    }

    body.mme-category-archive .mme-ca-title-brands__scroller {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    body.mme-category-archive .mme-ca-title-brands__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        max-width: none;
    }

    body.mme-category-archive .mme-ca-title-brands.is-expanded .mme-ca-title-brands__list {
        flex-wrap: wrap;
        width: auto;
        max-width: 100%;
    }

    body.mme-category-archive .mme-ca-title-stack > .mme-ca-title-brands.is-expanded,
    body.mme-category-archive .mme-ca-title-stack > .mme-ca-title-main > .mme-ca-title-brands.is-expanded {
        align-items: flex-start;
    }

    body.mme-category-archive .mme-ca-title-brands__more {
        order: 2;
        display: none;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        box-sizing: border-box;
        height: var(--mme-ca-brand-logo-h);
        margin: 0;
        padding: 0 0.85rem;
        border: 1px solid color-mix(in srgb, var(--mme-ca-accent, #c8922a) 42%, #e5e7eb);
        border-radius: 10px;
        background: #fff;
        color: var(--mme-ca-accent-dark, #9a6f1a);
        font-family: var(--mme-ca-font);
        font-size: 0.78rem;
        font-weight: 750;
        letter-spacing: 0.01em;
        line-height: 1.2;
        white-space: nowrap;
        cursor: pointer;
        box-shadow: 0 1px 2px rgb(26 35 50 / 4%);
        transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
    }

    body.mme-category-archive .mme-ca-title-brands.has-overflow .mme-ca-title-brands__more,
    body.mme-category-archive .mme-ca-title-brands.is-expanded .mme-ca-title-brands__more {
        display: inline-flex;
    }

    body.mme-category-archive .mme-ca-title-brands__more:hover,
    body.mme-category-archive .mme-ca-title-brands__more:focus-visible {
        border-color: var(--mme-ca-accent, #c8922a);
        background: color-mix(in srgb, var(--mme-ca-accent, #c8922a) 10%, #fff);
        outline: none;
        box-shadow: 0 2px 8px rgb(200 146 42 / 14%);
    }

    body.mme-category-archive .mme-ca-title-brands__label {
        order: 3;
        display: inline-flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        box-sizing: border-box;
        width: auto;
        min-width: 0;
        max-width: 11.5rem;
        height: var(--mme-ca-brand-logo-h);
        margin: 0;
        padding: 0.35rem 0.8rem 0.35rem 0.7rem;
        border: 1px solid #e8eaee;
        border-radius: 10px;
        background: #f8f9fb;
        color: #1e2732;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.01em;
        line-height: 1.15;
        text-align: start;
        white-space: normal;
        gap: 0.45rem;
    }

    body.mme-category-archive .mme-ca-title-brands__label-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.04rem;
        min-width: 0;
        order: 2;
    }

    body.mme-category-archive .mme-ca-title-brands__label-line {
        display: block;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: start;
    }

    body.mme-category-archive .mme-ca-title-brands__label-arrow {
        display: block;
        flex: 0 0 auto;
        order: 1;
        width: 0.45rem;
        height: 0.45rem;
        margin-top: 0.05rem;
        border-right: 2px solid var(--mme-ca-accent, #c8922a);
        border-bottom: 2px solid var(--mme-ca-accent, #c8922a);
        transform: rotate(135deg);
    }

    body.mme-category-archive .mme-ca-title-brands__next {
        display: none !important;
    }
}

body.mme-category-archive .elementor-widget-wd_wc_breadcrumb.mme-ca-breadcrumb-placed {
    order: -1;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
}

/* Breadcrumbs always start on the left (Elementor text-right must not win) */
body.mme-category-archive .elementor-widget-wd_wc_breadcrumb,
body.mme-category-archive .elementor-widget-wd_wc_breadcrumb.text-right,
body.mme-category-archive .elementor-widget-wd_wc_breadcrumb.text-center,
body.mme-category-archive .mme-ca-title-stack > .elementor-widget-wd_wc_breadcrumb,
body.mme-category-archive .mme-ca-title-stack > .mme-ca-breadcrumb-placed {
    text-align: left !important;
    justify-content: flex-start !important;
    justify-self: start !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.mme-category-archive .elementor-widget-wd_wc_breadcrumb .elementor-widget-container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.mme-category-archive .elementor-widget-wd_wc_breadcrumb,
body.mme-category-archive .elementor-widget-wd_shop_archive_result_count,
body.mme-category-archive .wd-shop-result-count {
    margin: 0 !important;
    max-width: 100%;
}

body.mme-category-archive .elementor-widget-wd_wc_breadcrumb .elementor-widget-container,
body.mme-category-archive .elementor-widget-wd_shop_archive_result_count .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.mme-category-archive .woocommerce-breadcrumb,
body.mme-category-archive .wd-breadcrumbs,
body.mme-category-archive nav.woocommerce-breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem 0.1rem;
    margin: 0;
    margin-right: auto;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--mme-ca-border) !important;
    border-radius: var(--mme-ca-radius);
    background: #fff !important;
    color: #8a919c;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    width: auto;
    max-width: 100%;
    box-shadow: 0 1px 2px rgb(26 35 50 / 4%);
    box-sizing: border-box;
    text-align: left !important;
    float: none !important;
}

body.mme-category-archive .woocommerce-breadcrumb a,
body.mme-category-archive .wd-breadcrumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    margin: 0;
    padding: 0.2rem 0.45rem;
    border: 0 !important;
    border-radius: 6px;
    background: transparent !important;
    color: #5b6575 !important;
    font-weight: 650;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: color 140ms ease, background-color 140ms ease;
}

body.mme-category-archive .woocommerce-breadcrumb a:hover,
body.mme-category-archive .woocommerce-breadcrumb a:focus-visible,
body.mme-category-archive .wd-breadcrumbs a:hover,
body.mme-category-archive .wd-breadcrumbs a:focus-visible {
    color: var(--mme-ca-accent-dark, #9a6f1a) !important;
    background: color-mix(in srgb, var(--mme-ca-accent, #c8922a) 12%, #fff) !important;
    outline: none;
    text-decoration: none !important;
}

body.mme-category-archive .woocommerce-breadcrumb .wd-delimiter,
body.mme-category-archive .wd-breadcrumbs .wd-delimiter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    margin: 0 0.15rem;
    padding: 0;
    color: transparent;
    font-size: 0;
    line-height: 1;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a3a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.7rem;
    flex: 0 0 auto;
}

body.mme-category-archive .woocommerce-breadcrumb .wd-delimiter::before,
body.mme-category-archive .woocommerce-breadcrumb .wd-delimiter::after,
body.mme-category-archive .wd-breadcrumbs .wd-delimiter::before {
    content: none !important;
    display: none !important;
}

body.mme-category-archive .woocommerce-breadcrumb .wd-last,
body.mme-category-archive .wd-breadcrumbs .wd-last {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--mme-ca-accent, #c8922a) 14%, #fff);
    color: var(--mme-ca-accent-dark, #9a6f1a) !important;
    font-weight: 800;
}

body.mme-category-archive .elementor-widget-text-editor .elementor-widget-container {
    padding: 1rem 1.15rem;
    background: var(--mme-ca-card);
    border: 1px solid var(--mme-ca-border);
    border-radius: var(--mme-ca-radius);
    box-shadow: var(--mme-ca-shadow);
    color: var(--mme-ca-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

body.mme-category-archive .content-area,
body.mme-category-archive .wd-content-area {
    padding-bottom: 2.5rem;
}

/* -------------------------------------------------------------------------
   Toolbar: result count + sort + filters
   ------------------------------------------------------------------------- */

body.mme-category-archive .shop-loop-head,
body.mme-category-archive .elementor-widget-wd_shop_archive_orderby .elementor-widget-container {
    background: var(--mme-ca-card);
    border: 1px solid var(--mme-ca-border);
    border-radius: 8px;
    box-shadow: none;
}

body.mme-category-archive .shop-loop-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.85rem;
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    background: #fff;
    border: 1px solid var(--mme-ca-border);
    border-radius: 8px;
}

body.mme-category-archive .shop-loop-head .wd-shop-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

body.mme-category-archive .woocommerce-result-count,
body.mme-category-archive .elementor-widget-wd_shop_archive_result_count .woocommerce-result-count {
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.4;
    white-space: nowrap;
}

/* Prefer toolbar pill styles when count lives in chips row */
body.mme-category-archive .mme-ca-toolbar-count .woocommerce-result-count,
body.mme-category-archive .mme-ca-result-placed .woocommerce-result-count {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.4rem 0.85rem;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #f8f9fb !important;
    color: #1e2732;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

body.mme-category-archive .woocommerce-result-count .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.mme-category-archive .woocommerce-ordering {
    margin: 0;
    min-width: 0;
}

body.mme-category-archive .woocommerce-ordering select,
body.mme-category-archive .orderby {
    min-height: 2.5rem;
    max-width: 100%;
    padding: 0.45rem 2.1rem 0.45rem 0.85rem;
    border: 1px solid var(--mme-ca-border);
    border-radius: 999px;
    background-color: var(--mme-ca-surface);
    color: var(--mme-ca-text);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 650;
    cursor: pointer;
    appearance: none;
}

body.mme-category-archive .woocommerce-ordering select:hover,
body.mme-category-archive .woocommerce-ordering select:focus-visible {
    border-color: color-mix(in srgb, var(--mme-ca-accent) 55%, var(--mme-ca-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mme-ca-accent) 16%, transparent);
    outline: none;
}

/* Custom glass sort control */
body.mme-category-archive .mme-ca-sort {
    position: relative;
    z-index: 20;
}

body.mme-category-archive .mme-ca-sort > select.orderby,
body.mme-category-archive .mme-ca-sort > select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.mme-category-archive .mme-ca-sort__wrap {
    position: relative;
    width: 100%;
}

body.mme-category-archive .mme-ca-sort__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.65rem;
    padding: 0.45rem 0.85rem 0.45rem 0.95rem;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 12px;
    background: linear-gradient(
        160deg,
        rgb(255 255 255 / 78%) 0%,
        rgb(248 250 252 / 62%) 100%
    );
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 75%) inset,
        0 2px 10px rgb(26 35 50 / 8%);
    color: #1e2732;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: start;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

body.mme-category-archive .mme-ca-sort__trigger:hover,
body.mme-category-archive .mme-ca-sort__trigger:focus-visible {
    border-color: color-mix(in srgb, var(--mme-ca-accent, #c8922a) 55%, #d5dae1);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 80%) inset,
        0 0 0 3px color-mix(in srgb, var(--mme-ca-accent, #c8922a) 16%, transparent);
    outline: none;
}

body.mme-category-archive .mme-ca-sort.is-open .mme-ca-sort__trigger {
    border-color: color-mix(in srgb, var(--mme-ca-accent, #c8922a) 60%, #d5dae1);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

body.mme-category-archive .mme-ca-sort__label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.mme-category-archive .mme-ca-sort__chevron {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform 160ms ease;
}

body.mme-category-archive .mme-ca-sort.is-open .mme-ca-sort__chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

body.mme-category-archive .mme-ca-sort__panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    inset-inline: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
    padding: 0.4rem;
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 14px;
    background: linear-gradient(
        165deg,
        rgb(255 255 255 / 86%) 0%,
        rgb(248 250 252 / 76%) 100%
    );
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    backdrop-filter: blur(16px) saturate(1.35);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 70%) inset,
        0 14px 36px rgb(26 35 50 / 16%);
}

body.mme-category-archive .mme-ca-sort__panel[hidden] {
    display: none !important;
}

body.mme-category-archive .mme-ca-sort__option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1e2732;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: start;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}

body.mme-category-archive .mme-ca-sort__option:hover,
body.mme-category-archive .mme-ca-sort__option:focus-visible {
    background: color-mix(in srgb, var(--mme-ca-accent, #c8922a) 14%, #fff);
    color: #1a2332;
    outline: none;
}

body.mme-category-archive .mme-ca-sort__option.is-selected {
    background: linear-gradient(
        135deg,
        #9a6f1a 0%,
        #c8922a 28%,
        #e8c45a 62%,
        #f4e08a 100%
    );
    color: #1a2332;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgb(255 244 171 / 45%);
}

body.mme-category-archive .wd-off-canvas-btn > a,
body.mme-category-archive .wd-sidebar-opener > a,
body.mme-category-archive a.wpc-filters-open-widget {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.65rem;
    padding: 0.5rem 1.05rem;
    border: 1px solid #d5dae1 !important;
    border-radius: 10px;
    background: #fff !important;
    background-image: none !important;
    color: #1e2732 !important;
    font-size: 0.875rem;
    font-weight: 750;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgb(26 35 50 / 5%);
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

body.mme-category-archive .wd-off-canvas-btn > a:hover,
body.mme-category-archive .wd-off-canvas-btn > a:focus-visible,
body.mme-category-archive a.wpc-filters-open-widget:hover,
body.mme-category-archive a.wpc-filters-open-widget:focus-visible {
    border-color: #c0c6d0 !important;
    background: #f5f6f8 !important;
    background-image: none !important;
    color: #1e2732 !important;
    box-shadow: 0 2px 6px rgb(26 35 50 / 8%);
    outline: none;
}

/* -------------------------------------------------------------------------
   Product grid — Digikala-style cards
   ------------------------------------------------------------------------- */

body.mme-category-archive {
    --mme-ca-dk-border: #e0e0e2;
    --mme-ca-dk-muted: #81858b;
    --mme-ca-dk-text: #0c0c0c;
    --mme-ca-dk-info: #f7f7f8;
    --wd-star-color: #c8922a;
    --wd-empty-star-color: #d7dde6;
    --wd-primary-color: #c8922a;
}

body.mme-category-archive ul.products,
body.mme-category-archive .wd-products,
body.mme-category-archive .products.elements-grid {
    --wd-gap: 0.85rem;
    gap: 0.85rem;
    max-width: 100%;
    align-items: stretch;
}

body.mme-category-archive ul.products li.product,
body.mme-category-archive .wd-product,
body.mme-category-archive .product-grid-item {
    height: 100%;
    max-width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
}

body.mme-category-archive ul.products li.product:hover,
body.mme-category-archive .wd-product:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

body.mme-category-archive .wd-product .wd-product-wrapper,
body.mme-category-archive .wd-product .product-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mme-ca-dk-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgb(12 12 12 / 4%);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.mme-category-archive .wd-product:hover .wd-product-wrapper,
body.mme-category-archive .wd-product:hover .product-wrapper {
    border-color: #cfcfd3;
    box-shadow: 0 8px 20px rgb(12 12 12 / 8%);
    transform: translateY(-2px);
}

/* Featured brand products — thick golden gradient border */
body.mme-category-archive .wd-product.mme-ca-featured-brand .wd-product-wrapper,
body.mme-category-archive .wd-product.mme-ca-featured-brand .product-wrapper {
    border: 3px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(
            135deg,
            #f8e7b0 0%,
            #e0b34a 22%,
            #c8922a 48%,
            #8f6a14 72%,
            #e8c76a 100%
        ) border-box;
    box-shadow:
        0 0 0 1px rgba(200, 146, 42, 0.28),
        0 10px 24px rgba(170, 120, 20, 0.14);
}

body.mme-category-archive .wd-product.mme-ca-featured-brand:hover .wd-product-wrapper,
body.mme-category-archive .wd-product.mme-ca-featured-brand:hover .product-wrapper {
    border-color: transparent;
    box-shadow:
        0 0 0 1px rgba(200, 146, 42, 0.4),
        0 14px 28px rgba(170, 120, 20, 0.2);
}

body.mme-category-archive .wd-product .wd-product-card-bg,
body.mme-category-archive .wd-product .content-product-imagin {
    display: none !important;
}

body.mme-category-archive .wd-product .wd-product-thumb,
body.mme-category-archive .wd-product .product-element-top {
    flex: 0 0 auto !important;
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 220px;
    margin: 0 !important;
    padding: 12px !important;
    background: #fff;
    border-radius: 0;
    /* Reserve square space before images paint (CLS). */
    contain-intrinsic-size: 220px 220px;
}

/* Prefer content stability over hover lift for CWV / reduced motion */
@media (prefers-reduced-motion: reduce) {
    body.mme-category-archive .wd-product:hover .wd-product-wrapper,
    body.mme-category-archive .wd-product:hover .product-wrapper,
    body.mme-category-archive .mme-ca-title-brands__item:hover {
        transform: none !important;
    }
}

body.mme-category-archive .wd-product .product-image-link,
body.mme-category-archive .wd-product .wd-product-img-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

body.mme-category-archive .wd-product .product-image-link img,
body.mme-category-archive .wd-product .wd-product-thumb img,
body.mme-category-archive .wd-product .attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: none;
}

body.mme-category-archive .wd-product .product-element-bottom,
body.mme-category-archive .wd-product .product-information,
body.mme-category-archive .wd-product .wd-entities-wrapper {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 10px 12px 12px !important;
    background: var(--mme-ca-dk-info) !important;
    min-height: 0 !important;
    text-align: center !important;
}

/* Keep stock / CTA at the bottom so shorter cards don’t leave white voids */
body.mme-category-archive .wd-product .product-element-bottom > .shyguy-pm-in-stock-badge,
body.mme-category-archive .wd-product .product-element-bottom > .wd-add-btn,
body.mme-category-archive .wd-product .product-element-bottom > .wd-bottom-actions,
body.mme-category-archive .wd-product .product-information > .shyguy-pm-in-stock-badge,
body.mme-category-archive .wd-product .wd-entities-wrapper > .shyguy-pm-in-stock-badge {
    margin-top: auto !important;
}

/* Hide category links on archive cards */
body.mme-category-archive .wd-product-cats,
body.mme-category-archive .wd-product .posted_in,
body.mme-category-archive ul.products li.product .wd-product-cats,
body.mme-category-archive .wd-entities-title + .wd-product-cats {
    display: none !important;
}

/* Brand logos — prefer image over text name */
body.mme-category-archive .pwb-brands-in-loop,
body.mme-category-archive .wd-product-brands,
body.mme-category-archive .wd-product-brands-links,
body.mme-category-archive .wd-product .brands-list {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center !important;
    gap: 0.35rem;
    width: 100%;
    margin: 0.15rem 0 0.35rem !important;
    padding: 0 !important;
    list-style: none;
    text-align: center;
    min-height: 2.75rem;
}

body.mme-category-archive .pwb-brands-in-loop a,
body.mme-category-archive .wd-product-brands a,
body.mme-category-archive .wd-product-brands-links a,
body.mme-category-archive .pwb-brands-in-loop span,
body.mme-category-archive .pwb-brands-in-loop li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mme-ca-dk-muted) !important;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none !important;
    line-height: 1.35;
}

body.mme-category-archive .pwb-brands-in-loop img,
body.mme-category-archive .wd-product-brands img {
    display: block;
    max-height: 2.75rem;
    max-width: 7.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
}

/* Title */
body.mme-category-archive .wd-product .wd-entities-title,
body.mme-category-archive .wd-product .product-title,
body.mme-category-archive .wd-product .woocommerce-loop-product__title {
    width: 100%;
    margin: 0 0 2px !important;
    padding: 0 !important;
    text-align: center !important;
}

body.mme-category-archive .wd-product .wd-entities-title a,
body.mme-category-archive ul.products li.product .woocommerce-loop-product__title,
body.mme-category-archive .wd-product .woocommerce-loop-product__title a {
    color: var(--mme-ca-dk-text);
    font-family: var(--mme-ca-font);
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.mme-category-archive .wd-product .wd-entities-title a:hover,
body.mme-category-archive .wd-product .woocommerce-loop-product__title a:hover {
    color: var(--mme-ca-accent-dark);
}

/* Gold stars + review count — count sits immediately right of stars */
body.mme-category-archive .star-rating,
body.mme-category-archive .wd-star-rating .star-rating,
body.mme-category-archive .wd-product .star-rating,
body.mme-category-archive .wd-loop-prod-rating .star-rating {
    color: #c8922a !important;
    --wd-star-color: #c8922a !important;
    --wd-empty-star-color: #d7dde6 !important;
    font-size: 12px !important;
    flex: 0 0 auto !important;
    order: 0 !important;
    width: 5.2em !important;
    margin: 0 !important;
}

body.mme-category-archive .star-rating:before {
    color: #d7dde6 !important;
}

body.mme-category-archive .star-rating span:before,
body.mme-category-archive .star-rating > span:before {
    color: #c8922a !important;
}

body.mme-category-archive .wd-loop-prod-rating,
body.mme-category-archive .wd-product-rating,
body.mme-category-archive .wd-star-rating,
body.mme-category-archive .wd-product .woocommerce-product-rating {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    width: 100%;
    margin: 2px 0 0 !important;
    text-align: center !important;
}

body.mme-category-archive .wd-loop-prod-rating .woocommerce-review-link,
body.mme-category-archive .wd-product .woocommerce-review-link,
body.mme-category-archive .wd-star-rating .woocommerce-review-link,
body.mme-category-archive .star-rating + .woocommerce-review-link {
    flex: 0 0 auto !important;
    order: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--mme-ca-dk-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.mme-category-archive .wd-loop-prod-rating .woocommerce-review-link:hover,
body.mme-category-archive .wd-product .woocommerce-review-link:hover {
    color: var(--mme-ca-accent-dark) !important;
}

body.mme-category-archive .wd-product .price,
body.mme-category-archive .wd-product .wrapp-product-price,
body.mme-category-archive .wd-product .price-wrapper,
body.mme-category-archive ul.products li.product .price {
    width: 100%;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    color: var(--mme-ca-dk-text);
    font-weight: 700;
    font-size: 15px !important;
    line-height: 1.3;
}

body.mme-category-archive .wd-product .price del {
    color: var(--mme-ca-dk-muted);
    font-size: 12px !important;
    font-weight: 500;
    opacity: 0.75;
}

body.mme-category-archive .wd-product .price ins {
    color: var(--mme-ca-accent-dark);
    text-decoration: none;
}

body.mme-category-archive .wd-product .wd-add-btn,
body.mme-category-archive .wd-product .wd-bottom-actions,
body.mme-category-archive .wd-product .wrapp-swatches,
body.mme-category-archive .wd-product .wd-buttons {
    margin-top: 6px !important;
    justify-content: center;
}

/* Soften Elementor chrome on archive */
body.mme-category-archive .elementor-element,
body.mme-category-archive .e-con,
body.mme-category-archive .e-con-inner {
    --padding-top: 0px;
}

body.mme-category-archive .elementor-widget:not(:last-child) {
    margin-bottom: 0.85rem;
}

body.mme-category-archive .elementor-widget-container {
    transition: none;
}

body.mme-category-archive .woocommerce-pagination ul.page-numbers,
body.mme-category-archive .wd-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    max-width: 100%;
}

body.mme-category-archive .woocommerce-pagination a.page-numbers,
body.mme-category-archive .woocommerce-pagination span.page-numbers,
body.mme-category-archive .wd-pagination a,
body.mme-category-archive .wd-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--mme-ca-border);
    border-radius: 999px;
    background: #fff;
    color: var(--mme-ca-text);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
}

/* Pagination — one arrow only (kill WoodMart icon + text double arrows) */
body.mme-category-archive .woocommerce-pagination .page-numbers.next::before,
body.mme-category-archive .woocommerce-pagination .page-numbers.prev::before,
body.mme-category-archive .woocommerce-pagination .page-numbers.next::after,
body.mme-category-archive .woocommerce-pagination .page-numbers.prev::after,
body.mme-category-archive .wd-pagination .next::before,
body.mme-category-archive .wd-pagination .prev::before,
body.mme-category-archive .wd-pagination .next::after,
body.mme-category-archive .wd-pagination .prev::after {
    content: none !important;
    display: none !important;
}

body.mme-category-archive .woocommerce-pagination .page-numbers.next,
body.mme-category-archive .woocommerce-pagination .page-numbers.prev {
    font-size: 1rem;
    line-height: 1;
}

/* Category intro — tight under title, no separator, minimal gap before products */
body.mme-category-archive .elementor-widget-woocommerce-archive-description,
body.mme-category-archive .elementor-widget-woocommerce-archive-description.elementor-widget__width-initial {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    --container-widget-width: 100%;
    --container-widget-flex-grow: 1;
}

body.mme-category-archive .elementor-widget-woocommerce-archive-description .term-description,
body.mme-category-archive .term-description,
body.mme-category-archive .wd-term-description {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.2rem 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

body.mme-category-archive .elementor-widget-woocommerce-archive-description .term-description::before,
body.mme-category-archive .term-description::before,
body.mme-category-archive .wd-term-description::before,
body.mme-category-archive .elementor-widget-woocommerce-archive-description .term-description::after,
body.mme-category-archive .term-description::after,
body.mme-category-archive .wd-term-description::after {
    content: none !important;
    display: none !important;
}

body.mme-category-archive .elementor-widget-woocommerce-archive-description .term-description p,
body.mme-category-archive .term-description p {
    position: relative;
    z-index: 1;
    display: inline;
    margin: 0;
    width: auto;
    max-width: none !important;
    color: #4b5563;
    font-weight: 500;
    letter-spacing: 0.005em;
}

body.mme-category-archive .elementor-widget-woocommerce-archive-description .wpc-custom-selected-terms {
    display: none !important;
}

/* Inline “Read more” — site accent gold */
body.mme-category-archive .mme-ca-intro-readmore {
    position: relative;
    z-index: 1;
    display: inline;
    align-items: baseline;
    gap: 0;
    margin: 0 0 0 0.35em;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--mme-ca-accent, #c8922a);
    font-family: inherit;
    font-size: inherit;
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
    transition: color 140ms ease;
    white-space: nowrap;
}

body.mme-category-archive .mme-ca-intro-readmore::after {
    content: "";
    display: inline-block;
    width: 0.42em;
    height: 0.42em;
    margin-left: 0.32em;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translateY(-0.12em) rotate(45deg);
    vertical-align: middle;
    text-decoration: none;
    transition: transform 140ms ease, color 140ms ease;
}

body.mme-category-archive .mme-ca-intro-readmore:hover,
body.mme-category-archive .mme-ca-intro-readmore:focus-visible {
    color: var(--mme-ca-accent-dark, #9a6f1a);
    background: none;
    border: 0;
    outline: none;
    transform: none;
    box-shadow: none;
}

body.mme-category-archive .mme-ca-intro-readmore:hover::after,
body.mme-category-archive .mme-ca-intro-readmore:focus-visible::after {
    transform: translateY(0.02em) rotate(45deg);
}

/* Separator under intro — removed */
body.mme-category-archive .mme-ca-intro-rule {
    display: none !important;
    margin: 0 !important;
    border: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
}

/* Pull filters/products section up against the description */
body.mme-category-archive .elementor-98255 > .e-con.e-parent {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.mme-category-archive .elementor-98255 > .e-con.e-parent > .e-con-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    row-gap: 0.35rem !important;
    gap: 0.35rem !important;
}

body.mme-category-archive .elementor-98255 > .e-con.e-parent .e-con.e-child:has(.elementor-widget-woocommerce-archive-description),
body.mme-category-archive .elementor-98255 > .e-con.e-parent .e-con.e-child:has(.mme-ca-title-stack) {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    row-gap: 0.3rem !important;
    gap: 0.3rem !important;
}

body.mme-category-archive .mme-ca-active-filters {
    margin-top: 0.1rem !important;
    margin-bottom: 0.25rem !important;
}

body.mme-category-archive .mme-ca-mobile-tools {
    margin-top: 0.1rem !important;
    margin-bottom: 0.15rem !important;
}

body.mme-category-archive .elementor-widget-wd_archive_products {
    margin-top: 0 !important;
}

body.mme-category-archive .elementor-widget-wd_archive_products > .elementor-widget-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Legacy clone (removed by JS) — keep hidden if cache serves old markup briefly */
body.mme-category-archive .mme-ca-archive-copy-rendered {
    display: none !important;
}

body.mme-category-archive .mme-ca-archive-copy {
    display: block;
    margin: 0;
}

body.mme-category-archive .mme-ca-archive-copy-duplicate {
    display: none !important;
}

body.mme-category-archive .mme-ca-archive-copy .elementor-widget-container {
    margin-top: 0;
}

/* Collapsible SEO block — Read more / Read less */
body.mme-category-archive .wd-collapsible-button {
    text-align: center;
}

body.mme-category-archive .wd-collapsible-button .btn,
body.mme-category-archive .wd-collapsible-button a.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.55rem;
    padding: 0.7rem 1.45rem !important;
    border: 1px solid color-mix(in srgb, var(--mme-ca-accent) 42%, #d7dce4) !important;
    border-radius: 999px !important;
    background: linear-gradient(
        135deg,
        #9a6f1a 0%,
        #c8922a 20%,
        #e8c45a 52%,
        #f9e586 78%,
        #fff4ab 100%
    ) !important;
    box-shadow:
        inset 0 1px 0 rgb(255 244 171 / 55%),
        0 2px 10px rgb(200 146 42 / 28%);
    color: #1a2332 !important;
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

body.mme-category-archive .wd-collapsible-button .btn:hover,
body.mme-category-archive .wd-collapsible-button a.btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow:
        inset 0 1px 0 rgb(255 244 171 / 65%),
        0 4px 14px rgb(200 146 42 / 34%);
    color: #1a2332 !important;
}

body.mme-category-archive .wd-collapsible-button .wd-btn-text {
    font-weight: 800 !important;
}

body.mme-category-archive .term-description h2,
body.mme-category-archive .term-description h3,
body.mme-category-archive .mme-ca-archive-copy h2,
body.mme-category-archive .mme-ca-archive-copy h3 {
    color: var(--mme-ca-text);
    font-weight: 800;
}

body.mme-category-archive .mme-ca-archive-copy h2:first-child,
body.mme-category-archive .mme-ca-archive-copy h3:first-child {
    margin-top: 0;
}

body.mme-category-archive.mme-ca-generic-filter-set .wpc-filters-main-wrap {
    border-radius: 14px;
}

body.mme-category-archive.mme-ca-generic-filter-set .wpc-filters-main-wrap::before {
    content: "Browse by brand or search this category";
    display: block;
    padding: 0.95rem 1rem 0;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
}

/* -------------------------------------------------------------------------
   Mobile / tablet
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    body.mme-category-archive {
        --mme-ca-sidebar-top: 0;
        --mme-ca-brand-logo-h: max(2.65rem, calc(var(--mme-ca-title-size) * var(--mme-ca-title-lh)));
    }

    body.mme-category-archive .mme-ca-title-main {
        gap: 0.55rem;
        margin: 0 0 0.1rem;
    }

    body.mme-category-archive .mme-ca-title-brand-logo {
        width: var(--mme-ca-brand-logo-h);
        height: var(--mme-ca-brand-logo-h);
        padding: 0.22rem;
        border-radius: 9px;
    }

    body.mme-category-archive .mme-ca-title-brands__item.is-text {
        max-width: 6.75rem;
        padding: 0.28rem 0.4rem;
    }

    body.mme-category-archive .mme-ca-title-brands__item-text {
        font-size: 0.56rem;
    }

    body.mme-category-archive .mme-ca-title-stack {
        gap: 1.05rem;
        margin-bottom: 0.1rem !important;
    }

    body.mme-category-archive .mme-ca-title-stack > .e-con:has(h1.elementor-heading-title),
    body.mme-category-archive .mme-ca-title-stack > .elementor-element:has(h1.elementor-heading-title) {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    body.mme-category-archive .mme-ca-title-stack > .e-con:has(h1.elementor-heading-title) > .elementor-widget-heading,
    body.mme-category-archive .mme-ca-title-stack > .elementor-element:has(h1.elementor-heading-title) > .elementor-widget-heading {
        width: 100% !important;
        padding-top: 0.15rem;
    }

    body.mme-category-archive h1.mme-ca-title-heading,
    body.mme-category-archive .mme-ca-title-stack h1.elementor-heading-title,
    body.mme-category-archive .mme-ca-title-stack h1.entry-title {
        width: 100% !important;
    }

    /* Mobile brands strip: label + logos + swipe arrow (same row / height) */
    body.mme-category-archive .mme-ca-title-brands {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.45rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.1rem 0 0.25rem !important;
        padding: 0;
        min-height: var(--mme-ca-brand-logo-h);
    }

    body.mme-category-archive .mme-ca-title-brands--skeleton {
        display: block !important;
        width: 100% !important;
        min-height: var(--mme-ca-brand-logo-h);
        margin: 0.1rem 0 0.25rem !important;
    }

    body.mme-category-archive .mme-ca-title-brands__label {
        display: inline-flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: 0 0 auto;
        box-sizing: border-box;
        width: 4.85rem;
        min-width: 4.85rem;
        max-width: 4.85rem;
        height: var(--mme-ca-brand-logo-h);
        margin: 0;
        padding: 0.22rem 0.28rem;
        border: 1px solid #e8eaee;
        border-radius: 10px;
        background: #f8f9fb;
        color: #1e2732;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
        gap: 0.06rem;
        order: 0;
    }

    body.mme-category-archive .mme-ca-title-brands__label-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.06rem;
        width: 100%;
        min-width: 0;
    }

    body.mme-category-archive .mme-ca-title-brands__label-line {
        display: block;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

    body.mme-category-archive .mme-ca-title-brands__label-arrow {
        display: none !important;
    }

    body.mme-category-archive .mme-ca-title-brands__more {
        display: none !important;
    }

    body.mme-category-archive .mme-ca-title-brands__scroller {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
        order: 0;
    }

    body.mme-category-archive .mme-ca-title-brands__scroller::-webkit-scrollbar {
        display: none;
        height: 0;
        width: 0;
    }

    body.mme-category-archive .mme-ca-title-brands__list {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        width: max-content;
        max-width: none;
        padding: 0 0.15rem 0 0;
    }

    body.mme-category-archive .mme-ca-title-brands__item {
        flex: 0 0 auto;
        width: var(--mme-ca-brand-logo-h);
        height: var(--mme-ca-brand-logo-h);
        padding: 0.18rem;
        border-radius: 10px;
        scroll-snap-align: start;
    }

    body.mme-category-archive .mme-ca-title-brands__item img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Empty off-canvas Elementor shell left after moving Show Filters */
    body.mme-category-archive .elementor-widget-wd_builder_off_canvas_column_btn.mme-ca-chrome-empty,
    body.mme-category-archive .e-con.mme-ca-chrome-empty,
    body.mme-category-archive .e-con:has(> .elementor-widget-wd_builder_off_canvas_column_btn):not(:has(.wd-off-canvas-btn)) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    body.mme-category-archive .mme-ca-title-brands__next {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 2.15rem;
        min-width: 2.15rem;
        height: var(--mme-ca-brand-logo-h);
        margin: 0;
        padding: 0;
        border: 1px solid color-mix(in srgb, var(--mme-ca-accent, #c8922a) 45%, #e5e7eb);
        border-radius: 10px;
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, #f8e7b0, #c8922a, #e8c76a) border-box;
        border-color: transparent;
        box-shadow: 0 2px 8px rgb(200 146 42 / 14%);
        color: var(--mme-ca-accent, #c8922a);
        cursor: pointer;
        transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
    }

    body.mme-category-archive .mme-ca-title-brands__next-icon {
        display: block;
        width: 0.55rem;
        height: 0.55rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
        margin-left: -0.1rem;
    }

    body.mme-category-archive .mme-ca-title-brands__next:hover,
    body.mme-category-archive .mme-ca-title-brands__next:focus-visible {
        transform: translateX(1px);
        outline: none;
        box-shadow: 0 4px 12px rgb(200 146 42 / 2%);
    }

    body.mme-category-archive .mme-ca-title-brands__next.is-disabled,
    body.mme-category-archive .mme-ca-title-brands__next:disabled {
        opacity: 0.35;
        cursor: default;
        transform: none;
        box-shadow: none;
    }

    body.mme-category-archive .mme-ca-title-brands:not(.is-scrollable) .mme-ca-title-brands__next {
        display: none !important;
    }

    body.mme-category-archive .mme-ca-title-count {
        font-size: 0.7em;
    }

    /* Kill empty space before filters / tools on mobile */
    body.mme-category-archive .elementor-98255 > .e-con.e-parent > .e-con-inner {
        row-gap: 0.2rem !important;
        gap: 0.2rem !important;
        padding-bottom: 0 !important;
    }

    body.mme-category-archive .elementor-hidden-desktop {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }

    body.mme-category-archive .mme-ca-mobile-tools {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.55rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.1rem 0 0.15rem !important;
        padding: 0;
        box-sizing: border-box;
        overflow: visible !important;
        z-index: 15;
    }

    /* Kill Elementor container row-gap between Show Filters and active chips */
    body.mme-category-archive .e-con:has(> .mme-ca-mobile-tools),
    body.mme-category-archive .e-con:has(> .mme-ca-active-filters),
    body.mme-category-archive .e-con-inner:has(> .mme-ca-mobile-tools),
    body.mme-category-archive .e-con-inner:has(> .mme-ca-active-filters) {
        row-gap: 0.2rem !important;
        gap: 0.2rem !important;
    }

    body.mme-category-archive .mme-ca-active-filters {
        margin-top: 0 !important;
        margin-bottom: 0.2rem !important;
        padding: 0 !important;
    }

    body.mme-category-archive .mme-ca-mobile-tools .wd-off-canvas-btn,
    body.mme-category-archive .mme-ca-mobile-tools .elementor-widget-wd_shop_archive_orderby {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        --container-widget-width: 100% !important;
    }

    body.mme-category-archive .mme-ca-mobile-tools .elementor-widget-wd_shop_archive_orderby.elementor-widget__width-auto,
    body.mme-category-archive .mme-ca-mobile-tools .elementor-widget-wd_shop_archive_orderby.elementor-widget-mobile__width-initial {
        width: auto !important;
        max-width: none !important;
    }

    body.mme-category-archive .mme-ca-mobile-tools .elementor-widget-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.mme-category-archive .mme-ca-mobile-tools .wd-off-canvas-btn > a,
    body.mme-category-archive .mme-ca-mobile-tools .woocommerce-ordering,
    body.mme-category-archive .mme-ca-mobile-tools .woocommerce-ordering select {
        width: 100% !important;
        min-height: 2.65rem !important;
        height: 2.65rem !important;
        border-radius: 10px !important;
        box-sizing: border-box;
    }

    body.mme-category-archive .mme-ca-mobile-tools .woocommerce-ordering.wd-ordering-mb-icon select,
    body.mme-category-archive .mme-ca-mobile-tools .woocommerce-ordering.mme-ca-ordering select {
        font-size: 0.75rem !important;
        padding: 0.4rem 1.65rem 0.4rem 0.7rem !important;
        text-overflow: ellipsis;
    }

    body.mme-category-archive .mme-ca-mobile-tools .wd-off-canvas-btn > a {
        white-space: nowrap;
        padding: 0 0.85rem;
    }

    body.mme-category-archive .mme-ca-mobile-tools .wd-action-text {
        white-space: nowrap !important;
    }

    /* Kill WoodMart’s tiny double-arrow sort icon on mobile */
    body.mme-category-archive .woocommerce-ordering.wd-ordering-mb-icon,
    body.mme-category-archive .woocommerce-ordering.mme-ca-ordering {
        position: relative !important;
        z-index: 1;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 2.75rem !important;
    }

    body.mme-category-archive .woocommerce-ordering.wd-ordering-mb-icon::after,
    body.mme-category-archive .woocommerce-ordering.wd-ordering-mb-icon::before,
    body.mme-category-archive .woocommerce-ordering.mme-ca-ordering::after,
    body.mme-category-archive .woocommerce-ordering.mme-ca-ordering::before {
        content: none !important;
        display: none !important;
    }

    body.mme-category-archive .woocommerce-ordering.wd-ordering-mb-icon select,
    body.mme-category-archive .woocommerce-ordering.mme-ca-ordering select {
        position: absolute !important;
        inset: auto !important;
        width: 1px !important;
        height: 1px !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.mme-category-archive .mme-ca-mobile-tools .mme-ca-sort__trigger {
        min-height: 2.65rem !important;
        height: 2.65rem !important;
        border-radius: 10px !important;
        font-size: 0.78rem !important;
    }

    body.mme-category-archive .mme-ca-sort.is-open {
        z-index: 60;
    }

    body.mme-category-archive .mme-ca-active-filters.is-visible {
        min-height: 0;
        gap: 0.35rem;
        flex-direction: column;
        align-items: stretch;
    }

    body.mme-category-archive .mme-ca-active-filters__list {
        order: 1;
        width: 100%;
        flex: 0 0 auto;
    }

    /* Results always under the filters button + active chips */
    body.mme-category-archive .mme-ca-toolbar-count {
        margin-left: 0;
        order: 2;
        width: 100%;
        flex: 0 0 auto;
    }

    body.mme-category-archive .mme-ca-active-filters.has-chips .mme-ca-toolbar-count {
        margin-left: 0;
        margin-top: 0.05rem;
    }

    body.mme-category-archive .mme-ca-toolbar-count .woocommerce-result-count,
    body.mme-category-archive .mme-ca-result-placed .woocommerce-result-count {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    body.mme-category-archive .woocommerce-breadcrumb,
    body.mme-category-archive .wd-breadcrumbs,
    body.mme-category-archive nav.woocommerce-breadcrumb {
        font-size: 0.74rem;
        padding: 0.35rem 0.55rem;
        row-gap: 0.15rem;
    }

    body.mme-category-archive .woocommerce-breadcrumb .wd-delimiter,
    body.mme-category-archive .wd-breadcrumbs .wd-delimiter {
        margin: 0 0.1rem;
    }

    body.mme-category-archive .woocommerce-result-count {
        white-space: normal;
        font-size: 0.75rem;
    }

    body.mme-category-archive .elementor-widget-woocommerce-archive-description .term-description,
    body.mme-category-archive .term-description,
    body.mme-category-archive .wd-term-description {
        padding: 0.15rem 0 0 !important;
        font-size: 0.875rem;
    }

    body.mme-category-archive .elementor-widget-woocommerce-archive-description .term-description p,
    body.mme-category-archive .term-description p {
        display: inline;
    }

    body.mme-category-archive .mme-ca-intro-readmore {
        display: inline;
        margin-left: 0.25em;
        color: var(--mme-ca-accent, #c8922a);
    }

    body.mme-category-archive .mme-ca-intro-rule {
        display: none !important;
    }

    body.mme-category-archive .woocommerce-pagination {
        margin-top: 1rem;
        padding: 0.25rem 0 0.5rem;
    }

    body.mme-category-archive .woocommerce-pagination ul.page-numbers {
        gap: 0.3rem;
    }

    body.mme-category-archive .woocommerce-pagination a.page-numbers,
    body.mme-category-archive .woocommerce-pagination span.page-numbers {
        min-width: 2.2rem;
        min-height: 2.2rem;
        font-size: 0.78rem;
    }

    body.mme-category-archive.mme-ca-filters-sheet-open,
    body.mme-category-archive.wpc-overlay-visible,
    html.wpc-overlay-visible body.mme-category-archive {
        overflow: hidden;
        touch-action: none;
    }

    body.mme-category-archive .wd-off-canvas-btn {
        display: inline-flex !important;
        width: 100%;
        max-width: 100%;
        margin: 0 0 0.75rem;
    }

    body.mme-category-archive .mme-ca-mobile-tools .wd-off-canvas-btn {
        width: auto !important;
        margin: 0 !important;
    }

    body.mme-category-archive .wd-off-canvas-btn > a {
        width: 100%;
        min-height: 2.75rem;
    }

    /* Hide nested FE open button Ã¢â‚¬â€ WoodMart sheet is enough */
    body.mme-category-archive .wpc-filters-open-button-container,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .wpc-filters-open-button-container,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .wpc-open-close-filters-button,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .wpc-widget-close-container {
        display: none !important;
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"] .wpc-filters-widget-content,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .wpc-filters-widget-content.wpc-closed,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .wpc-filters-widget-content:not(.wpc-opened) {
        display: block !important;
        height: auto !important;
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"].wd-side-hidden,
    body.mme-category-archive .wd-col-offcanvas-md-sm.wd-side-hidden,
    body.mme-category-archive .wd-col-offcanvas-sm.wd-side-hidden {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-height: min(62dvh, 32rem) !important;
        max-height: min(88dvh, 42rem) !important;
        height: auto !important;
        border-radius: 1.1rem 1.1rem 0 0 !important;
        box-shadow: 0 -8px 32px rgb(26 35 50 / 18%) !important;
        padding: 0.65rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        background: #fff !important;
        z-index: 10050 !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"].wd-side-hidden::-webkit-scrollbar,
    body.mme-category-archive aside[class*="wd-col-offcanvas"].wd-side-hidden *::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"] .wpc-filters-main-wrap {
        border: 0 !important;
        background: transparent !important;
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"].wd-side-hidden::before {
        content: "";
        display: block;
        width: 2.4rem;
        height: 0.28rem;
        margin: 0.1rem auto 0.65rem;
        border-radius: 999px;
        background: #d5dbe3;
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"] .wd-heading,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .wd-heading.mme-ca-sheet-heading {
        position: sticky;
        top: 0;
        z-index: 5;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        margin: 0 0 0.55rem !important;
        padding: 0.45rem 0.5rem 0.55rem !important;
        border: 1px solid rgb(255 255 255 / 55%) !important;
        border-radius: 14px !important;
        background: linear-gradient(
            160deg,
            rgb(255 255 255 / 72%) 0%,
            rgb(248 250 252 / 58%) 100%
        ) !important;
        -webkit-backdrop-filter: blur(14px) saturate(1.35);
        backdrop-filter: blur(14px) saturate(1.35);
        box-shadow:
            0 1px 0 rgb(255 255 255 / 65%) inset,
            0 8px 24px rgb(26 35 50 / 10%);
    }

    body.mme-category-archive .mme-ca-sheet-header-row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.45rem;
        width: 100%;
        min-width: 0;
    }

    body.mme-category-archive .mme-ca-sheet-active {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    body.mme-category-archive .mme-ca-sheet-active__empty {
        display: block;
        color: #4b5563;
        font-size: 0.75rem;
        font-weight: 650;
        line-height: 1.3;
        padding: 0.25rem 0.15rem;
    }

    body.mme-category-archive .mme-ca-sheet-active__list {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.3rem;
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
        max-height: 4.75rem;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.mme-category-archive .mme-ca-sheet-active__list::-webkit-scrollbar {
        display: none;
        height: 0;
        width: 0;
    }

    body.mme-category-archive .mme-ca-sheet-active .mme-ca-chip > a,
    body.mme-category-archive .mme-ca-sheet-active .wpc-filter-chip > a {
        height: 1.7rem !important;
        min-height: 1.7rem !important;
        padding: 0 0.5rem !important;
        font-size: 0.68rem !important;
        gap: 0.28rem !important;
        border-radius: 999px !important;
        background: rgb(255 255 255 / 78%) !important;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 1px 2px rgb(26 35 50 / 6%);
    }

    body.mme-category-archive .mme-ca-sheet-active .mme-ca-chip__label {
        max-width: 8.5rem;
    }

    body.mme-category-archive .mme-ca-sheet-active .mme-ca-chip__close {
        width: 0.9rem;
        height: 0.9rem;
        font-size: 0.72rem;
        border-radius: 999px;
    }

    body.mme-category-archive .mme-ca-sheet-active .mme-ca-chip--reset > a,
    body.mme-category-archive .mme-ca-sheet-active .wpc-chip-reset-all > a {
        border-color: rgb(209 213 219 / 90%) !important;
        color: #2563eb !important;
        text-decoration: none !important;
    }

    /* Compact circular close with a real ✕ (not WoodMart’s slash glyph) */
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .close-side-widget.mme-ca-sheet-close,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .mme-ca-sheet-header-row .close-side-widget {
        flex: 0 0 auto;
        margin: 0 0 0 auto !important;
        align-self: center;
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"] .close-side-widget.mme-ca-sheet-close a,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .mme-ca-sheet-header-row .close-side-widget a {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 2.25rem !important;
        height: 2.25rem !important;
        min-width: 2.25rem;
        min-height: 2.25rem;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid rgb(255 255 255 / 70%) !important;
        border-radius: 999px !important;
        background: rgb(255 255 255 / 70%) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow:
            0 1px 0 rgb(255 255 255 / 80%) inset,
            0 2px 8px rgb(26 35 50 / 10%);
        color: #1e2732 !important;
        text-decoration: none !important;
        gap: 0 !important;
        transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"] .close-side-widget.mme-ca-sheet-close a:hover,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .close-side-widget.mme-ca-sheet-close a:focus-visible,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .mme-ca-sheet-header-row .close-side-widget a:hover,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .mme-ca-sheet-header-row .close-side-widget a:focus-visible {
        background: rgb(255 255 255 / 92%) !important;
        border-color: #c8922a !important;
        outline: none;
        transform: scale(1.05);
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"] .mme-ca-sheet-close__x {
        display: block !important;
        font-size: 1.35rem !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        color: #1e2732 !important;
        speak: never;
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"] .close-side-widget.mme-ca-sheet-close .wd-action-icon,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .mme-ca-sheet-header-row .close-side-widget .wd-action-icon,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .close-side-widget.mme-ca-sheet-close .wd-action-icon::before,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .close-side-widget.mme-ca-sheet-close .wd-action-icon::after,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .mme-ca-sheet-header-row .close-side-widget .wd-action-icon::before,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .mme-ca-sheet-header-row .close-side-widget .wd-action-icon::after,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .close-side-widget.mme-ca-sheet-close .wd-action-text,
    body.mme-category-archive aside[class*="wd-col-offcanvas"] .mme-ca-sheet-header-row .close-side-widget .wd-action-text {
        display: none !important;
        content: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0 !important;
    }

    body.mme-category-archive aside[class*="wd-col-offcanvas"] .wpc-filter-layout-submit-button {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin-top: 0.65rem;
        padding: 0.75rem 0 calc(0.55rem + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid var(--mme-ca-border);
        box-shadow: 0 -6px 14px rgb(26 35 50 / 6%);
    }

    body.mme-category-archive .wpc-filters-main-wrap {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0.65rem 0.55rem 0.85rem;
        border-radius: 12px;
        box-shadow: none;
    }

    body.mme-category-archive ul.products li.product:hover,
    body.mme-category-archive .wd-product:hover {
        transform: none;
    }

    body.mme-category-archive .wd-product .wd-product-thumb,
    body.mme-category-archive .wd-product .product-element-top {
        max-height: 170px;
        padding: 8px !important;
    }

    body.mme-category-archive .wd-product .product-element-bottom,
    body.mme-category-archive .wd-product .product-information {
        padding: 8px 10px 10px !important;
    }

    body.mme-category-archive ul.products,
    body.mme-category-archive .wd-products {
        --wd-col: 2;
        --wd-gap: 0.55rem;
    }
}

@media (max-width: 575px) {
    body.mme-category-archive .shop-loop-head {
        flex-direction: column;
        align-items: stretch;
    }

    body.mme-category-archive .woocommerce-breadcrumb a,
    body.mme-category-archive .wd-breadcrumbs a,
    body.mme-category-archive .woocommerce-breadcrumb .wd-last {
        font-size: 0.72rem;
    }

    body.mme-category-archive .woocommerce-ordering,
    body.mme-category-archive .woocommerce-ordering select {
        width: 100%;
    }

    body.mme-category-archive .wd-product .wd-entities-title a,
    body.mme-category-archive ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.8125rem;
    }

    body.mme-category-archive .wpc-filter-chip-name {
        max-width: 8.5rem;
    }
}

@media (min-width: 1025px) {
    body.mme-category-archive .wpc-filters-open-button-container {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.mme-category-archive *,
    body.mme-category-archive *::before,
    body.mme-category-archive *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    body.mme-category-archive ul.products li.product:hover,
    body.mme-category-archive .wd-product:hover {
        transform: none;
    }
}

/* -------------------------------------------------------------------------
   Brand archive layout — stacked hero, full-width categories, tight shop
   ------------------------------------------------------------------------- */

body.mme-ca-brand-archive {
    background-color: var(--mme-ca-surface, #f5f5f5) !important;
}

/* Collapse Elementor chrome around the brand title band */
body.mme-ca-brand-archive .elementor-location-archive > .elementor-top-section:first-of-type {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    margin-bottom: 0.55rem !important;
}

body.mme-ca-brand-archive .elementor-location-archive > .elementor-top-section:nth-of-type(2) {
    margin-top: 0 !important;
}

/* Unified brand identity + category band */
body.mme-ca-brand-archive .mme-ca-title-stack {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 0.15rem !important;
    padding: 0.85rem 1rem 0.95rem !important;
    border: 1px solid var(--mme-ca-border, #e0e0e2) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgb(26 35 50 / 5%) !important;
}

body.mme-ca-brand-archive .mme-ca-title-stack > .elementor-widget-wd_wc_breadcrumb,
body.mme-ca-brand-archive .mme-ca-title-stack > .mme-ca-breadcrumb-placed {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
}

body.mme-ca-brand-archive .mme-ca-title-main {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 0.9rem;
    align-items: center !important;
}

body.mme-ca-brand-archive .mme-ca-title-main > .mme-ca-title-brand-logo,
body.mme-ca-brand-archive .mme-ca-title-main > .elementor-widget,
body.mme-ca-brand-archive .mme-ca-title-main > .elementor-element {
    align-self: center !important;
}

body.mme-ca-brand-archive .mme-ca-title-main > .elementor-widget,
body.mme-ca-brand-archive .mme-ca-title-main > .elementor-element {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

body.mme-ca-brand-archive .mme-ca-title-main .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

body.mme-ca-brand-archive .mme-ca-title-main .elementor-element > .elementor-widget-container,
body.mme-ca-brand-archive .mme-ca-title-stack .mme-ca-title-main .elementor-widget-container {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

body.mme-ca-brand-archive .mme-ca-title-main h1.mme-ca-title-heading,
body.mme-ca-brand-archive .mme-ca-title-main h1.entry-title,
body.mme-ca-brand-archive .mme-ca-title-main h1.elementor-heading-title {
    align-items: center !important;
    margin: 0 !important;
}

/* Brand logo: larger, no card border */
body.mme-ca-brand-archive .mme-ca-title-brand-logo {
    width: clamp(4.25rem, 7vw, 5.5rem);
    height: clamp(4.25rem, 7vw, 5.5rem);
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain;
}

body.mme-ca-brand-archive .mme-ca-title-stack h1.mme-ca-title-heading,
body.mme-ca-brand-archive .mme-ca-title-stack h1.entry-title,
body.mme-ca-brand-archive .mme-ca-title-stack h1.elementor-heading-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem) !important;
}

body.mme-ca-brand-archive .mme-ca-title-count {
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Desktop: title + breadcrumb on one row, categories below */
@media (min-width: 1025px) {
    body.mme-ca-brand-archive .mme-ca-title-stack {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title breadcrumb"
            "brands brands";
        align-items: center;
        column-gap: 1rem;
        row-gap: 0.7rem;
        padding: 0.95rem 1.15rem 1.05rem !important;
    }

    body.mme-ca-brand-archive .mme-ca-title-stack > .elementor-widget-wd_wc_breadcrumb,
    body.mme-ca-brand-archive .mme-ca-title-stack > .mme-ca-breadcrumb-placed {
        grid-area: breadcrumb;
        justify-self: end;
        align-self: center;
        width: auto !important;
        max-width: max-content !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        text-align: right !important;
    }

    body.mme-ca-brand-archive .mme-ca-title-stack > .elementor-widget-wd_wc_breadcrumb .elementor-widget-container,
    body.mme-ca-brand-archive .mme-ca-title-stack > .mme-ca-breadcrumb-placed .elementor-widget-container {
        justify-content: flex-end !important;
    }

    body.mme-ca-brand-archive .mme-ca-title-stack > .mme-ca-title-main,
    body.mme-ca-brand-archive .mme-ca-title-stack > .e-con:has(h1.elementor-heading-title),
    body.mme-ca-brand-archive .mme-ca-title-stack > .elementor-element:has(h1.elementor-heading-title),
    body.mme-ca-brand-archive .mme-ca-title-stack > .elementor-widget-heading,
    body.mme-ca-brand-archive .mme-ca-title-stack > .elementor-widget-wd_shop_archive_woocommerce_title {
        grid-area: title;
        width: auto !important;
        max-width: 100% !important;
        justify-self: start;
    }

    body.mme-ca-brand-archive .mme-ca-title-stack > .mme-ca-title-brands,
    body.mme-ca-brand-archive .mme-ca-title-stack > .mme-ca-title-main > .mme-ca-title-brands {
        grid-area: brands;
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        padding-top: 0.65rem;
        border-top: 1px solid #eceef2;
        gap: 0.55rem;
    }

    /* Label leads left → chips → Show more (reading order) */
    body.mme-ca-brand-archive .mme-ca-title-brands__label {
        order: 0 !important;
        flex-direction: row;
        max-width: 10.5rem;
        height: auto;
        min-height: 3.35rem;
        padding: 0.4rem 0.7rem;
        background: #f7f8fa;
        border-color: #e8eaee;
    }

    body.mme-ca-brand-archive .mme-ca-title-brands__label-text {
        order: 1;
    }

    body.mme-ca-brand-archive .mme-ca-title-brands__label-arrow {
        order: 2;
        transform: rotate(-45deg);
        margin-top: 0;
        margin-left: 0.1rem;
    }

    body.mme-ca-brand-archive .mme-ca-title-brands__scroller {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
    }

    body.mme-ca-brand-archive .mme-ca-title-brands__more {
        order: 2;
        height: auto;
        min-height: 3.35rem;
        align-self: stretch;
    }
}

/* Scannable category chips with captions */
body.mme-ca-brand-archive .mme-ca-title-brands__item.has-caption,
body.mme-ca-brand-archive .mme-ca-title-brands--categories .mme-ca-title-brands__item.is-text {
    flex-direction: column;
    justify-content: flex-start;
    width: 5.1rem;
    min-width: 5.1rem;
    height: auto;
    min-height: 4.35rem;
    padding: 0.4rem 0.3rem 0.45rem;
    gap: 0.28rem;
    border-radius: 11px;
}

body.mme-ca-brand-archive .mme-ca-title-brands__item.has-caption img {
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 auto;
}

body.mme-ca-brand-archive .mme-ca-title-brands--categories .mme-ca-title-brands__item-text {
    -webkit-line-clamp: 2;
    font-size: 0.6rem;
    line-height: 1.22;
    font-weight: 700;
    color: #2a3340;
}

body.mme-ca-brand-archive .mme-ca-title-brands__list {
    gap: 0.5rem;
}

/* Sidebar: filters + authorization as one tool column */
body.mme-ca-brand-archive .mme-brand-auth--sidebar {
    margin-top: 0.65rem;
    margin-bottom: 0;
}

body.mme-ca-brand-archive .mme-brand-auth--sidebar .mme-brand-auth__details {
    border-radius: 12px;
    border-color: var(--mme-dk-filter-border, #e0e0e2);
    box-shadow: 0 1px 2px rgb(26 35 50 / 4%);
}

body.mme-ca-brand-archive .mme-brand-auth--sidebar .mme-brand-auth__summary {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    background: #fafbfc;
}

body.mme-ca-brand-archive .mme-brand-auth__icon {
    color: #fff;
    background: var(--mme-logo-gold-surface, linear-gradient(135deg, #9a6f1a 0%, #c8922a 18%, #e8c45a 52%, #f9e586 78%, #fff4ab 100%));
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 171, 0.45),
        inset 0 -1px 0 rgba(122, 85, 16, 0.35),
        0 1px 3px rgb(154 111 26 / 18%);
}

body.mme-ca-brand-archive .wpc-filters-main-wrap {
    margin-bottom: 0;
}

@media (min-width: 1025px) {
    body.mme-ca-brand-archive .widget_wpc_filters_widget {
        position: sticky;
        top: var(--mme-ca-sidebar-top, 6.5rem);
        z-index: 2;
        align-self: start;
    }
}

/* Shop tools sit closer under the hero band */
body.mme-ca-brand-archive .shop-loop-head {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

@media (max-width: 1024px) {
    body.mme-ca-brand-archive .mme-ca-title-stack {
        padding: 0.75rem 0.8rem 0.85rem !important;
        border-radius: 12px !important;
        gap: 0.65rem !important;
    }

    body.mme-ca-brand-archive .mme-ca-title-brand-logo {
        width: clamp(3.5rem, 14vw, 4.5rem);
        height: clamp(3.5rem, 14vw, 4.5rem);
    }

    body.mme-ca-brand-archive .mme-ca-title-stack > .elementor-widget-wd_wc_breadcrumb,
    body.mme-ca-brand-archive .mme-ca-title-stack > .mme-ca-breadcrumb-placed {
        order: -1;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.mme-ca-brand-archive .mme-ca-title-brands--categories {
        margin-top: 0.15rem !important;
        padding-top: 0.55rem;
        border-top: 1px solid #eceef2;
    }

    body.mme-ca-brand-archive .mme-ca-title-brands__item.has-caption,
    body.mme-ca-brand-archive .mme-ca-title-brands--categories .mme-ca-title-brands__item.is-text {
        width: 4.35rem;
        min-width: 4.35rem;
        min-height: 4.2rem;
    }

    body.mme-ca-brand-archive .elementor-location-archive > .elementor-top-section:first-of-type {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }
}
