/* Navigation Menu Styles */

.site-nav {
  /* background-color: #fff; */
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 48px;
  z-index: 100;
}

/* Brand/Logo */
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  color: #333;
  font-size: 16px;
  display: none;
}

@media (min-width: 768px) {
  .brand-text {
    display: inline;
  }
}

/* Nav Links Container */
.nav-links {
    margin-left: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}

.nav-links > a {
    height: 40px;
    margin-left: 40px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  align-items: center;
}

.nav-links > a:hover {
  background-color: #f9891aea;
  color: #ff9800;
}

/* Dropdown Menu */
.nav-menu-dropdown {
  position: relative;
  display: inline-block;
}

.nav-menu-dropdown-toggle {
  background: none;
  border: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-menu-dropdown-toggle:hover {
  background-color: #f39325;
  color: #ff9800;
}

.nav-menu-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ed8712;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1000;
  margin-top: 8px;
}

.nav-menu-dropdown-content.active,
.nav-menu-dropdown-content[style*="display: block"] {
  display: block !important;
}

.nav-menu-dropdown-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu-dropdown-content li {
  margin: 0;
  padding: 0;
}

.nav-menu-dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-menu-dropdown-content a:hover {
  background-color: #f5f5f5;
  color: #ff9800;
  border-left-color: #ff9800;
}

/* Nav Right (Search, User, Wishlist, Cart) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Search Container */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.search-icon-btn:hover {
  color: #ff9800;
  background-color: #f5f5f5;
}

.search-form {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  gap: 4px;
  margin-top: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.search-form.active,
.search-form[style*="display: flex"] {
  display: flex !important;
}

.search-input {
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  width: 200px;
  outline: none;
  border-radius: 3px;
  background-color: #f5f5f5;
}

.search-input:focus {
  background-color: #fff;
  border: 1px solid #ff9800;
}

.search-btn {
  background: #ff9800;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #f57c00;
}

/* User Button */
.user-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-btn:hover {
  color: #ff9800;
  background-color: #f5f5f5;
}

.user-btn-with-badge {
  position: relative;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff5722;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* User Dropdown */
.nav-user {
  position: relative;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 150px;
  z-index: 1000;
  margin-top: 8px;
}

.user-dropdown.active,
.user-dropdown[style*="display: block"] {
  display: block !important;
}

.user-dropdown a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background-color: #f5f5f5;
  color: #ff9800;
  padding-left: 24px;
}

/* User Area (Not logged in) */
.user-area {
  display: flex;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .site-nav {
    gap: 15px;
    padding: 10px 15px;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
  }

  .nav-links > a {
    font-size: 13px;
    padding: 6px 10px;
  }

  .nav-menu-dropdown-toggle {
    font-size: 13px;
    padding: 6px 10px;
  }

  .search-input {
    width: 150px;
  }

  .user-btn {
    font-size: 16px;
    padding: 6px;
  }
}

/* Fix: ensure no list markers appear in header/nav (breadcrumb styling fallback) */
header ol, header ul, nav ol, nav ul { list-style: none !important; margin: 0; padding: 0; }
.breadcrumb, .breadcrumbs, .page-breadcrumb { list-style: none !important; margin: 0; padding: 0; }
.nav-menu-dropdown-content ol, .nav-menu-dropdown-content ul { list-style: none !important; }
