/*
 * PATOTSALERA Admin Studio — Bright surface theme
 * Lapisan visual terang di atas admin.css.
 * Tidak mengubah struktur HTML maupun struktur menu.
 */

:root {
  --admin-bg: #f5f7fa;
  --admin-bg-deep: #edf1f5;
  --admin-surface: #ffffff;
  --admin-white: #ffffff;
  --admin-ink: #1d2433;
  --admin-ink-soft: #475467;
  --admin-muted: #7c8698;
  --admin-muted-light: #a6afbd;
  --admin-line: #e6eaf0;
  --admin-line-soft: #eff2f6;
  --admin-dark: #1f2937;
  --admin-dark-soft: #273244;
  --admin-accent: #f97316;
  --admin-accent-deep: #ea580c;
  --admin-accent-soft: #fff1e6;
  --admin-green: #15803d;
  --admin-green-soft: #eaf8ef;
  --admin-blue: #3b6fd8;
  --admin-blue-soft: #edf3ff;
  --admin-red: #d14343;
  --admin-red-soft: #fdf0ef;
  --admin-gold: #b7791f;
  --admin-gold-soft: #fff7e6;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.035);
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.055);
  --shadow-md: 0 16px 42px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 28px 70px rgba(16, 24, 40, 0.16);
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 18px;
  --sidebar-width: 258px;
}

body.admin-body {
  background:
    radial-gradient(circle at 88% -8%, rgba(249, 115, 22, 0.07), transparent 30%),
    linear-gradient(180deg, #fafbfd 0%, #f4f6f9 100%);
  color: var(--admin-ink);
}

::selection { background: var(--admin-accent); color: #fff; }
:focus-visible { outline-color: var(--admin-accent); }

/* Sidebar ------------------------------------------------------------- */

.admin-sidebar {
  color: var(--admin-ink-soft);
  background: #ffffff;
  border-right: 1px solid var(--admin-line);
  box-shadow: 8px 0 30px rgba(16, 24, 40, 0.025);
}
.admin-sidebar .admin-brand,
.admin-sidebar .admin-brand-light { color: var(--admin-ink); }
.admin-sidebar .admin-brand-light .brand-word small { color: var(--admin-muted); }
.admin-sidebar .brand-mark {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 7px 18px rgba(249, 115, 22, 0.24);
}
.sidebar-top { padding-bottom: 20px; }
.sidebar-close {
  border-color: var(--admin-line);
  color: var(--admin-muted);
  background: #fff;
}
.sidebar-close:hover { color: var(--admin-ink); background: var(--admin-bg); }

.store-status {
  margin-bottom: 18px;
  border-color: var(--admin-line-soft);
  background: #f8fafc;
}
.store-status .status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}
.store-status strong { color: var(--admin-ink); }
.store-status span { color: var(--admin-muted); }
.store-status > a { color: var(--admin-muted); }
.store-status > a:hover { color: var(--admin-accent); background: var(--admin-accent-soft); }

.sidebar-nav { scrollbar-color: rgba(16, 24, 40, 0.14) transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(16, 24, 40, 0.12); }
.sidebar-label { color: #9aa3b2; }
.sidebar-link {
  color: #667085;
  border-radius: 10px;
  font-weight: 700;
}
.sidebar-link:hover { color: var(--admin-ink); background: #f5f7fa; }
.sidebar-link.is-active {
  color: var(--admin-accent-deep);
  background: var(--admin-accent-soft);
}
.sidebar-link.is-active::before {
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--admin-accent);
  box-shadow: none;
}
.sidebar-link-icon { color: #98a2b3; }
.sidebar-link:hover .sidebar-link-icon { color: var(--admin-ink-soft); }
.sidebar-link.is-active .sidebar-link-icon { color: var(--admin-accent); }
.sidebar-badge {
  border-color: var(--admin-line);
  color: var(--admin-muted);
  background: #f8fafc;
}
.sidebar-badge.accent {
  border-color: transparent;
  color: #fff;
  background: var(--admin-accent);
}
.sidebar-foot { border-top-color: var(--admin-line-soft); }
.sidebar-user strong { color: var(--admin-ink); }
.sidebar-user span { color: var(--admin-muted); }
.sidebar-avatar {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 5px 12px rgba(249, 115, 22, 0.2);
}
.sidebar-logout {
  border-color: var(--admin-line);
  color: var(--admin-muted);
  background: #fff;
}
.sidebar-logout:hover {
  color: var(--admin-accent-deep);
  border-color: #fed7aa;
  background: var(--admin-accent-soft);
}
.sidebar-version { color: var(--admin-muted-light); }
.sidebar-scrim { background: rgba(16, 24, 40, 0.32); }

/* Topbar -------------------------------------------------------------- */

.admin-topbar {
  border-bottom-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}
.topbar-heading h1 { color: var(--admin-ink); font-weight: 700; }
.topbar-eyebrow { color: var(--admin-accent-deep); }
.topbar-menu {
  border-color: var(--admin-line);
  background: #fff;
}
.admin-global-search {
  border-color: var(--admin-line);
  background: #f8fafc;
}
.admin-global-search:focus-within {
  border-color: var(--admin-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.11);
}
.admin-global-search kbd {
  border-color: var(--admin-line);
  color: var(--admin-muted);
  background: #fff;
}
.topbar-store-link,
.topbar-icon {
  border-color: var(--admin-line);
  color: var(--admin-ink-soft);
  background: #fff;
}
.topbar-store-link:hover,
.topbar-icon:hover {
  color: var(--admin-accent-deep);
  border-color: #fed7aa;
  background: var(--admin-accent-soft);
}
.topbar-avatar {
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 5px 12px rgba(249, 115, 22, 0.18);
}
.topbar-divider { background: var(--admin-line); }
.notif-panel {
  border-color: var(--admin-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.notif-head { border-bottom-color: var(--admin-line-soft); }
.notif-item { border-bottom-color: var(--admin-line-soft); }
.notif-item:hover { background: #fff8f2; }
.notif-foot { border-top-color: var(--admin-line-soft); }
.notif-dot { border-color: #fff; }

/* Dashboard ----------------------------------------------------------- */

.welcome-banner {
  color: var(--admin-ink);
  border: 1px solid #ffe3d1;
  background:
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.16), transparent 34%),
    radial-gradient(circle at 70% 130%, rgba(251, 146, 60, 0.14), transparent 42%),
    linear-gradient(120deg, #fff7ed 0%, #ffffff 58%, #fffaf6 100%);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.07);
}
.welcome-banner::after {
  color: rgba(249, 115, 22, 0.07);
}
.welcome-copy .welcome-eyebrow { color: var(--admin-accent-deep); }
.welcome-copy h2 { color: var(--admin-ink); }
.welcome-copy h2 em { color: var(--admin-accent-deep); }
.welcome-copy p { color: #667085; }
.welcome-date { color: var(--admin-muted); }
.welcome-actions .admin-btn-ghost {
  border-color: #fed7aa;
  color: var(--admin-accent-deep);
  background: #fff;
}
.welcome-actions .admin-btn-ghost:hover {
  border-color: #fdba74;
  background: var(--admin-accent-soft);
}

.stat-grid { gap: 14px; }
.stat-card {
  border-color: var(--admin-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.stat-card:hover {
  border-color: #fed7aa;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.07);
}
.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.stat-icon .icon { width: 17px; height: 17px; }
.stat-label { color: var(--admin-muted); }
.stat-value { color: var(--admin-ink); }
.stat-foot { border-top-color: var(--admin-line-soft); }
.stat-trend { border-radius: 7px; }

.panel {
  border-color: var(--admin-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.panel-head h2,
.panel-head h3 { color: var(--admin-ink); font-weight: 700; }
.panel-head p { color: var(--admin-muted); }
.panel-head .head-icon {
  border-radius: 11px;
  color: var(--admin-accent-deep);
  background: var(--admin-accent-soft);
}
.chart-bar { background: linear-gradient(180deg, #fb923c, #f97316); }
.chart-col.is-today .chart-bar { background: linear-gradient(180deg, #334155, #1f2937); }
.chart-bar::after { background: #1f2937; }
.low-stock-item { border-bottom-color: var(--admin-line-soft); }
.quick-action {
  border-color: var(--admin-line-soft);
  border-radius: 12px;
  background: #f8fafc;
}
.quick-action:hover {
  border-color: #fed7aa;
  background: var(--admin-accent-soft);
}
.quick-action-icon { border-color: var(--admin-line); background: #fff; }

/* Tables -------------------------------------------------------------- */

.table-wrap {
  border-color: var(--admin-line);
  border-radius: 16px;
  background: #fff;
}
.admin-table thead th {
  border-bottom-color: var(--admin-line);
  color: #667085;
  background: #f8fafc;
}
.admin-table tbody td { border-bottom-color: var(--admin-line-soft); }
.admin-table tbody tr:hover { background: #fff9f4; }
.cell-product img,
.low-stock-item img,
.top-product img,
.order-item img { background: var(--admin-bg-deep); }
.payment-tag {
  color: var(--admin-ink-soft);
  background: #f3f5f9;
}
.pill-diproses { color: #b45309; background: #fff7e6; }
.pill-dikirim { color: var(--admin-blue); background: var(--admin-blue-soft); }
.pill-selesai { color: var(--admin-green); background: var(--admin-green-soft); }
.pill-dibatalkan { color: var(--admin-red); background: var(--admin-red-soft); }
.pill-active { color: var(--admin-green); background: var(--admin-green-soft); }
.pill-draft { color: var(--admin-muted); background: #f1f3f7; }
.pill-accent { color: var(--admin-accent-deep); background: var(--admin-accent-soft); }
.table-status-select {
  border-color: var(--admin-line);
  border-radius: 8px;
  background-color: #f8fafc;
}
.table-status-select:hover { background-color: #fff; }
.table-status-select:focus {
  border-color: var(--admin-accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.table-empty .empty-icon { background: var(--admin-accent-soft); }
.customer-avatar-inline { background: var(--admin-accent-soft); color: var(--admin-accent-deep); }
.order-dot.is-new { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14); }

/* Toolbars & filters -------------------------------------------------- */

.toolbar-search {
  border-color: var(--admin-line);
  border-radius: 10px;
  background: #fff;
}
.toolbar-search:focus-within {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.toolbar-search .search-clear { background: #f1f3f7; }
.toolbar-select {
  border-color: var(--admin-line);
  border-radius: 10px;
  background-color: #fff;
}
.toolbar-select:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.view-summary .summary-left strong { color: var(--admin-ink); }
.mini-stat {
  border-color: var(--admin-line);
  border-radius: 12px;
  background: #fff;
}
.mini-stat strong { color: var(--admin-ink); }

/* Buttons & forms ----------------------------------------------------- */

.admin-btn { border-radius: 10px; }
.admin-btn-primary {
  background: var(--admin-accent);
  box-shadow: 0 7px 18px rgba(249, 115, 22, 0.2);
}
.admin-btn-primary:hover {
  background: var(--admin-accent-deep);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.26);
}
.admin-btn-ghost {
  border-color: var(--admin-line);
  background: #fff;
}
.admin-btn-ghost:hover { border-color: #d0d5dd; background: #f8fafc; }
.admin-btn-soft { background: var(--admin-accent-soft); }
.admin-icon-btn {
  border-color: var(--admin-line);
  border-radius: 9px;
  background: #fff;
}
.admin-icon-btn:hover { border-color: #d0d5dd; background: #f8fafc; }
.admin-icon-btn.is-danger:hover {
  color: var(--admin-red);
  border-color: #f5c2bd;
  background: var(--admin-red-soft);
}
.admin-field input,
.admin-field select,
.admin-field textarea,
.admin-input,
.admin-select {
  border-color: var(--admin-line);
  border-radius: 10px;
  background: #fff;
}
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus,
.admin-input:focus,
.admin-select:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.admin-field input:disabled,
.admin-field select:disabled,
.admin-field textarea:disabled {
  background: #f4f6f9;
}

/* Categories & content ------------------------------------------------ */

.category-admin-card {
  border-color: var(--admin-line);
  border-radius: 16px;
  background: #fff;
}
.category-admin-card:hover {
  border-color: #fed7aa;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.07);
}
.add-category-card {
  border-color: #d8dee8;
  background: #fff;
}
.add-category-card:hover {
  border-color: var(--admin-accent);
  background: var(--admin-accent-soft);
}
.add-category-card .add-icon { border-color: var(--admin-line); background: #f8fafc; }
.content-panel .panel-head { border-bottom-color: var(--admin-line-soft); }
.content-panel .panel-head .head-icon { background: var(--admin-accent-soft); }
.content-actions { border-top-color: var(--admin-line-soft); }
.image-preview { border-color: var(--admin-line); background: #f4f6f9; }
.upload-btn {
  border-color: var(--admin-line);
  border-radius: 10px;
  background: #fff;
}
.upload-btn:hover { border-color: var(--admin-accent); color: var(--admin-accent-deep); }

/* Customers & settings ------------------------------------------------ */

.subscriber-row { border-bottom-color: var(--admin-line-soft); }
.subscriber-avatar { background: #f1f3f7; }
.settings-panel .panel-head { border-bottom: 0; }
.danger-panel {
  border-color: #f6d2cc;
  background: #fff8f6;
}
.danger-panel .panel-head h2 { color: var(--admin-red); }
.danger-panel .panel-head p { color: #a46b62; }
.data-actions { margin-top: 12px; }

/* Modal & order detail ------------------------------------------------ */

.admin-modal-backdrop {
  background: rgba(16, 24, 40, 0.34);
  backdrop-filter: blur(6px);
}
.admin-modal-dialog {
  border-color: var(--admin-line);
  border-radius: 18px;
  background: #fff;
}
.admin-modal-head { border-bottom-color: var(--admin-line-soft); }
.admin-modal-close {
  border-color: var(--admin-line);
  border-radius: 9px;
}
.admin-modal-close:hover { background: #f4f6f9; }
.admin-modal-foot {
  border-top-color: var(--admin-line-soft);
  background: #f8fafc;
}
.order-detail-box {
  border-color: var(--admin-line-soft);
  border-radius: 12px;
  background: #f8fafc;
}
.order-items { border-color: var(--admin-line-soft); border-radius: 12px; }
.order-item { border-bottom-color: var(--admin-line-soft); }
.order-note { background: var(--admin-accent-soft); }
.order-proof-link { background: #f1f3f7; }

/* Toasts -------------------------------------------------------------- */

.admin-toast {
  border-color: var(--admin-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

/* Login --------------------------------------------------------------- */

.login-screen { background: #fff; }
.login-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.06), transparent 32%),
    #ffffff;
}
.login-heading h1 { color: var(--admin-ink); }
.login-heading h1 em { color: var(--admin-accent-deep); }
.login-heading p { color: var(--admin-muted); }
.login-form .admin-field input { background: #fff; }
.login-error { border-color: #f5c2bd; }
.demo-credentials {
  border-color: var(--admin-line);
  border-style: solid;
  background: #f8fafc;
}
.demo-credentials > button { border-color: var(--admin-line); background: #fff; }
.demo-credentials > button:hover { border-color: var(--admin-accent); color: var(--admin-accent-deep); }
.back-to-store { color: var(--admin-muted); }
.login-legal { border-top-color: var(--admin-line-soft); }

/* Footer -------------------------------------------------------------- */

.admin-footer {
  border-top-color: var(--admin-line-soft);
  color: var(--admin-muted);
}

/* Product grid -------------------------------------------------------- */

.products-page { display: flex; flex-direction: column; gap: 20px; }

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.products-toolbar-search {
  flex: 1 1 320px;
  max-width: 440px;
  height: 42px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.products-toolbar-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--admin-ink);
  font: inherit;
  font-size: 12px;
}
.products-toolbar-search input::placeholder { color: #98a2b3; }

.products-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.products-count {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.products-count strong { color: var(--admin-ink); font-size: 12px; }

.products-layout {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.product-filter-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.product-filter-panel form { padding: 18px; }
.filter-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
}
.filter-panel-head span {
  color: var(--admin-accent-deep);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.filter-panel-head h2 {
  margin: 2px 0 0;
  color: var(--admin-ink);
  font-size: 16px;
  font-weight: 800;
}
.filter-reset {
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--admin-muted);
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.filter-reset:hover { color: var(--admin-accent-deep); background: var(--admin-accent-soft); }

.filter-group {
  padding: 0;
  border-top: 1px solid var(--admin-line-soft);
}
.filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0 9px;
  color: var(--admin-ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after {
  content: '+';
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.filter-group[open] summary::after { content: '−'; }
.filter-group summary:hover { color: var(--admin-accent-deep); }
.filter-options { padding: 0 0 9px; }

.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 3px 0;
  color: var(--admin-ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}
.filter-option:hover { color: var(--admin-ink); }
.filter-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--admin-accent);
  cursor: pointer;
}
.filter-option span { flex: 1; }
.filter-option em {
  color: var(--admin-muted-light);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.filter-option:has(input:checked) span { color: var(--admin-accent-deep); font-weight: 800; }

.filter-apply {
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--admin-accent);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.2);
}
.filter-apply:hover { background: var(--admin-accent-deep); }

.product-results { min-width: 0; }
.product-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}
.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--admin-muted);
  font-size: 9px;
  font-weight: 700;
}
.product-breadcrumb > span { text-transform: uppercase; letter-spacing: 0.08em; }
.product-breadcrumb > b { color: var(--admin-muted-light); font-weight: 400; }
.product-breadcrumb > strong { color: var(--admin-ink); font-weight: 800; }
.product-breadcrumb p {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: var(--admin-muted);
  font-size: 9px;
  font-weight: 500;
}
.product-breadcrumb p strong { color: var(--admin-ink); font-weight: 800; }
.product-results-note { color: var(--admin-muted); font-size: 9px; font-weight: 600; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: #fed7aa;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.09);
}
.product-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f3f4f2;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease;
}
.product-card:hover .product-card-media img { transform: scale(1.035); }
.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  backdrop-filter: blur(4px);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-card-actions {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.product-card:hover .product-card-actions,
.product-card:focus-within .product-card-actions { opacity: 1; transform: none; }
.product-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(230, 234, 240, 0.9);
  border-radius: 8px;
  color: var(--admin-ink-soft);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 8px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}
.product-card-action:hover { color: var(--admin-accent-deep); border-color: #fed7aa; }
.product-card-action.is-danger:hover { color: var(--admin-red); border-color: #f5c2bd; background: #fff7f6; }

.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 12px 13px 13px; }
.product-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.product-card-category {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-card-topline .pill { padding: 3px 6px; font-size: 7px; }
.product-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 4px;
  color: var(--admin-ink);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 11px;
  color: var(--admin-muted);
  font-size: 9.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.product-card-price { display: flex; flex-direction: column; gap: 1px; }
.product-card-price strong { color: var(--admin-ink); font-size: 11.5px; font-weight: 800; }
.product-card-price s { color: var(--admin-muted-light); font-size: 8.5px; }
.product-card-foot .stock-pill { padding: 3px 6px; font-size: 7.5px; }

.product-grid-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed var(--admin-line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.product-grid-empty h3 { margin: 10px 0 5px; color: var(--admin-ink); font-size: 15px; }
.product-grid-empty p { margin: 0 auto 16px; max-width: 320px; color: var(--admin-muted); font-size: 10px; line-height: 1.6; }

/* Reference-aligned shell refinements --------------------------------- */

.admin-sidebar { border-right-color: #eceff3; }
.sidebar-top { padding: 22px 18px 14px; }
.admin-brand .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.admin-brand .brand-word { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.admin-brand .brand-word small { margin-top: 2px; font-size: 7px; letter-spacing: 0.18em; }
.store-status { margin: 0 14px 12px; padding: 9px 10px; border-radius: 10px; }
.store-status strong { font-size: 9.5px; }
.store-status span { font-size: 8px; }
.sidebar-nav { padding: 6px 14px 14px; }
.sidebar-label { margin: 14px 10px 6px; font-size: 7.5px; letter-spacing: 0.15em; }
.sidebar-link { min-height: 38px; padding: 9px 11px; font-size: 10.5px; }
.sidebar-link.is-active::before { display: none; }
.sidebar-foot { padding: 14px; }

.admin-topbar {
  min-height: 74px;
  padding: 0 30px;
  background: #fff;
  backdrop-filter: none;
}
.topbar-heading h1 { font-size: 20px; letter-spacing: -0.02em; }
.topbar-eyebrow { color: var(--admin-accent-deep); font-size: 7.5px; letter-spacing: 0.16em; }
.topbar-subtitle {
  margin: 2px 0 0;
  color: var(--admin-muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.admin-global-search {
  width: min(360px, 32vw);
  height: 38px;
  border: 1px solid var(--admin-line);
  border-radius: 11px;
  background: #f9fafb;
  box-shadow: none;
}
.admin-global-search:focus-within { border-color: #fdba74; background: #fff; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08); }
.admin-global-search input { font-size: 10.5px; }
.topbar-store-link { height: 36px; border-radius: 10px; font-size: 9.5px; }
.topbar-icon { width: 36px; height: 36px; border-radius: 10px; }
.topbar-avatar { width: 38px; height: 38px; border-radius: 11px; }
.topbar-user strong { font-size: 10px; }
.topbar-user span { font-size: 8px; }

.admin-view { padding: 26px 30px 42px; }
.admin-footer { padding: 18px 30px 22px; }

.view-summary { margin-bottom: 16px; }
.view-toolbar { margin-bottom: 16px; }
.table-wrap { border: 1px solid var(--admin-line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-xs); }
.admin-table thead th { background: #fbfcfd; font-size: 8px; letter-spacing: 0.08em; }
.admin-table tbody td { font-size: 10px; }
.admin-table tbody tr:last-child td { border-bottom: 0; }

.welcome-banner {
  border: 1px solid #ffe3ca;
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 18%, rgba(249, 115, 22, 0.12), transparent 32%),
    linear-gradient(135deg, #fff8f1 0%, #fffdfb 58%, #ffffff 100%);
}

/* Responsive adjustments --------------------------------------------- */

@media (max-width: 1180px) {
  .products-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 13px; }
}

@media (max-width: 920px) {
  .admin-sidebar { box-shadow: 20px 0 50px rgba(16, 24, 40, 0.16); }
  .admin-topbar { padding: 0 20px; }
  .admin-view { padding: 22px 20px 34px; }
  .products-layout { grid-template-columns: 1fr; }
  .product-filter-panel { position: static; }
  .product-filter-panel form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .filter-panel-head, .filter-apply { grid-column: 1 / -1; }
  .filter-group { min-width: 0; }
}

@media (max-width: 720px) {
  .welcome-banner { padding: 22px 20px; }
  .stat-card { border-radius: 14px; }
  .products-toolbar { align-items: stretch; }
  .products-toolbar-search { max-width: none; flex-basis: 100%; }
  .products-toolbar-actions { justify-content: space-between; }
  .product-results-note { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-subtitle { display: none; }
}

@media (max-width: 560px) {
  .product-filter-panel form { grid-template-columns: 1fr; }
  .product-grid { gap: 10px; }
  .product-card-body { padding: 10px; }
  .product-card h3 { font-size: 11.5px; }
  .product-card p { display: none; }
  .product-card-actions { opacity: 1; transform: none; }
  .product-card-action { width: 26px; height: 26px; }
  .admin-topbar { padding: 0 16px; }
  .admin-view { padding: 18px 16px 30px; }
  .admin-footer { padding: 16px; }
}

/* Typography + scale refresh */
:root {
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.admin-body {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body h4,
.admin-body .brand-word,
.admin-body .stat-value,
.admin-body .summary-left strong,
.admin-body .cell-order strong,
.admin-body .subscriber-avatar,
.admin-body .topbar-avatar {
  font-family: var(--font-display);
  letter-spacing: -0.022em;
}

.brand-mark {
  background: var(--admin-accent);
  border-radius: 11px;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.18);
}
.brand-mark svg { display: none; }
.brand-mark::after {
  content: 'P';
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}
.brand-mark.brand-mark--logo {
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--admin-line);
}
.brand-mark.brand-mark--logo::after { content: none; }
.brand-mark.brand-mark--logo svg { display: none; }
.brand-mark.brand-mark--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.admin-brand .brand-mark.brand-mark--logo {
  width: calc(38px * var(--brand-mark-scale, 1));
  height: calc(38px * var(--brand-mark-scale, 1));
}
.admin-brand .brand-word { font-size: 17px; letter-spacing: -0.015em; }
.admin-brand .brand-word small { margin-top: 3px; font-size: 8.5px; letter-spacing: 0.14em; }

.login-visual-copy h2,
.login-heading h1,
.welcome-copy h2 { font-family: var(--font-display); }
.login-visual-copy h2 em,
.login-heading h1 em,
.welcome-copy h2 em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
}
.login-kicker { font-size: 10px; letter-spacing: 0.13em; }
.login-visual-copy h2 { font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -0.03em; line-height: 1.12; }
.login-visual-copy p { font-size: 14px; line-height: 1.65; }
.login-floating-card strong { font-size: 12px; }
.login-floating-card p { font-size: 10.5px; }
.login-edition { font-size: 9.5px; }
.login-heading h1 { font-size: 40px; letter-spacing: -0.03em; }
.login-heading p { font-size: 13.5px; line-height: 1.65; }
.login-form .admin-field > label { font-size: 11.5px; }
.login-form .admin-field input { font-size: 14px; }
.login-submit { font-size: 13px; }
.demo-credentials strong { font-size: 11.5px; }
.demo-credentials p { font-size: 11px; }
.demo-credentials button { font-size: 11.5px; }
.back-to-store { font-size: 11.5px; }
.login-legal { font-size: 10.5px; line-height: 1.7; }

.store-status strong { font-size: 11px; }
.store-status span { font-size: 9.5px; }
.sidebar-label { font-size: 9px; letter-spacing: 0.12em; }
.sidebar-link { min-height: 42px; font-size: 12.5px; }
.sidebar-user strong { font-size: 11.5px; }
.sidebar-user span { font-size: 9.5px; }
.sidebar-version { font-size: 8.5px; }

.admin-topbar { min-height: 80px; }
.topbar-heading h1 { font-size: 24px; letter-spacing: -0.028em; }
.topbar-eyebrow { font-size: 9px; letter-spacing: 0.13em; }
.topbar-subtitle { font-size: 11.5px; }
.admin-global-search { height: 42px; }
.admin-global-search input { font-size: 12.5px; }
.admin-global-search kbd { font-size: 9px; }
.topbar-store-link { height: 40px; font-size: 11px; }
.topbar-icon { width: 40px; height: 40px; }
.topbar-avatar { width: 40px; height: 40px; font-size: 12px; }
.topbar-user strong { font-size: 12px; }
.topbar-user span { font-size: 10px; }

.notif-head strong { font-size: 12.5px; }
.notif-head span { font-size: 10px; }
.notif-item strong { font-size: 11.5px; }
.notif-item p { font-size: 10.5px; }
.notif-empty { font-size: 11.5px; }
.notif-foot a { font-size: 10.5px; }

.admin-btn { min-height: 42px; font-size: 12.5px; }
.admin-btn-sm { min-height: 36px; font-size: 11.5px; }
.admin-field > label,
.admin-field-label { font-size: 11.5px; }
.admin-field input[type="text"],
.admin-field input[type="email"],
.admin-field input[type="password"],
.admin-field input[type="number"],
.admin-field input[type="tel"],
.admin-field input[type="url"],
.admin-field input[type="search"],
.admin-field input[type="datetime-local"],
.admin-field select,
.admin-field textarea,
.admin-input,
.admin-select { min-height: 44px; font-size: 13.5px; }
.admin-field .field-hint { font-size: 11px; }
.admin-field .field-error { font-size: 11px; }
.image-input .field-hint { font-size: 10.5px; }

.admin-table { font-size: 12px; }
.admin-table thead th { font-size: 10px; letter-spacing: 0.07em; }
.admin-table tbody td { font-size: 12px; padding-top: 12px; padding-bottom: 12px; }
.cell-product strong { font-size: 12px; }
.cell-product span { font-size: 10px; }
.cell-strong { font-size: 12px; }
.cell-sub { font-size: 10px; }
.cell-customer strong { font-size: 11.5px; }
.cell-customer span { font-size: 10px; }
.cell-order strong { font-size: 11.5px; }
.payment-tag { font-size: 9.5px; }
.pill { font-size: 9.5px; }
.stock-pill { font-size: 9.5px; }
.table-empty h3 { font-size: 17px; }
.table-empty p { font-size: 11.5px; }

.view-summary .summary-left { font-size: 11.5px; }
.view-summary .summary-left strong { font-size: 19px; }
.toolbar-search input { font-size: 12.5px; }
.toolbar-select { font-size: 11.5px; }
.results-meta { font-size: 11px; }

.welcome-banner {
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #fff;
}
.welcome-banner::after { display: none; }
.welcome-copy .welcome-eyebrow { font-size: 10px; letter-spacing: 0.11em; color: #667085; }
.welcome-copy h2 { font-size: clamp(25px, 2.4vw, 34px); letter-spacing: -0.03em; }
.welcome-copy h2 em { color: var(--admin-accent-deep); }
.welcome-copy p { font-size: 12.5px; line-height: 1.65; }
.welcome-date { font-size: 10.5px; }

.stat-label { font-size: 11.5px; }
.stat-value { font-size: 28px; letter-spacing: -0.035em; }
.stat-foot { font-size: 10.5px; }
.stat-foot strong { font-size: 10.5px; }
.stat-trend { font-size: 9.5px; }

.panel-head h2,
.panel-head h3 { font-size: 16px; letter-spacing: -0.02em; }
.panel-head p { font-size: 11.5px; }
.panel-head .panel-link { font-size: 10.5px; }
.chart-summary span { font-size: 9.5px; }
.chart-label { font-size: 9.5px; }
.low-stock-item strong { font-size: 11.5px; }
.low-stock-item span { font-size: 10px; }
.top-product-rank { font-size: 9.5px; }
.top-product-info strong { font-size: 11.5px; }
.top-product-info span { font-size: 10px; }
.top-product > strong { font-size: 11.5px; }
.quick-action strong { font-size: 11px; }
.quick-action span { font-size: 10px; }

.category-admin-media .product-count { font-size: 9.5px; }
.category-admin-body p { font-size: 10.5px; }
.add-category-card strong { font-size: 12px; }
.add-category-card span { font-size: 10.5px; }
.content-actions .saved-note { font-size: 10.5px; }
.mini-stat span { font-size: 10.5px; }
.subscriber-avatar { font-size: 10.5px; }
.subscriber-row strong { font-size: 11.5px; }
.subscriber-row span { font-size: 10px; }
.subscriber-row time { font-size: 10px; }
.customer-spend { font-size: 11.5px; }
.customer-avatar-inline { font-size: 10px; }
.danger-panel .panel-body p { font-size: 11px; }

.admin-modal-eyebrow { font-size: 9px; }
.confirm-content p { font-size: 12px; }
.order-detail-head p { font-size: 10.5px; }
.order-detail-box h4 { font-size: 9px; }
.order-detail-box strong { font-size: 12px; }
.order-detail-box p { font-size: 10.5px; }
.order-detail-box .order-payment-note { font-size: 10px; }
.order-proof-box p strong { font-size: 10.5px; }
.order-item-info strong { font-size: 11.5px; }
.order-item-info span { font-size: 10px; }
.order-item > strong { font-size: 11.5px; }
.order-total-row { font-size: 11px; }
.order-total-row.grand { font-size: 12.5px; }
.order-note { font-size: 10.5px; }

.admin-footer { font-size: 10.5px; }

.products-toolbar-search input { font-size: 13.5px; }
.products-count { font-size: 11px; }
.products-count strong { font-size: 13px; }
.filter-panel-head span { font-size: 9.5px; letter-spacing: 0.12em; }
.filter-panel-head h2 { font-size: 19px; letter-spacing: -0.02em; }
.filter-reset { font-size: 10.5px; }
.filter-group summary { font-size: 10.5px; letter-spacing: 0.08em; }
.filter-option { min-height: 34px; font-size: 12.5px; }
.filter-option em { font-size: 10.5px; }
.filter-apply { min-height: 42px; font-size: 12.5px; }
.product-breadcrumb { font-size: 10.5px; }
.product-breadcrumb p { font-size: 11px; }
.product-results-note { font-size: 10.5px; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.product-card-category { font-size: 9.5px; letter-spacing: 0.09em; }
.product-card-topline .pill { font-size: 9px; }
.product-card h3 { font-size: 14.5px; letter-spacing: -0.015em; }
.product-card p { font-size: 11px; }
.product-card-price strong { font-size: 13px; }
.product-card-price s { font-size: 10px; }
.product-card-foot .stock-pill { font-size: 9px; }
.product-card-badge { font-size: 9px; }
.product-grid-empty h3 { font-size: 17px; }
.product-grid-empty p { font-size: 11.5px; }

@media (max-width: 720px) {
  .topbar-heading h1 { font-size: 21px; }
  .welcome-copy h2 { font-size: 26px; }
  .product-card h3 { font-size: 13.5px; }
  .product-card p { display: none; }
}

@media (max-width: 560px) {
  .login-heading h1 { font-size: 34px; }
  .sidebar-link { font-size: 12px; }
  .admin-topbar { min-height: 72px; }
  .product-card h3 { font-size: 13px; }
}

.mobile-tabbar { display: none; }

@media (max-width: 720px) {
  body.admin-body { background: #f5f5f5; }
  .admin-sidebar,
  .sidebar-scrim { display: none !important; }
  .admin-shell { display: block; }
  .admin-main { min-height: 100vh; }

  .admin-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "heading notif" "search search";
    gap: 10px 12px;
    min-height: 0;
    padding: 14px 14px 12px;
    border-bottom: 0;
    background: linear-gradient(135deg, #fb6a3c 0%, #ee4d2d 100%);
    box-shadow: 0 3px 12px rgba(238, 77, 45, 0.2);
  }
  .topbar-left { grid-area: heading; min-width: 0; }
  .topbar-menu { display: none !important; }
  .topbar-heading h1 {
    max-width: none;
    color: #fff;
    font-size: 22px;
    letter-spacing: -0.02em;
  }
  .topbar-eyebrow {
    margin-bottom: 1px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 9px;
  }
  .topbar-subtitle { display: none; }
  .topbar-right { display: contents; }
  .admin-global-search {
    display: flex !important;
    grid-area: search;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  }
  .admin-global-search > span[data-icon] { color: #ee4d2d; }
  .admin-global-search input { color: #222; font-size: 13px; }
  .admin-global-search kbd { display: none; }
  .topbar-store-link,
  .topbar-divider,
  .topbar-user { display: none !important; }
  .notif-wrap { grid-area: notif; align-self: center; }
  .topbar-icon {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
  }
  .topbar-icon .icon { width: 18px; height: 18px; }
  .notif-dot { color: #ee4d2d; background: #fff; }
  .notif-panel { position: fixed; left: 12px; right: 12px; top: 126px; width: auto; }

  .admin-view { padding: 12px 12px 86px; }
  .admin-footer { display: none; }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid #ececec;
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.07);
  }
  .mobile-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    color: #8b8b8b;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-tab > span[data-icon] {
    display: flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
  }
  .mobile-tab > span[data-icon] svg { width: 21px; height: 21px; }
  .mobile-tab.is-active { color: #ee4d2d; }
  .mobile-tab.is-active > span[data-icon] { transform: translateY(-1px); }
  .mobile-tab-badge {
    position: absolute;
    top: 2px;
    left: calc(50% + 4px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #ee4d2d;
    font-size: 9px;
    font-weight: 800;
    line-height: 13px;
    text-align: center;
  }

  .admin-toast-stack { right: 12px; bottom: 78px; left: 12px; z-index: 90; }
  .admin-toast { width: 100%; }

  .welcome-banner { padding: 18px 16px; border-radius: 12px; }
  .welcome-copy .welcome-eyebrow { font-size: 9px; }
  .welcome-copy h2 { font-size: 24px; }
  .welcome-copy p { font-size: 12px; }
  .welcome-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .welcome-actions .admin-btn { min-height: 38px; padding: 0 10px; font-size: 11px; }
  .welcome-date { font-size: 10px; }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .stat-card {
    display: block !important;
    padding: 12px;
    border-radius: 10px;
  }
  .stat-card .stat-top { display: flex; }
  .stat-icon { width: 30px; height: 30px; }
  .stat-label { margin-top: 10px; font-size: 10.5px; }
  .stat-value { font-size: 20px !important; }
  .stat-foot { display: none; }
  .stat-trend { font-size: 8.5px; }
  .mini-stat-grid,
  .mini-stat-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .mini-stat { padding: 11px; border-radius: 10px; }
  .mini-stat span { font-size: 10px; }
  .mini-stat strong { font-size: 17px; }
  .panel { border-radius: 12px; }
  .panel-head { padding: 14px 14px 0; }
  .panel-body { padding: 12px 14px 14px; }
  .dash-grid,
  .dash-split,
  .split-grid,
  .settings-grid { gap: 10px; }
  .view-summary { align-items: stretch; }
  .summary-right .admin-btn { width: 100%; }

  .products-page { display: flex; flex-direction: column; gap: 10px; }
  .products-toolbar { display: block; }
  .products-toolbar-search { display: none; }
  .products-toolbar-actions { width: 100%; }
  .products-toolbar-actions .admin-btn { width: 100%; min-height: 42px; }
  .products-layout { display: flex; flex-direction: column; gap: 10px; }
  .product-filter-panel {
    position: static;
    width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  .product-filter-panel form { display: block; padding: 8px 0; }
  .filter-panel-head,
  .filter-apply { display: none; }
  .filter-group { border: 0; }
  .filter-group-status,
  .filter-group-availability { display: none; }
  .filter-group summary { display: none; }
  .filter-options {
    display: flex;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 4px 12px;
    scrollbar-width: none;
  }
  .filter-options::-webkit-scrollbar { display: none; }
  .filter-option {
    position: relative;
    flex: none;
    gap: 0;
    min-height: 32px;
    padding: 5px 10px;
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: 999px;
    background: #f7f7f7;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
  }
  .filter-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
  .filter-option em { display: none; }
  .filter-option:has(input:checked) {
    border-color: #ee4d2d;
    color: #ee4d2d;
    background: #fff4f0;
  }
  .product-results-head { margin: 0; align-items: center; }
  .product-breadcrumb { font-size: 11px; }
  .product-breadcrumb > span,
  .product-breadcrumb > b { display: none; }
  .product-breadcrumb > strong { font-size: 13px; }
  .product-breadcrumb p { margin-top: 1px; font-size: 10.5px; }
  .product-results-note { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-card { border: 0; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
  .product-card-media { aspect-ratio: 1 / 1; }
  .product-card-badge {
    top: 6px;
    left: 6px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #ee4d2d;
    font-size: 8px;
  }
  .product-card-actions { top: 6px; right: 6px; opacity: 1; transform: none; }
  .product-card-action { width: 27px; height: 27px; border-radius: 6px; }
  .product-card-body { padding: 8px 9px 9px; }
  .product-card-topline { margin-bottom: 3px; }
  .product-card-category { font-size: 8px; letter-spacing: 0.05em; }
  .product-card-topline .pill { padding: 2px 5px; font-size: 8px; }
  .product-card h3 { margin-bottom: 3px; font-size: 12.5px; line-height: 1.35; }
  .product-card p { display: none; }
  .product-card-price { min-width: 0; flex: 1; }
  .product-card-price strong { color: #ee4d2d; font-size: 13px; white-space: nowrap; }
  .product-card-price s { font-size: 9px; }
  .product-card-foot .stock-pill { flex: none; color: #888; font-size: 8.5px; }
  .product-grid-empty { grid-column: 1 / -1; }

  .table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .admin-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }
  .admin-table thead { display: none; }
  .admin-table tbody { display: block; }
  .admin-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  .admin-table tbody td {
    display: block;
    padding: 0 !important;
    border: 0;
    text-align: left !important;
  }
  .admin-table tbody td:last-child { text-align: right !important; }

  .orders-table tbody tr {
    grid-template-areas:
      "order action"
      "customer customer"
      "item item"
      "total payment"
      "status status";
  }
  .orders-table td:nth-child(1) { grid-area: order; }
  .orders-table td:nth-child(2) {
    grid-area: customer;
    padding-top: 6px !important;
    border-top: 1px dashed #f0f0f0;
  }
  .orders-table td:nth-child(3) { grid-area: item; }
  .orders-table td:nth-child(4) { grid-area: total; align-self: center; }
  .orders-table td:nth-child(4) .cell-strong { color: #ee4d2d; }
  .orders-table td:nth-child(5) { grid-area: payment; text-align: right !important; }
  .orders-table td:nth-child(6) { grid-area: status; }
  .orders-table td:nth-child(7) { grid-area: action; }
  .orders-table .cell-customer { gap: 8px; }
  .orders-table .cell-customer .customer-avatar-inline { width: 26px; height: 26px; }
  .orders-table .cell-order strong { font-size: 12px; }
  .orders-table .cell-sub { font-size: 10px; }
  .orders-table .table-status-select { width: 100%; height: 36px; font-size: 11.5px; }
  .orders-table .payment-tag { font-size: 9.5px; }
  .orders-table .cell-actions { justify-content: flex-end; }

  .customers-table tbody tr {
    grid-template-areas:
      "person person"
      "contact orders"
      "spend last";
  }
  .customers-table td:nth-child(1) { grid-area: person; }
  .customers-table td:nth-child(2) { grid-area: contact; }
  .customers-table td:nth-child(3) { grid-area: orders; text-align: right !important; }
  .customers-table td:nth-child(4) { grid-area: spend; }
  .customers-table td:nth-child(4) .customer-spend { color: #ee4d2d; }
  .customers-table td:nth-child(5) { grid-area: last; text-align: right !important; }

  .users-table tbody tr {
    grid-template-areas:
      "person action"
      "role status"
      "orders login";
  }
  .users-table td:nth-child(1) { grid-area: person; }
  .users-table td:nth-child(2) { grid-area: role; }
  .users-table td:nth-child(3) { grid-area: status; justify-self: end; }
  .users-table td:nth-child(4) { grid-area: orders; }
  .users-table td:nth-child(5) { grid-area: login; text-align: right !important; }
  .users-table td:nth-child(6) { grid-area: action; }
  .users-table .cell-actions { justify-content: flex-end; }

  .form-grid,
  .content-form-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .form-grid .full,
  .content-form-grid .full { grid-column: auto; }
  .settings-panel .panel-head,
  .settings-panel .panel-body { padding: 14px; }
  .settings-side { display: flex; }
  .content-actions { flex-direction: column-reverse; align-items: stretch; }
  .content-actions .admin-btn { width: 100%; }

  .admin-modal { align-items: flex-end; padding: 0; }
  .admin-modal-dialog {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }
  .admin-modal-head { padding: 16px; }
  .admin-modal-body { padding: 0 16px 18px; }
  .admin-modal .form-grid { grid-template-columns: 1fr !important; }
  .admin-modal .form-grid .full { grid-column: auto; }
}
