/* ================================================================
   Parts Out — parts.ncdealer.co
   Design system matching ncdealer.co
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --bg:        #ffffff;
  --bg2:       #f5f5f7;
  --bg3:       #fafafa;
  --text:      #1d1d1f;
  --text2:     #6e6e73;
  --text3:     #aeaeb2;
  --border:    rgba(0,0,0,0.10);
  --border-md: rgba(0,0,0,0.15);
  --accent:    #0071e3;
  --accent-h:  #0077ed;
  --accent-bg: #e8f1fb;
  --orange:    #E8550A;
  --orange-h:  #C44208;
  --orange-bg: #FEF0E8;
  --green:     #1a7f37;
  --green-bg:  #eafaf0;
  --amber:     #9a6700;
  --amber-bg:  #fdf6e3;
  --red:       #a52020;
  --red-bg:    #fdf0f0;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono:      'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --shadow:    0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.10);
  --nav-h:     56px;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-md {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ──────────────────────────────────────────────────── */
.site-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 0.5px solid var(--border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo {
  width: 30px;
  height: 30px;
  background: var(--orange);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo svg { width: 16px; height: 16px; fill: #fff; }
.nav-wordmark { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; }
.nav-wordmark span { color: var(--orange); }
.nav-sub {
  font-size: 10px;
  color: var(--text3);
  font-weight: 400;
  display: block;
  margin-top: -2px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--text2);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  display: block;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg2); }
.nav-links a.active { color: var(--text); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 0.5px solid var(--border-md);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { background: var(--bg2); text-decoration: none; color: var(--text); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange-h);
}
.btn-primary:hover { background: var(--orange-h); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: #005bb5;
}
.btn-accent:hover { background: var(--accent-h); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text2);
}
.btn-ghost:hover { background: var(--bg2); color: var(--text); }

.btn-lg {
  padding: 11px 22px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: var(--radius-xs);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ── FORMS ────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,85,10,0.12);
}
.form-input::placeholder { color: var(--text3); }
select.form-input { 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='%236e6e73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea.form-input { resize: vertical; min-height: 80px; line-height: 1.5; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.input-prefix-group { display: flex; }
.input-prefix {
  padding: 9px 12px;
  background: var(--bg2);
  border: 0.5px solid var(--border-md);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px;
  color: var(--text2);
  white-space: nowrap;
}
.input-prefix + .form-input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.input-suffix {
  padding: 9px 12px;
  background: var(--bg2);
  border: 0.5px solid var(--border-md);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text2);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.input-prefix-group .form-input.has-suffix { border-radius: 0; }

/* ── TOGGLE SWITCH ────────────────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg);
}
.toggle-wrap:hover { background: var(--bg2); }
.toggle-info h5 { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.toggle-info p { font-size: 12px; color: var(--text2); }
.toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: #d1d1d6;
  border-radius: 11px;
  transition: background 0.2s;
  cursor: pointer;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-track { background: var(--orange); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(16px); }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-body { padding: 20px; }
.card-section {
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--border);
}
.card-section:last-child { border-bottom: none; }

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.badge-orange { background: var(--orange-bg); color: var(--orange-h); }
.badge-green  { background: var(--green-bg);  color: var(--green); }
.badge-amber  { background: var(--amber-bg);  color: var(--amber); }
.badge-red    { background: var(--red-bg);    color: var(--red); }
.badge-blue   { background: var(--accent-bg); color: var(--accent); }
.badge-gray   { background: var(--bg2);       color: var(--text2); }

/* live dot */
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── STAT CARDS ───────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-card {
  background: var(--bg2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.stat-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 4px;
}
.stat-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1;
}
.stat-value.green { color: var(--green); }
.stat-value.orange { color: var(--orange); }
.stat-value.blue { color: var(--accent); }

/* ── PROGRESS STEPS ───────────────────────────────────────── */
.progress-track {
  height: 3px;
  background: var(--bg2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}
.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.35s ease;
}
.step-meta { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
.step-title { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 6px; }
.step-sub { font-size: 14px; color: var(--text2); }

/* ── LKQ BADGES ───────────────────────────────────────────── */
.lkq { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 10px; }
.lkq-below { background: var(--green-bg); color: var(--green); }
.lkq-near  { background: var(--amber-bg); color: var(--amber); }
.lkq-above { background: var(--red-bg);   color: var(--red); }

/* ── PHOTO UPLOAD ZONE ────────────────────────────────────── */
.photo-drop {
  border: 1.5px dashed var(--border-md);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg3);
}
.photo-drop:hover { border-color: var(--orange); background: var(--orange-bg); }
.photo-drop-icon { font-size: 28px; margin-bottom: 10px; opacity: 0.5; }
.photo-drop p { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.photo-drop span { font-size: 11px; color: var(--text3); }

.photo-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.photo-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xs);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text3);
  border: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.photo-thumb-add {
  border: 1.5px dashed var(--border-md);
  color: var(--orange);
  font-size: 20px;
  cursor: pointer;
  background: var(--orange-bg);
}

/* ── TABLES ───────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  padding: 9px 14px;
  text-align: left;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg2);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 0.5px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg3); }
.data-table tr.row-sold td { opacity: 0.45; }

/* ── DIVIDERS & HELPERS ───────────────────────────────────── */
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 24px 0;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 14px;
}
.muted { color: var(--text2); }
.mono { font-family: var(--mono); }

/* ── NOTICE BANNERS ───────────────────────────────────────── */
.notice {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.notice-icon { flex-shrink: 0; margin-top: 1px; }
.notice-info    { background: var(--accent-bg); color: #004a9c; }
.notice-warning { background: var(--amber-bg);  color: var(--amber); }
.notice-success { background: var(--green-bg);  color: var(--green); }
.notice-error   { background: var(--red-bg);    color: var(--red); }

/* ── PAGE SECTIONS ────────────────────────────────────────── */
.page-section { padding: 64px 0; }
.page-section-sm { padding: 40px 0; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 12px;
}
h1.display { font-size: clamp(32px, 5vw, 52px); font-weight: 600; letter-spacing: -1.5px; line-height: 1.08; }
h2.display { font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: -0.8px; line-height: 1.1; }
h3.section-title { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }

/* ── FILTER CHIPS ─────────────────────────────────────────── */
.chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 0.5px solid var(--border-md);
  background: var(--bg);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { background: var(--bg2); color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── SELLER STRIP ─────────────────────────────────────────── */
.seller-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
}
.seller-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.seller-name {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.seller-detail {
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 1px;
}
.verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 10px;
}

/* ── STICKY REQUEST BAR ───────────────────────────────────── */
.request-bar {
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 0.5px solid var(--border-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  z-index: 100;
}
.request-bar-summary { font-size: 13px; }
.request-bar-summary strong { font-weight: 500; }
.request-bar-pull {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
  flex-shrink: 0;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 28px 24px;
  background: var(--bg2);
  margin-top: 80px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { font-size: 13px; font-weight: 500; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 11px; color: var(--text3); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .request-bar { flex-wrap: wrap; }
  .seller-strip { flex-direction: column; align-items: flex-start; }
  h1.display { font-size: 30px; }
}
@media (max-width: 480px) {
  .container, .container-sm, .container-md { padding: 0 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
}

/* ── NAV ADDITIONS ──────────────────────────────────────────── */
.nav-link-muted { color: var(--text3) !important; }
.nav-logo {
  width: 30px; height: 30px; border-radius: 7px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo svg { width: 30px; height: 30px; display: block; }
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-mobile-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text); border-radius: 1px; transition: transform .2s, opacity .2s;
}
@media (max-width: 768px) {
  .nav-mobile-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--border-md);
    flex-direction: column; padding: 1.25rem 1.5rem; gap: 4px;
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; padding: 10px 6px; }
  .nav-actions .btn-ghost { display: none; }
}

/* ── FOOTER GRID ────────────────────────────────────────────── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 40px 24px 32px;
  background: var(--bg2);
  margin-top: 0;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  align-items: start;
}
.footer-logo-row {
  display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
}
.footer-logo-row svg { flex-shrink: 0; border-radius: 6px; }
.footer-brand { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.footer-copy { font-size: 11.5px; color: var(--text3); line-height: 1.6; }
.footer-copy a { color: var(--text3); text-decoration: underline; }
.footer-col-title {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text3); margin-bottom: 10px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 13px; color: var(--text2); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 32px 20px 28px; }
}
