.product-sidebar
  .product-sidebar__menu
  .product-sidebar__item.sidebar-dropdown {
  position: relative;
  margin: 6px 0;
  /* Consistent spacing */
}

.product-sidebar .sidebar-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 15px;
  /* Slightly increased for better touch area */
  font-size: 0.95rem;
  color: var(--text-color);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.product-sidebar .sidebar-dropdown-toggle:hover {
  background-color: var(--sidebar-hover);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.product-sidebar .sidebar-dropdown-toggle::after {
  content: "\f107";
  /* Font Awesome down arrow */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.9rem;
  margin-left: 10px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.product-sidebar .sidebar-dropdown-toggle.show::after {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.product-sidebar .sidebar-dropdown-menu {
  display: none;
  position: relative;
  left: 10px;
  /* Subtle indent for hierarchy */
  width: calc(100% - 10px);
  list-style: none;
  padding: 8px 0;
  /* Clean spacing */
  margin: 0;
  background-color: var(--sidebar-bg);
  border-left: 2px solid rgba(240, 84, 45, 0.15);
  /* Light accent */
}

.product-sidebar .sidebar-dropdown-menu.show {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

.product-sidebar .sidebar-dropdown-item {
  margin: 4px 0;
  /* Item spacing */
}

.product-sidebar .sidebar-dropdown-item a {
  display: block;
  padding: 8px 15px 8px 25px;
  /* Indented for submenu */
  font-size: 0.9rem;
  /* Slightly smaller for hierarchy */
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  border-radius: 3px;
}

.product-sidebar .sidebar-dropdown-item a:hover {
  background-color: var(--sidebar-hover);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.product-sidebar .sidebar-dropdown-item a.active {
  background-color: rgba(240, 84, 45, 0.08);
  color: var(--primary-color);
  font-weight: 500;
  border-left: 3px solid var(--primary-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */

@media (max-width: 767px) {
  .product-sidebar .sidebar-dropdown-menu {
    position: static;
    left: 0;
    width: 100%;
    border-left: none;
    background-color: var(--sidebar-hover);
  }
  .product-sidebar .sidebar-dropdown-item a {
    padding-left: 30px;
  }
}
