:root{
  --brand:#0a74da;
  --brand-weak:#eaf3ff;
  --surface:#fff;
  --line:#e5e7eb;
  --muted:#6b7280;
  --row:#f8fafc;
  --chip:#f1f5f9;
}

.wrap{max-width:1200px;margin:0 auto;padding:24px 16px 96px}
.search-box-wrapper{margin:0 0 16px}
#searchModel{width:100%}
.select2-container .select2-selection--single{height:44px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#fff}
.select2-selection__rendered{line-height:42px!important;padding-left:14px!important}
.select2-selection__arrow{height:42px!important}

.layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}
.filters{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;position:sticky;top:82px;max-height:calc(100vh - 100px);overflow:auto}
.filters h3{margin:0 0 16px;font-size:18px;color:#111827}
.filter{margin-bottom:16px}
.filter>label{display:block;margin-bottom:7px;font-size:13px;font-weight:700;color:#4b5563}
.filter input,.filter select{width:100%;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#111827}
.filter .row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.brand-search-input{margin-bottom:8px}
.checkbox-group{display:grid;gap:7px;max-height:220px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fafafa}
.checkbox-row{display:flex;align-items:center;gap:8px;color:#4b5563;cursor:pointer}
.checkbox-row input{width:auto;margin:0}
.filter-submit{width:100%;padding:11px 14px;border:0;border-radius:10px;background:var(--brand);color:#fff;font-weight:800;cursor:pointer}
.filter-submit:hover{filter:brightness(.95)}
.filter-toggle{display:none;width:100%;margin-bottom:12px;padding:11px 14px;border:0;border-radius:10px;background:var(--brand);color:#fff;font-weight:800;cursor:pointer}
.scroll-hint{display:none}

.list{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.list .thead,.list .row{display:grid;grid-template-columns:minmax(430px,2.25fr) 120px 92px 110px 120px 82px;align-items:center}
.list .thead{background:#f8fafc;border-bottom:1px solid var(--line);font-weight:700;color:#4b5563}
.list .thead>div,.list .cell{padding:14px 12px}
.list .row{border-bottom:1px solid var(--line)}
.list .row:last-of-type{border-bottom:0}
.list .row:nth-child(even){background:#fbfdff}
.thead-score{text-align:center}
.namecell{display:flex;align-items:center;gap:14px;min-width:0}
.namecell .thumb{position:relative;flex:0 0 126px;width:126px;height:92px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.namecell .thumb img{width:100%;height:100%;object-fit:contain}
.meta{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start}
.meta .title{display:block;font-weight:800;font-size:15px;line-height:1.35;color:#111827;white-space:normal;overflow-wrap:break-word;word-break:normal}
.price{font-weight:700;white-space:nowrap}
.chip{display:inline-flex;align-items:center;padding:6px 9px;border-radius:8px;background:var(--chip);font-size:12px;font-weight:700;white-space:nowrap}
.scorewrap{display:flex;justify-content:center}
.score{--p:0;width:64px;height:64px;border-radius:50%;background:conic-gradient(var(--brand) calc(var(--p)*1%),var(--brand-weak) 0);display:flex;align-items:center;justify-content:center}
.score span{width:48px;height:48px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}
.score-badge{display:none}
.compare-btn{border:1px solid #cfe3ff;background:#fff;color:var(--brand);border-radius:9px;padding:8px 10px;font-weight:800;cursor:pointer;white-space:nowrap;max-width:100%}
.meta .compare-btn{margin-top:10px;margin-left:0}
.compare-btn:hover,.compare-btn.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.compare-icon{display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;border-radius:50%;background:var(--brand);color:#fff;margin-right:4px}
.compare-btn:hover .compare-icon,.compare-btn.active .compare-icon{background:#fff;color:var(--brand)}
.empty-state{grid-column:1/-1;padding:28px!important;text-align:center;color:var(--muted)}
.pager{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:16px;border-top:1px solid var(--line)}
.pager a,.pager span{min-width:36px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:center;background:#fff}
.pager .active{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:800}
.seo-content{margin-top:28px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:16px}
.seo-content h2,.seo-content h3{color:#111827}.seo-content p,.seo-content li{color:#4b5563}

.compare-bar{position:fixed;left:0;right:0;bottom:0;z-index:1100;display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--brand);color:#fff;box-shadow:0 -4px 18px rgba(15,23,42,.18)}
.compare-items{display:flex;gap:7px;flex:1;min-width:0;overflow:auto}
.compare-thumb{display:inline-flex;flex:0 0 auto;width:46px;height:54px;padding:3px;border:1px solid rgba(255,255,255,.7);border-radius:8px;background:#fff}
.compare-thumb img{width:100%;height:100%;object-fit:contain}
.compare-bar>#compare-btn,.compare-clear{border:0;border-radius:9px;padding:9px 13px;font-weight:800;cursor:pointer}
.compare-bar>#compare-btn{background:#fff;color:var(--brand)}
.compare-bar>#compare-btn:disabled{opacity:.55;cursor:not-allowed}
.compare-clear{background:#1f2937;color:#fff}

@media(max-width:980px){
  .wrap{padding-top:16px}
  .layout{grid-template-columns:1fr}
  .filter-toggle{display:block}
  .filters{display:none;position:static;max-height:none}
  .filters.open{display:block}
  .scroll-hint{display:flex;justify-content:center;padding:9px 12px;border-radius:10px;background:var(--brand-weak);color:var(--brand);font-weight:800}
  .list{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .list .thead,.list .row{min-width:960px}
}

@media(max-width:640px){
  .wrap{padding-left:10px;padding-right:10px}
  .compare-bar{padding:8px 10px}
  .compare-title{display:none}
  .compare-bar>#compare-btn,.compare-clear{padding:8px 10px;font-size:12px}
}
