/* ThanhtuLab category search + pagination UI. Loaded with filemtime cache-busting. */
.category-page-top{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0 0 24px;min-width:0}
.category-page-heading{padding:14px 0 4px;margin:0}
.category-page-heading h1{overflow-wrap:anywhere;margin:7px 0 7px;font-size:clamp(27px,3vw,34px);line-height:1.25;letter-spacing:-.8px;color:#1e2922}
.category-page-heading p{max-width:820px;margin:0;color:#6d7870;font-size:13px;line-height:1.75}
.category-search-panel{display:block;min-width:0;margin:8px 0 0;padding:22px 24px 17px;border:1px solid #e0e9e1;border-radius:18px;background:linear-gradient(135deg,#f8fcf8 0%,#fff 60%,#fff8f7 100%);box-shadow:0 10px 28px rgba(30,55,37,.055)}
.category-search-head{display:flex;align-items:center;gap:13px;margin:0 0 17px;min-width:0}
.category-search-head-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:1px solid #f5dcda;border-radius:14px;background:#fff0ef;color:#d92f32;font-size:27px;line-height:1;font-weight:700}
.category-search-head-copy{min-width:0}
.category-search-head-copy h2{margin:0 0 4px;color:#1e2922;font-size:16px;font-weight:800;line-height:1.45;letter-spacing:-.25px}
.category-search-head-copy p{margin:0;color:#748077;font-size:12px;line-height:1.65}
.category-search-form{position:relative;display:flex;align-items:stretch;gap:10px;width:100%;max-width:none;min-width:0;margin:0}
.category-search-form label.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.category-search-form input[type=search]{display:block;flex:1 1 360px;width:100%;min-width:0;height:48px;margin:0;padding:11px 15px 11px 44px;border:1px solid #d8e4da;border-radius:12px;background:#fff;color:#1e2922;font-family:inherit;font-size:13px;line-height:1.4;box-shadow:0 2px 5px rgba(24,55,31,.025);appearance:none}
.category-search-form input[type=search]::-webkit-search-cancel-button{cursor:pointer}
.category-search-form input[type=search]::placeholder{color:#9aa69d;opacity:1}
.category-search-form input[type=search]:focus{outline:none;border-color:#6fb487;box-shadow:0 0 0 4px rgba(35,131,75,.11)}
.category-search-icon{position:absolute;left:15px;top:50%;z-index:1;display:block;transform:translateY(-51%);color:#7e9182;font-size:25px;line-height:1;pointer-events:none}
.category-search-submit{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-width:126px;min-height:48px;padding:11px 18px;border:1px solid #d92f32;border-radius:12px;background:linear-gradient(135deg,#e6383c,#c9232c);color:#fff;font-family:inherit;font-size:13px;font-weight:800;line-height:1.2;white-space:nowrap;box-shadow:0 7px 16px rgba(217,47,50,.15);transition:background .16s ease,transform .16s ease,box-shadow .16s ease}
.category-search-submit:hover{background:linear-gradient(135deg,#d92f32,#b92029);box-shadow:0 9px 20px rgba(217,47,50,.2);transform:translateY(-1px)}
.category-search-submit:focus-visible,.category-search-clear:focus-visible,.category-page-link:focus-visible{outline:3px solid rgba(35,131,75,.28);outline-offset:3px}
.category-search-clear{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:48px;padding:10px 14px;border:1px solid #dce7de;border-radius:12px;background:#fff;color:#53665a;font-size:12px;font-weight:750;line-height:1.2;white-space:nowrap;text-decoration:none;transition:background .16s ease,border-color .16s ease,color .16s ease}
.category-search-clear:hover{background:#f1faf3;border-color:#b8d9c0;color:#1b753d}
.category-results-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding-top:13px;border-top:1px solid #e8eee8;min-width:0}
.category-results-row p{margin:0;min-width:0;color:#6d7b71;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.category-results-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:29px;padding:5px 10px;border:1px solid #dceee0;border-radius:999px;background:#eef8f0;color:#217b43;font-size:11px;font-weight:800;white-space:nowrap}
.category-post-grid{align-items:stretch}
.category-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;max-width:100%;margin:30px 0 0;padding:15px 16px;border:1px solid #e4ece5;border-radius:16px;background:#fbfdfb;box-shadow:0 5px 18px rgba(30,55,37,.035)}
.category-page-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:42px;min-height:42px;padding:0 13px;border:1px solid #dce7de;border-radius:11px;background:#fff;color:#34483a;text-decoration:none;font-size:13px;font-weight:800;line-height:1.2;white-space:nowrap;box-shadow:0 2px 7px rgba(24,55,31,.025);transition:background .16s,border-color .16s,color .16s,transform .16s}
a.category-page-link:hover{background:#f1faf3;border-color:#b8d9c0;color:#1b753d;transform:translateY(-1px)}
.category-page-link.is-current{border-color:#23834b;background:linear-gradient(135deg,#268c50,#1d7541);color:#fff;box-shadow:0 6px 15px rgba(35,131,75,.2)}
.category-page-link.is-disabled{background:#f3f6f3;color:#a4aea6;box-shadow:none;border-color:#e4eae5;cursor:not-allowed}
.category-page-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:18px;color:#849188;font-weight:800}
.category-pagination-summary{margin:12px 0 0;text-align:center;color:#7a877d;font-size:12px;line-height:1.7}
.category-empty-state{margin-top:18px}
@media(max-width:640px){
 .category-page-top{gap:8px;margin-bottom:19px}
 .category-page-heading{padding:10px 0 5px}
 .category-page-heading h1{font-size:clamp(25px,7vw,30px);letter-spacing:-.65px}
 .category-page-heading p{font-size:12px}
 .category-search-panel{margin-top:5px;padding:16px 14px 13px;border-radius:15px}
 .category-search-head{gap:10px;margin-bottom:13px}
 .category-search-head-icon{flex-basis:40px;width:40px;height:40px;border-radius:12px;font-size:24px}
 .category-search-head-copy h2{font-size:14px}
 .category-search-head-copy p{font-size:11px;line-height:1.55}
 .category-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .category-search-form input[type=search]{grid-column:1/-1;grid-row:1;height:45px;flex:auto;padding-left:42px;font-size:13px}
 .category-search-icon{top:22px;transform:none;left:14px}
 .category-search-submit{grid-column:1;grid-row:2;width:100%;min-width:0;min-height:42px;padding:9px 11px;font-size:12px}
 .category-search-clear{grid-column:2;grid-row:2;min-height:42px;padding:8px 11px;font-size:11px}
 .category-results-row{align-items:center;gap:9px;margin-top:11px;padding-top:10px}
 .category-results-row p{font-size:10px}
 .category-results-count{min-height:26px;padding:4px 8px;font-size:10px}
 .category-pagination{gap:6px;margin-top:22px;padding:12px 8px;border-radius:13px}
 .category-page-link{min-width:36px;min-height:38px;padding:0 9px;border-radius:10px;font-size:12px}
 .category-page-prev,.category-page-next{padding:0 10px}
 .category-pagination-summary{font-size:11px;margin-top:10px}
}
@media(max-width:390px){
 .category-results-row{align-items:flex-start;flex-direction:column;gap:7px}
 .category-pagination{gap:5px;padding:10px 5px}
 .category-page-link{min-width:32px;min-height:36px;padding:0 7px;font-size:11px}
 .category-page-prev,.category-page-next{padding:0 8px}
}
@media(prefers-reduced-motion:reduce){.category-search-submit,.category-search-clear,.category-page-link{transition:none}}
