:root{--ink:#0e1116;--text:#3d444e;--muted:#5b6370;--line:#e4e7eb;--line-2:#d5d9de;--bg:#fff;--soft:#f4f5f7;--warm:#f2f0eb;--brand:#f77f00;--brand-text:#a65300;--buy:#15803d;--sale:#c81e1e}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 Onest,system-ui,sans-serif}a{color:var(--ink)}a:hover{color:var(--brand-text)}button,input{font:inherit}.wrap{max-width:1280px;margin:auto;padding-inline:24px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}[hidden]{display:none!important}.logo{display:inline-block;transform:skewX(-8deg);font-size:24px;font-weight:700;letter-spacing:-.03em;text-decoration:none;white-space:nowrap}.logo b{color:var(--brand)}.logo-large{font-size:30px}.btn{display:inline-flex;min-height:44px;padding:0 20px;align-items:center;justify-content:center;border:0;border-radius:999px;font-weight:600;text-decoration:none}.btn-brand{background:var(--brand);color:var(--ink)}.btn-line{background:#fff;border:1px solid var(--line)}.full{width:100%}
.header{position:sticky;z-index:20;top:0;background:rgba(255,255,255,.9);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.header-inner{display:flex;min-height:76px;align-items:center;gap:28px}.nav{display:flex;flex:1;gap:4px}.nav a{padding:8px 14px;border-radius:99px;text-decoration:none;font-size:15px;font-weight:500}.header-actions{display:flex;gap:8px}
.hero{padding-top:20px}.hero-box{display:flex;min-height:520px;padding:44px 48px 52px;align-items:center;gap:30px;border-radius:32px;background:var(--warm);overflow:hidden}.hero-text{z-index:1;flex:1 1 560px;min-width:0}.hero-art{flex:1 1 450px}.hero-art svg{display:block;width:100%;overflow:visible}.tabs{display:inline-flex;padding:6px;gap:4px;border-radius:99px;background:var(--ink)}.tabs button{min-width:150px;min-height:48px;border:0;border-radius:99px;background:transparent;color:#c9ced6;font-weight:600;cursor:pointer}.tabs button[aria-selected=true]{background:#fff;color:var(--ink)}h1{max-width:800px;margin:36px 0 14px;font-size:clamp(34px,4.1vw,52px);line-height:1.08;letter-spacing:-.035em}.lead{max-width:680px;margin:0 0 30px;color:var(--text);font-size:19px}.search{display:flex;max-width:800px;padding:8px;gap:8px;border-radius:20px;background:#fff;box-shadow:0 16px 40px rgba(14,17,22,.08)}.search label{display:flex;min-width:0;flex:1;align-items:center;gap:10px;padding:0 14px;font-size:26px}.search input{width:100%;min-width:0;min-height:56px;border:0;outline:0;font-size:17px}.search button{min-width:130px;border:0;border-radius:14px;background:var(--brand);font-weight:600;cursor:pointer}.popular{display:flex;margin-top:18px;align-items:center;gap:8px;flex-wrap:wrap}.popular span{color:var(--text);font-size:14px;font-weight:600}.popular a{display:inline-flex;min-height:38px;padding:0 14px;align-items:center;border:1px solid var(--line);border-radius:99px;background:#fff;text-decoration:none;font-size:13px;font-weight:600}.eyebrow{display:inline-flex;padding:6px 14px;border-radius:99px;background:#fff;color:var(--brand-text);font-size:13px;font-weight:600;text-transform:uppercase}.sell-title{margin-top:16px}.sell-cards{display:flex;gap:14px}.sell-card{display:flex;flex:1;padding:20px;align-items:center;gap:14px;border-radius:22px;background:#fff;text-decoration:none;font-size:18px;font-weight:600}.sell-card.dark{background:var(--ink);color:#fff}.sell-card small{display:block;color:var(--muted);font-size:13px;font-weight:400}.sell-card.dark small{color:#c9ced6}.sell-icon{font-size:30px}.bob{animation:bob 5s ease-in-out infinite}.float-part{animation:float 4s ease-in-out infinite}.float-part.delay{animation-delay:-2s}@keyframes bob{50%{transform:translateY(-5px)}}@keyframes float{50%{transform:translateY(-12px) rotate(5deg)}}
.cats{display:grid;padding-top:48px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.cat{display:flex;padding:20px;align-items:center;gap:16px;border:1px solid var(--line);border-radius:20px;text-decoration:none;transition:border-color .15s}.cat:hover{border-color:#cdd2d8}.cat-ico{display:flex;width:76px;height:76px;flex:none;align-items:center;justify-content:center;border-radius:22px;background:var(--soft)}.cat b,.cat small{display:block}.cat b{font-size:18px}.cat small{color:var(--muted);font-size:14px}.cat-chev{margin-left:auto;color:var(--muted);font-size:22px}.sec{padding-top:64px}.sec-head{display:flex;margin-bottom:22px;align-items:end;justify-content:space-between;gap:16px}.sec h2,.sec-head h2{margin:0;font-size:34px;line-height:1.2;letter-spacing:-.02em}.sec-head p{margin:4px 0 0;color:var(--muted)}.small-heading{margin-bottom:16px!important;font-size:26px!important}.filters{display:flex;margin-bottom:22px;gap:8px;flex-wrap:wrap}.filters button{min-height:40px;padding:0 16px;border:1px solid var(--line);border-radius:99px;background:#fff;cursor:pointer}.filters button[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:#fff;font-weight:600}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:18px}.card{position:relative;display:flex;min-width:0;padding:8px;flex-direction:column;border:1px solid var(--line);border-radius:22px;background:#fff;transition:box-shadow .15s}.card:hover{box-shadow:0 8px 24px rgba(14,17,22,.08)}.card-link{display:flex;flex:1;flex-direction:column;color:var(--ink);text-decoration:none}.photo{position:relative;display:flex;height:184px;align-items:center;justify-content:center;border-radius:16px;background:#f0f2f4;overflow:hidden}.photo img{width:100%;height:100%;object-fit:cover}.tag{position:absolute;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.4}.tag-seller{top:10px;left:10px;background:var(--ink);color:#fff}.tag-seller.is-private{background:#fff;color:var(--ink)}.tag-photos{display:inline-flex;bottom:10px;left:10px;align-items:center;gap:5px;background:rgba(14,17,22,.72);color:#fff}.tag-sale{right:10px;bottom:10px;background:var(--sale);color:#fff;font-size:13px;font-weight:700}.card-body{display:flex;padding:14px 10px 10px;flex:1;flex-direction:column;gap:8px}.card-title{font-size:17px;font-weight:600;line-height:1.3}.card-sub{color:var(--muted);font-size:14px}.chips{display:flex;gap:6px;flex-wrap:wrap;color:var(--text);font-size:13px}.chips span{padding:3px 8px;border-radius:8px;background:var(--soft)}.price{display:flex;align-items:flex-start;flex-direction:column;line-height:1.15}.price-old{color:var(--muted);font-size:14px;text-decoration:line-through}.price-now{font-size:22px;font-weight:700;letter-spacing:-.01em}.price-now.is-sale{color:var(--sale)}.city{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:13px}.price-row{display:flex;margin-top:auto;padding-top:10px;align-items:flex-end;justify-content:space-between;gap:8px;border-top:1px solid #eef0f2}.view-link{display:inline-flex;min-height:40px;margin:2px 10px 8px;align-self:flex-end;align-items:center;gap:6px;color:var(--ink);text-decoration:none;font-size:15px;font-weight:600}.view-link:hover{color:var(--brand-text)}.card-foot{display:flex;margin:4px 10px 10px;padding-top:12px;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eef0f2}.btn-buy{display:inline-flex;min-height:54px;padding:0 26px 0 22px;align-items:center;gap:8px;border:0;border-radius:999px;background:#15803d;color:#fff;font-weight:700;font-size:19px;text-decoration:none}.btn-buy:hover{background:#116632;color:#fff}.fav{position:absolute;display:flex;z-index:2;top:16px;right:16px;width:40px;height:40px;padding:0;align-items:center;justify-content:center;border:0;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(14,17,22,.12);cursor:pointer}.fav svg{width:20px;fill:none;stroke:var(--ink);stroke-width:1.6}.fav[aria-pressed=true] svg{fill:var(--brand);stroke:var(--brand)}.card a:focus-visible,.card button:focus-visible,.cat:focus-visible{outline:3px solid var(--brand);outline-offset:2px}.empty{display:flex;min-height:230px;padding:30px;grid-column:1/-1;align-items:center;justify-content:center;flex-direction:column;border:1px dashed var(--line);border-radius:22px;color:var(--muted);text-align:center}.empty>span{font-size:38px}.empty strong{color:var(--ink);font-size:18px}.brands{display:flex;gap:10px;flex-wrap:wrap}.brands a{display:inline-flex;min-height:48px;padding:0 20px;align-items:center;border-radius:14px;background:var(--soft);font-weight:600;text-decoration:none}.why{display:grid;margin-top:24px;grid-template-columns:repeat(3,1fr);gap:14px}.why>div{padding:26px;border-radius:22px;background:var(--soft)}.why h3{margin:0 0 6px}.why p{margin:0;color:var(--text)}
.footer{margin-top:72px;padding:40px 24px;background:var(--brand)}.footer-box{max-width:1232px;margin:auto;padding:0 40px;border-radius:28px;background:#fff}.footer-cols{display:grid;padding:44px 0 40px;grid-template-columns:2fr repeat(3,1fr);gap:28px}.footer-about{display:flex;flex-direction:column;gap:14px}.footer-about p{max-width:350px;margin:0;color:var(--text)}.footer-contact{display:flex;color:var(--text);font-size:14px;flex-direction:column}.footer nav{display:flex;gap:9px;flex-direction:column}.footer nav strong{align-self:start;margin-bottom:5px;padding-bottom:7px;border-bottom:2px solid var(--brand)}.footer nav a{text-decoration:none;color:var(--text);font-size:14px}.footer-bottom{display:flex;padding:20px 0 28px;justify-content:space-between;gap:20px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.footer-bottom a{margin-left:20px;color:var(--muted);text-decoration:none}
.detail{padding-top:36px}.back{text-decoration:none}.detail-grid{display:grid;margin-top:24px;grid-template-columns:1.6fr 1fr;gap:28px}.detail-photo{display:grid;min-height:500px;place-items:center;border-radius:28px;background:var(--soft);overflow:hidden}.detail-photo img{width:100%;height:100%;object-fit:cover}.detail-photo span{font-size:80px}.detail-card{padding:32px;border:1px solid var(--line);border-radius:28px}.detail-card h1{margin:20px 0 10px;font-size:38px}.detail-price{margin:20px 0;font-size:34px;font-weight:700}.description{max-width:800px;padding-top:40px}
@media(max-width:900px){.hero-box{padding:35px 30px}.hero-art{position:absolute;opacity:.12}.hero-box{position:relative}.hero-text{flex-basis:100%}.cats{grid-template-columns:1fr}.footer-cols{grid-template-columns:repeat(3,1fr)}.footer-about{grid-column:1/-1}.detail-grid{grid-template-columns:1fr}.detail-photo{min-height:360px}}
@media(max-width:720px){.wrap{padding-inline:16px}.header-inner{min-height:68px;gap:10px}.nav{display:none}.header-actions{margin-left:auto}.header-actions .btn{min-height:40px;padding:0 13px;font-size:14px}.header-actions .btn-line{display:none}.hero{padding-top:12px}.hero-box{min-height:510px;padding:20px 16px 28px;border-radius:24px;text-align:center}.tabs{display:flex;width:100%}.tabs button{min-width:0;flex:1}h1{margin-top:22px;font-size:31px}.lead{font-size:16px}.search{position:relative;display:block;padding:6px}.search label{padding:0 10px}.search input{min-height:48px;font-size:15px}.search button{width:100%;min-height:46px}.popular{justify-content:center}.popular span{display:none}.sell-cards{flex-direction:column;text-align:left}.cats{padding-top:28px}.cat{padding:14px}.cat-ico{width:60px;height:60px}.sec{padding-top:48px}.sec-head{align-items:start;flex-direction:column}.sec h2,.sec-head h2{font-size:28px}.why{grid-template-columns:1fr}.footer{padding:20px 12px}.footer-box{padding:0 20px}.footer-cols{grid-template-columns:1fr}.footer-about{grid-column:auto}.footer-bottom{flex-direction:column}.footer-bottom a{margin:0 16px 0 0}.detail-photo{min-height:260px}.detail-card{padding:22px}.detail-card h1{font-size:30px}}
@media(max-width:600px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo{height:130px}.card-title{font-size:15px}.price-now{font-size:18px}.btn-buy{width:100%;min-height:46px;padding:0 16px;justify-content:center;font-size:16px}.card-foot{align-items:stretch;flex-direction:column}.tag{padding:3px 7px;font-size:10px}.fav{top:14px;right:14px;width:34px;height:34px}.chips span{font-size:11px}.view-link{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.bob,.float-part{animation:none}}

/* Make the full listing card open its detail page while keeping card actions clickable. */
.card-link::after{content:"";position:absolute;z-index:1;inset:0;border-radius:22px;cursor:pointer}.card-link:focus-visible{outline:0}.card-link:focus-visible::after{outline:3px solid var(--brand);outline-offset:-3px}.card-foot,.view-link{position:relative;z-index:2}

/* Parts use direct seller contact; car cards retain the listing link. */
.card-foot.part-foot{align-items:stretch;flex-direction:column;gap:10px}.part-meta{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}.contact-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}.c-btn{display:inline-flex;min-height:46px;padding:0 10px;align-items:center;justify-content:center;gap:7px;border:0;border-radius:999px;font-family:inherit;font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .15s}.c-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.c-btn.c-chat{border:1px solid var(--buy);background:var(--buy);color:#fff;box-shadow:0 1px 2px rgba(14,17,22,.06)}.c-btn.c-chat:hover{border-color:#116632;background:#116632;color:#fff;box-shadow:0 5px 14px -8px rgba(21,128,61,.72)}.c-btn.c-chat:visited{color:#fff}.c-chat:active{box-shadow:none;transform:translateY(1px)}.c-call{border:1px solid var(--line-2);background:#fff;color:var(--ink);font-weight:600}.c-call:hover{border-color:#9aa1ab;background:var(--soft);color:var(--ink)}

/* Header actions: align to the right edge and keep the publish CTA explicit. */
.detail-header .header-actions,.sell-header .header-actions{margin-left:auto}
.detail-header .header-actions .btn-brand::before,.sell-header .header-actions .btn-brand::before{content:"+";margin-right:2px;font-size:18px;font-weight:600;line-height:1}
/* Compatibility for the standalone preview fixture. Django templates use the semantic classes above. */
.card>a:first-child{display:flex;flex:1;flex-direction:column;color:var(--ink);text-decoration:none}.seller{top:10px;left:10px;background:var(--ink);color:#fff}.seller.private{background:#fff;color:var(--ink)}.photos{display:inline-flex;bottom:10px;left:10px;align-items:center;gap:5px;background:rgba(14,17,22,.72);color:#fff}.tag.sale{right:10px;bottom:10px;background:var(--sale);color:#fff}.title{font-size:17px;font-weight:600;line-height:1.3}.sub{color:var(--muted);font-size:14px}.old{color:var(--muted);font-size:14px;text-decoration:line-through}.now{font-size:22px;font-weight:700}.sale-price{color:var(--sale)}
/* Photo-count badge, matched to the supplied visual reference. */
.header-actions .btn{font-weight:400}
.tag-photos{min-height:34px;padding:0 12px;gap:7px;border-radius:999px;background:rgba(47,49,54,.9);font-size:14px;font-weight:600;line-height:1}.tag-photos svg{width:15px;height:15px;flex:none}
/* Location label, matched to the supplied pin + city reference. */
.city{display:inline-flex;min-height:24px;align-items:center;gap:5px;color:#5b6370;font-size:14px;font-weight:400;line-height:1.4;white-space:nowrap}.city svg{width:14px;height:14px;flex:none;stroke:#5b6370}
/* No-image state for parts: preserve the supplied artwork without stretching it. */
.photo img.photo-placeholder{object-fit:contain}.photo img.part-placeholder{width:135px;height:72px}.photo img.car-placeholder{width:156px;height:63px}
@media(max-width:600px){.tag-photos{min-height:30px;padding:0 10px;gap:6px;font-size:13px}.tag-photos svg{width:14px;height:14px}}
/* Responsive listing grid: four columns on wide screens, three on tablets, two on mobile. */
.grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* The home mode switch also contains a real link to the dedicated selling page. */
.tabs>a{display:inline-flex;min-width:150px;min-height:48px;align-items:center;justify-content:center;border-radius:99px;color:#c9ced6;text-decoration:none;font-weight:600}.tabs>a[aria-selected=true]{background:#fff;color:var(--ink)}
@media(max-width:720px){.tabs>a{min-width:0;flex:1}}
/* Small listing cards need compact direct-contact controls. */
@media(max-width:600px){
  .contact-btns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}
  .contact-btns .c-btn{min-width:0;overflow:hidden;padding:0 7px;font-size:12px;gap:4px}
  .contact-btns .c-btn svg{width:15px;height:15px;flex:none}
}
@media(max-width:390px){
  .contact-btns .c-btn{padding:0 6px;font-size:11px}
  .contact-btns .c-btn svg{display:none}
}
.site-messages{position:fixed;z-index:60;top:82px;left:50%;width:min(620px,calc(100% - 32px));transform:translateX(-50%)}
.site-message{padding:12px 16px;border:1px solid #f5c48f;border-radius:12px;background:#fff8e8;color:#6d3b00;box-shadow:0 10px 30px rgba(14,17,22,.12);font-size:14px;text-align:center}
.site-message.success{border-color:#bfe3cb;background:#e7f5ec;color:#14532d}.site-message.error{border-color:#f3c9c9;background:#fdecec;color:#9b1c1c}

/* A stable, accessible replacement for missing or corrupt listing images. */
.listing-no-photo{display:flex;width:100%;height:100%;min-height:84px;align-items:center;justify-content:center;flex-direction:column;gap:7px;background:#eef0f2;color:#69717d;font-size:13px;font-weight:600;line-height:1.2;text-align:center}
.listing-no-photo svg{width:34px!important;height:34px!important;flex:none;fill:none!important;stroke:currentColor!important;stroke-width:1.5!important;stroke-linecap:round;stroke-linejoin:round}
.ld-photo-stage>.listing-no-photo,.detail-photo-stage>.listing-no-photo{min-height:360px;font-size:15px}
@media(max-width:720px){.ld-photo-stage>.listing-no-photo,.detail-photo-stage>.listing-no-photo{min-height:240px}}

/* The parts search has complete category filters in its sidebar. */
.parts-browser .tabs{display:none!important}

/* Compact, keyboard-accessible Bulgarian/Romanian language selector. */
.language-switcher{display:inline-flex;overflow:hidden;border:1px solid var(--line);border-radius:999px;background:#fff}
.language-switcher button{min-width:38px;min-height:36px;border:0;background:transparent;color:var(--muted);font:600 12px/1 Onest,system-ui,sans-serif;cursor:pointer}
.language-switcher button[aria-current=true]{background:var(--ink);color:#fff}
.language-switcher button:focus-visible{position:relative;outline:2px solid var(--brand);outline-offset:-2px}
@media(max-width:720px){.language-switcher button{min-width:34px;min-height:34px}}
