ritual: stereotyped behavior
habit: (psychology) an automatic pattern of behavior in reaction to a specific situation; may be inherited or acquired through frequent repetition
detail: a small part that can be considered separately from the whole