@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@800;900&family=Exo+2:wght@300;400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; font-family: 'Exo 2', sans-serif; color: #fff; }

:root {
  --bg: #000;
  --glass: rgba(25,25,35,0.55);
  --border: rgba(255,107,0,0.5);
  --accent: #ff6b00;
  --neon: 0 0 40px rgba(255,107,0,0.6);
  --radius: 24px;
  --transition: all 0.5s cubic-bezier(0.23,1,0.32,1);
}

body { background: var(--bg); position: relative; line-height: 1.5; }

#bgVideo {
  position: fixed; top: 50%; left: 50%; min-width: 100%; min-height: 100%; 
  transform: translate(-50%, -50%); object-fit: cover; z-index: -2; filter: brightness(0.45);
}

body::before {
  content: ''; position: fixed; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(40,0,60,0.6)); z-index: -1;
}

header {
  position: fixed; top: 0; left: 0; right: 0; padding: 1rem 5%; 
  background: rgba(10,10,30,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); 
  z-index: 1000; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}

header h1 {
  font-family: 'Orbitron', sans-serif; font-size: clamp(2rem, 8vw, 3.5rem);
  background: linear-gradient(90deg, #ff6b00, #ffb800); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; letter-spacing: 4px;
}

nav { display: flex; flex-wrap: wrap; gap: 0.8rem; }

nav a, nav span a {
  color: #fff; text-decoration: none; font-weight: 700; padding: 0.7rem 1.2rem; 
  border-radius: 50px; background: rgba(255,255,255,0.1); border: 1px solid var(--border); 
  font-size: clamp(0.85rem, 3vw, 0.95rem); transition: var(--transition); min-width: 44px; text-align: center;
}

nav a:hover { background: var(--accent); color: #000; transform: translateY(-4px); }

.btn {
  background: linear-gradient(45deg, #ff6b00, #ffb800); color: #000; font-weight: 900;
  padding: clamp(0.8rem, 3vw, 1rem) clamp(2rem, 5vw, 2.5rem); border: none; border-radius: 50px;
  font-size: clamp(1rem, 4vw, 1.4rem); cursor: pointer; box-shadow: var(--neon); 
  transition: var(--transition); text-transform: uppercase; letter-spacing: 2px; min-height: 44px;
}

.btn:hover { transform: translateY(-8px) scale(1.05); box-shadow: 0 0 80px rgba(255,107,0,0.8); }

.glass {
  background: var(--glass); border-radius: var(--radius); border: 1px solid var(--border);
  backdrop-filter: blur(25px); box-shadow: var(--neon), 0 15px 40px rgba(0,0,0,0.6);
  transition: var(--transition); padding: clamp(1rem, 4vw, 1.5rem);
}

.container {
  max-width: 1400px; margin: 0 auto; padding: clamp(80px, 15vh, 100px) 5% 80px; min-height: 100vh;
}

.hero, .login-container { display: grid; place-items: center; text-align: center; }

h2 {
  font-family: 'Orbitron', sans-serif; font-size: clamp(3rem, 12vw, 6rem);
  background: linear-gradient(45deg, #ff6b00, #ffb800); -webkit-background-clip: text; 
  background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem;
}

.shop-header { text-align: center; margin: 2rem 0; }

.controls { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1rem; 
  background: var(--glass); border-radius: 50px; border: 1px solid var(--border); }

.controls input, .controls select { padding: 0.8rem 1.2rem; border-radius: 50px; border: 1px solid var(--border); 
  background: rgba(255,255,255,0.1); color: #fff; font-size: clamp(0.9rem, 3vw, 1rem); flex: 1; min-width: 120px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.product-card { background: var(--glass); border-radius: var(--radius); overflow: hidden; 
  border: 1px solid var(--border); transition: var(--transition); }

.product-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s; }

.product-card:hover img { transform: scale(1.1); }

.product-info { padding: 1.5rem; text-align: center; }

.price-tag { font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--accent); font-weight: 900; }

.cart-item { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }

.cart-item img { width: clamp(100px, 20vw, 140px); height: auto; border-radius: 16px; object-fit: cover; }

.total-section { text-align: center; margin: 3rem 0; }

.total-section h3 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 1rem; }

#floating-cart { position: fixed; bottom: 20px; right: 20px; background: var(--glass); 
  border: 2px solid var(--border); border-radius: var(--radius); padding: 1.2rem; max-width: 320px; 
  z-index: 999; transform: translateY(150%); transition: transform 0.6s; }

#floating-cart.show { transform: translateY(0); }

.floating-item { display: flex; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--border); }

.floating-item img { width: 60px; height: auto; border-radius: 12px; }

.floating-total { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--accent); text-align: center; margin: 1rem 0; }

#themeToggle {
  position: fixed; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 2px solid var(--border); color: #fff; 
  font-size: 1.4rem; cursor: pointer; z-index: 9999; display: grid; place-items: center;
}

footer {
  text-align: center; padding: 2rem; background: rgba(0,0,0,0.95); border-top: 1px solid var(--border); 
  color: #888; font-size: clamp(0.8rem, 3vw, 0.9rem); position: relative; z-index: 10;
}

.thank-you-body { background: #000 url('https://images.unsplash.com/photo-1504280390367-361eaa5995c3?w=2000') center/cover fixed; 
  display: grid; place-items: center; min-height: 100vh; text-align: center; padding: 2rem; }

.thank-you-body::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.7); z-index: -1; }

.input { width: 100%; padding: 1rem; margin: 0.8rem 0; border-radius: 50px; border: 1px solid var(--border); 
  background: rgba(255,255,255,0.1); color: #fff; font-size: clamp(1rem, 3.5vw, 1.2rem); text-align: center; }

.register-btn { background: #2d8b3a; }

.clear-btn { background: #e74c3c; color: #fff; }

@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  nav { gap: 1.2rem; }
  .btn { padding: 1rem 2.5rem; font-size: 1.1rem; }
}

@media (max-width: 767px) {
  header { flex-direction: column; padding: 1rem 3%; }
  nav { justify-content: center; gap: 0.6rem; }
  .controls { flex-direction: column; }
  #themeToggle { width: 44px; height: 44px; font-size: 1.2rem; }
  .container { padding: 80px 3% 60px; }
}