/* ── Light theme (default) ─────────────────────── */
:root {
    --bg: #f4f4f5;
    --surface: #ffffff;
    --surface-2: #f9fafb;
    --border: #e5e7eb;
    --border-hover: #d1d5db;
    --text: #111827;
    --text-2: #4b5563;
    --text-3: #9ca3af;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-dim: rgba(37,99,235,0.08);
    --green: #16a34a;
    --green-dim: rgba(22,163,74,0.1);
    --orange: #d97706;
    --orange-dim: rgba(217,119,6,0.1);
    --red: #dc2626;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --transition: 0.15s ease;
}

/* ── Dark theme ───────────────────────────────── */
[data-theme="dark"] {
    --bg: #111827;
    --surface: #1f2937;
    --surface-2: #283141;
    --border: #374151;
    --border-hover: #4b5563;
    --text: #f9fafb;
    --text-2: #9ca3af;
    --text-3: #6b7280;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-dim: rgba(59,130,246,0.15);
    --green: #22c55e;
    --green-dim: rgba(34,197,94,0.15);
    --orange: #f59e0b;
    --orange-dim: rgba(245,158,11,0.15);
    --red: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
select, input { font-family: inherit; }

/* ── Site Header ──────────────────────────────── */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.header-search {
    flex: 1;
    position: relative;
}

.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
}

.header-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--text);
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.header-search input::placeholder { color: var(--text-3); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.result-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-hover); }

/* ── Layout ────────────────────────────────────── */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    min-height: calc(100vh - 100px);
}

/* ── Sidebar ───────────────────────────────────── */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: calc(100vh - 100px);
    position: sticky;
    top: 100px;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
}

.btn-reset-link {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.btn-reset-link:hover { background: var(--accent-dim); }

.filter-section {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.filter-section:last-of-type { border-bottom: none; }

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.filter-hint {
    font-size: 12px;
    color: var(--text-3);
}

/* Pill-style condition filter */
.filter-pills {
    display: flex;
    gap: 8px;
}

.pill-label { cursor: pointer; }
.pill-label input { display: none; }

.pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-2);
    background: var(--surface);
    transition: all var(--transition);
}

.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill-label input:checked + .pill {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Checkbox filter groups */
.filter-checks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-checks::-webkit-scrollbar { width: 4px; }
.filter-checks::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    padding: 3px 0;
    transition: color var(--transition);
}

.check-label:hover { color: var(--accent); }

.check-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
    flex-shrink: 0;
}

.check-label input:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.check-label input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Range inputs */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs input {
    flex: 1;
    width: 100%;
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: border-color var(--transition);
}

.range-inputs input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}

.range-inputs input::placeholder { color: var(--text-3); }
.range-sep { color: var(--text-3); font-size: 12px; flex-shrink: 0; }

.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
}

.update-badge {
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
}

/* ── Main Content ──────────────────────────────── */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── (toolbar removed — sort is in style header) ── */

.btn-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}
.btn-filter-toggle:hover { border-color: var(--accent); color: var(--accent); }

.sort-select {
    padding: 8px 32px 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── Vehicle Grid ──────────────────────────────── */
.inventory-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    flex: 1;
    overflow-y: auto;
    align-content: start;
}

/* ── Vehicle Card ──────────────────────────────── */
.vehicle-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.vehicle-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-image {
    width: 100%;
    height: 200px;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-card:hover .card-image img {
    transform: scale(1.03);
}

.card-image.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image.no-img::after {
    content: '';
    width: 56px;
    height: 56px;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.card-cond {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 99px;
    backdrop-filter: blur(8px);
}

.card-cond[data-cond="New"] {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(22,163,74,0.2);
}

.card-cond[data-cond="Used"] {
    background: var(--orange-dim);
    color: var(--orange);
    border: 1px solid rgba(217,119,6,0.2);
}

.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-item {
    font-size: 12px;
    color: var(--text-2);
    background: var(--bg);
    padding: 3px 8px;
    border-radius: 99px;
}

.card-specs {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.4;
}

.card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.card-msrp {
    font-size: 12px;
    color: var(--text-3);
    text-decoration: line-through;
}

.card-dealer {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

/* ── States ──────────────────────────────────────── */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 20px;
    color: var(--text-2);
    grid-column: 1 / -1;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-2);
    grid-column: 1 / -1;
}

.empty-state.hidden { display: none; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; color: var(--text); }
.empty-state p { color: var(--text-3); }

/* ── Load More ───────────────────────────────────── */
.btn-load-more {
    grid-column: 1 / -1;
    display: block;
    width: 280px;
    margin: 20px auto;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    text-align: center;
}

.btn-load-more:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ── Shop by Style ───────────────────────────────── */
.shop-by-style {
    padding: 20px 24px 0;
}

.style-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.style-sort-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
    white-space: nowrap;
}

.style-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.style-reset {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius);
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}
.style-reset:hover { background: var(--accent-dim); }
.style-reset.hidden { display: none; }

.style-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.style-scroll::-webkit-scrollbar { display: none; }

.style-track {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
}

.style-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 18px 10px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    min-width: 100px;
}

.style-item:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.style-item.active {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 0 1px var(--accent);
}

.style-icon {
    width: 72px;
    height: 36px;
    color: var(--text-2);
    transition: color var(--transition);
}

.style-icon svg {
    width: 100%;
    height: 100%;
}

.style-item:hover .style-icon,
.style-item.active .style-icon { color: var(--accent); }

.style-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.style-count {
    font-size: 11px;
    color: var(--text-3);
}

/* ── Sponsor: Banner ─────────────────────────────── */
.sponsor-banner {
    padding: 0 24px;
    margin-bottom: -8px;
}

.sponsor-banner.hidden { display: none; }

.sponsor-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
}

a.sponsor-banner-inner:hover { box-shadow: var(--shadow); }

.sponsor-banner-img {
    width: 120px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.sponsor-banner-text { flex: 1; }

.sponsor-banner-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.sponsor-banner-desc {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 2px;
}

.sponsor-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.sponsor-tag {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── Sponsor: Sidebar ────────────────────────────── */
.sponsor-sidebar.hidden { display: none; }

.sponsor-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition);
}

a.sponsor-sidebar-inner:hover { box-shadow: var(--shadow); }

.sponsor-sidebar-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
}

.sponsor-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.sponsor-sidebar-desc {
    font-size: 12px;
    color: var(--text-2);
}

/* ── Sponsor: Inline Card ────────────────────────── */
.sponsor-card {
    border: 2px dashed var(--border);
    background: var(--surface-2);
}

.sponsor-card:hover {
    border-color: var(--accent);
    border-style: solid;
}

.sponsor-card-image {
    background: linear-gradient(135deg, var(--accent-dim), var(--surface-2));
}

.sponsor-card-image .sponsor-tag {
    position: absolute;
    top: 10px;
    left: 10px;
}

.sponsor-cta-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}

/* ── SEO Hero ─────────────────────────────────────── */
.seo-hero {
    padding: 20px 24px 0;
}

.seo-hero h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.seo-hero p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    max-width: 720px;
}

.seo-hero strong {
    color: var(--text);
    font-weight: 600;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 40px 24px 20px;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-section li {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.footer-section p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
}

.footer-bottom {
    max-width: 1440px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-3);
}

/* ── Legal Pages ──────────────────────────────────── */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    line-height: 1.7;
}

.legal-page h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.legal-updated {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 10px;
}

.legal-page h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-page p {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 12px;
}

.legal-page li {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--accent);
}

/* ── Contact Page ─────────────────────────────────── */
.contact-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.contact-header {
    margin-bottom: 32px;
}

.contact-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-header p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input::placeholder { color: var(--text-3); }

textarea.form-input { resize: vertical; min-height: 120px; }

select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-submit {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.form-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-result {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.form-result.hidden { display: none; }
.form-result.success { background: var(--green-dim); color: var(--green); }
.form-result.error { background: rgba(239,68,68,0.1); color: var(--red); }

/* ── Cookie Consent ──────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 300;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    font-size: 13px;
    color: var(--text-2);
    flex-wrap: wrap;
}

.cookie-banner.hidden { display: none; }

.cookie-banner a { color: var(--accent); }

.cookie-accept {
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

.cookie-accept:hover { background: var(--accent-hover); }

/* ── Sidebar Overlay ─────────────────────────────── */
#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
    backdrop-filter: blur(2px);
}
#sidebarOverlay.show { display: block; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .btn-filter-toggle { display: flex; }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 300px;
        z-index: 200;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
    }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.2); }

    .header-inner { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
    .brand-logo { height: 48px; }
    .header-search { max-width: 100%; min-width: 200px; }
    .result-count { display: none; }

    .inventory-grid { padding: 16px; gap: 16px; }
}

@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .brand-name { font-size: 16px; }
    .inventory-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }
    .card-image { height: 180px; }
    .toolbar { padding: 10px 12px; }
}
