/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,163,23,0.35);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    background: #2e2e2e;
    color: var(--text-primary);
    border-color: #444;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent-dim);
    color: var(--accent-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}
.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow);
}

.card-clickable {
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.card-clickable:hover {
    border-color: rgba(232,163,23,0.35);
    box-shadow: 0 4px 20px rgba(232,163,23,0.08);
    transform: translateY(-2px);
}

/* ── Feature Cards (3-column) ──────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ── Category Cards ─────────────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.cat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: block;
}
.cat-card:hover {
    border-color: rgba(232,163,23,0.4);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,163,23,0.1);
}

.cat-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1;
}

.cat-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.cat-card-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Article / Product Cards ────────────────────────────────── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.article-card-img {
    height: 160px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.article-card-img img { max-height: 140px; width: auto; object-fit: contain; }
.article-card-img .no-img { color: var(--text-muted); font-size: 40px; }

.article-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.article-card-brand { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent); }
.article-card-name  { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.article-card-no    { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.article-card-specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.spec-key   { color: var(--text-muted); }
.spec-val   { color: var(--text-secondary); font-weight: 500; }

.article-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font);
    transition: border-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,163,23,0.15);
}
.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23606060' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
select.form-control:disabled { opacity: 0.5; cursor: not-allowed; }

textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Vehicle Selector ───────────────────────────────────────── */
.vehicle-selector {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.vs-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.vs-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.vs-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Vehicle Bar ─────────────────────────────────────────────── */
.vehicle-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    display: none;
}
.vehicle-bar.active { display: block; }

.vb-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vb-label { font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.vb-car   { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.vb-specs { font-size: 13px; color: var(--text-secondary); }
.vb-clear { margin-left: auto; font-size: 12px; color: var(--text-muted); cursor: pointer; background: none; border: none; font-family: var(--font); transition: color var(--transition); }
.vb-clear:hover { color: var(--danger); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-muted  { background: var(--bg-tertiary); color: var(--text-muted); }

/* ── Search Bar (Header) ─────────────────────────────────────── */
.header-search {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.header-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,163,23,0.12);
}

.hs-input {
    flex: 1;
    background: none;
    border: none;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
}
.hs-input::placeholder { color: var(--text-muted); }

.hs-btn {
    background: var(--accent);
    border: none;
    padding: 0 16px;
    height: 100%;
    min-height: 38px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.5px;
    font-family: var(--font);
    transition: background var(--transition);
}
.hs-btn:hover { background: var(--accent-hover); }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, #1a1200 0%, #0d0d0d 100%);
    border: 1px solid rgba(232,163,23,0.2);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.cta-banner-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-banner-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border-light); }
.breadcrumb-current { color: var(--text-secondary); }

/* ── Table ──────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-tertiary); }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 17px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state-text  { font-size: 14px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; }
    .cat-grid     { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: 1fr; }
    .cta-banner   { padding: 32px 20px; }
    .cta-banner-title { font-size: 24px; }
}
