/* Vendiac 1.50 — general 0%-commission Marketplace. No financing or fake listings. */
:root { color-scheme:dark; --market-blue:#0767e5; --market-blue-hover:#1678f3; --market-ink:#fff; --market-muted:#aaa; --market-surface:#141414; }
* { box-sizing:border-box; }
html,body { margin:0; min-width:280px; min-height:100%; background:#080808; color:#fff; }
.market-page { font:14px/1.5 var(--vendiac-ui-font,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif); -webkit-font-smoothing:antialiased; }
.market-page a { color:inherit; text-decoration:none; }
.market-page :is(button,input,select) { font:inherit; }
.market-page button { cursor:pointer; }
.market-page :is(a,button,input,select,summary):focus-visible { outline:2px solid #fff; outline-offset:3px; }
.market-page [hidden] { display:none!important; }
.market-page:has(dialog[open]) { overflow:hidden; }
.market-sr-only,.market-skip:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.market-skip:focus { position:fixed; top:10px; left:10px; z-index:200; background:#fff; color:#000; padding:12px 20px; border-radius:999px; }
.market-header { max-width:1560px; min-height:88px; padding:20px 40px; margin:auto; display:flex; gap:30px; align-items:center; }
.market-brand { width:172px; flex:none; }
.market-brand img { display:block; width:100%; height:auto; object-fit:contain; }
.market-header-actions { display:flex; align-items:center; gap:8px; flex:none; margin-left:auto; }
.market-icon { display:inline-flex; align-items:center; justify-content:center; flex:none; min-width:40px; height:40px; padding:8px; gap:8px; border:0; background:transparent; border-radius:999px; color:#fff; }
.market-icon svg,.market-search>svg,.market-search-submit svg,.market-filter-toggle svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.market-icon:hover { background:#222; }
.market-signin { font-size:13px; white-space:nowrap; }
.market-language img { width:22px; height:22px; object-fit:cover; border-radius:50%; display:block; }
.market-search { display:flex; align-items:center; gap:12px; width:min(580px,45vw); min-width:120px; min-height:48px; margin:0 0 0 auto; padding:5px 6px 5px 18px; border:0; background:#1a1a1a; border-radius:999px; }
.market-search input { min-width:0; width:100%; border:0; padding:7px 0; background:transparent; color:#fff; font-size:14px; outline:none; }
.market-search input:focus { outline:none; }.market-search:focus-within { outline:2px solid #fff; outline-offset:3px; }
.market-search input::placeholder { color:#aaa; }
.market-search-submit { display:grid; place-items:center; border:0; border-radius:50%; width:38px; height:38px; flex:none; background:var(--market-blue); color:#fff; padding:8px; }
.market-search-toggle { display:none; }
.market-main { max-width:1560px; padding:30px 40px 28px; margin:auto; }
.market-title { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin-bottom:32px; }
.market-title h1 { font-size:clamp(28px,2.8vw,40px); margin:0; line-height:1.2; letter-spacing:-.045em; font-weight:650; }
.market-commission { font-size:13px; color:#c6dcff; background:#102244; padding:8px 14px; border-radius:999px; white-space:nowrap; }
.market-layout { display:grid; grid-template-columns:214px minmax(0,1fr); gap:32px; align-items:start; }
#marketFilterHome { min-width:0; position:sticky; top:20px; max-height:calc(100dvh - 40px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:#363636 transparent; padding:0 3px 12px 0; }
.market-filter-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:24px; }
.market-filter-heading h2 { margin:0; font-size:18px; font-weight:650; letter-spacing:-.025em; }
.market-reset { min-height:40px; border:0; padding:8px 12px; border-radius:999px; background:#1c1c1c; color:#fff; font-size:12px!important; white-space:nowrap; }
.market-categories { margin-bottom:28px; }
.market-categories>summary { display:flex; justify-content:space-between; align-items:center; min-height:44px; font-size:14px; font-weight:550; padding:4px 12px 12px 2px; list-style:none; cursor:pointer; }
.market-categories>summary::-webkit-details-marker { display:none; }
.market-categories>summary::after { content:''; width:7px; height:7px; border-bottom:1.5px solid currentColor; border-right:1.5px solid currentColor; transform:rotate(45deg); margin-left:16px; }
.market-categories[open]>summary::after { transform:rotate(225deg); }
.market-categories nav { display:flex; flex-direction:column; gap:4px; }
[data-market-category] { border:0; border-radius:999px; min-height:42px; padding:10px 16px; color:#bbb; background:transparent; font-size:13px!important; text-align:left; line-height:1.5; }
.market-categories button { display:block; width:100%; }
[data-market-category][aria-pressed=true] { background:var(--market-blue); color:#fff; }
.market-page [data-market-category]:hover { color:#fff; background:#262626; }
.market-page [data-market-category][aria-pressed=true]:hover { background:var(--market-blue-hover); }
.market-filter-fields { display:grid; gap:22px; }
.market-field { display:grid; gap:9px; font-size:13px; font-weight:550; min-width:0; }
.market-field>span { padding:0 2px; }
.market-field select,.market-sort select {
  appearance:none; -webkit-appearance:none; display:block; width:100%; min-width:0; min-height:44px;
  border:0; border-radius:999px; color:#fff; background-color:#1d1d1d; padding:10px 32px 10px 16px; font-size:13px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:12px 8px;
}
.market-page select option { color:#fff; background:#1b1b1b; }
.market-price { margin:0; border:0; padding:0; min-width:0; }
.market-price legend { font-size:14px; font-weight:550; padding:0 0 12px; }
.market-price-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:14px; }
.market-price-inputs label { display:grid; gap:7px; min-width:0; }
.market-price-inputs span { font-size:12px; color:#bbb; padding-left:2px; }
.market-price-inputs input { display:block; width:100%; min-width:0; min-height:44px; background:#1b1b1b; border:0; border-radius:999px; color:#fff; padding:10px 13px; font-size:14px; }
.market-price-inputs input:disabled { color:#888; background:#141414; cursor:not-allowed; }
#marketPriceHint { color:#aaa; font-size:12px; line-height:1.5; margin:12px 2px 0; }
.market-results { min-width:0; }
.market-chips { display:flex; gap:8px; overflow:auto; max-width:100%; padding:0 0 14px; margin-bottom:10px; scrollbar-width:thin; scrollbar-color:#333 transparent; }
.market-chips button { background:#1c1c1c; color:#ddd; text-align:center; white-space:nowrap; flex:none; }
.market-chips button[aria-pressed=true] { color:#fff; background:var(--market-blue); }
.market-results-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; margin-bottom:22px; }
.market-results-toolbar h2 { margin:0; font-size:14px; font-weight:500; color:#aaa; min-width:0; overflow-wrap:anywhere; }
.market-browse-actions { display:flex; align-items:center; gap:10px; flex:none; }
.market-primary,.market-product-open,.market-visit { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; border:0; border-radius:999px; background:var(--market-blue); color:#fff!important; padding:10px 18px; font-size:13px; font-weight:550; text-align:center; text-decoration:none; line-height:1.5; }
.market-page :is(.market-primary,.market-product-open,.market-visit,.market-search-submit):hover { background:var(--market-blue-hover); }
.market-filter-toggle { display:none; }
.market-filter-toggle svg { width:18px; height:18px; }
.market-sort { min-width:0; }
.market-sort select { width:174px; background-color:var(--market-blue); font-weight:550; cursor:pointer; }
.market-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px 16px; }
.market-product { min-width:0; display:flex; flex-direction:column; overflow:hidden; border:0; background:#141414; border-radius:20px; }
.market-product-media { display:block; width:100%; padding:0; aspect-ratio:1/1; overflow:hidden; border:0; border-radius:20px; background:#1b1b1b; }
.market-product-media img { display:block; width:100%; height:100%; object-fit:contain; }
.market-product-info { padding:14px; display:flex; flex:1; flex-direction:column; gap:8px; min-width:0; }
.market-product h3 { font-size:14px; font-weight:550; line-height:1.45; margin:0; overflow-wrap:anywhere; }
.market-product h3 a { color:#fff; }
.market-product h3 a:hover { text-decoration:underline; text-underline-offset:3px; }
.market-product-meta,.market-product-seller { color:#aaa; font-size:12px; line-height:1.5; margin:0; overflow-wrap:anywhere; }
.market-product-meta { display:flex; flex-wrap:wrap; gap:5px 10px; }
.market-product-price { color:#fff; font-size:16px; font-weight:650; margin:4px 0 2px; }
.market-product-open { width:100%; margin-top:auto; cursor:pointer; }
.market-state { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; min-height:360px; padding:36px 20px; }
.market-state h3 { font-size:22px; font-weight:550; line-height:1.4; margin:0 0 10px; letter-spacing:-.025em; }
.market-state p { color:#aaa; font-size:14px; margin:0; max-width:360px; }
.market-state button { margin-top:24px; }
.market-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; margin-top:56px; padding:16px 0 0; color:#999; font-size:12px; }
.market-footer nav { display:flex; flex-wrap:wrap; gap:18px; }.market-footer a { display:inline-flex; align-items:center; min-height:40px; }
.market-note { color:#aaa; }
.market-dialog { width:min(580px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); margin:auto; padding:24px; border:0; border-radius:24px; background:#181818; color:#fff; overflow:auto; overscroll-behavior:contain; }
.market-dialog::backdrop { background:rgb(0 0 0/.76); }
.market-dialog>header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:20px; }
.market-dialog h2 { font-size:22px; font-weight:600; line-height:1.3; margin:0; letter-spacing:-.025em; overflow-wrap:anywhere; }
.market-dialog p { color:#bbb; font-size:14px; line-height:1.6; }
#marketDialogBody>img { display:block; width:100%; max-height:360px; object-fit:contain; background:#202020; border-radius:18px; }
.market-visit { width:100%; margin-top:16px; }
#marketFiltersApply { width:100%; margin-top:26px; }
@media(max-width:1250px) {
  .market-header,.market-main { padding-left:28px; padding-right:28px; }
  .market-header { gap:22px; }
  .market-brand { width:154px; }
  .market-signin span { display:none; }
  .market-layout { grid-template-columns:200px minmax(0,1fr); gap:26px; }
  .market-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:900px) {
  .market-layout { display:block; }
  #marketFilterHome { display:none; }
  .market-filter-toggle { display:inline-flex; }
  .market-header { gap:16px; }
  .market-header-actions { gap:4px; }
  .market-filter-dialog { width:min(420px,calc(100vw - 24px)); }
  .market-filter-heading h2 { display:none; }.market-filter-heading { margin-bottom:10px; justify-content:flex-end; }
}
@media(max-width:600px) {
  .market-header { flex-wrap:wrap; gap:14px 8px; padding:18px 18px 16px; }
  .market-brand { width:140px; }
  .market-header-actions { gap:3px; }
  .market-icon { width:36px; min-width:36px; height:40px; padding:7px; }
  .market-search { order:3; width:100%; margin:0; min-height:48px; }
  .market-search input { font-size:16px; }
  .market-main { padding:18px 18px 24px; }
  .market-title { gap:12px; margin-bottom:26px; }
  .market-title h1 { font-size:28px; }
  .market-commission { padding:7px 10px; font-size:11px; }
  .market-chips { padding-bottom:12px; gap:8px; margin-bottom:12px; }
  .market-chips button { min-height:44px; padding:10px 16px; }
  .market-results-toolbar { flex-wrap:wrap; margin-bottom:20px; gap:12px; }
  .market-results-toolbar h2 { flex-basis:100%; font-size:13px; }
  .market-browse-actions { width:100%; justify-content:space-between; }
  .market-sort select { width:166px; font-size:12px; }
  .market-primary { min-height:44px; }
  .market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 10px; }
  .market-product,.market-product-media { border-radius:16px; }
  .market-product-info { padding:12px 10px; gap:7px; }
  .market-product h3 { font-size:13px; }
  .market-product-meta,.market-product-seller { font-size:11px; }
  .market-product-price { font-size:15px; }
  .market-product-open { min-height:44px; font-size:12px; padding:10px 6px; }
  .market-state { min-height:310px; padding:32px 12px; }
  .market-state h3 { font-size:20px; }.market-state p { font-size:13px; }
  .market-dialog { padding:20px; max-height:calc(100dvh - 24px); }
  .market-field select,.market-price-inputs input { font-size:16px; min-height:46px; }
  .market-footer { margin-top:32px; font-size:11px; }
}
@media(max-width:359px) { .market-brand { width:114px; }.market-header { padding-inline:14px; }.market-main { padding-inline:14px; }.market-header-actions { gap:0; }.market-sort select { width:155px; }.market-title { gap:8px; }.market-title h1 { font-size:26px; } }
@media(prefers-reduced-motion:reduce) { .market-page *, .market-page *::before, .market-page *::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@media(forced-colors:active) { .market-page :is(button,select,input,.market-visit) { border:1px solid ButtonText; } [data-market-category][aria-pressed=true] { outline:2px solid Highlight; } }
