/* ============================================================
   KnockTask — Marketplace Page (Light Theme)
   ============================================================ */

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

body { background: var(--bg-2); min-height: 100vh; }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px; height: 62px;
  display: flex; align-items: center; gap: 20px;
}
.nav-logo { text-decoration: none; flex-shrink: 0; }

.nav-search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0 16px; height: 40px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,87,255,0.1); }
.search-icon { font-size: 0.9rem; color: var(--text-3); }
.nav-search input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); font-size: 0.9rem; font-family: inherit; }
.nav-search input::placeholder { color: var(--text-3); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-link { color: var(--text-2); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; padding: 4px 8px; border-radius: 6px; }
.nav-link:hover { color: var(--text-1); background: var(--bg-2); }

.btn-ghost-sm {
  padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 100px;
  background: none; color: var(--text-1);
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: var(--t);
}
.btn-ghost-sm:hover { border-color: var(--primary); color: var(--primary); }

.btn-primary-sm {
  padding: 8px 16px; background: var(--grad-a); border: none;
  border-radius: 100px; color: #fff;
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none; transition: var(--t);
  box-shadow: 0 2px 10px rgba(0,87,255,0.3);
}
.btn-primary-sm:hover { opacity: 0.88; box-shadow: 0 4px 16px rgba(0,87,255,0.4); }

.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-a);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; cursor: pointer; color: #fff;
}

/* ── Nav mobile breakpoints ──────────────────────────────── */
@media (max-width: 640px) {
  .nav-inner { padding: 0 14px; gap: 10px; height: 54px; }
  .nav-search { max-width: none; }
  .btn-primary-sm { display: none; }
}
@media (max-width: 420px) {
  .btn-ghost-sm { padding: 7px 10px; font-size: 0.8rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.mp-hero {
  background: linear-gradient(135deg, #F0EFFF 0%, #E8F8FF 50%, #F6F6FF 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px;
  text-align: center;
}
.mp-hero-inner { max-width: 600px; margin: 0 auto; }
.mp-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.05em; margin-bottom: 12px; }
.g-text { background: var(--grad-a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mp-hero p { color: var(--text-2); font-size: 1rem; line-height: 1.65; }

/* ============================================================
   Category Bar
   ============================================================ */
.category-bar { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 62px; z-index: 90; }
@media (max-width: 640px) { .category-bar { top: 54px; } }
.category-scroll {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; height: 52px; align-items: center;
}
.category-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0; padding: 6px 16px;
  border-radius: 100px; border: 1.5px solid var(--border);
  background: none; color: var(--text-2);
  font-size: 0.84rem; font-weight: 600; cursor: pointer;
  transition: var(--t); font-family: inherit; white-space: nowrap;
}
.cat-pill:hover { border-color: var(--primary); color: var(--primary); }
.cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 10px rgba(0,87,255,0.3); }

/* ============================================================
   Layout
   ============================================================ */
.mp-layout { max-width: 1400px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }

/* ── Mobile filter toggle button (hidden on desktop) ──────── */
.filter-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 199;
  backdrop-filter: blur(2px);
}
.filter-overlay.open { display: block; }

.filter-toggle-btn {
  display: none; align-items: center; gap: 7px;
  padding: 8px 14px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 100px;
  color: var(--text-1); font-size: 0.84rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: var(--t);
  flex-shrink: 0;
}
.filter-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-close-btn {
  display: none; width: 100%; padding: 11px;
  background: var(--primary); border: none; border-radius: var(--r);
  color: #fff; font-size: 0.875rem; font-weight: 700;
  cursor: pointer; font-family: inherit; margin-top: 16px;
}

/* ============================================================
   Filters
   ============================================================ */
.mp-filters {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  position: sticky; top: 119px;
  box-shadow: var(--shadow-sm);
}
.filter-section { margin-bottom: 20px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 10px; }

.filter-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--text-2); cursor: pointer;
  margin-bottom: 7px; transition: color 0.2s; padding: 2px 0;
}
.filter-check:hover { color: var(--text-1); }
.filter-check input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }

.price-inputs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.price-inputs input {
  flex: 1; padding: 7px 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-1);
  font-size: 0.8rem; font-family: inherit; outline: none; width: 0;
}
.price-inputs input:focus { border-color: var(--primary); }
.price-inputs span { color: var(--text-3); font-size: 0.8rem; flex-shrink: 0; }

.filter-apply-btn {
  width: 100%; padding: 8px;
  background: var(--primary); border: none;
  border-radius: var(--r-sm); color: #fff;
  font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: var(--t);
}
.filter-apply-btn:hover { opacity: 0.88; }

/* ============================================================
   Toolbar & Grid
   ============================================================ */
.mp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.mp-count   { font-size: 0.875rem; color: var(--text-2); font-weight: 500; }
.mp-sort select {
  padding: 7px 12px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--r);
  color: var(--text-1); font-size: 0.875rem; font-family: inherit;
  outline: none; cursor: pointer; transition: border-color 0.2s;
}
.mp-sort select:focus { border-color: var(--primary); }

.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ============================================================
   Listing Card
   ============================================================ */
.listing-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden; cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit; display: block;
  isolation: isolate;
  transform: translateZ(0);
}
.listing-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }

.card-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img-placeholder { font-size: 3rem; }

.card-condition {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 9px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
}
.card-watchlist {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; border: none; transition: transform 0.2s;
}
.card-watchlist:hover { transform: scale(1.15); }
.card-watchlist.saved { background: rgba(220,38,38,0.1); }

.card-body { padding: 14px; }
.card-title { font-size: 0.875rem; font-weight: 700; color: var(--text-1); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta  { font-size: 0.75rem; color: var(--text-3); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { display: flex; align-items: center; justify-content: space-between; }
.card-price-val { font-size: 1.1rem; font-weight: 900; background: var(--grad-a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.03em; }
.card-offers-badge { font-size: 0.7rem; color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 100px; font-weight: 600; border: 1px solid var(--border-2); }

.card-store {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}
.card-store-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-a);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700; flex-shrink: 0; color: #fff; overflow: hidden;
}
.card-store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-store-name { font-size: 0.75rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.card-plan-badge { margin-left: auto; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }

/* ============================================================
   Skeleton
   ============================================================ */
.listing-skeleton { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.listing-skeleton::before { content: ''; display: block; aspect-ratio: 4/3; background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.listing-skeleton::after  { content: ''; display: block; height: 80px; margin: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   Empty / Load More
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; grid-column: 1 / -1; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p  { color: var(--text-2); font-size: 0.9rem; }

.load-more-zone { text-align: center; margin-top: 32px; }
.load-more-btn {
  padding: 12px 32px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 100px; color: var(--text-1);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: var(--t); box-shadow: var(--shadow-sm);
}
.load-more-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }

/* ============================================================
   Wordmark
   ============================================================ */
.wordmark { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.04em; }
.wordmark .w1 { color: var(--primary); -webkit-text-fill-color: var(--primary); }
.wordmark .w2 { color: var(--text-1); -webkit-text-fill-color: var(--text-1); background: none; }

/* ============================================================
   Search icon SVG
   ============================================================ */
.search-icon { flex-shrink: 0; color: var(--text-3); }

/* ============================================================
   Cart Button
   ============================================================ */
.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2); text-decoration: none; transition: var(--t);
}
.cart-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--primary); color: #fff;
  font-size: 0.6rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-2);
}

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
.hero-slider {
  position: relative; overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.slide {
  display: none;
  position: relative; overflow: hidden;
}
.slide.slide-active { display: block; animation: slideIn 0.5s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

.slide-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.slide-bg-buy   { background: linear-gradient(135deg, #EEF4FF 0%, #E0EDFF 60%, #fff 100%); }
.slide-bg-repair { background: linear-gradient(135deg, #F0FFF4 0%, #ECFDF5 60%, #fff 100%); }
.slide-bg-wtb   { background: linear-gradient(135deg, #EEF4FF 0%, #E8F6FF 60%, #fff 100%); }

.slide-inner {
  position: relative; max-width: 900px; margin: 0 auto;
  padding: 56px 28px 56px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.slide-visual { display: none; }
@media (max-width: 640px) { .slide-inner { padding: 40px 20px 48px; } }

.slide-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid var(--border-2); margin-bottom: 18px;
}
.slide-pill-green { background: rgba(22,163,74,0.08); color: #16a34a; border-color: rgba(22,163,74,0.2); }
.slide-pill-blue  { background: rgba(14,165,233,0.08); color: #0ea5e9; border-color: rgba(14,165,233,0.2); }

.slide-content { width: 100%; }
.slide-content h1 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1.06; margin-bottom: 16px; color: var(--text-1); text-align: center; }
.g-text       { background: var(--grad-a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.g-text-green { background: linear-gradient(135deg, #16a34a, #22c55e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.slide-content p { font-size: 1rem; color: var(--text-2); line-height: 1.65; max-width: 560px; margin: 0 auto 28px; text-align: center; }

.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-slide-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; background: var(--grad-a); border: none; border-radius: 100px;
  color: #fff; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  text-decoration: none; box-shadow: 0 4px 16px rgba(0,87,255,0.3);
  transition: var(--t); font-family: inherit;
}
.btn-slide-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-slide-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: none;
  border: 1.5px solid var(--border); border-radius: 100px;
  color: var(--text-1); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: var(--t);
}
.btn-slide-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* All slides are now centered — these kept for backward compat */
.slide-inner-center { }
.slide-content-center { }
.slide-actions-center { }

/* Slide arrows */
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: var(--t);
  box-shadow: var(--shadow-sm); color: var(--text-2);
}
.slide-arrow:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.slide-prev { left: 16px; }
.slide-next { right: 16px; }
@media (max-width: 640px) { .slide-arrow { display: none; } }

/* Dots */
.slide-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(13,13,26,0.15); cursor: pointer;
  transition: var(--t); padding: 0;
}
.dot.dot-active, .dot:hover { background: var(--primary); width: 22px; border-radius: 4px; }

/* Slide visuals */
.slide-device-preview { display: flex; gap: 12px; }
.sdp-card {
  flex: 1; background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--shadow-md); transition: var(--t);
}
.sdp-card:hover { transform: translateY(-4px); }
.sdp-card-shift { margin-top: 24px; }
.sdp-img { width: 100%; aspect-ratio: 1; border-radius: var(--r); background: var(--bg-2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.sdp-img svg { width: 40%; height: 40%; opacity: 0.25; }
.sdp-title { font-size: 0.82rem; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.sdp-price { font-size: 1rem; font-weight: 900; background: var(--grad-a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sdp-cond { display: inline-block; margin-top: 5px; padding: 2px 8px; background: rgba(22,163,74,0.08); color: #16a34a; border: 1px solid rgba(22,163,74,0.2); border-radius: 100px; font-size: 0.65rem; font-weight: 700; }

/* Repair preview visual */
.repair-preview {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md);
}
.rp-header {
  background: var(--bg-2); padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.rp-dot { width: 10px; height: 10px; border-radius: 50%; }
.rp-title { margin-left: 12px; font-size: 0.72rem; color: var(--text-3); font-weight: 600; }
.rp-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.rp-request {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r); transition: var(--t);
}
.rp-request:hover { border-color: var(--primary); background: var(--primary-light); }
.rp-device { width: 32px; height: 32px; background: var(--primary-light); border: 1px solid var(--border-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.rp-info { flex: 1; min-width: 0; }
.rp-name { font-size: 0.78rem; font-weight: 700; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-loc  { font-size: 0.68rem; color: var(--text-3); margin-top: 2px; }
.rp-unlock { padding: 5px 10px; background: var(--grad-a); border-radius: 6px; font-size: 0.68rem; font-weight: 700; color: #fff; white-space: nowrap; flex-shrink: 0; }

/* WTB preview visual */
.wtb-preview {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-md);
}
.wtbp-label { font-size: 0.68rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.wtbp-item { background: var(--primary-light); border: 1px solid var(--border-2); border-radius: var(--r); padding: 12px; margin-bottom: 4px; }
.wtbp-device { font-size: 0.875rem; font-weight: 800; color: var(--text-1); }
.wtbp-budget { font-size: 0.75rem; color: var(--primary); font-weight: 600; margin-top: 3px; }
.wtbp-resp { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: 6px; }
.wtbp-store { font-size: 0.78rem; font-weight: 700; color: var(--text-1); }
.wtbp-offer { font-size: 0.75rem; font-weight: 600; color: #16a34a; }

/* ============================================================
   Repair CTA Banner (bottom)
   ============================================================ */
.repair-cta-banner {
  background: linear-gradient(135deg, #EEF4FF, #E0F0FF);
  border-top: 1px solid var(--border);
  padding: 40px 24px; margin-top: 40px;
}
.repair-cta-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.repair-cta-icon { width: 56px; height: 56px; background: var(--primary-light); border: 1px solid var(--border-2); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.repair-cta-text { flex: 1; min-width: 220px; }
.repair-cta-text h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.repair-cta-text p  { color: var(--text-2); font-size: 0.875rem; line-height: 1.55; }
.repair-cta-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-repair-cta {
  padding: 12px 22px; background: var(--grad-a); border: none; border-radius: 100px;
  color: #fff; font-size: 0.875rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,87,255,0.3); transition: var(--t);
}
.btn-repair-cta:hover { opacity: 0.88; }
.btn-repair-ghost {
  padding: 11px 22px; background: none; border: 1.5px solid var(--border);
  border-radius: 100px; color: var(--text-1); font-size: 0.875rem;
  font-weight: 600; text-decoration: none; transition: var(--t);
}
.btn-repair-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   Empty state icon
   ============================================================ */
.empty-icon-box { width: 64px; height: 64px; border-radius: var(--r-md); background: var(--primary-light); border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--primary); margin: 0 auto 16px; }

/* ============================================================
   Watchlist button SVG version
   ============================================================ */
.card-watchlist svg { transition: var(--t); }
.card-watchlist.saved svg { fill: #dc2626; stroke: #dc2626; }

/* ============================================================
   Add to Cart button on card
   ============================================================ */
.card-add-cart {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 10px; padding: 9px;
  background: var(--primary-light); border: 1px solid var(--border-2);
  border-radius: var(--r-sm); color: var(--primary);
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: var(--t);
}
.card-add-cart:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   Responsive — must come last to override general rules
   ============================================================ */
@media (max-width: 860px) {
  .mp-layout { grid-template-columns: 1fr; padding: 16px; }
  /* Filter panel becomes a slide-in drawer */
  .mp-filters {
    position: fixed; top: 0; left: 0; height: 100svh; width: 300px;
    z-index: 200; overflow-y: auto; border-radius: 0;
    transform: translateX(-100%); transition: transform 0.25s ease;
    border-right: 1px solid var(--border); padding: 20px;
  }
  .mp-filters.open { transform: translateX(0); }
  .filter-toggle-btn { display: inline-flex; }
  .filter-close-btn { display: block; }
}
@media (max-width: 480px) {
  .mp-layout { padding: 10px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 0.8rem; }
  .card-price-val { font-size: 0.95rem; }
  /* Repair CTA banner — stack vertically on small screens */
  .repair-cta-inner { flex-direction: column; gap: 14px; }
  .repair-cta-text { min-width: auto; }
  .repair-cta-actions { width: 100%; justify-content: flex-start; }
  /* Listings grid — tighter on small phones */
  .listings-grid { gap: 8px; }
}
@media (max-width: 360px) {
  .nav-inner { padding: 0 10px; gap: 8px; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .card-body { padding: 8px; }
  .card-title { font-size: 0.75rem; }
  .mp-layout { padding: 8px; }
}
