/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --cream:      #FDFAF7;
  --cream-dark: #F7F3EE;
  --ink:        #1C1917;
  --ink-light:  #57534E;
  --ink-faint:  #A8A29E;
  --terra:      #B85C38;
  --terra-dark: #9A4D2E;
  --terra-light:#F2E5DF;
  --green:      #3D7A5C;
  --green-light:#E8F5EE;
  --red:        #C0392B;
  --red-light:  #FDECEA;
  --yellow:     #D4A017;
  --yellow-light:#FEF9E7;
  --border:     #E7E2DC;
  --shadow:     0 1px 3px rgba(28,25,23,.08), 0 1px 2px rgba(28,25,23,.06);
  --shadow-md:  0 4px 6px rgba(28,25,23,.07), 0 2px 4px rgba(28,25,23,.06);
  --radius:     10px;
  --radius-sm:  6px;
  --nav-h:      64px;    /* top nav height */
  --tab-h:      60px;    /* bottom tab bar height on mobile */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Loading ────────────────────────────────────────────────────────────── */
.app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--terra);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Login ──────────────────────────────────────────────────────────────── */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
  background: var(--cream-dark);
}
.login-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}
.login-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 4px;
}
.login-tagline {
  color: var(--ink-light);
  font-size: 14px;
  margin-bottom: 32px;
}
.login-error {
  background: var(--red-light);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Top nav */
.top-nav {
  background: var(--ink);
  color: #fff;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}
.top-nav-brand {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #fff;
  flex: 1;
}
.top-nav-brand span { color: var(--terra); }
.top-nav-user {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.top-nav-logout {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background .15s;
}
.top-nav-logout:hover { background: rgba(255,255,255,.1); }

/* Main content area */
.main-content {
  flex: 1;
  padding: 24px 20px calc(var(--tab-h) + 16px);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .main-content { padding-bottom: 32px; }
}

/* ─── Bottom Tab Bar (mobile) ────────────────────────────────────────────── */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tab-h);
  background: var(--cream);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .15s;
  padding: 8px 4px;
  -webkit-tap-highlight-color: transparent;
}
.tab-item.active { color: var(--terra); }
.tab-item svg { width: 22px; height: 22px; stroke-width: 1.75; }
.tab-item.active svg { stroke-width: 2.25; }
.tab-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  background: var(--terra);
  color: #fff;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ─── Mobile "More" menu ─────────────────────────────────────────────────── */
.more-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.more-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  padding: 16px 8px;
  -webkit-tap-highlight-color: transparent;
}
.more-menu-item:hover { background: var(--cream-dark); }
.more-menu-item svg { width: 22px; height: 22px; stroke-width: 1.75; }

/* Desktop: hide tab bar, show horizontal nav */
@media (min-width: 768px) {
  .tab-bar { display: none; }
  .main-content { padding-bottom: 40px; }
  .desktop-nav {
    background: var(--cream-dark);
    border-bottom: 1px solid var(--border);
    display: flex;
    padding: 0 20px;
    overflow-x: auto;
    flex-shrink: 0;
  }
}
.desktop-nav { display: none; }
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}
.desktop-nav-item {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-light);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.desktop-nav-item:hover { color: var(--ink); }
.desktop-nav-item.active { color: var(--terra); border-bottom-color: var(--terra); }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(184,92,56,.12);
}
.form-control::placeholder { color: var(--ink-faint); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2357534E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.form-row { display: grid; gap: 12px; }
@media (min-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--terra); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s, opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); }
.btn-secondary { background: var(--cream-dark); color: var(--ink); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-danger    { background: var(--red-light); color: var(--red); border: 1.5px solid #f5c6c6; }
.btn-danger:hover { background: #f5c6c6; }
.btn-success   { background: var(--green-light); color: var(--green); border: 1.5px solid #c3e6d5; }
.btn-ghost     { background: none; color: var(--ink-light); padding: 10px 10px; }
.btn-ghost:hover { background: var(--cream-dark); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
}
.card-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 6px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat-value.positive { color: var(--green); }
.stat-value.negative { color: var(--red); }
.stat-sub { font-size: 12px; color: var(--ink-light); margin-top: 4px; }

/* ─── Page headers ───────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ink);
}
.page-subtitle { font-size: 14px; color: var(--ink-light); margin-top: 2px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: var(--cream-dark);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-light);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--cream-dark); }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-green  { background: var(--green-light);  color: var(--green); }
.badge-red    { background: var(--red-light);    color: var(--red); }
.badge-yellow { background: var(--yellow-light); color: var(--yellow); }
.badge-gray   { background: var(--cream-dark);   color: var(--ink-light); }
.badge-terra  { background: var(--terra-light);  color: var(--terra-dark); }

/* ─── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 12px;
}
.alert svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.alert-warn  { background: var(--yellow-light); color: #7A5C0A; }
.alert-error { background: var(--red-light);    color: var(--red); }
.alert-info  { background: var(--terra-light);  color: var(--terra-dark); }
.alert-success { background: var(--green-light); color: var(--green); }

/* ─── Toast notifications ────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: calc(var(--tab-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
  width: min(90vw, 360px);
}
@media (min-width: 768px) {
  #toast-container { bottom: 24px; left: auto; right: 24px; transform: none; }
}
.toast {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  animation: toast-in .25s ease;
  pointer-events: all;
}
.toast.toast-success { background: var(--green); }
.toast.toast-error   { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(28,25,23,.5);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in .2s ease;
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--cream);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  overflow-y: auto;
  animation: slide-up .25s ease;
  padding: 24px;
}
@media (min-width: 640px) {
  .modal { border-radius: var(--radius); }
}
@keyframes slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-family: var(--font-serif); font-size: 20px; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--ink-faint); padding: 4px; border-radius: 4px; }
.modal-close:hover { background: var(--cream-dark); }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; }

/* ─── Design / Product Grid ──────────────────────────────────────────────── */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
@media (min-width: 640px) {
  .design-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
.design-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
  box-shadow: var(--shadow);
}
.design-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.design-card-photo {
  aspect-ratio: 1;
  background: var(--cream-dark);
  overflow: hidden;
  position: relative;
}
.design-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.design-card-photo .no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ink-faint);
}
.design-card-body { padding: 12px; }
.design-card-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.design-card-meta { font-size: 12px; color: var(--ink-light); display: flex; justify-content: space-between; }

/* ─── Quick Sale Grid ────────────────────────────────────────────────────── */
.qs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .qs-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
.qs-card {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.qs-card:active { transform: scale(.96); }
.qs-card.selected { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(184,92,56,.2); }
.qs-card.out-of-stock { opacity: .45; cursor: not-allowed; }
.qs-card-photo { aspect-ratio: 1; background: var(--cream-dark); overflow: hidden; }
.qs-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.qs-card-body { padding: 8px 10px; }
.qs-card-design { font-size: 11px; color: var(--ink-light); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.qs-card-type { font-size: 13px; font-weight: 600; margin: 2px 0; }
.qs-card-price { font-size: 15px; font-weight: 700; color: var(--terra); }
.qs-stock-chip {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 2px;
}
.qs-stock-chip.low  { background: var(--yellow-light); color: var(--yellow); }
.qs-stock-chip.ok   { background: var(--green-light); color: var(--green); }
.qs-stock-chip.sold { background: var(--red-light); color: var(--red); }

/* ─── Filters bar ────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: flex-end;
}
.filter-bar .form-control { max-width: 180px; }
.filter-bar .form-control-sm { padding: 8px 10px; font-size: 14px; }

/* ─── Section separators ─────────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--ink);
}
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-faint);
}
.empty-state svg { margin: 0 auto 12px; opacity: .4; }
.empty-state p { font-size: 15px; }
.empty-state small { font-size: 13px; }

/* ─── Consignment / Wholesale list ──────────────────────────────────────── */
.store-list { display: flex; flex-direction: column; gap: 12px; }
.store-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .15s;
  flex-wrap: wrap;
}
.store-card:hover { box-shadow: var(--shadow-md); }
.store-card.overdue { border-left: 3px solid var(--yellow); }
.store-card-name { font-size: 16px; font-weight: 600; }
.store-card-meta { font-size: 13px; color: var(--ink-light); }
.store-card-actions { display: flex; gap: 6px; }

/* ─── Chart placeholder ──────────────────────────────────────────────────── */
.chart-wrap { position: relative; }
canvas.chart { max-width: 100%; }

/* ─── Misc utilities ─────────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--ink-faint); }
.text-light { color: var(--ink-light); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-terra { color: var(--terra); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ─── Quick Sale — Active Event Banner ──────────────────────────────────── */
.qs-event-banner {
  border-radius: var(--radius);
  margin-bottom: 16px;
  padding: 12px 16px;
}
.qs-event-banner-idle {
  background: var(--cream-dark);
  border: 1.5px dashed var(--border);
}
.qs-event-banner-set {
  background: var(--terra-light);
  border: 1.5px solid rgba(184,92,56,.35);
}
.qs-event-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qs-event-banner-inner > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.75;
}
.qs-event-banner-idle .qs-event-banner-inner > svg { color: var(--ink-faint); }
.qs-event-banner-set  .qs-event-banner-inner > svg { color: var(--terra); }
.qs-event-banner-text { flex: 1; }
.qs-event-banner-name { font-size: 14px; font-weight: 600; color: var(--terra-dark); }
.qs-event-banner-sub  { font-size: 12px; color: var(--terra); margin-top: 1px; }
.qs-event-banner-idle-label { flex: 1; font-size: 14px; color: var(--ink-light); }

/* Receipt scan preview */
.receipt-preview {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.receipt-preview:hover { border-color: var(--terra); background: var(--terra-light); }
.receipt-preview img { max-height: 200px; margin: 0 auto 12px; border-radius: var(--radius-sm); }

/* Product variant list within design view */
.variant-list { display: flex; flex-direction: column; gap: 8px; }
.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  gap: 12px;
  flex-wrap: wrap;
}
.variant-row.low-stock { border-left: 3px solid var(--yellow); }
.variant-row.no-stock  { border-left: 3px solid var(--red); }
.variant-name { font-size: 14px; font-weight: 600; }
.variant-meta { font-size: 12px; color: var(--ink-light); }
.variant-price { font-size: 14px; font-weight: 700; color: var(--terra); }
.variant-stock { font-size: 13px; font-weight: 600; }
.variant-actions { display: flex; gap: 4px; }

/* ─── Responsive tweaks ──────────────────────────────────────────────────── */
@media (max-width: 479px) {
  .page-title { font-size: 22px; }
  .card { padding: 16px; }
  .modal { padding: 16px; }
  .design-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Print styles for invoices */
@media print {
  .top-nav, .tab-bar, .desktop-nav, .btn, .modal-overlay { display: none !important; }
  .main-content { padding: 0; max-width: 100%; }
}
