/* Vehicle part filter — TZ "Фільтр деталей у каталозі автомобіля", rev. 5 (approved design). */
.pf-filter {
    --pf-accent: #E3441C;
    --pf-dark: #242424;
    --pf-field: #F2F3F6;
    margin: 0 0 1.5rem;
    background: #FFFFFF;
    border: 2px solid var(--pf-accent);
    border-radius: 16px;
    box-shadow: 0 0 0 6px rgba(227, 68, 28, .09);
    overflow: hidden;
    color: #1f1f1f;
    font: inherit;
}
.pf-filter__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--pf-dark);
    border-bottom: 4px solid var(--pf-accent);
    color: #fff;
}
.pf-filter__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--pf-accent);
    color: #fff;
}
.pf-filter__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
}
.pf-filter__vehicle {
    margin: 3px 0 0;
    font-size: 14px;
    color: #b9bcc3;
}
.pf-filter__body { padding: 20px; }
.pf-filter__search { margin-bottom: 16px; }
.pf-filter__input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--pf-field);
    color: #1f1f1f;
    font: inherit;
    font-size: 15px;
}
.pf-filter__input::placeholder { color: #8a8f98; }
.pf-filter__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}
.pf-field {
    flex: 1 1 190px;
    min-width: 0;
}
.pf-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
}
.pf-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 5px;
    border-radius: 5px;
    background: var(--pf-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.pf-field.is-disabled .pf-step { background: var(--pf-dark); }
.pf-select { position: relative; }
.pf-select::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    color: #555;
}
.pf-select select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: 44px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--pf-accent);
    border-radius: 10px;
    background: #fff;
    color: #1f1f1f;
    font: inherit;
    font-size: 14px;
    text-overflow: ellipsis;
    cursor: pointer;
}
.pf-select select:disabled {
    border-color: #d9dbe0;
    background: var(--pf-field);
    color: #9a9ea6;
    cursor: not-allowed;
}
.pf-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}
.pf-apply {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--pf-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.pf-apply:hover { filter: brightness(.95); }
.pf-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    border: 1px solid #d9dbe0;
    border-radius: 10px;
    background: #fff;
    color: #1f1f1f;
    cursor: pointer;
}
.pf-filter :focus-visible {
    outline: 3px solid rgba(227, 68, 28, .45);
    outline-offset: 2px;
}
.pf-filter__status {
    margin: 12px 0 0;
    font-size: 13px;
    color: #6b7079;
}
.pf-filter__status[data-pending="true"] { color: var(--pf-accent); font-weight: 600; }

.pf-results-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 .75rem;
    font-size: 14px;
    color: #6b7079;
}
.pf-empty {
    margin: 1rem 0 2rem;
    padding: 2rem 1rem;
    border: 1px dashed #E3441C;
    border-radius: 12px;
    text-align: center;
}
.pf-empty h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.pf-empty p { margin: 0 0 1rem; color: #6b7079; }
.pf-more-wrap { display: flex; justify-content: center; margin: 1.5rem 0 0; }
.pf-more {
    min-height: 46px;
    padding: 0 24px;
    border: 2px solid #E3441C;
    border-radius: 10px;
    background: #fff;
    color: #E3441C;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.pf-more[hidden] { display: none; }
.catalog_grid > .products-item[hidden] { display: none !important; }
.pf-kit-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff1ec;
    border: 1px solid #f6c3b2;
    color: #E3441C;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}
.pf-has-badge { position: relative; }
.pf-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

@media (max-width: 767px) {
    .pf-filter__head { padding: 16px; }
    .pf-filter__title { font-size: 20px; }
    .pf-filter__body { padding: 16px; }
    .pf-filter__row { flex-direction: column; align-items: stretch; }
    .pf-field { flex: 0 0 auto; width: 100%; }
    .pf-actions { width: 100%; }
    .pf-apply { flex: 1 1 auto; min-height: 46px; }
    .pf-reset { min-height: 46px; width: 46px; }
}
