/* Lot inventory cards + the white-label salesperson pages. Neutral on purpose: each page sets
   --brand / --accent from its own colors. (No company names in here.) */
:root {
  --brand: #2d3633; --on-brand: #fff; --accent: #2d3633; --on-accent: #fff;
  --ink: #1c201e; --muted: #5b625d; --line: #e4e1d9; --bg: #f8f7f4; --card: #fff; --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body.wl { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
body.wl.is-embed { background: transparent; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; }

.sample-bar { background: #fff3c4; color: #5a4800; text-align: center; font-size: 14px; padding: 8px 16px; }
.wl-head { background: var(--brand); color: var(--on-brand); }
.wl-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 16px; padding-bottom: 16px; }
.wl-logo { height: 56px; width: auto; max-width: 200px; object-fit: contain; background: rgba(255,255,255,.0); border-radius: 8px; }
.wl-name { display: flex; flex-direction: column; flex: 1 1 220px; }
.wl-name strong { font-size: 22px; line-height: 1.2; }
.wl-name span { opacity: .85; font-size: 15px; }
.wl-contact { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.wl-contact a { color: inherit; font-weight: 600; text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--on-brand) 35%, transparent); }
.wl-h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.15; margin: 28px 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.is-embed .wl-h1 { margin-top: 8px; }
.wl-h1 .count { font-size: 15px; font-weight: 600; color: var(--muted); }
.wl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 14px; padding-top: 32px; padding-bottom: 32px; }

/* filter bar */
.lot-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip.on span { color: inherit; opacity: .8; }
.sort { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort select { font: inherit; color: var(--ink); padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }

/* cards */
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.lot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.lot[hidden] { display: none; }
.lot-img { position: relative; aspect-ratio: 800 / 520; background: #ece8df; }
.lot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-badge { position: absolute; left: 10px; top: 10px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px; }
.lot-badge.soft { left: auto; right: 10px; background: rgba(255,255,255,.88); color: #444; font-weight: 600; }
.lot-badge + .lot-badge.soft { left: auto; }
.lot-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lot h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.lot-colors { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.lot-colors .sw { width: 12px; height: 12px; border-radius: 3px; background: var(--c); border: 1px solid rgba(0,0,0,.18); display: inline-block; margin-right: 3px; }
.lot-colors .dot { margin: 0 4px; opacity: .6; }
.lot-ups { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.lot-ups li { font-size: 12.5px; background: #f1efe9; border-radius: 6px; padding: 2px 8px; color: #3d433f; }
.lot-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.lot-price b { display: block; font-size: 24px; line-height: 1.1; }
.lot-price b.call { font-size: 18px; }
.lot-price small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.lot-serial { font-size: 12.5px; color: var(--muted); }
.lot-ask { font: inherit; font-weight: 700; width: 100%; padding: 11px 14px; border-radius: 10px; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.lot-ask:hover { filter: brightness(1.07); }
.lot-ask[hidden] { display: none; }
.lot-none, .lot-empty { padding: 28px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.lot-empty[hidden] { display: none; }
.sample-note { background: #fff3c4; color: #5a4800; padding: 8px 12px; border-radius: 10px; font-size: 14px; }

/* inquiry form */
.lead { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.lead-for { margin: 0; font-weight: 700; font-size: 14px; }
.lead label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lead .opt { font-weight: 400; }
.lead input, .lead textarea, .lead select { font: inherit; font-size: 16px; color: var(--ink); padding: 9px 11px; border: 1px solid #cfcbc1; border-radius: 9px; background: #fff; width: 100%; }
.lead input:focus, .lead textarea:focus, .lead select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.lead .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 360px) { .lead .row2 { grid-template-columns: 1fr; } }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-actions { display: flex; gap: 10px; }
.lead-actions button { font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 0; cursor: pointer; }
.lead-actions button[type=submit] { background: var(--accent); color: var(--on-accent); flex: 1; }
.lead-actions button[type=submit]:disabled { opacity: .6; cursor: default; }
.lead-cancel { background: #eeebe4; color: var(--ink); }
.lead-msg { margin: 0; font-size: 14px; min-height: 1em; }
.lead-msg.bad { color: #a32020; }
.lead-msg.good { color: #1e6a35; font-weight: 600; }
.lead.sent .row2, .lead.sent label, .lead.sent .ts, .lead.sent .lead-actions button[type=submit] { display: none; }
