/* ==========================================================
   SPORTS STORE - DESIGN SYSTEM & CORE TOKENS
   Phong cách Athletic Cyber & Năng Động Thể Thao
   ========================================================== */

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

:root {
  /* Bảng màu Dark Slate thể thao cao cấp */
  --bg-darkest: #070a10;
  --bg-primary: #0d121d;
  --bg-surface: #141b2b;
  --bg-card: #1b2438;
  --bg-card-hover: #222d46;
  --bg-glass: rgba(20, 27, 43, 0.75);
  
  /* Màu thể thao năng động (Athletic Neon) */
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.35);
  --neon-orange: #ff5722;
  --neon-orange-glow: rgba(255, 87, 34, 0.35);
  --neon-green: #10b981;
  --neon-green-glow: rgba(16, 185, 129, 0.3);
  --neon-yellow: #ffb703;
  --neon-red: #ef4444;

  /* Gradient thể thao */
  --grad-primary: linear-gradient(135deg, #ff5722 0%, #ff8a00 100%);
  --grad-cyan: linear-gradient(135deg, #00f0ff 0%, #0072ff 100%);
  --grad-dark: linear-gradient(180deg, rgba(13, 18, 29, 0.8) 0%, #0d121d 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.15), transparent 70%);

  /* Text & Border */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 240, 255, 0.5);

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-neon: 0 0 20px var(--neon-cyan-glow);
  --shadow-orange: 0 0 20px var(--neon-orange-glow);

  /* Transition */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background Sporty Grid Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 87, 34, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

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

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

/* Scrollbar đẹp cho Webkit */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #2b374e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Container & Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 87, 34, 0.55);
}

.btn-cyan {
  background: var(--grad-cyan);
  color: #000000;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.35);
}
.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-sale {
  background: rgba(255, 87, 34, 0.2);
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.4);
}

.badge-hot {
  background: rgba(0, 240, 255, 0.2);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan-glow);
}

.badge-stock {
  background: rgba(16, 185, 129, 0.2);
  color: var(--neon-green);
  border: 1px solid var(--neon-green-glow);
}

.badge-low-stock {
  background: rgba(239, 68, 68, 0.2);
  color: var(--neon-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Glassmorphism Card Box */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Section Header */
.section-header {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-tag {
  color: var(--neon-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn 0.3s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-success {
  border-left: 4px solid var(--neon-green);
}
.toast-error {
  border-left: 4px solid var(--neon-red);
}
.toast-info {
  border-left: 4px solid var(--neon-cyan);
}

@keyframes toastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  to {
    transform: translateY(20px);
    opacity: 0;
  }
}
