.category-goods-list{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;align-items:start;padding-top:12px}
.category-goods-label{color:#909399;padding-top:14px}
.category-goods-cards{min-width:0;display:grid;gap:14px}
.category-goods-card{position:relative;border:1px solid #e4e7ed;padding:18px 20px;display:grid;gap:18px;background:#fff}
.category-goods-row{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:12px;margin:0}
.category-goods-row>span:first-child{color:#909399}
.category-goods-row input:not([type=checkbox]){width:100%;min-width:0;height:34px;padding:5px 12px;border:1px solid #dcdfe6;border-radius:4px;box-sizing:border-box;font:inherit}
.category-goods-row input:disabled{background:#f5f7fa;color:#c0c4cc;cursor:not-allowed}
.category-goods-source{color:#606266;overflow-wrap:anywhere}
input.category-goods-switch{appearance:none!important;display:block!important;position:relative!important;width:40px!important;height:20px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:20px!important;background:#dcdfe6!important;cursor:pointer}
input.category-goods-switch:after{content:'';position:absolute;left:2px;top:2px;width:16px;height:16px;background:#fff;border-radius:50%;transition:transform .15s}
input.category-goods-switch:checked{background:#409eff!important}
input.category-goods-switch:checked:after{transform:translateX(20px)}
.category-goods-products{display:flex;gap:12px;flex-wrap:wrap;min-width:0}
.category-goods-product,.category-goods-add-product{position:relative;width:64px;height:64px;box-sizing:border-box;border:1px dashed #dcdfe6;background:#fafbfc;flex:0 0 64px}
.category-goods-product img{width:100%;height:100%;object-fit:contain}
.category-goods-add-product{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#909399;font:inherit;cursor:pointer}
.category-goods-add-product>span{font-size:28px;line-height:30px;color:#c0c4cc}
.category-goods-remove{position:absolute;right:-8px;top:-8px;width:20px;height:20px;min-height:0;border:0;border-radius:50%;padding:0;background:#c0c4cc;color:white;font:18px/20px sans-serif;cursor:pointer;visibility:hidden;z-index:1}
.category-goods-card:hover>.category-goods-remove,.category-goods-card:focus-within>.category-goods-remove,.category-goods-product:hover>.category-goods-remove,.category-goods-product:focus-within>.category-goods-remove{visibility:visible}
.category-goods-add{justify-self:start;border:0;background:none;color:#409eff;padding:0;font:inherit;cursor:pointer}
.category-goods-modal-backdrop{position:fixed;inset:0;z-index:10010;background:#0008;display:flex;align-items:center;justify-content:center}
.category-goods-modal{width:min(1000px,90vw);max-height:85vh;min-height:320px;background:#fff;border-radius:3px;display:flex;flex-direction:column;box-shadow:0 4px 20px #0002;color:#606266}
.category-goods-modal header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px}
.category-goods-modal header button{background:none;border:0;color:#909399;cursor:pointer;font-size:20px}
.category-goods-modal-body{overflow:auto;min-height:0;padding:12px 20px;flex:1}
.category-goods-modal table{width:100%;border-collapse:collapse;text-align:left}
.category-goods-modal th,.category-goods-modal td{padding:14px;border-bottom:1px solid #ebeef5;font-weight:400}
.category-goods-modal th:first-child{width:36px}.category-goods-modal th:nth-child(2){width:90px}
.category-goods-modal footer{display:flex;justify-content:flex-end;gap:12px;padding:18px 20px}
.category-goods-modal input[type=checkbox]{width:14px;height:14px;accent-color:#409eff}
@media(hover:none){.category-goods-remove{visibility:visible}}
@media(max-width:600px){.category-goods-list{grid-template-columns:1fr}.category-goods-card{padding:14px}.category-goods-row{grid-template-columns:78px minmax(0,1fr)}}

/* Shared category navigation; appearance is independent of product card colors. */
.cg-layout{min-width:0}.cg-bar{pointer-events:auto;display:flex;overflow-x:auto;background:var(--cg-background);scrollbar-width:thin}.cg-tab{position:relative;flex:none;min-width:68px;min-height:48px;padding:12px 14px 14px;border:0;border-radius:0;background:transparent;color:var(--cg-unselected);font:inherit;font-weight:400;line-height:1.4;cursor:pointer;overflow-wrap:anywhere}.cg-tab[aria-pressed="true"]{color:var(--cg-selected)}.cg-tab[aria-pressed="true"]::after{content:"";position:absolute;width:28px;height:2px;bottom:3px;left:50%;transform:translateX(-50%);background:var(--cg-underline)}.cg-tab:focus-visible{outline:2px solid #1677ff;outline-offset:-2px}.cg-contents{min-width:0}.cg-layout-left{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:stretch;gap:8px}.cg-layout-left>.cg-bar{pointer-events:auto;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;max-height:560px}.cg-layout-left>.cg-bar>.cg-tab{width:100%;min-width:0;padding-left:8px;padding-right:8px}.ahb-category-color>div{display:flex;gap:8px;align-items:center}.ahb-category-color input[type="color"]{flex:none;width:42px;min-height:36px;padding:3px}.ahb-category-color input[type="text"]{min-width:0;width:115px}

.cg-preview-action{pointer-events:auto}
