@import url('/gallery-fix.css?v=1');
html,body{width:100%;max-width:100%;overflow-x:hidden}body{min-width:0}main,.nav,.hero,.section,.footer{width:100%;max-width:100%;overflow-x:hidden}.wrap{max-width:1180px}

/* marketplace polish */
.marketCard{background:#111216;border:1px solid #ffffff12;border-radius:16px;overflow:hidden;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.marketCard:hover{transform:translateY(-2px);border-color:#ffffff22;box-shadow:0 14px 36px #0005}.cardThumb{height:225px;position:relative;background:#0f1014}.cardThumb img{object-fit:cover}.cardin{padding:14px 15px 16px}.cardMeta{font-size:12px;color:#7b808a;margin-bottom:8px}.marketCard .title{font-size:16px;line-height:1.35;margin:0 0 16px;min-height:43px}.cardBottom{display:flex;align-items:end;justify-content:space-between;gap:12px}.marketCard .price{font-size:20px}.marketCard .loc{float:none}.photoCount,.soldBadge{position:absolute;top:10px;border:1px solid #ffffff20;background:#0b0b0dcc;backdrop-filter:blur(8px);border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800}.photoCount{right:10px}.soldBadge{left:10px;color:#fff;background:#e10600dd}
.fieldHint{color:#71717a;font-size:12px;font-weight:400}.detailGallery{margin:-24px -24px 24px}.detailHero{height:420px;background:#0b0b0d;display:grid;place-items:center;overflow:hidden;border-radius:20px 20px 0 0}.detailHero img{width:100%;height:100%;object-fit:contain;background:#0b0b0d}.detailHero.noImage{font-size:80px}.detailThumbs{display:flex;gap:8px;padding:10px 12px;background:#0e0f12;overflow-x:auto}.detailThumb{width:78px;height:58px;flex:0 0 auto;border:1px solid transparent;border-radius:9px;padding:0;overflow:hidden;background:#17181c;cursor:pointer}.detailThumb.active{border-color:#e10600}.detailThumb img{width:100%;height:100%;object-fit:cover}.detailInfo{padding-top:2px}.detailTop{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.detailTop h2{font-size:28px;line-height:1.2;margin:7px 0 0}.detailPrice{font-size:28px;font-weight:900;white-space:nowrap}.detailFacts{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.detailFacts span{background:#ffffff08;border:1px solid #ffffff10;border-radius:999px;padding:8px 10px;color:#aeb1b8;font-size:12px}.detailDescription{color:#d1d3d8;line-height:1.65;white-space:normal;border-top:1px solid #ffffff10;padding-top:18px;margin-top:4px}

@media(max-width:560px){
  .wrap{width:100%;max-width:none;margin:0;padding-left:16px;padding-right:16px}
  .navin,.heroGrid,.head,.topActions,.filters,.panel,.cats,.grid,.footer .wrap{min-width:0;max-width:100%}
  .navin{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .brand{min-width:0;font-size:17px;overflow:hidden;text-overflow:ellipsis}
  .links{display:flex;flex:0 0 auto;gap:6px;margin-left:0}
  .links .btn{white-space:nowrap}
  .heroGrid{grid-template-columns:1fr;width:100%}
  .hero h1{max-width:100%;font-size:30px;overflow-wrap:anywhere}
  .hero p{max-width:100%}
  .search{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}
  .search input{width:100%;min-width:0}
  .search button{white-space:nowrap}
  .panel{width:100%;max-width:100%}
  .cats{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;overflow:visible}
  .cat{min-width:0;width:100%;padding:11px}
  .cat b{font-size:13px;line-height:1.25}
  .cat small{font-size:10px;line-height:1.25}
  .section .wrap{width:100%}
  .head,.topActions,.filters{width:100%}
  .topActions{grid-template-columns:1fr 1fr}
  .topActions #sellBtn{grid-column:1/-1}
  .filters{grid-template-columns:1fr 1fr}
  .filters input{grid-column:1/-1}
  .filters select{min-width:0;width:100%}
  .filters select:last-child{grid-column:1/-1}
  .grid{grid-template-columns:1fr;width:100%}
  .card,.empty{width:100%;max-width:100%}
  .footer{width:100%}
  .modalBox,.modalBox.wide{max-width:100vw}
  .cardThumb{height:220px}.marketCard .title{min-height:auto;font-size:17px}.detailGallery{margin:-20px -16px 20px}.detailHero{height:300px;border-radius:20px 20px 0 0}.detailTop{display:block}.detailTop h2{font-size:24px;padding-right:36px}.detailPrice{font-size:24px;margin-top:12px}.detailFacts{gap:6px}.detailFacts span{font-size:11px;padding:7px 9px}
}