/* =========================
   Base Navigation
========================= */
#categoryNav {
    background-color: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
    overflow-x: auto;
    position: relative;
    transition: all 0.3s ease;
    z-index: 100;
  }
  
  /* Scrollbar */
  #categoryNav::-webkit-scrollbar {
    height: 5px;
  }
  #categoryNav::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
  }
  
  /* Nav List */
  #categoryNav .nav-list {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0 12px;
    min-width: max-content;
    align-items: center; /* vertically center items in list */
  }
  
  /* Nav Item */
  #categoryNav .nav-item {
    display: inline-flex;        /* horizontal layout */
    flex-direction: row;         /* image + text side by side */
    align-items: center;         /* vertical center */
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 6px 14px;
    border-radius: 10px;        /* capsule shape */
    border: 1px solid #e4e4e4;
    background-color: #fafafa;
    cursor: pointer;
    margin-right: 8px;
    flex-shrink: 0;
    transition: transform 0.25s ease, background-color 0.25s ease;
  }
  
  /* Hover effect */
  #categoryNav .nav-item:hover {
    border-color: var(--primary);
    background-color: var(--light);
    transform: translateY(-2px);
  }
  
  /* Images */
  #categoryNav .nav-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid lightgray;
    object-fit: cover;
    transition: all 0.25s ease;
  }
  
  /* Active / Hover image border */
  #categoryNav .nav-item.active img,
  #categoryNav .nav-item:hover img {
    border-color: var(--primary);
  }
  
  /* Text */
  #categoryNav .nav-item span {
    font-size: 0.85rem;
    white-space: nowrap;
    font-weight: 600;
    color: var(--dark);
  }
  