/* The /sellers and /buyers directory pages. Light ink theme from theme.css. */
body { min-height: 100vh; }
.dir { max-width: 1240px; margin: 0 auto; padding: 18px 24px 48px; }
.dir a { color: inherit; }

.dtop { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dtop .brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.dtop .brand img { display: block; }
.dtop .tagline { font-size: 13px; font-weight: 600; color: var(--muted); }
.dtop nav { margin-left: auto; display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.dtop nav a { font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.dtop nav a.on { background: var(--accent); color: var(--on-accent); }

.hero { margin: 26px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero h2 { margin: 0; font-size: 40px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.hero h2 .sep { color: var(--border-strong); font-weight: 600; margin: 0 6px; }
.hero p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; max-width: 640px; }
.honest { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 999px; padding: 7px 14px; }

.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 10px 0; }
.tools input[type=search] { flex: 1 1 260px; min-width: 0; font: 600 15px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 10px 16px; outline: none; }
.tools input[type=search]:focus { border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-glow); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 700 13px var(--font); color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.chip .n { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip.on { background: var(--text); color: var(--on-accent); border-color: var(--text); }
.chip.on .n { color: color-mix(in srgb, var(--on-accent) 70%, transparent); }
.count { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; margin: 0 0 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.more { display: block; margin: 20px auto 0; font: 700 14px var(--font); background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 999px; padding: 10px 22px; cursor: pointer; }
.more[hidden] { display: none; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* shop cards */
.shop { padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; text-align: left; font: inherit; color: inherit; transition: box-shadow .15s, transform .15s; }
.shop:hover, .shop:focus-visible { box-shadow: var(--shadow-lg); transform: translateY(-1px); outline: none; }
.shop .head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.shop .name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; line-height: 1.2; overflow-wrap: anywhere; }
.shop .dom { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.shop .k { font-weight: 800; font-size: 15px; white-space: nowrap; }
.shop .k small { font-weight: 600; color: var(--muted); font-size: var(--fs-xs); margin-left: 3px; }
.cats { display: flex; gap: 4px; flex-wrap: wrap; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thumb { min-width: 0; }
.thumb .img { aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .t { font-size: 10.5px; line-height: 1.25; color: var(--text-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb .p { font-size: 11px; font-weight: 800; }
.shop .open { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }

/* full catalog panel */
.panel-bg { position: fixed; inset: 0; background: rgba(20, 20, 20, .28); z-index: 10; display: flex; justify-content: flex-end; }
.panel-bg[hidden] { display: none; }
.panel { width: min(760px, 100%); height: 100%; background: var(--bg); box-shadow: var(--shadow-lg); overflow-y: auto; padding: 20px 22px 40px; }
.panel .ph { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; position: sticky; top: -20px; background: var(--bg); padding: 20px 0 12px; margin-top: -20px; z-index: 1; }
.panel h3 { margin: 0; font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.panel .sub { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.panel .close { font: 800 20px var(--font); width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; color: var(--text); }
.panel .pfilter { width: 100%; margin: 4px 0 12px; font: 600 14px var(--font); border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 14px; background: var(--surface); color: var(--text); }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.prod { color: var(--text); padding: 8px; border-radius: var(--radius-sm); text-decoration: none; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.prod .img { aspect-ratio: 1; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.prod img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod .t { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .row { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.prod .p { font-weight: 800; }
.prod .ty { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* buyer agents */
.section-h { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.section-h h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.section-h span { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.agent { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.agent .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.agent .nm { font-weight: 800; font-size: 15.5px; line-height: 1.2; }
.agent .id { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.agent .want { font-size: 13.5px; color: var(--text-2); line-height: 1.35; overflow-wrap: anywhere; }
.agent .want b { color: var(--text); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; font-size: 12.5px; }
.facts .l { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; }
.facts .v { font-weight: 700; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.private { display: inline-flex; align-items: center; gap: 6px; }
.private .blur { filter: blur(4px); user-select: none; font-weight: 800; }
.private .lock { font-size: 10.5px; }
.prio { display: flex; flex-direction: column; gap: 4px; }
.prio .bar { display: grid; grid-template-columns: 78px 1fr 34px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.prio .track { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.prio .fill { height: 100%; background: var(--text); border-radius: 99px; }
.outcome { font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.outcome.deal { background: var(--deal-soft); color: var(--deal); }
.outcome.loss { background: var(--loss-soft); color: var(--loss); }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.grid.small .agent { padding: 12px 13px; gap: 7px; border-radius: var(--radius-sm); }
.grid.small .agent .nm { font-size: 14px; }
.cat-h { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; }
.cat-h:first-child { margin-top: 0; }
.cat-h b { font-size: 17px; letter-spacing: -0.01em; }
.cat-h span { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.cdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }

@media (max-width: 720px) {
  .dir { padding: 14px 16px 40px; }
  .dtop nav { margin-left: 0; }
  .hero { margin-top: 18px; }
  .hero h2 { font-size: 28px; }
  .hero h2 .sep { display: block; height: 0; overflow: hidden; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid.small { grid-template-columns: minmax(0, 1fr); }
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 16px 16px 40px; }
  .tools { position: static; }
}
