/* ===========================
   ZipParts • Global Styles
   =========================== */

/* ----- Theme tokens ----- */
:root{
  --brand: #b10db1;
  --brand-600: #9b0b9b;
  --brand-700: #820a82;
  --ink: #0f172a;
  --ink-2: #111827;
  --muted: #475569;
  --line: #e5e7eb;
  --card: #ffffff;
  --bg: #fafafa;
  --accent: #06b6d4;
  --success: #10b981;
  --danger: #dc2626;
  --shadow-sm: 0 2px 4px rgba(15,23,42,.08);
  --shadow-md: 0 10px 24px rgba(2,8,23,.08);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
}

/* ----- Spacing & Type (pro polish) ----- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  --h1: clamp(28px, 3.2vw, 36px);
  --h2: clamp(22px, 2.4vw, 28px);
  --h3: clamp(18px, 2vw, 20px);
  --body: 16px;
  --caption: 13px;
}



body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}




main {
  flex: 1;
}


/* ----- Reset-ish ----- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;

  color: #0f172a;
}
img { display:block; max-width:100%; border-radius: var(--radius-md); }
main { flex: 1; }
.container { max-width: 1100px; width: 100%; margin: 0 auto; padding: 24px 16px; }

/* Headings / Type scale */
h1 { 
  font-size: var(--h1); 
  line-height: 1.15; 
  margin: 0 0 var(--space-3);
}

h2 { font-size: var(--h2); line-height: 1.2;  margin: 0 0 var(--space-3); }
h3 { font-size: var(--h3); line-height: 1.25; margin: var(--space-3) var(--space-3) var(--space-3) var(--space-3); }
body { font-size: var(--body); }

/* ===========================
   Header / Nav
   =========================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, var(--brand), var(--brand-600));
  color: #fff; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: padding .18s ease, box-shadow .18s ease;
}

.site-header {
  overflow-x: hidden;
}


/* Make header layout adapt nicely */
.site-header {
  display: flex;
  
  align-items: center;
  justify-content: space-between;
  min-height:100px;
  padding: 0 24px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
}


.site-header.scrolled {
  padding-top: 6px; padding-bottom: 6px;
  box-shadow: 0 4px 16px rgba(2,8,23,.08);
}
/*Odari Logo */
.logo-img {
  height: 100%;      /* fill header height */
  max-height: 150px;  /* visual cap */
  width: auto;

  object-fit: contain;
  display: block;
}




.logo-text { margin:0; font-size:2rem; font-weight:700; letter-spacing:.2px; }
.site-nav { margin-left:-300px;  display:flex; gap:5px; }
.site-nav a,
.site-nav button {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.site-nav a:hover,
.site-nav button:hover {
  background: var(--brand);
  color: #fff;
}

/* Hover effect */
.site-nav a:hover {
  background: var(--brand);
  color: #fff;
}



/* Special header "List a Part" highlight link */
.site-nav .highlight-link {
   font-weight: 800;
  background: linear-gradient(135deg, #fef08a, #f59e0b);
  color: #111827;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  letter-spacing: 0.01em;
  transform: translateY(0);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.site-nav .highlight-link:hover {
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.24);
  filter: saturate(1.05);
}

/* ===========================
   Hero
   =========================== */
.hero {
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  border-bottom: 1px solid #e5e7eb;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 28px 16px 32px;
}
.hero-title {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.txt-accent { color: var(--brand); }
.hero-sub {
  margin: 0 0 16px; color: #334155;
}
.hero-forms {
  display:grid; gap:10px; grid-template-columns: 1fr auto 1fr;
  align-items:center; max-width: 900px; margin-left: auto; padding-right:24px;
}
.or-divider {
  background: #f1f5f9; color:#334155; font-weight:700;
  padding: 10px 12px; border-radius: 10px;
}
.search { display:flex; gap:8px; }
.search input {
  flex:1; padding:12px 14px; border-radius:12px; border:1px solid #cbd5e1;
  background:#fff; color:var(--ink); font-size:1rem;
  transition:border-color .12s ease, box-shadow .12s ease;
}
.search input::placeholder { color:#94a3b8; }
.search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(177,13,177,.18);
  outline: none;
}

.search button {
  padding:12px 16px; border-radius:12px; border:none; background:var(--accent); color:#031016;
  font-weight:800; cursor:pointer; transition:filter .12s ease, transform .12s ease;
}
.search button:hover { filter:brightness(.95); transform: translateY(-1px); }

/* VIN input styling (uppercase for user typing, normal placeholder) */
.search--vin input { letter-spacing: .08em; text-transform: uppercase; }
.search--vin input::placeholder { text-transform: none; letter-spacing: normal; }

.vin-result { color:#475569; margin: 2px 0 0; }

/* Quick chips */
.chip-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.chip {
  border:1px solid #dbe2ea; background:#fff; color:#0f172a; border-radius:999px; padding:8px 12px;
  font-weight:700; cursor:pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.chip:hover { transform: translateY(-1px); border-color:#cbd5e1; box-shadow: var(--shadow-sm); }

/* Trust strip */
.trust {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 12px; padding: 10px 16px; background:#fff; border-top:1px solid #eef2f7; border-bottom:1px solid #eef2f7; 
}
.trust-item {
  display: flex;
  flex-direction: column;    /* stack icon and text vertically */
  align-items: center;       /* center horizontally */
  justify-content: center;   /* center vertically in the cell */
  text-align: center;        /* center the text */
  gap: 6px;                  /* adjust spacing between icon & text */
  padding: 10px 8px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(177,13,177,.08);
  font-size: 1.4rem; /* make emoji scale nicely */
}

.trust-title { font-weight:800; }
.trust-sub { color:#475569; font-size:.95rem; }


.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}


/* ===========================
   Panels / Cards
   =========================== */
.panel { background: var(--card); border-radius: var(--radius-md); padding:16px; box-shadow: var(--shadow-sm); margin-bottom:16px; }
.panel-head { display:flex; align-items:center; justify-content: space-between; gap:10px; }
.panel-head h2 { margin:0; margin-bottom:20px;}

.card-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:14px; }

.card {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 14px;

  overflow: hidden;
  text-decoration: none;
  color: inherit;

  box-shadow: 0 4px 12px rgba(15,23,42,0.06);

  transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15,23,42,0.12);
}

/* Image treatment defaults */
.card img {
  width: 100%;
  height: auto;                 /* avoid fixed heights globally */
  object-fit: contain;          /* safe default to prevent crop/stretch */
  object-position:center;
  background:  white; padding:12px; border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card img:hover { transform: scale(1.03); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

.card h3 { margin:12px; font-size:1.06rem; }


/* ===========================
   Marketplace Listing Cards
   =========================== */

.part-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.part-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(2,8,23,.14);
}

/* Listings card details */
.part-card .price {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15,23,42,0.92);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
}


/* Buttons */
.btn {
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;

  background: var(--ink-2);
  color:#fff;

  font-weight:600;

  transition: all 0.2s ease;

  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.btn:hover { transform: translateY(-1px); filter: brightness(.95); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-danger { background: var(--danger); }
.btn-ghost { background:#fff; color:var(--ink); border:1px solid var(--line); text-decoration: none; }
.btn-primary-full {
  width: 100%;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
}


/* Forms */
form { display:grid; gap:12px; }
.form-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}
label { font-weight:700; color:var(--ink); }

input[type="text"], input[type="search"], input[type="number"], input[type="url"], select, textarea {
  width:100%; padding:11px 12px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; font-size:1rem;
  transition: border-color .12s ease, box-shadow .12s ease;
}


textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow:0 0 0 3px rgba(177,13,177,.18); outline:none; }

/* Listings */
#resultsTitle { margin:0 0 10px; }
#emptyState { color:var(--muted); margin:8px 0 0; }

/* Sticky listings toolbar (nice UX) */
.listing-toolbar {
  position: sticky;
  top: 62px; /* sits under the sticky header */
  z-index: 40;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}



/* Footer */




/* Utilities */
.visually-hidden {
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip: rect(0 0 0 0); white-space:nowrap; border:0;
}

/* Focus ring (consistent, accessible) */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(6,182,212,.45);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ===========================
   Skeletons / Toasts / Empty
   =========================== */
.skeleton {
  position: relative; overflow: hidden; background: #eef2f7;
  border-radius: var(--radius-md); min-height: 140px;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: shimmer 1.2s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  background: #0f172a; color: #fff; padding: 10px 14px;
  border-radius: 12px; box-shadow: var(--shadow-md);
}
.toast--success { background: #065f46; }
.toast--error   { background: #991b1b; }

.empty {
  text-align: center; padding: var(--space-10) var(--space-6);
  color: var(--muted);
}
.empty .btn { margin-top: var(--space-4); }

/* ===========================
   Image Proportion Fixes
   =========================== */

/* Listings (user-uploaded part images): fill cards confidently */
.part-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: contain; /* bold, marketplace look */
}

/* Home page category tiles */
.card-grid--tiles .card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: contain; /* FIT inside tiles (no crop/distort) */
  background: #fff;
  padding: 12px;
}

/* Category page subcategory tiles */
#subcatGrid .card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: contain; /* FIT inside tiles (no crop/distort) */
  background: #fff;
  padding: 12px;
}

/* ===========================
   Responsive tweaks
   =========================== */
@media (max-width: 900px){
  .hero-forms { grid-template-columns: 1fr; }
  .or-divider { display:none; }
}
@media (max-width: 640px) {
  .logo-text { display:none; }
  .site-nav { gap:8px; }
  .site-nav a { padding:8px 10px; }
}

/* Mission block */
.mission {
  max-width: 900px;
  margin: 20px auto 24px;
  text-align: center;
  background: linear-gradient(0deg, #ffffff, #ffffff) padding-box,
              linear-gradient(135deg, rgba(177,13,177,.22), rgba(6,182,212,.22)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 18px;
}

.mission h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  letter-spacing: .2px;
}

.mission p {
  margin: 0 auto;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 68ch; /* comfy line length */
}

/* Optional: subtle top accent line */
.mission::before {
  content: "";
  display: block;
  height: 3px;
  width: 64px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: .85;
}

/* Small screens: keep it airy */
@media (max-width: 640px) {
  .mission { padding: 20px 14px; }
}

/* Primary action button (used for Add Part) */
form button[type="submit"] {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: #9333ea; /* purple */
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

form button[type="submit"]:hover {
  background: #7e22ce; /* darker purple */
  transform: translateY(-1px);
}

form button[type="submit"]:active {
  transform: translateY(0);
}

/* Simple notice */
.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}
.notice.info { background:#eef6ff; border-color:#cde4ff; }

/* Buttons (match your site palette) */

.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity:.6; cursor:not-allowed; }

.btn-ghost {
  background:#fff; color:#111827; border:1px solid #cbd5e1;
}
.btn-ghost:hover { background:#f8fafc; }

.part-back-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Modal */
.modal-backdrop {
  position:fixed; inset:0; display:grid; place-items:center;
  background: rgba(15, 23, 42, .56);
  z-index: 1000;
  padding: 16px;
}
.modal {
  background:#fff; color:#0f172a; border-radius:16px; padding:18px;
  max-width:520px; width:100%; box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.hero-simple {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}
.hero-logo {
  width: 70px;
  opacity: 0.9;
  margin-bottom: 1rem;
}
.hero-simple h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}
.hero-simple p {
  color: #475569;
  font-size: 1.1rem;
}


/* ⚠️ MVP Banner Styling */
.mvp-banner {
  background: #f8fafc;
  color: #475569;
  font-size: 0.85rem;

  padding: 8px 14px;
  border-radius: 999px;

  border: 1px solid #e2e8f0;

  margin: 0 16px;
  text-align: center;
}



.header-left {
  display: flex;
  align-items: center;
  gap: 60px;
}

.logo-text {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  color: white;
}

/* Modern Auth Modal */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  z-index: 2000;
}

.auth-modal {
  background: #fff;
  width: 100%;
  max-width: 380px;
  padding: 24px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.18s ease;
}

.auth-modal h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.auth-modal input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  margin-bottom: 12px;
}

.auth-btn-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card img {
  background: #fff !important;
  mix-blend-mode: normal;
  filter: brightness(1.1) contrast(1.02);
}


/* =========================
   Auth Modal (Professional)
   ========================= */

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-modal {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 380px;
  padding: 28px 26px 26px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);

}

.auth-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0f172a;
}

.auth-subtitle {
  margin: 6px 0 18px;
  font-size: 0.95rem;
  color: #64748b;
}

.auth-label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  margin: 10px 0 4px;
}

.auth-modal input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
}

.auth-modal input:focus {
  outline: none;
  border-color: #0f172a;
}

.auth-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.auth-btn-primary {
  background: #0f172a;
  color: #ffffff;
  border: none;
}

.auth-btn-primary:hover {
  background: #020617;
}

.auth-btn-secondary {
  background: transparent;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.auth-btn-secondary:hover {
  background: #f8fafc;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
}

.auth-close:hover {
  color: #0f172a;
}


.auth-password-wrap {
  position: relative;
}

.auth-pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #64748b;
  padding: 0;
}

.auth-pass-toggle:hover {
  color: #0f172a;
}

.part-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f8fafc;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.part-card h3 {
  margin: 12px 12px 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.part-card .desc {
  margin: 0 12px 12px;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

/* Filters panel styling */
.listing-toolbar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.listing-toolbar input,
.listing-toolbar select {
  background: #ffffff;
}

.panel:has(.listing-toolbar) {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* ===========================
   Listing Form – Professional Layout
   =========================== */

#partForm {
  display: grid;
  gap: 20px;
}

#partName,
#partPrice {
  font-size: 1.05rem;
  font-weight: 500;
}

label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
}

#partForm h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  padding: 0 0 8px;
  color: #0f172a;
  border-bottom: 1px solid #e5e7eb;
}

.field-note,
#partForm p {
  font-size: 0.85rem;
  color: #64748b;
}

#imageFile {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  padding: 12px;
  border-radius: 10px;
}

#imagePreview {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

input[type="checkbox"] {
  transform: scale(1.05);
}

.form-row label input[type="checkbox"] {
  margin-right: 8px;
}

#submitBtn {
  margin-top: 12px;
  align-self: flex-start;
  padding: 12px 22px;
  font-size: 1rem;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #ffffff;
  font-weight: 700;
}

/* De-emphasize shipping + legal early fields */
#shippingCost,
#shippingNotes {
  background-color: #f9fafb;
}

#sellerConfirm {
  transform: scale(1.05);
}

#sellerConfirm + span,
#sellerConfirm {
  color: #64748b;
}

#partName,
#partPrice {
  font-size: 1.05rem;
  padding: 14px;
}

/* Remove bulky field behavior */
input[type="file"] {
  padding: 0;
  border: none;
  background: transparent;
}

/* ===========================
   Minimal File Upload (Professional)
   =========================== */

input[type="file"] {
  font-size: 0.9rem;
  color: #475569;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #f8fafc;
  border-color: #9ca3af;
}

input[type="file"]:focus-visible::file-selector-button {
  outline: 2px solid rgba(15,23,42,0.25);
  outline-offset: 2px;
}

#imagePreview {
  display: block;
  margin-top: 8px;
  max-width: 300px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}


label {
  font-weight: 500;
  color: #111827;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-weight: 400;
}

.price,
input[type="number"] {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}


/* ===========================
   Footer (ONLY)
   =========================== */

.site-footer {
  width: 100%;
  margin-top: 64px;
  padding: 24px 16px;
  background: #0f172a;
  color: #e5e7eb;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  border-top: 1px solid #1e293b;
}
.site-footer a {
  color: #38bdf8;
}

.site-footer .copyright {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #9ca3af;
}


.site-footer {
  width: 100%;
  padding: 24px 16px;
  background: #0f172a;
  color: #e5e7eb;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  border-top: 1px solid #1e293b;
}

.site-footer a {
  color: #38bdf8;
}

.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto 12px; /* space ABOVE Odari 2025 */
  color: #cbd5e1;
}

.footer-disclaimer p {
  margin: 0;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* === Footer visibility fix for listings + list pages === */

main.container {
  padding-bottom: 64px; /* gives footer breathing room */
}

.site-footer {
  display: block;
  margin-top: 48px;
}

/* ===========================
   Footer layout fix (FINAL)
   =========================== */

.site-footer {
  margin-top: auto; /* THIS is the key line */
}

.listing-toolbar {
  display: none;
}

.header-left a {
  display: inline-flex;
  align-items: center;
}

.header-left a:hover {
  opacity: 0.9;
}

.vin-vehicle-details {
  margin: 8px 0 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.vin-vehicle-details h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.vin-vehicle-details ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.vin-results-layout {
  display: block;
}

.vin-results-layout.is-vin {
  display: grid;
   grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.vin-side-panel {
  position: sticky;
  top: 84px;
  justify-self: start;
  width: 100%;
  margin: 0;
}

.vin-side-panel .vin-vehicle-details {
  margin: 0;
}

@media (max-width: 980px) {
  .vin-results-layout.is-vin {
    grid-template-columns: 1fr;
  }

  .vin-side-panel {
    position: static;
  }
   .vin-side-panel .vin-vehicle-details {
    padding: 12px;
  }
}

@media (max-width: 640px) {
  .vin-vehicle-details {
    border-radius: 10px;
  }

  .vin-vehicle-details ul {
    padding-left: 16px;
    gap: 6px;
  }
}
/* ===========================
   Mobile Header – TRUE Hierarchy
   =========================== */
@media (max-width: 768px) {

  .site-header {
    padding: 4px 6px 10px;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  /* NAV CONTAINER */
  .site-nav {
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 8px;
    justify-items: center;
    margin: 0;
  }

  /* AUTH ROW (TOP) */
  .site-nav a[href*="login"],
  .site-nav a[href*="signup"] {
    grid-row: 1;
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  /* MAIN NAV ROW (BOTTOM) */
  .site-nav a:not([href*="login"]):not([href*="signup"]) {
    grid-row: 2;
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  /* Keep rows horizontal */
  .site-nav {
    grid-auto-flow: column;
  }

  .site-nav a {
    white-space: nowrap;
    text-align: center;
  }
}

/* ===========================
   Mobile MVP Banner – Header Strip
   =========================== */
@media (max-width: 768px) {

  .mvp-banner {
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: center;
    box-shadow: none;
  }
}

@media (max-width: 768px) {

  .part-card h3,
  .part-card .price,
  .part-card .desc {
    text-align: left;
  }

  .part-card {
    padding-bottom: 8px;
  }
}

@media (max-width: 768px) {

  h1,
  h2,
  h3 {
    margin-left: 0,  !important;
    margin-right: 0 !important;
    text-align: left;
  }

}

@media (max-width: 768px) {

  form,
  #partForm,
  .panel,
  .container {
    max-width: 100%;
    overflow-x: hidden;
  }

}

@media (max-width: 768px) {

  .card h3,
  .part-card h3 {
    margin: 10px 12px 6px;
    font-size: 1rem;
    line-height: 1.25;
    text-align: left;
    word-break: break-word;
  }

}

@media (max-width: 768px) {

  .card,
  .part-card {
    width: 100%;
    max-width: 100%;
  }

}

@media (max-width: 768px) {

  #partForm {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }

}

@media (max-width: 768px) {

  .form-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    overflow-x: hidden;
  }

}

@media (max-width: 768px) {

  input,
  select,
  textarea,
  button {
    max-width: 100%;
    box-sizing: border-box;
  }

}

@media (max-width: 768px) {

  input[type="file"] {
    width: 100%;
    max-width: 100%;
  }

  #imagePreview {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

}


@media (max-width: 768px) {

  main,
  main * {
    max-width: 100vw;
  }

}

@media (max-width: 768px) {

  /* Stretch listing form inputs to true screen width */
  #partForm .form-row {
    padding-left: 8px;
    padding-right: 8px;
  }

  #partForm input,
  #partForm select,
  #partForm textarea {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 1rem;
  }

}

@media (max-width: 768px) {

  input::placeholder,
  textarea::placeholder {
    font-size: 0.95rem;
  }

}

/* ===========================
   Tablet Header Fix (769px–1024px)
   =========================== */
@media (min-width: 769px) and (max-width: 1024px) {

  .site-header {
    padding: 10px 16px;
  }

  .header-left {
    gap: 8px;
  }

  .logo-img {
    width: 56px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .site-nav {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav a {
    font-size: 0.85rem;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .mvp-banner {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

}

/* ===========================
   Adaptive Desktop Header (900px–1200px)
   =========================== */
@media (min-width: 900px) and (max-width: 1200px) {

  .site-header {
    flex-wrap: wrap;
    row-gap: 8px;
    padding-bottom: 10px;
  }

  .header-left {
    flex: 1 1 100%;
    justify-content: center;
  }

  .site-nav {
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-nav a {
    font-size: 0.9rem;
    padding: 6px 12px;
    white-space: nowrap;
  }

  .mvp-banner {
    order: -1;
    width: 100%;
    text-align: center;
  }

}

/* ===========================
   Part Detail – Base44 Layout
   =========================== */

.part-detail {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* LEFT */
.part-media {
  background: transparent;   /* remove white box */
  padding: 0;                /* remove inner spacing */
  box-shadow: none;          /* remove container feel */
}

.part-media img {
  width: 100%;
  height: auto;
  object-fit: contain;

  max-height: 420px;

  background: transparent;   /* remove any white fill */
  border-radius: 0;          /* removes “card” feel */
}

/* RIGHT */
.part-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.part-info h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.15;
}

/* Price */
.part-detail-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--success);
}

/* Metadata spacing */
.part-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

/* Description */
.part-info h3 {
  margin-top: 16px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.part-detail-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1e293b;
}

/* Actions */
#actionsZone {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Mobile */
@media (max-width: 900px) {
  .part-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===========================
   Part Detail — Force all info text black
   =========================== */
.part-detail .part-info,
.part-detail .part-info p,
.part-detail .part-info strong {
  color: #0f172a !important; /* dark black for all metadata and description */
}

/* ===========================
   MOBILE HEADER HOTFIX
   =========================== */
@media (max-width: 768px) {

  /* Make header stack cleanly */
  .site-header {
    flex-direction: column;
    align-items: center;
    height: auto !important;
  }

  /* Force navs to behave like rows again */
  .site-nav {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 !important;
  }

  /* Ensure auth buttons are visible */
  #authButtons {
    display: flex !important;
    justify-content: center;
    gap: 8px;
  }

  /* Make MVP banner full width on mobile */
  .mvp-banner {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin: 6px 0;
    text-align: center;
  }

}

/* ===========================
   Mobile Header – Padding Fix
   =========================== */
@media (max-width: 768px) {

  .site-header {
    height: auto;          /* let it shrink naturally */
    padding-top: 6px;      /* less space above logo */
    padding-bottom: 6px;   /* less space below nav */
    flex-direction: column;
    align-items: center;
    gap: 4px;              /* minimal spacing between elements */
  }

  .header-left {
    gap: 12px;             /* reduce gap between logo and left items */
  }

  .site-nav {
    justify-content: center; 
    margin: 0; 
    gap: 6px;              /* reduce spacing between nav buttons */
  }

  #authButtons {
    justify-content: center;
    gap: 6px;
  }

  .mvp-banner {
    margin: 6px 0;         /* spacing above and below banner */
  }

}

/* ===========================
   Mobile Header – Clean Fix
   =========================== */
@media (max-width: 768px) {

  .site-header {
    height: 120px;        /* 🔒 cap header height */
    padding: 0 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .logo-img {
    height: 200px;        /* must be smaller than header */
    width: auto;
  }




}

h1 {
  letter-spacing: -0.03em;
}

h2 {
  letter-spacing: -0.025em;
}

h3 {
  letter-spacing: -0.02em;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.listing-pagination {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.listing-pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.listing-pagination-indicator {
  min-width: 90px;
  text-align: center;
  font-weight: 600;
  color: #0f172a;
}

.listing-pagination-controls .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===========================
   Mobile CTA/logo/welcome overrides
   =========================== */
@media (max-width: 768px) {
  .site-header {
    height: auto !important;
    min-height: 124px;
  }

  .logo-img {
    height: 170px !important;
    max-height: 170px;
  }

  .site-nav .highlight-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px !important;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0,0,0,.24);
  }

  .hero-simple {
    padding-top: 2.2rem;
  }

  .hero-welcome {
    margin-top: 0;
    margin-bottom: 0.45rem;
  }
}

/* ===========================
   Mobile CTA/logo/welcome overrides
   =========================== */
@media (max-width: 768px) {
  .site-header {
    height: auto !important;
    min-height: 92px;
  }

  .logo-img {
    height: 158px !important;
    max-height: 158px;
  }

  .site-nav .highlight-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px !important;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0,0,0,.24);
  }

  .hero-simple {
    padding-top: 2.2rem;
  }

  .hero-welcome {
    margin-top: 0;
    margin-bottom: 0.45rem;
  }
}


.site-nav .home-cta {
  font-weight: 800;
}

@media (max-width: 768px) {
  .site-nav .home-cta {
    font-weight: 800;
  }
}

site-header--simple {
  justify-content: space-between;
}

.site-header--simple .highlight-link {
  text-decoration: none;
}

.wtb-list {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.wtb-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  background: #ffffff;
}

.wtb-item h3 {
  margin: 0 0 12px;
}

.wtb-item p {
  margin: 0 0 8px;
}