/* Navbar Styles for SG Sanatan FMCG Store */

header {
  background: linear-gradient(90deg, #FF6F00, #FF8F00);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffe0b2;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.5rem;
  z-index: 1000;
  min-width: 150px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dropdown a {
  display: block;
  padding: 0.3rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown a:hover {
  background-color: #ffe0b2;
}

nav ul li:hover .dropdown {
  display: block;
}

.search-cart {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-cart input {
  padding: 0.4rem;
  border-radius: 4px;
  border: none;
  outline: none;
}

.cart {
  background-color: white;
  color: #FF6F00;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, color 0.3s ease;
}

.cart:hover {
  background-color: #FF6F00;
  color: white;
}

.logo img.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

