:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --dark-code: #0f172a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #1e1b4b, #4338ca, #1e1b4b);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Storefront Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Admin Shell Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #0f172a;
  color: #e2e8f0;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.sidebar-brand strong { display: block; font-size: 16px; color: #fff; }
.sidebar-brand span { display: block; font-size: 11px; color: #94a3b8; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  border: none;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.15s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-item.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.nav-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-main { display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-content { padding: 26px 28px 60px; max-width: 1380px; width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: #047857; }
.btn-dark { background: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; }

.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface-alt); border-color: #cbd5e1; }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }

.btn-danger-soft { background: var(--rose-soft); color: var(--rose); }
.btn-danger-soft:hover { background: #ffe4e6; }

.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { padding: 4px 8px; font-size: 11.5px; border-radius: 7px; }
.btn-lg { padding: 12px 22px; font-size: 14.5px; }

.badge-count {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Container */
.container { max-width: 1320px; margin: 0 auto; padding: 24px 24px 72px; }

.view-section { display: none; animation: fadeIn 0.18s ease; }
.view-section.active { display: block; }

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

/* Hero Banner */
.hero {
  background: linear-gradient(125deg, #0f172a 0%, #312e81 55%, #4f46e5 100%);
  border-radius: 22px;
  padding: 36px 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
  box-shadow: var(--shadow-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 { margin: 0 0 10px; font-size: 31px; line-height: 1.2; letter-spacing: -0.025em; }
.hero p { margin: 0 0 20px; color: rgba(255, 255, 255, 0.85); font-size: 15px; max-width: 580px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.hero-trust-grid {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-stat-box { background: rgba(15, 23, 42, 0.35); padding: 13px 14px; border-radius: 12px; }
.hero-stat-box strong { display: block; font-size: 19px; font-weight: 800; }
.hero-stat-box span { font-size: 12px; color: rgba(255, 255, 255, 0.78); }

/* Filters */
.store-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.category-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-pill:hover { border-color: #cbd5e1; color: var(--text); }
.cat-pill.active { background: var(--text); border-color: var(--text); color: #fff; }

.search-sort-group { display: flex; gap: 10px; flex-wrap: wrap; }

.input, .select, .textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.search-input { min-width: 240px; }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-media {
  position: relative;
  height: 210px;
  background: linear-gradient(145deg, #f8fafc, #eef2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media svg { width: 138px; height: 138px; transition: transform 0.25s ease; }
.product-card:hover .product-media svg { transform: scale(1.06); }

.badge-top-left { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 5px; }
.badge-top-right { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.card-fav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.15s;
}
.card-fav-btn:hover { transform: scale(1.08); }
.card-fav-btn.active { border-color: #fda4af; background: #fff1f2; color: var(--rose); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.pill-emerald { background: var(--emerald-soft); color: var(--emerald); border: 1px solid #a7f3d0; }
.pill-amber { background: var(--amber-soft); color: var(--amber); border: 1px solid #fde68a; }
.pill-rose { background: var(--rose-soft); color: var(--rose); border: 1px solid #fecdd3; }
.pill-indigo { background: var(--primary-soft); color: var(--primary); border: 1px solid #c7d2fe; }
.pill-slate { background: var(--surface-alt); color: #475569; border: 1px solid var(--border); }

.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-meta-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.product-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; cursor: pointer; }
.product-title:hover { color: var(--primary); }

.rating-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 10px; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 13.5px; }

.supply-box-mini {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.mp-chip { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; border: 1px solid transparent; }

.product-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price-block .old-price { display: block; font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.price-block .current-price { font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }

/* Variant Pills */
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.variant-pill {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.variant-pill.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.variant-pill.oos { opacity: 0.6; border-style: dashed; }

/* Inner Tabs */
.inner-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.inner-tab {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.inner-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Shipping Progress Bar */
.shipping-progress-box {
  background: var(--primary-soft);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
}
.shipping-progress-track {
  height: 7px;
  background: #e0e7ff;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 7px;
}
.shipping-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--emerald));
  transition: width 0.25s ease;
}

/* Order Stepper & Timeline */
.order-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0;
}
.order-step {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.order-step.done {
  background: var(--emerald-soft);
  border-color: #a7f3d0;
  color: var(--emerald);
}

/* Compare Bar */
.compare-floating-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 45;
  display: none;
  align-items: center;
  gap: 14px;
}
.compare-floating-bar.visible { display: flex; }

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 10px 12px; vertical-align: top; }
.compare-table th { background: var(--surface-alt); text-transform: none; font-size: 13px; color: var(--text); }

/* KPI & Panels */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.kpi-card span { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.kpi-card strong { display: block; font-size: 24px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; }

.dashboard-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }

.chart-bar-row { margin-bottom: 12px; }
.chart-bar-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.chart-bar-track { height: 9px; background: var(--surface-alt); border-radius: 999px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 999px; background: var(--primary); }

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-header h2, .panel-header h3 { margin: 0; font-size: 17px; font-weight: 700; }
.panel-body { padding: 22px; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }

/* Marketplace Grid */
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mp-card-head { display: flex; align-items: center; justify-content: space-between; }
.mp-logo-wrap { display: flex; align-items: center; gap: 11px; }
.mp-avatar { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 14px; }

.sync-workspace { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }

.code-block {
  background: var(--dark-code);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  max-height: 360px;
}

.log-item {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.log-item:hover, .log-item.active { border-color: var(--primary); background: var(--primary-soft); }

/* Modals & Drawers */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal-dialog {
  background: var(--surface);
  border-radius: 20px;
  max-width: 980px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: fadeIn 0.18s ease;
}
.modal-dialog.narrow { max-width: 580px; }

.modal-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
}
.modal-body { padding: 24px; }

/* Detail Modal */
.detail-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin-bottom: 24px; }
.detail-visual {
  background: linear-gradient(145deg, #f8fafc, #eef2ff);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.detail-visual img { max-width: 100%; max-height: 320px; border-radius: 10px; object-fit: contain; }
.detail-visual svg { width: 210px; height: 210px; }

.supply-timeline {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
}
.supply-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.supply-step { background: #fff; border: 1px solid #dcfce7; border-radius: 10px; padding: 10px; font-size: 12px; }
.supply-step strong { display: block; color: #166534; margin-bottom: 2px; }

.specs-table { width: 100%; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 10px; }
.specs-table td { padding: 10px 14px; }
.specs-table td:first-child { width: 38%; background: var(--surface-alt); font-weight: 600; color: var(--text-muted); }

/* Reviews */
.reviews-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding-top: 10px; }
.rating-summary-box { background: var(--surface-alt); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.rating-big { font-size: 38px; font-weight: 800; line-height: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 6px; }
.rating-bar-track { flex: 1; height: 7px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f59e0b; }

.review-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.seller-reply-box {
  margin-top: 10px;
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
}

.star-picker { display: flex; gap: 6px; margin: 6px 0 12px; }
.star-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: #cbd5e1;
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  cursor: pointer;
}
.star-btn.active { color: #f59e0b; border-color: #fcd34d; background: #fffbeb; }

/* Form Layout */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; font-weight: 700; color: #334155; }
.spec-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; margin-bottom: 8px; }
.variant-form-row { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 0.7fr auto; gap: 8px; margin-bottom: 8px; }

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 70;
  display: none;
  justify-content: flex-end;
}
.drawer-backdrop.open { display: flex; }
.drawer-panel {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-footer { padding: 18px 20px; border-top: 1px solid var(--border); background: var(--surface-alt); }

/* Toast */
.toast-container { position: fixed; bottom: 22px; right: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  animation: fadeIn 0.18s ease;
}
.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #f43f5e; }
.toast.info { border-left: 4px solid #6366f1; }

@media print {
  body * { visibility: hidden; }
  #slip-modal, #slip-modal * { visibility: visible; }
  #slip-modal { position: absolute; inset: 0; background: #fff; padding: 0; }
  #slip-modal .no-print { display: none !important; }
}

@media (max-width: 980px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .hero, .detail-grid, .reviews-split, .sync-workspace, .dashboard-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid, .supply-steps, .order-stepper, .variant-form-row { grid-template-columns: 1fr; }
  .topbar-inner { padding: 12px 14px; }
}
