/* ==========================================================================
   THREADITCH — Ultra-Modern SaaS Admin Dashboard & Control Center
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --admin-sidebar-w: 260px;
  --admin-bg: #f8fafc;
  --admin-card-bg: #ffffff;
  --admin-text: #0f172a;
  --admin-muted: #64748b;
  --admin-border: #e2e8f0;
  
  --admin-sidebar-bg: #09090b;
  --admin-sidebar-hover: #18181b;
  --admin-sidebar-text: #94a3b8;
  --admin-sidebar-active: #9333ea;
  
  --admin-primary: #9333ea;
  --admin-primary-hover: #7e22ce;
  --admin-primary-light: #f3e8ff;
  --admin-success: #10b981;
  --admin-warning: #f59e0b;
  --admin-danger: #ef4444;
  --admin-info: #38bdf8;
}

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

body.admin-body {
  background-color: var(--admin-bg);
  color: var(--admin-text);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.admin-sidebar {
  width: var(--admin-sidebar-w);
  background: var(--admin-sidebar-bg);
  color: var(--admin-sidebar-text);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
  border-right: 1px solid #1e293b;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

.admin-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #18181b;
  background: #09090b;
}

.admin-nav {
  padding: 20px 12px;
  flex-grow: 1;
}

.admin-nav-group-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #475569;
  font-weight: 800;
  padding: 16px 12px 6px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--admin-sidebar-text);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 4px;
  text-decoration: none;
}

.admin-nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.admin-nav-link:hover {
  background: var(--admin-sidebar-hover);
  color: #ffffff;
  transform: translateX(3px);
}

.admin-nav-link:hover svg {
  stroke: #c084fc;
}

.admin-nav-link.active {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.35);
}

.admin-nav-link.active svg {
  stroke: #ffffff;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.admin-main {
  margin-left: var(--admin-sidebar-w);
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-live-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8fafc;
  color: #09090b;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.admin-live-store-btn:hover {
  background: #ede9fe;
  color: #7c3aed;
  border-color: #c4b5fd;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.admin-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.admin-user-profile:hover {
  background: #f1f5f9;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea 0%, #3b82f6 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.25);
}

.admin-content {
  padding: 32px;
  flex-grow: 1;
}

/* Page Header */
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.admin-page-title h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #09090b;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.admin-page-title p {
  color: var(--admin-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ==========================================================================
   Stat Cards & Analytics Grid
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--card-accent, #9333ea);
}

.stat-info h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--admin-muted);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #09090b;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-growth {
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.stat-growth.positive { color: #10b981; }
.stat-growth.neutral { color: #64748b; }

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* ==========================================================================
   Admin Cards & Panels
   ========================================================================== */
.admin-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  margin-bottom: 28px;
  overflow: hidden;
}

.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-card-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #09090b;
  margin: 0;
}

.admin-card-body {
  padding: 24px;
}

/* ==========================================================================
   FORM CONTROLS & FORM SYSTEM (Clean SaaS Styling)
   ========================================================================== */
.admin-card form {
  padding: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
  padding: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.form-control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
}

.form-control:focus {
  border-color: #9333ea;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.form-control::placeholder {
  color: #94a3b8;
}

select.form-control {
  appearance: auto;
  cursor: pointer;
  background-color: #ffffff;
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

input[type="file"].form-control {
  padding: 9px 12px;
  background: #f8fafc;
  cursor: pointer;
}

/* Checkbox & Radio Controls */
.form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #9333ea;
  cursor: pointer;
  margin: 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  background: #f8fafc;
  border-top: 1px solid var(--admin-border);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.35);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.btn-outline:hover {
  background: #f1f5f9;
  color: #09090b;
  border-color: #94a3b8;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
}
.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Admin Tables
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
  color: #1e293b;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-delivered { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-confirmed { background: #e0e7ff; color: #4338ca; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }

/* ==========================================================================
   CKEditor 5 Custom Modern Styling
   ========================================================================== */
.ck.ck-editor {
  width: 100% !important;
}

.ck-editor__editable_inline {
  min-height: 140px;
  max-height: 480px;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.92rem !important;
  color: #0f172a !important;
  border-radius: 0 0 8px 8px !important;
  padding: 14px 18px !important;
}

.ck-editor__editable_inline[data-editor-type="short"] {
  min-height: 90px;
}

.ck.ck-toolbar {
  border-radius: 8px 8px 0 0 !important;
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  padding: 4px 6px !important;
}

.ck.ck-editor__main > .ck-editor__editable {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

.ck.ck-editor__main > .ck-editor__editable.ck-focused {
  border-color: #9333ea !important;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15) !important;
}

/* ==========================================================================
   LOOKBOOK VISUAL EDITOR COMPONENT STYLING
   ========================================================================== */
.admin-editor-control-bar {
  position: static;
  background: #09090b;
  border: 1px solid #27272a;
  border-bottom: 2px solid #7c3aed;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.admin-editor-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-editor-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-editor-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-editor-select {
  background: #18181b;
  color: #fff;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
}

.admin-editor-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-editor-breadcrumbs {
  background: #ffffff;
  border-bottom: 1.5px solid #18181b;
  padding: 14px 7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-family: 'Space Grotesk', sans-serif;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-editor-crumbs-left {
  color: #71717a;
}

.admin-editor-crumbs-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-lookbook-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
  min-height: 540px;
}

.admin-lookbook-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-lookbook-content-wrap {
  padding: 40px 4vw 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.admin-pricing-grid {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.admin-pricing-grid input {
  max-width: 140px;
}

.admin-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.admin-lookbook-blueprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.admin-blueprint-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-narrative-bar {
  padding: 24px 7vw;
  border-top: 1.5px solid #18181b;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  background: #ffffff;
}

.admin-bottom-sticky-bar {
  position: sticky;
  bottom: 0;
  background: #09090b;
  border-top: 2px solid #7c3aed;
  padding: 14px 7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   MASTER FULL ADMIN MOBILE RESPONSIVENESS
   ========================================================================== */

/* Toggle Button & Overlay Defaults */
.admin-mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--admin-text);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}

.admin-sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 4999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* 1. Tablet & Mobile Viewports (<= 1024px) */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.35);
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  .admin-brand {
    justify-content: space-between;
    padding: 16px 20px;
  }

  .admin-sidebar-close-btn {
    display: block;
  }

  .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .admin-mobile-toggle-btn {
    display: flex !important;
  }

  .admin-content {
    padding: 24px 18px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .charts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* 2. Mobile Viewports (<= 768px) */
@media (max-width: 768px) {
  .admin-topbar {
    padding: 10px 14px !important;
    gap: 8px;
  }

  .admin-live-store-btn span:nth-child(2) {
    display: none;
  }
  .admin-live-store-btn {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }

  .admin-user-info-text {
    display: none;
  }

  .admin-user-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
  }

  .admin-page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .admin-page-header .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-page-title h1 {
    font-size: 1.4rem !important;
  }

  .admin-page-title p {
    font-size: 0.82rem !important;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .stat-card {
    padding: 14px 12px !important;
  }

  .stat-info h4 {
    font-size: 0.72rem !important;
  }

  .stat-value {
    font-size: 1.3rem !important;
  }

  .stat-growth {
    font-size: 0.68rem !important;
  }

  .stat-icon-wrap {
    width: 36px !important;
    height: 36px !important;
  }
  .stat-icon-wrap svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Admin Cards */
  .admin-card {
    border-radius: 8px !important;
    margin-bottom: 18px !important;
  }

  .admin-card-header {
    padding: 14px 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .admin-card-header form {
    max-width: 100% !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .admin-card-header form input,
  .admin-card-header form select,
  .admin-card-header form button {
    width: 100% !important;
    max-width: 100% !important;
  }

  .admin-card-header .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-card-body {
    padding: 16px 14px !important;
  }

  /* Form & Two-Column Grids */
  .admin-form-grid, .admin-edit-grid, .charts-grid, div[style*="grid-template-columns: 1fr 1fr"], div[style*="grid-template-columns: 1.4fr 0.6fr"], div[style*="grid-template-columns: 2fr 1fr"], div[style*="grid-template-columns: 1.3fr 0.7fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .form-row, div[style*="grid-template-columns: repeat(2, 1fr)"], div[style*="grid-template-columns: repeat(3, 1fr)"], div[style*="grid-template-columns: repeat(4, 1fr)"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Tables */
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  .admin-table {
    min-width: 600px !important;
  }

  .admin-table th, .admin-table td {
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
  }

  /* Filter and Action Bars */
  .admin-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .admin-filter-bar input, .admin-filter-bar select, .admin-filter-bar button {
    width: 100% !important;
  }

  /* Lookbook Visual Editor Mobile Styles */
  .admin-editor-control-bar {
    padding: 10px 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .admin-editor-left {
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .admin-editor-badge-group {
    font-size: 0.75rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
  }

  .admin-editor-right {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .admin-editor-select {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  .admin-editor-toggles {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .admin-editor-right .admin-nav-btn,
  .admin-editor-right .admin-preview-btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    padding: 8px 6px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .admin-editor-right .admin-save-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    padding: 10px !important;
  }

  .admin-editor-breadcrumbs {
    padding: 12px 14px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .admin-editor-crumbs-right {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .admin-editor-crumbs-right input {
    width: 100% !important;
    max-width: 190px !important;
  }

  .admin-lookbook-split-grid {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }

  .admin-lookbook-img-wrap {
    width: 100% !important;
    min-height: 280px !important;
    max-height: 380px !important;
    padding: 20px 14px !important;
  }

  .admin-lookbook-img-wrap img {
    max-height: 320px !important;
    object-fit: contain !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .admin-lookbook-img-wrap .img-edit-overlay {
    opacity: 0.85 !important;
    background: rgba(0, 0, 0, 0.4) !important;
  }

  .admin-lookbook-content-wrap {
    padding: 24px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-pricing-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .admin-pricing-grid .admin-stock-grid-item {
    grid-column: 1 / -1 !important;
  }

  .admin-pricing-grid input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-specs-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .admin-feature-edit-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .admin-lookbook-blueprint-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .admin-blueprint-specs-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .admin-narrative-bar {
    padding: 16px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }

  .admin-bottom-sticky-bar {
    padding: 12px 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .admin-bottom-sticky-bar div:nth-child(2) {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .admin-bottom-sticky-bar .admin-save-btn {
    flex: 1 !important;
    justify-content: center !important;
  }

  .admin-bottom-sticky-bar .admin-nav-btn {
    flex: 0 0 80px !important;
    justify-content: center !important;
  }
}

/* 3. Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .admin-content {
    padding: 14px 10px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-card {
    padding: 12px !important;
  }

  .admin-blueprint-specs-grid {
    grid-template-columns: 1fr !important;
  }
}



