:root {
  --bg: #f5f0ea;
  --sidebar: #5d7158;
  --sidebar-deep: #455542;
  --surface: #ffffff;
  --surface-soft: #faf6f1;
  --surface-muted: #f3ede6;
  --line: #ddd5cc;
  --line-strong: #d2c8be;
  --text: #2f2a29;
  --muted: #7e726b;
  --blue: #b06c7b;
  --blue-soft: #f8eaf0;
  --success: #597d58;
  --danger: #cf5f51;
  --shadow: 0 10px 24px rgba(73, 53, 42, 0.08);
  --radius-xl: 18px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 14px;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 18px;
  background: #546a4f;
  color: white;
  box-shadow: 0 1px 0 rgba(29, 45, 24, 0.18);
}

.global-header__left,
.global-header__right,
.global-header__brand,
.global-header__support,
.global-header__store {
  display: flex;
  align-items: center;
}

.global-header__left,
.global-header__right {
  gap: 14px;
}

.global-header__brand {
  gap: 10px;
}

.global-header__brand-mark,
.global-header__store-avatar {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.global-header__brand-name,
.global-header__store {
  font-size: 14px;
  font-weight: 700;
}

.global-header__cta {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(81, 64, 49, 0.18);
  border-radius: 10px;
  background: #fff8f3;
  color: #7f4f5b;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(69, 50, 41, 0.08);
}

.top-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: white;
}

.top-icon-button svg,
.global-header__support svg,
.global-header__store svg {
  width: 16px;
  height: 16px;
}

.top-icon-button__badge {
  position: absolute;
  top: -3px;
  right: -4px;
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f4cc78;
  color: #59432e;
  font-size: 10px;
  font-weight: 800;
}

.global-header__support,
.global-header__store {
  gap: 8px;
}

.app-status {
  min-height: 30px;
  min-width: 120px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: 180ms ease;
}

.app-status.is-visible {
  opacity: 1;
}

.app-status.is-error {
  color: #ffe2e0;
}

.autosave-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 380px;
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #1f2c4a;
  color: white;
  box-shadow: 0 14px 28px rgba(20, 33, 58, 0.28);
  transform: translateX(-50%);
}

.autosave-toast.is-hidden {
  display: none;
}

.autosave-toast__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #66d27a;
  color: #10361a;
}

.autosave-toast__icon svg,
.autosave-toast__close svg {
  width: 16px;
  height: 16px;
}

.autosave-toast p {
  margin: 0;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.autosave-toast__close {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
}

.app-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
}

.sidebar {
  position: sticky;
  top: 58px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - 58px);
  padding: 14px 10px;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%);
  color: white;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-eyebrow,
.workspace-eyebrow,
.card-label,
.field-label,
.field-caption {
  display: inline-block;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sidebar-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-brand h1,
.brand-copy h1,
.featured-card h3,
.drawer-head h2 {
  margin: 0;
}

.sidebar-brand h1 {
  font-size: 15px;
}

.sidebar-nav {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.sidebar-link {
  display: none;
}

.sidebar-settings {
  display: grid;
  gap: 0;
  padding: 0;
}

.sidebar-settings:not(:first-child) {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-settings__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 74px;
  padding: 0 20px 0 24px;
  border: 1px solid rgba(120, 170, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: white;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-settings__title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.sidebar-settings__title svg,
.sidebar-settings__chevron {
  width: 24px;
  height: 24px;
}

.sidebar-settings__chevron {
  transition: transform 0.18s ease;
}

.sidebar-settings__toggle:not(.is-open) .sidebar-settings__chevron {
  transform: rotate(180deg);
}

.sidebar-settings__panel {
  display: grid;
  gap: 10px;
  margin-top: 0;
  margin-left: 31px;
  padding: 10px 0 14px 23px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  justify-items: start;
}

.sidebar-settings__item {
  display: flex;
  align-items: center;
  width: auto;
  min-height: 40px;
  padding: 0 10px 0 24px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.98);
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
}

.sidebar-settings__item:hover {
  background: transparent;
}

.sidebar-settings__item.is-active {
  min-width: 160px;
  min-height: 70px;
  padding: 0 22px 0 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(115, 145, 255, 0.34) 0%, rgba(104, 134, 248, 0.28) 100%);
  box-shadow: inset 7px 0 0 #2fe3eb;
  font-weight: 700;
}

.sidebar-note {
  display: none;
}

.sidebar-note p,
.sidebar-note span,
.workspace-topbar p,
.brand-copy p,
.featured-card p,
.setup-block p,
.variants-panel__head p,
.product-row__copy p,
.form-status {
  margin: 0;
}

.sidebar-note strong {
  font-size: 12px;
}

.workspace {
  min-width: 0;
  padding: 12px 16px 18px;
}

.workspace-eyebrow,
.card-label,
.field-label,
.field-caption {
  color: var(--muted);
}

.brand-card,
.menu-board,
.featured-card,
.category-card,
.product-drawer,
.settings-drawer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.brand-card {
  position: relative;
  overflow: hidden;
}

.brand-cover {
  position: relative;
  height: 98px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(90deg, #d6c5b5 0%, #ead7cb 32%, #d9dcc4 62%, #bfcdaa 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cover-camera-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 4px solid #f4f7ff;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 22px rgba(39, 88, 214, 0.26);
  transform: translate(-50%, -50%);
}

.cover-camera-button:hover {
  background: #2f66f5;
}

.cover-camera-button svg {
  width: 21px;
  height: 21px;
}

.brand-card__content {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px;
  margin-top: -42px;
  padding: 0 14px 14px;
  align-items: end;
}

.brand-logo-column {
  display: grid;
  justify-items: start;
}

.brand-logo-stack {
  position: relative;
  width: 98px;
  padding-right: 10px;
  padding-bottom: 10px;
}

.brand-logo-frame {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  padding: 10px;
  border: 6px solid white;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 22px rgba(41, 61, 102, 0.1);
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-camera-button {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 3px solid #eef3ff;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 18px rgba(39, 88, 214, 0.28);
}

.logo-camera-button:hover {
  background: #2f66f5;
}

.logo-camera-button svg {
  width: 18px;
  height: 18px;
}

.mini-outline-button,
.categories-toggle,
.outline-button,
.primary-button,
.secondary-button,
.tool-button,
.product-row__actions button,
.drawer-close,
.variant-remove {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.mini-outline-button,
.outline-button,
.categories-toggle,
.secondary-button {
  border-color: var(--blue);
  background: white;
  color: var(--blue);
}

.mini-outline-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.brand-copy {
  display: grid;
  gap: 4px;
  align-self: center;
}

.brand-copy h1 {
  font-size: 18px;
  line-height: 1.2;
}

.brand-copy p {
  max-width: 460px;
  color: var(--muted);
  font-size: 12px;
}

.brand-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.metric-box {
  display: grid;
  gap: 3px;
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.metric-box span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.metric-box strong {
  font-size: 14px;
}

.menu-board {
  margin-top: 12px;
  padding: 12px;
}

.board-toolbar {
  position: sticky;
  top: 58px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.board-toolbar__spacer {
  flex: 1 1 auto;
}

.board-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.board-pill-button,
.board-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: #4a5263;
  box-shadow: 0 3px 10px rgba(41, 52, 82, 0.08);
  font-size: 14px;
  font-weight: 700;
}

.board-icon-button {
  width: 42px;
  padding: 0;
}

.board-icon-button svg {
  width: 18px;
  height: 18px;
}

.board-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.board-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.board-switch span {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d8dbe2;
  transition: background 0.18s ease;
}

.board-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease;
}

.board-switch input:checked + span {
  background: var(--blue);
}

.board-switch input:checked + span::after {
  transform: translateX(18px);
}

.categories-dropdown {
  position: relative;
}

.categories-toggle {
  min-width: 132px;
  background: var(--blue);
  color: white;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.categories-toggle::before {
  content: "☰";
  margin-right: 10px;
  font-size: 16px;
}

.categories-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 250px;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.categories-menu.is-hidden,
.is-hidden,
.category-composer.is-hidden,
.drawer-scrim.is-hidden,
.modal-scrim.is-hidden,
.media-modal.is-hidden,
.sidebar-settings__panel.is-hidden,
.settings-form.is-hidden,
.settings-placeholder.is-hidden,
.variants-panel.is-hidden,
.single-price-panel.is-hidden {
  display: none;
}

.images-board__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.images-board__title {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.images-board__note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.images-board__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.images-board__toolbar .primary-button {
  width: min(360px, 100%);
}

.menu-action,
.menu-category-link {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.menu-action:hover,
.menu-category-link:hover,
.tab-chip:hover,
.tool-button:hover,
.drawer-close:hover,
.variant-remove:hover {
  background: var(--surface-soft);
}

.menu-summary {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.categories-menu-list {
  display: grid;
  max-height: 280px;
  overflow: auto;
}

.menu-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-category-link.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

.category-tabs {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 4px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tab-chip.is-active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.tab-chip.is-muted {
  color: #8a93a9;
}

.category-composer {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.category-composer__actions,
.drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
  width: 100%;
}

.field input,
.field select,
.field textarea,
.variant-row input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--text);
  font-size: 14px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.primary-button {
  background: var(--blue);
  color: white;
}

.secondary-button {
  min-height: 36px;
}

.featured-card {
  padding: 10px 12px;
}

.featured-card.is-target,
.category-card.is-target {
  border-color: #dfe4ec;
  box-shadow: 0 2px 8px rgba(31, 45, 74, 0.06);
}

.featured-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.featured-card__header h3 {
  margin-top: 2px;
  margin-bottom: 4px;
  font-size: 14px;
}

.featured-card__header p {
  color: var(--muted);
  font-size: 12px;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 800;
}

.featured-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.featured-product-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 12px;
}

.featured-product-pill span {
  font-weight: 700;
}

.featured-product-pill strong {
  color: var(--blue);
}

.category-sections {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.category-card {
  padding: 0;
  border-color: #dfe4ec;
  background: #fbfbfc;
  box-shadow: 0 2px 8px rgba(31, 45, 74, 0.06);
  overflow: visible;
}

.category-card.is-muted {
  opacity: 0.72;
}

.category-card__head {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 5px 16px 5px 20px;
  background: #f4f4f5;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.category-card__head[aria-expanded="false"] {
  border-radius: 14px;
}

.category-card__head[aria-expanded="true"] {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.category-card__head:hover {
  background: #f1f2f4;
}

.drag-dots {
  position: relative;
  width: 15px;
  height: 24px;
  color: #d5dae3;
}

.drag-dots::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
  box-shadow:
    6px 0 0 currentColor,
    12px 0 0 currentColor,
    0 6px 0 currentColor,
    6px 6px 0 currentColor,
    12px 6px 0 currentColor,
    0 12px 0 currentColor,
    6px 12px 0 currentColor,
    12px 12px 0 currentColor,
    0 18px 0 currentColor,
    6px 18px 0 currentColor,
    12px 18px 0 currentColor;
}

.category-editor {
  min-width: 0;
  width: min(100%, 200px);
  justify-self: start;
}

.category-editor__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: end;
  margin-top: 1px;
}

.category-editor .field-caption {
  color: #7c8393;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.category-title-input {
  width: 100%;
  padding: 0 0 6px;
  border: none;
  border-bottom: 2px solid #6a707b;
  background: transparent;
  color: #252b35;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.05;
  outline: none;
  cursor: text;
}

.category-title-input:focus {
  border-bottom-color: #5f6672;
}

.category-counter {
  width: 0;
  padding-bottom: 7px;
  overflow: hidden;
  opacity: 0;
  color: #3f4552;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity 0.14s ease;
}

.category-editor__row:focus-within .category-counter {
  width: auto;
  margin-left: 10px;
  opacity: 1;
}

.category-card__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.count-bubble {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border: none;
  border-radius: 999px;
  background: white;
  color: #535a67;
  box-shadow: 0 3px 10px rgba(29, 47, 86, 0.14);
  font-size: 11px;
  font-weight: 700;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  min-height: 44px;
  padding: 0 22px;
  border-width: 2px;
  border-color: #3f79f6;
  border-radius: 20px;
  color: #3f79f6;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
}

.product-stack {
  display: grid;
  gap: 0;
  background: white;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: white;
  cursor: pointer;
  transition: background 0.18s ease;
}

.product-row:hover {
  background: #f7faff;
}

.product-row.is-muted {
  background: #fbfcfe;
}

.product-row__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.product-row__image {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid #ebedf2;
  border-radius: 10px;
  background: var(--surface-soft);
}

.product-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-row__copy {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.product-row__copy h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.product-row__meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.product-row__side {
  display: flex;
  align-items: center;
  justify-items: end;
  gap: 14px;
  min-width: 176px;
}

.product-row__side strong {
  font-size: 14px;
  font-weight: 500;
}

.product-row__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.collapse-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #667185;
  box-shadow: 0 2px 8px rgba(31, 45, 74, 0.08);
}

.icon-button svg,
.collapse-button svg,
.action-menu__item svg {
  width: 20px;
  height: 20px;
}

.icon-button--visibility {
  color: var(--blue);
}

.icon-button--menu {
  color: #5f6778;
}

.icon-button--menu.is-active {
  background: #d8dee9;
}

.icon-button--plain {
  width: 24px;
  height: 30px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #5f6778;
}

.icon-button--plain.is-active,
.icon-button--plain:hover {
  background: transparent;
  color: #343947;
}

.collapse-button {
  width: 42px;
  height: 42px;
}

.collapse-button--category {
  width: 36px;
  height: 36px;
  border-color: #e6e9ef;
  background: #fff;
  color: #808797;
  box-shadow: 0 4px 12px rgba(31, 45, 74, 0.12);
}

.action-menu-shell {
  position: relative;
}

.action-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 6;
  min-width: 168px;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 14px 30px rgba(31, 45, 74, 0.16);
}

.action-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}

.action-menu__item:hover {
  background: #f6f8fc;
}

.action-menu__item.is-danger {
  color: var(--danger);
}

.action-menu__item span:last-child {
  margin-left: auto;
}

.menu-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #47e3d1;
  color: #163a39;
  font-size: 10px;
  font-weight: 800;
}

.drawer-close,
.variant-remove {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  font-size: 11px;
}

.variant-remove.is-danger {
  color: var(--danger);
}

.empty-inline,
.empty-products,
.collapsed-note {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(19, 32, 56, 0.28);
}

.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(19, 27, 43, 0.46);
  backdrop-filter: blur(2px);
}

.product-drawer {
  position: fixed;
  top: 70px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  width: min(446px, calc(100vw - 24px));
  padding: 0;
  transform: translateX(calc(100% + 40px));
  transition: transform 220ms ease;
  overflow: hidden;
}

.product-drawer.is-open {
  transform: translateX(0);
}

.settings-drawer {
  position: fixed;
  top: 70px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  width: min(420px, calc(100vw - 24px));
  padding: 0;
  transform: translateX(calc(100% + 40px));
  transition: transform 220ms ease;
  overflow: hidden;
}

.settings-drawer.is-open {
  transform: translateX(0);
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 14px;
}

.media-modal__dialog {
  width: min(700px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid #d8deeb;
  border-radius: 14px;
  background: white;
  box-shadow: 0 20px 48px rgba(20, 33, 58, 0.26);
}

.media-modal__dialog--crop {
  width: min(760px, calc(100vw - 28px));
}

.media-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
}

.media-modal__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.media-modal__head--blue {
  background: #346df1;
  color: white;
}

.media-modal__close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  color: white;
}

.media-modal__close svg {
  width: 20px;
  height: 20px;
}

.media-modal__body {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 144px);
  padding: 14px 16px 8px;
  overflow: auto;
}

.media-modal__body--crop {
  padding: 12px 14px 8px;
}

.media-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 16px 14px;
  border-top: 1px solid #eef2f8;
}

.modal-text-button {
  min-height: 38px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: #8f96a6;
  font-size: 14px;
  font-weight: 700;
}

.image-library-block {
  display: grid;
  gap: 9px;
}

.image-library-block h3 {
  margin: 0;
  color: #202636;
  font-size: 14px;
  font-weight: 700;
}

.image-upload-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid #74a3ff;
  border-radius: 12px;
  background: #eef5ff;
  color: #3971f2;
  font-size: 12px;
  font-weight: 500;
}

.image-upload-notice svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.image-main-stage {
  position: relative;
  display: grid;
  width: min(100%, 350px);
  margin: 0 auto;
}

.image-library-main-preview {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 170px;
  border-radius: 14px;
  background: #f6f8fc;
  overflow: hidden;
}

.image-library-main-preview img {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  object-fit: cover;
}

.image-placeholder-label {
  color: #8d95a6;
  font-size: 14px;
  font-weight: 700;
}

.image-remove-button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 3px solid white;
  border-radius: 999px;
  background: #ff7866;
  color: white;
  box-shadow: 0 8px 18px rgba(39, 56, 94, 0.18);
}

.image-remove-button svg {
  width: 18px;
  height: 18px;
}

.image-library-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
}

.image-thumb-card {
  display: grid;
  gap: 6px;
}

.image-thumb-card__frame {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f6fb;
}

.image-thumb-card__frame:hover {
  box-shadow: 0 10px 20px rgba(20, 33, 58, 0.12);
}

button.image-thumb-card__frame {
  padding: 0;
  border: none;
  cursor: pointer;
}

button.image-thumb-card__frame:focus {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(52, 109, 241, 0.18),
    0 10px 20px rgba(20, 33, 58, 0.12);
}

.image-thumb-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-thumb-card__remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid white;
  border-radius: 999px;
  background: #ff7866;
  color: white;
}

.image-thumb-card__remove svg {
  width: 14px;
  height: 14px;
}

.image-thumb-card__link {
  padding: 0;
  border: none;
  background: transparent;
  color: #356cf0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-align: left;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-upload-card {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 96px;
  height: 96px;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: #2f63df;
  color: white;
  text-align: center;
  box-shadow: 0 12px 24px rgba(39, 77, 183, 0.22);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}

.image-upload-card svg {
  width: 18px;
  height: 18px;
}

.crop-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.crop-viewport {
  position: relative;
  min-height: min(60vh, 540px);
  border: 1px solid #d4dae6;
  border-radius: 12px;
  background:
    linear-gradient(rgba(36, 41, 51, 0.48), rgba(36, 41, 51, 0.48)),
    #f1f3f8;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.crop-viewport.is-dragging {
  cursor: grabbing;
}

.crop-viewport::before {
  content: "";
  position: absolute;
  inset: 50%;
  width: min(72%, 440px);
  aspect-ratio: 1;
  border: 2px solid #7ab0ff;
  box-shadow:
    0 0 0 9999px rgba(29, 33, 41, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.crop-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
}

.crop-grid {
  position: absolute;
  inset: 50%;
  width: min(72%, 440px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.crop-grid::before,
.crop-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 33.333%, rgba(255, 255, 255, 0.32) 33.333%, rgba(255, 255, 255, 0.32) 34.2%, transparent 34.2%, transparent 66.666%, rgba(255, 255, 255, 0.32) 66.666%, rgba(255, 255, 255, 0.32) 67.4%, transparent 67.4%),
    linear-gradient(to bottom, transparent 33.333%, rgba(255, 255, 255, 0.32) 33.333%, rgba(255, 255, 255, 0.32) 34.2%, transparent 34.2%, transparent 66.666%, rgba(255, 255, 255, 0.32) 66.666%, rgba(255, 255, 255, 0.32) 67.4%, transparent 67.4%);
}

.crop-controls {
  display: grid;
  gap: 10px;
}

.crop-tool-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #2e333d;
  color: white;
  box-shadow: 0 8px 16px rgba(24, 28, 38, 0.16);
}

.crop-tool-button svg {
  width: 20px;
  height: 20px;
}

.settings-drawer__body {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 16px;
  overflow: auto;
}

.settings-form {
  display: grid;
  gap: 12px;
}

.settings-images {
  display: grid;
  gap: 12px;
}

.settings-images__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-images__toolbar .primary-button {
  width: 100%;
}

.images-list {
  display: grid;
  gap: 10px;
}

.image-record {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e1e7f5;
  border-radius: 14px;
  background: #f7f9ff;
  box-shadow: 0 8px 18px rgba(25, 41, 77, 0.06);
}

.image-record__thumb {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  border: 1px solid #e1e7f5;
  box-shadow: 0 8px 18px rgba(25, 41, 77, 0.08);
}

.image-record__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-record__meta {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.image-record__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.image-record__name {
  margin: 0;
  min-width: 0;
  color: #6f7688;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-record__delete {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e1e7f5;
  border-radius: 12px;
  background: white;
  color: #d54b3d;
}

.image-record__delete:hover {
  background: #fff5f4;
  border-color: #f2b8b1;
}

.image-record__delete svg {
  width: 18px;
  height: 18px;
}

.image-record__assignment {
  display: grid;
  gap: 8px;
}

.image-record__caption {
  color: #8a93a9;
  font-size: 12px;
  font-weight: 700;
}

.image-record__select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #dfe6f5;
  border-radius: 14px;
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.image-record__select:focus {
  outline: none;
  border-color: #8fb4ff;
  box-shadow:
    0 0 0 4px rgba(52, 109, 241, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.settings-placeholder {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.settings-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-form {
  display: grid;
  height: 100%;
  padding: 0;
  overflow: auto;
  background: white;
}

.drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-head h2 {
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 18px;
}

.drawer-head p {
  color: var(--muted);
  font-size: 12px;
}

.product-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.product-editor-head h2 {
  margin: 2px 0 6px;
  font-size: 18px;
}

.product-editor-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.product-editor-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: #8f99ad;
}

.drawer-icon-button svg {
  width: 18px;
  height: 18px;
}

.drawer-icon-button.is-active {
  color: #ffba2f;
}

.drawer-icon-button--close {
  color: #1f2533;
}

.product-editor-panel,
.product-editor-row {
  padding: 14px 16px;
  border-top: 6px solid #e9ebf1;
}

.product-editor-panel--identity {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
}

.product-media-card {
  position: relative;
  width: 108px;
  min-width: 108px;
}

.product-media-card__preview {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  overflow: hidden;
  border: 1px solid #d7dce6;
  border-radius: 12px;
  background: #f6f7fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.product-media-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media-card__camera {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 18px rgba(39, 88, 214, 0.2);
}

.product-media-card__camera svg {
  width: 18px;
  height: 18px;
}

.product-editor-main-fields {
  display: grid;
  gap: 12px;
}

.field--compact span,
.field--price span {
  color: #8c92a0;
  font-size: 11px;
  font-weight: 700;
}

.field--compact input,
.field--compact textarea,
.field--price input,
.row-select {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  background: white;
  color: var(--text);
  font-size: 13px;
}

.field--compact textarea {
  min-height: 70px;
  resize: none;
}

.product-filter-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.product-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-section-head h3,
.product-editor-row__copy h3 {
  margin: 0;
  color: #2a2f3d;
  font-size: 16px;
  font-weight: 700;
}

.segment-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(102px, 1fr));
  gap: 0;
  padding: 2px;
  border: 1px solid #c8d0dc;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(246, 248, 252, 0.95);
  overflow: hidden;
}

.segment-option {
  position: relative;
}

.segment-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.segment-option span {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 0 28px;
  background: white;
  color: #303746;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.segment-option:first-child span {
  border-radius: 10px 0 0 10px;
}

.segment-option:last-child span {
  border-radius: 0 10px 10px 0;
}

.segment-option input:checked + span {
  background: #ffffff;
  color: #3f79f6;
  box-shadow: inset 0 0 0 2px #3f79f6;
}

.price-panel {
  margin-top: 14px;
}

.field--price {
  position: relative;
  max-width: 400px;
  padding-top: 9px;
}

.field--price span {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 1;
  padding: 0 8px;
  background: white;
  color: #818898;
  font-size: 12px;
  font-weight: 500;
}

.field--price input {
  min-height: 62px;
  padding: 18px 18px 10px;
  border: 1.5px solid #b8becb;
  border-radius: 10px;
  color: #2a2f39;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.field--price input::placeholder {
  color: #2a2f39;
  opacity: 1;
}

.product-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip-toggle,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #cfd5df;
  border-radius: 10px;
  background: #f7f8fb;
  color: #5f6677;
  font-size: 12px;
  font-weight: 600;
}

.chip-toggle input {
  display: none;
}

.chip-toggle--available input:checked + span {
  color: #3a6d43;
}

.chip-toggle--available input:checked ~ span,
.chip-toggle--available span {
  display: inline-flex;
  align-items: center;
}

.chip-toggle--available {
  background: #dff3d8;
  border-color: #c8e8be;
  color: #3a6d43;
}

.product-editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-editor-row__copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.info-dot,
.row-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  background: #eef2fb;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.switch-control {
  position: relative;
  display: inline-flex;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.switch-control span {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #b7bdca;
}

.switch-control span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.switch-control input:checked + span {
  background: var(--blue);
}

.switch-control input:checked + span::after {
  transform: translateX(18px);
}

.row-plus-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.product-editor-row--select {
  align-items: start;
}

.row-select {
  min-width: 164px;
  background: white;
}

.variants-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.variants-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.variants-list {
  display: grid;
  gap: 8px;
}

.variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.8fr) auto;
  gap: 8px;
}

.variant-remove {
  color: var(--danger);
}

.product-form__footer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.setup-block,
.toggle-card {
  display: none;
}

.form-status {
  min-height: 22px;
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.form-status.is-error {
  color: var(--danger);
}

@media (max-width: 1180px) {
  .app-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 10px;
    padding-bottom: 12px;
    overflow: visible;
  }

  .brand-card__content {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .brand-metrics {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

@media (max-width: 840px) {
  .global-header {
    padding: 8px 12px;
  }

  .global-header,
  .global-header__left,
  .global-header__right,
  .global-header__support,
  .global-header__store {
    flex-wrap: wrap;
  }

  .workspace {
    padding: 10px;
  }

  .featured-card__header,
  .board-toolbar,
  .category-composer,
  .variants-panel__head,
  .drawer-head,
  .media-modal__footer,
  .crop-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-card__content,
  .form-grid,
  .toggle-grid,
  .variant-row,
  .product-row,
  .category-card__head {
    grid-template-columns: 1fr;
  }

  .brand-logo-column {
    justify-items: center;
  }

  .brand-copy {
    text-align: center;
  }

  .brand-metrics {
    justify-content: center;
  }

  .category-card__tools,
  .product-row__controls {
    justify-content: start;
    flex-wrap: wrap;
  }

  .product-row__side {
    justify-content: space-between;
    min-width: 0;
  }

  .product-drawer {
    top: 66px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .settings-drawer {
    top: 66px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .media-modal {
    padding: 10px;
  }

  .media-modal__dialog,
  .media-modal__dialog--crop {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .media-modal__body {
    max-height: calc(100vh - 162px);
    padding: 16px;
  }

  .image-library-main-preview img,
  .image-library-main-preview {
    max-width: 100%;
  }

  .image-remove-button {
    right: 14px;
  }

  .crop-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crop-controls {
    grid-template-columns: repeat(4, 1fr);
  }

  .crop-viewport {
    min-height: 380px;
  }
}
