/* ===== ECO-SCORE SEARCH ===== */
.es-search-wrap{display:flex;gap:8px;max-width:600px;margin:0 auto 1.5rem}
.es-input{flex:1;padding:.85rem 1.2rem;border:2px solid var(--clr-border);border-radius:var(--radius);font-size:1rem;font-family:var(--ff-body);transition:border-color .2s}
.es-input:focus{outline:none;border-color:var(--clr-leaf)}
.es-btn{padding:.85rem 1.6rem;background:var(--clr-leaf);color:#fff;border:none;border-radius:var(--radius);font-size:1rem;font-weight:600;font-family:var(--ff-body);cursor:pointer;transition:background .2s;white-space:nowrap}
.es-btn:hover{background:var(--clr-leaf-dark)}
.es-status{text-align:center;margin-bottom:1rem}
.es-loading{color:var(--clr-text-muted)}
.es-empty,.es-error{color:#C62828}
.es-count{color:var(--clr-text-muted);font-size:.9rem}
.es-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-bottom:2rem}
.es-card{border:1px solid var(--clr-border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:border-color .2s}
.es-card:hover{border-color:var(--clr-leaf)}
.es-card-img{width:100%;height:160px;display:flex;align-items:center;justify-content:center;background:var(--clr-canvas);overflow:hidden}
.es-card-img img{max-height:160px;max-width:100%;object-fit:contain}
.es-card-body{padding:1rem;flex:1;display:flex;flex-direction:column;gap:.6rem}
.es-card-name{font-size:1rem;font-weight:700;line-height:1.3;margin:0}
.es-brand{font-weight:400;color:var(--clr-text-muted);font-size:.85rem}
.es-scores{display:flex;gap:8px;flex-wrap:wrap}
.es-score-badge{display:flex;align-items:center;gap:6px;padding:.3rem .7rem;border-radius:var(--radius);font-size:.82rem}
.es-score-letter{font-weight:700;font-size:1.2rem;line-height:1;min-width:22px;text-align:center}
.es-score-label{font-size:.75rem;color:rgba(0,0,0,.7)}
.es-eco-a{background:#1B5E20;color:#fff} .es-eco-a .es-score-label{color:rgba(255,255,255,.8)}
.es-eco-b{background:#43A047;color:#fff} .es-eco-b .es-score-label{color:rgba(255,255,255,.8)}
.es-eco-c{background:#F9A825;color:#212121}
.es-eco-d{background:#EF6C00;color:#fff} .es-eco-d .es-score-label{color:rgba(255,255,255,.8)}
.es-eco-e{background:#C62828;color:#fff} .es-eco-e .es-score-label{color:rgba(255,255,255,.8)}
.es-eco-na{background:var(--clr-canvas);color:var(--clr-text-muted)}
.es-nutri-a{background:#1B5E20;color:#fff} .es-nutri-a .es-score-label{color:rgba(255,255,255,.8)}
.es-nutri-b{background:#43A047;color:#fff} .es-nutri-b .es-score-label{color:rgba(255,255,255,.8)}
.es-nutri-c{background:#F9A825;color:#212121}
.es-nutri-d{background:#EF6C00;color:#fff} .es-nutri-d .es-score-label{color:rgba(255,255,255,.8)}
.es-nutri-e{background:#C62828;color:#fff} .es-nutri-e .es-score-label{color:rgba(255,255,255,.8)}
.es-details{display:flex;flex-direction:column;gap:4px;font-size:.82rem;color:var(--clr-text-muted)}
.es-detail-item strong{color:var(--clr-text)}
.es-info{max-width:600px;margin:0 auto;text-align:center;padding:2rem 0}
.es-info h3{margin-bottom:.6rem;font-size:1.1rem}
.es-info p{font-size:.9rem;color:var(--clr-text-muted);margin-bottom:1rem}
.es-grades-row{display:flex;gap:6px;justify-content:center;margin-bottom:1rem}
.es-grade{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-weight:700;font-size:1.2rem;color:#fff}
.es-grade-a{background:#1B5E20}
.es-grade-b{background:#43A047}
.es-grade-c{background:#F9A825;color:#212121}
.es-grade-d{background:#EF6C00}
.es-grade-e{background:#C62828}
.es-credit{font-size:.8rem}
.es-credit a{color:var(--clr-leaf)}

/* ===== ENERGY COMPARE ===== */
.ec-filters{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:1rem}
.ec-filter-btn{border:1px solid var(--clr-border);background:var(--clr-surface);padding:.4rem 1rem;border-radius:20px;cursor:pointer;font-size:.85rem;font-family:var(--ff-body);transition:background .2s,color .2s}
.ec-filter-btn.ec-active,.ec-filter-btn:hover{background:var(--clr-leaf);color:#fff;border-color:var(--clr-leaf)}
.ec-updated{text-align:center;font-size:.78rem;color:var(--clr-text-muted);margin-bottom:1.2rem}
.ec-table-wrap{overflow-x:auto;margin-bottom:2rem}
.ec-table{width:100%;border-collapse:collapse;min-width:700px}
.ec-table th{background:var(--clr-canvas);padding:.7rem .6rem;text-align:left;font-size:.82rem;font-weight:700;border-bottom:2px solid var(--clr-border);white-space:nowrap;user-select:none}
.ec-table th[data-sort]:hover{color:var(--clr-leaf)}
.ec-sort-asc::after{content:' ▲';font-size:.65rem}
.ec-sort-desc::after{content:' ▼';font-size:.65rem}
.ec-table td{padding:.7rem .6rem;border-bottom:1px solid var(--clr-border);font-size:.88rem;vertical-align:middle}
.ec-table tr:hover{background:var(--clr-canvas)}
.ec-type{font-size:.75rem;color:var(--clr-text-muted)}
.ec-price{font-weight:700;color:var(--clr-leaf-dark);white-space:nowrap}
.ec-renew-bar{display:inline-block;width:80px;height:8px;background:var(--clr-canvas);border-radius:4px;overflow:hidden;vertical-align:middle;margin-right:6px}
.ec-renew-fill{height:100%;border-radius:4px}
.ec-full-renew{background:var(--clr-leaf)}
.ec-high-renew{background:#7CB342}
.ec-low-renew{background:#FFA726}
.ec-renew-num{font-weight:600;font-size:.82rem}
.ec-star{font-size:.85rem;line-height:1}
.ec-star-full{color:var(--clr-bolt)}
.ec-star-half{color:var(--clr-bolt);opacity:.5}
.ec-star-empty{color:var(--clr-border)}
.ec-rating-num{font-size:.78rem;color:var(--clr-text-muted)}
.ec-cert-yes{color:var(--clr-leaf);font-weight:600;font-size:.82rem}
.ec-cert-no{color:var(--clr-text-muted)}
.ec-empty{text-align:center;color:var(--clr-text-muted);padding:1rem}
.ec-legend{margin-top:1.5rem;font-size:.82rem;color:var(--clr-text-muted)}
.ec-legend p{display:flex;align-items:center;gap:6px;margin-bottom:.4rem}
.ec-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}
.ec-dot-green{background:var(--clr-leaf)}
.ec-dot-yellow{background:var(--clr-bolt)}

/* Mobile cards (hidden on desktop, shown on mobile) */
.ec-cards{display:none}
.ec-mcard{border:1px solid var(--clr-border);border-radius:var(--radius);margin-bottom:12px;overflow:hidden}
.ec-mcard-head{padding:.8rem 1rem;background:var(--clr-canvas)}
.ec-mcard-head h4{margin:0;font-size:1rem}
.ec-mcard-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--clr-border)}
.ec-mcard-item{background:var(--clr-surface);padding:.6rem .8rem}
.ec-mcard-label{display:block;font-size:.72rem;color:var(--clr-text-muted);text-transform:uppercase;letter-spacing:.3px;margin-bottom:.1rem}
.ec-mcard-val{font-size:.9rem;font-weight:600}
.ec-mcard-note{padding:.6rem 1rem;font-size:.8rem;color:var(--clr-text-muted);margin:0;border-top:1px solid var(--clr-border)}

@media(max-width:768px){
  .ec-table-wrap{display:none}
  .ec-cards{display:block}
  .es-search-wrap{flex-direction:column}
  .es-results{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .es-results{grid-template-columns:1fr}
}
