/* ============================================================
   styles.css — Global Stylesheet for Mig's Clothing Store
   Theme: Dark professional with violet accents
   Color System: Deep charcoal base, violet primary, silver text
   Responsive: Mobile-first breakpoints
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   All colors, fonts, and sizes defined here for consistency.
   Change a variable once → updates everywhere.
   ============================================================ */
:root {
  /* --- Color Palette --- */
  --bg-base:        #0d0d14;    /* Deepest background (almost black-violet) */
  --bg-surface:     #13131f;    /* Card/panel backgrounds */
  --bg-elevated:    #1a1a2e;    /* Hover states, nested panels */
  --bg-overlay:     #1e1e35;    /* Modal overlays, dropdowns */

  --violet-900:     #1e0a3c;    /* Darkest violet (sidebar active bg) */
  --violet-800:     #32105a;    /* Supporting violet for deep surfaces */
  --violet-700:     #4a1878;    /* Dark violet (gradient start) */
  --violet-600:     #6d28d9;    /* Primary violet (buttons, links) */
  --violet-500:     #7c3aed;    /* Medium violet */
  --violet-400:     #8b5cf6;    /* Light violet (headings, accents) */
  --violet-300:     #a78bfa;    /* Soft violet (body text on dark) */
  --violet-200:     #c4b5fd;    /* Pale violet (labels, hints) */
  --violet-100:     #ede9fe;    /* Very pale violet (near-white text) */
  --violet:         #7c3aed;    /* Compatibility alias for status UI */
  --violet-bg:      #241047;    /* Compatibility background for violet status UI */

  --text-primary:   #e8e0f5;    /* Main body text */
  --text-secondary: #a78bfa;    /* Violet-tinted secondary text */
  --text-muted:     #6b5e8a;    /* Muted/placeholder text */
  --text-disabled:  #3d3355;    /* Disabled state */

  --border-subtle:  #2a2045;    /* Very subtle card borders */
  --border-mid:     #3d2d65;    /* Medium borders */
  --border-accent:  #6d28d9;    /* Accent borders (focus rings) */

  /* --- Status Colors --- */
  --success:        #10b981;    /* Green — paid, confirmed */
  --success-bg:     #052e16;
  --warning:        #f59e0b;    /* Amber — low stock, pending */
  --warning-bg:     #1c1004;
  --danger:         #ef4444;    /* Red — out of stock, cancelled */
  --danger-bg:      #1c0505;
  --info:           #38bdf8;    /* Blue — informational UI */
  --info-bg:        #041829;

  /* --- Gradient (used for hero, buttons, cards) --- */
  --gradient-primary: linear-gradient(135deg, #4a1878 0%, #7c3aed 50%, #6d28d9 100%);
  --gradient-dark:    linear-gradient(180deg, #13131f 0%, #0d0d14 100%);
  --gradient-card:    linear-gradient(135deg, #1a1a2e 0%, #13131f 100%);

  /* --- Typography --- */
  --font-display:   'Cinzel', 'Playfair Display', 'Georgia', serif; /* Brand/headings — elegant serif */
  --font-body:      'Inter', 'Segoe UI', system-ui, sans-serif;     /* Clean readable body */
  --font-mono:      'JetBrains Mono', 'Consolas', monospace;        /* Prices, codes */

  /* --- Spacing Scale --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* --- Border Radius --- */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-violet: 0 4px 20px rgba(109,40,217,0.3);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.4), 0 0 1px rgba(109,40,217,0.2);

  /* --- Transitions --- */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s ease;
  --transition-base:   0.25s ease;

  /* --- Sidebar width --- */
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --topbar-height: 64px;
}

/* ============================================================
   CSS RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;   /* Padding/border included in element width */
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;           /* Base font size for rem calculations */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* Prevent iOS font scaling */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;  /* Smoother text on macOS */
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--violet-200); }

/* ============================================================
   SCROLLBAR STYLING (WebKit)
   Dark scrollbars matching the theme
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb {
  background: var(--violet-700);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--violet-600); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--violet-200);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p { color: var(--text-primary); margin-bottom: var(--space-4); }

.text-muted   { color: var(--text-muted); font-size: 0.875rem; }
.text-accent  { color: var(--violet-400); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* ============================================================
   LAYOUT SYSTEM — Dashboard Shell
   Sidebar + main content layout used by Admin and Cashier
   ============================================================ */
.dashboard-shell {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar Navigation ---- */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;       /* Fixed so it stays visible on scroll */
  left: 0;
  top: 0;
  z-index: 100;
  transition: width var(--transition-normal), transform var(--transition-normal);
  overflow: hidden;
}

.sidebar.collapsed { width: var(--sidebar-collapsed); }

/* Brand logo area at top of sidebar */
.sidebar-brand {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sidebar-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;   /* Prevent icon from shrinking when sidebar collapses */
  box-shadow: var(--shadow-violet);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-brand-name {
  font-family: var(--font-display);
  color: var(--violet-200);
  font-size: 0.95rem;
  font-weight: 600;
}

.sidebar-brand-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Navigation menu items */
.sidebar-nav {
  flex: 1;
  padding: var(--space-4) 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-section-label {
  padding: var(--space-4) var(--space-6) var(--space-2);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 0;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  border-left: 3px solid transparent; /* Left accent for active state */
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--violet-200);
  border-left-color: var(--violet-500);
}

.nav-item.active {
  background: var(--violet-900);
  color: var(--violet-200);
  border-left-color: var(--violet-400);
}

.nav-item-icon {
  font-size: 1.125rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item-text { font-size: 0.875rem; font-weight: 500; }

/* Badge on nav items (e.g., pending count) */
.nav-badge {
  margin-left: auto;
  background: var(--violet-600);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Sidebar footer with user info */
.sidebar-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.sidebar-user:hover { background: var(--bg-elevated); }

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-info { overflow: hidden; }

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* ---- Main Content Area ---- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left var(--transition-normal);
}

/* Top bar of dashboard pages */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--violet-200);
}

.topbar-actions { display: flex; align-items: center; gap: var(--space-3); }

/* Hamburger toggle for mobile sidebar */
.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  transition: color var(--transition-fast);
}
.sidebar-toggle:hover { color: var(--violet-300); }

/* Page content padding */
.page-content {
    padding: var(--space-6);
    flex: 1;
    min-width: 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast);
}

.card:hover { border-color: var(--border-mid); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--violet-300);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Stat card (used in dashboard overviews) */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card::before {
  /* Subtle gradient accent in top-left corner */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-violet);
  border-color: var(--border-mid);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.stat-card-icon.violet { background: rgba(109,40,217,0.15); color: var(--violet-400); }
.stat-card-icon.success { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-card-icon.warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.stat-card-icon.danger  { background: rgba(239,68,68,0.15);  color: var(--danger); }
.stat-card-icon.info    { background: rgba(56,189,248,0.15); color: var(--info); }

.stat-card-value {
  font-family: var(--font-mono);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-violet);
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(109,40,217,0.4);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--violet-300);
  border-color: var(--border-mid);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-overlay);
  border-color: var(--violet-600);
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-elevated);
  color: var(--violet-200);
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: 0.8rem;
}
.btn-lg {
  padding: var(--space-3) var(--space-8);
  font-size: 1rem;
}
.btn-full { width: 100%; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--violet-300);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none; /* Remove iOS default styles */
}

.form-control:focus {
  border-color: var(--violet-500);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.2);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.form-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: var(--space-1);
}

/* ============================================================
   TABLE STYLES
   ============================================================ */
.table-wrapper {
  overflow-x: auto;    /* Horizontal scroll on small screens */
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table thead {
  background: var(--bg-elevated);
}

.table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--violet-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr:hover { background: rgba(109,40,217,0.04); } /* Subtle violet row hover */

/* ============================================================
   BADGES & STATUS INDICATORS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-success  { background: var(--success-bg);  color: var(--success);  border: 1px solid rgba(16,185,129,0.3); }
.badge-warning  { background: var(--warning-bg);  color: var(--warning);  border: 1px solid rgba(245,158,11,0.3); }
.badge-danger   { background: var(--danger-bg);   color: var(--danger);   border: 1px solid rgba(239,68,68,0.3); }
.badge-info     { background: var(--info-bg);     color: var(--info);     border: 1px solid rgba(56,189,248,0.3); }
.badge-violet   { background: var(--violet-900);  color: var(--violet-300); border: 1px solid rgba(109,40,217,0.3); }

/* Dot indicator (small circle) */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.success { background: var(--success); }
.status-dot.warning { background: var(--warning); }
.status-dot.danger  { background: var(--danger); }
.status-dot.info    { background: var(--info); }

/* ============================================================
   MODAL / DIALOG
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;   /* Shorthand for top/right/bottom/left: 0 */
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px); /* Frosted glass effect */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;     /* Not clickable when hidden */
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-lg  { max-width: 700px; }
.modal-xl  { max-width: 900px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal-title {
    font-family: var(--font-display);
    color: #ffffff;
    font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.modal-close:hover { color: var(--text-primary); }

/* ============================================================
   GRID SYSTEM (Responsive)
   ============================================================ */
.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Auto-fill responsive grids */
.grid-auto-fill-200 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-auto-fill-280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-fill-320 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 360px;
  pointer-events: none;
}

.toast {
  background: var(--bg-overlay);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  color: var(--text-primary);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  pointer-events: all;
  animation: toastIn 0.3s ease forwards;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--info); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ============================================================
   LOADING STATES
   ============================================================ */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-mid);
  border-top-color: var(--violet-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg,
    var(--bg-elevated) 25%,
    var(--bg-overlay) 50%,
    var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* ============================================================
   COUNTDOWN TIMER (for reservation expiry)
   ============================================================ */
.countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.3);
}

.countdown-timer.urgent {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(239,68,68,0.3);
  animation: pulse-urgent 1s ease infinite;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

/* ============================================================
   PRODUCT CARD (Shop page)
   ============================================================ */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-violet);
  border-color: var(--border-mid);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 3/4;     /* Portrait ratio for clothing */
  object-fit: cover;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
}

.product-card-body {
  padding: var(--space-4);
}

.product-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet-400);
  margin-bottom: var(--space-1);
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.product-card-price {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: #ffffff;
  font-weight: 400;
}

.variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.variant-chip {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.variant-chip:hover,
.variant-chip.selected {
  background: var(--violet-900);
  border-color: var(--violet-500);
  color: var(--violet-200);
}

.variant-chip.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ============================================================
   CART SECTIONS (3 separate sections)
   ============================================================ */
.cart-section {
  margin-bottom: var(--space-8);
}

.cart-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.cart-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--violet-300);
}

.cart-section-count {
  font-size: 0.75rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.cart-item-row:hover { border-color: var(--border-mid); }

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-overlay);
  flex-shrink: 0;
}

.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 500; margin-bottom: 2px; }
.cart-item-variant { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-price { font-family: var(--font-mono); color: var(--violet-400); font-weight: 600; }

/* ============================================================
   SEARCH AND FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  padding-left: 2.5rem; /* Room for search icon */
}

/* ============================================================
   ALERT BOXES
   ============================================================ */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
}

.alert-success { background: var(--success-bg); border: 1px solid rgba(16,185,129,0.3); color: var(--success); }
.alert-warning { background: var(--warning-bg); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }
.alert-danger  { background: var(--danger-bg);  border: 1px solid rgba(239,68,68,0.3);  color: var(--danger); }
.alert-info    { background: var(--info-bg);    border: 1px solid rgba(56,189,248,0.3);  color: var(--info); }

/* ============================================================
   HOMEPAGE SPECIFIC STYLES
   ============================================================ */
/* Navbar (public-facing) */
.navbar {
    position: fixed;
    top: 52px;
    left: 270px;
    right: 0;
    height: 72px;
    z-index: 950;
    background: #0d0d14;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--violet-200);
  text-decoration: none;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.navbar-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-3);
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
    .navbar-links .lucide {
        width: 17px;
        height: 17px;
    }

.navbar-links a:hover {
  color: var(--violet-200);
  background: var(--bg-elevated);
}

/* ============================================================
   SHOP STATUS — ALWAYS THE TOPMOST ROW
   ============================================================ */

.shop-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}


/* ============================================================
   PUBLIC SIDEBAR
   ============================================================ */

.public-sidebar {
    position: fixed;
    top: 52px;
    left: 0;
    bottom: 0;
    width: 270px;
    background: #111827;
    border-right: 1px solid var(--border-subtle);
    z-index: 900;
    overflow-y: auto;
}


/* ============================================================
   SIDEBAR BRAND — ALIGNS WITH SIGN IN HEADER
   ============================================================ */

.public-sidebar-brand {
    height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 18px;
    color: var(--violet-300);
    text-decoration: none;  
    flex-shrink: 0;
}

.public-logotext {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 25px !important;
    line-height: 1 !important;
}

.public-logotext .brand-migs {
    font-size: 22px !important;
    line-height: 1 !important;
    color: var(--violet-200);
}
.public-logotext .brand-clothing {
    font-size: 22px !important;
    line-height: 1 !important;
    color: #6a05a8;
}

.brand-migs {
    color: var(--violet-200);
}

.brand-clothing {
    color: #6a05a8;
}
.public-sidebar-brand img {
    width: 100px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}


.public-sidebar-brand span {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--violet-300);
    white-space: nowrap;
}

.public-sidebar-brand:hover .brand-migs {
    color: var(--violet-200);
}

.public-sidebar-brand:hover .brand-clothing {
    color: #6a05a8;
}

.public-sidebar-brand:hover {
    color: var(--violet-200);
}


.public-sidebar-brand:hover span {
   color: var(--violet-200);
}

.public-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 22px;
}


.public-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 22px);
    margin-left: 11px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}


    .public-nav-item svg,
    .public-nav-item .lucide {
        width: 19px;
        height: 19px;
        flex-shrink: 0;
    }


    .public-nav-item:hover {
        background: transparent;
        color: var(--violet-300);
        box-shadow: 0 0 15px rgba(124, 58, 237, 0.25);
    }


    .public-nav-item.active {
        background: #0d0d14;
        color: var(--violet-200);
    }


        .public-nav-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--violet-500);
        }


    .public-nav-item .badge {
        margin-left: auto;
    }


/* Main public storefront area */

.storefront-main {
    margin-left: 220px;
    padding-top: 72px;
    min-height: calc(100vh - 52px);
}

/* Auth area in the top-right */

.navbar-auth {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Mobile menu button — hidden on desktop */
#mob-btn {
    display: none;
    margin-left: 12px;
}

/* Hero Section */

.hero-fashion-icon {
    display: block;
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin: 0 auto var(--space-4);
}

/* Decorative glowing sparks around hero image */
.hero-image-wrap {
    position: relative;
    display: inline-block;
}

    .hero-image-wrap .spark {
        position: absolute;
        z-index: 2;
        color: #c084fc;
        font-size: 16px;
        line-height: 1;
        text-shadow: 0 0 6px #a855f7, 0 0 14px #7e22ce;
        animation: heroSparkle 2.4s ease-in-out infinite;
        pointer-events: none;
    }

    /* Individual spark positions */
    .hero-image-wrap .spark-1 {
        top: 12%;
        left: 8%;
        font-size: 15px;
        animation-delay: 0s;
    }

    .hero-image-wrap .spark-2 {
        top: 19%;
        right: 6%;
        font-size: 15px;
        animation-delay: 0.5s;
    }

    .hero-image-wrap .spark-3 {
        top: 70%;
        left: -5%;
        font-size: 15px;
        animation-delay: 1s;
    }

    .hero-image-wrap .spark-4 {
        top: 80%;
        right: 3%;
        font-size: 17px;
        animation-delay: 1.5s;
    }

    .hero-image-wrap .spark-5 {
        top: 42%;
        left: -6%;
        font-size: 15px;
        animation-delay: 2s;
    }
    .hero-image-wrap .spark-6 {
        top: 50%;
        right: -3%;
        font-size: 15px;
        animation-delay: 0.8s;
    }
@keyframes heroSparkle {
    0%, 100% {
        opacity: 0.25;
        transform: scale(0.75);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.hero-section {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-16) var(--space-6);
}

/* ============================================================
   HERO VIDEO BACKGROUND
   ============================================================ */

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 180deg, rgba(5, 4, 12, 0.45) 0%, rgba(5, 4, 12, 0.62) 55%, rgba(5, 4, 12, 0.82) 100% 
    );

    pointer-events: none;
}
/* Animated background orbs */
.hero-bg-orb {
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}
.hero-bg-orb-1 {
  width: 600px; height: 600px;
  background: var(--violet-600);
  top: -200px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero-bg-orb-2 {
  width: 400px; height: 400px;
  background: var(--violet-800, #3b1168);
  bottom: -100px; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(20px, -20px); }
}

.hero-content {
    text-align: center;
    max-width: 680px;
    position: relative;
    z-index: 3;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--violet-400);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.0rem);
  background: linear-gradient(135deg, var(--violet-100), var(--violet-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: white;
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Section headings */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--violet-500);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--violet-200);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.18), transparent 35%), radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.14), transparent 35%), #050409;
}

    /* Background glow */
    .login-page::before {
        content: "";
        position: absolute;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background: rgba(124, 58, 237, 0.08);
        filter: blur(120px);
        top: -250px;
        right: -200px;
        pointer-events: none;
    }

    .login-page::after {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: rgba(168, 85, 247, 0.06);
        filter: blur(120px);
        bottom: -250px;
        left: -200px;
        pointer-events: none;
    }

    /* Back to Store */
    .login-page .back-home {
        position: fixed;
        top: 24px;
        left: 28px;
        z-index: 10;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 500;
        transition: color var(--transition-fast);
    }

        .login-page .back-home:hover {
            color: var(--violet-300);
        }

/* Main login container */
.login-card {
    position: relative;
    z-index: 1;
    width: min(940px, 100%);
    min-height: 570px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    overflow: hidden;
    background: linear-gradient( 135deg, rgba(23, 21, 34, 0.98), rgba(10, 8, 17, 0.98) );
    border: 1px solid rgba(139, 92, 246, 0.38);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 45px rgba(124, 58, 237, 0.15);
}

/* ============================================================
   LEFT BRAND PANEL
   ============================================================ */

.login-brand {
    min-height: 570px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    text-align: center;
    background: radial-gradient( circle at center, rgba(124, 58, 237, 0.16), transparent 65% ), rgba(8, 7, 13, 0.55);
    border-right: 1px solid rgba(139, 92, 246, 0.18);
}

.login-brand-logo {
    width: 240px;
    height: 240px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.28));
}

.login-brand-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient( 135deg, var(--violet-100), var(--violet-400) );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-brand-tagline {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* ============================================================
   RIGHT AUTH PANEL
   ============================================================ */

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px 58px;
}

    /* Existing login logo becomes hidden inside redesigned layout */
    .login-form-panel .login-logo {
        display: none;
    }

/* Authentication tabs */
.login-page .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 32px;
    background: rgba(8, 7, 13, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.login-page .auth-tab {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

    .login-page .auth-tab:hover {
        color: var(--text-primary);
    }

    .login-page .auth-tab.active {
        color: #fff;
        background: var(--gradient-primary);
        box-shadow: 0 4px 18px rgba(124, 58, 237, 0.3);
    }

/* Auth sections */
.login-page .auth-section {
    display: none;
}

    .login-page .auth-section.active {
        display: block;
    }

/* Form labels */
.login-page .form-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Inputs */
.login-page .form-control {
    width: 100%;
    min-height: 48px;
    background: rgba(8, 7, 13, 0.82);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

    .login-page .form-control::placeholder {
        color: var(--text-muted);
    }

    .login-page .form-control:hover {
        border-color: rgba(139, 92, 246, 0.35);
    }

    .login-page .form-control:focus {
        background: rgba(15, 14, 22, 0.95);
        border-color: var(--violet-500);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), 0 0 18px rgba(124, 58, 237, 0.12);
        outline: none;
    }

/* Password wrapper */
.login-page .password-wrap {
    position: relative;
}

    .login-page .password-wrap .form-control {
        padding-right: 48px;
    }

/* Password eye button */
.login-page .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

    .login-page .password-toggle:hover {
        color: var(--violet-300);
    }

/* Main login/register button */
.login-page .btn-primary {
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

    .login-page .btn-primary:hover {
        transform: translateY(-1px);
        filter: brightness(1.08);
        box-shadow: 0 10px 30px rgba(124, 58, 237, 0.38);
    }

    .login-page .btn-primary:active {
        transform: translateY(0);
    }

    .login-page .btn-primary:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

/* Error messages */
.login-page .form-error,
.login-page #login-error,
.login-page #register-error {
    margin-top: 12px;
    border-radius: 8px;
}

/* Google Identity Services controls are rendered by Google's SDK. */
.login-page .auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

    .login-page .auth-divider::before,
    .login-page .auth-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--border-subtle);
    }

.login-page .google-auth-block {
    min-height: 44px;
}

.login-page .google-signin-button {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.login-page .google-auth-status,
.login-page .google-auth-hint {
    min-height: 1.1em;
    margin: 9px 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
}

/* ============================================================
   DEMO ACCOUNTS
   ============================================================ */

.login-page .demo-accounts {
    margin-top: 28px;
}

.login-page .demo-accounts-label {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.login-page .demo-chip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    background: rgba(8, 7, 13, 0.55);
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

    .login-page .demo-chip:hover {
        background: rgba(124, 58, 237, 0.08);
        border-color: var(--violet-600);
        color: var(--violet-200);
    }

/* ============================================================
   REGISTER FORM
   ============================================================ */

.login-page #register-section .form-group {
    margin-bottom: 16px;
}

.login-page #register-section {
    max-height: 470px;
    overflow-y: auto;
    padding-right: 4px;
}

    .login-page #register-section::-webkit-scrollbar {
        width: 5px;
    }

    .login-page #register-section::-webkit-scrollbar-track {
        background: transparent;
    }

    .login-page #register-section::-webkit-scrollbar-thumb {
        background: var(--violet-800);
        border-radius: 999px;
    }

/* ============================================================
   LOGIN RESPONSIVE
   ============================================================ */

/* Tablets */
@media (max-width: 850px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .login-brand {
        min-height: auto;
        padding: 36px 30px 30px;
        border-right: 0;
        border-bottom: 1px solid rgba(139, 92, 246, 0.18);
    }

    .login-brand-logo {
        width: 105px;
        height: 105px;
        margin-bottom: 16px;
    }

    .login-brand-title {
        font-size: 1.65rem;
    }

    .login-form-panel {
        padding: 38px 40px 44px;
    }
}

/* Phones */
@media (max-width: 600px) {
    .login-page {
        padding: 70px 14px 24px;
        align-items: flex-start;
    }

        .login-page .back-home {
            top: 20px;
            left: 18px;
        }

    .login-card {
        width: 100%;
        border-radius: 20px;
        min-height: auto;
    }

    .login-brand {
        padding: 28px 20px 24px;
    }

    .login-brand-logo {
        width: 125px;
        height: 125px;
    }

    .login-brand-title {
        font-size: 1.4rem;
    }

    .login-brand-tagline {
        font-size: 0.62rem;
        letter-spacing: 0.18em;
    }

    .login-form-panel {
        padding: 28px 22px 32px;
    }

    .login-page .auth-tabs {
        margin-bottom: 24px;
    }

    .login-page .auth-tab {
        min-height: 42px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .login-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .login-form-panel {
        padding-left: 17px;
        padding-right: 17px;
    }

    .login-brand-tagline {
        letter-spacing: 0.12em;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .login-page *,
    .login-page *::before,
    .login-page *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   Mobile-first approach: base styles are mobile, 
   larger screens add more structure via media queries.
   ============================================================ */

/* Small devices (phones, up to 640px) */
@media (max-width: 640px) {
  :root {
    --sidebar-width: 100%; /* Full-width sidebar on mobile */
  }

  .sidebar {
    transform: translateX(-100%); /* Hidden by default on mobile */
    width: 280px;
  }

  .sidebar.mobile-open {
    transform: translateX(0); /* Slide in when toggled */
  }

  .main-content {
    margin-left: 0;  /* No left margin on mobile (sidebar overlays) */
  }

  .page-content { padding: var(--space-4); }

  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: 1fr; /* Stack all grids on mobile */
  }

  .hero-actions { flex-direction: column; align-items: stretch; }

  .filter-bar { flex-direction: column; }

  .topbar { padding: 0 var(--space-4); }

  .navbar { padding: 0 var(--space-4); }

  .navbar-links { display: none; } /* Replaced by hamburger menu on mobile */

  .modal { padding: var(--space-5); }
}

/* Medium devices (tablets, 641px–1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  :root { --sidebar-width: 220px; }

  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Large devices (desktops, 1025px+) — full layout */
@media (min-width: 1025px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ============================================================
   MOBILE NAV OVERLAY (covers main content when sidebar is open)
   ============================================================ */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}
.mobile-overlay.active { display: block; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hidden { display: none !important; }
.visible { display: block !important; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.p-0 { padding: 0; }
.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.opacity-50 { opacity: 0.5; }

/* ============================================================
   REDUCED MOTION ACCESSIBILITY
   Respects user's preference to reduce motion (e.g., epilepsy)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   TRACK ORDER
   ============================================================ */

.tracking-page {
    width: calc(100% - 280px);
    margin-left: 280px;
    min-height: calc(100vh - 70px);
    padding: 133px 15px 60px;
    box-sizing: border-box;
}


/* ============================================================
   TRACKING TABS
   Match Cart / Reservations tabs
   ============================================================ */

.tracking-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.tracking-tab {
    padding: var(--space-3) var(--space-5);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s ease;
    background: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

    .tracking-tab:hover {
        color: var(--violet-300);
    }

    .tracking-tab.active {
        color: var(--violet-200);
        border-bottom-color: var(--violet-500);
    }

    .tracking-tab svg {
        width: 17px;
        height: 17px;
    }

.tracking-tab-badge {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-family: var(--font-mono);
}

.tracking-tab.active .tracking-tab-badge {
    background: var(--violet-900);
    color: var(--violet-300);
}


/* ============================================================
   TRACKING PANELS
   ============================================================ */

.tracking-panel {
    display: none;
}

    .tracking-panel.active {
        display: block;
    }


/* ============================================================
   TRACKING LIST
   ============================================================ */

.tracking-list {
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
    margin: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
}

.track-product-image{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:12px;
    display:block;
    margin-bottom:16px;
    border:1px solid var(--violet-700);
}

.transit-card {
    position: relative;
}

/* Keep the two tracking buttons equal-sized */
.status.transit,
.status.received {
    width: 112px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Received button */
.status.received {
    background: #3b0764;
    color: #ffffff;
    border: 1px solid #6d28d9;
}

.status.received svg {
    width: 18px;
    height: 18px;
    color: #22c55e;
    stroke: #22c55e;
}

.status.received:hover {
    background: #2e0550;
    border-color: #8b5cf6;
}

.stage-icon {
    width: 72px;
    height: 72px;
    border: 2px solid #5b21b6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: rgba(124,58,237,.05);
}

.stage-icon svg {

    width:42px;

    height:42px;

    color:#8b5cf6;
   
}

.tracking-list {
    width: 100%;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 500px);
    gap: 40px;
    align-items: stretch;
}

.tracking-column {
    flex: 1;
}

    .tracking-column h2 {
        text-align: center;
        color: #b18cff;
        margin-bottom: 20px;
    }

.empty-message {
    text-align: center;
    color: #777;
    margin-top: 120px;
}

.order-product-name {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-height: 2.8em;
}

.order-card {
    width: 500px;
    max-width: 100%;
    min-height: 315px;
    background: var(--bg-elevated);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

    .order-card > .status.preparing {
        margin-top: auto;
        align-self: flex-start;
        width: auto;
    }

    .order-card .order-product-name {
        flex-shrink: 0;
    }

    .order-card h3,
    .order-card p {
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .order-card:hover {
        border-color: var(--border-mid);
    }

.track-product-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
    border: 1px solid var(--violet-700);
}

/* trackorder.js */
.status {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    font-weight: bold;
    color: white;
}

.preparing {
    background: #d29b22;
}

.transit {
    background: #14a66b;
}

.navbar-links a.active {
    color: var(--violet-200);
}

/* Mobile navigation is hidden on desktop because the desktop navbar
           already provides these links in the top-right corner. */
.mobile-nav {
    display: none;
}

/* ============================================================
   FEATURED PRODUCTS CAROUSEL
   ============================================================ */

.featured-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.featured-arrow {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-mid);
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--violet-200);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.featured-arrow-right {
    margin-left: 0;
}

.featured-arrow-right:hover {
    transform: scale(1.05);
}

.featured-arrow:hover {
    background: var(--violet-700);
    color: white;
    border-color: var(--violet-500);
    transform: scale(1.05);
}

.featured-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.featured-carousel #featured-products {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {

    .navbar-links {
        display: none;
    }

    .navbar {
        top: 52px;
        left: 0;
        right: 0;
        height: 72px;
        padding: 0 16px;
    }

    /* ============================================================
   MOBILE FEATURED PRODUCTS
   Arrows get their own columns so they never overlap cards
   or create horizontal page overflow.
   ============================================================ */

    .featured-carousel {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 4px;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

        .featured-carousel #featured-products {
            grid-column: 2;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            width: 100%;
            min-width: 0;
            max-width: 100%;
            transform: none;
        }

        .featured-carousel .featured-arrow {
            position: relative;
            width: 30px;
            height: 30px;
            flex: none;
            margin: 0;
            font-size: 1.05rem;
            align-self: center;
            transform: none !important;
        }

            .featured-carousel .featured-arrow:hover {
                transform: scale(1.05) !important;
            }

    .featured-arrow-left {
        grid-column: 1;
        margin-left: 8px;
    }

    .featured-arrow-right {
        grid-column: 3;
        margin-left: -8px;
    }

        .featured-arrow-right:hover {
            transform: scale(1.05) !important;
        }

    /* Public storefront sidebar becomes mobile navigation */
    .public-sidebar {
        display: none;
    }

    .storefront-main {
        margin-left: 0;
    }

    .navbar-auth {
        margin-left: auto;
    }

    #mob-btn {
        width: 44px;
        height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-subtle) !important;
        border-radius: var(--radius-md);
        background: var(--bg-elevated) !important;
        color: var(--violet-200) !important;
        cursor: pointer;
    }

    #mob-btn {
        font-size: 0 !important;
    }

        #mob-btn::after {
            content: '\2630';
            font-size: 1.25rem;
            line-height: 1;
        }

        #mob-btn.is-open::after {
            content: '\00d7';
        }

    .mobile-nav {
        display: none;
        position: fixed;
        top: 124px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: rgba(19, 19, 31, 0.98);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        z-index: 10000;
    }

        .mobile-nav.open {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            padding: 8px 12px;
            box-sizing: border-box;
        }

        

            .mobile-nav.open a {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                min-height: 64px;
                text-align: center;
                border: 1px solid var(--border-mid);
                border-radius: var(--radius-md);
                background: rgba(124,58,237,.08);
            }

                .mobile-nav.open a[aria-current="page"] {
                    background: rgba(124,58,237,.18);
                    border-color: var(--violet-500);
                }

        .mobile-nav > a {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 60px;
            padding: 6px 4px;
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            color: var(--text-secondary);
            font-size: 0.82rem;
            font-weight: 600;
            text-decoration: none;
            transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
        }

            .mobile-nav > a:hover,
            .mobile-nav > a[aria-current="page"] {
                background: rgba(109,40,217,0.18);
                border-color: var(--violet-600);
                color: var(--violet-200);
            }

    .mobile-nav-icon {
        width: 21px;
        height: 21px;
        stroke: currentColor;
    }
    /* Mobile auth buttons */
    #mob-auth {
        grid-column: 1 / -1;
        display: grid;
        gap: var(--space-2);
        padding-top: 8px;
        margin-top: 4px;
        border-top: 1px solid var(--border-subtle);
        width: 100%;
        box-sizing: border-box;
    }

        #mob-auth > a,
        #mob-auth > button {
            min-height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: var(--space-3);
            border: 1px solid var(--border-mid);
            border-radius: var(--radius-md);
            font: inherit;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
        }

        #mob-auth > a {
            background: var(--gradient-primary) !important;
            border-color: transparent !important;
            color: #fff !important;
        }

        #mob-auth > button {
            background: transparent !important;
            color: var(--danger) !important;
    }
}

/* ============================================================
   PHASE 1 — SHARED INTERFACE SYSTEM
   A final shared layer for customer, admin, cashier, and supplier
   views. It standardises shared components without changing markup
   or JavaScript hooks.
   ============================================================ */

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

button,
a,
input,
select,
textarea,
.nav-item,
.status-pill,
.cancel-reason-chip,
.demo-chip {
  -webkit-tap-highlight-color: transparent;
}

.dashboard-shell {
  background: linear-gradient(135deg, rgba(13, 13, 20, 0.96), rgba(20, 12, 32, 0.98));
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(30, 10, 60, 0.38), transparent 16rem),
    var(--bg-surface);
  box-shadow: 14px 0 36px rgba(0, 0, 0, 0.16);
}

.sidebar-brand {
  min-height: 84px;
  background: rgba(13, 13, 20, 0.4);
}

.sidebar-nav {
  padding: var(--space-4) var(--space-2);
}

.nav-section-label {
  padding-inline: var(--space-4);
  margin-top: var(--space-3);
}

.nav-item {
  min-height: 46px;
  margin: 2px 0;
  border-left-width: 0;
  border-radius: var(--radius-md);
}

.nav-item:hover,
.nav-item.active {
  border-left-color: transparent;
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--violet-400), 0 8px 20px rgba(74, 24, 120, 0.16);
}

.sidebar-footer {
  background: rgba(13, 13, 20, 0.3);
}

.topbar {
  background: rgba(19, 19, 31, 0.88);
  backdrop-filter: blur(16px);
}

.topbar-title {
  letter-spacing: 0.03em;
}

.page-content {
  padding: clamp(var(--space-4), 3vw, var(--space-8));
}

.card,
.stat-card {
  background: linear-gradient(145deg, rgba(31, 29, 49, 0.94), rgba(19, 19, 31, 0.98));
}

.card-header {
  align-items: flex-start;
}

.stat-card {
  min-height: 146px;
}

.stat-card-value {
  letter-spacing: -0.04em;
}

.btn {
  min-height: 42px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-sm {
  min-height: 34px;
}

.form-control {
  min-height: 44px;
  border-color: rgba(167, 139, 250, 0.22);
}

.form-control:hover:not(:disabled) {
  border-color: rgba(167, 139, 250, 0.5);
}

.form-control:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.filter-bar {
  padding: var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(19, 19, 31, 0.56);
}

.table-wrapper {
  border-color: rgba(167, 139, 250, 0.18);
}

.table th {
  letter-spacing: 0.08em;
}

.table td {
  line-height: 1.45;
}

.table tbody tr {
  transition: background-color var(--transition-fast);
}

.badge,
.status-badge {
  min-height: 24px;
  padding-inline: 10px;
  letter-spacing: 0.055em;
}

.modal-overlay {
  padding: clamp(var(--space-3), 4vw, var(--space-6));
}

.modal {
  overscroll-behavior: contain;
}

.modal-footer,
.modal-acts {
  gap: var(--space-3);
}

.skeleton {
  background-size: 220% 100%;
}

@media (min-width: 769px) {
  .sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
  }

  .sidebar.collapsed .sidebar-brand,
  .sidebar.collapsed .sidebar-footer {
    padding-inline: var(--space-3);
  }
}

@media (max-width: 768px) {
  .dashboard-shell .sidebar {
    width: min(86vw, 320px);
    transform: translateX(-105%);
  }

  .dashboard-shell .sidebar.mobile-open {
    transform: translateX(0);
  }

  .dashboard-shell .main-content {
    margin-left: 0;
  }

  .topbar {
    min-height: 64px;
    height: auto;
    padding-block: var(--space-2);
  }

  .topbar-actions {
    gap: var(--space-2);
  }

  .topbar-actions .auto-refresh-indicator {
    display: none;
  }

  .filter-bar {
    align-items: stretch;
  }

  .filter-bar > * {
    width: 100%;
  }

  .modal {
    max-height: calc(100dvh - var(--space-6));
  }

  .modal-footer,
  .modal-acts {
    flex-wrap: wrap;
  }

  .modal-footer .btn,
  .modal-acts .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 480px) {
  .page-content {
    padding: var(--space-3);
  }

  .topbar-title {
    font-size: 0.95rem;
  }

  .table th,
  .table td {
    padding: var(--space-3);
  }

  .modal {
    border-radius: var(--radius-lg);
  }
}

/* ============================================================
   UI REFINEMENT PASS
   Shared finishing layer for the customer storefront and staff
   dashboards. These rules intentionally change presentation only;
   existing markup, JavaScript workflows, and API behavior remain
   unchanged.
   ============================================================ */

html {
  background: var(--bg-base);
}

body {
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 86% -12%, rgba(124, 58, 237, 0.12), transparent 28rem),
    radial-gradient(circle at 8% 110%, rgba(74, 24, 120, 0.12), transparent 26rem);
  background-attachment: fixed;
}

::selection {
  background: rgba(167, 139, 250, 0.35);
  color: #fff;
}

/* A clear, consistent keyboard focus treatment across every role. */
:focus-visible {
  outline: 3px solid rgba(167, 139, 250, 0.9);
  outline-offset: 3px;
}

.btn,
.sidebar-toggle,
.modal-close,
.featured-arrow,
.profile-trigger,
#mob-btn {
  min-height: 40px;
}

.btn:active:not(:disabled),
.featured-arrow:active,
.sidebar-toggle:active,
.profile-trigger:active {
  transform: translateY(1px);
}

.card,
.stat-card,
.filter-sidebar,
.summary-card,
.queue-card,
.product-card,
.order-card,
.res-card {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(196, 181, 253, 0.025);
}

.card-header,
.cart-section-header {
  gap: var(--space-3);
}

.table-wrapper {
  background: rgba(13, 13, 20, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.table td,
.table th {
  overflow-wrap: anywhere;
}

.modal {
  border-color: rgba(167, 139, 250, 0.38);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(109, 40, 217, 0.15);
}

.modal-header {
  position: sticky;
  top: calc(var(--space-8) * -1);
  z-index: 2;
  padding-top: var(--space-8);
  background: var(--bg-surface);
}

.shop-banner,
.shop-page-status {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

/* The public rail is 270px; use that same value for its paired content. */
@media (min-width: 769px) {
  .storefront-main {
    margin-left: 270px;
  }
}

/* Tracking cards should reflow, rather than retaining desktop-width columns. */
.tracking-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.order-card {
  width: 100%;
}

@media (max-width: 768px) {
  #toast-container {
    right: var(--space-4);
    bottom: var(--space-4);
    left: var(--space-4);
    max-width: none;
  }

  .tracking-page {
    width: 100%;
    margin-left: 0;
    padding: 148px var(--space-4) var(--space-8);
  }

  .tracking-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .tracking-tab {
    flex: 0 0 auto;
  }

  .filter-sidebar,
  .summary-card {
    position: static;
  }
}

    /* ==========================================
   Track Order Page
========================================== */

    .tracking-column h2 {
        font-family: var(--font-display);
        font-size: 0.5rem;
        font-weight: 700;
        color: var(--violet-200);
        text-align: center;
        margin-bottom: 20px;
    }
    
/* ==========================================
   Track Order Header
========================================== */

.track-header {
    text-align: center;
    padding: 33px 24px 38px;
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--border-subtle);
}

    .track-header h1 {
        margin-bottom: var(--space-2);
        font-family: var(--font-display);
        font-size: clamp(1.8rem, 1.8vw, 3rem);
        font-weight: 800;
        line-height: 1;
        text-transform: uppercase;
        background: linear-gradient( 135deg, var(--violet-100), var(--violet-400) );
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    .track-header p {
        margin: 0;
        color: var(--text-muted);
        font-size: 1rem;
    }

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

    .tracking-actions .status {
        margin: 0;
}



/* Homepage Logo */
.store-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.store-name {
    color: darkorchid;
    font-family: Courier New, Courier, monospace: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* =========================================
   FINAL MOBILE FEATURED ARROW FIX
   ========================================= */
@media (max-width: 768px) {

    .featured-carousel {
        position: relative !important;
        display: block !important;
        width: calc(100% - 40px) !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

        .featured-carousel #featured-products {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 14px !important;
            width: 100% !important;
            min-width: 0 !important;
            max-width: 100% !important;
            transform: none !important;
        }

        .featured-carousel .featured-arrow {
            position: absolute !important;
            top: 50% !important;
            width: 30px !important;
            height: 30px !important;
            padding: 0 !important;
            margin: 0 !important;
            z-index: 100 !important;
            transform: translateY(-50%) !important;
        }

            .featured-carousel .featured-arrow:hover {
                transform: translateY(-50%) scale(1.05) !important;
            }

        .featured-carousel .featured-arrow-left {
            left: -16px !important;
            right: auto !important;
        }

        .featured-carousel .featured-arrow-right {
            right: -16px !important;
            left: auto !important;
        }

            .featured-carousel .featured-arrow-right:hover {
                transform: translateY(-50%) scale(1.05) !important;
            }
}
