/* Product placements and category management. All assets are served locally. */
.category-manager-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
.category-manager-toolbar p{color:var(--muted);margin:0}
.category-workspace{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:22px;align-items:start}
.category-workspace>.panel{margin:0;min-width:0;padding:24px}
.category-editor{border-top:3px solid var(--red)}
.category-editor-heading h2,.category-library-heading h2{font-size:24px;margin:6px 0 20px}
.category-editor-form{display:grid;gap:16px}
.category-editor-form label,.category-filters label{margin:0}
.category-editor-form .check-label{align-items:center;padding:10px 0}
.category-editor-form .check-label input{margin:0;flex-shrink:0}
.category-editor-form input,.category-editor-form select,.category-editor-form textarea{font-size:14px}
.category-editor-form input[type=file]{padding:8px;font-size:12px}
.category-editor-form>.wide .button{width:100%}
.field-hint{color:var(--muted);font-size:13px;line-height:1.55;margin:0}
.category-advanced{border-top:1px solid var(--line);padding-top:16px}
.category-advanced summary{font-weight:600;font-size:13px;line-height:1.5;color:var(--primary)}
.category-advanced[open] summary{margin-bottom:16px}
.category-advanced label{margin:16px 0}
.category-current-image{object-fit:contain;background:#f4f5f7;border:1px solid var(--line);border-radius:8px}
.category-cancel{display:block;text-align:center;padding:12px;color:var(--muted);text-decoration:underline;font-size:14px}
.category-editor>.field-hint{margin-top:18px}
.category-library-heading{margin-bottom:20px}
.category-library-heading h2{margin-bottom:6px}
.category-library-heading p{font-size:13px;color:var(--muted);margin:0}
.category-filters{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:12px;margin-bottom:14px}
.category-filters input,.category-filters select{font-size:14px;padding:10px 12px}
.category-list-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px;padding:6px 0 14px}
.category-list-meta>span:first-child{font-weight:700;color:var(--ink)}
.category-list-meta [data-category-visible-count]:empty{display:none}
.category-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:8px}
.category-manager-table{font-size:13px;min-width:600px}
.category-manager-table th{background:#f5f6f8;color:var(--muted);text-align:left;font-size:11px;letter-spacing:.03em;font-weight:600;padding:12px}
.category-manager-table td{padding:14px 12px;border-top:1px solid var(--line);vertical-align:middle}
.category-manager-table th:first-child{width:40%}
.category-manager-table tr:hover td{background:#fafbfc}
.category-row-name{display:flex;align-items:center;gap:10px;padding-left:calc(var(--category-depth,0) * 12px);min-width:160px}
.category-row-name>img,.category-folder{width:32px;height:32px;flex-shrink:0;border-radius:6px;background:#f1f3f7;object-fit:contain}
.category-folder{display:grid;place-items:center;color:#5a6b86}
.category-row-name a{font-weight:600;display:block;line-height:1.4;overflow-wrap:anywhere}
.category-row-name small{display:block;font-size:11px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.category-state{display:inline-block;font-size:11px;line-height:1.4;padding:5px 8px;background:#eaf0f6;color:#203b61;border-radius:5px}
.category-state.is-hidden{background:#f3f3f5;color:#626b79}
.category-qty{font-variant-numeric:tabular-nums;font-weight:600}
.category-order-buttons,.category-row-actions{display:flex;gap:6px;align-items:center}
.category-row-actions{flex-wrap:wrap}
.category-row-action{display:inline-flex;margin:0}
.category-order-button{border:1px solid var(--line);background:white;border-radius:5px;min-width:32px;height:34px;padding:0;font-size:18px;line-height:1;transition:background .15s}
.category-order-button:hover:not(:disabled){background:#eaf0f6}
.category-order-button:disabled{color:#bcc3ce;background:#fafbfc}
.category-edit-link,.category-visibility-button{border:0;background:none;padding:6px 3px;font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.category-visibility-button{color:var(--muted)}
.category-visibility-button:hover{color:var(--red)}
.category-visibility-button:disabled{opacity:.45}
.category-empty{padding:24px;text-align:center;color:var(--muted);font-size:14px}
.category-count-hint{margin-top:16px;font-size:12px}
.category-action-status{font-size:13px;color:var(--primary);margin:12px 0 0}
.category-action-status:empty{display:none}
.category-action-status a{text-decoration:underline}
.variant-table-name small{display:block;margin-top:5px;font-size:12px}
.variant-table-name a{font-weight:700}
.variant-category-badges{display:flex;flex-wrap:wrap;gap:5px;max-width:380px}
.assignment-badge{display:inline-block;border:1px solid #dce3ee;background:#f0f4f9;color:var(--primary);padding:3px 8px;border-radius:5px;font-size:11px;line-height:1.5}
.assignment-badge.is-hidden{color:#737c89;background:#f6f6f7;border-color:#e5e6e9}
.variant-category-picker{border:1px solid var(--line);border-radius:9px;padding:20px;margin:8px 0;background:#fafbfc}
.variant-category-picker legend{font-size:17px;font-weight:700;color:var(--primary);padding:0 8px}
.variant-category-picker .inherit-category{margin:0 0 12px;font-size:14px;align-items:flex-start}
.inherit-category input{margin:4px 0 0;flex-shrink:0}
.variant-category-picker .category-picker-search{margin:16px 0 10px;max-width:460px;font-size:13px}
.category-checkbox-list{max-height:260px;overflow:auto;background:white;border:1px solid var(--line);border-radius:7px;overscroll-behavior:contain}
.category-choice{display:flex;gap:12px;align-items:center;padding:12px 14px 12px calc(14px + var(--category-depth,0) * 14px);margin:0;border-bottom:1px solid #edf0f4;cursor:pointer}
.category-choice:last-child{border-bottom:0}
.category-choice:hover{background:#f5f7fb}
.category-choice:has(input:checked){background:#edf2f8}
.category-choice input{margin:0;flex-shrink:0;width:17px;height:17px}
.category-choice span{min-width:0}.category-choice strong{font-size:13px;font-weight:600}
.category-choice small{display:block;font-size:11px;overflow-wrap:anywhere}
.category-selection-count{font-size:13px;font-weight:600;color:var(--primary);margin:14px 0 8px}
.category-choice[hidden],[data-category-row][hidden],[data-category-empty][hidden],[data-category-picker-empty][hidden]{display:none!important}
@media(max-width:1100px){.category-workspace{grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:16px}.category-workspace>.panel{padding:18px}}
@media(max-width:880px){.category-workspace{grid-template-columns:1fr}.category-editor-form{grid-template-columns:repeat(2,minmax(0,1fr))}.category-editor-form>.field-hint,.category-editor-form>.category-advanced,.category-editor-form>.wide{grid-column:1/-1}.category-editor-form>.wide .button{width:auto}.category-cancel{text-align:left}.category-manager-toolbar{align-items:flex-start}}
@media(max-width:540px){.category-manager-toolbar{flex-direction:column}.category-editor-form{grid-template-columns:1fr}.category-filters{grid-template-columns:1fr 115px}.category-workspace>.panel{padding:16px}.variant-category-picker{padding:14px}.category-choice{padding-left:calc(10px + var(--category-depth,0) * 9px)}}
@media(prefers-reduced-motion:reduce){.category-order-button{transition:none}}
