@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --bg-primary: #FAF6F0;
  --bg-surface: #F1E9DD;
  --text-primary: #241F1A;
  --text-secondary: #8A7C6D;
  --accent: #1F1B17;
  --accent-warm: #C1603C;
  --border: #E5DBCB;
  --page: var(--bg-primary);
  --surface: #FFFCF7;
  --surface-soft: var(--bg-surface);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border);
  --accent-soft: #F2DED5;
  --success: #34704d;
  --danger: #ad4037;
  --sidebar: var(--accent);
  --shadow: 0 20px 56px rgba(73, 53, 35, .1);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}
.admin-brand-light { color: #fff; }
.admin-brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.admin-brand-wordmark {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}
.overline {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.overline-light { color: #c9d7cf; }

/* Login */
.login-page { min-height: 100vh; }
.login-shell { display: grid; grid-template-columns: minmax(390px, .86fr) 1.14fr; min-height: 100vh; }
.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 86% 14%, rgba(180, 93, 72, .55) 0 12%, transparent 12.4%),
    radial-gradient(circle at 74% 22%, transparent 0 17%, rgba(255,255,255,.08) 17.2% 17.5%, transparent 17.7%),
    var(--sidebar);
}
.login-intro h1 {
  max-width: 600px;
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}
.login-intro > div > p:last-child { max-width: 470px; margin: 0; color: rgba(255,255,255,.64); font-size: 18px; }
.login-footnote { margin: 0; color: rgba(255,255,255,.45); font-size: 12px; }
.login-panel { display: grid; place-items: center; min-height: 100vh; padding: 40px; }
.login-card { width: min(440px, 100%); }
.login-card h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 43px; font-weight: 400; letter-spacing: -.04em; }
.login-description { margin: 0 0 36px; color: var(--muted); }
.field-group { margin-bottom: 20px; }
.field-group label, .form-field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 750; }
input, select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(180, 93, 72, .1); }
input::placeholder { color: #a2a8a5; }
.password-field { position: relative; }
.password-field input { padding-right: 92px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 7px 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transform: translateY(-50%);
}
.primary-button, .secondary-button, .ghost-button, .danger-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.primary-button { color: #fff; background: var(--ink); }
.primary-button:hover { transform: translateY(-1px); background: #293934; }
.primary-button:disabled { opacity: .58; cursor: wait; transform: none; }
.secondary-button { border-color: var(--line); background: var(--surface); }
.secondary-button:hover, .ghost-button:hover { background: var(--surface-soft); }
.ghost-button { padding: 0 11px; color: var(--muted); background: transparent; }
.danger-button { border-color: #efcbc7; color: var(--danger); background: #fff8f7; }
.icon-button { width: 36px; min-height: 36px; padding: 0; border-color: var(--line); background: var(--surface); }
.login-submit { width: 100%; min-height: 52px; margin-top: 6px; }
.form-message { min-height: 22px; margin: 14px 0 0; font-size: 13px; text-align: center; }
.form-message.error { color: var(--danger); }

/* Admin shell */
.admin-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 27px 20px 22px;
  color: #fff;
  background: var(--sidebar);
}
.sidebar .admin-brand { padding: 0 9px; }
.sidebar-nav { display: grid; gap: 7px; margin-top: 52px; }
.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 47px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  color: rgba(255,255,255,.62);
  background: transparent;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.nav-button:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-button.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-icon { width: 20px; font-size: 17px; text-align: center; }
.sidebar-account { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgba(255,255,255,.11); }
.account-label { margin: 0 0 3px; color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.account-email { display: block; max-width: 180px; overflow: hidden; color: rgba(255,255,255,.78); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { margin-top: 13px; padding: 0; border: 0; color: rgba(255,255,255,.54); background: transparent; font-size: 12px; cursor: pointer; }
.logout-button:hover { color: #fff; }
.admin-main { min-width: 0; padding: 34px clamp(24px, 4vw, 62px) 70px; }
.main-topbar { display: flex; justify-content: space-between; align-items: center; min-height: 45px; margin-bottom: 48px; }
.store-identity { display: flex; align-items: center; gap: 11px; }
.store-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(180,93,72,.12); }
.store-identity strong { display: block; font-size: 14px; }
.store-identity span { display: block; color: var(--muted); font-size: 11px; }
.mobile-nav-toggle { display: none; }
.content-section { display: none; }
.content-section.active { display: block; animation: section-in .26s ease both; }
@keyframes section-in { from { opacity: 0; transform: translateY(6px); } }
.content-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.content-header h1 { margin: 0 0 7px; font-family: Georgia, serif; font-size: clamp(37px, 4vw, 52px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.content-header p { margin: 0; color: var(--muted); }
.count-badge { display: inline-flex; align-items: center; height: 25px; margin-left: 8px; padding: 0 9px; border-radius: 999px; color: var(--muted); background: #e4e4df; font-family: Inter, sans-serif; font-size: 11px; vertical-align: middle; }

.data-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgba(28, 38, 33, .035); overflow: hidden; }
.product-table, .order-table { width: 100%; border-collapse: collapse; }
.product-table th, .order-table th { padding: 13px 18px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.product-table td, .order-table td { padding: 15px 18px; border-top: 1px solid #ecece8; vertical-align: middle; }
.product-table td:nth-child(2) { white-space: nowrap; }
.product-cell { display: flex; align-items: center; gap: 13px; min-width: 210px; }
.product-thumb { flex: 0 0 auto; width: 48px; height: 58px; border-radius: 10px; background: #eceae3 center / cover no-repeat; }
.product-thumb.placeholder { display: grid; place-items: center; color: #a4aaa6; font-size: 18px; }
.product-name { font-weight: 750; }
.product-subline { margin-top: 3px; color: var(--muted); font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; color: var(--success); background: #e9f3ec; font-size: 11px; font-weight: 700; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.draft { color: #7d7363; background: #f0ede7; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.empty-state { padding: 72px 28px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; color: var(--muted); background: var(--surface-soft); font-size: 24px; }
.empty-state h3 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.empty-state p { margin: 0; color: var(--muted); }

.category-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 25px; align-items: start; }
.category-list { display: grid; }
.category-row { display: flex; align-items: center; gap: 13px; min-height: 67px; padding: 10px 17px; border-bottom: 1px solid #ecece8; }
.category-row:last-child { border-bottom: 0; }
.drag-handle { color: #adb1ae; letter-spacing: -2px; }
.category-row-name { flex: 1; font-weight: 700; }
.category-row-count { color: var(--muted); font-size: 12px; }
.category-row input { flex: 1; height: 42px; }
.side-form-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.side-form-card h3 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.side-form-card > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.side-form-card .primary-button { width: 100%; margin-top: 5px; }

.settings-card { max-width: 720px; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.settings-block + .settings-block { margin-top: 36px; padding-top: 31px; border-top: 1px solid var(--line); }
.settings-block h3 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.settings-block > p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.color-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.color-option { position: relative; cursor: pointer; }
.color-option input { position: absolute; opacity: 0; pointer-events: none; }
.color-swatch { display: grid; place-items: end center; height: 96px; padding: 9px; border: 2px solid transparent; border-radius: 14px; color: #fff; font-size: 10px; font-weight: 700; transition: transform .18s ease, border-color .18s ease; }
.color-option input:checked + .color-swatch { border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff; transform: translateY(-2px); }
.settings-actions { display: flex; justify-content: flex-end; margin-top: 31px; }

/* Orders */
.order-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -18px 0 22px; }
.filter-chip { min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 13px; font-weight: 650; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.filter-chip:hover { color: var(--ink); background: var(--surface-soft); }
.filter-chip.active { border-color: var(--accent); color: #fff; background: var(--accent); }
.order-table-scroll { overflow-x: auto; }
.order-number { font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.order-customer { font-weight: 700; }
.order-subline { margin-top: 3px; color: var(--muted); font-size: 11px; }
.order-table td:nth-child(3) { white-space: nowrap; }
.order-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-soft); }
.order-pagination-hint { color: var(--muted); font-size: 12px; }
.status-pill.order-status-new { color: var(--accent-warm); background: var(--accent-soft); }
.status-pill.order-status-confirmed { color: #315C73; background: #e3edf3; }
.status-pill.order-status-fulfilled { color: var(--success); background: #e9f3ec; }
.status-pill.order-status-cancelled,
.status-pill.order-notification-failed { color: var(--danger); background: #f8ebe9; }
.status-pill.order-notification-sent { color: var(--success); background: #e9f3ec; }
.status-pill.order-notification-pending,
.status-pill.order-status-unknown,
.status-pill.order-notification-unknown { color: var(--muted); background: var(--surface-soft); }
.order-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0 0 30px; }
.order-fact dt { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.order-fact dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.order-items-title { margin: 0 0 14px; font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 600; }
.order-items { display: grid; gap: 1px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--border); list-style: none; overflow: hidden; }
.order-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 13px 16px; background: var(--surface); }
.order-item-name { font-weight: 650; overflow-wrap: anywhere; }
.order-item-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.order-note { margin: 0; color: var(--muted); font-size: 13px; }

/* Product dialog */
dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 34px); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--surface); box-shadow: 0 28px 80px rgba(19, 29, 25, .24); overflow: hidden; }
dialog::backdrop { background: rgba(17, 27, 23, .58); backdrop-filter: blur(4px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-family: Georgia, serif; font-size: 30px; font-weight: 400; letter-spacing: -.03em; }
.dialog-close { width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-soft); font-size: 22px; cursor: pointer; }
.dialog-body { max-height: calc(100vh - 185px); padding: 25px; overflow-y: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field.full { grid-column: 1 / -1; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; }
.toggle-row span { font-size: 13px; font-weight: 700; }
.switch { position: relative; width: 43px; height: 24px; }
.switch input { position: absolute; opacity: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 99px; background: #cfd3d0; cursor: pointer; transition: background .2s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.16); transition: transform .2s ease; }
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::after { transform: translateX(19px); }
.upload-area { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 13px; border: 1px dashed #c8ccc9; border-radius: 13px; background: var(--surface-soft); }
.image-preview { display: grid; place-items: center; width: 92px; height: 104px; border-radius: 10px; color: #969e99; background: #e8e8e3 center / cover no-repeat; font-size: 24px; overflow: hidden; }
.upload-copy strong { display: block; margin-bottom: 4px; }
.upload-copy p { margin: 0 0 9px; color: var(--muted); font-size: 11px; }
.file-input { height: auto; padding: 8px; background: var(--surface); font-size: 11px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 25px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.toast-region { position: fixed; z-index: 20; right: 22px; bottom: 22px; display: grid; gap: 9px; width: min(370px, calc(100% - 44px)); }
.toast { padding: 14px 16px; border-radius: 12px; color: #fff; background: var(--ink); box-shadow: var(--shadow); animation: toast-in .25s ease both; }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.app-loading { display: grid; place-items: center; min-height: 100vh; }
.loading-card { text-align: center; }
.spinner { width: 34px; height: 34px; margin: 0 auto 15px; border: 3px solid #d8d9d4; border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.access-error { display: grid; place-items: center; min-height: 100vh; padding: 25px; text-align: center; }
.access-error-card { max-width: 520px; padding: 42px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.access-error-card h1 { font-family: Georgia, serif; font-size: 38px; font-weight: 400; }

/* Warm editorial layer */
.login-intro h1,
.login-card h2,
.content-header h1,
.product-name,
.empty-state h3,
.side-form-card h3,
.settings-block h3,
.dialog-header h2,
.access-error-card h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}
.overline { color: var(--accent-warm); }
.overline-light { color: #E9C6B8; }
.login-intro {
  padding: clamp(46px, 6.5vw, 94px);
  background:
    radial-gradient(circle at 86% 14%, rgba(193,96,60,.58) 0 12%, transparent 12.4%),
    radial-gradient(circle at 74% 22%, transparent 0 17%, rgba(255,255,255,.08) 17.2% 17.5%, transparent 17.7%),
    var(--accent);
}
.login-panel { padding: 54px; }
.login-card h2 { margin-bottom: 14px; font-size: 46px; }
.login-description { margin-bottom: 46px; }
.field-group { margin-bottom: 25px; }
input, select { height: 54px; border-color: var(--border); }
input:focus, select:focus { border-color: var(--accent-warm); box-shadow: 0 0 0 4px rgba(193,96,60,.12); }
.primary-button, .secondary-button, .ghost-button, .danger-button, .icon-button { min-height: 46px; }
.primary-button { color: #fff; background: var(--accent); }
.primary-button:hover { background: #352E28; }
.login-submit { min-height: 54px; margin-top: 8px; }
.sidebar { padding-top: 36px; padding-bottom: 26px; background: var(--accent); }
.sidebar-nav { margin-top: 68px; gap: 8px; }
.nav-button { min-height: 48px; }
.admin-main { padding: 46px clamp(30px, 5vw, 82px) 92px; }
.main-topbar { min-height: 48px; margin-bottom: 64px; }
.content-header { gap: 30px; margin-bottom: 38px; }
.content-header h1 { margin-bottom: 9px; font-size: clamp(42px, 4.5vw, 60px); line-height: .98; }
.data-card { border-color: var(--border); box-shadow: 0 10px 34px rgba(73,53,35,.04); }
.product-table th, .order-table th { padding: 16px 20px; }
.product-table td, .order-table td { padding: 18px 20px; border-top-color: var(--border); }
.product-name { font-size: 16px; }
.empty-state { padding: 94px 32px; }
.empty-icon { display:grid; place-items:center; width:130px; height:92px; margin:0 auto 22px; color:var(--accent-warm); background:transparent; }
.empty-icon svg { width:100%; height:100%; }
.empty-icon path { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.empty-state h3 { margin-bottom: 8px; font-size: 29px; }
.side-form-card { padding: 31px; }
.side-form-card h3, .settings-block h3 { font-size: 27px; }
.settings-card { max-width:760px; padding:clamp(32px,5vw,54px); }
.settings-block + .settings-block { margin-top:47px; padding-top:41px; }
.settings-actions { margin-top:40px; }
dialog { width:min(780px,calc(100% - 28px)); border-radius:24px; box-shadow:0 28px 80px rgba(54,38,25,.24); }
.dialog-header { padding:28px 31px; }
.dialog-header h2 { font-size:34px; }
.dialog-body { max-height:calc(100vh - 198px); padding:31px; }
.form-grid { gap:25px; }
.dialog-footer { padding:20px 31px; }
.spinner { border-top-color:var(--accent-warm); }

@media (max-width: 950px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { min-height: 380px; }
  .login-intro h1 { font-size: 58px; }
  .login-panel { min-height: auto; padding: 70px 25px; }
  .admin-layout { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .sidebar .admin-brand span:last-child, .nav-label, .sidebar-account { display: none; }
  .sidebar .admin-brand { justify-content: center; padding: 0; }
  .nav-button { justify-content: center; padding: 0; }
  .category-layout { grid-template-columns: 1fr; }
  .side-form-card { order: -1; }
  .product-table th:nth-child(3), .product-table td:nth-child(3) { display: none; }
  .order-table { min-width: 660px; }
}

@media (max-width: 680px) {
  .admin-layout { display: block; }
  .sidebar { position: sticky; z-index: 10; top: 0; display: block; width: 100%; height: auto; padding: 12px 15px; }
  .sidebar-header { display: flex; align-items: center; justify-content: space-between; }
  .sidebar .admin-brand { justify-content: flex-start; }
  .sidebar .admin-brand span:last-child { display: inline; }
  .mobile-nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #fff; background: transparent; font-size: 19px; }
  .sidebar-nav { display: none; margin: 14px 0 3px; }
  .sidebar.nav-open .sidebar-nav { display: grid; }
  .nav-button { justify-content: flex-start; padding: 0 14px; }
  .nav-label { display: inline; }
  .admin-main { padding: 27px 15px 55px; }
  .main-topbar { margin-bottom: 36px; }
  .content-header { align-items: stretch; flex-direction: column; }
  .content-header .primary-button { width: 100%; }
  .data-card { border-radius: 14px; overflow-x: auto; }
  .product-table { min-width: 630px; }
  .product-table th:nth-child(3), .product-table td:nth-child(3) { display: table-cell; }
  .order-filters { margin-top: -10px; }
  .order-pagination { flex-direction: column; align-items: stretch; }
  .order-facts { grid-template-columns: 1fr; }
  .order-item { grid-template-columns: minmax(0, 1fr) auto; }
  .order-item-meta { grid-column: 1 / -1; }
  .color-options { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .dialog-body { padding: 20px 18px; }
  .dialog-header, .dialog-footer { padding-inline: 18px; }
  .upload-area { grid-template-columns: 72px 1fr; }
  .image-preview { width: 72px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
