/* Stable shared controls for the product listing page across every theme. */
#filter-pills-tabContent .tab-pane.fade {
    transition: none !important;
}

#filter-pills-tabContent img {
    max-width: 100%;
}

.filter-rating-select .form-checkbox {
    align-items: center;
    display: flex !important;
    min-height: 20px;
    padding-left: 24px;
}

.filter-rating-select .form-checkbox:not(:last-child) {
    margin-bottom: 12px !important;
}

.filter-rating-select .mcheck-input {
    flex: 0 0 16px;
    height: 16px !important;
    margin-left: -24px !important;
    margin-top: 0 !important;
    width: 16px !important;
}

.filter-rating-select .mcheck-label {
    align-items: center;
    column-gap: 4px;
    cursor: pointer;
    display: flex !important;
    flex-wrap: nowrap;
    height: 20px;
    margin: 0;
    padding: 0;
    width: max-content;
}

.filter-rating-select .mcheck-label img {
    display: block !important;
    flex: 0 0 16px;
    height: 16px !important;
    margin: 0 !important;
    object-fit: contain;
    width: 16px !important;
}

.filter-tab-header > .d-flex:last-child {
    flex-wrap: nowrap;
}

.filter-tab-header > .d-flex:last-child form {
    margin: 0;
    min-width: 190px;
}

.filter-tab-header select.fsh-md-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff !important;
    background-image:
        linear-gradient(45deg, transparent 50%, #818195 50%),
        linear-gradient(135deg, #818195 50%, transparent 50%) !important;
    background-position:
        calc(100% - 16px) 50%,
        calc(100% - 11px) 50% !important;
    background-repeat: no-repeat !important;
    background-size: 5px 5px, 5px 5px !important;
    border: 1px solid #d9d9df !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    color: #555565 !important;
    cursor: pointer;
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    height: 40px !important;
    line-height: 20px !important;
    margin: 0 !important;
    min-width: 190px;
    padding: 9px 34px 9px 12px !important;
    width: 100%;
}

.filter-tab-header select.fsh-md-select[style*="display: none"],
.filter-tab-header select.fsh-md-select:has(+ .nice-select.fsh-md-select) {
    display: none !important;
}

.filter-tab-header select.fsh-md-select:hover,
.filter-tab-header select.fsh-md-select:focus {
    border-color: #818195 !important;
    outline: none;
}

.filter-tab-header .nice-select.fsh-md-select {
    align-items: center;
    background-color: #fff !important;
    border: 1px solid #d9d9df !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    color: #555565 !important;
    display: flex;
    font-size: 14px !important;
    font-weight: 500 !important;
    height: 40px !important;
    line-height: 20px !important;
    min-width: 190px;
    padding: 9px 34px 9px 12px !important;
}

.filter-tab-header .nice-select.fsh-md-select:has(+ .nice-select.fsh-md-select) {
    display: none !important;
}

.filter-tab-header .nice-select.fsh-md-select::after {
    border-bottom: 2px solid #818195;
    border-right: 2px solid #818195;
    height: 7px;
    margin-top: -5px;
    right: 14px;
    transform: rotate(45deg);
    width: 7px;
}

.filter-tab-header .nice-select.fsh-md-select.open::after {
    transform: rotate(-135deg);
}

.filter-tab-header .nice-select.fsh-md-select .list {
    border: 1px solid #e6e6ea;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(13, 14, 16, 0.12);
    margin-top: 6px;
    min-width: 100%;
    padding: 6px;
}

.filter-tab-header .nice-select.fsh-md-select .option {
    border-radius: 4px;
    line-height: 20px !important;
    min-height: 34px !important;
    padding: 7px 10px;
}

@media (max-width: 575.98px) {
    .filter-tab-header > .d-flex:last-child,
    .filter-tab-header > .d-flex:last-child form {
        min-width: 100%;
        width: 100%;
    }

    .filter-tab-header select.fsh-md-select,
    .filter-tab-header .nice-select.fsh-md-select {
        min-width: 100%;
        width: 100%;
    }
}

/* Product listing isolation: theme styles must not hide cards or collapse pagination. */
#filter-pills-tabContent > .tab-pane { width: 100%; }
#filter-pills-tabContent > .tab-pane:not(.active) { display: none !important; }
#filter-pills-tabContent > .tab-pane.active { display: block !important; opacity: 1 !important; visibility: visible !important; }
#filter-pills-tabContent .fsh-pagination { align-items: center; display: flex !important; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; margin: 30px 0 0; padding: 0; }
#filter-pills-tabContent .fsh-pagination > li { display: block; flex: 0 0 auto; margin: 0 !important; padding: 0 !important; }
#filter-pills-tabContent .fsh-pagination .fsh-page-link { align-items: center; background: #f7f7f9; border: 1px solid transparent; border-radius: 50%; color: #0d0e10; display: inline-flex !important; font-size: 14px; height: 42px; justify-content: center; line-height: 1; margin: 0 !important; min-width: 42px; padding: 0 10px !important; text-decoration: none; width: auto; }
#filter-pills-tabContent .fsh-pagination .fsh-page-link.active { background: #0d0e10; color: #fff; }
#filter-pills-tabContent .fsh-pagination .fsh-page-link.disabled { cursor: default; opacity: .45; pointer-events: none; }
#filter-pills-tabContent .fsh-pagination .fsh-page-link svg { display: block; flex: 0 0 24px; }