/* === Listing V3 overrides — better sort/filter UX === */

/* 1. Show button text on mobile (override display:none) */
@media (max-width: 772px) {
    .main__setub-item span {
        display: inline !important;
        font-size: 13px;
    }
    .main__setub-item {
        padding: 8px 14px;
    }
}

/* 2. Toolbar layout: count + buttons in one row */
.main__setub {
    align-items: center;
    margin-top: 12px;
    margin-bottom: 4px;
}

/* Product count (injected via JS or PHP) */
.listing__count {
    font-size: 13px;
    color: #888;
    margin-right: auto;
    white-space: nowrap;
}

/* 3. Active filters row */
.listing__activeFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 4px;
}
.listing__activeFilters:empty { display: none; }

.listing__activeChip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #fff0f0;
    border: 1.5px solid #f66;
    color: #f66;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.listing__activeChip::after {
    content: '\2715';
    font-size: 11px;
    margin-left: 2px;
    opacity: 0.7;
}
.listing__activeChip:active {
    background: #ffe0e0;
}

.listing__clearAll {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    -webkit-tap-highlight-color: transparent;
}

/* 4. Better subfilter chips */
.subfilters__chips .main__tags-item {
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.15s;
}
.subfilters__chips .main__tags-item.active {
    background: #f66 !important;
    border-color: #f66;
    color: #fff !important;
    font-weight: 500;
}
.subfilters__chips .main__tags-item:active {
    transform: scale(0.97);
}

/* 5. Trust bar for listing */
.listing__trust {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0 8px;
    font-size: 12px;
    color: #888;
}
.listing__trustDot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}
