/* ── Filter trigger toolbar */

.mk-filter-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* The "FILTER" pill button */
.mk-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 20px;
    background: var(--aubergine-deep);
    color: var(--ivory);
    border: 1px solid rgba(201, 151, 31, 0.28);
    border-radius: 999px;

    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.mk-filter-toggle:hover {
    background: var(--purple);
    border-color: rgba(201, 151, 31, 0.5);
    box-shadow: 0 8px 24px rgba(43, 15, 78, 0.28);
    transform: translateY(-1px);
}

.mk-filter-toggle:focus {
    background: var(--aubergine-deep);
    color: var(--ivory);
    border-color: rgba(201, 151, 31, 0.28);
}

.mk-filter-toggle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.3s ease;
}

body.mk-filter-open .mk-filter-toggle__icon {
    transform: rotate(90deg);
}

body.mk-filter-open .mk-filter-toggle {
    background: var(--purple);
    border-color: rgba(201, 151, 31, 0.5);
}

.mk-filter-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--gold);
    color: var(--aubergine-deep);
    border-radius: 999px;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.mk-filter-count.has-filters {
    display: inline-flex;
}

/* offcanvas */
.mk-filter-drawer {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

.mk-filter-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* ── Backdrop overlay */

.mk-filter-drawer__overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(22, 7, 38, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}

.mk-filter-drawer.is-open .mk-filter-drawer__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ── Off-canvas panel */

.mk-filter-drawer__panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 340px;
    max-width: 90vw;
    height: 100dvh;
    height: 100vh;

    display: flex;
    flex-direction: column;

    background: var(--ivory);
    border-right: 1px solid var(--line);
    box-shadow: 6px 0 40px rgba(43, 15, 78, 0.18);
    border-top: 3px solid var(--gold);

    transform: translateX(-110%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    overflow: hidden;
}

.mk-filter-drawer.is-open .mk-filter-drawer__panel {
    transform: translateX(0);
}


/* ── Panel header */

.mk-filter-drawer__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, var(--aubergine-deep) 0%, var(--aubergine) 100%);
}

.mk-filter-drawer__header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mk-filter-drawer__title {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ivory);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mk-filter-drawer__title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(201, 151, 31, 0.6);
}

.mk-filter-drawer__header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mk-filter-clear {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 251, 242, 0.55);
    text-decoration: underline !important;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease;
    line-height: 1;
}

.mk-filter-clear:hover {
    color: var(--gold-light) !important;
}

.mk-filter-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;

    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--ivory);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;

    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.mk-filter-close:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(201, 151, 31, 0.5);
    transform: rotate(90deg);
}


/* ── Scrollable content area */

.mk-filter-drawer__content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 0 0 24px;
    -webkit-overflow-scrolling: touch;
}

.mk-filter-drawer__content::-webkit-scrollbar {
    width: 4px;
}

.mk-filter-drawer__content::-webkit-scrollbar-track {
    background: var(--ivory-deep);
}

.mk-filter-drawer__content::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
}

.mk-filter-drawer__content::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 47, 160, 0.25);
}


/* ── WOOF plugin container overrides */

.mk-filter-drawer__content .woof,
.mk-filter-drawer__content .woof_redraw_zone {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mk-filter-drawer__content .woof_container {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.mk-filter-drawer__content .woof_container_inner {
    padding: 18px 24px 20px !important;
    border-bottom: 1px solid var(--line) !important;
}

.mk-filter-drawer__content .woof_container:last-child .woof_container_inner {
    border-bottom: none !important;
}

/* Section headings */
.mk-filter-drawer__content .woof_container_inner h4 {
    font-family: 'Cinzel', serif !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: var(--gold-dark) !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

.woof_submit_search_form_container {
    display: none;
}

/* ── Price slider (ionRangeSlider) */

.mk-filter-drawer__content .irs {
    font-family: 'Jost', sans-serif !important;
}

.mk-filter-drawer__content .irs--round .irs-bar {
    background: var(--purple) !important;
    border-top-color: var(--purple) !important;
    border-bottom-color: var(--purple) !important;
    height: 4px !important;
}

.mk-filter-drawer__content .irs--round .irs-line {
    background: var(--ivory-deep) !important;
    border-color: var(--line) !important;
    height: 4px !important;
}

.mk-filter-drawer__content .irs--round .irs-handle {
    border: 3px solid var(--purple) !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(43, 15, 78, 0.2) !important;
    width: 20px !important;
    height: 20px !important;
}

.mk-filter-drawer__content .irs--round .irs-handle:hover,
.mk-filter-drawer__content .irs--round .irs-handle.state_hover {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 4px rgba(201, 151, 31, 0.16) !important;
}

.mk-filter-drawer__content .irs--round .irs-from,
.mk-filter-drawer__content .irs--round .irs-to,
.mk-filter-drawer__content .irs--round .irs-single {
    background: var(--aubergine-deep) !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
}

.mk-filter-drawer__content .irs--round .irs-from::before,
.mk-filter-drawer__content .irs--round .irs-to::before,
.mk-filter-drawer__content .irs--round .irs-single::before {
    border-top-color: var(--aubergine-deep) !important;
}

.mk-filter-drawer__content .irs--round .irs-min,
.mk-filter-drawer__content .irs--round .irs-max {
    font-family: 'Jost', sans-serif !important;
    font-size: 10px !important;
    color: var(--ink-soft) !important;
    background: var(--ivory-deep) !important;
    border-radius: 4px !important;
}


/* ── Checkbox lists */

.mk-filter-drawer__content .woof_list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mk-filter-drawer__content .woof_list li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    display: flex;
}

.mk-filter-drawer__content .woof_checkbox_term {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    border: 1.5px solid rgba(43, 15, 78, 0.28);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    margin: 0 !important;
    vertical-align: middle;
}

.mk-filter-drawer__content .woof_checkbox_term:checked {
    background: var(--aubergine-deep) !important;
    border-color: var(--aubergine-deep) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23FFFBF2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px !important;
}

.mk-filter-drawer__content .woof_checkbox_term:hover {
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 3px rgba(107, 47, 160, 0.12) !important;
}

.mk-filter-drawer__content .woof_checkbox_label {
    font-family: 'Jost', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    cursor: pointer;
    padding: 7px 8px !important;
    flex: 1;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: color 0.15s ease;
    line-height: 1.3 !important;
}

.mk-filter-drawer__content .woof_checkbox_label:hover {
    color: var(--purple) !important;
}

.mk-filter-drawer__content .woof_checkbox_label .woof_term_count {
    font-size: 11px !important;
    color: var(--ink-soft) !important;
    font-weight: 400 !important;
    margin-left: auto !important;
}

/* Hide iCheck if it's used */
.mk-filter-drawer__content .icheck-square-blue {
    display: none !important;
}


/* ── Label / pill filter (size) */

.mk-filter-drawer__content .woof_list_label {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.mk-filter-drawer__content .woof_list_label li {
    display: block !important;
}

.mk-filter-drawer__content .woof_label_term {
    display: inline-flex !important;
    align-items: center;
    padding: 6px 16px !important;
    background: var(--ivory-deep) !important;
    border: 1.5px solid var(--line) !important;
    border-radius: 999px !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: var(--ink) !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
    line-height: 1.3 !important;
    white-space: nowrap;
}

.mk-filter-drawer__content .woof_label_term:hover {
    background: rgba(107, 47, 160, 0.07) !important;
    border-color: var(--purple-light) !important;
    color: var(--purple) !important;
}

.mk-filter-drawer__content .woof_label_term.checked,
.mk-filter-drawer__content .woof_label_term_selected,
.mk-filter-drawer__content li.woof_term_selected .woof_label_term {
    background: var(--aubergine-deep) !important;
    border-color: var(--aubergine-deep) !important;
    color: var(--ivory) !important;
    box-shadow: 0 4px 12px rgba(43, 15, 78, 0.22) !important;
    font-weight: 600 !important;
}

.mk-filter-drawer__content .woof_label_term input[type="checkbox"] {
    display: none !important;
}

.mk-filter-drawer__content .woof_wcga_label_hide {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}


/* ── In stock / On sale special checkboxes */

.mk-filter-drawer__content .woof_instock_search_container label,
.mk-filter-drawer__content .woof_onsale_search_container label {
    font-family: 'Jost', sans-serif !important;
    font-size: 13.5px !important;
    color: var(--ink) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 7px 0 !important;
    transition: color 0.15s ease !important;
}

.mk-filter-drawer__content .woof_instock_search_container label:hover,
.mk-filter-drawer__content .woof_onsale_search_container label:hover {
    color: var(--purple) !important;
}

.mk-filter-drawer__content .woof_instock_search_container input[type="checkbox"],
.mk-filter-drawer__content .woof_onsale_search_container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    border: 1.5px solid rgba(43, 15, 78, 0.28);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.mk-filter-drawer__content .woof_instock_search_container input[type="checkbox"]:checked,
.mk-filter-drawer__content .woof_onsale_search_container input[type="checkbox"]:checked {
    background: var(--aubergine-deep);
    border-color: var(--aubergine-deep);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23FFFBF2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}


/* ── Footer bar (Reset + Show results) */

.mk-filter-drawer__footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: var(--ivory-deep);
}

.mk-filter-footer__reset {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    cursor: pointer;
    text-decoration: none !important;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mk-filter-footer__reset:hover {
    border-color: var(--magenta);
    color: var(--magenta);
    background: rgba(200, 27, 114, 0.04);
}

.mk-filter-footer__close {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--aubergine-deep) 0%, var(--aubergine) 100%);
    border: 1px solid rgba(201, 151, 31, 0.25);
    border-radius: 999px;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ivory);
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.mk-filter-footer__close:hover {
    background: linear-gradient(135deg, var(--aubergine) 0%, var(--purple) 100%);
    box-shadow: 0 8px 24px rgba(43, 15, 78, 0.3);
    transform: translateY(-1px);
}


/* ── Body scroll lock */

body.mk-filter-open {
    overflow: hidden;
}


/* ── WOOF AJAX loading indicator */

.mk-filter-drawer__content .woof_loading,
.mk-filter-drawer__content .woof_redraw_zone.woof_loading_ajax {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}


/* ── Responsive */

@media (max-width: 768px) {

    /* On mobile: full-width panel slides up from the bottom */
    .mk-filter-drawer__panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        height: 90dvh;
        height: 90vh;
        border-right: none;
        border-top: 3px solid var(--gold);
        border-radius: 20px 20px 0 0;
        transform: translateY(110%);
    }

    .mk-filter-drawer.is-open .mk-filter-drawer__panel {
        transform: translateY(0);
    }

    .mk-filter-drawer__header {
        padding: 20px 20px 16px;
    }
}

@media (max-width: 480px) {
    .mk-filter-toggle {
        padding: 9px 16px;
        font-size: 11px;
    }

    .mk-filter-drawer__footer {
        padding: 12px 16px;
    }

    .mk-filter-footer__reset,
    .mk-filter-footer__close {
        padding: 9px 14px;
        font-size: 11px;
    }
}


/* =========================================================
   MKARTCRAFT — SHOP LOOP TOOLBAR
   ========================================================= */

/*
 * The WooCommerce hook itself is not a wrapper, so we use
 * the individual WooCommerce controls to create the layout.
 */

/* Filter button */
.mk-filter-toolbar {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 5;
}

/* WooCommerce result count */
.woocommerce .woocommerce-result-count {
    float: none;
}

/* WooCommerce sorting */
.woocommerce-ordering {
    margin: 0 !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
}

/* ---------------------------------------------------------
   DESKTOP TOOLBAR
   --------------------------------------------------------- */

@media (min-width: 769px) {

    /*
     * Put filter + sorting on the same horizontal line.
     *
     * The filter is first in the hook, so it sits on the left.
     * Sorting is pushed to the right.
     */
    .mk-filter-toolbar {
        display: inline-flex !important;
        vertical-align: middle;
        margin-right: 16px !important;
    }

    .woocommerce-ordering {
        float: right !important;
        display: flex !important;
        align-items: center;
    }

    /*
     * Prevent weird theme margins from pushing controls apart.
     */
    .woocommerce-ordering form {
        margin: 0 !important;
    }

}


/* =========================================================
   WOOCOMMERCE SORTING
   ========================================================= */

.woocommerce .woocommerce-ordering select.orderby {

    appearance: none !important;
    -webkit-appearance: none !important;

    width: 222px !important;
    height: 40px !important;

    padding: 0 42px 0 16px !important;

    background-color: var(--ivory) !important;

    border: 1px solid rgba(43, 15, 78, 0.22) !important;
    border-radius: 3px !important;

    color: var(--aubergine-deep) !important;

    font-family: 'Jost', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;

    /*
     * Custom dropdown arrow.
     */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%232b0f4e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

@media (max-width: 480px) {
    .woocommerce .woocommerce-ordering select.orderby {
        width: 100% !important;
    }
}

@media (max-width: 360px) {
    .woocommerce .woocommerce-ordering select.orderby {
        padding: 0 32px 0 6px !important;
    }
}

.woocommerce .woocommerce-ordering select.orderby:hover {
    border-color: var(--purple) !important;
    background-color: #fff !important;
}

.woocommerce .woocommerce-ordering select.orderby:focus {
    outline: none !important;

    border-color: var(--purple) !important;

    box-shadow:
        0 0 0 3px rgba(107, 47, 160, 0.10) !important;
}

.woocommerce-ordering .orderby option {
    font-family: 'Jost', sans-serif;
    color: var(--ink, #1C1024);
    background: var(--ivory, #FFFBF2);
}

/* =========================================================
   WOOF — APPLIED FILTERS / ACTIVE FILTER BAR
   ========================================================= */

/*
 * Main WOOF active-filter container.
 */
.woof_products_top_panel {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;

    margin: 0 0 18px !important;
    padding: 0 !important;

    border: none !important;
    background: transparent !important;

    font-family: 'Jost', sans-serif !important;
}


/* Individual active filter item */
.woof_products_top_panel li:first-of-type {
    display: inline-flex !important;
    align-items: center !important;

    padding: 7px 12px !important;

    background: rgba(107, 47, 160, 0.06) !important;

    border: 1px solid rgba(107, 47, 160, 0.18) !important;
    border-radius: 999px !important;

    color: var(--aubergine-deep) !important;

    font-family: 'Jost', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.2 !important;

    cursor: pointer;
}

.woof_products_top_panel li button {
    background: transparent;
    border: none;
    color: var(--aubergine-deep);
    cursor: pointer;
}


/*
 * Filter text.
 */
.woof_products_top_panel li span,
.woof_products_top_panel li a {
    color: var(--aubergine-deep) !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 12px !important;
}


/*
 * Remove / X button.
 */
.woof_products_top_panel li a.delete,
.woof_products_top_panel li .woof_remove_filter,
.woof_products_top_panel li a[class*="remove"] {

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 18px !important;
    height: 18px !important;

    margin-left: 7px !important;

    background: transparent !important;
    border: none !important;

    color: var(--magenta) !important;

    font-size: 14px !important;
    line-height: 1 !important;

    text-decoration: none !important;
}


/* Hover X */
.woof_products_top_panel li a.delete:hover,
.woof_products_top_panel li .woof_remove_filter:hover {
    color: var(--aubergine-deep) !important;
}


/*
 * WOOF's "Clear all" control.
 */
.woof_products_top_panel .woof_products_top_panel_reset,
.woof_products_top_panel .woof_reset_button_submit,
.woof_products_top_panel a.woof_reset {

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 7px 13px !important;

    background: transparent !important;

    border: 1px solid rgba(43, 15, 78, 0.22) !important;
    border-radius: 999px !important;

    color: var(--ink-soft) !important;

    font-family: 'Jost', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.woof_products_top_panel .woof_products_top_panel_reset:hover,
.woof_products_top_panel .woof_reset_button_submit:hover,
.woof_products_top_panel a.woof_reset:hover {

    color: var(--magenta) !important;

    border-color: rgba(200, 27, 114, 0.35) !important;

    background: rgba(200, 27, 114, 0.05) !important;
}


/* =========================================================
   FILTER DRAWER — DESKTOP SIDE
   ========================================================= */

@media (min-width: 769px) {

    .mk-filter-drawer__panel {
        left: 0;
        right: auto;

        transform: translateX(-110%);

        border-right: 1px solid var(--line);
        border-left: none;

        box-shadow: 6px 0 40px rgba(43, 15, 78, 0.18);
    }

    .mk-filter-drawer.is-open .mk-filter-drawer__panel {
        transform: translateX(0);
    }


    /* ---------------------------------------------
       RIGHT SIDE
       --------------------------------------------- */

    .mk-filter-drawer.is-right .mk-filter-drawer__panel {
        left: auto;
        right: 0;

        transform: translateX(110%);

        border-left: 1px solid var(--line);
        border-right: none;

        box-shadow: -6px 0 40px rgba(43, 15, 78, 0.18);
    }

    .mk-filter-drawer.is-right.is-open .mk-filter-drawer__panel {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {

    .mk-filter-drawer__panel,
    .mk-filter-drawer.is-right .mk-filter-drawer__panel {
        left: 0;
        right: 0;

        transform: translateY(110%);

        border-left: none;
        border-right: none;

        box-shadow: 0 -8px 40px rgba(43, 15, 78, 0.20);
    }

    .mk-filter-drawer.is-open .mk-filter-drawer__panel,
    .mk-filter-drawer.is-right.is-open .mk-filter-drawer__panel {
        transform: translateY(0);
    }
}


/* =========================================================
   FILTER DRAWER — OUTER WRAPPER
   IMPORTANT: wrapper must NEVER occupy document space
   ========================================================= */

.mk-filter-drawer {
    position: fixed !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 9998;

    /*
     * This is the important part:
     * the wrapper itself is removed from normal flow.
     */
    pointer-events: none;

    visibility: hidden;

    /*
     * Don't let the wrapper affect WooCommerce's layout.
     */
    display: block !important;
}

.mk-filter-drawer.is-open {
    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   DRAWER OUTER WRAPPER
   ========================================================= */

.mk-filter-drawer {
    position: fixed !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    z-index: 9998;

    visibility: hidden;
    pointer-events: none;
}

.mk-filter-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.mk-filter-drawer__overlay {
    position: fixed !important;
    inset: 0 !important;

    width: 100%;
    height: 100%;

    z-index: 9998;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    background: rgba(22, 7, 38, 0.6);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.mk-filter-drawer.is-open .mk-filter-drawer__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   PANEL
   ========================================================= */

.mk-filter-drawer__panel {
    position: fixed !important;

    top: 0;
    left: 0;

    width: 340px;
    max-width: 90vw;

    height: 100vh;
    height: 100dvh;

    z-index: 9999;

    display: flex;
    flex-direction: column;

    background: var(--ivory);

    transform: translateX(-110%);

    transition:
        transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);

    will-change: transform;

    overflow: hidden;
}

.mk-filter-drawer.is-open .mk-filter-drawer__panel {
    transform: translateX(0);
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.mk-filter-drawer.is-right .mk-filter-drawer__panel {
    left: auto;
    right: 0;

    transform: translateX(110%);
}

.mk-filter-drawer.is-right.is-open .mk-filter-drawer__panel {
    transform: translateX(0);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .mk-filter-drawer__panel,
    .mk-filter-drawer.is-right .mk-filter-drawer__panel {

        top: auto;
        bottom: 0;

        left: 0;
        right: 0;

        width: 100vw;
        max-width: 100vw;

        height: 90vh;
        height: 90dvh;

        transform: translateY(110%);
    }

    .mk-filter-drawer.is-open .mk-filter-drawer__panel,
    .mk-filter-drawer.is-right.is-open .mk-filter-drawer__panel {
        transform: translateY(0);
    }
}