
.product-gallery-editor {margin:0; padding:16px; min-width:0; border:1px solid var(--line); border-radius:12px}
.product-gallery-editor legend {padding-inline:6px; font-weight:700; color:var(--navy)}
.product-gallery-editor p {color:var(--muted); font-size:13px; margin:0 0 12px}
.product-gallery-grid {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,144px),1fr)); gap:10px; padding:0; margin:0 0 15px; list-style:none}
.product-gallery-grid:empty {display:none}
.product-media-row {display:grid; gap:8px; padding:8px; border-radius:10px; border:1px solid var(--line); background:#f7fafc}
.product-media-row:first-child {border-color:var(--teal)}
.product-media-preview {width:100%; height:96px; background:white; object-fit:contain; border-radius:7px}
.product-media-actions {display:flex; flex-wrap:wrap; gap:5px}
.product-media-actions .btn {padding:5px 9px; font-size:12px; min-height:32px}
.mock-product[hidden] {display:none}
@media (max-width:560px) {.product-gallery-editor .form-grid {grid-template-columns:1fr}}

