/* ==========================================================================
   Lambo Car Parts — design system
   ========================================================================== */

:root {
  --ink: #0a0a0c;
  --ink-2: #14141a;
  --ink-3: #1e1e26;
  --paper: #ffffff;
  --paper-2: #f7f7f8;
  --paper-3: #efeff2;
  --gold: #c9a227;
  --gold-bright: #e6c455;
  --gold-soft: #f6efd6;
  --muted: #6c6c76;
  --muted-2: #93939e;
  --line: #e4e4e9;
  --line-dark: rgba(255,255,255,.12);
  --green: #1f7a4d;
  --red: #b3261e;
  --amber: #a86a00;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10,10,12,.06), 0 2px 8px rgba(10,10,12,.04);
  --shadow: 0 4px 12px rgba(10,10,12,.07), 0 16px 40px rgba(10,10,12,.08);
  --shadow-lg: 0 24px 60px rgba(10,10,12,.16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 750;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.eyebrow--muted { color: var(--muted-2); }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; } .mt-5 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.wrap { flex-wrap: wrap; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .94rem;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .12s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: #14140f; }
.btn--gold:hover { background: var(--gold-bright); box-shadow: 0 8px 24px rgba(201,162,39,.35); }
.btn--outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--ghost-light { background: transparent; color: #fff; border-color: var(--line-dark); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); }
.btn--danger { background: #fff; color: var(--red); border-color: #f0c9c6; }
.btn--danger:hover { background: #fdf3f2; }
.btn--sm { padding: .5rem .9rem; font-size: .82rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,10,12,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 6px;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  display: grid; place-items: center;
  font-weight: 900; font-size: .95rem; color: #14140f; letter-spacing: -.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: .98rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-sub { font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: .5rem; }
.main-nav a {
  font-size: .875rem; font-weight: 550; color: rgba(255,255,255,.78);
  padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; border-color: var(--gold); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.header-search {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: .45rem .8rem; min-width: 220px;
}
.header-search input {
  background: transparent; border: 0; color: #fff; font-size: .85rem; width: 100%; outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,.45); }
.header-search svg { flex-shrink: 0; opacity: .6; }
.header-user { position: relative; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: #14140f; display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; cursor: pointer; border: 0;
}
.mobile-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: .4rem; }

.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; color: var(--ink); border-radius: 10px; box-shadow: var(--shadow-lg);
  min-width: 220px; padding: .5rem; display: none; border: 1px solid var(--line);
}
.dropdown.open { display: block; }
.dropdown a, .dropdown button {
  display: block; width: 100%; text-align: left; padding: .6rem .75rem; border-radius: 6px;
  font-size: .875rem; background: none; border: 0; cursor: pointer; color: var(--ink); font-weight: 500;
}
.dropdown a:hover, .dropdown button:hover { background: var(--paper-2); }
.dropdown .divider { height: 1px; background: var(--line); margin: .4rem 0; }
.dropdown .dd-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding: .5rem .75rem .25rem; font-weight: 700; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(201,162,39,.20), transparent 60%),
    radial-gradient(700px 420px at 12% 92%, rgba(201,162,39,.10), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero-lead { font-size: clamp(1rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.72); max-width: 52ch; margin-bottom: 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }

.search-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.search-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: .75rem; }
.search-card .btn { margin-top: .25rem; }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stat span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ---------------- Forms ---------------- */
label, .label {
  display: block; font-size: .8rem; font-weight: 650; letter-spacing: .02em;
  margin-bottom: .4rem; color: var(--ink-2);
}
.input, .select, .textarea {
  width: 100%; padding: .72rem .9rem; border: 1px solid var(--line);
  border-radius: 8px; font-size: .94rem; font-family: inherit; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.16);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c6c76' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 2.2rem; }
.field { margin-bottom: 1.1rem; }
.field-error { color: var(--red); font-size: .78rem; margin-top: .3rem; }
.input.has-error, .select.has-error, .textarea.has-error { border-color: var(--red); }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.checkbox-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; }
.checkbox-row input { margin-top: .25rem; width: 16px; height: 16px; accent-color: var(--gold); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.25rem; }

/* ---------------- Cards / sections ---------------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--alt { background: var(--paper-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .25rem; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 1.5rem; }

/* listing grid */
.listing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.listing-grid--3 { grid-template-columns: repeat(3, 1fr); }

.listing-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6d6dd; }
.listing-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card:hover .listing-media img { transform: scale(1.04); }
.listing-media .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #1a1a20, #2a2a33); color: rgba(255,255,255,.25);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
}
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .55rem; border-radius: 4px;
  font-size: .66rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
}
.badge--new { background: #e8f5ee; color: var(--green); }
.badge--used { background: #f1f1f4; color: #55555f; }
.badge--refurbished { background: #eef2fb; color: #2b4c8c; }
.badge--nos { background: var(--gold-soft); color: #7a5c00; }
.badge--featured { background: var(--ink); color: var(--gold-bright); }
.badge--sold { background: #fdecea; color: var(--red); }
.badge--draft { background: #f1f1f4; color: #66666f; }
.badge--pending { background: #fff4e0; color: var(--amber); }
.badge--active { background: #e8f5ee; color: var(--green); }
.badge--rejected { background: #fdecea; color: var(--red); }
.listing-media .badge { position: absolute; top: .7rem; left: .7rem; backdrop-filter: blur(4px); }

.listing-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.listing-model { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .35rem; }
.listing-title { font-size: .95rem; font-weight: 650; line-height: 1.35; margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-price { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin-top: auto; }
.listing-meta { font-size: .75rem; color: var(--muted); margin-top: .35rem; display: flex; gap: .5rem; flex-wrap: wrap; }

/* category / model tiles */
.tile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.tile {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.tile strong { font-size: .9rem; font-weight: 650; }
.tile span { font-size: .75rem; color: var(--muted); }

/* ---------------- Steps / value props ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 2.5rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--gold);
}
.step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.value-icon {
  width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center;
  background: var(--gold-soft); color: #7a5c00; margin-bottom: 1rem;
}
.value h3 { font-size: 1rem; margin-bottom: .4rem; }
.value p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------------- Alerts ---------------- */
.alert {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .9rem 1.1rem; border-radius: 8px; font-size: .9rem;
  border: 1px solid var(--line); background: var(--paper-2); margin-bottom: 1rem;
}
.alert--success { background: #eef8f2; border-color: #c6e6d4; color: #14532d; }
.alert--error { background: #fdf1f0; border-color: #f3cfcc; color: #7f1d1a; }
.alert--warning { background: #fff8e8; border-color: #f2e0b6; color: #6b4a00; }
.alert--info { background: #eef3fb; border-color: #cdddf3; color: #1e3a6b; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th {
  text-align: left; padding: .8rem 1rem; font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); background: var(--paper-2);
  border-bottom: 1px solid var(--line); font-weight: 700; white-space: nowrap;
}
table.data td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fcfcfd; }
.table-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------------- Listing detail ---------------- */
.detail-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 3rem; align-items: start; }
.gallery-main {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3);
  aspect-ratio: 4 / 3; border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin-top: .6rem; }
.gallery-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 7px; overflow: hidden;
  aspect-ratio: 1; background: var(--paper-3); cursor: pointer;
}
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.spec { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.spec dd { margin: 0; font-size: .92rem; font-weight: 600; }

.seller-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: #fff; position: sticky; top: 92px; }
.price-tag { font-size: 2.1rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.pay-methods { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay-chip { font-size: .72rem; font-weight: 650; padding: .28rem .6rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }

.disclaimer-box {
  background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 1rem 1.15rem; font-size: .82rem; color: var(--muted); line-height: 1.6;
}

/* ---------------- Dashboard ---------------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.dash-nav { position: sticky; top: 92px; }
.dash-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .65rem .85rem; border-radius: 7px; font-size: .88rem; font-weight: 550; color: var(--muted);
}
.dash-nav a:hover { background: var(--paper-2); color: var(--ink); }
.dash-nav a.active { background: var(--ink); color: #fff; }
.dash-nav .count { font-size: .7rem; background: var(--gold); color: #14140f; border-radius: 999px; padding: .1rem .45rem; font-weight: 800; }
.dash-nav .nav-group { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; padding: 1rem .85rem .35rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; background: #fff; }
.stat strong { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-head h2 { font-size: .95rem; margin: 0; }
.panel-body { padding: 1.25rem; }

.empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.05rem; }

/* image upload grid */
.upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.upload-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-item form { position: absolute; top: .3rem; right: .3rem; }
.upload-item button {
  width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(10,10,12,.75);
  color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; display: grid; place-items: center;
}
.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 2rem 1rem;
  text-align: center; color: var(--muted); font-size: .88rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--gold); background: #fffdf6; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 4rem 0 2rem; font-size: .875rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.site-footer h4 { color: #fff; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { display: block; padding: .28rem 0; color: rgba(255,255,255,.62); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-brand p { max-width: 34ch; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.75rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; font-size: .78rem;
}
.footer-legal { max-width: 78ch; line-height: 1.7; color: rgba(255,255,255,.42); margin-bottom: 1rem; }

/* ---------------- Prose ---------------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.1rem; }
.prose p, .prose li { color: #33333a; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: #7a5c00; text-decoration: underline; text-underline-offset: 2px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: 7px; font-size: .85rem; font-weight: 600;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { opacity: .4; }

/* ---------------- Filters ---------------- */
.browse-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
.filters { position: sticky; top: 92px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.filter-group label.opt { display: flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 500; padding: .3rem 0; color: #33333a; cursor: pointer; margin: 0; }
.filter-group input[type=radio], .filter-group input[type=checkbox] { accent-color: var(--gold); width: 15px; height: 15px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.chip-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  font-size: .78rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-weight: 600;
}
.chip.active, .chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------- Auth ---------------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.auth-aside {
  background: var(--ink); color: #fff; padding: 4rem; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 70% 20%, rgba(201,162,39,.22), transparent 65%);
}
.auth-aside > * { position: relative; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-form { width: 100%; max-width: 440px; }
.auth-form h1 { font-size: 1.9rem; margin-bottom: .4rem; }
.auth-alt { font-size: .88rem; color: var(--muted); margin-top: 1.5rem; }
.auth-alt a { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- Misc ---------------- */
.hero-band { background: var(--ink); color: #fff; padding: clamp(2.5rem,5vw,4rem) 0; }
.breadcrumb { display: flex; gap: .5rem; font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted-2); }
.divider { height: 1px; background: var(--line); margin: 2rem 0; }
.badge-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv strong { font-weight: 650; }

@media (max-width: 1100px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .seller-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .main-nav, .header-search { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav { display: none; border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: .6rem 0; color: rgba(255,255,255,.8); font-size: .95rem; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .5rem; }
  .dash-nav .nav-group { display: none; }
  .dash-nav a { white-space: nowrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .listing-grid, .listing-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .steps { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-3 { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .listing-grid, .listing-grid--3 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .search-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .spec-list { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .btn, .filters { display: none !important; }
  body { font-size: 11pt; }
}

/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--gold);
  color: var(--ink);
  padding: .75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Details/summary FAQ polish ---------- */
details summary::-webkit-details-marker { display: none; }
details[open] summary .muted { transform: rotate(45deg); display: inline-block; }
details summary .muted { transition: transform .15s ease; }
