/* ── Override .car-content white card (AllCars uses full-width layout) ── */
.car-content { background: transparent; padding: 0; border-radius: 0; box-shadow: none; }

/* ── Page layout ── */
.ac-page {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 32px;
    padding: 48px 0 80px;
    align-items: start;
}

.ac-sidebar {
    position: sticky;
    top: 76px;
}

/* ── Filter card ── */
.ac-filter-card {
    background: var(--cs-white);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 18px 20px;
    margin-bottom: 10px;
}

.ac-filter-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--cs-muted);
    margin-bottom: 12px;
    display: block;
}

/* ── Search input ── */
.ac-search-input {
    width: 100%;
    border: 1.5px solid var(--cs-border);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: .875rem;
    color: var(--cs-text);
    background: var(--cs-surface);
    outline: none;
    transition: var(--cs-ease);
    font-family: inherit;
}
.ac-search-input:focus {
    border-color: var(--cs-amber);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,.1);
}
.ac-search-input::placeholder { color: #94a3b8; }

/* ── Brand radios ── */
.ac-brand-list {
    max-height: 224px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--cs-border) transparent;
}
.ac-radio {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    font-size: .875rem;
    color: var(--cs-text);
    cursor: pointer;
    transition: color .15s;
}
.ac-radio input[type="radio"] {
    accent-color: var(--cs-amber);
    width: 14px; height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}
.ac-radio:hover { color: var(--cs-amber); }

/* ── Price range ── */
.ac-price-row { display: flex; gap: 8px; align-items: center; }
.ac-price-input {
    flex: 1; min-width: 0;
    border: 1.5px solid var(--cs-border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .8125rem;
    color: var(--cs-text);
    background: var(--cs-surface);
    outline: none;
    transition: var(--cs-ease);
    font-family: inherit;
}
.ac-price-input:focus {
    border-color: var(--cs-amber);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,.1);
}
.ac-price-input::placeholder { color: #94a3b8; }
.ac-price-sep { font-size: .8rem; color: var(--cs-muted); flex-shrink: 0; }

/* ── Sort select ── */
.ac-sort-select {
    width: 100%;
    border: 1.5px solid var(--cs-border);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: .875rem;
    color: var(--cs-text);
    background: var(--cs-surface);
    outline: none;
    cursor: pointer;
    transition: var(--cs-ease);
    font-family: inherit;
    appearance: none;
    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 fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.ac-sort-select:focus { border-color: var(--cs-amber); box-shadow: 0 0 0 3px rgba(245,158,11,.1); }

/* ── Filter buttons ── */
.ac-btn-apply {
    display: block; width: 100%;
    background: var(--cs-amber);
    color: var(--cs-dark);
    font-weight: 700; font-size: .875rem;
    border: none; border-radius: 8px;
    padding: 10px; cursor: pointer;
    transition: var(--cs-ease);
    font-family: inherit;
    margin-bottom: 8px;
    text-align: center;
}
.ac-btn-apply:hover { background: var(--cs-amber-dark); }
.ac-btn-clear {
    display: block; width: 100%; text-align: center;
    font-size: .875rem; font-weight: 500;
    color: var(--cs-muted); text-decoration: none;
    padding: 8px; border-radius: 8px;
    border: 1.5px solid var(--cs-border);
    transition: var(--cs-ease);
}
.ac-btn-clear:hover { color: var(--cs-text); border-color: #94a3b8; background: var(--cs-surface); }

/* ── Results bar ── */
.ac-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.ac-results-title { font-size: 1.125rem; font-weight: 700; color: var(--cs-text); }
.ac-results-count { font-size: .875rem; font-weight: 400; color: var(--cs-muted); margin-left: 6px; }

/* ── Active filter tags ── */
.ac-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.ac-filter-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .75rem; font-weight: 600;
    background: rgba(245,158,11,.1); color: var(--cs-amber);
    border: 1px solid rgba(245,158,11,.25);
    border-radius: 100px; padding: 4px 10px;
    text-decoration: none; transition: var(--cs-ease);
}
.ac-filter-tag:hover { background: rgba(245,158,11,.2); color: var(--cs-amber); }

/* ── Pagination ── */
.ac-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.ac-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border-radius: 8px; font-size: .875rem; font-weight: 600;
    text-decoration: none; color: var(--cs-muted);
    border: 1.5px solid var(--cs-border);
    transition: var(--cs-ease);
}
.ac-page-btn:hover { border-color: var(--cs-amber); color: var(--cs-amber); }
.ac-page-btn.active { background: var(--cs-amber); color: var(--cs-dark); border-color: var(--cs-amber); }

/* ── Empty state ── */
.ac-empty { text-align: center; padding: 80px 0 40px; color: var(--cs-muted); }
.ac-empty__icon { font-size: 2.5rem; margin-bottom: 16px; opacity: .5; }
.ac-empty__title { font-size: 1.125rem; font-weight: 700; color: var(--cs-text); margin-bottom: 8px; }
.ac-empty__sub { font-size: .9rem; margin-bottom: 24px; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .ac-page { grid-template-columns: 220px 1fr; gap: 24px; }
}
@media (max-width: 767.98px) {
    .ac-page { grid-template-columns: 1fr; padding: 24px 0 60px; gap: 16px; }
    .ac-sidebar { position: static; }
    .ac-brand-list { max-height: 160px; }
}
