/* EStore Sidebar Styles */

.sidebar-logo {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 24px;
  border-bottom: 2px solid white;
}

.sidebar-logo h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin: 0;
  margin-bottom: 0.5rem;
}

.sidebar-logo .logo-graphics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-logo .logo-graphics .character {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.sidebar-logo .logo-graphics .character.orange {
  background-color: #ff9933;
  border-radius: 50%;
}

.sidebar-logo .logo-graphics .character.black {
  background-color: #000000;
  border-radius: 50%;
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #444444;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Style list items in sidebar */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  list-style: none;
  margin-bottom: 0;
  width: 100%;
}

.sidebar li a {
  color: #666666;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 6px 4px;
  transition: var(--transition);
  border-radius: var(--border-radius);
  width: 100%;
  font-size: 0.9rem;
  font-weight: 400;
}

/* .sidebar li a:hover {
  background-color: #ff9933;
  color: #ffffff;
  padding-left: 1rem;
} */

.sidebar li a.active {
  background-color: #ff9933;
  color: #ffffff;
  font-weight: 700;
}

.sidebar li a i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* Override Bootstrap navbar styles in sidebar */
.sidebar .navbar {
  padding: 0;
  background: none;
}

.sidebar .navbar-collapse {
  padding: 0;
}

.sidebar .navbar-toggler {
  display: none;
}

/* Ensure menu items are displayed as list */
.sidebar .menu-item {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

.sidebar .menu-item a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #666666;
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--border-radius);
  width: 100%;
}

/* .sidebar .menu-item a:hover {
  background-color: #ff9933;
  color: #ffffff;
  padding-left: 1.5rem;
} */

/* Style dropdown menus in sidebar */
.sidebar .dropdown-menu {
  background-color: #f5f5f5;
  border: none;
  box-shadow: var(--box-shadow);
  margin-left: 1rem;
  position: static;
  display: none;
}

.sidebar .dropdown-item {
  color: #666666;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

/* .sidebar .dropdown-item:hover {
  background-color: #ff9933;
  color: #ffffff;
} */



.category-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #444444;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 0.5rem;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  margin-bottom: 0;
  width: 100%;
}

.category-link {
  display: flex;
  align-items: center;
  padding: 0px 1rem;
  color: #666666;
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--border-radius);
  width: 100%;
  font-size: 0.9rem;
  font-weight: 400;
}

.category-link:hover .category-name,
.category-link:hover .category-icon {
  color: #ff9933;
  font-weight: 700;
}

.category-link.active {
  background-color: #ff9933;
  color: #ffffff;
}

.category-icon {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.category-name {
  flex: 1;
}

.category-toggle-icon {
  transition: opacity 0.15s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.category-children {
  padding-left: 0.5rem;
}

.category-grandchildren {
  padding-left: 1rem;
}

.category-grandchildren .category-link {
  padding-left: 1.5rem;
  font-size: 0.85rem;
}
