@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Roboto+Mono:wght@400;600&display=swap');

:root {
    --primary-color: #a3baff; /* Bleu clair néon */
    --secondary-color: #7a42ff; /* Violet néon */
    --background-dark: #0b0d17; /* Fond très sombre futuriste */
    --input-bg: #151828;
    --shadow-color: rgba(0, 255, 255, 0.25);
    --blur-bg: rgba(30, 20, 50, 0.6);
    --hover-color: #2c1a50;
    --danger-color: #ff4b5c;
}

body {
  font-family: 'Orbitron', 'Inter', sans-serif;
  background: radial-gradient(circle at top left, #0b0d17, #05060a 70%);
  margin: 0;
  padding: 0;
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(163,186,255,0.7);
}

/* --- Header --- */
header {
  padding: 15px;
  border-bottom: 1px solid rgba(163,186,255,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, rgba(20,0,50,0.6), rgba(0,50,80,0.6));
  box-shadow: 0 0 15px rgba(122,66,255,0.6), 0 0 25px rgba(0,200,255,0.4);
}

header h1 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #00f0ff, 0 0 14px #7a42ff;
}

header .logo {
  max-height: 50px;
  margin-right: 12px;
  filter: drop-shadow(0 0 8px #00f0ff) drop-shadow(0 0 12px #7a42ff);
}

/* --- Products grid --- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.product {
  background: linear-gradient(145deg, #12122a, #1e1a3c);
  border: 1px solid rgba(163,186,255,0.2);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 0 12px rgba(0,200,255,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
  width: 150px;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0,200,255,0.5), 0 0 25px rgba(122,66,255,0.4);
}

.product img {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 0 8px rgba(122,66,255,0.5);
}

.product h3 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--primary-color);
}

/* Badge */
.badge {
  position: absolute;
  background: var(--secondary-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  top: 8px;
  left: 8px;
  text-shadow: 0 0 6px #000;
  box-shadow: 0 0 6px rgba(0,200,255,0.6);
}

/* --- Modal --- */
#modal {
  text-align: center;
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5,5,15,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

#modal .modal-content {
  background: linear-gradient(145deg, #12122a, #1a1a3c);
  padding: 22px;
  border-radius: 12px;
  width: 320px;
  color: var(--primary-color);
  text-align: center;
  border: 1px solid rgba(163,186,255,0.2);
  box-shadow: 0 0 20px rgba(0,200,255,0.4), 0 0 30px rgba(122,66,255,0.3);
}

#modal h2 {
  margin: 0 0 15px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 8px #7a42ff, 0 0 10px #00f0ff;
}

select, button {
  margin-top: 10px;
  padding: 10px 14px;
  font-family: inherit;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
}

select {
  background: #1e1a3c;
  color: var(--primary-color);
  border: 1px solid rgba(163,186,255,0.3);
  box-shadow: 0 0 6px rgba(0,200,255,0.3);
}

button {
  background: linear-gradient(90deg, #7a42ff, #00c8ff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 10px rgba(0,200,255,0.6), 0 0 15px rgba(122,66,255,0.5);
}

button:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* --- Cart --- */
.cart {
  max-width: 90%;
  margin: 30px auto;
  padding: 18px;
  background: linear-gradient(145deg, #12122a, #1e1a3c);
  border: 1px solid rgba(163,186,255,0.2);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,200,255,0.3), 0 0 20px rgba(122,66,255,0.25);
}

.cart h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary-color);
  text-align: center;
  font-weight: 700;
  text-shadow: 0 0 8px #00f0ff;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.cart-item button {
  background: #ff4b5c;
  color: white;
  font-size: 0.75rem;
  padding: 4px 7px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255,75,92,0.6);
}

.cart-item button:hover {
  background: #cc3948;
}

/* --- Bottom controls --- */
.bottom-controls {
  display: flex;
  align-items: start;
  justify-content: left;
  gap: 10px;
  margin-top: 14px;
}

.label-text {
  font-size: 0.8rem;
  color: var(--primary-color);
  text-shadow: 0 0 6px #7a42ff;
}

/* --- Tags (inchangés sauf glow ajouté) --- */
.tag {
  position: absolute;
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 6px;
  top: 10px;
  left: 10px;
  z-index: 10;
  box-shadow: 0 0 6px rgba(0,0,0,0.6), 0 0 8px rgba(0,200,255,0.5);
}

.tag.new {
  background: linear-gradient(145deg, #ff2d6a, #7a0040);
}

.tag.hot {
  background: linear-gradient(145deg, #ff8f2c, #b34700);
}

.tag.best {
  background: linear-gradient(145deg, #00c8ff, #0044ff);
}

.tag.none {
  background: linear-gradient(145deg, #888, #444);
}

option {
  background-color: #1e1a3c;
  color: var(--primary-color);
}
