/* ============================================================
   ABAYA ADMIN PANEL - Professional CSS
   ============================================================ */

:root {
  --primary:        #8b5a3c;
  --primary-dark:   #6b4530;
  --primary-light:  #f5ebe3;
  --primary-ring:   rgba(139, 90, 60, 0.12);
  --primary-shadow: rgba(139, 90, 60, 0.18);
  --secondary:      #5c3d2a;
  --accent:         #c08a3e;
  --success:        #10b981;
  --danger:         #ef4444;
  --warning:        #f59e0b;
  --info:           #3b82f6;
  --dark:           #1a1410;
  --sidebar-bg:     #1a1410;
  --sidebar-width:  260px;
  --sidebar-collapsed: 70px;
  --header-height:  64px;
  --border:         #e5d9cf;
  --text-primary:   #2a211c;
  --text-secondary: #6e5c52;
  --text-muted:     #9a877a;
  --bg-page:        #faf7f4;
  --bg-card:        #ffffff;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.12);
  --radius:         8px;
  --radius-sm:      8px;
  --radius-lg:      8px;
  --transition:     all .2s ease;
}

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

body.admin-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  background: var(--bg-page);
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  --bs-primary: var(--primary);
  --bs-primary-rgb: 139, 90, 60;
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-dark);
  --bs-success: var(--accent);
  --bs-success-rgb: 192, 138, 62;
}

body.admin-body .text-primary { color: var(--primary) !important; }
body.admin-body .bg-primary,
body.admin-body .btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
body.admin-body .bg-primary-subtle {
  background-color: var(--primary-light) !important;
  color: var(--primary-dark) !important;
}
body.admin-body .text-success { color: var(--accent) !important; }
body.admin-body .border-primary { border-color: var(--primary) !important; }

/* ── SIDEBAR ──────────────────────────────────────────────── */
.admin-sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  z-index: 1000;
  overflow: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  gap: 10px;
  min-height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1;
  overflow: hidden;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-text { overflow: hidden; }
.logo-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}
.logo-sub {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
}

.sidebar-toggle-btn {
  background: rgba(255,255,255,.07);
  border: none;
  color: rgba(255,255,255,.5);
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 14px;
}
.sidebar-toggle-btn:hover { background: rgba(255,255,255,.15); color: white; }

.sidebar-nav-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sidebar-nav-wrapper::-webkit-scrollbar { width: 4px; }
.sidebar-nav-wrapper::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-section-title {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
  white-space: nowrap;
  overflow: hidden;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  border-radius: 8px;
  margin: 1px 8px;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.nav-link i { font-size: 16px; flex-shrink: 0; }
.nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.submenu-arrow { margin-inline-start: auto; font-size: 11px; transition: transform .2s; }

.nav-link:hover {
  color: white;
  background: rgba(255,255,255,.08);
}

.nav-item.active > .nav-link {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 12px var(--primary-shadow);
}

/* Submenu */
.has-submenu { }
.has-submenu .submenu-toggle { cursor: pointer; }
.has-submenu.expanded > .nav-link { color: white; background: rgba(255,255,255,.06); }
.has-submenu.expanded .submenu-arrow { transform: rotate(90deg); }

.submenu {
  list-style: none;
  padding-block: 4px;
  padding-inline-start: 44px;
  padding-inline-end: 0;
  margin: 0;
  display: none;
  border-inline-start: 2px solid rgba(255, 255, 255, 0.08);
}
.submenu.show { display: block; }
.submenu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  transition: var(--transition);
}
.submenu li a:hover, .submenu li.active a {
  color: white;
  background: rgba(255,255,255,.08);
}
.submenu li a i { font-size: 13px; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.user-avatar-sm {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-name-sm {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,.8);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role-sm {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
}

/* ── COLLAPSED SIDEBAR ───────────────────────────────────── */
body.sidebar-collapsed .admin-sidebar { width: var(--sidebar-collapsed); }
body.sidebar-collapsed .logo-text,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-section-title span,
body.sidebar-collapsed .user-info-sm,
body.sidebar-collapsed .submenu-arrow { display: none; opacity: 0; }
body.sidebar-collapsed .submenu { display: none !important; }
body.sidebar-collapsed .nav-link { padding: 10px 0; justify-content: center; margin: 1px 6px; }
body.sidebar-collapsed .nav-link i { font-size: 18px; }
body.sidebar-collapsed .sidebar-footer .user-info-sm { display: none; }
body.sidebar-collapsed .admin-main { margin-left: var(--sidebar-collapsed); }

/* ── MAIN AREA ───────────────────────────────────────────── */
.admin-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

/* ── HEADER ──────────────────────────────────────────────── */
.admin-header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breadcrumb { margin: 0; }
.breadcrumb-item a { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-primary); font-size: 13px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-toolbar-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  min-height: 36px;
  transition: var(--transition);
}
.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.header-search i { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
  width: 160px;
  min-width: 0;
  padding: 8px 0;
}
.search-input::placeholder { color: var(--text-muted); }

/* Language toggle — header variant */
.language-toggle--header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 3px 5px 3px 8px;
  border-radius: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.language-toggle--header:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.language-toggle--header .language-toggle-icon {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.language-toggle--header .language-toggle-segments {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.language-toggle--header .language-toggle-form {
  margin: 0;
  display: flex;
}
.language-toggle--header .language-toggle-option {
  min-width: 56px;
  min-height: 28px;
  padding: 4px 12px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.language-toggle--header .language-toggle-option[dir="rtl"],
.language-toggle--header .language-toggle-option:lang(ar) {
  font-family: 'Cairo', 'Tajawal', 'Noto Kufi Arabic', sans-serif;
  min-width: 64px;
  letter-spacing: 0;
}
.language-toggle--header button.language-toggle-option:hover {
  background: var(--bg-page);
  color: var(--text-primary);
}
.language-toggle--header .language-toggle-option.is-active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.logo-icon .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  padding: 3px;
  background: rgba(255, 255, 255, 0.95);
}

.notif-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.user-menu-chevron {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.action-btn {
  position: relative;
  background: transparent;
  border: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 17px;
  cursor: pointer;
  transition: var(--transition);
}
.action-btn:hover { background: var(--bg-page); color: var(--primary); }

.badge-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
}

.notification-dropdown {
  width: 320px;
  padding: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
}
.dropdown-header a { font-size: 12px; color: var(--primary); text-decoration: none; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.notif-item:hover { background: var(--bg-page); }
.notif-item i { font-size: 18px; margin-top: 2px; }
.notif-item p { margin: 0; font-size: 13px; font-weight: 500; }
.notif-item small { color: var(--text-muted); font-size: 11px; }
.dropdown-footer { padding: 12px 16px; text-align: center; border-top: 1px solid var(--border); }
.dropdown-footer a { font-size: 12px; color: var(--primary); text-decoration: none; }

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  transition: var(--transition);
  max-width: 240px;
}
.user-menu-btn:hover {
  background: var(--bg-page);
  border-color: var(--border-strong, var(--border));
}

.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.user-info { text-align: start; min-width: 0; }
.user-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.user-role { display: block; font-size: 11px; color: var(--text-muted); }

/* ── CONTENT AREA ────────────────────────────────────────── */
.admin-content {
  flex: 1;
  padding: 24px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.admin-footer {
  height: 48px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
}

.card-body { padding: 20px; }

/* Stat Cards */
.stat-card {
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.purple { background: #ebe0d6; color: var(--secondary); }
.stat-icon.blue   { background: #f0e8e0; color: #7a5c48; }
.stat-icon.green  { background: var(--primary-light); color: var(--primary); }
.stat-icon.orange { background: #f8ead8; color: var(--accent); }
.stat-icon.red    { background: #f5e0d8; color: #b4533f; }
.stat-icon.teal   { background: #f3e4d4; color: #9a6b4a; }
.stat-icon.indigo { background: #e8ddd4; color: #5c4a3d; }
.stat-icon.yellow { background: #faf0e0; color: #a67c3d; }

.stat-content { flex: 1; min-width: 0; }
.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 2px;
}
.stat-label { font-size: 12.5px; color: var(--text-muted); }
.stat-change { font-size: 11.5px; margin-top: 4px; }
.stat-change.up { color: var(--accent); }
.stat-change.down { color: var(--danger); }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.page-header-left h1, .page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.page-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── TABLES ──────────────────────────────────────────────── */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.table-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

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

.table-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: white;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus { border-color: var(--primary); }
.filter-select.compact { width: 150px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
}
.search-box i { color: var(--text-muted); font-size: 14px; }
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 200px;
}

.table { margin: 0; }
.table thead th {
  background: var(--bg-page);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  padding: 11px 16px;
  white-space: nowrap;
}

.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fafbfc; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}
.badge-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge-active    { background: var(--primary-light); color: var(--primary-dark); }
.badge-inactive  { background: #f1f5f9; color: #64748b; }
.badge-pending   { background: #fef9c3; color: #78350f; }
.badge-success   { background: var(--primary-light); color: var(--primary-dark); }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-info      { background: #dbeafe; color: #1e40af; }
.badge-warning   { background: #ffedd5; color: #9a3412; }
.badge-draft     { background: #f1f5f9; color: #475569; }

/* ── ACTION BUTTONS ──────────────────────────────────────── */
.action-buttons { display: flex; gap: 4px; }

.btn-action {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-action:hover { opacity: .85; transform: translateY(-1px); }
.btn-action.view    { background: #dbeafe; color: #3b82f6; }
.btn-action.edit    { background: #fef9c3; color: #ca8a04; }
.btn-action.delete  { background: #fee2e2; color: #ef4444; }
.btn-action.toggle  { background: var(--primary-light); color: var(--primary); }
.btn-action.perms   { background: #ede9ff; color: #5b4fcf; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-admin {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-primary-admin:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }
.btn-primary-admin.is-submitting,
.btn-outline-admin.is-submitting,
.btn-action.is-submitting {
  opacity: .62;
  pointer-events: none;
  transform: none;
}

.btn-outline-admin {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-outline-admin:hover { border-color: var(--primary); color: var(--primary); }

/* ── FORMS ───────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text-primary);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
  outline: none;
}

.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { font-size: 12px; }

.seo-control {
  min-height: 68px;
  resize: vertical;
}

.section-hint {
  margin: -6px 0 14px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.upload-status {
  margin-top: 6px;
  padding: 7px 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg-page);
}

.modal-backdrop.show {
  opacity: .42;
  backdrop-filter: blur(2px);
}

.admin-dialog-shell {
  width: min(440px, calc(100vw - 32px));
}

.confirm-modal,
.admin-dialog-modal {
  --dialog-accent: var(--primary);
  --dialog-accent-soft: var(--primary-light);
  --dialog-accent-shadow: var(--primary-shadow);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)),
    var(--bg-card);
  box-shadow: 0 26px 80px rgba(17,24,39,.22), 0 2px 8px rgba(17,24,39,.08);
  overflow: hidden;
}

.admin-dialog-modal::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--dialog-accent), color-mix(in srgb, var(--dialog-accent) 48%, #fff));
}

.admin-dialog-modal.is-success {
  --dialog-accent: var(--accent);
  --dialog-accent-soft: #faf0e0;
  --dialog-accent-shadow: rgba(192, 138, 62, .22);
}

.admin-dialog-modal.is-error {
  --dialog-accent: #dc2626;
  --dialog-accent-soft: #fef2f2;
  --dialog-accent-shadow: rgba(220,38,38,.18);
}

.admin-dialog-modal.is-warning,
.admin-dialog-modal.is-confirm {
  --dialog-accent: #d97706;
  --dialog-accent-soft: #fffbeb;
  --dialog-accent-shadow: rgba(217,119,6,.2);
}

.admin-dialog-modal.is-info {
  --dialog-accent: var(--primary);
  --dialog-accent-soft: rgba(139, 90, 60, 0.1);
  --dialog-accent-shadow: var(--primary-shadow);
}

.admin-dialog-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 28px 18px;
  align-items: start;
}

.admin-dialog-visual {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.admin-dialog-orbit {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--dialog-accent-soft);
  box-shadow: 0 16px 32px var(--dialog-accent-shadow);
}

.admin-dialog-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  background: #fff;
  color: var(--dialog-accent);
  border: 1px solid color-mix(in srgb, var(--dialog-accent) 18%, #fff);
}

.admin-dialog-copy {
  min-width: 0;
  padding-top: 2px;
}

.admin-dialog-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--dialog-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-dialog-modal .modal-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.admin-dialog-modal [data-admin-dialog-message] {
  margin: 9px 0 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-line;
}

.admin-dialog-actions {
  border: 0;
  padding: 6px 28px 26px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-dialog-actions .btn-primary-admin,
.admin-dialog-actions .btn-outline-admin {
  min-width: 96px;
  justify-content: center;
  min-height: 38px;
  font-weight: 650;
}

.admin-dialog-actions .btn-primary-admin {
  background: var(--dialog-accent);
  box-shadow: 0 10px 22px var(--dialog-accent-shadow);
}

.admin-dialog-actions .btn-primary-admin:hover {
  background: color-mix(in srgb, var(--dialog-accent) 84%, #000);
}

.admin-dialog-actions .btn-outline-admin {
  background: #fff;
}

.admin-dialog-modal.is-error .btn-primary-admin {
  background: #dc2626;
}

@media (max-width: 575.98px) {
  .admin-dialog-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 26px 22px 16px;
  }

  .admin-dialog-actions {
    padding: 4px 22px 24px;
    flex-direction: column-reverse;
  }

  .admin-dialog-actions .btn-primary-admin,
  .admin-dialog-actions .btn-outline-admin {
    width: 100%;
  }
}

.media-thumb-sm,
.brand-thumb,
.category-thumb,
.file-thumb {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  padding: 2px;
  background: #fff;
}

.category-thumb,
.file-thumb {
  width: 40px;
  height: 40px;
}

.banner-thumb {
  width: 72px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-page);
  flex-shrink: 0;
}

.text-truncate-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17,24,39,.04);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card-media {
  height: 150px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.resource-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resource-card-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.42);
  font-size: 40px;
}

.resource-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.resource-card-badge.left {
  left: 10px;
  right: auto;
}

.resource-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.resource-card-footer {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11.5px;
}

.store-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.store-detail-list {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.store-detail-list div {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.store-detail-list i {
  color: var(--primary);
  margin-top: 1px;
}

.store-detail-list a {
  color: var(--text-secondary);
  text-decoration: none;
}

.store-detail-list a:hover {
  color: var(--primary);
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.pagination-info { font-size: 12.5px; color: var(--text-muted); }

.pagination { margin: 0; }
.page-link {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px !important;
  margin: 0 2px;
  font-size: 13px;
  padding: 6px 11px;
  transition: var(--transition);
}
.page-link:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ── ALERT FLOAT ─────────────────────────────────────────── */
.alert-float {
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* ── AVATAR ──────────────────────────────────────────────── */
.avatar-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── MOBILE TOGGLE ───────────────────────────────────────── */
.mobile-toggle-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}

/* ── PRODUCT IMAGE THUMB ─────────────────────────────────── */
.product-img-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.no-img-placeholder {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  border: 1px solid var(--border);
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state h5 { font-size: 16px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 13px; margin-bottom: 20px; }

/* ── TABS ────────────────────────────────────────────────── */
.nav-tabs { border-bottom: 2px solid var(--border); }
.nav-tabs .nav-link {
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 0;
  font-weight: 500;
}
.nav-tabs .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .sidebar-backdrop.show { display: block; }
}

@media (max-width: 575.98px) {
  .admin-content { padding: 16px; }
  .page-header { flex-direction: column; }
  .stat-value { font-size: 20px; }
}

/* ── UTILITIES ───────────────────────────────────────────── */
.fw-600 { font-weight: 600; }
.text-xs { font-size: 11.5px; }
.text-sm { font-size: 12.5px; }
.gap-4px { gap: 4px; }
.rounded-lg { border-radius: var(--radius-lg); }
.cursor-pointer { cursor: pointer; }

/* Product workspace */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-command {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(139,90,60,.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(228,244,241,.92), rgba(255,255,255,.88) 48%, rgba(253,246,236,.9)),
    var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.product-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.product-main,
.product-side {
  display: grid;
  gap: 16px;
}

.product-sticky {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.surface-feature {
  border-color: rgba(139,90,60,.22);
  box-shadow: 0 16px 40px rgba(17,24,39,.06);
}

.product-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.product-tabs button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.product-tabs button:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.product-tabs button.active {
  color: #fff;
  background: var(--primary);
}

.switch-stack {
  display: grid;
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafbf9;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.toggle-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-row.compact {
  margin: 0;
  padding: 8px 10px;
}

.audit-strip {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.pill-check {
  cursor: pointer;
  margin: 0;
}

.pill-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-check span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
}

.pill-check input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(139,90,60,.12);
}

.color-badge-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-badge-option {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.color-badge-option:hover,
.color-badge-option.is-selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(139,90,60,.12);
}

.color-dot {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.product-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 16px;
  align-items: start;
}

.product-spec-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.product-spec-table {
  table-layout: fixed;
  --bs-table-bg: transparent;
  width: 100%;
  margin-bottom: 0;
}

.product-spec-table col.spec-col-name { width: 12%; }
.product-spec-table col.spec-col-value { width: 12%; }
.product-spec-table col.spec-col-desc { width: 18%; }
.product-spec-table col.spec-col-order { width: 64px; }
.product-spec-table col.spec-col-action { width: 54px; }

.product-spec-table thead th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-spec-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: top;
  word-break: break-word;
}

.product-spec-table tbody td.text-muted {
  color: var(--text-muted);
}

.product-spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.product-spec-table strong {
  display: block;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
}

.product-spec-table .action-col {
  width: 54px;
}

.product-variant-table col.variant-col-name { width: 16%; }
.product-variant-table col.variant-col-name-ar { width: 14%; }
.product-variant-table col.variant-col-sku { width: 16%; }
.product-variant-table col.variant-col-price { width: 10%; }
.product-variant-table col.variant-col-qty { width: 8%; }
.product-variant-table col.variant-col-status { width: 10%; }

.product-variant-table .action-col {
  width: 88px;
}

.product-variant-table .action-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.media-tile {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.media-tile img,
.media-tile video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--bg-page);
}

.media-upload-trigger {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.product-modal {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(17,24,39,.18);
}

.product-modal .modal-header,
.product-modal .modal-footer {
  border-color: var(--border);
}

.media-kind-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.media-kind-picker label {
  margin: 0;
  cursor: pointer;
}

.media-kind-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.media-kind-picker span {
  min-height: 84px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  background: #fff;
  font-weight: 700;
  transition: all .18s ease;
}

.media-kind-picker span i {
  font-size: 20px;
}

.media-kind-picker input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(139,90,60,.16);
}

.image-fallback-applied {
  object-fit: cover;
  background: var(--bg-page);
}

/* ── IMAGE UPLOAD PICKER ─────────────────────────────────── */
.admin-image-upload {
  max-width: 280px;
}

.form-card .admin-image-upload {
  max-width: 100%;
}

.admin-image-upload-stage {
  position: relative;
  width: 100%;
  min-height: calc(var(--admin-image-upload-max-height, 140px) + 8px);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-image-upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--admin-image-upload-max-height, 140px);
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-page);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.admin-image-upload-empty:hover,
.admin-image-upload-empty:focus-visible {
  border-color: var(--primary);
  background: rgba(91, 79, 207, .04);
  color: var(--primary);
  outline: none;
}

.admin-image-upload-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.admin-image-upload-hint {
  font-size: 12px;
  font-weight: 500;
}

.admin-image-upload-filled {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--admin-image-upload-max-height, 140px);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.admin-image-upload-img {
  display: block;
  max-width: 100%;
  max-height: var(--admin-image-upload-max-height, 140px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.admin-image-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.admin-image-upload-remove {
  color: var(--danger) !important;
  border-color: rgba(220, 38, 38, .35) !important;
}

.admin-image-upload-remove:hover {
  background: rgba(220, 38, 38, .06) !important;
}

.admin-image-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── IMAGE PREVIEW (INLINE + MODAL) ──────────────────────── */
.admin-inline-preview {
  margin-top: 10px;
}

.admin-preview-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.admin-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-preview-item {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-page);
  cursor: zoom-in;
}

.admin-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-image-preview-modal .modal-body {
  background: var(--bg-page);
}

.admin-image-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: min(72vh, 640px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-image-preview-img {
  max-width: 100%;
  max-height: min(72vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-img-thumb,
.file-thumb,
.banner-thumb,
.brand-thumb,
.category-thumb,
.media-tile img,
.admin-preview-item img,
.admin-inline-preview img[data-image-preview] {
  cursor: zoom-in;
}

.media-tile figcaption {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
}

.media-tile figcaption form {
  margin: 0;
}

.media-tile figcaption form:first-of-type {
  margin-left: auto;
}

.font-monospace {
  font-size: 12.5px;
}

.table-card,
.form-card,
.card {
  box-shadow: 0 10px 28px rgba(17,24,39,.04);
}

.btn-primary-admin,
.nav-item.active > .nav-link,
.logo-icon,
.user-avatar,
.user-avatar-sm,
.avatar-circle {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.btn-primary-admin:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

@media (max-width: 1199.98px) {
  .product-workspace,
  .product-panel-grid {
    grid-template-columns: 1fr;
  }

  .product-sticky {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .product-command {
    flex-direction: column;
    padding: 14px;
  }

  .product-tabs {
    margin-left: -2px;
    margin-right: -2px;
  }

  .category-picker {
    max-height: none;
  }
}
