/* FleetFixer Shop — shared page shell
   Used by search.html, class.html, part.html, etc.
   Mirrors the design language established in shop/index.html */

*{box-sizing:border-box;margin:0;padding:0}
html,body{font-family:Inter,system-ui,sans-serif;color:#1a1a1a;background:#f3f4f6;font-size:14px;line-height:1.4}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
img{max-width:100%;display:block}

:root{
  --ink:#0f172a;
  --ink-soft:#334155;
  --muted:#64748b;
  --line:#e5e7eb;
  --line-soft:#f1f5f9;
  --bg:#f3f4f6;
  --brand:#1f5fa8;
  --brand-dk:#164b87;
  --action:#ff7a00;
  --action-dk:#e66d00;
  --sale:#d9042b;
  --good:#0e9f4f;
  --warn:#f59e0b;
}

/* ═══ UTILITY ═══ */
.utility{background:#0b2545;color:#e4e8ef;font-size:12px;padding:7px 0}
.utility-inner{max-width:1400px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.utility-left{display:flex;gap:18px;align-items:center}
.utility-left i{margin-right:5px;color:#8ab4f8}
.utility-right{display:flex;gap:14px;align-items:center}
.utility-right a{opacity:.85}
.utility-right a:hover{opacity:1;color:#fff}
.utility-right .divider{width:1px;height:11px;background:rgba(255,255,255,.2)}

/* ═══ HEADER ═══ */
.header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:100;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.header-inner{max-width:1400px;margin:0 auto;padding:13px 20px;display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center}
.logo{display:flex;align-items:center;gap:10px;font-weight:900;font-size:19px;letter-spacing:-.02em;color:var(--ink)}
.logo i{color:var(--brand);font-size:22px}
.logo-tag{font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);background:#eef2f7;padding:3px 7px;border-radius:4px;margin-left:4px}

.search{position:relative;display:flex;border:2px solid var(--brand);border-radius:8px;overflow:hidden;background:#fff}
.search input{flex:1;border:none;padding:11px 14px;font-size:14px;outline:none;min-width:200px;font-family:inherit}
.search input::placeholder{color:#888}
.search-btn{background:var(--action);color:#fff;padding:0 22px;font-weight:800;font-size:15px;display:flex;align-items:center;gap:7px}
.search-btn:hover{background:var(--action-dk)}

.header-actions{display:flex;align-items:center;gap:4px}
.h-act{padding:8px 12px;display:flex;flex-direction:column;align-items:flex-start;border-radius:6px;line-height:1.2;min-width:0}
.h-act:hover{background:#f5f7fa}
.h-act-top{font-size:11px;color:var(--muted);font-weight:500}
.h-act-bot{font-size:13px;font-weight:700;color:var(--ink);display:flex;align-items:center;gap:5px}
.h-act-bot .fa-chevron-down{font-size:9px;color:#888}
.h-cart{position:relative;padding:10px 14px;display:flex;align-items:center;gap:10px;border-radius:6px}
.h-cart:hover{background:#f5f7fa}
.h-cart-icon{position:relative;font-size:22px;color:var(--ink)}
.h-cart-count{position:absolute;top:-6px;right:-10px;background:var(--sale);color:#fff;font-size:11px;font-weight:800;padding:1px 6px;border-radius:10px;min-width:19px;text-align:center}
.h-cart-meta{display:flex;flex-direction:column;font-size:11px;color:var(--muted);line-height:1.25}
.h-cart-meta strong{color:var(--ink);font-size:13px;font-weight:800}

/* ═══ LAYOUT ═══ */
.main{max-width:1400px;margin:0 auto;padding:24px 20px 60px}
.breadcrumb{font-size:12px;color:var(--muted);margin-bottom:16px;display:flex;align-items:center;gap:8px}
.breadcrumb a{color:var(--brand);font-weight:600}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb i{font-size:8px;color:#cbd5e1}

.page-head{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.page-head h1{font-size:28px;font-weight:800;letter-spacing:-.02em;margin-bottom:6px}
.page-head .lede{font-size:14.5px;color:var(--muted);line-height:1.55;max-width:680px}

.context-chip{display:inline-flex;align-items:center;gap:8px;background:#eef2f7;color:var(--brand);padding:6px 14px;border-radius:99px;font-size:12.5px;font-weight:700;margin-bottom:14px}
.context-chip a{color:var(--brand);text-decoration:underline;margin-left:4px}

/* ═══ FACET + RESULTS GRID ═══ */
.layout-2col{display:grid;grid-template-columns:260px 1fr;gap:24px}
.facets{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;position:sticky;top:80px;align-self:start;max-height:calc(100vh - 100px);overflow-y:auto}
.facet-group{margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--line-soft)}
.facet-group:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.facet-group h4{font-size:12px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--ink-soft);margin-bottom:10px}
.facet-option{display:flex;justify-content:space-between;align-items:center;padding:5px 0;font-size:13px;color:var(--ink-soft);cursor:pointer}
.facet-option:hover{color:var(--brand)}
.facet-option .count{font-size:11px;color:var(--muted);font-weight:500}
.facet-option input{margin-right:8px;accent-color:var(--brand)}

/* ═══ PRODUCT CARD (reused from home) ═══ */
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.prod{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;position:relative;transition:all .15s}
.prod:hover{box-shadow:0 10px 28px rgba(0,0,0,.1);border-color:#cbd5e1;transform:translateY(-2px)}
.prod-img{aspect-ratio:1;background:#f5f7fa;position:relative;overflow:hidden}
.prod-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.prod:hover .prod-img img{transform:scale(1.05)}
.prod-img .no-img{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#cbd5e1;font-size:44px}
.prod-badges{position:absolute;top:8px;left:8px;display:flex;flex-direction:column;gap:5px}
.prod-badge{font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;padding:3px 7px;border-radius:4px;color:#fff}
.prod-badge.oem{background:var(--brand)}
.prod-badge.class-legal{background:var(--good)}
.prod-badge.sale{background:var(--sale)}
.prod-body{padding:12px 12px 14px;display:flex;flex-direction:column;gap:5px;flex:1}
.prod-brand{font-size:11px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.4px}
.prod-title{font-size:13.5px;font-weight:600;line-height:1.35;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
.prod-meta{font-size:11.5px;color:var(--muted);margin-top:2px}
.prod-price-row{display:flex;align-items:baseline;gap:8px;margin-top:6px;flex-wrap:wrap}
.prod-price{font-size:18px;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.prod-price.none{font-size:13px;color:var(--muted);font-weight:600}
.prod-suppliers{font-size:11.5px;color:var(--muted);margin-top:2px}
.prod-cta{margin-top:10px;background:var(--action);color:#fff;padding:10px 12px;border-radius:6px;font-size:12.5px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}
.prod-cta:hover{background:var(--action-dk)}

/* ═══ EMPTY + SKELETON ═══ */
.empty{background:#fff;border:1px dashed var(--line);border-radius:10px;padding:48px 24px;text-align:center;color:var(--muted)}
.empty .icon{font-size:42px;color:#cbd5e1;margin-bottom:12px}
.empty h3{font-size:17px;color:var(--ink);margin-bottom:6px}
.empty p{font-size:13.5px;line-height:1.6;max-width:480px;margin:0 auto 16px}
.empty .cta{background:var(--brand);color:#fff;padding:10px 18px;border-radius:6px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;gap:6px}
.empty .cta:hover{background:var(--brand-dk)}
.skeleton{background:linear-gradient(90deg,#eef2f7 25%,#f8fafc 37%,#eef2f7 63%);background-size:400% 100%;animation:sk 1.4s ease-in-out infinite;border-radius:4px}
@keyframes sk{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* ═══ FOOTER ═══ */
.footer{background:#0b2545;color:#cbd5e1;padding:32px 20px;margin-top:60px}
.footer-inner{max-width:1400px;margin:0 auto;display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;font-size:12.5px}
.footer a{color:#94a3b8}
.footer a:hover{color:#fff}
.footer-links{display:flex;gap:20px;flex-wrap:wrap}

@media(max-width:900px){
  .layout-2col{grid-template-columns:1fr}
  .facets{position:static;max-height:none}
  .header-inner{grid-template-columns:auto 1fr;gap:14px}
  .h-act{display:none}
  .search input{min-width:0}
}
