/* ===== LUMINELLE GIFTS — ETSY AUTOMATION SYSTEM ===== */
/* Refined minimalist design system */

:root {
  /* Surfaces */
  --bg: #faf9f7;
  --bg-card: #ffffff;
  --bg-subtle: #f6f5f2;
  --bg-sidebar: #171613;
  --bg-sidebar-hover: rgba(255,255,255,0.05);

  /* Brand */
  --accent: #c9a84c;
  --accent-deep: #a9883a;
  --accent-soft: #f7f0db;

  /* Text */
  --text-primary: #1c1b18;
  --text-secondary: #6a6862;
  --text-light: #a5a29b;
  --text-on-dark: #e9e7e1;

  /* Lines */
  --border: #eceae5;
  --border-strong: #ddd9d1;

  /* Status */
  --success: #3f8f60;
  --warning: #d1901f;
  --danger: #cf4b4b;

  /* Shape */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  /* Elevation — soft, minimal */
  --shadow-sm: 0 1px 2px rgba(24,23,20,0.04);
  --shadow: 0 1px 2px rgba(24,23,20,0.04), 0 8px 24px rgba(24,23,20,0.05);
  --shadow-lg: 0 12px 48px rgba(24,23,20,0.14);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

::selection { background: var(--accent-soft); color: var(--text-primary); }

/* Custom scrollbars for a tidier feel */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-light); background-clip: content-box; }

/* ===== LAYOUT ===== */
.app-wrapper { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: 236px;
  min-height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  padding: 26px 16px 20px;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  padding: 4px 8px 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-logo img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.brand-name {
  font-family: var(--font-display);
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 1.1;
}

.brand-sub {
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
  font-weight: 600;
}

.sidebar-nav {
  padding: 8px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #918e86;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}

.nav-item:hover { color: var(--text-on-dark); background: var(--bg-sidebar-hover); }
.nav-item.active { color: #fff; background: rgba(201,168,76,0.14); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -16px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.nav-icon { font-size: 15px; width: 18px; text-align: center; opacity: 0.9; }

.sidebar-footer {
  padding: 16px 14px 4px;
  color: #55524b;
  font-size: 11px;
  letter-spacing: 0.3px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 236px;
  flex: 1;
  padding: 44px 48px;
  min-height: 100vh;
  max-width: 1400px;
}

/* ===== PAGE ===== */
.page { display: none; animation: fadeIn 0.35s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-header { margin-bottom: 32px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.page-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 6px; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-light);
  margin-bottom: 18px;
  font-weight: 600;
}

/* ===== PRODUCT PREVIEW GRID (Dashboard) ===== */
.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.product-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.product-preview-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border-strong); }

.product-preview-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-subtle);
  display: block;
}

.product-preview-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--accent);
}

.product-preview-info { padding: 14px 14px 16px; }

.product-preview-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 36px;
}

.product-preview-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-preview-sku {
  font-size: 10.5px;
  color: var(--text-light);
  margin-top: 4px;
  font-family: 'SFMono-Regular', ui-monospace, monospace;
  letter-spacing: -0.02em;
}

/* ===== TOOLBAR ===== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.search-input {
  flex: 1;
  max-width: 340px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input::placeholder { color: var(--text-light); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.filter-select {
  padding: 10px 34px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a5a29b' d='M6 8L2 4h8z'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ===== TABLE ===== */
.product-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table th {
  background: var(--bg-subtle);
  padding: 13px 18px;
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.product-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
}

.product-table tr:last-child td { border-bottom: none; }
.product-table tbody tr { transition: background 0.12s ease; }
.product-table tbody tr:hover td { background: var(--bg-subtle); }

.product-table .product-thumb {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-subtle);
  display: block;
  border: 1px solid var(--border);
}

.product-table .img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
}

.product-name-cell { max-width: 240px; }

.product-name-text {
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sku-badge {
  display: inline-block;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: 'SFMono-Regular', ui-monospace, monospace;
  letter-spacing: -0.02em;
}

.price-cell { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.final-price { color: var(--accent-deep); font-weight: 700; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 4px 14px rgba(169,136,58,0.28); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: var(--border-strong); color: #fff; cursor: default; box-shadow: none; }
.btn-primary:disabled:hover { background: var(--border-strong); box-shadow: none; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--text-light); }

.btn-danger {
  background: #fdf2f2;
  color: var(--danger);
  border: 1px solid #f2d6d6;
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-danger:hover { background: #fbe8e8; }

.btn-sm { padding: 7px 13px; font-size: 12px; }
.btn-large { padding: 15px 34px; font-size: 15px; border-radius: var(--radius); }

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }

.badge-success { background: #eaf5ee; color: var(--success); }
.badge-warning { background: #fbf1de; color: var(--warning); }
.badge-pending { background: #f0efec; color: var(--text-secondary); }
.badge-listed  { background: #eaf5ee; color: var(--success); }

/* ===== SETTINGS ===== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.settings-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.setting-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.setting-row label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.setting-row input {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.setting-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.setting-row input[type="file"] { padding: 8px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }

.setting-row select {
  padding: 10px 34px 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a5a29b' d='M6 8L2 4h8z'/%3E%3C/svg%3E") no-repeat right 13px center;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.setting-row select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.formula-display {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin: 18px 0;
}

.formula-display strong { color: var(--text-primary); }

/* Injected: divider row + action buttons for the Apps Script URL field */
.setting-divider {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.setting-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

#setting-script-url {
  font-size: 12px;
  font-family: 'SFMono-Regular', ui-monospace, monospace;
  letter-spacing: -0.02em;
}

/* ===== ALERT / BANNER ===== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.5;
}

.alert-warning {
  background: var(--accent-soft);
  border: 1px solid #ecdcae;
  color: #8a6d1f;
}

.alert-warning b { color: #6f5713; font-weight: 600; }

/* ===== ADD PRODUCT FORM ===== */
.add-product-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.add-grid .add-span2 { grid-column: 1 / -1; }
.add-product-form textarea {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.add-product-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.add-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* listed dashboard card */
.product-preview-card.is-listed { border-color: #c8e6d4; background: #f6fbf8; }

/* ===== SYNC BAR ===== */
.sync-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-light); flex: none; }
.sync-dot.connected { background: var(--success); box-shadow: 0 0 0 3px rgba(63,143,96,0.15); }
.sync-dot.syncing { background: var(--warning); animation: pulse 1s infinite; }
.sync-dot.error { background: var(--danger); }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.sync-time { font-size: 12px; color: var(--text-light); }

/* ===== DASHBOARD PANELS ===== */
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 36px; }
.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dash-panel-head h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.dash-panel-sub { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }
.dash-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--bg-subtle); color: var(--text-secondary);
}
.dash-tag.ok { background: #eaf5ee; color: var(--success); }
.dash-tag.warn { background: #fbf1de; color: var(--warning); }
.health-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--border); font-size: 12.5px;
}
.health-item:first-child { border-top: none; }
.health-item .hi-name { font-weight: 500; flex: 1; }
.health-issue { color: var(--danger); font-size: 11.5px; }
.health-ok { color: var(--success); font-size: 11.5px; }

@media (max-width: 768px){ .dash-row { grid-template-columns: 1fr; } }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24,23,20,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; animation: overlayIn 0.2s ease; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 700px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 2;
}

.modal-header h2 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.modal-close {
  background: none; border: none; font-size: 16px; cursor: pointer;
  color: var(--text-light); padding: 0; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-subtle); }

.modal-body { padding: 26px 30px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 30px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
}

.listing-detail-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.listing-detail-img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.listing-detail-fields label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  margin-top: 15px;
}

.listing-detail-fields label:first-child { margin-top: 0; }

.listing-detail-fields .field-value {
  font-size: 13.5px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

.listing-detail-fields .field-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-deep);
}

.listing-description {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-sidebar);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  pointer-events: none;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }

/* ===== EMPTY STATE ===== */
.empty-state {
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
  padding: 48px;
}

/* ===== LOGO PREVIEW ===== */
#logo-preview-area img {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 12px;
  border: 2px solid var(--border);
}

/* ===== PRICELIST TABLE LINK ===== */
.product-table a.supplier-link {
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.product-table a.supplier-link:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { width: 64px; padding: 22px 10px; }
  .sidebar-logo { padding: 4px 4px 18px; text-align: center; }
  .sidebar-logo img { margin: 0 auto 0; }
  .brand-name, .brand-sub, .sidebar-footer { display: none; }
  .nav-item { padding: 13px; justify-content: center; gap: 0; font-size: 0; }
  .nav-item.active::before { display: none; }
  .nav-icon { font-size: 16px; }
  .main-content { margin-left: 64px; padding: 28px 20px; }
  .settings-grid { grid-template-columns: 1fr; }
  .add-grid { grid-template-columns: 1fr; }
  .product-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-detail-grid { grid-template-columns: 1fr; }
  .listing-detail-img { width: 100%; height: 220px; }
}
