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

:root {
  /* Ultra-Premium Dark Mode Palette */
  --bg-dark: #05050A;
  --bg-gradient: linear-gradient(135deg, #05050A 0%, #0A0A14 100%);
  --bg-card: rgba(20, 20, 30, 0.7);
  
  /* Cyberpunk / Synthwave Accents */
  --accent-cyan: #00F0FF;
  --accent-purple: #7000FF;
  --accent-pink: #FF007A;
  
  --text-main: #FFFFFF;
  --text-muted: #8E8E9F;
  
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-highlight: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Dynamic Animated Background Mesh */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: 
    radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.15), transparent 25%);
  z-index: -1;
  animation: pulseBg 10s ease-in-out infinite alternate;
}

@keyframes pulseBg {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Navbar Glassmorphism */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

.cart-icon {
  position: relative;
  color: var(--text-main);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-icon:hover {
  transform: scale(1.1) rotate(-5deg);
  color: var(--accent-pink);
}

.cart-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-pink);
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--glass-border);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(to right, #FFF, #8E8E9F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Animated Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
  color: white;
  box-shadow: 0 10px 20px rgba(112, 0, 255, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-pink));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.5);
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1rem;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--accent-purple), transparent, var(--accent-cyan));
  z-index: -1;
  border-radius: 26px;
  opacity: 0;
  transition: 0.5s;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image-container {
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1) rotate(2deg);
}

.product-info {
  padding: 1.5rem 0.5rem 0.5rem;
}

.product-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
}

.toast {
  background: rgba(10, 10, 20, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-cyan);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
  transform: translateX(120%);
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideIn {
  to { transform: translateX(0); }
}

/* Forms */
.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(112, 0, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-highlight);
}
.btn-outline:hover {
  background: var(--glass-highlight);
}
