*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font:14px/1.5 system-ui,-apple-system,sans-serif;color:#212529;background:#f0f2f5}
a{color:#1565c0;text-decoration:none}a:hover{text-decoration:underline}
input,select,button{font:inherit}
button{cursor:pointer}

/* Layout */
.wrap{max-width:1280px;margin:0 auto;padding:0 16px}

/* Header */
header{background:#1565c0;color:#fff;padding:0}
.hdr{display:flex;align-items:center;gap:16px;padding:10px 16px;max-width:1280px;margin:0 auto}
.logo{font-size:20px;font-weight:800;color:#fff;white-space:nowrap;text-decoration:none}
.logo span{color:#ffd54f}
.search-form{flex:1;display:flex;gap:0;max-width:560px}
.search-input{flex:1;padding:8px 12px;border:none;border-radius:4px 0 0 4px;font-size:14px}
.search-btn{background:#f57c00;color:#fff;border:none;padding:8px 16px;border-radius:0 4px 4px 0;font-weight:700}
.search-btn:hover{background:#e65100}

/* Breadcrumb */
.bc{background:#fff;border-bottom:1px solid #e0e0e0;padding:6px 16px;font-size:12px;color:#6c757d}
.bc a{color:#1565c0}.bc span{margin:0 6px}

/* Vehicle Selector */
.vs{background:#fff;border:1px solid #e0e0e0;border-radius:6px;padding:16px;margin:16px 0}
.vs h2{font-size:15px;font-weight:700;margin-bottom:12px;color:#1565c0}
.vs-steps{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.vs-steps select{flex:1;min-width:180px;padding:8px 10px;border:1px solid #ccc;border-radius:4px;background:#fff;font-size:13px}
.vs-steps select:disabled{background:#f5f5f5;color:#999}
.vs-btn{background:#1565c0;color:#fff;border:none;padding:8px 18px;border-radius:4px;font-weight:700;font-size:13px}
.vs-btn:hover{background:#0d47a1}
.vs-sel-info{font-size:12px;color:#495057;margin-top:8px}

/* Parts layout */
.parts-wrap{display:grid;grid-template-columns:220px 1fr;gap:16px;margin:16px 0}
@media(max-width:700px){.parts-wrap{grid-template-columns:1fr}}

/* Sidebar */
.sidebar{background:#fff;border:1px solid #e0e0e0;border-radius:6px;padding:12px;align-self:start;position:sticky;top:8px}
.sidebar h3{font-size:13px;font-weight:700;color:#333;margin-bottom:8px;text-transform:uppercase;letter-spacing:.04em}
.cat-list{list-style:none;max-height:600px;overflow-y:auto}
.cat-list li a{display:flex;justify-content:space-between;align-items:center;padding:5px 6px;border-radius:3px;font-size:12.5px;color:#333}
.cat-list li a:hover{background:#e3f2fd;text-decoration:none}
.cat-list li a.active{background:#1565c0;color:#fff;font-weight:700}
.cat-list li a .cnt{font-size:11px;color:#999;white-space:nowrap}
.cat-list li a.active .cnt{color:#bbdefb}

/* Brand filter */
.brand-filter{margin-top:14px}
.brand-filter h3{font-size:13px;font-weight:700;color:#333;margin-bottom:6px;text-transform:uppercase;letter-spacing:.04em}
.brand-list{list-style:none;max-height:300px;overflow-y:auto}
.brand-list li a{display:flex;justify-content:space-between;padding:4px 6px;border-radius:3px;font-size:12px;color:#333}
.brand-list li a:hover{background:#e3f2fd;text-decoration:none}
.brand-list li a.active{background:#1565c0;color:#fff;font-weight:700}

/* Product list */
.product-list{display:flex;flex-direction:column;gap:8px}
.pcard{display:grid;grid-template-columns:120px 1fr auto;background:#fff;border:1px solid #e0e0e0;border-radius:6px;overflow:hidden;transition:box-shadow .15s;text-decoration:none;color:inherit}
.pcard:hover{box-shadow:0 2px 8px rgba(0,0,0,.12);border-color:#1565c0;text-decoration:none}
.pcard-img{background:#f5f5f5;display:flex;align-items:center;justify-content:center;min-height:100px;font-size:32px;color:#ccc;position:relative}
.pcard-brand-tag{position:absolute;bottom:4px;left:4px;background:#1565c0;color:#fff;font-size:10px;font-weight:700;padding:1px 5px;border-radius:3px}
.pcard-info{padding:10px 12px;min-width:0}
.pcard-cat{font-size:10px;color:#f57c00;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.pcard-name{font-size:14px;font-weight:600;color:#212529;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcard-artnr{font-size:12px;color:#6c757d;font-family:monospace;margin-bottom:4px}
.pcard-oe{font-size:11px;color:#495057;margin-bottom:4px}
.pcard-oe .oe-label{background:#e8f5e9;color:#2e7d32;font-weight:700;padding:1px 5px;border-radius:3px;margin-right:4px}
.pcard-buy{padding:10px 12px;display:flex;flex-direction:column;justify-content:center;gap:8px;border-left:1px solid #e0e0e0;min-width:120px;background:#fafafa}
.btn-detail{background:#1565c0;color:#fff;border:none;padding:7px 14px;border-radius:4px;font-size:12px;font-weight:700;white-space:nowrap}
.btn-detail:hover{background:#0d47a1}

/* Pagination */
.pager{display:flex;gap:6px;justify-content:center;margin:16px 0;flex-wrap:wrap}
.pager button{padding:6px 12px;border:1px solid #ccc;border-radius:4px;background:#fff;font-size:13px;cursor:pointer}
.pager button:hover{border-color:#1565c0;color:#1565c0}
.pager button.active{background:#1565c0;color:#fff;border-color:#1565c0}
.pager button:disabled{opacity:.4;cursor:default}

/* Meta/count bar */
.list-meta{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e0e0e0;border-radius:4px;padding:8px 12px;margin-bottom:8px;font-size:13px;color:#495057}
.list-meta strong{color:#212529}

/* Product detail */
.detail-wrap{display:grid;grid-template-columns:280px 1fr;gap:16px;margin:16px 0}
@media(max-width:700px){.detail-wrap{grid-template-columns:1fr}}
.detail-img{background:#fff;border:1px solid #e0e0e0;border-radius:6px;padding:16px;text-align:center;font-size:80px;color:#e0e0e0;min-height:200px;display:flex;align-items:center;justify-content:center}
.detail-main{background:#fff;border:1px solid #e0e0e0;border-radius:6px;padding:16px}
.detail-brand{font-size:12px;color:#1565c0;font-weight:700;text-transform:uppercase;margin-bottom:4px}
.detail-name{font-size:20px;font-weight:700;margin-bottom:8px}
.detail-artnr{font-size:13px;color:#6c757d;font-family:monospace;margin-bottom:12px}
.detail-section{margin-top:16px;border-top:1px solid #e0e0e0;padding-top:12px}
.detail-section h3{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#333;margin-bottom:8px}
.specs-table{width:100%;border-collapse:collapse;font-size:13px}
.specs-table tr:nth-child(even){background:#f8f9fa}
.specs-table td{padding:5px 8px;border-bottom:1px solid #f0f0f0}
.specs-table td:first-child{color:#6c757d;width:40%}
.specs-table td:last-child{font-weight:500}
.oe-table{width:100%;border-collapse:collapse;font-size:12px}
.oe-table tr:hover{background:#f8f9fa}
.oe-table td{padding:4px 8px;border-bottom:1px solid #f0f0f0}
.veh-table{width:100%;border-collapse:collapse;font-size:12px}
.veh-table th{background:#e3f2fd;padding:5px 8px;text-align:left;font-weight:600;color:#1565c0}
.veh-table td{padding:4px 8px;border-bottom:1px solid #f0f0f0}
.veh-table tr:hover{background:#f8f9fa}
.badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:10px;font-weight:700}
.badge-new{background:#e8f5e9;color:#2e7d32}
.badge-disc{background:#fff3e0;color:#e65100}
.badge-cancel{background:#fafafa;color:#999}
.badge-sup{background:#fff8e1;color:#f57f17}

/* Home hero */
.hero{background:linear-gradient(135deg,#1565c0 0%,#1976d2 100%);color:#fff;padding:40px 16px;text-align:center}
.hero h1{font-size:28px;font-weight:800;margin-bottom:8px}
.hero p{font-size:15px;opacity:.9;margin-bottom:24px}
.hero-search{display:flex;max-width:500px;margin:0 auto}
.hero-search input{flex:1;padding:12px 16px;border:none;border-radius:4px 0 0 4px;font-size:15px}
.hero-search button{background:#f57c00;color:#fff;border:none;padding:12px 20px;border-radius:0 4px 4px 0;font-weight:700;font-size:15px}

/* Home categories grid */
.home-cats{margin:24px 0}
.home-cats h2{font-size:18px;font-weight:700;margin-bottom:12px}
.cats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.cat-card{background:#fff;border:1px solid #e0e0e0;border-radius:6px;padding:12px;text-align:center;transition:all .15s}
.cat-card:hover{border-color:#1565c0;box-shadow:0 2px 6px rgba(21,101,192,.15);text-decoration:none}
.cat-card .icon{font-size:28px;margin-bottom:6px}
.cat-card .cname{font-size:12px;font-weight:600;color:#333}
.cat-card .ccount{font-size:11px;color:#999;margin-top:2px}

/* Loader */
.loader{text-align:center;padding:40px;color:#999;font-size:14px}
.spinner{display:inline-block;width:24px;height:24px;border:3px solid #e0e0e0;border-top-color:#1565c0;border-radius:50%;animation:spin .7s linear infinite;margin-bottom:8px}
@keyframes spin{to{transform:rotate(360deg)}}

/* Search results */
.sr-section{margin-bottom:20px}
.sr-title{font-size:14px;font-weight:700;color:#333;border-bottom:2px solid #1565c0;padding-bottom:6px;margin-bottom:10px}
.sr-badge{display:inline-block;background:#e3f2fd;color:#1565c0;font-size:11px;font-weight:700;padding:2px 8px;border-radius:10px;margin-left:6px}
.empty-state{text-align:center;padding:60px 20px;color:#999}
.empty-state .ico{font-size:48px;margin-bottom:12px}

/* Utils */
.text-muted{color:#6c757d}
.text-sm{font-size:12px}
.mt-8{margin-top:8px}
.hidden{display:none}
