* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #f8f9fc, #dbe9ff);
  color: #222;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0056b3;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: #0056b3;
}

/* Search Section */
.search-section {
  text-align: center;
  padding: 70px 20px;
}

.search-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Categories */
.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.category {
  border: none;
  background: #e0ecff;
  color: #0056b3;
  padding: 8px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.category.active,
.category:hover {
  background: #0056b3;
  color: white;
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.search-box input {
  width: 40%;
  padding: 12px 15px;
  border-radius: 30px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.3s;
}

.search-box input:focus {
  border-color: #0056b3;
  box-shadow: 0 0 6px #0056b3;
}

.search-box button {
  padding: 12px 25px;
  background-color: #0056b3;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-box button:hover {
  background-color: #003e8a;
}

/* Suggestions */
.suggestions {
  list-style: none;
  position: absolute;
  top: 48px;
  width: 40%;
  left: 30%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 10;
  display: none;
}

.suggestions li {
  padding: 10px 15px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestions li:hover {
  background: #eaf1ff;
}

.suggestions img {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  object-fit: cover;
}

/* Trending Tags */
.trending {
  margin-top: 40px;
}

.tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #e0ecff;
  color: #0056b3;
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #0056b3;
  color: white;
}

/* Results Grid */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 50px;
  padding: 0 10%;
}

.product-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-card h4 {
  margin: 10px;
}

.product-card p {
  color: #0056b3;
  margin: 0 10px 15px;
  font-weight: bold;
}

.product-card a {
  margin: 0 10px 15px;
  background: #0056b3;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s;
  
}

.product-card a:hover {
  background: #003e8a;
}

.container1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 96%;
}

.container1-left img {
  height: 70px;
  margin-left: 70px;
}
.navbar a.nav-link {
  color: var(--text-color, #000000) !important;
  font-weight: 500;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.navbar a.nav-link:hover {
  color: var(--primary-color, #007bff) !important;
}
.container1-right ul {
  margin: 10px;
  padding: 10px;
}

.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}
/* 🌙 Dark Theme */
.dark-theme {
  background-color: #121212;
  color: #fff;
}

.dark-theme .navbar {
  background-color: rgba(30, 30, 30, 0.9) !important;
}

.dark-theme .nav-link {
  color: #ddd !important;
}

.dark-theme .product-card {
  background-color: #1e1e1e;
  color: #fff;
  border-color: #333;
}

/* 💙 Active Link Style */
.navbar .nav-link.active-link,
.navbar .nav-link.active {
  color: #007bff !important;
  font-weight: 600;
  border-bottom: 2px solid #007bff;
  transition: 0.3s ease;
}
