.admin-product-filters{display:flex;flex-wrap:wrap;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line);background:#fbfcfa}
.admin-product-filters label{display:grid;min-width:180px;gap:5px;color:var(--green-dark);font-size:.76rem;font-weight:700}
.admin-product-filters select{min-height:39px}
.category-manager-body{display:grid;gap:22px;padding:22px}
.category-create{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.category-create label,.category-group-head label{display:grid;flex:1;min-width:180px;gap:6px;color:var(--green-dark);font-size:.78rem;font-weight:700}
.category-group-list{display:grid;gap:17px}
.category-list-heading,.category-child-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.category-list-heading{margin-bottom:-8px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.category-list-heading h3,.category-child-heading h4{margin:0;color:var(--green-dark);font-size:.92rem;font-weight:700}
.category-list-heading span,.category-child-heading span{color:var(--muted);font-size:.76rem}
.category-child-heading{margin-top:20px}
.category-group-card{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fbf9f6}
.category-group-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.category-group-title{flex:1;min-width:180px}
.category-group-title span{display:block;margin-bottom:4px;color:var(--muted);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.category-group-title h3{margin:0;color:var(--green-dark);font:500 1.45rem "Fraunces",Georgia,serif}
.category-rename{position:relative}
.category-rename summary{padding:9px 14px;border:1px solid var(--green);border-radius:999px;color:var(--green-dark);font-size:.78rem;font-weight:700;cursor:pointer;list-style:none}
.category-rename summary::-webkit-details-marker{display:none}
.category-rename[open] summary{background:#e8efe9}
.category-rename>div{position:absolute;z-index:5;top:calc(100% + 8px);right:0;display:flex;gap:8px;width:min(360px,calc(100vw - 60px));padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 28px rgba(23,51,40,.14)}
.category-rename .field{min-width:0}
.category-delete{padding:8px;color:#8b3934}
.category-child-list{display:grid;gap:8px;margin:10px 0 18px;padding-left:15px;border-left:2px solid #c6d6c7}
.category-child-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,220px) auto auto;align-items:center;gap:8px}
.category-child-row .field{min-width:0}
.product-category-choices{display:grid;gap:8px;width:100%}
.product-category-group{border:1px solid var(--line);border-radius:10px;background:#fff}
.product-category-group summary{display:flex;justify-content:space-between;gap:10px;padding:11px 13px;color:var(--green-dark);font-size:.85rem;font-weight:700;cursor:pointer;list-style:none}
.product-category-group summary::-webkit-details-marker{display:none}
.product-category-group summary::before{content:"▸";margin-right:5px}
.product-category-group[open] summary::before{content:"▾"}
.product-category-group summary span{margin-left:auto;color:var(--muted);font-size:.75rem;font-weight:500}
.product-category-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;border-top:1px solid var(--line)}
.product-category-group label{display:flex;align-items:center;gap:8px;font-size:.82rem;font-weight:500}
.product-category-group input{accent-color:var(--green)}
@media(max-width:700px){.category-manager-body{padding:16px}.category-child-row{grid-template-columns:1fr 1fr}.category-child-row .field:first-child{grid-column:1/-1}.category-child-row .category-delete{justify-self:start}.product-category-group>div{grid-template-columns:1fr}}
