/* category page */
/* ── Category Hero ── */
.cat-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    padding: 28px 24px 22px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
.cat-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(5,150,105,.1) 0%, transparent 70%);
    pointer-events: none;
}
.cat-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -30px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 70%);
    pointer-events: none;
}
.cat-hero-icon {
    font-size: 38px;
    line-height: 1;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.8);
    border-radius: 16px;
    border: 1px solid #a7f3d0;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(5,150,105,.12);
}
.cat-hero-body { flex: 1; min-width: 0; }
.cat-hero-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #000;
    letter-spacing: -.4px;
    line-height: 1.15;
}
.cat-hero-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin: 0 0 14px;
}
.cat-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #555;
    flex-wrap: wrap;
}
.cat-hero-count {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.85);
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: bold;
    font-size: 12px;
}
.cat-hero-sep { color: #d1d5db; }

/* ── Search bar ── */
.cat-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 6px 6px 14px;
    margin-bottom: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.cat-search-form:focus-within {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
.cat-search-ico { flex-shrink: 0; color: #9ca3af; }
.cat-search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #000;
    background: transparent;
    font-family: inherit;
}
.cat-search-form input::placeholder { color: #9ca3af; }
.cat-search-clear {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .12s;
}
.cat-search-clear:hover { color: #000; }
.cat-search-btn {
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .12s;
}
.cat-search-btn:hover { background: #047857; }

/* ── Responsive ── */
@media (max-width: 680px) {
    .cat-hero { flex-direction: column; gap: 12px; }
    .cat-hero-icon { width: 56px; height: 56px; font-size: 30px; }
    .cat-hero-title { font-size: 20px; }
}
