/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #0b0f1a;
  color: #fff;
}

/* ===== CONTAINER ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2563eb;
  
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links .active {
  color: #2563eb;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-btn {
  background: #2563eb;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}
.crt{
  text-decoration: none;
}

.cart {
  background: #111;
  padding: 8px 12px;
  border-radius: 8px;
}

.menu-toggle {
  display: none;
  font-size: 20px;
  cursor: pointer;
}

/* ===== HERO ===== */
.products-hero {
  height: 220px;

                display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 2.5rem;
}

.hero-content p {
  color: #aaa;
}

/* ===== CONTROLS ===== */
.controls {
  display: flex;
  gap: 15px;
  margin: 30px auto;
}

.controls input,
.controls select {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #111;
  color: #fff;
}

/* ===== PRODUCTS ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-count {
  color: #aaa;
}
.all{
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  
}
#product-grid{
  display: flex;
  
}

/* ===== CARD ===== */
.product-card {
  background: #111827;
  border-radius: 15px;
  padding: 15px;
  transition: 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(37,99,235,0.3);
}

.product-card img {
  width: 100%;
  border-radius: 10px;
  height: 180px;
  object-fit: cover;
}

.product-card h3 {
  margin: 10px 0;
}

.price {
  color: #2563eb;
  font-weight: bold;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.add-btn {
  background: #2563eb;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.add-btn:hover {
  background: #1e40af;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background: #020617;
  color: #aaa;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .controls {
    flex-direction: column;
  }
}


.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2563eb;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}


body {
  min-height: 100vh;
  margin: 0;
  background: url("img1.png") center/cover no-repeat fixed;
  position: relative;
  color: #fff;
}

body::before {
  content: "";
  position: fixed; /* fixed taake scroll par bhi dark overlay rahe */
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); /* 0.5 = 50% dark */
  z-index: -1; /* overlay behind all content */
}








.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #020617;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  height: 100%;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.card-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.card-buttons button {
  flex: 1;
  padding: 8px;
  cursor: pointer;
}