/* Ruijie catalog – chỉ style mới; dùng lại biến và lớp của site.css */
section.ez-sec{padding:28px 0}
.ez-hero{background:var(--navy);color:#fff;padding:36px 0 40px}
.ez-hero h1{color:#fff;font-size:clamp(1.55rem,4.5vw,2.3rem);margin:0 0 10px;overflow-wrap:anywhere}
.ez-hero p{color:#cbd9ea;max-width:760px;margin:0 0 8px}
.ez-hero .pill{display:inline-block;margin:0 6px 6px 0}
.ez-counts{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.ez-counts li{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:4px 14px;font-size:.88rem;color:#fff}

/* Công cụ tìm kiếm / lọc (tạo bằng JS) */
.ez-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0 0 20px;padding:16px;background:var(--bg);border:1px solid var(--line);border-radius:var(--r)}
.ez-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.ez-field label{font-weight:600;color:var(--navy);font-size:.92rem}
.ez-field input,.ez-field select{width:100%;min-height:44px;padding:8px 12px;border:1px solid #94a3b8;border-radius:10px;background:#fff;color:var(--ink);font-size:1rem}
.ez-search{display:flex;flex-wrap:wrap;gap:8px}
.ez-search input{flex:1 1 180px;min-width:0}
.ez-clear{min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--navy);font-weight:600;cursor:pointer}
.ez-clear:hover{border-color:var(--red);color:var(--red)}
.ez-clear[hidden]{display:none}
.ez-status{grid-column:1/-1;margin:0;color:var(--navy);font-weight:600;font-size:.94rem}
.ez-empty{padding:24px;border:1px dashed #94a3b8;border-radius:var(--r);background:#fff;color:var(--navy);margin:0 0 20px}
.ez-empty[hidden]{display:none}
.ez-more{display:flex;justify-content:center;margin:26px 0 0}
.ez-more[hidden]{display:none}

/* Thẻ sản phẩm */
.ez-card[hidden]{display:none!important}
.ez-card h3{font-size:1.08rem;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}
.ez-card h3 a{color:var(--navy);text-decoration:none}
.ez-card h3 a:hover,.ez-card h3 a:focus-visible{color:var(--red);text-decoration:underline}
.ez-card .pill{align-self:flex-start;margin-bottom:8px;overflow-wrap:anywhere}
.ez-card .hl li b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ez-price{margin:0 0 12px;color:var(--muted);font-size:.93rem}
.ez-price strong{color:var(--navy)}
.ez-missing{margin:0 0 12px;padding:8px 12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;color:#7c2d12;font-size:.88rem}
.ez-noimg{display:grid;place-items:center;aspect-ratio:8/5;background:var(--bg);color:var(--muted);font-size:.88rem;text-align:center;padding:12px}
.ez-card .product-actions{margin-top:auto}

/* Phân biệt "Thông số chi tiết" / "Thông tin cơ bản" */
.hk-badge{display:inline-block;align-self:flex-start;margin:0 6px 8px 0;padding:3px 10px;border-radius:999px;font-size:.82rem;font-weight:700;line-height:1.4;border:1px solid transparent}
.hk-badge-detail{background:#ecfdf5;border-color:#6ee7b7;color:#065f46}
.hk-badge-basic{background:#fff7ed;border-color:#fdba74;color:#7c2d12}
.ez-hero .pill+.hk-badge{margin-left:2px}
.ez-counts .hk-chip-detail{background:#ecfdf5;border-color:#6ee7b7;color:#065f46}
.ez-counts .hk-chip-basic{background:#fff7ed;border-color:#fdba74;color:#7c2d12}
.hk-badge-none{background:#f1f5f9;border-color:#94a3b8;color:#334155}
.tl-eol{background:#fef2f2;border-color:#fca5a5;color:#991b1b}
.tl-eol-note{background:#fef2f2;border:1px solid #fecaca;color:#7f1d1d}
.tl-badges{display:flex;flex-wrap:wrap;gap:0 4px}
.tl-brief{margin:0 0 10px;color:var(--ink);font-size:.93rem;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ez-check{flex-direction:row;align-items:center;gap:10px}
.ez-check input{width:22px;min-height:22px;height:22px;flex:0 0 auto}
.ez-check label{font-weight:500}
.pimg img{width:100%;height:auto;aspect-ratio:8/5;object-fit:contain;background:#fff}
.ez-specs th{overflow-wrap:anywhere}
.ez-specs td{overflow-wrap:anywhere}
.hk-note{margin:0 0 12px;padding:8px 12px;border-radius:8px;font-size:.88rem;line-height:1.5;overflow-wrap:anywhere}
.hk-note-detail{background:#ecfdf5;border:1px solid #a7f3d0;color:#064e3b}
.hk-note-basic{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12}
.ez-card .hk-note{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.hk-variant{margin:0 0 12px;font-size:.88rem;color:var(--navy);overflow-wrap:anywhere}
.ez-sec .hk-variant{padding:8px 12px;background:var(--bg);border:1px solid var(--line);border-radius:8px}
.ez-card-spacer{flex:1 1 auto}

/* Trang chi tiết */
.ez-detail{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;padding:28px 0 8px}
.ez-detail .pimg{margin:0}
.ez-detail .pimg img{aspect-ratio:8/5}
.ez-summary h2{margin-top:0}
.ez-summary p{color:var(--ink);margin:0 0 12px}
.ez-pricebox{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;margin:16px 0}
.ez-pricebox .ez-bigprice{font-size:1.2rem;font-weight:800;color:var(--navy);margin:0 0 8px}
.ez-pricebox ul{margin:0 0 0 20px}
.ez-pricebox li{margin:4px 0;font-size:.93rem;color:var(--ink)}
.ez-spec-note{color:var(--muted);font-size:.9rem;margin:0 0 14px}
.ez-specs{margin:0 0 22px}
.ez-specs td{white-space:pre-line}
.ez-specs caption{font-size:1rem}
.ez-related{list-style:none;margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.ez-related .card{padding:16px;height:100%}
.ez-related a{font-weight:700;color:var(--navy);overflow-wrap:anywhere;display:inline-block;min-height:44px;padding:6px 0;text-decoration:none}
.ez-related a:hover,.ez-related a:focus-visible{color:var(--red);text-decoration:underline}
.ez-related .pill{display:inline-block;margin-top:4px}
.ez-back{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.ez-btns{margin:14px 0 0}

@media(min-width:640px){
 .ez-tools{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
 .ez-related{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:900px){
 .ez-detail{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:36px}
}
@media(max-width:380px){
 .ez-tools{padding:12px}
 .ez-btns .btn,.ez-card .product-actions .btn{width:100%}
}
