/* Merchant workspace: product publishing and comfortable touch controls. */
.merchant-dashboard::after { display: none; }
.dashboard-skip { position: fixed; inset-block-start: 8px; inset-inline-start: 12px; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; border: 2px solid var(--tape); border-radius: 8px; transform: translateY(-160%); }
.dashboard-skip:focus { transform: none; }
.merchant-dashboard :is(button, a, input, select, textarea):focus-visible { outline: 3px solid #9c7110; outline-offset: 3px; }
.merchant-dashboard .app-side { overflow-y: auto; }
.merchant-dashboard .app-side-foot button { min-height: 44px; }
.merchant-dashboard .app-head > div { min-width: 0; }
.merchant-dashboard .app-head h1 { line-height: 1.35; overflow-wrap: anywhere; }
.merchant-dashboard .app-head a.domain { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.dashboard-shop-link { padding-block: 10px; color: inherit; text-underline-offset: 4px; }
.dashboard-mobile-tools { display: none; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.catalog-heading > div { flex: 1; min-width: min(280px, 100%); }
.catalog-heading h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.4; font-weight: 700; }
.catalog-heading p { margin-top: 7px; max-width: 650px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.catalog-heading .btn { flex: none; }
.catalog-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; padding: 16px 20px; background: #f5efd8; border-inline-start: 3px solid #b68a16; border-radius: 4px; font-size: 14px; line-height: 1.8; }
.catalog-notice p { flex: 1; min-width: min(250px, 100%); }
.catalog-notice a { flex: none; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; font-weight: 650; }
.catalog-state { padding: 40px 24px; border: 1px solid var(--line); background: #fff; border-radius: 16px; text-align: center; line-height: 1.8; }
.catalog-state .btn { margin-top: 16px; }
.catalog-empty { padding-block: 56px; }
.catalog-empty > svg { width: 52px; height: 52px; margin: 0 auto 22px; color: #806d55; }
.catalog-empty h3 { font-size: 20px; line-height: 1.6; }
.catalog-empty p { max-width: 460px; margin: 8px auto 0; color: var(--muted); }
.catalog-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.catalog-list-heading h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.catalog-list-heading h3 span { font-family: var(--sans); font-size: 13px; background: #e9e5dc; border-radius: 20px; padding: 2px 9px; font-weight: 500; }
.catalog-list-heading > a { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.catalog-list { list-style: none; padding: 0; margin: -6px 0 0; border-top: 1px solid var(--line); }
.catalog-product { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 22px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.catalog-photo { width: 100px; height: 128px; border-radius: 8px; overflow: hidden; background: #e9e5dc; display: grid; place-items: center; align-self: start; }
.catalog-photo img { width: 100%; height: 100%; object-fit: cover; }
.catalog-photo span { display: none; text-align: center; padding: 12px; font-size: 12px; color: var(--muted); }
.catalog-photo.image-missing span { display: block; }
.catalog-product-info { min-width: 0; }
.catalog-product-top { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.catalog-product-top h4 { font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.catalog-product-info > p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 2px; }
.catalog-status { display: inline-block; background: #e9e5dc; color: #544e43; padding: 4px 10px; border-radius: 20px; font-size: 12px; line-height: 1.6; }
.catalog-status.is-live { background: #e1eee4; color: #235f3c; }
.catalog-price { display: block; font-size: 15px; line-height: 1.7; font-weight: 650; margin-top: 8px; }
.catalog-sizes { overflow-wrap: anywhere; }
.catalog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.catalog-actions > a, .catalog-remove { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; text-underline-offset: 4px; }
.catalog-actions .btn { min-height: 44px; }
.catalog-remove { color: #913b2c; background: none; border: 0; padding: 0 6px; margin-inline-start: auto; cursor: pointer; }
.catalog-remove:hover { text-decoration: underline; }
.catalog-delete { margin-top: 16px; padding: 16px; background: #f8eae5; border: 1px solid #edd1c7; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.catalog-delete p { width: 100%; font-size: 14px; line-height: 1.8; }
.catalog-delete .btn { min-height: 44px; }
.catalog-editor { border-radius: 12px; border-color: #b8afa0; }
.catalog-editor h3 { font-size: 20px; line-height: 1.6; }
.catalog-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
.catalog-fields:disabled { opacity: .65; }
.catalog-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.catalog-form-grid .field { margin-bottom: 0; min-width: 0; }
.catalog-form-grid .input { width: 100%; min-width: 0; font-size: 16px; }
.catalog-form-grid textarea.input { resize: vertical; min-height: 108px; }
.catalog-field-wide { grid-column: 1 / -1; min-width: 0; }
.catalog-field-hint { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 7px; overflow-wrap: anywhere; }
#cpCountryField .btn { min-height: 44px; margin-top: 8px; }
.catalog-colors { border: 0; padding: 0; margin: 0; }
.catalog-colors legend { font-size: 13.5px; font-weight: 650; padding: 0; margin-bottom: 10px; }
.catalog-colors > div { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-colors label { position: relative; display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.catalog-colors input { position: absolute; inset-inline-start: 12px; width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.catalog-colors label span { padding: 11px 12px; padding-inline-start: 34px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; line-height: 1.5; }
.catalog-colors input:checked + span { border-color: var(--ink); background: #f1eee7; }
.catalog-publish { display: flex; gap: 12px; align-items: start; padding: 22px 0; margin-top: 22px; border-top: 1px solid var(--line); cursor: pointer; }
.catalog-publish input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--ink); }
.catalog-publish b { display: block; font-weight: 650; font-size: 14px; line-height: 1.8; }
.catalog-publish small { display: block; font-size: 13px; color: var(--muted); line-height: 1.8; }
.catalog-form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.catalog-form-actions .btn { min-height: 48px; }
@media (max-width: 860px) {
  .merchant-dashboard .app-side { overflow: visible; padding-top: max(12px, env(safe-area-inset-top)); }
  .merchant-dashboard .app-side .store-switch { min-height: 44px; font-size: 16px; }
  .merchant-dashboard .app-nav a { min-height: 44px; }
  .merchant-dashboard .app-nav { scroll-padding-inline: 14px; padding-bottom: 2px; }
  .merchant-dashboard .app-nav a:focus-visible { outline-offset: -3px; }
  .dashboard-mobile-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; padding: 4px 14px; border-bottom: 1px solid var(--line); background: #fff; }
  .dashboard-mobile-tools a, .dashboard-mobile-tools button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 12px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13px; text-underline-offset: 4px; }
  .dashboard-mobile-tools a { margin-inline-end: auto; }
  .merchant-dashboard .input { font-size: 16px; }
  .merchant-dashboard .app-body { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}
@media (max-width: 540px) {
  .merchant-dashboard .app-head { gap: 18px; }
  .merchant-dashboard .app-head .btn-row { gap: 8px; width: 100%; }
  .merchant-dashboard .app-head .btn { min-height: 44px; font-size: 12px; padding-inline: 12px; }
  .catalog-heading { gap: 16px; }
  .catalog-heading .btn { width: 100%; }
  .catalog-heading p { font-size: 14px; }
  .catalog-editor { padding: 20px 16px; }
  .catalog-form-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .catalog-form-grid .field > label { flex-wrap: wrap; }
  .catalog-product { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .catalog-photo { width: 76px; height: 104px; }
  .catalog-product-top h4 { font-size: 16px; }
  .catalog-actions { gap: 4px 10px; }
  .catalog-remove { margin-inline-start: 0; }
  .catalog-delete { margin-inline-start: -90px; }
  .catalog-form-actions .btn { flex: 1; }
  .catalog-state { padding-inline: 18px; }
  .catalog-list-heading { gap: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .merchant-dashboard .view.is-on, .merchant-dashboard .form-error.is-on { animation: none; }
}
