/* Catalog follows the existing compact Chinese operations workspace. */
.catalog-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,240px) minmax(180px,240px) auto;gap:14px;align-items:end;margin:0 0 20px}.catalog-toolbar button{min-height:43px}.catalog-table-panel .panel-title p{margin:7px 0 0}.catalog-batch{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 20px;background:#f7f9fb;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.catalog-batch button{padding:7px 11px;font-size:12px}.catalog-table{min-width:860px}.catalog-table td{vertical-align:middle}.catalog-table .cell-product{max-width:290px}.catalog-table .cell-product strong{overflow-wrap:anywhere}.catalog-listings{display:grid;gap:8px}.catalog-store-state{display:flex;align-items:center;gap:8px;font-size:12px}.catalog-store-state>span:first-child{max-width:150px;overflow-wrap:anywhere}.catalog-store-state button{border:0;background:none;color:var(--accent);padding:4px;font-size:11px}.catalog-pagination{display:flex;justify-content:center;align-items:center;gap:18px;padding:18px;font-size:12px}.catalog-pagination button{padding:8px 13px}.modal.catalog-editor{width:min(1180px,100%);padding-bottom:0}.catalog-editor-notice{background:#edf3fa;color:#38536d;padding:12px 15px;border-left:3px solid #7394b6;font-size:12px;line-height:1.8}.catalog-section{padding:3px 0 21px;border-bottom:1px solid var(--line);display:grid;gap:14px}.catalog-section h3{font-size:15px;margin:12px 0 0}.catalog-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:15px}.catalog-section .field-row{align-items:start}.catalog-section .form-help{max-width:850px}.catalog-section label{min-width:0}.catalog-image-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.catalog-image{border:1px solid var(--line);margin:0;padding:8px;background:#f8fafc;min-width:0}.catalog-image img{width:100%;height:120px;object-fit:contain;display:block;background:#edf0f3}.catalog-image figcaption{font-size:11px;padding:8px 0}.catalog-image .row-actions{gap:4px}.catalog-image .row-actions button{padding:4px 6px;font-size:10px;flex:1 0 auto}.catalog-image-add{display:grid;grid-template-columns:minmax(200px,.8fr) minmax(300px,1.6fr);gap:20px;align-items:end}.catalog-path-add{display:flex;gap:8px;align-items:end}.catalog-path-add label{flex:1;min-width:0}.catalog-path-add button{white-space:nowrap;min-height:43px}.catalog-variant-table{min-width:900px}.catalog-variant-table td{vertical-align:top;min-width:140px}.catalog-variant-table td:first-child{min-width:180px;max-width:230px;overflow-wrap:anywhere}.catalog-variant-table label{font-size:11px;margin-bottom:9px}.catalog-variant-table input,.catalog-variant-table select{font-size:12px;padding:8px;min-height:36px}.catalog-variant-table input[type=checkbox]{min-height:17px}.catalog-variant-table .catalog-stock{font-size:12px;line-height:2;color:var(--muted);min-width:120px}.catalog-add-variants{padding:12px 15px;background:#f7f9fb;border:1px solid var(--line)}.catalog-add-variants summary{cursor:pointer;font-size:13px}.catalog-add-variants[open] summary{margin-bottom:15px}.catalog-add-variants .form-help{margin:10px 0}.catalog-add-variants button{font-size:12px;padding:8px 12px;margin:5px 8px 0 0}.catalog-publish-stores{display:flex;gap:15px 24px;flex-wrap:wrap;padding:5px 0}.catalog-save-bar{position:sticky;bottom:0;display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:17px 0;background:#fff;z-index:2;border-top:1px solid var(--line)}.catalog-editor [hidden],#catalog-error[hidden]{display:none!important}.detail-gallery-thumbnails{display:flex;gap:10px;margin-top:15px;padding:4px 3px;overflow-x:auto;scrollbar-width:thin}.detail-gallery-thumbnails button{position:relative;flex:0 0 74px;height:86px;border:2px solid var(--line);padding:5px;background:var(--paper);border-radius:4px;overflow:hidden}.detail-gallery-thumbnails button[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.detail-page .detail-gallery-thumbnails img{width:100%;height:100%;object-fit:contain;max-height:70px}.gallery-thumbnail-number{position:absolute;right:3px;bottom:2px;font-size:10px;line-height:1;padding:3px 4px;background:var(--paper);color:var(--ink)}.detail-gallery-status{color:var(--muted);font-size:11px;margin:8px 3px 0}.detail-gallery-thumbnails button:focus-visible{outline:3px solid var(--accent);outline-offset:1px}
@media(max-width:1000px){.catalog-toolbar{grid-template-columns:1fr 1fr}.catalog-image-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-image-add{grid-template-columns:1fr}}
@media(max-width:600px){.catalog-toolbar{grid-template-columns:1fr}.catalog-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-section .field-row{grid-template-columns:1fr}.catalog-publish-stores{display:grid}.catalog-save-bar .small{width:100%}.catalog-pagination{gap:10px;flex-wrap:wrap}.catalog-path-add{align-items:end}.detail-gallery-thumbnails button{flex-basis:62px;height:74px}.catalog-store-state{flex-wrap:wrap}.catalog-editor .modal-header h2{font-size:20px}}
/* Keep product text inside its own fixed table column, including unbroken titles. */
.catalog-table{width:100%;table-layout:fixed;min-width:1000px}.catalog-table th:nth-child(1){width:64px}.catalog-table th:nth-child(2){width:30%}.catalog-table th:nth-child(3){width:130px}.catalog-table th:nth-child(4){width:100px}.catalog-table th:nth-child(5){width:28%}.catalog-table th:nth-child(6){width:105px}.catalog-table td{white-space:normal;overflow-wrap:anywhere}.catalog-table .cell-product{width:100%;max-width:none;min-width:0;align-items:flex-start}.catalog-table .cell-product img{flex:0 0 42px}.catalog-table .cell-product>div{min-width:0;max-width:calc(100% - 54px);overflow:hidden}.catalog-table .cell-product strong{display:block;white-space:normal;word-break:break-word;overflow-wrap:anywhere;line-height:1.65}.catalog-table .cell-product .sub{white-space:normal;overflow-wrap:anywhere}.catalog-store-state{flex-wrap:wrap}.catalog-store-state small{flex-basis:100%}.catalog-mode{display:flex;gap:24px;flex-wrap:wrap}.catalog-attribute{background:#f7f9fb;border:1px solid var(--line);padding:14px;display:grid;gap:12px;margin-bottom:12px}.catalog-attribute-heading{display:flex;gap:12px;align-items:end}.catalog-attribute-heading>label{max-width:250px;flex:1}.catalog-attribute-heading>span{align-self:center}.catalog-attribute-heading>button{margin-left:auto}.catalog-attribute-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-attribute-value{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(75px,.7fr) auto;gap:8px;align-items:end;background:#fff;padding:10px;border:1px solid var(--line)}.catalog-attribute-value label,.catalog-value-add label{font-size:11px;margin:0}.catalog-attribute input{font-size:12px;min-height:36px;padding:8px}.catalog-attribute button{font-size:11px;padding:8px 10px;min-height:36px}.catalog-value-add{display:flex;gap:8px;align-items:end}.catalog-value-add label{flex:1}.catalog-presets{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.catalog-presets button{min-height:30px;padding:5px 9px}.catalog-code-preview{background:#f7f9fb;padding:12px 15px;display:grid;gap:7px;min-width:0}.catalog-code-preview span{font-size:11px;color:var(--muted)}.catalog-code-preview strong{font-size:13px;overflow-wrap:anywhere}.catalog-rule-apply{justify-self:start;font-size:12px;padding:8px 12px}.catalog-publish-choice{align-items:flex-start}.catalog-publish-choice small{display:block;color:var(--muted);font-size:11px;line-height:1.8}.catalog-publish-choice:has(input:disabled){color:var(--muted)}.catalog-history-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.7}.catalog-history-row span{overflow-wrap:anywhere;min-width:0}.catalog-history-row button{flex-shrink:0;font-size:11px;padding:7px 10px}#catalog-variant-history summary{font-size:12px;cursor:pointer;padding:10px 0}.catalog-variant-table td{white-space:normal}.catalog-variant-table td:nth-child(2){line-height:1.8}.catalog-variant-table td input[name=code]{width:100%;min-width:180px}.catalog-section>.row-actions button{font-size:12px;padding:8px 12px}
@media(max-width:700px){.catalog-attribute-values{grid-template-columns:1fr}.catalog-attribute-heading{flex-wrap:wrap}.catalog-attribute-value{grid-template-columns:minmax(0,1fr) minmax(75px,.7fr) auto}.catalog-mode{gap:12px}}
