
:root {
  --glass-bg: rgba(0, 0, 0, 0.15);
  --glass-border: rgba(255, 255, 255, 0.15);
  --neon-pink: #ff69b4;
  --neon-green: #39ff14;
  --white: #f2f2f2;
}

body {
  margin: 0;
  font-family: 'Garamond', serif;
  background: url('Images/shopnf.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* Sparkle animation background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--neon-pink) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.05;
  animation: sparkle 30s linear infinite;
  z-index: 0;
}

@keyframes sparkle {
  from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}

header {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border-bottom: 2px solid var(--glass-border);
  padding: 1rem 2rem;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 2rem;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.sidebar,
.product-grid,
.cart {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.sidebar {
  flex: 1 1 200px;
  min-width: 200px;
}

.product-grid {
  flex: 3 1 600px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.product {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.product:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

.product img {
  max-width: 100%;
  border-radius: 5px;
}

button {
  background: rgba(255, 105, 180, 0.2);
  border: 1px solid var(--white);
  padding: 0.5rem 1rem;
  color: var(--white);
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.3s ease;
}

button:hover {
  background: rgba(255, 105, 180, 0.4);
  box-shadow: 0 0 10px var(--neon-pink);
}

.cart {
  flex: 1 1 300px;
  min-width: 250px;
}

.cart h2,
.sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--white);
  padding-bottom: 0.5rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid var(--glass-border);
}

/* Dark mode toggle (optional switch) */
.dark-mode body {
  background-color: #000;
  color: var(--white);
}
