/*
 * UGGAUS Archive UI
 * Externalised from MU plugins:
 * - ugg-ajax-filters.php
 * - ugg-category-header-toolbar.php
 *
 * Step 3 refactor: presentation only; functional selectors and rules preserved.
 */

/* =========================================================
   AJAX FILTERS
   ========================================================= */
.custom-category-header > .ugg-ajax-filter-form,
.term-description > .ugg-ajax-filter-form,
.category-description > .ugg-ajax-filter-form,
body > .ugg-ajax-filter-form {
    display: none !important;
}

#shop-sidebar.ugg-custom-filter-sidebar {
    display: none !important;
}

.ugg-ajax-filter-form {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

.ugg-filter-canvas-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
}

.ugg-filter-card {
    align-self: start;
    padding: 12px;
    margin: 0;
    background: linear-gradient(180deg, #fffdfb 0%, #faf7f3 100%);
    border: 1px solid #efe5dc;
    border-radius: 14px;
    border-bottom: 1px solid #efe5dc;
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.035);
}

.ugg-filter-title {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 500;
    color: #222;
    letter-spacing: -0.01em;
}

.ugg-filter-title-line {
    display: block;
    width: 30px;
    height: 2px;
    margin-bottom: 8px;
    background: #b96702;
    border-radius: 999px;
    opacity: 0.28;
}

.ugg-filter-term-search {
    width: 100%;
    height: 30px !important;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #fff;
    color: #222;
    box-shadow: none;
    font-size: 13px !important;
    line-height: 38px;
}

.ugg-filter-term-search:focus {
    border-color: #b96702;
    box-shadow: 0 0 0 2px rgba(185, 103, 2, 0.10);
    outline: none;
}

.ugg-filter-options {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.ugg-filter-options::-webkit-scrollbar,
.ugg-filter-canvas-inner::-webkit-scrollbar {
    width: 5px;
}

.ugg-filter-options::-webkit-scrollbar-track,
.ugg-filter-canvas-inner::-webkit-scrollbar-track {
    background: #f1ece7;
    border-radius: 999px;
}

.ugg-filter-options::-webkit-scrollbar-thumb,
.ugg-filter-canvas-inner::-webkit-scrollbar-thumb {
    background: #b7aaa0;
    border-radius: 999px;
}

.ugg-filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 27px;
    padding: 3px 4px;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.055);
    border-radius: 7px;
    cursor: pointer;
    color: #222;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 400;
}

.ugg-filter-option:last-child {
    border-bottom-color: transparent;
}

.ugg-filter-option:has(input[type="checkbox"]:checked) {
    background: rgba(185, 103, 2, 0.105);
    color: #111;
    font-weight: 500;
}

.ugg-filter-option-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ugg-filter-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #b96702;
}

.ugg-filter-option-name {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ugg-filter-option-count {
    color: #777;
    font-size: 12.5px;
    flex: 0 0 auto;
}

.ugg-filter-mobile-show-more {
    display: none;
}

.ugg-filter-sticky-actions {
    display: flex;
    gap: 9px;
    padding: 12px 0 0;
    margin-top: 12px;
    background: #fff;
    z-index: 5;
}

.ugg-filter-sticky-actions .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    height: 36px;
    padding: 0 18px !important;
    border-radius: 8px !important;
    border: 1px solid #191919 !important;
    background: #111 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    cursor: pointer;
    margin: 0 !important;
}

.ugg-filter-sticky-actions .ugg-reset-filters,
.ugg-filter-sticky-actions .ugg-cancel-filters {
    background: #fff !important;
    color: #111 !important;
    border-color: #cfc7bf !important;
}

.ugg-filter-sticky-actions .button:hover,
.ugg-filter-sticky-actions .button:focus {
    transform: none !important;
    box-shadow: none !important;
}

.ugg-ajax-filter-form.is-loading,
#ugg-products-results.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.ugg-no-products {
    padding: 40px 0;
    text-align: center;
    font-weight: 700;
}

#ugg-products-results nav.woocommerce-pagination {
    width: 100%;
    margin: 36px 0;
    text-align: center;
    overflow: hidden;
}

#ugg-products-results .woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px;
    margin: 0;
    list-style: none;
}

#ugg-products-results .woocommerce-pagination ul.page-numbers li {
    display: inline-flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

#ugg-products-results .woocommerce-pagination .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0 5px;
    border: 1px solid #555;
    border-radius: 50% !important;
    color: #333;
    background: #fff;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    margin-right: 0 !important;
}

#ugg-products-results .woocommerce-pagination .page-number.current {
    background: #111;
    border-color: #111;
    color: #fff;
    cursor: default;
}

#ugg-products-results .woocommerce-pagination .page-number.dots {
    min-width: 28px;
    width: 28px;
    border-color: transparent;
    background: transparent;
    pointer-events: none;
    cursor: default;
}

#ugg-products-results .woocommerce-pagination a.page-number:hover,
#ugg-products-results .woocommerce-pagination button.page-number:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.ugg-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.ugg-filter-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ugg-filter-popup {
    position: fixed;
    z-index: 999999;
    top: 50%;
    left: 50%;
    width: min(1060px, calc(100vw - 48px));
    max-height: calc(100vh - 56px);
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 14px)) scale(0.965);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    display: flex;
    flex-direction: column;
}

.ugg-filter-popup.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

body.ugg-filter-popup-open {
    overflow: hidden;
}

.ugg-filter-popup .ugg-filter-drawer-heading {
    flex: 0 0 auto;
    margin: 0;
    padding: 17px 68px 14px 22px;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
    color: #111;
    background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
    border-bottom: 1px solid #f0e7de;
    position: relative;
    z-index: 20;
    letter-spacing: -0.02em;
}

.ugg-filter-popup .ugg-filter-drawer-heading::after {
    content: "Refine by type, size, colour and material";
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: 0;
}

.ugg-filter-popup .ugg-ajax-filter-form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 14px 18px 16px;
}

.ugg-filter-popup .ugg-filter-canvas-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    padding: 0 6px 2px 0;
}

.ugg-filter-popup .ugg-filter-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 769px) {
    .ugg-filter-popup .ugg-filter-card {
        height: 174px;
        min-height: 174px;
    }
}

.ugg-filter-popup .ugg-filter-options {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.ugg-filter-popup .ugg-filter-sticky-actions {
    flex: 0 0 auto;
    position: relative;
    bottom: auto;
    margin: 0;
    padding: 12px 0 0;
    background: #fff;
    z-index: 25;
}

.ugg-filter-popup-close {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #f0eeec !important;
    color: #111 !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 24px !important;
    line-height: 34px !important;
    font-weight: 400 !important;
    text-align: center;
    cursor: pointer;
    z-index: 30;
}

.ugg-filter-popup-close:hover,
.ugg-filter-popup-close:focus {
    background: #f0eeec !important;
    color: #111 !important;
    box-shadow: none !important;
    outline: none !important;
}

@media (max-width: 768px) {
    .ugg-filter-overlay {
        backdrop-filter: none;
    }

    .ugg-filter-popup {
        width: 92vw;
        height: 80vh;
        height: 80dvh;
        max-height: 80vh;
        max-height: 80dvh;
        border-radius: 16px;
        overflow: hidden;
    }

    .ugg-filter-popup .ugg-filter-drawer-heading {
        flex: 0 0 auto;
        margin: 0;
        padding: 14px 58px 12px 18px;
        background: #fff;
        border-bottom: 1px solid #eeeeee;
        font-size: 20px;
        line-height: 1.15;
    }

    .ugg-filter-popup .ugg-filter-drawer-heading::after {
        margin-top: 4px;
        font-size: 12px;
    }

    .ugg-filter-popup-close {
        top: 11px;
        right: 13px;
        z-index: 40;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 9px !important;
        font-size: 23px !important;
        line-height: 32px !important;
    }

    .ugg-filter-popup .ugg-ajax-filter-form {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
    }

    .ugg-filter-popup .ugg-filter-sticky-actions {
        order: 2;
        flex: 0 0 auto;
        position: relative;
        bottom: auto;
        z-index: 25;
        display: flex;
        gap: 9px;
        padding: 10px 16px 12px;
        margin: 0;
        background: #fff;
        border-top: 1px solid #eeeeee;
        border-bottom: 0;
        box-shadow: none;
    }

    .ugg-filter-popup .ugg-filter-sticky-actions .button {
        flex: 1 1 0;
        min-height: 38px;
        height: 38px;
        padding: 0 10px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    .ugg-filter-popup .ugg-filter-canvas-inner {
        order: 1;
        flex: 1 1 auto;
        min-height: 0;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-gutter: auto;
        padding: 12px 10px 14px 14px;
    }

    .ugg-filter-popup .ugg-filter-card {
        position: relative !important;
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        padding: 12px !important;
        border-radius: 13px;
        margin: 0 !important;
    }

    .ugg-filter-popup .ugg-filter-title {
        font-size: 14px;
    }

    .ugg-filter-popup .ugg-filter-title-line {
        margin-bottom: 7px;
    }

    .ugg-filter-popup .ugg-filter-options {
        display: block !important;
        flex: none !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        -webkit-overflow-scrolling: touch;
        padding-right: 0;
    }

    .ugg-filter-popup .ugg-filter-option {
        min-height: 32px;
        font-size: 14px;
        padding: 5px 4px;
    }

    .ugg-filter-popup .ugg-filter-option.ugg-filter-mobile-extra:not(.is-mobile-visible) {
        display: none !important;
    }

    .ugg-filter-popup .ugg-filter-mobile-show-more {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 38px;
        margin: 8px 0 2px;
        padding: 0 12px;
        border: 1px solid #eaded4;
        border-radius: 999px;
        background: #fffaf6;
        color: #b96702;
        box-shadow: none;
        font-size: 14px;
        line-height: 1;
        font-weight: 700;
        cursor: pointer;
        text-transform: none;
        box-sizing: border-box;
    }

    .ugg-filter-popup .ugg-filter-card.is-mobile-expanded .ugg-filter-mobile-show-more {
        display: none !important;
    }

    .ugg-filter-popup .ugg-filter-term-search {
        height: auto !important;
        font-size: 14px;
        line-height: 38px;
        margin-bottom: 8px;
        border-radius: 8px;
    }

    #ugg-products-results nav.woocommerce-pagination {
        margin: 28px 0;
    }

    #ugg-products-results .woocommerce-pagination ul.page-numbers {
        gap: 6px;
        padding: 0 8px;
    }

    #ugg-products-results .woocommerce-pagination .page-number {
        min-width: 42px;
        width: 42px;
        height: 42px;
        padding: 0 5px;
        font-size: 14px;
    }

    #ugg-products-results .woocommerce-pagination .page-number.dots {
        min-width: 18px;
        width: 18px;
        padding: 0 2px;
    }
}

@media (max-width: 768px) {
    html body.woocommerce.archive #ugg-filter-popup .ugg-filter-canvas-inner,
    html body.tax-product_cat #ugg-filter-popup .ugg-filter-canvas-inner {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-auto-flow: row !important;
        align-items: stretch !important;
        gap: 10px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    html body.woocommerce.archive #ugg-filter-popup .ugg-filter-card,
    html body.tax-product_cat #ugg-filter-popup .ugg-filter-card {
        position: static !important;
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        transform: none !important;
        margin: 0 !important;
    }

    html body.woocommerce.archive #ugg-filter-popup .ugg-filter-card *,
    html body.tax-product_cat #ugg-filter-popup .ugg-filter-card * {
        transform: none !important;
    }

    html body.woocommerce.archive #ugg-filter-popup .ugg-filter-options,
    html body.tax-product_cat #ugg-filter-popup .ugg-filter-options {
        position: relative !important;
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    html body.woocommerce.archive #ugg-filter-popup .ugg-filter-option.ugg-filter-mobile-extra:not(.is-mobile-visible),
    html body.tax-product_cat #ugg-filter-popup .ugg-filter-option.ugg-filter-mobile-extra:not(.is-mobile-visible) {
        display: none !important;
    }

    html body.woocommerce.archive #ugg-filter-popup .ugg-filter-term-search,
    html body.tax-product_cat #ugg-filter-popup .ugg-filter-term-search {
        display: block !important;
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        font-size: 14px !important;
        line-height: 38px !important;
        display: none !important;
    }
}

/* =========================================================
   CATEGORY HEADER / TOOLBAR / RELATED SEARCHES
   ========================================================= */
        body.woocommerce.archive .shop-page-title.category-page-title {
            display: none !important;
        }

        body.woocommerce.archive .shop-container > .term-description,
        body.woocommerce.archive .shop-container > .page-description,
        body.woocommerce.archive .woocommerce-products-header .term-description,
        body.woocommerce.archive .woocommerce-products-header__title {
            display: none !important;
        }

        body.woocommerce.archive .category-page-row {
            padding-top: 0 !important;
        }

        .ugg-category-ui {
            background-color: #fff;
            padding: 5px 0 10px !important;
        }

        .ugg-category-hero {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
            gap: 32px;
            align-items: stretch;
            padding: 0;
            margin-bottom: 10px;
        }

        .ugg-category-hero-main {
            min-width: 0;
        }

        .ugg-category-breadcrumb-wrap {
            margin-bottom: 5px;
            color: #777;
            font-size: 14px;
            line-height: 1.4;
            margin-top: 5px;
        }

        .ugg-category-breadcrumb-wrap .breadcrumbs,
        .ugg-category-breadcrumb-wrap .woocommerce-breadcrumb {
            margin: 0;
            color: #777;
            font-size: 14px;
            line-height: 1.4;
            text-transform: none;
        }

        .ugg-category-breadcrumb-wrap a {
            color: #555;
            text-decoration: none;
        }

        .ugg-category-breadcrumb-wrap a:hover {
            color: #111;
        }

        .ugg-breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    color: #b8b8b8;
    vertical-align: middle;
    line-height: 1;
}

.ugg-breadcrumb-separator svg {
    display: block;
    width: 10px;
    height: 10px;
}

        .ugg-breadcrumb-current {
            color: #555;
            font-weight: 600;
        }

        .ugg-category-title {
            margin: 0 0 10px;
            color: #111;
            font-size: 28px;
            line-height: 1.18;
            font-weight: 500;
            letter-spacing: -0.02em;
        }

        .ugg-category-description {
            max-width: 720px;
            color: #333;
            font-size: 15px;
            line-height: 1.65;
        }

        .ugg-category-description p:last-child {
            margin-bottom: 0;
        }

        .ugg-category-related-searches {
            --ugg-category-related-searches-gap: 12px;
            min-width: 0;
            align-self: stretch;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .ugg-category-related-searches-viewport {
            width: 100%;
            overflow: hidden;
        }

        .ugg-category-related-searches-track {
            display: flex;
            flex-wrap: nowrap;
            gap: var(--ugg-category-related-searches-gap);
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: none;
            scroll-behavior: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
            scrollbar-width: none;
            touch-action: pan-x pan-y;
            will-change: scroll-position;
        }

        .ugg-category-related-searches-track::-webkit-scrollbar {
            display: none;
        }

        .ugg-category-related-searches-card {
            flex: 0 0 calc((100% - (var(--ugg-category-related-searches-gap) * 3)) / 3.25);
            width: calc((100% - (var(--ugg-category-related-searches-gap) * 3)) / 3.25);
            max-width: calc((100% - (var(--ugg-category-related-searches-gap) * 3)) / 3.25);
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 12px;
            min-height: 88px;
            padding: 10px 11px;
            color: #111;
            text-decoration: none;
            scroll-snap-align: start;
            background: linear-gradient(180deg, #fffaf4 0%, #ffffff 34%, #ffffff 100%);
            border: 1px solid #e6ddd4;
            border-radius: 14px;
            box-sizing: border-box;
        }

        .ugg-category-related-searches-card:hover {
            color: #b96702;
            text-decoration: none;
            border-color: #d8cab8;
        }

        .ugg-category-related-searches-image {
            position: relative;
            display: block;
            flex: 0 0 58px;
            width: 58px;
            height: 58px;
            overflow: hidden;
            border-radius: 9px;
            background: #f6f1ea;
        }

        .ugg-category-related-searches-image img,
        .ugg-category-related-searches-image .woocommerce-placeholder {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            margin: 0;
            -webkit-user-drag: none;
            user-select: none;
        }

        .ugg-category-related-searches-name {
            flex: 1 1 auto;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-width: 0;
            min-height: 0;
            color: inherit;
            font-size: 14px;
            line-height: 1.2;
            font-weight: 500;
        }

        .ugg-category-related-searches-placeholder {
            display: block;
            width: 100%;
            height: 100%;
            background: #f6f1ea;
        }

        @media (min-width: 1280px) {
            .ugg-category-related-searches-card {
                flex-basis: calc((100% - (var(--ugg-category-related-searches-gap) * 3)) / 3.25);
                width: calc((100% - (var(--ugg-category-related-searches-gap) * 3)) / 3.25);
                max-width: calc((100% - (var(--ugg-category-related-searches-gap) * 3)) / 3.25);
            }
        }

        @media (hover: hover) and (pointer: fine) {
            .ugg-category-related-searches-track {
                cursor: grab;
            }

            .ugg-category-related-searches-track.is-pointer-down {
                cursor: grabbing;
            }

            .ugg-category-related-searches-track.is-dragging,
            .ugg-category-related-searches-track.is-dragging * {
                cursor: grabbing !important;
                user-select: none;
            }
        }

        .ugg-shop-toolbar {
            display: grid;
            grid-template-columns: auto minmax(260px, 1fr) max-content minmax(220px, 264px);
            gap: 14px;
            align-items: center;
            padding: 5px 0 0;
        }

        .ugg-toolbar-filter {
            display: flex;
            align-items: center;
            justify-self: start;
        }

        .ugg-shop-toolbar .filter-button.ugg-toolbar-filter-button {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            gap: 7px;
            min-height: 33px;
            padding: 0 18px !important;
            margin: 0 !important;
            border: 1px solid #d6d6d6 !important;
            border-radius: 7px !important;
            color: #111 !important;
            font-size: 15px !important;
            line-height: 1 !important;
            box-shadow: none !important;
            text-transform: none !important;
            white-space: nowrap;
        }

        .ugg-shop-toolbar .filter-button.ugg-toolbar-filter-button strong,
        .ugg-shop-toolbar .filter-button.ugg-toolbar-filter-button b {
            color: inherit !important;
            font-weight: 500 !important;
        }

        .ugg-shop-toolbar .filter-button.ugg-toolbar-filter-button .icon-equalizer {
            color: #ff9b00 !important;
        }

        .ugg-active-filters {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            min-width: 0;
            min-height: 32px;
        }

        .ugg-active-filters:empty {
            display: flex;
        }

        .ugg-active-filter-chip {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            min-height: 33px;
            padding: 0 10px;
            border: 1px solid #e0e0e0;
            border-radius: 7px;
            background: #f7f7f7;
            color: #333;
            font-size: 14px;
            line-height: 1;
            white-space: nowrap;
        }

        .ugg-active-filter-chip button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            min-width: 18px;
            min-height: 18px;
            padding: 0 !important;
            margin: 0 !important;
            border: 0 !important;
            border-radius: 999px !important;
            background: transparent !important;
            color: #777 !important;
            font-size: 16px;
            line-height: 1 !important;
            cursor: pointer;
        }

        .ugg-active-filter-chip button:hover {
            color: #111 !important;
        }

        .ugg-active-filter-clear {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 33px;
            padding: 0 10px !important;
            border: 1px solid #d8d8d8 !important;
            border-radius: 7px !important;
            background: #a84c00 !important;
            color: #fff !important;
            font-size: 14px !important;
            line-height: 1 !important;
            cursor: pointer;
            margin-bottom: 0;
        }

        .ugg-toolbar-result-count {
            justify-self: end;
            color: #111;
            font-size: 15px;
            line-height: 1.4;
            white-space: nowrap;
            text-align: right;
        }

        .ugg-toolbar-sort {
            display: flex;
            justify-content: flex-end;
            justify-self: end;
            width: 100%;
            min-width: 0;
        }

        .ugg-toolbar-sort .woocommerce-ordering {
            width: 100%;
            margin: 0;
        }

        .ugg-toolbar-sort .orderby {
            width: 100%;
            height: 42px;
            margin: 0;
            border: 1px solid #dddddd;
            border-radius: 7px;
            background-color: #fff;
            font-size: 14px;
        }

        @media (max-width: 1024px) {
            .ugg-category-hero {
                grid-template-columns: 1fr;
                gap: 18px;
            }

            .ugg-category-related-searches-card {
                flex-basis: calc((100% - (var(--ugg-category-related-searches-gap) * 3)) / 3.25);
                width: calc((100% - (var(--ugg-category-related-searches-gap) * 3)) / 3.25);
                max-width: calc((100% - (var(--ugg-category-related-searches-gap) * 3)) / 3.25);
            }

            .ugg-shop-toolbar {
                grid-template-columns: auto minmax(160px, 1fr) max-content minmax(190px, 240px);
                gap: 12px;
            }
        }

        @media (max-width: 768px) {
            .ugg-category-ui {
                padding-top: 16px;
                padding-bottom: 18px;
            }

            .ugg-category-hero {
                display: block;
                padding: 0 0 5px;
                border-bottom: 0;
            }

            .ugg-category-breadcrumb-wrap {
                margin-bottom: 5px;
                margin-top: 5px;
            }

            .ugg-category-breadcrumb-wrap .breadcrumbs,
            .ugg-category-breadcrumb-wrap .woocommerce-breadcrumb {
                font-size: 14px !important;
                white-space: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 2px;
            }

            .ugg-breadcrumb-separator {
                margin: 0 9px;
            }

            .ugg-category-title {
                margin-bottom: 0;
                font-size: 24px;
                line-height: 1.2;
                text-align: center;
            }

            .ugg-category-description {
                margin-top: 12px;
                font-size: 14px;
                line-height: 1.55;
                text-align: center;
            }

            .ugg-category-related-searches {
                --ugg-category-related-searches-gap: 10px;
                display: flex;
                margin-top: 14px;
            }

            .ugg-category-related-searches-track {
                scroll-snap-type: x mandatory;
                scroll-behavior: smooth;
                padding-bottom: 4px;
            }

            .ugg-category-related-searches-card {
                flex-basis: calc((100% - (var(--ugg-category-related-searches-gap) * 2)) / 2.75);
                width: calc((100% - (var(--ugg-category-related-searches-gap) * 2)) / 2.75);
                max-width: calc((100% - (var(--ugg-category-related-searches-gap) * 2)) / 2.75);
                gap: 8px;
                min-height: 74px;
                padding: 8px;
                border-radius: 12px;
            }

            .ugg-category-related-searches-image {
                flex-basis: 44px;
                width: 44px;
                height: 44px;
                border-radius: 8px;
            }

            .ugg-category-related-searches-name {
                font-size: 13px;
                line-height: 1.18;
                -webkit-line-clamp: 3;
            }

            .ugg-shop-toolbar {
                display: grid;
                grid-template-columns: minmax(0, 1fr) minmax(150px, 48%);
                gap: 10px;
                align-items: center;
                padding-top: 5px;
            }

            .ugg-toolbar-filter {
                grid-column: 1;
                grid-row: 1;
                min-width: 0;
            }

            .ugg-shop-toolbar .filter-button.ugg-toolbar-filter-button {
                width: 100%;
                justify-content: center;
                min-height: 33px;
                padding: 0 12px !important;
                font-size: 14px !important;
            }

            .ugg-toolbar-sort {
                grid-column: 2;
                grid-row: 1;
                min-width: 0;
            }

            .ugg-toolbar-sort .orderby {
                height: 42px;
                font-size: 14px;
            }

            .ugg-toolbar-result-count {
                display: none;
            }

            .ugg-active-filters {
                grid-column: 1 / -1;
                grid-row: 2;
                gap: 7px;
                min-height: 0;
                padding-top: 2px;
                overflow-x: auto;
                flex-wrap: nowrap;
                -webkit-overflow-scrolling: touch;
            }

            .ugg-active-filters:empty {
                display: none;
            }

            .ugg-active-filter-chip,
            .ugg-active-filter-clear {
                flex: 0 0 auto;
            }
        }
