.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,5,2,.78);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(var(--sp-6), 4vw, var(--sp-10));
  width: 100%;
  max-width: 420px;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  animation: modalIn .35s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  from { transform: translateY(20px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--cream-dk);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background .2s, color .2s;
}
.modal__close:hover { background: var(--blush); color: var(--brown); }
.modal__header {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.modal__brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--brown);
  line-height: 1;
}
.modal__subtitle {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-top: var(--sp-1);
  line-height: 1;
}
.modal__prompt {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  line-height: 1.4;
}
.role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.role-card {
  border: 2px solid #E8DDD4;
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-3);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--white);
}
.role-card:hover  { border-color: var(--gold); background: var(--cream); }
.role-card.is-active { border-color: var(--gold-dk); background: var(--cream-dk); }
.role-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dk);
  margin: 0 auto var(--sp-3);
  transition: background .2s;
}
.role-card.is-active .role-card__icon { background: var(--blush); }
.role-card__name { font-size: 0.9375rem; font-weight: 700; color: var(--brown); line-height: 1.2; margin-bottom: var(--sp-1); }
.role-card__desc { font-size: 0.6875rem; color: var(--text-muted); line-height: 1.4; }
.login-form { margin-top: var(--sp-5); }
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
  line-height: 1;
}
.field input {
  display: block;
  width: 100%;
  padding: 10px var(--sp-3);
  border: 1.5px solid #DDD5CC;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  line-height: 1.4;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.15); }
.login-hint {
  min-height: 18px;
  font-size: 0.75rem;
  margin-bottom: var(--sp-2);
  line-height: 1.4;
}
.login-hint--info  { color: var(--gold-dk); }
.login-hint--error { color: #C0392B; }
.btn-login {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--brown);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.btn-login:hover { background: var(--gold-dk); }
.login-back {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gold-dk);
  margin-top: var(--sp-3);
  cursor: pointer;
  line-height: 1;
  transition: text-decoration .1s;
}
.login-back:hover { text-decoration: underline; }

.dash-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: none;
  background: #F2EDE8;
}
.dash-overlay.is-open { display: flex; }
.dash-layout { display: flex; width: 100%; height: 100%; overflow: hidden; }

/* Sidebar */
.dash-sidebar {
  width: 220px;
  min-width: 220px;
  /* Super Admin — deep mahogany gold */
  background: linear-gradient(180deg, #2A1408 0%, #1A0C05 100%);
  border-right: 1px solid rgba(196,144,58,.15);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  transition: left .3s ease;
}
/* Retailer — deep navy blue */
.dash-sidebar--retailer {
  background: linear-gradient(180deg, #0D1B2A 0%, #081018 100%);
  border-right: 1px solid rgba(56,189,248,.12);
}
.sidebar-brand {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--gold-lt);
  letter-spacing: 0.06em;
  line-height: 1.2;
}
/* Retailer sidebar — blue tint brand name */
.dash-sidebar--retailer .sidebar-brand__name { color: #BAE6FD; }
.dash-sidebar--retailer .sidebar-nav__item { color: #94A3B8; }
.dash-sidebar--retailer .sidebar-nav__item:hover { background: rgba(56,189,248,.1); color: #7DD3FC; }
.dash-sidebar--retailer .sidebar-nav__item.is-active { background: rgba(56,189,248,.15); color: #38BDF8; }
.dash-sidebar--retailer .sidebar-logout { color: #F87171; }
.dash-sidebar--retailer .sidebar-logout:hover { background: rgba(248,113,113,.15); }
/* Retailer dashboard — blue accent */
#dashRT .stat-card { border-left-color: #38BDF8; }
#dashRT .stat-card__val { color: #0369a1; }
#dashRT .dash-body { background: #F0F6FB; }
#dashSA .stat-card { border-left-color: #C4903A; }
#dashSA .stat-card__val { color: #A07428; }
#dashSA .dash-body { background: #FBF6F0; }

.sidebar-brand__badge {
  display: inline-flex;
  align-items: center;
  margin-top: var(--sp-2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
}
.sidebar-brand__badge--sa  { background: rgba(196,144,58,.25); color: #E8C878; border: 1px solid rgba(196,144,58,.3); }
.sidebar-brand__badge--ret { background: rgba(56,189,248,.18); color: #7DD3FC; border: 1px solid rgba(56,189,248,.25); }
.sidebar-nav { flex: 1; padding: var(--sp-3) var(--sp-2); }
.sidebar-nav__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: 9px 11px;
  border: none;
  border-radius: var(--radius-md);
  background: none;
  color: #c8b8a8;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background .2s, color .2s;
}
.sidebar-nav__item:hover  { background: rgba(201,169,97,.1); color: var(--gold-lt); }
.sidebar-nav__item.is-active { background: rgba(201,169,97,.18); color: var(--gold-lt); font-weight: 700; }
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-2) var(--sp-2) var(--sp-4);
  padding: 10px 11px;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(220,50,50,.1);
  color: #E08080;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  cursor: pointer;
  width: calc(100% - var(--sp-5));
  margin-inline: auto;
  transition: background .2s;
  line-height: 1;
}
.sidebar-logout:hover { background: rgba(220,50,50,.2); }

/* Dash main area */
.dash-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(var(--sp-4), 2.5vw, var(--sp-8));
  background: var(--white);
  border-bottom: 1px solid #EDE5DC;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: var(--sp-2);
  min-height: 52px;
}
.dash-topbar__welcome { font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
.dash-topbar__welcome strong { color: var(--brown); }
.dash-topbar__date { font-size: 0.75rem; color: var(--text-muted); line-height: 1; }
.dash-body { flex: 1; overflow-y: auto; padding: clamp(var(--sp-4), 2.5vw, var(--sp-8)); }
.dash-tab { display: none; }
.dash-tab.is-active { display: block; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(var(--sp-3), 1.5vw, var(--sp-5));
  margin-bottom: var(--sp-6);
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(var(--sp-4), 2vw, var(--sp-6));
  box-shadow: 0 2px 12px rgba(92,61,46,.07);
  border-left: 4px solid var(--gold);
}
.stat-card__val {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1;
}
.stat-card__change { font-size: 0.6875rem; color: #27AE60; line-height: 1; }
.stat-card__change.neutral { color: #888; }

/* Panel title + action row */
.panel-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 8px var(--sp-4);
  background: var(--gold-dk);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  line-height: 1;
  transition: background .2s;
}
.btn-action:hover { background: var(--brown); }

/* Table */
.table-wrapper { background: var(--white); border-radius: var(--radius-md); box-shadow: 0 2px 12px rgba(92,61,46,.06); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; min-width: 600px; table-layout: fixed; }
.data-table thead tr { background: var(--cream-dk); }
.data-table th {
  padding: 11px var(--sp-4);
  text-align: left;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
}
.data-table td {
  padding: 10px var(--sp-4);
  height: 68px;
  border-bottom: 1px solid #F0E8E0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  vertical-align: middle;
  box-sizing: border-box;
}
.data-table--products td:first-child { overflow: visible; white-space: normal; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #FDF8F3; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}
.pill--delivered { background: #E8F8EF; color: #1D8348; }
.pill--processing { background: #FEF3CD; color: #C87D10; }
.pill--shipped    { background: #E8F0FE; color: #2B62BA; }
.pill--pending    { background: #FDE8E8; color: #C0392B; }
.pill--active     { background: #E8F8EF; color: #1D8348; }
.pill--limited    { background: #FEF3CD; color: #C87D10; }
.pill--out        { background: #FDE8E8; color: #C0392B; }
.pill--new        { background: #FEF3CD; color: #C87D10; }
.tbl-btn {
  border: 1px solid currentColor;
  background: none;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-dk);
  cursor: pointer;
  padding: 3px 9px;
  border-radius: 20px;
  transition: background .18s, color .18s;
  line-height: 1.5;
  white-space: nowrap;
}
.tbl-btn:hover { background: var(--gold-dk); color: #fff; }
.tbl-btn--delete { color: #C0392B; }
.tbl-btn--delete:hover { background: #C0392B; color: #fff; }
.tbl-btn--img { color: #5B7FA6; border-color: #5B7FA6; }
.tbl-btn--img:hover { background: #5B7FA6; color: #fff; }
.tbl-actions { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--sp-4), 2vw, var(--sp-6)); }
.settings-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(var(--sp-5), 2vw, var(--sp-6));
  box-shadow: 0 2px 12px rgba(92,61,46,.06);
}
.settings-card__title {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--cream-dk);
  margin-bottom: var(--sp-4);
  line-height: 1;
}

/* Catalogue */
.catalogue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(var(--sp-3), 1.5vw, var(--sp-5)); }
.cat-prod-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 12px rgba(92,61,46,.06); }
.cat-prod-img { height: 130px; }
.cat-prod-body { padding: var(--sp-4); }
.cat-prod-name { font-size: 0.875rem; font-weight: 600; color: var(--brown); margin-bottom: var(--sp-2); line-height: 1.3; }
.cat-prod-price { font-size: 0.9375rem; font-weight: 700; color: var(--gold-dk); display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: var(--sp-3); line-height: 1; }
.cat-prod-price s { font-size: 0.75rem; color: #B0A090; font-weight: 400; }

/* Mobile sidebar overlay */
.dash-sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1850;
}
.dash-sb-overlay.is-visible { display: block; }
.dash-mob-toggle {
  display: none;
  position: fixed;
  bottom: 80px;
  left: var(--sp-4);
  z-index: 1900;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brown);
  border: none;
  color: var(--white);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

/* Folder grid */
.col-folder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.col-folder {
  background: var(--white);
  border: 2px solid #EDE5DC;
  border-radius: 12px;
  padding: 20px 16px 14px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.col-folder:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.col-folder.is-open { border-color: var(--gold-dk); background: var(--cream); }
/* Upload button on folder card */
.col-folder__upload {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 12px;
  padding: 7px 14px;
  background: var(--gold-dk); color: #fff;
  border: none; border-radius: 20px;
  font-family: var(--font-body); font-size: .6875rem; font-weight: 700;
  letter-spacing: .04em; cursor: pointer; line-height: 1;
  transition: background .2s, transform .15s;
  width: 100%;
  justify-content: center;
}
.col-folder__upload:hover { background: var(--brown); transform: translateY(-1px); }
/* View link on folder */
.col-folder__view {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px;
  font-size: .6875rem; font-weight: 600; color: var(--text-muted);
  background: none; border: none; cursor: pointer; line-height: 1;
  width: 100%; justify-content: center; padding: 4px 0;
  transition: color .2s;
}
.col-folder__view:hover { color: var(--gold-dk); }
.col-folder__icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.6rem;
}
.col-folder__name { font-size: .875rem; font-weight: 700; color: var(--brown); margin-bottom: 4px; line-height: 1.2; }
.col-folder__meta { font-size: .6875rem; color: var(--text-muted); line-height: 1; }
.col-folder__count {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold-dk); color: #fff;
  border-radius: 20px; font-size: .6rem; font-weight: 800;
  padding: 2px 7px; line-height: 1.4;
}

/* Product panel inside folder */
.col-products-panel { display: none; }
.col-products-panel.is-open { display: block; }
.col-panel-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.col-panel-back {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none;
  color: var(--gold-dk); font-size: .8125rem; font-weight: 700;
  cursor: pointer; padding: 6px 0; line-height: 1;
}
.col-panel-back:hover { text-decoration: underline; }
.col-panel-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--brown); flex: 1; }

/* Product card in collection view */
.col-prod-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col-prod-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EDE5DC;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: box-shadow .2s;
}
.col-prod-card:hover { box-shadow: var(--shadow-md); }
.col-prod-thumb {
  width: 88px;
  min-width: 88px;
  background: var(--cream-dk);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; position: relative;
}
.col-prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.col-prod-thumb .no-img { color: var(--gold-dk); opacity: .4; }
.featured-badge {
  position: absolute; bottom: 4px; left: 0; right: 0;
  background: rgba(245,166,35,.92); color: #fff;
  font-size: .5rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 4px; line-height: 1.3; text-align:center;
}
.col-prod-body {
  padding: 10px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.col-prod-name { font-size: .8125rem; font-weight: 600; color: var(--brown); margin-bottom: 3px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-prod-price { font-size: .875rem; font-weight: 700; color: var(--gold-dk); line-height: 1; margin-bottom: 2px; display: inline; }
.col-prod-mrp { font-size: .7rem; color: #b0a090; text-decoration: line-through; line-height: 1; margin-left: 5px; display: inline; }
.col-prod-stock { font-size: .6rem; font-weight: 600; color: var(--text-muted); margin-top: 3px; margin-bottom: 8px; line-height: 1; }
.col-prod-stock.ok { color: #1D8348; }
.col-prod-stock.low { color: #C87D10; }
.col-prod-stock.out { color: #C0392B; }
.col-prod-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}
.col-prod-foot button {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 6px 9px; border-radius: 6px; border: 1.5px solid transparent;
  font-family: inherit; font-size: .6rem; font-weight: 700;
  cursor: pointer; line-height: 1; transition: all .18s;
  white-space: nowrap;
}
.btn-feat     { background: var(--cream-dk); color: var(--text-muted); border-color: #DDD5CC !important; }
.btn-feat.on  { background: #F5A623; color: #fff; border-color: #F5A623 !important; box-shadow: 0 2px 8px rgba(245,166,35,.35); }
.btn-feat:hover { background: #FEF3CD; color: #C87D10; border-color: #F5C842 !important; }
.btn-feat.on:hover { background: #e09a1e; border-color: #e09a1e !important; }
.btn-del   { background: #E8F4EC; color: #1A6B3C; border-color: #A8D8B8 !important; }
.btn-del:hover { background: #1A6B3C !important; color: #fff !important; }
.btn-del[disabled], .btn-del:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.col-empty {
  text-align: center; padding: 48px 24px; color: var(--text-muted);
}
.col-empty svg { margin: 0 auto 12px; opacity: .35; }
.col-empty p { font-size: .875rem; }

/* Add product modal */
.prod-modal-bg {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(10,5,2,.78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.prod-modal-bg.is-open { opacity: 1; pointer-events: all; }
.prod-modal {
  background: var(--white); border-radius: 14px;
  padding: 28px 28px 24px; width: 100%; max-width: 520px;
  max-height: 90dvh; overflow-y: auto; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  animation: modalIn .3s cubic-bezier(.4,0,.2,1);
}
.prod-modal__title { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; color: var(--brown); margin-bottom: 20px; }
.prod-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--cream-dk); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; line-height: 1; transition: background .2s;
}
.prod-modal__close:hover { background: var(--blush); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.full { grid-template-columns: 1fr; }
.img-preview-wrap {
  border: 2px dashed #DDD5CC; border-radius: 8px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 14px; cursor: pointer;
  transition: border-color .2s; position: relative;
}
.img-preview-wrap:hover { border-color: var(--gold); }
.img-preview-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-wrap .img-placeholder { text-align: center; color: var(--text-muted); }
.img-preview-wrap .img-placeholder svg { margin: 0 auto 6px; }
.img-preview-wrap .img-placeholder span { font-size: .75rem; display: block; }
.prod-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.prod-modal-actions .btn-action { flex: 1; justify-content: center; padding: 12px; }
.btn-cancel { flex: 0 0 auto; padding: 12px 20px; background: var(--cream-dk); color: var(--brown); border: none; border-radius: var(--radius-md); font-family: var(--font-body); font-size: .875rem; font-weight: 700; cursor: pointer; line-height: 1; transition: background .2s; }
.btn-cancel:hover { background: var(--blush); }

/* Delete confirm modal */
.del-modal-bg {
  position: fixed; inset: 0; z-index: 3100;
  background: rgba(10,5,2,.82); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.del-modal-bg.is-open { opacity: 1; pointer-events: all; }
.del-modal {
  background: var(--white); border-radius: 12px;
  padding: 28px 24px 22px; width: 100%; max-width: 360px;
  text-align: center; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  animation: modalIn .3s cubic-bezier(.4,0,.2,1);
}
.del-modal__icon { color: #1A6B3C; margin: 0 auto 12px; }
.del-modal__title { font-size: 1.0625rem; font-weight: 700; color: var(--brown); margin-bottom: 8px; }
.del-modal__msg { font-size: .8125rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.del-modal__btns { display: flex; gap: 10px; }
.btn-confirm-del { flex: 1; padding: 11px; background: #1A6B3C; color: #fff; border: none; border-radius: 8px; font-family: var(--font-body); font-size: .875rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.btn-confirm-del:hover { background: #145530; }

/* Stock summary bar */
.stock-bar {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border-radius: 10px;
  padding: 12px 18px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm); flex-wrap: wrap;
}
.stock-bar__item { display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 600; color: var(--text-muted); line-height: 1; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.stock-dot.g { background: #1D8348; }
.stock-dot.y { background: #C87D10; }
.stock-dot.r { background: #C0392B; }

/* Upload tab (retailer) */
.upload-zone {
  border: 2px dashed var(--gold);
  border-radius: 12px; background: var(--cream);
  padding: 32px; text-align: center;
  cursor: pointer; transition: background .2s;
  margin-bottom: 20px;
}
.upload-zone:hover { background: var(--cream-dk); }
.upload-zone svg { color: var(--gold-dk); margin: 0 auto 10px; }
.upload-zone p { font-size: .875rem; color: var(--text-muted); }
.upload-zone strong { color: var(--brown); }

/* CRM */
.crm-grid { display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px; }
.crm-card { background:var(--white);border-radius:12px;border:1.5px solid #EDE5DC;overflow:hidden;transition:box-shadow .2s; }
.crm-card:hover { box-shadow:var(--shadow-md); }
.crm-card__head { display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #F0E8DF; }
.crm-avatar { width:40px;height:40px;border-radius:50%;background:var(--gold-dk);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--font-serif);font-size:1rem;font-weight:700;flex-shrink:0; }
.crm-card__name { font-weight:700;color:var(--brown);font-size:.9375rem;line-height:1.2; }
.crm-card__phone { font-size:.75rem;color:var(--text-muted);line-height:1;margin-top:2px; }
.crm-card__body { padding:12px 16px; }
.crm-stat { display:flex;justify-content:space-between;font-size:.75rem;padding:4px 0;border-bottom:1px solid #F5F0EB; }
.crm-stat:last-child { border-bottom:none; }
.crm-stat span { color:var(--text-muted); } .crm-stat strong { color:var(--brown); }
.crm-card__foot { padding:10px 16px;background:var(--cream);display:flex;gap:8px;align-items:center; }
.crm-tag { font-size:.625rem;font-weight:700;padding:2px 8px;border-radius:10px;letter-spacing:.08em;text-transform:uppercase; }
.crm-tag--vip    { background:#FEF3CD;color:#C87D10; }
.crm-tag--active { background:#E8F4EC;color:#1A6B3C; }
.crm-tag--new    { background:#E8EEF8;color:#2B62BA; }
.restock-status { display:inline-flex;align-items:center;gap:5px;font-size:.75rem;font-weight:700;padding:3px 10px;border-radius:10px; }
.restock-status--ordered   { background:#E8EEF8;color:#2B62BA; }
.restock-status--received  { background:#E8F4EC;color:#1A6B3C; }
.restock-status--pending   { background:#FEF3CD;color:#C87D10; }
.restock-status--cancelled { background:#FDE8E8;color:#C0392B; }
.custom-order-card { background:var(--white);border-radius:12px;border:1.5px solid #EDE5DC;padding:16px;margin-bottom:12px;transition:box-shadow .2s; }
.custom-order-card:hover { box-shadow:var(--shadow-sm); }
.custom-order-card__head { display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px; }
.custom-order-card__id   { font-size:.625rem;font-weight:800;color:var(--gold-dk);letter-spacing:.1em; }
.custom-order-card__name { font-size:.9375rem;font-weight:700;color:var(--brown); }
.custom-order-card__grid { display:grid;grid-template-columns:repeat(4,1fr);gap:10px; }
.custom-order-card__field label { font-size:.6rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);display:block;margin-bottom:2px; }
.custom-order-card__field span  { font-size:.8125rem;font-weight:600;color:var(--brown); }
.co-progress { margin-top:12px; }
.co-progress__bar { height:5px;background:#EDE5DC;border-radius:3px;overflow:hidden; }
.co-progress__fill { height:100%;background:var(--gold-dk);border-radius:3px;transition:width .4s; }
.co-steps { display:flex;justify-content:space-between;margin-top:6px; }
.co-step { font-size:.5625rem;font-weight:700;color:var(--text-muted);text-align:center; }
.co-step.done { color:var(--gold-dk); }
.return-card { background:var(--white);border-radius:10px;border-left:4px solid #C0392B;padding:14px 16px;margin-bottom:10px;display:flex;align-items:center;gap:14px; }
.return-card.exchange { border-left-color:#2B62BA; }
.return-card__thumb { width:44px;height:56px;border-radius:6px;object-fit:cover;background:var(--cream-dk);flex-shrink:0;overflow:hidden; }
.return-card__info { flex:1; }
.return-card__name  { font-size:.875rem;font-weight:700;color:var(--brown);line-height:1.2; }
.return-card__meta  { font-size:.75rem;color:var(--text-muted);margin-top:3px; }
.return-card__reason{ font-size:.6875rem;color:#C0392B;font-weight:600;margin-top:2px; }
.return-stats { display:flex;gap:14px;margin-bottom:16px;flex-wrap:wrap; }
.return-stat { background:var(--white);border-radius:8px;padding:12px 16px;border:1.5px solid #EDE5DC;text-align:center;flex:1 1 100px; }
.return-stat__val { font-size:1.25rem;font-weight:800;color:var(--brown); }
.return-stat__label { font-size:.6875rem;color:var(--text-muted);margin-top:2px; }
.staff-card { background:var(--white);border-radius:12px;border:1.5px solid #EDE5DC;padding:16px;display:flex;align-items:center;gap:14px;margin-bottom:10px;transition:box-shadow .2s; }
.staff-card:hover { box-shadow:var(--shadow-sm); }
.staff-avatar { width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-serif);font-size:1.1rem;font-weight:700;color:#fff;flex-shrink:0; }
.staff-card__name { font-weight:700;color:var(--brown);font-size:.9375rem; }
.staff-card__role { font-size:.6875rem;font-weight:600;color:var(--text-muted); }
.staff-perm { display:flex;flex-wrap:wrap;gap:5px;margin-top:8px; }
.staff-perm__tag { font-size:.6rem;font-weight:700;padding:2px 8px;border-radius:3px;background:#E8F4EC;color:#1A6B3C;letter-spacing:.05em; }
.staff-perm__tag.off { background:#FDE8E8;color:#C0392B; }
.staff-card__actions { margin-left:auto;display:flex;gap:8px; }
.discount-preview { display:none;background:#FEF3CD;border-radius:8px;padding:8px 12px;margin-bottom:12px;font-size:.8125rem;font-weight:700;color:#C87D10;text-align:center; }
.report-bar { display:flex;align-items:center;gap:10px;background:var(--white);border-radius:10px;padding:12px 16px;margin-bottom:18px;box-shadow:var(--shadow-sm);flex-wrap:wrap; }
.report-bar label { font-size:.8125rem;font-weight:600;color:var(--text-muted); }
.report-bar select,.report-bar input[type=month] { padding:7px 10px;border:1.5px solid #DDD5CC;border-radius:7px;font-family:var(--font-body);font-size:.8125rem;background:var(--cream);outline:none;cursor:pointer; }
.btn-export { display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:7px;border:none;background:#1A6B3C;color:#fff;font-family:var(--font-body);font-size:.8125rem;font-weight:700;cursor:pointer;line-height:1;transition:background .2s; }
.btn-export:hover { background:#145530; }
.alert-banner { display:flex;align-items:center;gap:10px;background:#FEF3CD;border:1.5px solid #F5C842;border-radius:10px;padding:12px 16px;margin-bottom:14px; }
.alert-banner svg { flex-shrink:0;color:#C87D10; }
.alert-banner__text { font-size:.8125rem;font-weight:600;color:#7D5A0A;flex:1; }
.alert-banner__items { font-size:.75rem;color:#C87D10;margin-top:2px; }
.alert-banner--critical { background:#FDE8E8;border-color:#F5BABA; }
.alert-banner--critical svg { color:#C0392B; }
.alert-banner--critical .alert-banner__text { color:#7D1A1A; }
.ship-row { display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #F0E8DF;flex-wrap:wrap; }
.ship-row:last-child { border-bottom:none; }
.ship-row__prod { font-weight:700;color:var(--brown);font-size:.875rem;flex:1 1 160px; }
.ship-tag { font-size:.625rem;font-weight:800;padding:2px 8px;border-radius:10px;text-transform:uppercase;letter-spacing:.06em; }
.ship-tag--dispatched { background:#E8EEF8;color:#2B62BA; }
.ship-tag--delivered  { background:#E8F4EC;color:#1A6B3C; }
.ship-tag--pending    { background:#FEF3CD;color:#C87D10; }
.tab-section-label { font-size:.6rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.3);padding:14px 20px 4px;display:block;pointer-events:none; }
.new-feat-modal-bg { position:fixed;inset:0;z-index:3500;background:rgba(10,5,2,.8);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:16px;opacity:0;pointer-events:none;transition:opacity .3s; }
.new-feat-modal-bg.is-open { opacity:1;pointer-events:all; }
.new-feat-modal { background:var(--white);border-radius:14px;width:100%;max-width:480px;max-height:88dvh;overflow-y:auto;position:relative;padding:28px;box-shadow:0 24px 64px rgba(0,0,0,.3);animation:modalIn .3s cubic-bezier(.4,0,.2,1); }
.new-feat-modal__title { font-family:var(--font-serif);font-size:1.25rem;font-weight:600;color:var(--brown);margin-bottom:18px; }
.new-feat-modal__close { position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:50%;border:none;background:var(--cream-dk);color:var(--text-muted);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1rem; }

/* Profile / Account */
.acc-tab {
  padding: 7px 16px; border-radius: 20px;
  border: 1.5px solid #E8DDD4; background: #fff;
  font-family: var(--font-body); font-size: 0.75rem;
  font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.acc-tab.is-active { background: var(--gold-dk); border-color: var(--gold-dk); color: #fff; }
.acc-tab:hover:not(.is-active) { background: var(--cream-dk); color: var(--brown); }

.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(196,144,58,.35);
}
.profile-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--cream) 0%, #FAF0E8 100%);
  border-radius: 12px;
  border: 1px solid #EDE5DC;
  margin-bottom: 20px;
}
.profile-header__name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--brown); }
.profile-header__role { font-size: 0.7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dk); margin-top: 2px; }
.profile-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #EDE5DC;
  padding: 20px;
  margin-bottom: 16px;
}
.profile-section__title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid #F0E8E0;
}
.profile-field { margin-bottom: 14px; }
.profile-field label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--brown); margin-bottom: 5px; letter-spacing: .02em;
}
.profile-field input {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid #E8DDD4; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.875rem;
  color: var(--text); background: #FDFAF7;
  outline: none; transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.profile-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,144,58,.12);
}
.profile-save-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  background: var(--gold-dk); color: #fff; border: none;
  font-family: var(--font-body); font-size: 0.8125rem;
  font-weight: 700; cursor: pointer; letter-spacing: .05em;
  transition: background .2s;
}
.profile-save-btn:hover { background: var(--brown); }
.profile-msg {
  display: none; font-size: 0.8rem; font-weight: 600;
  padding: 8px 12px; border-radius: 6px; margin-top: 10px;
}
.profile-msg.ok  { background: #eafaf1; color: #1a7a40; display: block; }
.profile-msg.err { background: #fdecea; color: #c0392b; display: block; }

/* Responsive — admin */
@media (min-width: 1440px) {
  :root { --container: 1360px; }
}

@media (max-width: 1279px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dash-sidebar { width: 200px; min-width: 200px; }
  .col-folder-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
  .settings-grid { grid-template-columns: 1fr; }
  .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dash-sidebar { width: 185px; min-width: 185px; }
}

@media (max-width: 767px) {
  .dash-sidebar {
    position: fixed;
    left: -220px;
    top: 0;
    height: 100vh;
    z-index: 1860;
    width: 220px !important;
    min-width: 220px !important;
    transition: left .3s ease;
  }
  .dash-sidebar.is-open { left: 0; }
  .dash-mob-toggle { display: flex; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
  .col-folder-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .crm-grid { grid-template-columns:1fr; }
  .custom-order-card__grid { grid-template-columns:1fr 1fr; }
  .filter-bar { gap:8px; }
}

@media (max-width: 599px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .catalogue-grid { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .role-picker { grid-template-columns: 1fr 1fr; }
  .col-folder-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 359px) {
  .role-picker { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ── Extracted inline styles ── */

/* SVG icon holder (hidden defs) */
.u-visually-hidden-svg { display: none; }

/* SEO hidden h1 */
.u-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* Login form initially hidden */
.u-hidden { display: none; }

/* Dashboard overlay backgrounds */
.dash-overlay--sa { background: #FBF6F0; }
.dash-overlay--rt { background: #F0F6FB; }

/* Back-to-website button */
.dash-back-btn {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 10002;
  background: #fff;
  border: 1.5px solid #C9A961;
  color: #9A7B4F;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}

/* Sidebar brand border variants */
.sidebar-brand--sa { border-bottom: 1px solid rgba(196,144,58,.2); }
.sidebar-brand--rt { border-bottom: 1px solid rgba(56,189,248,.2); }

/* Topbar accent variants */
.dash-topbar--sa { border-bottom: 2px solid #C4903A; background: #fff; }
.dash-topbar--rt { border-bottom: 2px solid #38BDF8; background: #fff; }

/* Strong color accents inside topbar */
.dash-topbar__accent--sa { color: #A07428; }
.dash-topbar__accent--rt { color: #0369a1; }

/* Panel title with no margin (used inside panel-header) */
.panel-title--flush { margin: 0; }

/* Empty table cell styling */
.data-table__empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: .85rem;
}

/* Larger empty cell for sold/restock */
.data-table__empty--lg {
  text-align: center;
  color: var(--text-muted);
  padding: 32px;
  font-size: .875rem;
}

/* Category manager container */
.cat-manager {
  background: #fff;
  border: 1px solid #EDE5DC;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

/* Category manager heading */
.cat-manager__title {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 12px;
}

/* Category manager add row */
.cat-manager__add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Category name input */
.cat-manager__input {
  flex: 1;
  min-width: 160px;
  padding: 9px 12px;
  border: 1.5px solid #DDD5CC;
  border-radius: 8px;
  font-family: inherit;
  font-size: .875rem;
  outline: none;
}

/* Category add button */
.cat-manager__add-btn {
  padding: 9px 16px;
  background: var(--gold-dk);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Category list flex wrap */
.cat-manager__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Settings card top margin button */
.btn-action--mt { margin-top: 4px; }

/* Settings card with gold border */
.settings-card--gold { border-top: 3px solid #C9A961; }

/* Settings description text */
.settings-card__desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Download Excel button */
.btn-action--download {
  background: linear-gradient(135deg, #1a6b3c, #15803d);
  border-color: transparent;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Profile container max-width */
.profile-container--sa { max-width: 580px; }
.profile-container--rt { max-width: 520px; }

/* Flex row for section tabs */
.acc-tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* Clear data tab button */
.acc-tab--danger {
  border-color: #fca5a5;
  color: #dc2626;
  background: #fff5f5;
}

/* Inline SVG icon inside text */
.u-inline-icon {
  display: inline;
  vertical-align: middle;
  margin-right: 5px;
}

/* Add retailer helper text */
.profile-section__helper {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Password / monospace input */
.profile-field__input--mono {
  font-family: monospace;
  letter-spacing: .08em;
}

/* Save button full width centered */
.profile-save-btn--full {
  width: 100%;
  justify-content: center;
  padding: 13px;
}

/* New retailer success box */
.profile-success-box {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: #eafaf1;
  border-radius: 10px;
  border: 1.5px solid #a3e4bc;
}

.profile-success-box__title {
  font-weight: 700;
  color: #1a7a40;
  margin-bottom: 8px;
  font-size: .875rem;
}

.profile-success-box__body {
  font-size: .8rem;
  color: #1a7a40;
  line-height: 1.8;
}

.profile-success-box__hint {
  margin-top: 6px;
  font-size: .75rem;
  opacity: .8;
}

/* Report filter select */
.report-bar__select {
  padding: 7px 10px;
  border: 1.5px solid #DDD5CC;
  border-radius: 7px;
  font-family: inherit;
  font-size: .8125rem;
  background: var(--cream);
  outline: none;
}

/* Stats row bottom margin */
.stats-row--mb { margin-bottom: 20px; }

/* ── Overview Icon ── */
.ov-card-icon { font-size: 1.25rem; margin-bottom: 6px; line-height: 1; }

/* ── Overview Section Title ── */
.ov-section-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 12px;
}

/* ── Quick Actions ── */
.ov-quick-actions { margin-bottom: var(--sp-6); }
.ov-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ov-action-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: var(--white);
  border: 1.5px solid #EDE5DC;
  border-radius: var(--radius-md);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 4px rgba(92,61,46,.06);
}
.ov-action-btn:hover {
  background: var(--cream-dk);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(92,61,46,.12);
}
.ov-action-btn__icon { font-size: 1rem; }

/* ── Overview Bottom Grid ── */
.ov-bottom-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(var(--sp-3), 1.5vw, var(--sp-5));
}
.ov-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(var(--sp-4), 2vw, var(--sp-6));
  box-shadow: 0 2px 12px rgba(92,61,46,.07);
}

/* ── Top Sellers List ── */
.ov-top-seller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #F0EAE0;
  font-size: .8125rem;
}
.ov-top-seller:last-child { border-bottom: none; }
.ov-top-seller__name { font-weight: 600; color: var(--brown); flex: 1; margin-right: 8px; }
.ov-top-seller__cat  { font-size: .7rem; color: var(--text-muted); }
.ov-top-seller__amt  { font-weight: 700; color: #1A6B3C; font-size: .875rem; white-space: nowrap; }

@media (max-width: 768px) {
  .ov-bottom-grid { grid-template-columns: 1fr; }
  .ov-actions-row { gap: 8px; }
  .ov-action-btn  { font-size: .75rem; padding: 8px 12px; }
}

/* Stat card border color variants */
.stat-card--green  { border-left-color: #1A6B3C; }
.stat-card--amber  { border-left-color: #C87D10; }
.stat-card--blue   { border-left-color: #2B62BA; }
.stat-card--red    { border-left-color: #C0392B; }

/* Empty section placeholders */
.empty-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: .875rem;
}

/* Filter bar bottom margin */
.filter-bar--mb { margin-bottom: 16px; }

/* Retailer clear-my-data danger zone */
.profile-danger-zone {
  margin-top: 16px;
  padding: 16px;
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  border-radius: 12px;
}

.profile-danger-zone__title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #b91c1c;
  margin-bottom: 8px;
}

.profile-danger-zone__desc {
  font-size: .8rem;
  color: #7f1d1d;
  line-height: 1.6;
  margin-bottom: 12px;
}

.profile-danger-zone__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}

/* Image upload hint text */
.img-placeholder__hint {
  font-size: .6875rem;
  color: #b0a090;
  margin-top: 3px;
}

/* Hidden image preview */
.img-preview--hidden { display: none; }

/* Hidden file input */
.u-file-hidden { display: none; }

/* Admin select (shared by pCat, pBadge, soldChannel, coType, coStatus, rsCat, retType, retReason, shipStatus) */
.field__select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #DDD5CC;
  border-radius: 8px;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
}

/* Featured toggle row */
.featured-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

/* Featured toggle inner wrapper */
.featured-toggle__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toggle switch button */
.featured-toggle__switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #ddd;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}

/* Toggle switch thumb */
.featured-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s;
  display: block;
}

/* Hidden featured checkbox */
.featured-toggle__checkbox { display: none; }

/* Featured label text */
.featured-toggle__label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  letter-spacing: 0;
  user-select: none;
}

/* Featured label hint */
.featured-toggle__hint {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Save / action button variants */
.btn-action--flex-center {
  flex: 1;
  justify-content: center;
  padding: 12px;
}

/* Delete modal cancel button full */
.btn-cancel--flex { flex: 1; }

/* Sold modal z-index */
.prod-modal-bg--sold { z-index: 3200; }

/* Sold modal narrower */
.prod-modal--narrow { max-width: 440px; }

/* Sold modal header area */
.sold-modal__header {
  text-align: center;
  margin-bottom: 18px;
}

/* Sold modal icon circle */
.sold-modal__icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #E8F4EC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

/* Sold modal title flush */
.prod-modal__title--flush { margin-bottom: 4px; }

/* Sold product name subtitle */
.sold-modal__subtitle {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Sold form row spacing */
.form-row--mb { margin-bottom: 14px; }

/* Sold product summary strip */
.sold-summary {
  background: var(--cream-dk);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sold summary thumbnail */
.sold-summary__thumb {
  width: 48px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e0d8d0;
}

/* Sold summary labels */
.sold-summary__cat {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 3px;
}

.sold-summary__price {
  font-size: .8125rem;
  color: var(--text-muted);
}

.sold-summary__stock {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Sale amount input bold */
.field__input--bold {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
}

/* Profit preview box */
.sold-profit-preview {
  background: #E8F4EC;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: none;
}

.sold-profit-preview__row {
  display: flex;
  justify-content: space-between;
  font-size: .8125rem;
  margin-bottom: 6px;
}

.sold-profit-preview__label { color: var(--text-muted); }
.sold-profit-preview__val--brown { color: var(--brown); }
.sold-profit-preview__val--muted { color: var(--text-muted); }

.sold-profit-preview__total {
  border-top: 1px solid #C8E6D0;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: .9375rem;
}

.sold-profit-preview__total-label {
  font-weight: 700;
  color: var(--brown);
}

.sold-profit-preview__total-val { color: #1A6B3C; }

/* Confirm sale button green */
.btn-action--green { background: #1A6B3C; }

/* Customer modal checkbox row */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
}

/* Checkbox styled */
.checkbox-row__input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Checkbox label */
.checkbox-row__label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
}

/* Narrower new-feat-modal variants */
.new-feat-modal--md { max-width: 540px; }
.new-feat-modal--sm { max-width: 480px; }
.new-feat-modal--xs { max-width: 460px; }

/* Return modal restock checkbox row */
.checkbox-row--mt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
}

/* ── Clear data modal (extracted) ── */
.clear-modal__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99990;
  align-items: center;
  justify-content: center;
}

.clear-modal__box {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 380px;
  width: 92%;
  border-top: 5px solid #ef4444;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  position: relative;
}

.clear-modal__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.clear-modal__icon {
  width: 40px;
  height: 40px;
  background: #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clear-modal__heading {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
}

.clear-modal__sub {
  font-size: .75rem;
  color: #6b7280;
  margin-top: 1px;
}

.clear-modal__close-btn {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 1rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-modal__title {
  font-weight: 700;
  font-size: .95rem;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.clear-modal__warning {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 18px;
  font-size: .8rem;
  color: #7f1d1d;
  line-height: 1.7;
}

.clear-modal__pw-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 6px;
}

.clear-modal__pw-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #111;
  background: #fff;
  border: 2px solid #fca5a5;
  border-radius: 8px;
  outline: none;
  margin-bottom: 10px;
}

.clear-modal__error {
  display: none;
  color: #dc2626;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 6px;
}

.clear-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.clear-modal__cancel-btn {
  flex: 1;
  padding: 11px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
}

.clear-modal__confirm-btn {
  flex: 1;
  padding: 11px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}

/* CRM / CO / Return empty states that are initially hidden */
.empty-placeholder--hidden {
  display: none;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}
