/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* BODY */
body {
  color: #e4e4e7;

  background:
    radial-gradient(circle at 20% 20%, #1a1f3a, transparent 40%),
    radial-gradient(circle at 80% 80%, #0f3460, transparent 40%),
    linear-gradient(135deg, #050505, #0a0f1f, #050505);

  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(20, 20, 30, 0.9);
  border-bottom: 1px solid #27272a;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #60a5fa;
}

/* SEARCH */
/* SEARCH BOX CONTAINER */
.search-box {

  display:flex;
  justify-content:center;
  align-items:center;

  width:100%;
  margin:40px 0;
  padding: 0 15px;

}

/* SEARCH INPUT FUTURISTIC */
.search-box input {

  width:100%;
  max-width:500px;

  padding:14px 22px;

  border-radius:30px;
  outline:none;

  font-size:16px;
  color:#ffffff;

  background:rgba(15,15,25,0.95);

  border:2px solid transparent;

  /* GRADIENT BORDER */
  background-image:
    linear-gradient(#0f0f19,#0f0f19),
    linear-gradient(90deg,#00f0ff,#ff00ff,#00f0ff);

  background-origin:border-box;
  background-clip:padding-box, border-box;

  /* GLOW EFFECT */
  box-shadow:
    0 0 10px rgba(0,240,255,0.5),
    0 0 20px rgba(255,0,255,0.3),
    inset 0 0 10px rgba(0,240,255,0.2);

  transition:0.35s ease;

}

/* SEARCH BUTTON FUTURISTIC */
.search-box button {

  padding:14px 22px;

  margin-left:10px;

  border-radius:30px;

  border:2px solid transparent;

  font-size:15px;
  font-weight:bold;

  color:#ffffff;

  cursor:pointer;

  background-image:
    linear-gradient(#111827,#111827),
    linear-gradient(90deg,#00f0ff,#ff00ff,#00f0ff);

  background-origin:border-box;
  background-clip:padding-box,border-box;

  box-shadow:
    0 0 10px rgba(0,240,255,0.5),
    0 0 20px rgba(255,0,255,0.3);

  transition:0.3s ease;

}

/* HOVER EFFECT */
.search-box button:hover {

  transform:scale(1.05);

  box-shadow:
    0 0 15px rgba(0,240,255,1),
    0 0 30px rgba(255,0,255,0.7);

}

/* CLICK EFFECT */
.search-box button:active {

  transform:scale(0.95);

  box-shadow:
    0 0 10px rgba(0,240,255,0.8);

}

/* CONTAINER */
.container {
  padding: 20px 15px;
}

/* PRODUCT GRID */
.product-list {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  gap: 20px;
  justify-content: center;
}

/* PRODUCT CARD */
.product {
  background: #18181b;
  border-radius: 14px;
  border: 1px solid #27272a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: 0.3s;
}

.product:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
}

/* IMAGE */
.img-wrap {
  height: 220px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* TEXT */
.product h3 {
  font-size: 16px;
  margin: 12px 14px 4px;
}

.muted {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 14px;
}

.price {
  font-size: 16px;
  font-weight: bold;
  margin: 6px 14px;
  color: #22c55e;
}

/* BUTTON CONTAINER — ALWAYS SINGLE LINE */
.buttons {
  display: flex;
  flex-wrap: nowrap;     /* IMPORTANT: no wrap */
  gap: 8px;
  padding: 14px;
  margin-top: auto;
}

/* BUTTON STYLE */
.buttons a {
  flex: 1;               /* Equal width */
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;   /* prevent break */
  transition: 0.2s;
}

/* AMAZON */
.amazon {
  background: #facc15;
  color: black;
}

.amazon:hover {
  background: #eab308;
}

/* FLIPKART */
.flipkart {
  background: #2563eb;
  color: white;
}

.flipkart:hover {
  background: #1d4ed8;
}

/* MEESHO */
.meesho {
  background: #f43397;
  color: white;
}

.meesho:hover {
  background: #d12c7f;
}

/* FOOTER */
.footer {
  margin-top: 40px;
  padding: 30px;
  text-align: center;
  border-top: 1px solid #27272a;
}

/* TABLET */
@media (max-width: 900px) {

  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* MOBILE */
@media (max-width: 600px) {

  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .img-wrap {
    height: 160px;
  }

  .buttons {
    flex-wrap: nowrap;   /* KEEP ONE LINE */
  }

  .buttons a {
    flex: 1;
    font-size: 12px;
    padding: 8px 0;
  }

}