/* ==========================================================================
   HIGH FASHION ELECTRONICS — REFINED EDITORIAL TYPOGRAPHY & DESIGN SYSTEM
   Font: Inter (Universal, Clean, Professional, Excellent Vietnamese Diacritics)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-primary: #0b0f17;
  --bg-surface: #111722;
  --bg-surface-elevated: #161f2e;
  --bg-subtle: #1c2638;
  
  --border-subtle: #1e293b;
  --border-default: #334155;
  --border-active: #f59e0b;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.3;
}

p, li, span, td, th {
  letter-spacing: -0.005em;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

/* Clean Professional Cards */
.b2b-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

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

/* Tabular Numbers */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: rgba(11, 15, 23, 0.98);
  border-top: 1px solid #1e293b;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 74px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .floating-actions {
    bottom: 24px;
    right: 24px;
  }
}

.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.floating-btn:hover {
  transform: translateY(-2px);
}

.btn-zalo { background-color: #0068ff; }
.btn-hotline { background-color: #dc2626; }
.btn-top { background-color: #1e293b; color: #94a3b8; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0b0f17;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Print */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, header, nav, footer, .mobile-bottom-bar, .floating-actions, aside {
    display: none !important;
  }
  #cart-modal {
    position: static !important;
    display: block !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  #cart-items-list {
    max-height: none !important;
  }
  table, tr, td, th {
    border-color: #000000 !important;
    color: #000000 !important;
  }
}

/* Flatsome lightbox / popup hidden utility */
.mfp-hide {
  display: none !important;
}
