/* Shared CMS colours keep the shop editor consistent in both themes. */
.shop-page .page-heading { align-items: center; }
.shop-actions, .shop-pagination, .shop-heading-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.shop-filters { display: grid; grid-template-columns: minmax(180px, 1fr) 160px 180px auto; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); align-items: end; }
.shop-page .field { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; }
.shop-page :is(input, select, textarea) { width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; }
.shop-page textarea { resize: vertical; line-height: 1.65; }
.shop-page input:disabled, .shop-page select:disabled, .shop-page textarea:disabled { background: var(--surface-2); opacity: .75; }
.shop-page button:disabled { cursor: default; opacity: .5; }
.shop-results { min-height: 200px; }
.shop-results table { width: 100%; }
.shop-item { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.shop-item img, .shop-item-icon { width: 44px; height: 44px; object-fit: contain; flex: 0 0 44px; border-radius: 8px; background: var(--surface-2); padding: 4px; }
.shop-item-icon { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.shop-item strong { display: block; font-weight: 650; line-height: 1.45; }
.shop-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.shop-product-name { border: 0; padding: 0; background: none; color: var(--text); cursor: pointer; text-align: left; }
.shop-product-name:hover { color: var(--blue); }
.shop-numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-pagination { justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.shop-notice { padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--muted); line-height: 1.6; }
.shop-notice.error { color: var(--red); border-color: currentColor; }
.shop-notice.success { color: var(--green); }
.shop-notice button { margin: 8px 8px 0 0; }
.shop-empty { padding: 44px 24px; text-align: center; color: var(--muted); }
.shop-empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 8px; }
.shop-editor-heading { margin: 0 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.shop-editor-heading h2 { margin: 0 0 5px; font-size: 23px; letter-spacing: -.02em; }
.shop-editor-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.shop-editor-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); gap: 20px; align-items: start; }
.shop-editor-card { padding: 22px; }
.shop-editor-card h3 { margin: 0 0 16px; font-size: 15px; }
.shop-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shop-form-grid .full { grid-column: 1 / -1; }
.shop-form-grid .field small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.shop-form-footer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.shop-form-footer small { color: var(--muted); }
.shop-native-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 0; gap: 14px; }
.shop-native-facts div { min-width: 0; }
.shop-native-facts dt { color: var(--muted); font-size: 11px; }
.shop-native-facts dd { margin: 4px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.shop-native-json { max-height: 240px; overflow: auto; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.shop-native-details { margin-top: 20px; }
.shop-native-details summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.shop-preview-description { white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0; line-height: 1.7; color: var(--muted); font-size: 13px; }
.shop-audit { list-style: none; margin: 0; padding: 0; }
.shop-audit li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.shop-audit li:last-child { border-bottom: 0; padding-bottom: 0; }
.shop-audit strong, .shop-audit small { display: block; }
.shop-audit strong { font-size: 12px; }
.shop-audit p { margin: 5px 0; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.shop-audit small { color: var(--muted); font-size: 10px; }
.shop-side { display: grid; gap: 18px; }
.shop-catalog-search { display: flex; align-items: end; gap: 12px; margin-bottom: 16px; }
.shop-catalog-search .field { flex: 1; }
.shop-catalog-options { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.shop-catalog-option { display: flex; width: 100%; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.shop-catalog-option:hover { border-color: var(--blue); background: var(--surface-2); }
.shop-catalog-option .shop-item { flex: 1; }
.shop-stock-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.shop-stock-form p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.shop-stock-form .shop-form-grid { grid-template-columns: 1fr; }
.shop-stock-form button { margin-top: 12px; }
@media (max-width: 1150px) { .shop-editor-layout { grid-template-columns: 1fr; } .shop-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shop-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .shop-filters, .shop-form-grid, .shop-side { grid-template-columns: 1fr; }
  .shop-form-grid .full { grid-column: auto; }
  .shop-editor-card { padding: 16px; }
  .shop-editor-heading { align-items: start; flex-direction: column; }
  .shop-page :is(input, select, textarea) { font-size: 16px; }
  .shop-page button { min-height: 44px; }
  .shop-actions { width: 100%; } .shop-actions .button { flex: 1; }
  .shop-pagination { padding: 14px; } .shop-catalog-search { flex-wrap: wrap; }
}
